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

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --ink: #edf1f8;
  --ink-dim: #b0bbcd;
  /* AA 確保: 対 --bg で約 6.1:1（旧 #67718a は 4.12:1 で未達だった） */
  --ink-faint: #8290a8;
  --cyan: #6fd0e8;
  --cyan-hi: #a4e4f4;
  --cyan-deep: #2f7f95;
  --line: rgba(237, 241, 248, .13);
  --line-strong: rgba(237, 241, 248, .27);
  --glass: rgba(10, 15, 28, .58);
  /* 点群の上に数値を置く区画で使う不透明面 */
  --surface: rgba(7, 10, 18, .96);
  --radius: 16px;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  /* 計測値は装飾セリフではなく等幅寄りのゴシックで組む（Murecho は既に読込済み） */
  --num: "Murecho", ui-monospace, "SF Mono", "Zen Kaku Gothic New", monospace;
  --sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --fs-body: clamp(14.5px, 1.05vw, 17px);
  --fs-note: clamp(12px, .85vw, 13.5px);
  --fs-label: clamp(11.5px, .8vw, 13px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

body {
  background:
    radial-gradient(1100px 720px at 78% -12%, rgba(111, 208, 232, .09), transparent 58%),
    radial-gradient(950px 640px at 8% 110%, rgba(47, 127, 149, .10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.95;
  -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: var(--fs-label); 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 .3s var(--ease), background .3s var(--ease);
}
.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: var(--cyan-hi); }

/* ── モバイルドロワー ──────────────────────
   旧実装は 760px 以下でリンクを display:none にしており、
   セクション 5 本ぶんの目次がスマホから消えていた。 */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    background: rgba(5, 7, 13, .95);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s .4s;
  }
  .links.is-open { z-index: 9; opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .links a { font-size: 19px; padding: 14px 26px; letter-spacing: .16em; }
  .links .pill-btn { margin: 22px 0 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu-open, .menu-open body { overflow: hidden; }
}

/* ── ヒーロー ─────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 64px);
  position: relative;
}
/* スクリム: 点群の密度が上がると見出しの白が食われるため、左側を near-black に戻す */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, .82) 32%, rgba(5, 7, 13, .38) 50%, rgba(5, 7, 13, 0) 66%);
  background: linear-gradient(100deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 82%, transparent) 32%,
    color-mix(in srgb, var(--bg) 38%, transparent) 50%,
    transparent 66%);
}
.hero > * { position: relative; z-index: 2; }
.hero-inner { max-width: 660px; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: 1.2; font-weight: 500; letter-spacing: .02em;
  margin: 18px 0 24px;
  text-shadow: 0 4px 40px rgba(2, 3, 7, .9);
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead {
  font-size: clamp(14.5px, 1.5vw, 17px); color: var(--ink-dim);
  text-shadow: 0 2px 18px rgba(2, 3, 7, .9);
  max-width: 31em;
}
/* 稼働状況バー。B2B インフラの第一画面に置くべきは、詩ではなく現在値。 */
.hero-status {
  margin-top: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line-strong);
  background: rgba(7, 10, 18, .7);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.hero-status div {
  padding: 14px clamp(14px, 1.6vw, 20px);
  border-right: 1px solid var(--line);
}
.hero-status div:last-child { border-right: 0; }
.hero-status dt {
  font-size: var(--fs-note); letter-spacing: .16em; color: var(--ink-faint);
  display: flex; align-items: center; gap: 7px;
}
.hero-status dt::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px rgba(111, 208, 232, .9);
}
.hero-status dd {
  margin-top: 5px; font-family: var(--num); font-weight: 200;
  font-size: clamp(19px, 1.9vw, 24px); color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2;
}
.hero-status dd i { font-style: normal; font-size: .55em; color: var(--ink-dim); margin-left: 3px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .34em; color: var(--ink-faint);
  animation: cueFloat 2.6s var(--ease) infinite;
  white-space: nowrap; z-index: 2;
}
@keyframes cueFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: .85; }
  50% { transform: translate(-50%, 7px); opacity: .45; }
}

/* ── 構想 ─────────────────────────────────── */
.vision {
  min-height: 110svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: clamp(80px, 13vh, 170px) clamp(20px, 5vw, 60px);
  position: relative;
}
/* 減光方式: 文の背後だけ点群の輝度を落とす（面を敷くと星雲の見せ場が死ぬため）*/
.vision::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1100px, 96%); height: min(560px, 70%); pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(5, 7, 13, .92) 0%, rgba(5, 7, 13, .82) 42%, rgba(5, 7, 13, .45) 68%, rgba(5, 7, 13, 0) 100%);
}
.vision > * { position: relative; z-index: 1; }
.vision .line {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.4; font-weight: 500; letter-spacing: -.005em;
  text-shadow: 0 2px 30px rgba(2, 3, 7, .95), 0 0 70px rgba(2, 3, 7, .8);
}
.vision .line + .line { margin-top: .3em; }
.vision .line.small {
  font-size: clamp(14px, 1.7vw, 18px);
  color: var(--ink-dim); margin-top: 2.4em; letter-spacing: .06em; font-weight: 300;
  text-shadow: 0 2px 20px rgba(2, 3, 7, .95);
  /* 大見出し用の 1.4 を継承していたため、本文サイズに落ちた注記が窮屈だった
     （2026-09-02 実測: lh/fs = 1.4）。本文として読める 1.85 にする。 */
  line-height: 1.85;
}
.cy { color: var(--cyan); }

/* ── 機能（罫線グリッド） ──────────────────
   角丸ガラスカードをやめ、境界線だけで区切る計器盤の体裁に寄せる。
   B2B インフラのページで面が浮いていると、資料ではなく広告に見える。 */
.product {
  min-height: 106svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(76px, 12vh, 160px) clamp(20px, 4vw, 52px);
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.sec-head { text-align: center; }
/* 3D の明部に載る小さな文字は面が無いので影で守る */
.sec-head .eyebrow { text-shadow: 0 2px 16px rgba(2, 3, 7, .95), 0 0 30px rgba(2, 3, 7, .95); }
.sec-head h2 {
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 500;
  line-height: 1.28; letter-spacing: .02em;
  margin-top: 14px; text-shadow: 0 2px 26px rgba(2, 3, 7, .92);
}
.sec-head .sec-lead {
  max-width: 40em; margin: 18px auto 0;
  font-size: var(--fs-body); color: var(--ink-dim);
  text-shadow: 0 2px 20px rgba(2, 3, 7, .9);
}
.cards {
  display: grid; gap: 0; margin-top: clamp(34px, 4.4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.card {
  padding: clamp(28px, 3.2vw, 40px) clamp(22px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  border-radius: 0; background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .35s var(--ease);
}
.card:last-child { border-right: 0; }
.card:hover { transform: none; background: rgba(111, 208, 232, .05); }
.card .num {
  font-family: var(--num); font-weight: 400; font-size: var(--fs-label);
  letter-spacing: .3em; color: var(--cyan);
}
.card h3 {
  font-size: clamp(24px, 2.5vw, 32px); font-weight: 500;
  line-height: 1.25; margin: 14px 0 10px;
}
.card h3 small {
  display: block; font-weight: 400;
  font-size: var(--fs-note); color: var(--ink-faint); letter-spacing: .14em; margin-top: 8px;
}
.card p { font-size: var(--fs-body); color: var(--ink-dim); }
.card .spec {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  display: grid; gap: 6px;
}
.card .spec span {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: var(--fs-note); color: var(--ink-faint);
}
.card .spec b {
  font-family: var(--num); font-weight: 400; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── 実測（計器盤） ────────────────────────
   点群の最も密なところに数値が来るので、必ず不透明面で受ける。 */
.metrics {
  min-height: 106svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(76px, 12vh, 160px) clamp(20px, 4vw, 52px);
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.stats {
  display: grid; gap: 0; margin-top: clamp(34px, 4.4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
}
.stat {
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.2vw, 28px);
  text-align: left; border-right: 1px solid var(--line);
  border-radius: 0; background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.stat:last-child { border-right: 0; }
.stat dt { font-size: var(--fs-note); letter-spacing: .18em; color: var(--ink-faint); }
.stat dd { margin-top: 10px; }
/* 実測値を装飾セリフで組むのは数字の性格と衝突するため、等幅寄りに変更 */
.stat b {
  font-family: var(--num); font-weight: 200; font-size: clamp(38px, 4.6vw, 58px);
  color: var(--cyan); font-variant-numeric: tabular-nums;
  line-height: 1.05; letter-spacing: -.02em;
}
.stat i { font-style: normal; font-size: var(--fs-note); color: var(--ink-dim); margin-left: 5px; }
.stat .bar {
  display: block; margin-top: 16px; height: 2px; background: var(--line-strong); position: relative;
}
.stat .bar::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: var(--w, 60%);
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
}
.plan-note {
  margin: 0; text-align: center; font-size: var(--fs-note); color: var(--ink-faint);
  background: var(--surface); border: 1px solid var(--line-strong); border-top: 1px solid var(--line);
  padding: 14px 20px;
}

/* ── 仕様（対応環境の表） ──────────────────
   資料請求の手前に、判断材料になる素の表を置く。 */
.spectable {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(76px, 12vh, 160px) clamp(20px, 4vw, 52px);
  max-width: 1000px; margin: 0 auto; width: 100%;
}
.spec-grid {
  margin-top: clamp(30px, 4vw, 50px);
  background: var(--surface); border: 1px solid var(--line-strong);
}
.spec-grid div {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(15px, 1.7vw, 20px) clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line);
}
.spec-grid div:last-child { border-bottom: 0; }
.spec-grid dt { font-size: var(--fs-note); letter-spacing: .16em; color: var(--ink-faint); }
.spec-grid dd { font-size: var(--fs-body); color: var(--ink); }
.spec-grid dd b { font-family: var(--num); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .spec-grid div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── CTA ──────────────────────────────────── */
.cta {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(76px, 12vh, 150px) clamp(20px, 4vw, 52px);
}
.cta-panel {
  max-width: 560px; width: 100%; text-align: center;
  padding: clamp(34px, 5vw, 56px) clamp(26px, 5vw, 48px);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.cta-panel .mark { color: var(--cyan); }
.cta-panel h2 {
  font-size: clamp(26px, 3.2vw, 36px); font-weight: 500;
  line-height: 1.3; letter-spacing: .02em; margin: 18px 0 14px;
}
.cta-panel p { font-size: var(--fs-body); color: var(--ink-dim); }
#notify { display: grid; gap: 12px; margin-top: 26px; }
#notify input {
  font-size: 14px;
  background: rgba(5, 7, 13, .7); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 14px 16px; outline: none; text-align: center;
  transition: border-color .3s var(--ease);
}
#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: 2px; padding: 15px 16px; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
#notify button:hover { background: var(--cyan-hi); transform: translateY(-2px); }
.cta-panel .done { margin-top: 22px; color: var(--cyan); font-size: 15px; }

/* ── 接続（採用）──────────────────────────
   B2B の意思決定導線に採用情報を割り込ませないため、
   資料請求の後ろ・フッター直前の 1 帯に縮小した。 */
.network {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(64px, 9vh, 110px) clamp(20px, 5vw, 64px);
}
.n-panel {
  max-width: 1000px; width: 100%;
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left: 2px solid var(--cyan);
  border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.n-panel h2 {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.3;
  margin: 12px 0 0;
}
.n-panel p { font-size: var(--fs-body); color: var(--ink-dim); }
.n-panel .chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.n-panel .chips i {
  font-style: normal; font-size: var(--fs-note); letter-spacing: .08em;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 12px;
  color: var(--cyan);
}
@media (max-width: 720px) {
  .n-panel { grid-template-columns: 1fr; }
}

/* ── フッター ─────────────────────────────── */
.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;
}

@media (max-width: 760px) {
  .card, .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child, .stat:last-child { border-bottom: 0; }
}

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

/* ── 書体設計（1 箇所に集約。以前は矛盾する 3 ブロックが積まれていた） ──
   旧実装は body { font-weight: 300 } を宣言しながら本文が BIZ UDPGothic（400/700）に
   解決されており、指定した軽さが出ていなかった。本文を Zen Kaku Gothic New(300) に
   一本化し、宣言と描画を一致させる。数値だけ Murecho の等幅寄りに逃がす。 */
h1, h2, h3, h4, .lede, .lead, .kicker, .statement, blockquote {
  font-family: "Murecho", var(--sans);
}
html body :is(p, li, dd, dt, td, .note, .desc, .caption, figcaption, .body, .txt, .text, small):not(code):not(pre):not([class*="mono"]):not([class*="code"]) {
  font-family: var(--sans);
  font-weight: 300;
}
html body :is(.stat b, .card .num, .card .spec b, .hero-status dd, .spec-grid dd b) {
  font-family: var(--num);
}
html body .brand span { font-family: var(--serif-en); }
