/* ==========================================================================
   KOBOT ロボットプログラミング工房
   レイアウトの考え方：ページ全体がロボット競技のフィールド。
   白いマットに方眼、START（ヒーロー）から GOAL（申込）まで、
   各セクションは「チェックポイント」として並ぶ。
   ========================================================================== */
:root {
  --mat: #F6F7FB;
  --mat-2: #E9EDF6;
  --paper: #FFFFFF;
  --ink: #0D1222;
  --ink-2: #464F6B;
  --ink-3: #848DA8;
  --line: rgba(13, 18, 34, .12);
  --grid: rgba(35, 80, 255, .065);
  --blue: #2350FF;
  --blue-d: #1636C9;
  --sky: #8FD3FF;
  --orange: #FF6A13;
  --yellow: #FFD23C;
  --lime: #B6F04A;
  --pink: #FF9FCB;
  --red: #E8344E;
  --led: #3DE8F2;
  --night: #090D1B;
  --night-2: #121831;

  --f-display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-pixel: "DotGothic16", "Martian Mono", ui-monospace, monospace;

  --r-m: 18px;
  --r-l: 28px;
  --header-h: 72px;
  --gx: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gx-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-booting body { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
img, svg, canvas { max-width: 100%; }
img { height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gx);
  padding-right: var(--gx-r);
}

/* ---------- 共通パーツ ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.note { font-size: 12px; color: var(--ink-3); margin: 16px 0 0; line-height: 1.6; }

.btn {
  --bg: var(--paper);
  --fg: var(--ink);
  --depth: 5px;
  --lift: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.35em;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 calc(var(--depth) - var(--lift)) 0 var(--ink);
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--lift)), 0);
  transition: box-shadow .12s, transform .12s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: var(--depth); }
.btn--primary { --bg: var(--orange); --fg: #fff; }
.btn--primary:hover { --bg: #FF7B2E; }
.btn--ghost { --bg: var(--paper); }
.btn--ghost:hover { --bg: var(--mat-2); }
.btn--sm { font-size: 13px; padding: .6em 1em; --depth: 3px; border-width: 2px; border-radius: 10px; }
.btn--lg { font-size: 17px; padding: 1em 1.55em; }
.btn__icon { width: 1.15em; height: 1.15em; flex: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.round-btn {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.round-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.round-btn svg { width: 22px; height: 22px; }
#roadPrev svg, .round-btn--back svg { transform: scaleX(-1); }

.bubble {
  position: relative;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.6;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -13px;
  width: 20px; height: 20px;
  margin-left: -10px;
  background: var(--paper);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.bubble--right::after { left: 72%; }

/* ---------- 起動シーケンス ---------- */
.boot {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: var(--night);
  color: var(--led);
  font-family: var(--f-pixel);
  animation: boot-failsafe 0s 10s forwards;
}
.boot::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
}
.boot__screen { width: min(560px, calc(100% - 32px)); text-shadow: 0 0 8px rgba(61, 232, 242, .55); }
.boot__head {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em;
  color: #6B7699;
  border-bottom: 1px dashed #2b3150;
  padding-bottom: 10px;
}
.boot__log { list-style: none; margin: 16px 0; padding: 0; min-height: 172px; font-size: 15px; line-height: 1.8; }
.boot__log li { white-space: pre-wrap; }
.boot__log .ok { color: var(--lime); }
.boot__meter { height: 16px; border: 2px solid var(--led); padding: 2px; }
.boot__bar {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--led) 0 10px, transparent 10px 13px);
}
.boot__pct { text-align: right; font-family: var(--f-mono); margin: 8px 0 0; }
.boot__skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: none; color: #6B7699;
  border: 1px solid #2b3150; border-radius: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  padding: 8px 14px; cursor: pointer;
}
.boot__skip:hover { color: var(--led); border-color: var(--led); }
.boot.is-off { animation: crt-off .62s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes crt-off {
  0% { transform: scale(1, 1); filter: brightness(1); }
  45% { transform: scale(1, .006); filter: brightness(4); }
  75% { transform: scale(.35, .004); filter: brightness(6); opacity: 1; }
  100% { transform: scale(0, 0); opacity: 0; }
}
@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .45s var(--ease-out), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(246, 247, 251, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  max-width: 1440px; margin: 0 auto;
  padding-left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px));
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__word {
  font-family: var(--f-display);
  font-size: 30px; line-height: 1; letter-spacing: .02em;
  display: inline-flex; align-items: center;
}
.logo__eye {
  position: relative;
  display: inline-block;
  width: .8em; height: .8em;
  margin: 0 .04em;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .12s;
}
.logo__eye i {
  position: absolute; left: 30%; top: 30%;
  width: 40%; height: 40%;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: border-radius .2s, height .2s, top .2s;
}
.logo__eye.is-blink { transform: scaleY(.12); }
.logo:hover .logo__eye i { height: 22%; top: 38%; border-radius: 50% 50% 0 0; }
.logo__sub { font-size: 10.5px; line-height: 1.35; font-weight: 700; color: var(--ink-2); }

.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gnav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 99px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.gnav a:hover { background: var(--ink); color: #fff; animation: glitch .3s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--orange), -2px 0 var(--led); }
  50% { text-shadow: -2px 0 var(--orange), 2px 0 var(--led); transform: translateX(1px); }
  100% { text-shadow: none; transform: none; }
}
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.icon-btn__on { display: none; }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.icon-btn[aria-pressed="true"] .icon-btn__on { display: block; }
.icon-btn[aria-pressed="true"] .icon-btn__off { display: none; }
.power { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; cursor: pointer; }
.power__track {
  position: relative;
  width: 48px; height: 28px;
  border-radius: 99px;
  background: var(--mat-2);
  border: 2px solid var(--ink);
  transition: background-color .3s;
}
.power__knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .4s var(--ease-spring), background-color .3s, box-shadow .3s;
}
.power[aria-checked="true"] .power__track { background: var(--night); }
.power[aria-checked="true"] .power__knob { transform: translateX(20px); background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.power__label { font-family: var(--f-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.menu-btn span:not(.sr-only) {
  position: absolute; left: 10px; right: 10px;
  height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(660px, 100svh, 980px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: 120px;
  overflow: hidden;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 247, 251, .96) 0%, rgba(246, 247, 251, .82) 34%, rgba(246, 247, 251, 0) 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 10px;
  border: 2px solid var(--ink); border-radius: 99px;
  background: var(--paper);
  font-weight: 700; font-size: 13px; line-height: 1.4;
}
.pill__led {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182, 240, 74, .35);
  animation: led 1.4s ease-in-out infinite;
}
@keyframes led { 50% { box-shadow: 0 0 0 6px rgba(182, 240, 74, 0); background: #8fd61f; } }
.hero__title {
  margin: .22em 0 .4em;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.3vw + .7rem, 5.1rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.line { display: block; overflow: hidden; padding: .04em 0 .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; }
.ugoita { color: var(--orange); display: inline-block; -webkit-text-stroke: 0; }
.ugoita span { display: inline-block; animation: ugoita 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.ugoita span:nth-child(2) { animation-delay: .08s; }
.ugoita span:nth-child(3) { animation-delay: .16s; }
.ugoita span:nth-child(4) { animation-delay: .24s; }
.ugoita.is-hop span { animation: none; }
@keyframes ugoita {
  0%, 72%, 100% { transform: none; }
  77% { transform: translateY(-14%) rotate(-7deg); }
  83% { transform: translateY(2%) rotate(5deg); }
  89% { transform: translateY(-4%) rotate(-2deg); }
}
.hero__lead { max-width: 33em; font-size: clamp(15px, .5vw + 12px, 17px); font-weight: 500; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 700; }
.hero__facts b {
  margin-right: 6px; padding: 2px 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
  background: var(--ink); color: #fff; border-radius: 4px;
}
.hero__visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1.08; justify-self: center; }
.hero__visual [data-depth] { translate: var(--px, 0px) var(--py, 0px); }
.turntable {
  position: absolute; inset: 7% 5% 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #4F74FF 0%, var(--blue) 55%, #1534B8 100%);
  box-shadow: inset 0 -26px 60px rgba(0, 0, 0, .2), 0 0 0 10px var(--mat), 0 0 0 12.5px var(--ink);
}
.turntable span { position: absolute; inset: -9%; border-radius: 50%; border: 2px dashed rgba(13, 18, 34, .28); animation: spin 48s linear infinite; }
.turntable span:nth-child(2) { inset: -16%; border-style: dotted; border-width: 3px; animation-duration: 70s; animation-direction: reverse; }
.turntable span:nth-child(3) { inset: 14%; border: 1.5px solid rgba(255, 255, 255, .28); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__mascot {
  position: absolute; left: 19%; bottom: 1%;
  width: 62%;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  z-index: 2;
}
.hero__mascot img { width: 100%; filter: drop-shadow(0 28px 26px rgba(13, 18, 34, .28)); animation: float 4.2s ease-in-out infinite; }
.hero__mascot.is-talk img { animation: talk .35s ease-in-out 3; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes talk { 50% { transform: translateY(-6px) rotate(-3deg) scale(1.02); } }
.hero__drone { position: absolute; top: 0; right: -4%; width: 38%; z-index: 3; }
.hero__drone img { width: 100%; animation: hover 3.2s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-3deg); } }
.hero__dog { position: absolute; left: -5%; bottom: 0; width: 27%; z-index: 3; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callout {
  position: absolute; z-index: 4;
  padding: 4px 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; line-height: 1.5;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.callout span { display: block; font-size: 9px; color: var(--ink-3); letter-spacing: .12em; }
.callout--a { top: 26%; left: -3%; }
.callout--b { top: 44%; right: -3%; }
.callout--c { bottom: 22%; right: 3%; }
.callout__batt {
  display: inline-block; width: 26px; height: 12px; margin-right: 6px; vertical-align: -1px;
  border: 2px solid var(--ink); border-radius: 3px; padding: 1px;
}
.callout__batt i { display: block; height: 100%; width: 100%; background: var(--lime); animation: batt 2.4s steps(4) infinite; }
@keyframes batt { 0% { width: 25%; } 100% { width: 100%; } }
.speech {
  position: absolute; z-index: 5;
  top: 2%; left: 0;
  max-width: min(78%, 330px);
  padding: 12px 16px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1.6;
  opacity: 0; transform: scale(.7); transform-origin: 80% 110%;
  transition: opacity .25s, transform .35s var(--ease-spring);
  pointer-events: none;
}
.speech.is-on { opacity: 1; transform: none; }
.speech::after {
  content: ""; position: absolute; right: 22%; bottom: -12px;
  width: 18px; height: 18px;
  background: var(--paper);
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.speech span { display: inline-block; animation: char-pop .35s var(--ease-spring) both; white-space: pre; }
@keyframes char-pop { from { opacity: 0; transform: translateY(8px) scale(.4); } }
.hero__start {
  position: absolute; left: 0; right: 0; bottom: 46px;
  display: flex; align-items: center; gap: 14px;
  padding-left: var(--gx);
  pointer-events: none;
}
.hero__start::before {
  content: ""; width: 44px; height: 44px; flex: none;
  border: 2.5px solid var(--ink); border-radius: 6px;
  background: conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0) 0 0 / 14px 14px;
}
.hero__start span { font-family: var(--f-mono); font-weight: 800; letter-spacing: .3em; font-size: 13px; }
.hero__start::after { content: ""; flex: 1; height: 14px; background: var(--ink); border-radius: 7px 0 0 7px; }
.scroll-cue {
  position: absolute; z-index: 2;
  right: var(--gx-r); bottom: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 800; letter-spacing: .25em;
  writing-mode: vertical-rl;
  text-decoration: none;
}
.scroll-cue__track { position: relative; width: 4px; height: 64px; background: var(--line); border-radius: 2px; overflow: hidden; }
.scroll-cue__track i { position: absolute; left: 0; top: -20px; width: 4px; height: 20px; background: var(--orange); border-radius: 2px; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { to { top: 64px; } }

/* ナイトモードのヒミツ文字 */
.secret {
  position: absolute; z-index: 1;
  max-width: 24em;
  margin: 0;
  font-family: var(--f-pixel); font-size: 15px; line-height: 1.6;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 210, 60, .9), 0 0 20px rgba(255, 106, 19, .8);
  opacity: 0; pointer-events: none;
  transition: opacity .6s;
}
html.is-night .secret { opacity: 1; }

/* ---------- テープ（マーキー） ---------- */
.tapes { position: relative; z-index: 3; height: 196px; margin-top: -52px; overflow: hidden; pointer-events: none; }
.tape { position: absolute; left: -5%; width: 110%; padding: 13px 0; overflow: hidden; }
.tape--ink { top: 46px; background: var(--ink); color: var(--paper); transform: rotate(-2.4deg); box-shadow: 0 6px 0 rgba(13, 18, 34, .15); }
.tape--orange { top: 104px; background: var(--orange); color: var(--ink); transform: rotate(1.8deg); border-block: 2.5px solid var(--ink); }
.tape__track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.3vw, 31px);
  line-height: 1.2;
  white-space: nowrap;
  will-change: transform;
}
.tape__track svg { width: 26px; height: 26px; flex: none; }
.tape--ink svg { color: var(--yellow); }

/* ---------- セクション ---------- */
.section { position: relative; padding-block: clamp(84px, 10vw, 150px); }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-title {
  margin: .3em 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw + .9rem, 3.55rem);
  line-height: 1.24;
  font-feature-settings: "palt";
}
.sec-lead { margin: 1.2em 0 0; max-width: 40em; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.cp-badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.cp-badge b {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--yellow);
  font-family: var(--f-mono); font-size: 15px; font-weight: 800;
  box-shadow: 0 0 0 4px var(--mat), 0 0 0 6.5px var(--ink);
}
.cp-badge span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; font-weight: 600; color: var(--ink-3); }

/* ---------- CP-01 ABOUT ---------- */
.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.lead { font-size: clamp(16px, .5vw + 13px, 19px); line-height: 2.05; font-weight: 500; margin: 0; }
.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(2.5deg);
  transition: transform .5s var(--ease-spring);
}
.polaroid:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid::before {
  content: ""; position: absolute; top: -15px; left: 50%;
  width: 116px; height: 30px; margin-left: -58px;
  background: rgba(255, 210, 60, .88);
  transform: rotate(-4deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption { margin-top: 10px; text-align: center; font-family: var(--f-pixel); font-size: 15px; }
.cycle {
  list-style: none; padding: 0;
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.plate {
  --cut: 20px;
  position: relative; isolation: isolate;
  padding: 34px 30px 30px;
  background: var(--ink);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform .4s var(--ease-spring);
}
.plate::before {
  content: ""; position: absolute; inset: 2.5px; z-index: -1;
  background: var(--paper);
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
}
.plate:hover { transform: translateY(-6px) rotate(-.6deg); }
.plate__screws {
  position: absolute; inset: 14px; pointer-events: none;
  --s: radial-gradient(circle, #6b7491 0 2px, #d5dbe8 2.4px 5px, #9aa3bb 5.4px 6px, transparent 6.4px);
  background: var(--s) 0 0 / 13px 13px no-repeat, var(--s) 100% 0 / 13px 13px no-repeat, var(--s) 0 100% / 13px 13px no-repeat, var(--s) 100% 100% / 13px 13px no-repeat;
}
.plate__icon { width: 52px; height: 52px; color: var(--blue); }
.plate:nth-child(2) .plate__icon { color: var(--orange); }
.plate:nth-child(3) .plate__icon { color: #19A974; }
.plate__en { margin: 14px 0 0; font-family: var(--f-mono); font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--ink-3); }
.plate__title { margin: 2px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.3; }
.plate p:last-child { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.85; }

.touch { margin: clamp(72px, 9vw, 130px) 0; padding-left: var(--gx); padding-right: var(--gx-r); }
.touch__frame {
  position: relative;
  max-width: 1440px; margin: 0 auto;
  aspect-ratio: 16 / 8;
  border-radius: var(--r-l);
  border: 3px solid var(--ink);
  overflow: hidden;
  background: #071029;
  box-shadow: 0 12px 0 var(--ink);
}
.touch__half { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.touch__half--l { clip-path: inset(0 52% 0 0); }
.touch__half--r { clip-path: inset(0 0 0 48%); }
.touch__flash {
  position: absolute; left: 48%; top: 46%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 240, 200, .9) 30%, rgba(255, 180, 80, 0) 70%);
  transform: scale(0); opacity: 0;
  pointer-events: none;
}
.touch.is-touched .touch__flash { animation: flash 1.1s var(--ease-out) forwards; }
@keyframes flash {
  0% { transform: scale(0); opacity: 1; }
  30% { transform: scale(14); opacity: .95; }
  100% { transform: scale(26); opacity: 0; }
}
.touch__copy {
  position: absolute; left: 0; right: 0; bottom: 8%;
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s .25s, transform .8s .25s var(--ease-out);
}
.touch.is-touched .touch__copy { opacity: 1; transform: none; }

.meters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px; padding: 3px;
  background: #222a45;
  border: 3px solid var(--ink); border-radius: var(--r-m);
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
}
.meter { --seg: var(--orange); --seg-off: rgba(255, 106, 19, .09); padding: 22px 22px 20px; background: var(--night); color: #fff; }
.meter:nth-child(even) { --seg: var(--led); --seg-off: rgba(61, 232, 242, .08); }
.meter__label { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; color: #9AA6C8; }
.meter__value { display: flex; align-items: flex-end; gap: 8px; }
.seg { display: inline-flex; gap: 6px; height: clamp(42px, 4.6vw, 62px); }
.seg svg { height: 100%; width: auto; overflow: visible; }
.seg .s { fill: var(--seg-off); transition: fill .06s; }
.seg .s.on { fill: var(--seg); filter: drop-shadow(0 0 4px var(--seg)); }
.meter__unit { font-weight: 900; font-size: 18px; color: var(--seg); line-height: 1; padding-bottom: 2px; }

/* ---------- CP-02 COURSES ---------- */
.dial {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .85fr);
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 48px;
  padding: 24px 28px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 8px 0 var(--ink);
}
.dial__q { display: block; margin-bottom: 14px; font-weight: 900; font-size: 18px; }
.dial__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 16px; margin: 0;
  background: linear-gradient(90deg, var(--yellow) 0 30%, var(--sky) 30% 50%, var(--orange) 50% 70%, var(--blue) 70%);
  border: 2px solid var(--ink); border-radius: 99px;
  cursor: pointer;
}
.dial__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff radial-gradient(circle at 35% 45%, var(--ink) 0 3px, transparent 3.5px), radial-gradient(circle at 65% 45%, var(--ink) 0 3px, transparent 3.5px);
  background-color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.dial__range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink);
}
.dial__ticks {
  display: flex; justify-content: space-between;
  list-style: none; margin: 10px 0 0; padding: 0 2px;
  font-size: 11px; font-weight: 800; color: var(--ink-2);
}
.dial__ticks li { width: 28px; text-align: center; transition: color .2s, transform .2s; }
.dial__ticks li.is-on { color: var(--orange); transform: scale(1.2); }
.dial__gauge svg { width: 100%; max-width: 240px; display: block; margin: 0 auto; overflow: visible; }
.dial__arc { fill: none; stroke-width: 20; opacity: .3; transition: opacity .3s; }
.dial__arc.is-on { opacity: 1; }
.dial__arc--kids { stroke: var(--yellow); }
.dial__arc--basic { stroke: var(--sky); }
.dial__arc--advance { stroke: var(--orange); }
.dial__arc--teens { stroke: var(--blue); }
.dial__needle { fill: var(--ink); transform-origin: 120px 126px; transform: rotate(var(--a, 0deg)); transition: transform .7s var(--ease-spring); }
.dial__result { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.6; }
.dial__result strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.35; color: var(--orange); }

.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; perspective: 1100px; }
.course-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 24px;
  box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), box-shadow .3s;
}
.course-card.is-tilting { transition: transform .08s linear; }
.course-card.is-recommended { box-shadow: 0 8px 0 var(--ink), 0 0 0 5px var(--mat), 0 0 0 9px var(--orange); }
.course-card.is-recommended::after {
  content: "おすすめ！";
  position: absolute; top: 14px; right: -34px; z-index: 4;
  width: 140px; padding: 4px 0;
  text-align: center; font-weight: 900; font-size: 12px;
  background: var(--orange); color: #fff;
  border-block: 2px solid var(--ink);
  transform: rotate(40deg);
}
.course-card__glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--gx-p, 50%) var(--gy-p, 50%), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 42%),
    linear-gradient(115deg, transparent 25%, rgba(143, 211, 255, .3) 42%, rgba(255, 159, 203, .3) 52%, rgba(182, 240, 74, .25) 62%, transparent 78%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--hx, 50%) 50%;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .3s;
}
.course-card:hover .course-card__glare { opacity: 1; }
.course-card__media {
  position: relative;
  height: 190px;
  display: grid; place-items: center;
  background-color: var(--c);
  background-image: radial-gradient(rgba(255, 255, 255, .45) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  border-bottom: 2.5px solid var(--ink);
}
.course-card__media img { max-height: 166px; width: auto; max-width: 82%; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .22)); transition: transform .5s var(--ease-spring); }
.course-card:hover .course-card__media img { transform: scale(1.08) rotate(-4deg) translateY(-4px); }
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.course-card__age {
  align-self: flex-start;
  margin: 0;
  padding: 3px 9px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 800;
  background: var(--ink); color: #fff; border-radius: 6px;
}
.course-card__name { margin: 10px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 25px; line-height: 1.25; }
.course-card__name small { font-size: 14px; margin-left: 2px; }
.course-card__desc { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.course-card__spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: auto 0 14px; }
.course-card__spec div { padding: 6px 4px; background: var(--mat); border-radius: 8px; text-align: center; }
.course-card__spec dt { font-size: 10px; font-weight: 700; color: var(--ink-3); line-height: 1.4; }
.course-card__spec dd { margin: 0; font-weight: 900; font-size: 14px; line-height: 1.4; }
.course-card__price { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 800; font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.course-card__price span { margin-right: 6px; font-family: var(--f-body); font-size: 12px; font-weight: 900; }
.course-card__price small { font-family: var(--f-body); font-size: 11px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 2px 9px; font-size: 11px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 99px; line-height: 1.6; }

/* ---------- CP-03 TRY ---------- */
.hazard {
  margin-bottom: clamp(56px, 7vw, 90px);
  padding: 10px 0;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
  border-block: 3px solid var(--ink);
  overflow: hidden;
}
.hazard__track { display: flex; gap: 40px; width: max-content; animation: marquee 36s linear infinite; }
.hazard span { padding: 4px 14px; font-family: var(--f-mono); font-weight: 800; font-size: 13px; letter-spacing: .14em; background: var(--ink); color: var(--yellow); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; padding: 6px; background: var(--ink); border-radius: 18px; }
.tabs__btn { padding: 11px 20px; border: 0; border-radius: 12px; background: transparent; color: #fff; font-weight: 900; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs__btn:hover { background: rgba(255, 255, 255, .12); }
.tabs__btn[aria-selected="true"] { background: var(--yellow); color: var(--ink); }

.puzzle {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(16px, 2.4vw, 30px);
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink);
}
.puzzle__stage { position: relative; }
.puzzle__hud { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 48px; }
.puzzle__level { flex: none; margin: 0; padding: 4px 10px; font-family: var(--f-mono); font-weight: 800; font-size: 13px; background: var(--ink); color: var(--yellow); border-radius: 8px; }
.puzzle__level span { color: #8a93ae; }
.puzzle__msg { margin: 0; font-weight: 800; font-size: 14px; line-height: 1.5; }
.puzzle__msg.is-good { color: #19A974; }
.puzzle__msg.is-bad { color: var(--red); }
.puzzle__board {
  --n: 5;
  position: relative;
  display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr);
  width: 100%; max-width: 470px; aspect-ratio: 1;
  background: #E8EEF9;
  border: 3px solid var(--ink); border-radius: 16px;
  overflow: hidden;
}
.pz-cell { position: relative; border-right: 1px dashed rgba(13, 18, 34, .14); border-bottom: 1px dashed rgba(13, 18, 34, .14); }
.pz-cell--wall::before {
  content: ""; position: absolute; inset: 12%;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 7px, var(--ink) 7px 14px);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 rgba(13, 18, 34, .35);
}
.pz-cell--goal { background: rgba(182, 240, 74, .35); }
.pz-cell--goal::before {
  content: ""; position: absolute; inset: 14%;
  border: 2.5px solid var(--ink); border-radius: 6px;
  background: conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0) 0 0 / 33.3% 33.3%;
  animation: goal-pulse 1.6s ease-in-out infinite;
}
@keyframes goal-pulse { 50% { transform: scale(.88); } }
.pz-trail { position: absolute; width: 14%; height: 14%; margin: -7% 0 0 -7%; border-radius: 50%; background: rgba(255, 106, 19, .45); pointer-events: none; }
.pz-bot {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: calc(100% / var(--n)); height: calc(100% / var(--n));
  display: grid; place-items: center;
  transform: translate(calc(var(--x, 0) * 100%), calc(var(--y, 0) * 100%));
  transition: transform .36s var(--ease-out);
}
.pz-bot svg { width: 80%; height: 80%; transform: rotate(calc(var(--r, 0) * 90deg)); transition: transform .3s var(--ease-out); overflow: visible; }
.pz-bot.is-jump { transition-duration: .5s; }
.pz-bot.is-jump svg { animation: pz-jump .5s ease-in-out; }
@keyframes pz-jump { 50% { scale: 1.45; filter: drop-shadow(0 16px 8px rgba(0, 0, 0, .25)); } }
.pz-bot.is-crash svg { animation: crash .45s; }
@keyframes crash { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.pz-bot.is-win svg { animation: win-spin .9s var(--ease-out); }
@keyframes win-spin { to { rotate: 360deg; scale: 1.15; } }
.puzzle__mascot { position: absolute; right: -14px; bottom: -36px; width: 104px; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .18)); }
.puzzle__side { display: flex; flex-direction: column; min-width: 0; }
.puzzle__label { margin: 0 0 8px; font-weight: 900; font-size: 14px; }
.puzzle__label small { margin-left: 8px; font-weight: 700; font-size: 12px; color: var(--ink-3); }
.puzzle__palette { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.blk {
  --bc: var(--blue);
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px;
  padding: 6px 12px 6px 14px;
  background: var(--bc); color: #fff;
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900; font-size: 14px; line-height: 1.2;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.blk::before {
  content: ""; position: absolute; top: -2px; left: 16px;
  width: 18px; height: 6px;
  background: var(--mat);
  border: 2px solid var(--ink); border-top: 0;
  border-radius: 0 0 6px 6px;
}
.blk:active { cursor: grabbing; }
.blk--fwd { --bc: var(--blue); }
.blk--right { --bc: var(--orange); }
.blk--left { --bc: #8A5CFF; }
.blk--jump { --bc: #12A16B; }
.blk__icon { font-family: var(--f-mono); font-size: 13px; }
.blk__n {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 28px;
  padding: 0;
  border: 2px solid var(--ink); border-radius: 50%;
  background: #fff; color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; font-weight: 800;
  cursor: pointer;
}
.blk__n:hover { background: var(--yellow); }
.blk-ghost { position: fixed !important; left: 0; top: 0; z-index: 2500; pointer-events: none; margin: 0; transform-origin: 20% 50%; box-shadow: 0 16px 24px rgba(13, 18, 34, .28); }
.puzzle__program {
  position: relative;
  flex: 1;
  min-height: 230px;
  padding: 12px;
  background: var(--mat);
  border: 2px dashed var(--ink-3); border-radius: 14px;
  transition: border-color .2s, background-color .2s;
}
.puzzle__program.is-over { border-color: var(--blue); background: #eef2ff; }
.puzzle__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pz-item { display: flex; align-items: center; gap: 8px; }
.pz-item__no { width: 22px; flex: none; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.pz-item.is-new .blk { animation: char-pop .4s var(--ease-spring); }
.pz-item.is-running .blk { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pz-item.is-error .blk { outline: 3px solid var(--red); outline-offset: 2px; }
.pz-del {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  margin-left: auto;
  border: 1.5px solid var(--ink-3); border-radius: 50%;
  background: transparent; color: var(--ink-3);
  cursor: pointer;
}
.pz-del svg { width: 14px; height: 14px; }
.pz-del:hover { color: var(--red); border-color: var(--red); }
.pz-ph { height: 42px; border-radius: 10px; background: rgba(35, 80, 255, .12); border: 2px dashed var(--blue); }
.puzzle__empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-3); pointer-events: none; }
.puzzle__program.has-items .puzzle__empty { display: none; }
.puzzle__ctrl { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-right: 96px; }
.puzzle.is-running .puzzle__palette, .puzzle.is-running .puzzle__list { pointer-events: none; opacity: .75; }

.tracer {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .8fr);
  gap: 22px;
  padding: clamp(16px, 2.4vw, 30px);
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink);
}
.tracer__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 3px solid var(--ink); border-radius: 16px;
  overflow: hidden;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.tracer__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tracer__bot { pointer-events: none; }
.tracer__hint { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--f-pixel); font-size: 22px; color: var(--ink-3); pointer-events: none; transition: opacity .3s; }
.tracer__panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tracer__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tracer__speed { display: flex; flex-direction: column; gap: 6px; font-weight: 900; font-size: 14px; }
.tracer__speed input { width: 100%; accent-color: var(--orange); }
.sensors p { margin: 0 0 8px; font-weight: 900; font-size: 14px; }
.sensors ol { display: flex; gap: 10px; list-style: none; margin: 0; padding: 12px 14px; background: var(--night); border-radius: 12px; width: fit-content; }
.sensors li { width: 22px; height: 22px; border-radius: 50%; background: #2a3150; border: 2px solid #3a4266; transition: background-color .05s, box-shadow .05s; }
.sensors li.on { background: var(--red); box-shadow: 0 0 10px var(--red), 0 0 0 3px rgba(232, 52, 78, .3); }
.tracer__status { margin: 0; padding: 12px 14px; font-size: 14px; font-weight: 700; line-height: 1.7; background: var(--mat); border-radius: 12px; }

/* ---------- CP-04 BUILD ---------- */
.build { padding-top: 0; }
.assembly__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 32px;
}
.assembly__text .sec-head { margin-bottom: 24px; }
.asm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.asm-steps li {
  display: flex; gap: 14px;
  padding: 10px 14px;
  border: 2px solid transparent; border-radius: 14px;
  opacity: .38;
  transition: opacity .35s, background-color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease-out);
}
.asm-steps li.is-done { opacity: .7; }
.asm-steps li.is-active { opacity: 1; background: var(--paper); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); transform: translateX(8px); }
.asm-steps b {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--yellow);
  font-family: var(--f-mono); font-size: 13px;
}
.asm-steps h3 { margin: 0; font-size: 16.5px; font-weight: 900; line-height: 1.4; }
.asm-steps p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.assembly__stage {
  position: relative;
  padding: 22px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(35, 80, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 80, 255, .1) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2.5px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink);
}
.assembly__meter { height: 12px; margin-bottom: 10px; padding: 2px; background: var(--mat-2); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.assembly__meter span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; }
.asm { display: block; width: 100%; height: auto; max-height: 62vh; margin: 0 auto; overflow: visible; }
.asm__shadow { fill: rgba(13, 18, 34, .12); }
.asm__eye { fill: #20263d; transition: fill .3s; }
.asm__mouth { stroke: #20263d; transition: stroke .3s; }
.asm.is-online .asm__eye { fill: var(--led); filter: url(#f-glow); }
.asm.is-online .asm__mouth { stroke: var(--led); }
.asm.is-online .asm__ball { animation: ball 1s steps(2) infinite; }
@keyframes ball { 50% { fill: var(--yellow); } }
.asm__code text { font-family: var(--f-mono); font-size: 17px; font-weight: 800; fill: var(--blue); opacity: 0; }
.asm__bolts circle { fill: #c3cad9; stroke: var(--ink); stroke-width: 2; opacity: 0; }
.assembly__status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-family: var(--f-mono); font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.assembly__status i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.assembly__status.is-online i { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.customizer {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
}
.customizer__view {
  position: relative;
  min-height: 480px;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #E6ECF8 55%, #C9D3EC 100%);
  border-right: 2.5px solid var(--ink);
  cursor: grab;
  touch-action: pan-y;
}
.customizer__view:active { cursor: grabbing; }
.customizer__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.customizer__tag { position: absolute; top: 18px; left: 18px; margin: 0; padding: 6px 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 8px; }
.customizer__tag b { color: var(--yellow); }
.customizer__hint { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); pointer-events: none; }
.customizer__panel { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 32px); }
.customizer__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.25; }
.customizer__lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.swatches, .faces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.swatches legend, .faces legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-weight: 900; font-size: 13px; }
.swatches button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sw);
  border: 2.5px solid var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); }
.faces button { padding: 6px 13px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); font-weight: 800; font-size: 13px; cursor: pointer; }
.faces button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.customizer__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 900; font-size: 14px; }
.field em { margin-left: 8px; padding: 1px 6px; font-style: normal; font-size: 10px; font-weight: 900; background: var(--orange); color: #fff; border-radius: 4px; vertical-align: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: var(--mat);
  border: 2px solid var(--ink); border-radius: 12px;
  transition: box-shadow .2s, background-color .2s, border-color .2s;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35, 80, 255, .22); }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFF3F4; }
.field__err { margin: 0; font-size: 12.5px; font-weight: 700; color: #D02C44; line-height: 1.5; }
.field__err:empty { display: none; }

/* ---------- CP-05 ROADMAP ---------- */
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.sec-head--row > div:first-child { max-width: 760px; }
.road-ctrl { display: flex; align-items: center; gap: 12px; flex: none; }
.road-ctrl__pct { margin: 0; min-width: 4.2em; text-align: center; font-family: var(--f-mono); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.road { position: relative; overflow: hidden; padding-top: 34px; cursor: grab; }
.road:active { cursor: grabbing; }
.road__track {
  display: flex; gap: 20px; width: max-content;
  padding-left: max(var(--gx), calc((100vw - 1240px) / 2 + var(--gx)));
  padding-right: var(--gx-r);
  padding-bottom: 12px;
}
.stage-card {
  position: relative; flex: none;
  display: flex; flex-direction: column;
  width: clamp(250px, 25vw, 310px); min-height: 330px;
  padding: 30px 22px 22px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 var(--ink);
  user-select: none; -webkit-user-select: none;
}
.stage-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--c); border-bottom: 2.5px solid var(--ink); border-radius: 19px 19px 0 0; }
.stage-card__no { margin: 4px 0 0; font-family: var(--f-mono); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.stage-card__age { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.stage-card h3 { margin: 12px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 23px; line-height: 1.32; }
.stage-card p { margin: 0; font-size: 14px; line-height: 1.75; }
.stage-card__skill { margin-top: auto !important; padding-top: 14px; font-weight: 900; font-size: 12.5px !important; color: var(--blue); }
.stage-card--trophy img { position: absolute; top: -38px; right: 12px; width: 70px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .2)); pointer-events: none; }
.stage-card--goal { justify-content: center; background: var(--ink); color: #fff; }
.stage-card--goal::before { background: conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0) 0 0 / 14px 14px; }
.stage-card--goal h3 { color: var(--yellow); font-size: 28px; }
.road__lane { position: relative; height: 104px; margin-top: 30px; background: #2B3047; border-block: 4px solid var(--ink); }
.road__dash { position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; background: repeating-linear-gradient(90deg, var(--yellow) 0 36px, transparent 36px 66px); }
.road__rover { position: absolute; left: 0; bottom: 6px; width: 110px; will-change: transform; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); }

/* ---------- CP-06 LAB ---------- */
.lab { background: var(--night); color: #E5EAF8; overflow: hidden; }
.lab__bg { position: absolute; inset: 0; pointer-events: none; }
.lab__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.lab__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(9, 13, 27, .2) 30%, rgba(9, 13, 27, .4) 70%, var(--night) 100%); }
.lab__pulses { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.lab__pulses .trace { fill: none; stroke: rgba(61, 232, 242, .16); stroke-width: 2; }
.lab__pulses .pulse { fill: none; stroke: var(--led); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--led)); }
.lab__pulses .node { fill: var(--night); stroke: rgba(61, 232, 242, .6); stroke-width: 2; transition: fill .2s; }
.lab__pulses .node.is-hot { fill: var(--led); }
.lab .container { position: relative; z-index: 2; }
.sec-head--dark .sec-title { color: #fff; }
.sec-head--dark .sec-lead { color: #AEB8D6; }
.sec-head--dark .cp-badge b { background: var(--led); color: var(--night); box-shadow: 0 0 0 4px var(--night), 0 0 0 6.5px var(--led); }
.sec-head--dark .cp-badge span { color: #6B7699; }
.neon {
  margin: 0 0 22px;
  font-family: var(--f-mono); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 58px); letter-spacing: .12em; line-height: 1.1;
  color: #FFE9F4;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px #ff4fb2, 0 0 54px #ff2a9c;
  opacity: .12;
}
.neon span { margin-left: .45em; color: #E6FDFF; text-shadow: 0 0 4px #fff, 0 0 12px var(--led), 0 0 28px #20c8ff, 0 0 54px #0092ff; }
.neon.is-on { animation: neon-on 1.8s steps(1) forwards; }
.neon.is-on:hover { animation: neon-buzz .6s steps(1) 1; opacity: 1; }
@keyframes neon-on {
  0% { opacity: .12; } 8% { opacity: 1; } 11% { opacity: .2; } 19% { opacity: 1; } 21% { opacity: .3; }
  37% { opacity: 1; } 39% { opacity: .5; } 42%, 100% { opacity: 1; }
}
@keyframes neon-buzz { 0% { opacity: 1; } 20% { opacity: .3; } 30% { opacity: 1; } 60% { opacity: .6; } 70%, 100% { opacity: 1; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 13.5vw, 180px); gap: 14px; }
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0f1530;
  border: 2px solid rgba(61, 232, 242, .3); border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
}
.shot--a { grid-column: span 7; grid-row: span 2; }
.shot--b { grid-column: span 5; grid-row: span 2; }
.shot--c { grid-column: span 5; grid-row: span 2; }
.shot--d { grid-column: span 7; grid-row: span 2; }
.shot--e { grid-column: span 6; grid-row: span 2; }
.shot--f { grid-column: span 6; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s, transform .6s var(--ease-out); }
.shot.is-scan img { filter: grayscale(1) brightness(.75) contrast(1.3); transform: scale(1.02); }
.shot__pix { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; transition: opacity .35s; }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  font-size: 13px; font-weight: 700; line-height: 1.5; color: #fff;
  background: rgba(9, 13, 27, .74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 10px;
}
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s; background: repeating-linear-gradient(0deg, rgba(61, 232, 242, .07) 0 1px, transparent 1px 4px); }
.shot.is-scan .hud { opacity: 1; }
.hud__box { position: absolute; border: 2px solid var(--led); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), inset 0 0 20px rgba(61, 232, 242, .2); animation: box-in .45s var(--ease-out) both; }
@keyframes box-in { from { opacity: 0; transform: scale(1.25); } }
.hud__box span { position: absolute; left: -2px; top: -22px; padding: 2px 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 800; line-height: 1.6; white-space: nowrap; background: var(--led); color: var(--night); }
.hud__box.is-in span { top: 0; left: 0; }
.hud__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--led); box-shadow: 0 0 14px 2px var(--led); animation: scan 1.8s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.hud__meta { position: absolute; top: 10px; right: 12px; margin: 0; font-family: var(--f-mono); font-size: 10px; font-weight: 600; line-height: 1.6; text-align: right; color: var(--led); text-shadow: 0 0 6px rgba(0, 0, 0, .8); }

.ledboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 20px 32px;
  margin-top: clamp(64px, 8vw, 110px);
}
.ledboard__head h3 { margin: 6px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 28px; color: #fff; }
.ledboard__head p:last-child { margin: 0; font-size: 14.5px; color: #AEB8D6; }
.ledboard__panel { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 14px; background: #04060d; border: 3px solid #2b3150; border-radius: 16px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .9), 0 0 0 6px #10152b, 0 18px 50px rgba(255, 106, 19, .12); }
#ledCanvas { display: block; width: 100%; height: auto; }
.ledboard__form { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.ledboard__form input { flex: 1 1 180px; min-width: 0; padding: 12px 14px; font-family: var(--f-pixel); font-size: 18px; color: #fff; background: #0d1226; border: 2px solid #3a4266; border-radius: 12px; }
.ledboard__form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 19, .25); }
.ledboard__presets { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ledboard__presets button { padding: 4px 12px; font-size: 12px; font-weight: 700; color: #AEB8D6; background: transparent; border: 1.5px solid #3a4266; border-radius: 99px; cursor: pointer; }
.ledboard__presets button:hover { color: #fff; border-color: var(--orange); }
.ledboard__bin { grid-column: 1 / -1; padding: 18px; background: rgba(13, 18, 38, .85); border: 1.5px solid #2b3150; border-radius: 16px; }
.ledboard__binhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ledboard__binhead p { margin: 0; font-weight: 700; font-size: 14px; color: #AEB8D6; }
.ledboard .btn--ghost { --bg: transparent; --fg: #fff; border-color: #fff; box-shadow: 0 3px 0 #fff; }
.bits { display: flex; flex-wrap: wrap; gap: 12px 22px; max-height: 210px; overflow: auto; font-family: var(--f-mono); font-size: 12px; }
.bits .ch { display: flex; flex-direction: column; gap: 2px; }
.bits .ch b { font-family: var(--f-pixel); font-size: 20px; font-weight: 400; color: #fff; line-height: 1.3; }
.bits .ch span { letter-spacing: .06em; color: #59648a; white-space: nowrap; }
.bits i { font-style: normal; }
.bits i.one { color: var(--orange); }
.bits i.is-play { background: var(--yellow); color: var(--ink); border-radius: 2px; }

/* ---------- CP-07 FUN ---------- */
.fun-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.fun-card { position: relative; padding: 24px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-l); box-shadow: 0 10px 0 var(--ink); overflow: hidden; }
.gacha-card { grid-row: span 2; display: flex; flex-direction: column; }
.fun-card__head h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 25px; line-height: 1.3; }
.fun-card__head p { margin: 4px 0 16px; font-size: 14px; color: var(--ink-2); }

.gacha { position: relative; flex: 1; display: grid; place-items: center; min-height: 470px; }
.gacha__machine { position: relative; width: 270px; margin-bottom: 60px; }
.gacha__dome {
  position: relative; z-index: 1;
  height: 236px;
  border: 3px solid var(--ink); border-radius: 135px 135px 24px 24px;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, .25) 8% 28%, transparent 29%), linear-gradient(180deg, rgba(214, 232, 255, .55), rgba(190, 210, 245, .55));
  overflow: hidden;
}
.capsule {
  position: absolute;
  width: 54px; height: 54px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: linear-gradient(180deg, var(--cap, var(--orange)) 0 50%, #fff 50%);
  transition: transform .2s;
}
.capsule::after { content: ""; position: absolute; left: 22%; top: 16%; width: 26%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.gacha__body { position: relative; height: 200px; margin-top: -6px; background: var(--red); border: 3px solid var(--ink); border-radius: 0 0 26px 26px; box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .12); }
.gacha__label { position: absolute; top: 20px; left: 18px; margin: 0; font-family: var(--f-display); font-size: 18px; line-height: 1.15; color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.gacha__knob {
  position: absolute; right: 26px; top: 34px;
  width: 96px; height: 96px; padding: 0;
  border: 3px solid var(--ink); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #dfe5f1);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25);
  cursor: grab;
  touch-action: none;
  transform: rotate(var(--rot, 0deg));
}
.gacha__knob:active { cursor: grabbing; }
.gacha__handle { position: absolute; left: 50%; top: 50%; width: 80px; height: 20px; margin: -10px 0 0 -40px; background: var(--ink); border-radius: 10px; }
.gacha__handle::after { content: ""; position: absolute; right: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.gacha__chute { position: absolute; left: 22px; bottom: 26px; width: 84px; height: 66px; background: #151a2c; border: 3px solid var(--ink); border-radius: 16px 16px 34px 34px; }
.gacha__tray { position: absolute; inset: 0; pointer-events: none; }
.gacha__tray .capsule { pointer-events: auto; cursor: pointer; width: 64px; height: 64px; z-index: 5; }
.gacha__tray .capsule::before { content: "TAP!"; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; font-weight: 800; color: var(--orange); animation: tap 1s ease-in-out infinite; }
@keyframes tap { 50% { transform: translate(-50%, -4px); } }
.gacha__tray .capsule.is-half::before { display: none; }
.gacha__prize {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.gacha__rays { position: absolute; left: 50%; top: 42%; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: -1; background: repeating-conic-gradient(rgba(255, 210, 60, .5) 0 10deg, transparent 10deg 20deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%); animation: spin 14s linear infinite; opacity: 0; }
.gacha__prize.is-rare .gacha__rays { opacity: 1; }
.gacha__rarity { margin: 0; font-size: 22px; letter-spacing: .1em; color: var(--orange); text-shadow: 0 2px 0 var(--ink); }
.gacha__prize img { width: 180px; height: 180px; object-fit: contain; margin: 6px 0; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .2)); }
.gacha__prize h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.gacha__prize p:not(.gacha__rarity) { max-width: 26em; margin: 6px 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.gacha__book { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 2px dashed var(--line); }
.gacha__book p { margin: 0; font-weight: 900; font-size: 13px; white-space: nowrap; }
.gacha__book ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.gacha__book li { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: var(--mat-2); }
.gacha__book li img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) opacity(.2); }
.gacha__book li.is-got { background: var(--yellow); }
.gacha__book li.is-got img { filter: none; }

.rps__arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px; background: var(--night); border-radius: 18px; color: #fff; }
.rps__side p { margin: 0 0 8px; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #9AA6C8; }
.rps__hand { width: 92px; height: 92px; margin: 0 auto; display: grid; place-items: center; color: var(--yellow); background: #1b2240; border: 2px solid #2f3866; border-radius: 22px; }
.rps__hand--bot { color: var(--led); }
.rps__hand svg { width: 60px; height: 60px; }
.rps__hand.is-shake { animation: rps-shake .18s ease-in-out infinite; }
@keyframes rps-shake { 50% { transform: translateY(-8px) rotate(-6deg); } }
.rps__vs { min-width: 4.6em; margin: 0; text-align: center; font-family: var(--f-display); font-size: 22px; line-height: 1.2; }
.rps__vs.is-win { color: var(--lime); animation: stamp .5s var(--ease-spring); }
.rps__vs.is-lose { color: var(--pink); animation: stamp .5s var(--ease-spring); }
.rps__vs.is-draw { color: #fff; animation: stamp .5s var(--ease-spring); }
@keyframes stamp { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } }
.rps__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.rps__btns button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; font-weight: 900; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s, background-color .2s; }
.rps__btns button:hover { background: var(--yellow); }
.rps__btns button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.rps__btns button[disabled] { opacity: .5; pointer-events: none; }
.rps__btns svg { width: 38px; height: 38px; }
.rps__score { display: flex; gap: 8px; margin: 0 0 12px; }
.rps__score div { flex: 1; padding: 4px; text-align: center; background: var(--mat); border-radius: 10px; }
.rps__score dt { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.rps__score dd { margin: 0; font-family: var(--f-mono); font-weight: 800; font-size: 20px; line-height: 1.4; }
.rps__brain { padding: 12px 14px; border: 2px dashed var(--ink-3); border-radius: 14px; }
.rps__brain-title { margin: 0 0 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--blue); }
.rps__predict { margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.rps__bars { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rps__bars li { display: grid; grid-template-columns: 3.4em 1fr 3em; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.rps__bars i { position: relative; height: 10px; background: var(--mat-2); border-radius: 5px; overflow: hidden; }
.rps__bars i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--blue); border-radius: 5px; transition: width .5s var(--ease-out); }
.rps__bars li.is-top i::after { background: var(--orange); }
.rps__bars b { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }

.scratch { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2.5px solid var(--ink); border-radius: 18px; touch-action: none; user-select: none; }
.scratch__prize { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; text-align: center; background: radial-gradient(circle at 50% 40%, #FFF8D6, var(--yellow)); }
.scratch__small { margin: 0; font-weight: 800; font-size: 13px; }
.scratch__big { margin: 0; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; }
.scratch__big b { font-weight: 400; font-size: 1.5em; color: var(--red); }
.scratch__code { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.scratch__code code { font-family: var(--f-mono); font-weight: 800; padding: 2px 8px; background: #fff; border: 1.5px dashed var(--ink); border-radius: 6px; user-select: all; }
.scratch__foil { position: absolute; inset: 0; width: 100%; height: 100%; }
.scratch__foil { cursor: crosshair; transition: opacity .7s; }
.scratch__foil.is-gone { opacity: 0; pointer-events: none; }
.scratch__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.scratch__foot .note { margin: 0; }

/* ---------- CP-08 TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.flip { display: block; width: 100%; min-height: 410px; padding: 0; text-align: left; background: none; border: 0; perspective: 1300px; cursor: pointer; }
.flip__inner { position: relative; display: block; min-height: 410px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip:hover:not([aria-pressed="true"]) .flip__inner { transform: rotateY(-8deg); }
.flip__front, .flip__back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 24px;
  box-shadow: 0 8px 0 var(--ink);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip__back { transform: rotateY(180deg); align-items: center; text-align: center; background: var(--c); background-image: radial-gradient(rgba(255, 255, 255, .4) 1.6px, transparent 1.8px); background-size: 16px 16px; }
.flip__front img { width: 132px; height: 132px; object-fit: cover; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink); }
.flip__role { margin-top: 18px; font-family: var(--f-mono); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.flip__name { margin-top: 4px; font-family: var(--f-display); font-size: 27px; line-height: 1.3; }
.flip__name small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); }
.flip__msg { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.flip__front::after { content: "CLICK TO FLIP"; margin-top: auto; padding-top: 16px; font-family: var(--f-mono); font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--orange); }
.flip__back img { height: 150px; width: auto; max-width: 80%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .22)); }
.flip__buddy { margin-top: 10px; font-weight: 900; font-size: 16px; }
.spec { display: grid; gap: 6px; width: 100%; margin-top: 14px; text-align: left; }
.spec > span { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; padding: 6px 10px; font-size: 13px; line-height: 1.55; background: rgba(255, 255, 255, .82); border: 1.5px solid var(--ink); border-radius: 10px; }
.spec b { font-size: 11px; font-weight: 900; }

/* ---------- CP-09 VOICES ---------- */
.voices__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.voices .sec-head { margin-bottom: 0; }
.stack-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.stack-ctrl__no { margin: 0; font-family: var(--f-mono); font-weight: 800; font-size: 16px; }
.stack { position: relative; height: 400px; touch-action: pan-y; }
.voice {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  margin: 0; padding: 40px 36px 34px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 26px;
  box-shadow: 0 10px 0 var(--ink);
  user-select: none; -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}
.voice::before { content: "“"; position: absolute; top: -2px; left: 30px; font-family: var(--f-display); font-size: 120px; line-height: 1; color: var(--c); -webkit-text-stroke: 2.5px var(--ink); }
.voice p { position: relative; margin: 58px 0 0; font-size: clamp(18px, 1.2vw + 10px, 24px); font-weight: 800; line-height: 1.8; }
.voice cite { display: flex; align-items: center; gap: 10px; font-style: normal; font-weight: 800; font-size: 14px; }
.voice cite::before { content: ""; width: 30px; height: 30px; flex: none; background: var(--c); border: 2px solid var(--ink); border-radius: 50%; }

/* ---------- CP-10 PRICE ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.price-box, .timetable-box { padding: clamp(18px, 2.4vw, 28px); background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-l); box-shadow: 0 10px 0 var(--ink); min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price-table th, .price-table td { padding: 12px 10px; text-align: left; white-space: nowrap; border-bottom: 1.5px solid var(--line); }
.price-table thead th { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.price-table tbody th { font-weight: 900; }
.price-table .num { font-family: var(--f-mono); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -1px; background: var(--c); border: 2px solid var(--ink); border-radius: 50%; }
.price-notes { display: grid; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; line-height: 1.7; }
.price-notes b { display: inline-block; min-width: 6.5em; font-weight: 900; }
.timetable-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.timetable-box__head h3 { margin: 0; font-size: 18px; font-weight: 900; }
.clock { margin: 0; padding: 4px 12px; font-family: var(--f-mono); font-weight: 800; font-size: 19px; color: var(--led); background: var(--night); border-radius: 8px; text-shadow: 0 0 8px rgba(61, 232, 242, .6); font-variant-numeric: tabular-nums; }
.timetable-box__next { margin: 10px 0 14px; font-size: 14px; font-weight: 800; line-height: 1.6; }
.timetable-box__next b { color: var(--orange); }
.tt { min-width: 560px; }
.tt__head, .tt__body { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 4px; }
.tt__head { margin-bottom: 6px; }
.tt__day { padding: 4px 0; text-align: center; font-weight: 900; font-size: 13px; border-radius: 8px; }
.tt__day.is-today { background: var(--ink); color: var(--yellow); }
.tt__body { position: relative; height: 430px; margin-bottom: 12px; }
.tt__times { position: relative; }
.tt__times span { position: absolute; right: 4px; transform: translateY(-50%); font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3); }
.tt__col {
  position: relative;
  background-color: var(--mat);
  background-image: linear-gradient(180deg, var(--mat-2) 1px, transparent 1px);
  background-size: 100% calc(100% / 11);
  border-radius: 8px;
}
.tt__col.is-today { background-color: rgba(255, 210, 60, .22); box-shadow: inset 0 0 0 2px var(--ink); }
.tt__cls { position: absolute; left: 3px; right: 3px; padding: 4px 5px; overflow: hidden; font-size: 11px; font-weight: 800; line-height: 1.3; background: var(--c); border: 1.5px solid var(--ink); border-radius: 8px; }
.tt__cls b { display: block; font-family: var(--f-mono); font-size: 9px; font-weight: 800; }
.tt__cls.is-now { box-shadow: 0 0 0 3px var(--orange); animation: now-pulse 1.4s ease-in-out infinite; z-index: 2; }
@keyframes now-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 106, 19, .35); } }
.tt__cls.is-past { opacity: .45; }
.tt__now { position: absolute; left: -3px; right: -3px; z-index: 3; height: 3px; margin-top: -1.5px; background: var(--orange); border-radius: 2px; pointer-events: none; }
.tt__now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); }
.tt__now span { position: absolute; right: 0; top: -20px; padding: 0 5px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 800; color: #fff; background: var(--orange); border-radius: 4px; white-space: nowrap; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 12px; font-weight: 700; }
.tt-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--c); border: 1.5px solid var(--ink); border-radius: 4px; }

/* ---------- CP-11 FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.qa { border-bottom: 2px solid var(--ink); }
.qa:first-child { border-top: 2px solid var(--ink); }
.qa h3 { margin: 0; }
.qa__q {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 18px 4px;
  font-weight: 900; font-size: clamp(15px, .6vw + 11px, 18px); line-height: 1.55;
  text-align: left;
  background: none; border: 0;
  cursor: pointer;
}
.qa__q:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.qa__gear { width: 46px; height: 46px; flex: none; fill: var(--ink); transform: rotate(var(--rot, 0deg)); transition: transform .9s var(--ease-out), fill .3s; }
.qa.is-open .qa__gear { fill: var(--orange); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.qa.is-open .qa__a > div { visibility: visible; transition: visibility 0s; }
.qa__a p { margin: 0 0 22px 62px; padding: 14px 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; }
.faq__bot { position: sticky; top: calc(var(--header-h) + 40px); margin: 0; text-align: center; }
.faq__bot img { width: 190px; margin: 0 auto; animation: float 4.6s ease-in-out infinite; }

/* ---------- GOAL ---------- */
.goal {
  overflow: hidden;
  background-color: var(--blue);
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
}
.goal__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.goal .container { position: relative; z-index: 1; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .sec-lead { margin-inline: auto; }
.goal__flag { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 18px; font-family: var(--f-mono); font-weight: 800; letter-spacing: .3em; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); }
.goal__flag svg { width: 22px; height: 22px; }
.goal .sec-title { color: #fff; font-size: clamp(2.4rem, 4.6vw + .8rem, 4.8rem); text-shadow: 0 5px 0 var(--ink); }
.goal .sec-lead { color: #DDE5FF; }
.charge { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 64px; }
.charge__btn {
  --p: 0;
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 28px 18px 22px;
  color: var(--ink); background: var(--yellow);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 var(--ink);
  cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: none;
  transition: box-shadow .1s, transform .1s;
}
.charge__btn.is-charging { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); animation: charge-shake .07s linear infinite; }
@keyframes charge-shake {
  0% { translate: calc(var(--p) * -2px) 0; }
  50% { translate: calc(var(--p) * 2px) calc(var(--p) * -1px); }
  100% { translate: 0 0; }
}
.charge__btn.is-full { background: var(--lime); }
.charge__batt { position: relative; width: 66px; height: 34px; flex: none; padding: 3px; background: #fff; border: 3px solid var(--ink); border-radius: 8px; }
.charge__batt::after { content: ""; position: absolute; right: -9px; top: 8px; width: 6px; height: 12px; background: var(--ink); border-radius: 0 3px 3px 0; }
.charge__fill { display: block; height: 100%; width: calc(var(--p) * 100%); background: hsl(calc(var(--p) * 115) 88% 48%); border-radius: 3px; }
.charge__text b { display: block; font-weight: 900; font-size: 17px; line-height: 1.4; }
.charge__text small { font-size: 12.5px; font-weight: 700; }
.charge__skip { font-size: 13px; font-weight: 700; color: #fff; }
.apply { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: end; gap: 32px; max-width: 1060px; margin: 0 auto; }
.apply__bot { position: relative; margin: 0 0 20px; }
.apply__bot .bubble { font-size: 14px; }
.apply__imgs { position: relative; aspect-ratio: 4 / 5; }
.apply__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.88) translateY(14px); transition: opacity .35s, transform .5s var(--ease-spring); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .3)); }
.apply__imgs img.is-active { opacity: 1; transform: none; }
.apply__bot.is-shake .apply__imgs { animation: crash .5s; }
.apply__bot.is-tilt .apply__imgs img.is-active { transform: rotate(var(--tilt, 0deg)); }
.apply__form, .apply__done { color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-l); box-shadow: 0 12px 0 var(--ink); padding: clamp(20px, 3vw, 36px); }
.apply__form .field { margin-bottom: 16px; }
.apply__title { margin: 0 0 18px; font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field--radio { margin: 0 0 16px; padding: 0; border: 0; }
.field--radio legend { padding: 0; margin-bottom: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radios span { display: inline-block; padding: 10px 16px; font-weight: 800; font-size: 14px; background: var(--mat); border: 2px solid var(--ink); border-radius: 99px; cursor: pointer; transition: background-color .2s, color .2s; }
.radios input:checked + span { background: var(--ink); color: #fff; }
.radios input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.radios.is-invalid span { border-color: var(--red); }
.apply__submit { width: 100%; margin-top: 6px; }
.apply__done { text-align: center; }
.apply__done h3 { margin: 6px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.apply__done p { font-weight: 700; }
.balloons { position: absolute; inset: -40% 0 0 0; pointer-events: none; overflow: visible; z-index: 20; }
.balloon { position: absolute; bottom: -140px; width: 56px; height: 68px; background: var(--c); border: 2.5px solid var(--ink); border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%; animation: rise var(--d, 5s) ease-in forwards; }
.balloon::before { content: ""; position: absolute; left: 50%; bottom: -9px; width: 10px; height: 8px; margin-left: -5px; background: var(--c); border: 2px solid var(--ink); border-radius: 3px; }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 70px; margin-top: 6px; background: var(--ink); }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(-4deg); opacity: 1; }
  50% { transform: translate(var(--sx, 20px), -55vh) rotate(5deg); }
  100% { transform: translate(calc(var(--sx, 20px) * -1), -120vh) rotate(-4deg); opacity: .9; }
}

/* ---------- フッター ---------- */
.site-footer { position: relative; overflow: hidden; color: #DCE2F5; background: var(--ink); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.toybox { position: relative; height: 360px; background: #141a2e; border-bottom: 3px solid #000; }
.toybox::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
#toyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.toybox__ui { position: absolute; top: 18px; left: 50%; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 32px); transform: translateX(-50%); }
.toybox__hint { margin: 0 8px 0 0; font-family: var(--f-pixel); font-size: 16px; color: #fff; }
.toybox .btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; border-color: #fff; box-shadow: 0 3px 0 #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.logo--footer .logo__word { font-size: 46px; color: #fff; }
.logo--footer .logo__eye { background: #fff; }
.logo--footer .logo__eye i { background: var(--ink); box-shadow: none; }
.footer-brand p { margin: 10px 0 0; font-weight: 700; font-size: 13px; }
.footer-info h3 { margin: 0; font-size: 14px; color: #fff; }
.footer-info p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; }
.footer-tel { font-family: var(--f-mono); font-weight: 800; color: #fff; }
.footer-tel small { font-family: var(--f-body); font-weight: 500; color: #9AA6C8; }
.footer-links { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #8C96B8; }
.footer-bottom p { margin: 0; }

/* ---------- 常駐UI ---------- */
.course-map { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); top: 50%; z-index: 40; display: none; width: 40px; height: min(62vh, 540px); transform: translateY(-50%); }
.course-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.course-map__line { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.course-map__trace { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.course-map__cps { list-style: none; margin: 0; padding: 0; }
.cm-cp { position: absolute; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; padding: 0; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 50%; cursor: pointer; transition: background-color .3s, transform .3s var(--ease-spring); }
.cm-cp:hover { transform: scale(1.35); }
.cm-cp.is-passed { background: var(--orange); }
.cm-cp span { position: absolute; left: 22px; top: 50%; padding: 3px 10px; font-size: 12px; font-weight: 800; line-height: 1.6; white-space: nowrap; color: #fff; background: var(--ink); border-radius: 8px; opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s, transform .2s; pointer-events: none; }
.cm-cp:hover span, .cm-cp:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.course-map__bot { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; will-change: transform; }
.course-map__bot svg { width: 100%; height: 100%; display: block; }
.progress-line { position: fixed; left: 0; right: 0; top: 0; z-index: 61; height: 4px; pointer-events: none; }
.progress-line span { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (min-width: 1360px) {
  .course-map { display: block; }
  .progress-line { display: none; }
}

.rocket {
  position: fixed; z-index: 45;
  right: calc(max(16px, env(safe-area-inset-right, 0px)) + 12px);
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  width: 42px; height: 68px; padding: 0;
  background: none; border: 0;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.rocket.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.rocket svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 0 rgba(13, 18, 34, .25)); }
.rocket__flame { fill: var(--orange); transform-origin: 20px 50px; transform: scaleY(0); transition: transform .2s; }
.rocket:hover .rocket__flame { transform: scaleY(.7); }
.rocket.is-launch .rocket__flame { transform: scaleY(1.6); fill: var(--yellow); }
.rocket.is-launch { transition: none; }

.chat { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.chat__fab { display: flex; align-items: center; gap: 10px; padding: 5px 18px 5px 5px; font-weight: 900; font-size: 14px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; transition: transform .2s var(--ease-spring); }
.chat__fab:hover { transform: translateY(-3px) rotate(-2deg); }
.chat__fab img { width: 46px; height: 46px; object-fit: cover; object-position: 50% 6%; background: var(--sky); border: 2px solid var(--ink); border-radius: 50%; }
.chat__panel {
  position: absolute; right: 0; bottom: 72px;
  display: flex; flex-direction: column;
  width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100svh - 120px));
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
  transform-origin: 90% 100%;
  animation: chat-in .35s var(--ease-spring);
}
@keyframes chat-in { from { opacity: 0; transform: scale(.6) translateY(20px); } }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; color: #fff; background: var(--ink); }
.chat__head p { margin: 0; line-height: 1.3; }
.chat__head small { display: block; font-size: 11px; color: #9AA6C8; }
.chat__close { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: none; border: 1.5px solid #fff; border-radius: 50%; cursor: pointer; }
.chat__close svg { width: 16px; height: 16px; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; list-style: none; overflow-y: auto; background: var(--mat); position: relative; }
.msg { max-width: 86%; padding: 9px 13px; font-size: 14px; line-height: 1.7; border: 2px solid var(--ink); border-radius: 16px; animation: msg-in .3s var(--ease-spring); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; color: #fff; background: var(--blue); border-bottom-right-radius: 4px; }
.msg a { font-weight: 800; }
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 7px; height: 7px; background: var(--ink-3); border-radius: 50%; animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-5px); background: var(--ink); } }
.chat__chips { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; background: #fff; border-top: 2px solid var(--ink); }
.chat__chips button { flex: none; padding: 5px 11px; font-size: 12px; font-weight: 800; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 99px; cursor: pointer; }
.chat__chips button:hover { background: var(--yellow); }
.chat__form { display: flex; gap: 6px; padding: 10px; border-top: 2px solid var(--ink); }
.chat__form input { flex: 1; min-width: 0; padding: 8px 12px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 12px; }
.chat__form input:focus { outline: none; border-color: var(--blue); }
.chat__form button { width: 44px; flex: none; display: grid; place-items: center; color: #fff; background: var(--orange); border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; }
.chat__form button svg { width: 20px; height: 20px; }
.heart { position: absolute; bottom: 10px; font-size: 22px; color: var(--pink); animation: heart-up 2s ease-out forwards; pointer-events: none; }
@keyframes heart-up { to { transform: translate(var(--hx, 0px), -360px) scale(1.4) rotate(20deg); opacity: 0; } }

/* カスタムカーソル */
.cursor { position: fixed; left: 0; top: 0; z-index: 2600; display: none; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.is-text .cursor__ring { opacity: 0; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea) { cursor: text !important; }
.cursor__dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--orange); border-radius: 50%; transform: translate3d(var(--x, -100px), var(--y, -100px), 0); }
.cursor__ring {
  position: absolute; left: 0; top: 0;
  width: var(--w, 36px); height: var(--h, 36px);
  border: 2px solid var(--ink); border-radius: var(--br, 50%);
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0);
  transition: border-radius .25s, border-color .25s, opacity .25s;
}
.cursor.is-down .cursor__ring { scale: .82; }
.cursor.is-lock .cursor__ring { border-color: transparent; --br: 10px; }
.cursor__ring i { position: absolute; width: 12px; height: 12px; border: 3px solid var(--orange); opacity: 0; transition: opacity .2s; }
.cursor__ring i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.cursor__ring i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.cursor__ring i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.cursor__ring i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.cursor.is-lock .cursor__ring i { opacity: 1; }
.cursor.on-dark .cursor__ring { border-color: rgba(255, 255, 255, .85); }
.cursor.on-dark.is-lock .cursor__ring { border-color: transparent; }
.cursor__label { position: absolute; left: 0; top: 0; padding: 3px 7px; font-family: var(--f-mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; line-height: 1.4; color: #fff; background: var(--ink); border-radius: 5px; white-space: nowrap; opacity: 0; transform: translate3d(calc(var(--x, -100px) + 18px), calc(var(--y, -100px) + 18px), 0); transition: opacity .2s; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.on-dark .cursor__label { color: var(--ink); background: var(--led); }
html.is-night .cursor__ring { border-color: var(--yellow); }

.fx-canvas { position: fixed; inset: 0; z-index: 2550; width: 100%; height: 100%; pointer-events: none; }

/* ナイトモード */
.night {
  position: fixed; inset: 0; z-index: 1400;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  background: radial-gradient(circle var(--nr, 170px) at var(--nx, 50%) var(--ny, 50%), rgba(4, 7, 18, 0) 0%, rgba(4, 7, 18, .1) 55%, rgba(4, 7, 18, .94) 100%);
  transition: opacity .7s, visibility 0s .7s;
}
html.is-night .night { opacity: 1; visibility: visible; transition: opacity .7s; }
html.is-night .site-header { z-index: 1410; }
.night__eyes { position: absolute; inset: 0; }
.n-eyes { position: absolute; display: flex; gap: 9px; transition: opacity .35s, transform .35s; }
.n-eye { position: relative; width: 15px; height: 15px; background: var(--led); border-radius: 50%; box-shadow: 0 0 10px var(--led), 0 0 26px var(--led); animation: nblink 4.5s infinite; }
.n-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #04121a; border-radius: 50%; transform: translate(var(--ex, 0px), var(--ey, 0px)); }
.n-eyes.is-shy { opacity: 0; transform: scale(.6); }
.n-eyes:nth-child(2n) .n-eye { background: var(--pink); box-shadow: 0 0 10px var(--pink), 0 0 26px #ff4fb2; animation-delay: 1.3s; }
.n-eyes:nth-child(3n) .n-eye { background: var(--yellow); box-shadow: 0 0 10px var(--yellow), 0 0 26px var(--orange); animation-delay: 2.2s; }
@keyframes nblink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }

/* 放置スクリーンセーバー */
.idle { position: fixed; inset: 0; z-index: 1450; overflow: hidden; pointer-events: none; background: rgba(9, 13, 27, .84); opacity: 0; visibility: hidden; transition: opacity .9s, visibility 0s .9s; }
.idle.is-on { opacity: 1; visibility: visible; transition: opacity .9s; }
.idle img { position: absolute; left: 0; top: 0; width: 170px; will-change: transform; filter: drop-shadow(0 0 30px rgba(61, 232, 242, .4)); }
.idle__msg { position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-family: var(--f-pixel); font-size: 16px; color: #fff; }
.zzz { position: absolute; font-family: var(--f-display); color: #fff; pointer-events: none; animation: zzz 2.6s ease-out forwards; }
@keyframes zzz { to { transform: translate(40px, -90px) rotate(12deg) scale(1.6); opacity: 0; } }

/* ロボット大行進 */
.parade { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1460; height: 220px; overflow: hidden; pointer-events: none; }
.parade img { position: absolute; bottom: 8px; left: 0; height: 130px; width: auto; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .25)); }

.toast {
  position: fixed; z-index: 2700; left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  font-weight: 800; font-size: 14px; line-height: 1.5; text-align: center;
  color: #fff; background: var(--ink);
  border: 2px solid #fff; border-radius: 99px;
  box-shadow: 0 6px 0 rgba(13, 18, 34, .3);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1180px) {
  .gnav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    margin: 0;
    padding: 16px var(--gx-r) 24px var(--gx);
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 16px 30px rgba(13, 18, 34, .15);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease-out), opacity .25s, visibility 0s .35s;
  }
  .gnav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .35s var(--ease-out), opacity .25s; }
  .gnav ul { flex-direction: column; gap: 4px; }
  .gnav a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .gnav li { opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .3s var(--ease-out); }
  .gnav.is-open li { opacity: 1; transform: none; }
  .gnav.is-open li:nth-child(2) { transition-delay: .04s; }
  .gnav.is-open li:nth-child(3) { transition-delay: .08s; }
  .gnav.is-open li:nth-child(4) { transition-delay: .12s; }
  .gnav.is-open li:nth-child(5) { transition-delay: .16s; }
  .gnav.is-open li:nth-child(6) { transition-delay: .2s; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: block; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dial { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .dial__result { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; padding-bottom: 150px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__fade { background: linear-gradient(180deg, rgba(246, 247, 251, .92) 0%, rgba(246, 247, 251, .7) 50%, rgba(246, 247, 251, .2) 100%); }
  .hero__visual { max-width: 460px; }
  .scroll-cue { display: none; }
  .about__intro { grid-template-columns: minmax(0, 1fr); }
  .polaroid { max-width: 420px; justify-self: center; }
  .cycle { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puzzle { grid-template-columns: minmax(0, 1fr); }
  .puzzle__board { margin-inline: auto; }
  .puzzle__mascot { display: none; }
  .puzzle__ctrl { padding-right: 0; }
  .tracer { grid-template-columns: minmax(0, 1fr); }
  .assembly__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: clamp(84px, 10vw, 150px); }
  .asm { max-height: 520px; }
  .customizer { grid-template-columns: minmax(0, 1fr); }
  .customizer__view { min-height: 380px; border-right: 0; border-bottom: 2.5px solid var(--ink); }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
  .ledboard { grid-template-columns: minmax(0, 1fr); }
  .ledboard__panel { grid-column: auto; grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 34vw, 260px); }
  .shot--a, .shot--b, .shot--c, .shot--d, .shot--e, .shot--f { grid-column: span 1; grid-row: span 1; }
  .shot--a, .shot--d { grid-column: span 2; }
  .fun-grid { grid-template-columns: minmax(0, 1fr); }
  .gacha-card { grid-row: auto; }
  .team-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; }
  .voices__grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq__bot { position: static; display: flex; align-items: center; gap: 16px; text-align: left; }
  .faq__bot img { width: 110px; }
  .faq__bot .bubble { flex: 1; margin: 0; }
  .faq__bot .bubble::after { left: auto; right: -13px; bottom: 50%; margin: 0 0 -10px; transform: rotate(-45deg); }
  .faq__bot .bubble { order: -1; }
  .apply { grid-template-columns: minmax(0, 1fr); }
  .apply__bot { display: grid; grid-template-columns: 1fr 120px; align-items: end; gap: 12px; margin: 0; }
  .apply__bot .bubble { margin: 0 0 20px; }
  .apply__bot .bubble::after { left: auto; right: 30px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .logo__sub { display: none; }
  .logo__word { font-size: 26px; }
  .power__label { display: none; }
  .header-cta { display: none; }
  .hero__ctas .btn { width: 100%; }
  .callout--a { left: 0; }
  .callout--b { right: 0; }
  .tapes { height: 156px; margin-top: -44px; }
  .tape--ink { top: 26px; }
  .tape--orange { top: 84px; }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .dial { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .dial__ticks li { width: 22px; font-size: 10px; }
  .meters { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .shot--a, .shot--d { grid-column: span 1; }
  .gacha { min-height: 430px; }
  .gacha__rates { position: relative; justify-self: start; margin-bottom: 8px; transform: none; }
  .gacha__machine { transform: scale(.92); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .stack { height: 440px; }
  .voice { padding: 34px 24px 28px; }
  .flip, .flip__inner { min-height: 420px; }
  .toybox { height: 320px; }
  .touch__frame { aspect-ratio: 4 / 3; }
  .touch__half { object-position: 46% 50%; }
  .rocket { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .chat__fab-label { display: none; }
  .chat__fab { padding: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .boot { display: none; }
}

/* ---------- 追加：ガチャの排出率 / 3D非対応時の代替表示 ---------- */
.gacha__rates {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: grid; gap: 2px;
  margin: 0; padding: 10px 12px;
  font-size: 12px; line-height: 1.5;
  background: var(--mat);
  border: 2px solid var(--ink); border-radius: 12px;
  transform: rotate(-3deg);
}
.gacha__rates::before { content: "出やすさ"; display: block; margin-bottom: 2px; font-weight: 900; font-size: 11px; }
.gacha__rates div { display: flex; justify-content: space-between; gap: 14px; }
.gacha__rates dt { color: var(--orange); letter-spacing: .04em; }
.gacha__rates dd { margin: 0; font-family: var(--f-mono); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .gacha__machine { transform: scale(1.12); transform-origin: 50% 100%; } }
.customizer__fallback { position: absolute; left: 50%; top: 50%; width: min(60%, 300px); transform: translate(-50%, -54%); filter: drop-shadow(0 20px 18px rgba(13, 18, 34, .25)); }
