/* 案件固有のスタイル。型(styles.css)は編集禁止 — 上書きはすべてここに書く。
   読み込み順は styles.css → custom.css なので、同じセレクタ/変数はこちらが勝つ。 */

:root {
  --mold-version: 9;
  /* font-preset: serene */
  --lh-body: 1.95;
  --lh-display: 1.35;
  --ls-en: .10em;
  --ls-body: .02em;
  --ls-display: .04em;
  --fw-strong: 700;
  --fw-body: 400;
  --fw-display: 500;
  --font-en: "Cormorant Garamond", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Zen Old Mincho", serif;
  /* 配色: カンプ(E案)の実測。extract_palette.py の値は文字色として薄すぎるため、同系統で濃度を上げて採用 */
  --ink: #1a2431;
  --muted: #5b6672;
  --paper: #f8fafb;
  --soft: #e9eff3;
  --gold: #3e5f78;   /* アクセント(藍)。名前は型に合わせて--goldのまま */
  --line: rgba(26, 36, 49, 0.13);
  --shadow: 0 28px 80px rgba(26, 36, 49, 0.12);
}

/* ===== ヘッダー: カンプの帯(背景画像に含まれる)に重ねる ===== */
.site-header {
  height: 4.82vw;
  min-height: 60px;
  grid-template-columns: auto 1fr;
  padding: 0 4.2vw 0 4.36vw;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background .5s var(--ease-out-expo), border-color .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
}
.site-header.is-scrolled {
  background: rgba(248, 250, 251, .92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand__text {
  display: grid;
  justify-items: center;
  gap: .35vw;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: max(18px, 1.62vw);
  line-height: 1;
  letter-spacing: .3em;
  color: var(--ink);
}
.brand__text small {
  font-family: var(--font-body);
  font-size: max(7px, .5vw);
  letter-spacing: .45em;
  margin-right: -.45em;
}
.nav {
  gap: 3.15vw;
  font-family: var(--font-display);
  font-size: max(13px, .95vw);
  letter-spacing: .3em;
  color: var(--ink);
}

/* ===== ルートAヒーロー(make_hero_bg.py の出力座標) ===== */
.hero {
  padding-top: 0;
  background: #f4f7fa;
}
.hero__stage {
  aspect-ratio: 1536 / 864;
  background: url('assets/fv-bg.jpg') center / cover no-repeat;
  container-type: inline-size;
  overflow: hidden;
}
.hero__copy {
  inset: auto;
  left: 7.75%;
  top: 25.1%;
  width: 42%;
  display: block;
  padding: 0;
}
.hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: 4.3cqw;
  line-height: 1.47;
  letter-spacing: .1em;
  color: var(--ink);
}
/* 型の .hero__copy [data-reveal] (translateY 42px) が is-visible より後勝ちするため、表示後は必ず元位置へ */
.hero__copy [data-reveal="fade"], .hero__copy [data-reveal].is-visible { transform: none; }
.hero__lead {
  position: absolute;
  left: 0;
  top: calc(52.1cqw * 864 / 1536 - 25.1cqw * 864 / 1536);
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3cqw;
  line-height: 1.75;
  letter-spacing: .3em;
  color: #2d3742;
  white-space: nowrap;
}
.hero__actions {
  position: absolute;
  left: 0;
  top: calc(65.3cqw * 864 / 1536 - 25.1cqw * 864 / 1536);
  display: flex;
  gap: 2.28cqw;
}
.hero .btn {
  min-height: 0;
  height: 3.19cqw;
  width: 13.5cqw;
  padding: 0 3cqw 0 0;
  font-size: 1cqw;
  letter-spacing: .22em;
}
.hero .btn svg { right: 1.6cqw; width: 1.15cqw; }
.hero .btn--primary { background: #1a2431; border-color: #1a2431; }
.hero .btn--ghost { width: 13.67cqw; color: var(--ink); border-color: #7e8b95; background: rgba(244, 247, 250, .35); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--gold); border-color: var(--gold); }
.btn--ghost { color: var(--ink); border-color: rgba(26, 36, 49, .45); }

/* 写真は背景と同じ切り出しを同じ位置に置く(デスクトップでは見た目が背景と一致) */
.hero__photo-wrap {
  position: absolute;
  left: 41.67%;
  top: 17.36%;
  width: 58.33%;
  margin: 0;
}
.hero__photo { width: 100%; height: auto; aspect-ratio: 896 / 714; }
.hero__photo-wrap::before { display: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6vw;
  transform: translateX(-50%);
  padding: 0;
  gap: .6vw;
  background: none;
  font-size: max(11px, .72vw);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line { height: 2.6vw; background: rgba(26, 36, 49, .3); }

/* ===== 本文 ===== */
.section { background: linear-gradient(180deg, rgba(233, 239, 243, .5), rgba(248, 250, 251, 0) 320px); }
.ghost { color: rgba(62, 95, 120, .06); }
.eyebrow { color: var(--gold); }
.eyebrow::before { background: var(--gold); }
h2 { font-weight: 500; }
.style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.style-card--lead { grid-row: auto; }
.style-card img, .style-card--lead img { aspect-ratio: 3 / 4; object-fit: cover; }
.style-card__label span { font-family: var(--font-display); letter-spacing: .08em; }
.footer__brand strong { font-family: var(--font-display); letter-spacing: .2em; }
.footer__notice { margin-top: 18px; line-height: 1.9; opacity: .85; }

/* ===== モバイル: 縦積み(コピー → 写真) ===== */
@media (max-width: 1040px) {
  .site-header, .site-header.is-scrolled {
    grid-template-columns: 1fr auto;
    height: 64px;
    padding: 0 20px;
    background: rgba(248, 250, 251, .92);
    border-bottom-color: var(--line);
    backdrop-filter: blur(16px);
  }
  .brand__text { font-size: 1.15rem; gap: 5px; }
  .brand__text small { font-size: .55rem; }
  .hero { padding-top: 64px; background: linear-gradient(180deg, #f4f7fa, #eef3f7); }
  .hero__stage {
    aspect-ratio: auto;
    background: none;
    display: flex;
    flex-direction: column;
  }
  .hero__copy {
    position: static;
    order: -1;
    width: auto;
    padding: 48px 24px 32px;
  }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 3rem); letter-spacing: .12em; line-height: 1.5; }
  .hero__lead {
    position: static;
    margin-top: 18px;
    font-size: clamp(.92rem, 3.8vw, 1.05rem);
    letter-spacing: .18em;
    white-space: normal;
  }
  .hero__actions {
    position: static;
    margin-top: 26px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero .btn, .hero .btn--ghost {
    width: auto;
    height: 50px;
    padding: 0 52px 0 26px;
    font-size: .92rem;
    letter-spacing: .16em;
  }
  .hero .btn svg { right: 18px; width: 22px; }
  .hero__photo-wrap { position: static; width: 100%; }
  .hero__photo { aspect-ratio: 896 / 714; }
  .scroll-cue { position: static; transform: none; padding: 18px 0 24px; gap: 8px; font-size: .72rem; }
  .scroll-cue__line { height: 28px; }
}
@media (max-width: 1040px) {
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .style-card img, .style-card--lead img { aspect-ratio: 3 / 4; }
}
@media (max-width: 620px) {
  .style-grid { grid-template-columns: 1fr; }
  .style-card img, .style-card--lead img { aspect-ratio: 4 / 4.2; }
  .hero__copy { padding: 40px 20px 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  /* 動き(移動・拡大・拭き上げ)は止めるが、opacityのフェードは残す。パッと出さない */
  [data-reveal] {
    transform: none !important;
    clip-path: none !important;
    transition: opacity .6s ease !important;
  }
  .hero__ambient { display: none; }           /* 常時ゆらぐ装飾だけ消す */
  .marquee__inner { animation-duration: 55s; } /* 流れる帯は速度を落とすだけ */
}

/* 監査対応: 行間・コントラスト・最小文字サイズ */
.style-note, .faq-list summary { line-height: 1.9; }
.contact .btn { background: #1a2431; border-color: #1a2431; color: #fff; }
.contact .btn:hover, .contact .btn:focus-visible { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer__notice { font-size: 15px; }
.style-showcase { background: #eef3f6; }
.style-card { background: #e4ebf0; box-shadow: 0 18px 50px rgba(26, 36, 49, .1); }
.style-card__label { background: linear-gradient(180deg, transparent, rgba(26, 36, 49, .68)); }
.style-card__label small { opacity: 1; transform: none; font-size: .82rem; line-height: 1.8; }
/* 文字だけの4列を避ける: 数字は2×2、大切にしていることはタグ状に折り返す */
.numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; row-gap: clamp(36px, 4vw, 56px); }
.quality-track { display: flex; flex-wrap: wrap; gap: 10px; }
.quality-track span { flex: none; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; }
.numbers { background: #1a2431; }
.numbers__bg { opacity: .32; }
.numbers__kicker, .numbers__grid strong em { color: #bcd3e2; }
.numbers__kicker::before { background: #bcd3e2; }
.numbers__grid { border-top: 1px solid rgba(255, 255, 255, .2); }
.numbers__grid > div { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.quality-track { mask-image: none; -webkit-mask-image: none; overflow: visible; }
/* 見出しの行マスク: 読み込みイベントに依存せず、時間で必ず出す(フォント待ちで隠れたままにしない) */
.hero h1 .l > span { transform: none; animation: heroLineUp 1s var(--ease-out-expo) both; }
.hero h1 .l:nth-child(1) > span { animation-delay: .2s; }
.hero h1 .l:nth-child(2) > span { animation-delay: .35s; }
@keyframes heroLineUp { from { transform: translateY(112%); } to { transform: none; } }

/* 型の暖色(茶)を、E案の白・藍の世界観に置き換える */
.btn--primary, .sticky-cta { background: #1a2431; border-color: #1a2431; }
.proof-band { background: #1a2431; }
.contact { background: #16202b; }
.footer { background: #111821; }
.quality { background: #e9eff3; }
.quality-track span { border-color: rgba(26, 36, 49, .16); background: rgba(255, 255, 255, .7); }
.access dt, .contact .eyebrow { color: #bcd3e2; }
.contact .eyebrow::before { background: #bcd3e2; }
/* 銘柄カード: 文字は写真の下に置き、瓶のラベルに影をかけない */
.style-card { display: grid; background: #fff; }
.style-card__label {
  position: static;
  padding: 18px 20px 22px;
  color: var(--ink);
  background: #fff;
}
.style-card__label small { color: var(--muted); }
/* 川の写真の説明文: 下が切れないよう、帯との間に余白を取る */
.concept__fullbleed figcaption { padding-bottom: clamp(16px, 1.6vw, 22px); line-height: 1.6; }
/* 取扱店の背景: 雪の夜の蔵の入口。暗い背景に溶け込みつつ、灯りが見える濃さに */
.contact__bg { width: min(40%, 560px); opacity: .24; object-position: center 70%; }
