/* OTOWA 音羽 — オーディオブランド(架空)
   深緑×真鍮。中央のヘッドホンは #bg の WebGL がコードモデリングで描く。
   情景 4 カットのみ差し替え可能なプレースホルダ(assets/img/ls1〜4.jpg)。 */

:root {
  --bg: #0a0d0b;
  --bg-2: #101614;
  --ink: #edf2ee;
  --ink-dim: #a9b6ac;
  --ink-faint: #6d7a70;
  --brass: #c8a06a;
  --brass-bright: #e2c08e;
  --teal: #6fbfb4;
  --line: rgba(237, 242, 238, .13);
  --line-strong: rgba(237, 242, 238, .27);
  --glass: rgba(13, 19, 16, .58);
  --radius: 16px;
  --serif-en: "Cormorant Garamond", "Times New Roman", 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 80% -12%, rgba(111, 191, 180, .07), transparent 58%),
    radial-gradient(950px 640px at 8% 110%, rgba(200, 160, 106, .07), 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;
}

/* WebGL キャンバス。常に最背面に固定 */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}
.no-webgl #bg { display: none; }

/* 周辺減光 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(3, 5, 4, .58));
}

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

::selection { background: rgba(200, 160, 106, .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(2, 4, 3, .55);
}

.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass); 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(10, 13, 11, .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(--brass); text-decoration: none;
}
.brand span {
  font-family: var(--serif-en); font-size: 21px; font-weight: 500;
  letter-spacing: .12em; color: var(--ink);
}
.brand em { font-style: normal; font-size: 12px; color: var(--ink-dim); margin-left: 4px; }
.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(237, 242, 238, .07); }
.links .pill-btn {
  color: #171106; background: var(--brass); font-weight: 700;
  margin-left: 6px;
}
.links .pill-btn:hover { color: #171106; background: var(--brass-bright); }
@media (max-width: 700px) {
  .links a:not(.pill-btn) { display: none; }
}

/* ── ヒーロー ─────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(18px, 5vw, 64px);
  position: relative;
}
.hero-inner { max-width: 560px; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: 1.22; font-weight: 400; letter-spacing: .02em;
  margin: 18px 0 22px;
  text-shadow: 0 4px 40px rgba(3, 5, 4, .9);
}
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lead {
  font-size: clamp(13.5px, 1.5vw, 15.5px); color: var(--ink-dim);
  text-shadow: 0 2px 18px rgba(3, 5, 4, .9);
  max-width: 32em;
}
.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;
}
@keyframes cueFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: .85; }
  50% { transform: translate(-50%, 7px); opacity: .45; }
}

/* ── 構造 ─────────────────────────────────── */
.anatomy {
  min-height: 170svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 20vh clamp(18px, 5vw, 64px);
}
.a-panel {
  max-width: 470px;
  padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 42px);
}
.a-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 400; line-height: 1.5;
  margin: 14px 0 20px;
}
.parts { list-style: none; display: grid; gap: 14px; }
.parts li { display: grid; gap: 2px; border-left: 2px solid var(--brass); padding-left: 14px; }
.parts b { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.parts span { font-size: 12.5px; color: var(--ink-dim); }

/* ── 素材 ─────────────────────────────────── */
.material {
  min-height: 170svh;
  display: flex; align-items: center;
  padding: 20vh clamp(18px, 5vw, 64px);
}
.m-panel {
  max-width: 470px;
  padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 42px);
}
.m-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 400; line-height: 1.5;
  margin: 14px 0 14px;
}
.m-panel p { font-size: 13.5px; color: var(--ink-dim); }
.sw {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  margin: 0 5px 0 2px; vertical-align: -1px;
  border: 1px solid rgba(255, 255, 255, .25);
}
.sw-moss { background: #2a4438; }
.sw-sumi { background: #23262a; }
.sw-suna { background: #b0a184; }
.m-panel .chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.m-panel .chips i {
  font-style: normal; font-size: 11px; letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  color: var(--brass);
}

/* ── 情景 ─────────────────────────────────── */
.scenes {
  min-height: 130svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18vh clamp(18px, 4vw, 52px);
  max-width: 1140px; margin: 0 auto;
}
.sec-head { text-align: center; }
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 400;
  margin-top: 12px; text-shadow: 0 2px 20px rgba(3, 5, 4, .85);
}
.sec-note { margin-top: 12px; font-size: 11.5px; color: var(--ink-faint); }
.shots {
  display: grid; gap: 18px; margin-top: 42px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  background-size: cover; background-position: center;
  box-shadow: 0 16px 44px rgba(2, 4, 3, .5);
}
/* プレースホルダ(コード生成のグラデーション)。ls1〜4.jpg があれば JS が background-image を差し替える */
.shot.ph-1 { background-image: radial-gradient(140% 110% at 30% 20%, #3a4b42 0%, #16211b 55%, #0a0f0c 100%); }
.shot.ph-2 { background-image: radial-gradient(150% 120% at 70% 15%, #43414f 0%, #1d1b26 55%, #0c0b12 100%); }
.shot.ph-3 { background-image: radial-gradient(140% 110% at 45% 30%, #6a5636 0%, #2a2115 55%, #0f0c07 100%); }
.shot.ph-4 { background-image: radial-gradient(150% 120% at 25% 75%, #2c3d46 0%, #131e24 55%, #090e11 100%); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 4, .78));
  font-size: 12px; letter-spacing: .14em; color: var(--ink-dim);
}

/* ── CTA ──────────────────────────────────── */
.cta {
  min-height: 120svh;
  display: grid; place-items: center;
  padding: 16vh clamp(18px, 4vw, 52px);
}
.cta-panel {
  max-width: 540px; width: 100%; text-align: center;
  padding: clamp(34px, 5vw, 54px) clamp(26px, 5vw, 48px);
}
.cta-panel .mark { color: var(--brass); }
.cta-panel h2 { font-size: clamp(23px, 2.8vw, 31px); font-weight: 400; line-height: 1.55; margin: 18px 0 12px; }
.cta-panel p { font-size: 13px; color: var(--ink-dim); }
#notify { display: grid; gap: 12px; margin-top: 26px; }
#notify input {
  font-size: 14px;
  background: rgba(10, 13, 11, .6); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; outline: none; text-align: center;
  transition: border-color .2s;
}
#notify input:focus { border-color: var(--brass); }
#notify input::placeholder { color: var(--ink-faint); }
#notify button {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  background: var(--brass); color: #171106;
  border: none; border-radius: 10px; padding: 15px 16px; cursor: pointer;
  transition: background .2s, transform .2s;
}
#notify button:hover { background: var(--brass-bright); transform: translateY(-1px); }
.cta-panel .done { margin-top: 22px; color: var(--brass); font-size: 15px; }

/* ── フッター ─────────────────────────────── */
.foot {
  padding: 40px clamp(18px, 4vw, 52px) 56px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 8, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px; color: var(--ink-faint);
  display: grid; gap: 6px;
}

/* ── 出現アニメーション(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; }
}

/* ──────────────────────────────────────────────────────────────
   和文タイポグラフィ調整
   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; }
}

/* 本文は palt の効くゴシックを優先する。
   Google Fonts の Zen Kaku Gothic New は palt を含まないため、読点のあとに
   全角ぶんのアキが残ってしまう。見出しは意匠優先でそのまま、
   読点が多く出る本文だけシステムゴシックに寄せて字面を締める。 */
p, li, dd, td, .lede, .lead, .note, .desc, figcaption, blockquote {
  font-family: "Hiragino Sans", "Yu Gothic", YuGothic, "Zen Kaku Gothic New", sans-serif;
}


/* ── 書体設計（見出し＝個性 / 本文＝可読性） ──────────────────────
   見出し: M PLUS 1
   本文  : BIZ UDPGothic（Google Fonts の和文で palt が効く数少ない書体。
           読点のあとのアキが締まり、Mac / Windows で見え方が揃う）
   欧文は先頭に置いた書体から取り、和文だけが差し替わる。 */
h1, h2, h3, h4, .lede, .lead, .kicker, .statement, blockquote {
  font-family: "Cormorant Garamond", "M PLUS 1", sans-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"]) {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}
