/* SEIRAN 星嵐 — AI インフラ(架空)
   ダーク×シアン×菫。背景の点群は #bg の WebGL(GLSL)が全て描く。素材画像ゼロ。 */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --ink: #edf1f8;
  --ink-dim: #a7b2c6;
  --ink-faint: #67718a;
  --cyan: #6fd0e8;
  --violet: #8a7ff0;
  --line: rgba(237, 241, 248, .13);
  --line-strong: rgba(237, 241, 248, .27);
  --glass: rgba(10, 15, 28, .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 78% -12%, rgba(138, 127, 240, .10), transparent 58%),
    radial-gradient(950px 640px at 8% 110%, rgba(111, 208, 232, .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(2, 3, 7, .58));
}

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

::selection { background: rgba(111, 208, 232, .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, 3, 8, .55);
}

.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cyan); 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, 7, 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(--cyan); 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: 4px; }
.links a {
  font-size: 13px; letter-spacing: .1em; font-weight: 400;
  color: var(--ink-dim); text-decoration: none;
  padding: 8px 13px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.links a:hover { color: var(--ink); background: rgba(237, 241, 248, .07); }
.links .pill-btn {
  color: #081218; background: var(--cyan); font-weight: 700;
  margin-left: 6px;
}
.links .pill-btn:hover { color: #081218; background: #a4e4f4; }
@media (max-width: 760px) {
  .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: 620px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.3; font-weight: 500; letter-spacing: .02em;
  margin: 18px 0 22px;
  text-shadow: 0 4px 40px rgba(2, 3, 7, .9);
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead {
  font-size: clamp(13.5px, 1.5vw, 15.5px); color: var(--ink-dim);
  text-shadow: 0 2px 18px rgba(2, 3, 7, .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; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 20vh clamp(18px, 5vw, 60px);
}
.vision .line {
  font-size: clamp(26px, 4.6vw, 50px);
  line-height: 1.9; font-weight: 500;
  text-shadow: 0 2px 26px rgba(2, 3, 7, .85);
}
.vision .line.small {
  font-size: clamp(14px, 1.8vw, 19px);
  color: var(--ink-dim); margin-top: 36px; letter-spacing: .08em; font-weight: 300;
}
.cy { color: var(--cyan); }

/* ── 機能 ─────────────────────────────────── */
.product {
  min-height: 150svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18vh clamp(18px, 4vw, 52px);
  max-width: 1200px; margin: 0 auto;
}
.sec-head { text-align: center; }
.sec-head h2 {
  font-size: clamp(25px, 3.4vw, 38px); font-weight: 500;
  margin-top: 12px; text-shadow: 0 2px 20px rgba(2, 3, 7, .85);
}
.cards {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card { padding: 30px 28px 28px; transition: transform .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card .num {
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .3em;
  color: var(--violet);
}
.card h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; margin: 14px 0 10px; }
.card h3 small {
  display: block; font-weight: 300;
  font-size: 12.5px; color: var(--ink-faint); letter-spacing: .14em; margin-top: 6px;
}
.card p { font-size: 13.5px; color: var(--ink-dim); }

/* ── 実測 ─────────────────────────────────── */
.metrics {
  min-height: 140svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18vh clamp(18px, 4vw, 52px);
  max-width: 1100px; margin: 0 auto;
}
.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(36px, 4.4vw, 54px);
  color: var(--cyan); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat i { font-style: normal; font-size: 13.5px; color: var(--ink-dim); margin-left: 4px; }
.plan-note { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--ink-faint); }

/* ── 接続 ─────────────────────────────────── */
.network {
  min-height: 150svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 20vh clamp(18px, 5vw, 64px);
}
.n-panel {
  max-width: 470px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px);
}
.n-panel h2 {
  font-size: clamp(25px, 3.2vw, 36px); font-weight: 500; line-height: 1.5;
  margin: 14px 0 14px;
}
.n-panel p { font-size: 13.5px; color: var(--ink-dim); }
.n-panel .chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.n-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(--violet);
}

/* ── 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(--cyan); }
.cta-panel h2 { font-size: clamp(22px, 2.7vw, 29px); font-weight: 500; line-height: 1.65; 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, 7, 13, .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(--cyan); }
#notify input::placeholder { color: var(--ink-faint); }
#notify button {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  background: var(--cyan); color: #081218;
  border: none; border-radius: 10px; padding: 15px 16px; cursor: pointer;
  transition: background .2s, transform .2s;
}
#notify button:hover { background: #a4e4f4; transform: translateY(-1px); }
.cta-panel .done { margin-top: 22px; color: var(--cyan); font-size: 15px; }

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


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