/* AERIUM — 空中庭園都市(架空)
   ダーク×夜景。背景の都市は #bg の WebGL が全て描く。素材画像ゼロ。
   基調: 深い群青の夜空、窓明かりの琥珀、誘導灯の翡翠シアン。 */

:root {
  --bg: #050810;
  --bg-2: #0a1020;
  --ink: #eef2f6;
  --ink-dim: #a8b4c4;
  --ink-faint: #6b7789;
  --amber: #e8c98a;
  --accent: #7fd8d8;
  --accent-deep: #3fa8ac;
  --line: rgba(238, 242, 246, .13);
  --line-strong: rgba(238, 242, 246, .28);
  --glass: rgba(10, 16, 30, .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(1200px 800px at 50% -20%, rgba(63, 168, 172, .10), transparent 60%),
    radial-gradient(1000px 700px at 85% 108%, rgba(232, 201, 138, .07), transparent 55%),
    linear-gradient(180deg, #060b16 0%, var(--bg) 40%, #04060c 100%);
  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; }

/* 周辺減光。canvas の直上・コンテンツの下 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(2, 4, 9, .58));
}

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

::selection { background: rgba(127, 216, 216, .35); }

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

.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); 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(5, 8, 16, .6);
  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(--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; 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(238, 242, 246, .07); }
.links .pill-btn {
  color: #0a1a1c; background: var(--accent); font-weight: 700;
  margin-left: 6px;
}
.links .pill-btn:hover { color: #0a1a1c; background: #a8ecec; }
@media (max-width: 700px) {
  .links a:not(.pill-btn) { display: none; }
}

/* ── 高度計(スクロール進行度) ────────────── */
.altimeter {
  position: fixed; left: clamp(14px, 2.4vw, 30px); bottom: clamp(18px, 4vh, 40px);
  z-index: 9; display: flex; align-items: center; gap: 10px;
  font-family: var(--serif-en); color: var(--ink-faint);
  opacity: 0; transition: opacity .6s ease;
}
.js .altimeter { opacity: 1; }
.no-webgl .altimeter { display: none; }
.alt-label { font-size: 10px; letter-spacing: .4em; }
.alt-value { font-size: 21px; color: var(--amber); font-variant-numeric: tabular-nums; min-width: 74px; }
.alt-value i { font-style: normal; font-size: 12px; color: var(--ink-faint); margin-left: 2px; }
.alt-track {
  width: 90px; height: 1px; background: var(--line-strong);
  position: relative; display: block;
}
.alt-fill {
  position: absolute; left: 0; top: -0.5px; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  display: block;
}
@media (max-width: 700px) { .altimeter { display: none; } }

/* ── ヒーロー ─────────────────────────────── -*/
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(18px, 5vw, 64px);
  position: relative;
}
.hero-inner { max-width: 640px; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.16; font-weight: 400; letter-spacing: .02em;
  margin: 18px 0 22px;
  text-shadow: 0 4px 40px rgba(2, 4, 9, .9);
}
.hero h1 em {
  font-style: normal; color: var(--amber);
}
.hero .lead {
  font-size: clamp(13.5px, 1.5vw, 15.5px); color: var(--ink-dim);
  text-shadow: 0 2px 18px rgba(2, 4, 9, .9);
  max-width: 34em;
}
.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; }
}

/* ── 構想 ─────────────────────────────────── */
.vision {
  min-height: 150svh;
  display: flex; align-items: center; justify-content: center;
  padding: 20vh clamp(18px, 5vw, 60px);
}
.vision-panel {
  max-width: 660px; text-align: center;
  padding: clamp(34px, 5vw, 56px) clamp(26px, 5vw, 56px);
}
.vision-panel h2 {
  font-size: clamp(26px, 4vw, 42px); font-weight: 400; line-height: 1.6;
  margin: 16px 0 18px;
}
.vision-panel p { font-size: clamp(13.5px, 1.5vw, 15px); color: var(--ink-dim); text-align: left; }

/* ── 街区 ─────────────────────────────────── */
.district {
  min-height: 160svh;
  display: flex; align-items: center;
  padding: 20vh clamp(18px, 5vw, 64px);
}
.district.d-right { justify-content: flex-end; }
.district.d-left { justify-content: flex-start; }
.d-panel {
  max-width: 460px;
  padding: clamp(28px, 4vw, 42px) clamp(24px, 4vw, 42px);
}
.d-panel .num {
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .3em;
  color: var(--accent);
}
.d-panel h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 400; margin: 12px 0 12px; }
.d-panel h3 small {
  display: block; font-family: var(--serif-en); font-weight: 400;
  font-size: 13px; color: var(--ink-faint); letter-spacing: .22em; margin-top: 6px;
}
.d-panel p { font-size: 13.5px; color: var(--ink-dim); }
.d-panel .chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.d-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(--amber);
}

/* ── 計画データ ───────────────────────────── */
.plan {
  min-height: 130svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18vh clamp(18px, 4vw, 52px);
  max-width: 1100px; 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(2, 4, 9, .8);
}
.stats {
  display: grid; gap: 18px; margin-top: 46px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat { padding: 26px 22px 22px; text-align: center; }
.stat dt { font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); }
.stat dd { margin-top: 8px; }
.stat b {
  font-family: var(--serif-en); font-weight: 500; font-size: clamp(38px, 4.6vw, 56px);
  color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat i { font-style: normal; font-size: 14px; color: var(--ink-dim); margin-left: 4px; }
.plan-note { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--ink-faint); }

/* ── 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(--amber); }
.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(5, 8, 16, .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(--accent); }
#notify input::placeholder { color: var(--ink-faint); }
#notify button {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  background: var(--accent); color: #0a1a1c;
  border: none; border-radius: 10px; padding: 15px 16px; cursor: pointer;
  transition: background .2s, transform .2s;
}
#notify button:hover { background: #a8ecec; transform: translateY(-1px); }
.cta-panel .done { margin-top: 22px; color: var(--amber); font-size: 15px; }

/* ── フッター ─────────────────────────────── */
.foot {
  padding: 40px clamp(18px, 4vw, 52px) 56px;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 12, .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;
}


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