/* KAGERO 陽炎 — パフォーマンス・アイウェア(架空)
   黒曜×琥珀・銅。主役は固定配置したターンテーブル映像(assets/turntable.mp4)で、
   スクロール量をそのまま再生位置に写して製品の角度を変える。
   #bg の WebGL は製品の下から立ちのぼる陽炎(熱ゆらぎ)と火の粉だけを描く演出レイヤー。
   動画 3 本は AI 生成(Veo 3.1)。外して未配置にしても静止画
   (assets/product_front.jpg)とグラデーションに自動で戻る(JS が存在確認してから読む)。 */

:root {
  --bg: #0b0a0d;
  --bg-2: #131017;
  --ink: #f2eee9;
  --ink-dim: #b3aa9f;
  --ink-faint: #756c62;
  --amber: #e8933c;
  --amber-bright: #f5b26a;
  --copper: #b06a3f;
  --copper-bright: #c98a55;       /* 暗背景・小サイズ文字用の明るい銅(コントラスト確保) */
  --way: #ff6a3d;                 /* カラーウェイ切替で JS が書き換えるアクセント */
  --lensfx: none;                 /* カラーウェイ切替で JS が書き換える映像フィルタ(レンズ蒸着色) */
  --line: rgba(242, 238, 233, .13);
  --line-strong: rgba(242, 238, 233, .27);
  --glass: rgba(17, 13, 18, .58);
  --radius: 16px;
  --disp: "Michroma", "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 720px at 82% -12%, rgba(232, 147, 60, .08), transparent 58%),
    radial-gradient(950px 640px at 6% 110%, rgba(176, 106, 63, .08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── 主役: ターンテーブル映像(スクロールが再生ヘッド)──────
   固定配置。JS(GSAP)が opacity を書くので、JS が動く前提のときだけ隠す。
   poster に正面静止画を指定してあるので、読み込み前・動画未配置でも絵が出る */
#tt {
  position: fixed; inset: 0; z-index: 0;
  display: grid; place-items: center;
  overflow: hidden; pointer-events: none;
  background: #050407;
  opacity: 1;
}
.js #tt { opacity: 0; }
#tt video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: var(--lensfx, none);
  transition: filter .75s cubic-bezier(.4, 0, .2, 1);
}

/* 周辺減光。映像の四隅を落として製品に視線を集める */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 46%, rgba(4, 3, 6, .72));
}

/* WebGL キャンバス(陽炎レイヤー)。映像の上に加算で重ねる */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 2; display: block; pointer-events: none;
  mix-blend-mode: screen;
  filter: var(--lensfx, none);
  transition: filter .75s cubic-bezier(.4, 0, .2, 1);
}
.no-webgl #bg { display: none; }

.content, .foot { position: relative; z-index: 3; }

::selection { background: rgba(232, 147, 60, .35); }

/* ── ガラスパネル共通 ─────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 20px 55px rgba(3, 2, 5, .55);
}

.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber); font-weight: 500;
}

/* ── ナビ ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  transition: background .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(11, 10, 13, .62);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--amber); text-decoration: none;
}
.brand span {
  font-family: var(--disp); font-size: 15px; font-weight: 400;
  letter-spacing: .18em; color: var(--ink);
}
.brand .reg { font-style: normal; font-size: 9px; vertical-align: super; color: var(--ink-dim); }
.brand em { font-style: normal; font-size: 12px; color: var(--ink-dim); margin-left: 4px; letter-spacing: .1em; }
.links { display: flex; align-items: center; gap: 6px; }
.links a {
  font-size: 13px; letter-spacing: .12em; font-weight: 400;
  color: var(--ink-dim); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.links a:hover { color: var(--ink); background: rgba(242, 238, 233, .07); }
.links .pill-btn {
  color: #1c1006; background: var(--amber); font-weight: 700;
  margin-left: 6px;
}
.links .pill-btn:hover { color: #1c1006; background: var(--amber-bright); }
/* 狭幅ではアンカーを消さず、字間と余白を詰めて残す(ワンページの現在地移動を確保)。
   ブランドの和文サブ(陽炎)を落とし、全項目 nowrap で1段に収める */
@media (max-width: 700px) {
  .nav { padding: 12px 12px; }
  .brand { gap: 7px; }
  .brand em { display: none; }
  .brand span { font-size: 13px; letter-spacing: .12em; }
  .links { gap: 0; }
  .links a:not(.pill-btn) { font-size: 11px; padding: 6px 6px; letter-spacing: .04em; white-space: nowrap; }
  .links .pill-btn { font-size: 11px; padding: 7px 12px; margin-left: 4px; white-space: nowrap; }
}

/* ── ヒーロー ─────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 clamp(18px, 5vw, 64px) 13svh;
  overflow: hidden;
}
/* 動画・ポスターの受け皿。未配置ではこのグラデーションが背景になる */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(232, 147, 60, .16), transparent 55%),
    radial-gradient(90% 70% at 78% 88%, rgba(176, 106, 63, .18), transparent 60%),
    linear-gradient(180deg, #16121a 0%, #0b0a0d 62%, #070609 100%);
  background-size: cover; background-position: center;
}
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .8s ease;
}
.hero-media.video-on video { opacity: 1; }
/* スクロールでヒーローを暗転させる幕(GSAP が opacity を上げる) */
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: #060509; opacity: 0; pointer-events: none;
}
/* 下 46% の局所スクリム。明るい肌の上でも eyebrow・コピーの可読性を保つ */
.hero::before {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 9, .62) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
/* 縦書きの「陽炎」— 和欧混植のアクセント。ワードマークの背後に大きく敷く */
.hero-tate {
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho", serif; font-weight: 500;
  font-size: clamp(96px, 17svh, 176px); line-height: 1; letter-spacing: .08em;
  color: rgba(232, 147, 60, .16);
  text-shadow: 0 0 70px rgba(232, 147, 60, .22);
  margin: 0 auto 8px; user-select: none;
}
.hero .wordmark {
  font-family: var(--disp); font-size: clamp(26px, 4.6vw, 52px);
  letter-spacing: .32em; text-indent: .32em; color: var(--ink);
  margin: 10px 0 4px;
  text-shadow: 0 4px 40px rgba(4, 3, 6, .9);
}
.hero .wordmark .reg { font-size: .4em; vertical-align: super; color: var(--ink-dim); }
.hero h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.6; font-weight: 500; letter-spacing: .14em;
  margin: 2px 0 6px;
  text-shadow: 0 4px 40px rgba(4, 3, 6, .9);
}
.hero h1 em { font-style: normal; color: var(--amber); }
.catch-en {
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .34em; color: var(--ink-faint);
  animation: cueFloat 2.6s ease-in-out infinite;
  white-space: nowrap; z-index: 2;
}
@keyframes cueFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: .85; }
  50% { transform: translate(-50%, 7px); opacity: .45; }
}

/* ── 主役交代 ─────────────────────────────── */
.handoff {
  min-height: 130svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  padding: 20vh clamp(18px, 5vw, 64px);
}
.handoff .line {
  font-family: "Shippori Mincho", serif; font-weight: 500;
  font-size: clamp(24px, 4vw, 44px); line-height: 1.7;
  text-shadow: 0 3px 30px rgba(4, 3, 6, .9);
}
/* 映像の琥珀グローと同色相で重なっても沈まないよう、明度を上げ影で分離する */
.handoff .line .am {
  color: var(--amber-bright);
  text-shadow: 0 2px 6px rgba(4, 3, 6, .95), 0 0 24px rgba(4, 3, 6, .8);
}
.handoff .line.small {
  font-family: var(--disp); font-size: 11px; letter-spacing: .3em;
  color: var(--ink-faint); margin-top: 18px;
}

/* ── 機能訴求×3 ──────────────────────────── */
.feat {
  min-height: 150svh;
  display: flex; align-items: center;
  padding: 20vh clamp(18px, 5vw, 64px);
}
.feat.right { justify-content: flex-end; }
.feat.left { justify-content: flex-start; }
.f-panel {
  max-width: 460px;
  padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 42px);
}
.f-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; line-height: 1.55;
  font-family: "Shippori Mincho", serif;
  margin: 14px 0 10px;
}
.f-panel .en {
  font-family: var(--disp); font-size: 10.5px; letter-spacing: .18em;
  color: var(--copper-bright); text-transform: uppercase; margin-bottom: 12px;
}
.f-panel p { font-size: 13.5px; color: var(--ink-dim); }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.chips i {
  font-style: normal; font-size: 11px; letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  color: var(--amber); white-space: nowrap;
}

/* ── カラーウェイ切替 ─────────────────────── */
.ways {
  min-height: 130svh;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12vh clamp(18px, 5vw, 64px) 16vh;
}
.ways-panel {
  max-width: 560px; width: 100%; text-align: center;
  padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 42px);
}
.ways-panel h2 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; line-height: 1.5;
  margin: 14px 0 10px;
}
.ways-panel > p { font-size: 13.5px; color: var(--ink-dim); }
.way-btns {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 24px;
}
.way {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .1em;
  color: var(--ink-dim);
  background: rgba(11, 10, 13, .6);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; cursor: pointer;
  transition: color .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.way i {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c, #fff);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 10px var(--c, transparent);
}
.way small { font-family: var(--disp); font-size: 9.5px; letter-spacing: .2em; color: var(--ink-faint); }
.way:hover { color: var(--ink); transform: translateY(-1px); }
.way.is-active {
  color: var(--ink); border-color: var(--way);
  /* 選択色に追従するグロー。color-mix 非対応ブラウザは前行の琥珀で表示 */
  box-shadow: 0 0 24px rgba(232, 147, 60, .18), inset 0 0 12px rgba(232, 147, 60, .06);
  box-shadow: 0 0 24px color-mix(in srgb, var(--way) 20%, transparent),
              inset 0 0 12px color-mix(in srgb, var(--way) 8%, transparent);
}

/* ── マクロ(接写動画スクラブ / 3D 代替) ──── */
.macro { min-height: 240svh; position: relative; }
.macro-stage {
  position: sticky; top: 0; height: 100svh;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0 clamp(18px, 5vw, 64px) 9svh;
}
.macro-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  filter: var(--lensfx, none);
  transition: opacity .6s ease, filter .75s cubic-bezier(.4, 0, .2, 1);
}
.macro.has-video .macro-stage video { opacity: 1; }
/* 縦書きアクセント */
.macro-tate {
  position: absolute; right: clamp(16px, 4vw, 48px); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho", serif; font-weight: 500;
  font-size: clamp(15px, 2vw, 20px); letter-spacing: .34em;
  color: rgba(242, 238, 233, .55);
  text-shadow: 0 2px 18px rgba(4, 3, 6, .9);
}
.macro-copy {
  position: relative; max-width: 440px;
  padding: clamp(24px, 3.5vw, 36px) clamp(22px, 3.5vw, 36px);
}
.macro-copy h2 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(23px, 3vw, 32px); font-weight: 500; line-height: 1.55;
  margin: 12px 0 8px;
}
.macro-copy p { font-size: 13px; color: var(--ink-dim); }

/* ── スペック + CTA ───────────────────────── */
.spec {
  min-height: 130svh;
  display: grid; place-items: center;
  padding: 16vh clamp(18px, 4vw, 52px);
}
.spec-panel {
  max-width: 620px; width: 100%;
  padding: clamp(30px, 4.5vw, 48px) clamp(24px, 4.5vw, 46px);
}
.spec-panel h2 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(24px, 3vw, 33px); font-weight: 500; line-height: 1.55;
  margin: 14px 0 20px;
}
.spec table { width: 100%; border-collapse: collapse; }
.spec th, .spec td {
  text-align: left; vertical-align: top;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 400; line-height: 1.8;
}
.spec th { width: 9em; color: var(--ink-dim); letter-spacing: .08em; white-space: nowrap; }
.spec td { color: var(--ink-dim); }
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 26px;
}
#findStore {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  background: var(--amber); color: #1c1006;
  border: none; border-radius: 10px; padding: 15px 26px; cursor: pointer;
  transition: background .2s, transform .2s;
}
#findStore:hover { background: var(--amber-bright); transform: translateY(-1px); }
.cta-row .ghost {
  font-size: 12.5px; letter-spacing: .14em; color: var(--ink-dim);
  text-decoration: none; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  transition: color .2s, border-color .2s;
}
.cta-row .ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.spec .done { margin-top: 18px; color: var(--amber); font-size: 13px; }

/* ── フッター ─────────────────────────────── */
.foot {
  padding: 40px clamp(18px, 4vw, 52px) 56px;
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 10, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px; color: var(--ink-faint);
  display: grid; gap: 6px;
}
/* 注記が全幅に伸びて 1 行 108 字（適正の約 2.4 倍）になっていた。
   視線が戻れる 45 字前後に抑える（2026-09-02 実測）。 */
.foot p { max-width: 46em; }

/* ── 出現アニメーション(JS 有効時のみ隠す)── */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue { animation: none; }
  .hero-media video { display: none; }
}

/* ── 狭幅調整(375px〜) ────────────────────── */
/* 縦長画面で 16:9 を cover すると製品が左右に切れるため、
   映像の縦横比を保ったまま帯として置き、少しだけ拡大して寄りを作る */
@media (max-width: 760px) {
  #tt video {
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    transform: scale(1.34);
    /* 帯の上下端をぼかして、映像とページ背景の継ぎ目を消す */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 15svh; }
  .hero-tate { font-size: clamp(80px, 24vw, 120px); }
  .feat, .feat.right, .feat.left { justify-content: center; }
  .feat .f-panel { margin-bottom: 56px; }   /* 右下の作例一覧バッジとの重なり回避 */
  .macro-tate { display: none; }
  .spec th { width: 7em; }
}

/* ──────────────────────────────────────────────────────────────
   和文タイポグラフィ調整
   1. palt        … 句読点・括弧まわりの余分なアキを詰める
   2. auto-phrase … 文節単位で折り返す(「書」「く。」のような分断を防ぐ)
   3. balance     … 見出しの行長を揃え、1文字だけ落ちる行を作らない
   4. strict      … 禁則処理を厳密にし、行頭に 。 、 」 が来ないようにする
   auto-phrase / balance / pretty は非対応ブラウザでは無視されるだけで、
   崩れることはない(プログレッシブ・エンハンスメント)。
   ────────────────────────────────────────────────────────────── */
body {
  font-feature-settings: "palt" 1;
  font-kerning: normal;
  line-break: strict;
  word-break: normal;
}
h1, h2, h3, h4, h5, .kicker, dt {
  word-break: auto-phrase;
  text-wrap: balance;
}
p, li, dd, td, .note, .desc, .caption,
.lede, .lead, .statement, blockquote, figcaption {
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* 手動改行は広い画面でのみ効かせ、狭い画面では自動折り返しに任せる */
@media (max-width: 640px) {
  h1 br, h2 br, h3 br,
  .lede br, .lead br, .statement br { display: none; }
}

/* ── 書体設計(見出し＝個性 / 本文＝可読性) ──────────────────────
   見出し・ワードマーク: Michroma(欧文)+ Shippori Mincho(和文)の和欧混植
   本文: BIZ UDPGothic(Google Fonts の和文で palt が効く数少ない書体。
         読点のあとのアキが締まり、Mac / Windows で見え方が揃う) */
h1, h2, h3, h4, .lede, .lead, .kicker, .statement, blockquote {
  font-family: "Michroma", "Shippori Mincho", serif;
}
p, li, dd, td, .note, .desc, .caption, figcaption, small {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ── 本文書体の適用を確実にする ──
   サイト側に .card p のような具体的な指定があると本文書体が上書きされてしまうため、
   html body を前置きして優先度を上げる。等幅を意図した要素は除外する。 */
html body :is(p, li, dd, td, .note, .desc, .caption, figcaption, .body, .txt, .text):not(code):not(pre):not([class*="mono"]):not([class*="code"]):not(.en):not(.hero-tate):not(.macro-tate):not(.wordmark):not(.catch-en):not(.eyebrow):not(.line):not(.scroll-cue) {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}
