/* ═══════════════════════════════════════════════════════
   PROJECT CHIMERA — NEO NOIR GLITCHWAVE
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-0: #050508;
  --bg-1: #0a0a12;
  --bg-2: #0e0e1c;
  --cyan: #00f6ff;
  --magenta: #ff2bd6;
  --green: #39ff14;
  --yellow: #ffd60a;
  --red: #ff3355;
  --text: #d8e1e8;
  --dim: #74838f;
  --line: rgba(0, 246, 255, .18);
  --line-soft: rgba(216, 225, 232, .08);
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-ui: 'Rajdhani', 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Zen Kaku Gothic New', 'Rajdhani', sans-serif;
  --glow-c: 0 0 8px rgba(0, 246, 255, .8), 0 0 28px rgba(0, 246, 255, .35);
  --glow-m: 0 0 8px rgba(255, 43, 214, .8), 0 0 28px rgba(255, 43, 214, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(42, 10, 42, .55), transparent 60%),
    radial-gradient(ellipse 70% 55% at 15% 15%, rgba(0, 31, 63, .5), transparent 60%),
    var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan); color: var(--bg-0); }

.mono { font-family: var(--font-mono); letter-spacing: .08em; }
.en { font-family: var(--font-ui); letter-spacing: .06em; }
.txt-cyan { color: var(--cyan); text-shadow: var(--glow-c); }
b, strong { font-weight: 700; }

/* ── 全体オーバーレイ: スキャンライン & ノイズ ── */
.crt {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, .13) 2px 4px);
  mix-blend-mode: multiply;
}
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    transparent 0%, transparent 48%,
    rgba(0, 246, 255, .04) 49.8%, rgba(0, 246, 255, .05) 50.2%,
    transparent 52%, transparent 100%);
  animation: crt-roll 9s linear infinite;
}
@keyframes crt-roll { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.noise {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 9989; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  animation: noise-jitter .45s steps(4) infinite;
}
@keyframes noise-jitter {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); } 75% { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

/* ── マウス追従レティクル(PCのみ) ── */
.reticle {
  position: fixed; left: 0; top: 0; z-index: 9991; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1px solid rgba(0, 246, 255, .65); border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 246, 255, .25), inset 0 0 8px rgba(0, 246, 255, .12);
  transition: width .22s ease, height .22s ease, margin .22s ease, border-color .22s, transform .06s linear;
}
.reticle::before, .reticle::after {
  content: ""; position: absolute; background: rgba(0, 246, 255, .75);
}
.reticle::before { left: 50%; top: -7px; width: 1px; height: 40px; transform: translateX(-50%) scaleY(.32) scaleX(3.5); transform-origin: center; }
.reticle::after { top: 50%; left: -7px; height: 1px; width: 40px; transform: translateY(-50%) scaleX(.32) scaleY(3.5); transform-origin: center; }
.reticle.is-hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--magenta); box-shadow: 0 0 16px rgba(255, 43, 214, .4); }
@media (hover: none), (pointer: coarse) { .reticle { display: none; } }

/* ═══ BOOT LOADER ═══ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(520px, 86vw); }
.loader-logo {
  font-family: var(--font-display); font-size: 34px; font-weight: 900;
  color: var(--cyan); text-shadow: var(--glow-c); letter-spacing: .18em;
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px;
}
.loader-logo span { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--dim); letter-spacing: .3em; }
.loader-log {
  min-height: 108px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--dim); line-height: 1.8; white-space: pre-wrap;
}
.loader-log .ok-line { color: var(--cyan); }
.loader-bar-wrap {
  height: 4px; margin: 22px 0 10px; background: rgba(216, 225, 232, .1);
  position: relative; overflow: hidden;
}
.loader-bar {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 14px rgba(0, 246, 255, .8);
}
.loader-pct { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); text-align: right; letter-spacing: .25em; }
.loader-skip {
  margin-top: 30px; background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  letter-spacing: .2em; padding: 8px; transition: color .2s;
}
.loader-skip:hover { color: var(--cyan); }

/* ═══ HEADER / HUD NAV ═══ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 44px);
  background: linear-gradient(to bottom, rgba(5, 5, 8, .92), rgba(5, 5, 8, .68));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-glyph {
  font-family: var(--font-display); font-size: 26px; font-weight: 900;
  color: var(--cyan); text-shadow: var(--glow-c);
}
.brand-text {
  font-family: var(--font-display); font-weight: 700; color: var(--text);
  font-size: 17px; letter-spacing: .12em; line-height: 1.15; display: block;
}
.brand-text b { color: var(--magenta); text-shadow: var(--glow-m); }
.brand-text small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9px; color: var(--dim); letter-spacing: .22em; }

.hud-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.hud-nav ul { display: flex; list-style: none; gap: clamp(12px, 1.6vw, 24px); }
.nav-link {
  position: relative; font-family: var(--font-ui); font-weight: 600;
  font-size: 14px; letter-spacing: .18em; color: var(--dim);
  text-decoration: none; padding: 6px 2px; transition: color .25s, text-shadow .25s;
}
.nav-link i {
  font-style: normal; font-family: var(--font-mono); font-size: 9px;
  color: var(--cyan); margin-right: 5px; vertical-align: 20%; opacity: .85;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0%;
  background: var(--cyan); box-shadow: var(--glow-c); transition: width .3s ease;
}
.nav-link:hover { color: var(--cyan); text-shadow: var(--glow-c); }
.nav-link:hover::after { width: 100%; }

.snd-toggle {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  color: var(--dim); background: none; border: 1px solid var(--line-soft);
  padding: 6px 10px; cursor: pointer; transition: all .25s;
}
.snd-toggle[aria-pressed="true"] { color: var(--green); border-color: rgba(57, 255, 20, .45); text-shadow: 0 0 8px rgba(57, 255, 20, .7); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--cyan); margin: 5px 0; transition: .3s; box-shadow: 0 0 6px rgba(0,246,255,.7); }

/* ═══ BUTTONS ═══ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; letter-spacing: .16em;
  text-decoration: none; cursor: pointer; border: none;
  padding: 15px 30px; font-size: 15px; overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .2s ease, box-shadow .3s ease, color .25s;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-txt { position: relative; z-index: 2; }
.btn-arrow { position: relative; z-index: 2; transition: transform .25s; }
.btn-ghost { background: rgba(216, 225, 232, .04); color: var(--cyan); border: 1px solid var(--line); backdrop-filter: blur(3px); }
.btn-ghost:hover { background: rgba(0, 246, 255, .1); box-shadow: 0 0 24px rgba(0, 246, 255, .25); }
.btn-ghost:hover .btn-arrow { transform: translateX(5px); }

.btn-primary { background: var(--cyan); color: #001014; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 246, 255, .55); }

/* グリッチボタン */
.btn-glitch { isolation: isolate; }
.btn-fill {
  position: absolute; inset: 0; z-index: 1; background: var(--magenta);
  transform: translateX(-101%);
}
.btn-glitch:hover .btn-fill { animation: btn-fill .45s steps(3) forwards; }
.btn-glitch:hover { color: #fff; }
.btn-glitch:hover .btn-txt { text-shadow: 1px 0 var(--cyan), -1px 0 var(--magenta); }
@keyframes btn-fill {
  0% { transform: translateX(-101%); }
  70% { transform: translateX(-6%); }
  100% { transform: translateX(0); }
}
.btn-xl { padding: 21px 46px; font-size: 18px; }
.btn-nav { padding: 10px 20px; font-size: 13px; background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px var(--line); }
.btn-nav:hover { background: var(--cyan); color: #001014; box-shadow: 0 0 26px rgba(0, 246, 255, .5); }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px clamp(16px, 5vw, 64px) 110px;
  overflow: hidden;
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    conic-gradient(from 210deg at 78% 30%, rgba(255, 43, 214, .09), transparent 22%),
    conic-gradient(from 30deg at 18% 72%, rgba(0, 246, 255, .07), transparent 25%);
  filter: blur(2px);
  animation: aurora-breathe 12s ease-in-out infinite alternate;
}
@keyframes aurora-breathe { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }

/* パースグリッド床 */
.hero-grid-floor, .cta-grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -2%; height: 42%; z-index: 0;
  background:
    repeating-linear-gradient(to top, rgba(0, 246, 255, .16) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to right, rgba(0, 246, 255, .16) 0 1px, transparent 1px 56px);
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 88%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 88%);
  animation: grid-run 2.6s linear infinite;
}
.cta-grid-floor { height: 60%; opacity: .6; }
@keyframes grid-run { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 0 0; } }

/* HUDコーナーフレーム */
.hero-frame { position: absolute; inset: 96px 34px 34px; z-index: 1; pointer-events: none; }
.hf { position: absolute; width: 34px; height: 34px; }
.hf-tl { top: 0; left: 0; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); box-shadow: -2px -2px 12px rgba(0,246,255,.25); }
.hf-tr { top: 0; right: 0; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); box-shadow: 2px -2px 12px rgba(0,246,255,.25); }
.hf-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--magenta); border-left: 2px solid var(--magenta); box-shadow: -2px 2px 12px rgba(255,43,214,.25); }
.hf-br { bottom: 0; right: 0; border-bottom: 2px solid var(--magenta); border-right: 2px solid var(--magenta); box-shadow: 2px 2px 12px rgba(255,43,214,.25); }

.hero-content { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; width: 100%; }

.hero-kicker { color: var(--yellow); font-size: clamp(10px, 1.3vw, 13px); letter-spacing: .32em; margin-bottom: 22px; text-shadow: 0 0 10px rgba(255, 214, 10, .4); }

.hero-title { margin-bottom: 26px; line-height: 1.06; perspective: 600px; }
.hero-title .line-1 {
  display: block; font-family: var(--font-display);
  font-size: clamp(58px, 12.5vw, 172px); font-weight: 900;
  letter-spacing: .04em; color: #f4feff;
  text-shadow: 0 0 22px rgba(0, 246, 255, .5), 0 0 80px rgba(0, 246, 255, .22);
}
.hero-title .line-2 {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: clamp(26px, 4.6vw, 54px); letter-spacing: .08em;
  margin-top: 14px; color: var(--text);
}
.hero-title .line-2 em {
  font-style: normal; color: var(--magenta);
  text-shadow: var(--glow-m); white-space: nowrap;
}

.hero-lead { color: var(--dim); font-size: clamp(13px, 1.6vw, 16px); line-height: 2.2; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 56px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 74px); border-top: 1px dashed var(--line-soft); padding-top: 30px; max-width: 720px; }
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; color: var(--cyan); text-shadow: 0 0 16px rgba(0,246,255,.45); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 10px; color: var(--dim); letter-spacing: .22em; display: block; margin-top: 4px; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .34em; color: var(--dim);
}
.scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--cyan), transparent); overflow: hidden; position: relative; }
.scroll-line::after { content:""; position:absolute; left:0; top:-40%; width:100%; height:40%; background:#fff; animation: cue-fall 1.6s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes cue-fall { to { top: 110%; } }

/* グリッチタイトルエフェクト */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
  opacity: 0; pointer-events: none; will-change: clip-path;
}
.glitch::before { color: var(--cyan); }
.glitch::after { color: var(--magenta); }
.glitch.animated::before { opacity: .85; animation: glitch-a 2.8s infinite linear alternate-reverse; }
.glitch.animated::after { opacity: .85; animation: glitch-b 3.4s infinite linear alternate-reverse; }
.glitch-hover:hover::before { opacity: .85; animation: glitch-a 2.4s infinite linear alternate-reverse; }
.glitch-hover:hover::after { opacity: .85; animation: glitch-b 2.8s infinite linear alternate-reverse; }
[data-glitch] { position: relative; display: inline-block; }
[data-glitch]:hover { animation: text-shake .3s steps(2) infinite; }
[data-glitch]:hover::before {
  content: attr(data-glitch); position: absolute; left: 2px; top: 0;
  color: var(--cyan); opacity: .7; clip-path: inset(0 0 55% 0);
}
@keyframes glitch-a {
  0%   { clip-path: inset(18% 0 76% 0); transform: translate(-4px, -2px); }
  20%  { clip-path: inset(62% 0 8% 0);  transform: translate(3px, 1px); }
  40%  { clip-path: inset(32% 0 48% 0); transform: translate(-3px, 0); }
  60%  { clip-path: inset(80% 0 4% 0);  transform: translate(4px, 2px); }
  80%  { clip-path: inset(8% 0 82% 0);  transform: translate(-2px, -1px); }
  100% { clip-path: inset(48% 0 30% 0); transform: translate(2px, 0); }
}
@keyframes glitch-b {
  0%   { clip-path: inset(66% 0 12% 0); transform: translate(4px, 1px); }
  25%  { clip-path: inset(12% 0 72% 0); transform: translate(-4px, -1px); }
  50%  { clip-path: inset(44% 0 36% 0); transform: translate(3px, 2px); }
  75%  { clip-path: inset(84% 0 2% 0);  transform: translate(-3px, -2px); }
  100% { clip-path: inset(26% 0 58% 0); transform: translate(4px, 0); }
}
@keyframes text-shake {
  0% { transform: translate(0, 0); } 50% { transform: translate(-2px, 1px); } 100% { transform: translate(1px, -1px); }
}

/* ═══ TICKER ═══ */
.ticker {
  border-block: 1px solid var(--line); background: rgba(0, 31, 63, .25);
  overflow: hidden; padding: 11px 0; position: relative; z-index: 3;
}
.ticker-track { display: flex; width: max-content; animation: ticker-move 36s linear infinite; }
.ticker p { white-space: nowrap; color: var(--dim); font-size: 12px; padding-right: 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-move { to { transform: translateX(-50%); } }

/* ═══ COMMON SECTION ═══ */
.section { position: relative; padding: clamp(90px, 12vw, 150px) clamp(16px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-no { display: inline-block; font-size: 11px; color: var(--cyan); letter-spacing: .3em; border: 1px solid var(--line); padding: 5px 12px; margin-bottom: 20px; background: rgba(0, 246, 255, .05); }
.sec-title { font-weight: 700; line-height: 1.4; }
.sec-title .jp { display: block; font-size: clamp(28px, 5vw, 52px); letter-spacing: .06em; }
.sec-title .en { display: block; font-size: clamp(24px, 4vw, 42px); font-family: var(--font-display); font-weight: 900; letter-spacing: .05em; margin-top: 4px; }
.accent-m { color: var(--magenta); text-shadow: var(--glow-m); }
.sub-en { color: var(--dim); font-size: clamp(12px, 1.8vw, 16px); letter-spacing: .2em; margin-top: 10px; font-weight: 400; }
.sec-desc { color: var(--dim); margin-top: 22px; max-width: 560px; }

/* スクロールリビール */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }
.is-delay-1 { transition-delay: .12s; }
.is-delay-2 { transition-delay: .24s; }
.is-delay-3 { transition-delay: .36s; }

/* ヒーロー起動時アニメ(L1-L4) */
.reveal-l1, .reveal-l2, .reveal-l3, .reveal-l4 {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
}
body.booted .reveal-l1 { opacity: 1; transform: none; transition-delay: .1s; }
body.booted .reveal-l2 { opacity: 1; transform: none; transition-delay: .3s; }
body.booted .reveal-l3 { opacity: 1; transform: none; transition-delay: .55s; }
body.booted .reveal-l4 { opacity: 1; transform: none; transition-delay: .8s; }

/* ═══ PROLOGUE ═══ */
.prologue-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.prologue-copy p { margin-bottom: 1.4em; color: var(--text); }
.prologue-code { color: var(--cyan); font-size: 12px; letter-spacing: .22em; margin-bottom: 26px !important; }
.terminal-quote {
  border-left: 2px solid var(--magenta); padding: 18px 22px; margin-top: 34px;
  background: linear-gradient(90deg, rgba(255, 43, 214, .08), transparent 70%);
  color: var(--text); font-size: 14px; line-height: 2.1; box-shadow: inset 0 0 30px rgba(255, 43, 214, .05);
}
.terminal-quote span:first-child { color: var(--magenta); margin-right: 8px; }
.cursor-blink { animation: blink 1s steps(2) infinite; color: var(--cyan); display: inline-block; margin-left: 6px; }
@keyframes blink { 50% { opacity: 0; } }

.prologue-viz { position: relative; padding: 34px 6px 6px; }
.viz-panel {
  position: relative; z-index: 2; background: rgba(10, 10, 18, .85);
  border: 1px solid var(--line); padding: 22px;
  box-shadow: 0 0 44px rgba(0, 246, 255, .07), inset 0 0 24px rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--cyan); letter-spacing: .2em;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; margin-bottom: 20px;
}
.warn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(2) infinite; }
.viz-bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; }
.vbar {
  flex: 1; height: var(--w, 20%); position: relative;
  background: linear-gradient(to top, rgba(0, 246, 255, .5), rgba(0, 246, 255, .95));
  box-shadow: 0 0 18px rgba(0, 246, 255, .3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.vbar i {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 10px; color: var(--dim); letter-spacing: .14em;
}
.vbar-hot { background: linear-gradient(to top, rgba(255, 43, 214, .5), var(--magenta)); box-shadow: 0 0 22px rgba(255, 43, 214, .45); }
.prologue-viz.visible .vbar { transform: scaleY(1); }
.prologue-viz.visible .vbar:nth-child(2) { transition-delay: .15s; }
.prologue-viz.visible .vbar:nth-child(3) { transition-delay: .3s; }
.prologue-viz.visible .vbar:nth-child(4) { transition-delay: .45s; }
.viz-caption { margin-top: 42px; text-align: center; font-size: 10px; color: var(--dim); letter-spacing: .24em; }

.deco-ring {
  position: absolute; inset: 12% 8% auto auto; width: 240px; height: 240px; z-index: 1;
  border: 1px dashed rgba(255, 43, 214, .4); border-radius: 50%;
  animation: ring-spin 24s linear infinite;
}
.deco-ring::before { content: ""; position: absolute; inset: 14px; border: 1px dotted rgba(0, 246, 255, .35); border-radius: 50%; }
.deco-ring-2 { inset: 24% auto auto 0; width: 150px; height: 150px; border-color: rgba(0, 246, 255, .35); animation-duration: 17s; animation-direction: reverse; z-index: 0; }
.deco-ring-2::before { display: none; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ═══ SOLUTION MODULES ═══ */
.module-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.module-card {
  position: relative; padding: 34px 26px 26px; min-height: 320px;
  background: linear-gradient(160deg, rgba(14, 14, 28, .92), rgba(10, 10, 18, .88));
  border: 1px solid var(--line-soft); overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column; gap: 14px;
}
.module-card:hover, .module-card:focus-visible {
  transform: translateY(-8px); border-color: rgba(0, 246, 255, .55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 34px rgba(0, 246, 255, .12);
  outline: none;
}
.module-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    linear-gradient(rgba(0, 246, 255, .06) 1px, transparent 1px) 0 0 / 100% 3px;
  transition: opacity .3s;
}
.module-card:hover::before { opacity: 1; animation: scan-slide 1.4s linear infinite; }
@keyframes scan-slide { to { background-position: 0 30px; } }
.corner { position: absolute; width: 16px; height: 16px; transition: .35s; }
.corner.tl { top: 10px; left: 10px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--magenta); border-right: 2px solid var(--magenta); }
.module-card:hover .corner { width: 26px; height: 26px; }

.module-icon {
  font-size: 30px; color: var(--cyan); text-shadow: var(--glow-c);
  width: 64px; height: 64px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(0, 246, 255, .06);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.module-card:hover .module-icon { transform: rotateY(360deg); }
.module-icon.magenta { color: var(--magenta); text-shadow: var(--glow-m); border-color: rgba(255,43,214,.4); background: rgba(255,43,214,.06); }
.module-icon.green { color: var(--green); text-shadow: 0 0 8px rgba(57,255,20,.8), 0 0 24px rgba(57,255,20,.35); border-color: rgba(57,255,20,.4); background: rgba(57,255,20,.06); }

.module-name { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.3; }
.module-name em { display: block; font-style: normal; font-family: var(--font-body); font-size: 13px; color: var(--cyan); letter-spacing: .14em; margin-top: 6px; font-weight: 500; }
.module-desc { font-size: 14px; color: var(--dim); line-height: 2; flex-grow: 1; }
.module-desc strong { color: var(--text); }
.module-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); border-top: 1px dashed var(--line-soft); padding-top: 14px; letter-spacing: .18em; }
.module-foot .ok { color: var(--green); text-shadow: 0 0 8px rgba(57, 255, 20, .6); animation: blink 2.4s steps(2) infinite; }

/* ═══ SYSTEM ARCHITECTURE ═══ */
.sys-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.sys-diagram {
  position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; width: 100%;
}
.diagram-lines path {
  stroke: rgba(0, 246, 255, .4); stroke-width: 1; fill: none;
  stroke-dasharray: 6 6; animation: dash-flow 1.2s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -12; } }
.diagram-node {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 11px; letter-spacing: .16em; color: var(--cyan);
  border: 1px solid var(--line); background: rgba(10, 14, 26, .9);
  padding: 10px 14px; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  text-shadow: 0 0 8px rgba(0, 246, 255, .6);
}
.node-core {
  left: 50%; top: 50%; font-family: var(--font-display); font-size: 20px; font-weight: 900;
  padding: 26px 34px; color: #fff; border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 246, 255, .3), inset 0 0 24px rgba(0, 246, 255, .12);
  animation: core-pulse 3s ease-in-out infinite;
}
.node-a { left: 22%; top: 22%; } .node-b { left: 78%; top: 24%; }
.node-c { left: 50%; top: 88%; border-color: rgba(255, 43, 214, .5); color: var(--magenta); text-shadow: 0 0 8px rgba(255, 43, 214, .6); }
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 34px rgba(0, 246, 255, .25), inset 0 0 20px rgba(0, 246, 255, .1); }
  50% { box-shadow: 0 0 60px rgba(0, 246, 255, .5), inset 0 0 30px rgba(0, 246, 255, .2); }
}
.pulse-ring {
  position: absolute; left: 50%; top: 50%; width: 90px; height: 90px;
  margin: -45px 0 0 -45px; border: 1px solid rgba(0, 246, 255, .5); border-radius: 50%;
  animation: pulse-out 2.6s ease-out infinite; pointer-events: none;
}
@keyframes pulse-out {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(4.2); opacity: 0; }
}

.spec-block { margin-bottom: 34px; }
.spec-block h3 { font-size: 13px; color: var(--cyan); letter-spacing: .22em; font-weight: 400; margin-bottom: 16px; text-shadow: 0 0 8px rgba(0,246,255,.5); }
.spec-list { list-style: none; display: grid; gap: 13px; }
.spec-list li { display: grid; grid-template-columns: 1fr; gap: 5px; font-size: 12.5px; color: var(--dim); letter-spacing: .1em; }
.spec-list li b.bar {
  position: relative; display: block; height: 8px;
  background: rgba(216, 225, 232, .07); font-weight: 400;
}
.spec-list li b.bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--val, 50%);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(0, 246, 255, .5);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1) .2s;
}
.sys-data.visible .spec-list li b.bar::after { transform: scaleX(1); }

/* アンカー移動時の固定ヘッダー被り対策 */
.section[id], .cta-section[id] { scroll-margin-top: 74px; }
.spec-list li u { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); text-decoration: none; font-size: 10px; color: var(--text); text-shadow: 0 0 6px #000; letter-spacing: .12em; z-index: 1; }
.bar-fast::after { background: linear-gradient(90deg, var(--yellow), var(--red)) !important; }
.bar-green::after { background: var(--green) !important; }
.sys-note { font-size: 10.5px; color: var(--dim); opacity: .8; }

/* ═══ ROADMAP TIMELINE ═══ */
.timeline { list-style: none; position: relative; max-width: 900px; margin: 0 auto; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 47px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--cyan), var(--magenta)); box-shadow: 0 0 12px rgba(0, 246, 255, .5);
}
.tl-item { position: relative; display: flex; gap: 26px; align-items: flex-start; padding: 0 0 46px 0; }
.tl-node {
  flex: 0 0 44px; height: 44px; margin-left: 0; z-index: 1;
  display: grid; place-items: center; font-size: 12px; letter-spacing: .08em;
  background: var(--bg-1); color: var(--cyan);
  border: 1px solid var(--line); box-shadow: 0 0 16px rgba(0, 246, 255, .25);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}
.tl-node.live { color: var(--green); border-color: rgba(57, 255, 20, .5); box-shadow: 0 0 18px rgba(57, 255, 20, .35); animation: node-live 1.6s steps(2) infinite; }
.tl-node.redacted { color: var(--red); border-color: rgba(255, 51, 85, .5); }
@keyframes node-live { 50% { opacity: .55; } }
.tl-card {
  flex: 1; padding: 20px 24px; background: rgba(10, 10, 18, .8);
  border: 1px solid var(--line-soft); position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.tl-item:hover .tl-card { border-color: var(--line); box-shadow: 0 0 28px rgba(0, 246, 255, .08); transform: translateX(6px); }
.tl-card time { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: .24em; margin-bottom: 8px; }
.tl-card h3 { font-family: var(--font-ui); font-size: 19px; font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; }
.tl-card p { font-size: 14px; color: var(--dim); }
.tl-live { border-color: rgba(57, 255, 20, .35); }
.tl-secret { border-color: rgba(255, 51, 85, .3); }
.tl-secret h3 { color: var(--red); filter: blur(.4px); }

/* ═══ CTA CLOSING ═══ */
.cta-section {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(110px, 14vw, 180px) 20px clamp(140px, 16vw, 200px);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 60% 50% at 50% 115%, rgba(255, 43, 214, .12), transparent 65%),
    radial-gradient(ellipse 50% 45% at 50% -5%, rgba(0, 246, 255, .08), transparent 60%);
}
.cta-code { color: var(--dim); font-size: 11px; letter-spacing: .3em; margin-bottom: 26px; }
.cta-title {
  font-size: clamp(34px, 6.6vw, 72px); font-weight: 700; line-height: 1.35;
  letter-spacing: .08em; margin-bottom: 24px;
}
.cta-copy { color: var(--dim); margin-bottom: 46px; }
.countdown { display: flex; justify-content: center; align-items: baseline; gap: clamp(6px, 1.6vw, 16px); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.countdown i { font-style: normal; color: var(--cyan); opacity: .6; font-size: clamp(18px, 3vw, 30px); }
.cd-cell b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5.4vw, 54px); color: var(--cyan);
  text-shadow: var(--glow-c); letter-spacing: .06em; min-width: 2ch;
}
.cd-cell span { display: block; font-size: 9px; letter-spacing: .3em; color: var(--dim); margin-top: 6px; }
.cd-label { font-size: 10px; color: var(--dim); letter-spacing: .26em; margin-bottom: 44px; }
.cta-note { margin-top: 26px; font-size: 11px; color: var(--yellow); letter-spacing: .2em; text-shadow: 0 0 10px rgba(255, 214, 10, .35); }

/* ═══ FOOTER ═══ */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-0); position: relative; z-index: 2; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 44px clamp(16px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end;
}
.footer-brand { font-size: 13px; line-height: 2; color: var(--text); }
.footer-brand .brand-glyph { font-size: 18px; }
.footer-brand small { color: var(--dim); font-size: 10px; letter-spacing: .14em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; }
.footer-links a { color: var(--dim); text-decoration: none; letter-spacing: .1em; transition: color .25s, text-shadow .25s; }
.footer-links a:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 246, 255, .7); }
.footer-copy { width: 100%; font-size: 10px; color: var(--dim); letter-spacing: .18em; border-top: 1px dashed var(--line-soft); padding-top: 22px; margin-top: 6px; }

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(2, 3, 6, .82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal-frame {
  position: relative; width: min(520px, 94vw);
  background: linear-gradient(165deg, #0d0d1c, #08080f);
  border: 1px solid rgba(0, 246, 255, .35);
  box-shadow: 0 0 70px rgba(0, 246, 255, .15), 0 30px 80px rgba(0, 0, 0, .8);
  padding: 0 30px 30px;
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .38s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.modal-overlay.open .modal-frame { transform: none; opacity: 1; }
.mf-corner { position: absolute; width: 20px; height: 20px; }
.c-tl { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.c-tr { top: -1px; right: -1px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.c-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--magenta); border-left: 2px solid var(--magenta); }
.c-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--magenta); border-right: 2px solid var(--magenta); }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--cyan); letter-spacing: .2em;
  border-bottom: 1px solid var(--line-soft); padding: 20px 0 14px; margin-bottom: 22px;
  text-shadow: 0 0 10px rgba(0, 246, 255, .5);
}
.modal-close {
  background: none; border: 1px solid var(--line-soft); color: var(--dim);
  width: 30px; height: 30px; font-size: 16px; cursor: pointer; line-height: 1; transition: .25s;
}
.modal-close:hover { color: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(255, 51, 85, .4); }
.form-intro { font-size: 11.5px; color: var(--dim); margin-bottom: 20px; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-size: 10.5px; color: var(--cyan); letter-spacing: .2em; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; background: rgba(0, 246, 255, .03);
  border: 1px solid var(--line-soft); border-left: 2px solid var(--cyan);
  color: var(--text); font-family: var(--font-mono); font-size: 14px;
  padding: 12px 14px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder { color: rgba(116, 131, 143, .55); }
.field input:focus { border-color: var(--cyan); background: rgba(0, 246, 255, .06); box-shadow: 0 0 18px rgba(0, 246, 255, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--dim); cursor: pointer; margin-bottom: 24px; }
.check input { accent-color: var(--cyan); margin-top: 3px; width: 15px; height: 15px; cursor: pointer; }
.check .req { color: var(--red); }
.form-error { color: var(--red); font-size: 11.5px; margin-bottom: 16px; text-shadow: 0 0 8px rgba(255, 51, 85, .5); }
.btn-submit { width: 100%; justify-content: center; }
.form-footnote { text-align: center; font-size: 10px; color: var(--dim); margin-top: 16px; opacity: .8; }

.modal-success { text-align: center; padding: 26px 0 6px; }
.success-glyph {
  width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center;
  font-size: 30px; color: var(--green); border: 1px solid rgba(57, 255, 20, .5);
  box-shadow: 0 0 30px rgba(57, 255, 20, .25), inset 0 0 16px rgba(57, 255, 20, .12);
  animation: success-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes success-pop { from { transform: scale(.4); opacity: 0; } }
.modal-success h3 { font-family: var(--font-display); font-size: 18px; color: var(--green); letter-spacing: .16em; margin-bottom: 12px; text-shadow: 0 0 14px rgba(57, 255, 20, .5); }
.success-line { font-size: 13px; margin-bottom: 18px; }
.token-box {
  display: inline-block; border: 1px dashed rgba(57, 255, 20, .5); padding: 10px 18px;
  color: var(--green); font-size: 13px; margin-bottom: 18px; letter-spacing: .14em;
  background: rgba(57, 255, 20, .05);
}
.success-note { font-size: 11px; color: var(--dim); line-height: 2; margin-bottom: 26px; }
.modal-done { justify-content: center; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1020px) {
  .module-grid { grid-template-columns: 1fr 1fr; }
  .prologue-body, .sys-layout { grid-template-columns: 1fr; }
  .prologue-viz { max-width: 480px; margin-top: 20px; }
}
@media (max-width: 720px) {
  body { line-height: 2; }
  .hud-nav {
    position: fixed; inset: 0 0 auto; top: 0; padding: 96px 8vw 40px;
    flex-direction: column; align-items: stretch; gap: 18px;
    background: rgba(4, 5, 9, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-105%); transition: transform .45s cubic-bezier(.16, 1, .3, 1);
    z-index: -1;
  }
  .hud-nav ul { flex-direction: column; gap: 4px; }
  .nav-link { display: block; font-size: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
  .snd-toggle { align-self: flex-start; }
  .hud-nav.is-open { transform: translateY(0); }
  .menu-toggle { display: block; position: relative; z-index: 1; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-frame { inset: 90px 16px 22px; }
  .hero { padding-top: 118px; }
  .hero-stats { gap: 22px 34px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; }
  .timeline::before { left: 29px; }
  .tl-node { flex-basis: 36px; height: 36px; font-size: 10px; }
  .countdown { gap: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reticle { display: none; }
  .reveal, .reveal-l1, .reveal-l2, .reveal-l3, .reveal-l4 { opacity: 1; transform: none; }
}
