/*
 * vsboat.app 公開ページのスタイル（2026-10-02 夜に作り直し）。HTML は src/site.ts、小さな動きは site.js。
 *
 * 方針（ui-ux-pro-max の推奨「3D & Hyperrealism ＋ Hero-Centric」を土台に、色と形はゲーム本体から取る）
 *   ・色: 夜の紺（ページ）、板の紺＋青の細線（pl_bar）、金（--c-accent #ffb840・淡金 #ffd682）、ロゴの橙 #ff7a00、白青の字。
 *         枠番の 6 色（白黒赤青黄緑。ゲームの .lane-N と同じ値）は枠番・帯など意味のある所だけに使う。
 *   ・形: ゲームの板と同じ「左上と右下の角を斜めに切った板＋内側の細線」（.plate）。丸い角の汎用カードは使わない。
 *   ・字: 見出しはゲームと同じ Noto Sans JP の太字（700/800/900。使う字だけを読む。site.ts の displayFontUrl）、本文は端末の字
 *         （iPhone・Mac はヒラギノ、Android は Noto Sans CJK）。数字もゲームと同じ太字＋斜体。見出しはゲームの「太字＋斜体」。
 *   ・動き: ヒーローの入り（1 回）と、遊び方の線の流れ（向きを示す）だけ。押せる物には押した手応え。動きを減らす設定では全部止める。
 *   ・暗い画面だけ（ゲームが夜の世界のため。color-scheme: dark）。
 */

@property --line {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(111, 158, 232, 0.5);
}

/* ---------- トークン ---------- */
:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  /* 夜（ページの地） */
  --night-950: #040a1c;
  --night-900: #07112a;
  --night-850: #0a1733;
  --night-800: #0e1d3d;
  /* 板（ゲームの pl_bar を明るさだけ控えめに） */
  --plate-a: #1c2841;
  --plate-b: #111a2e;
  --plate-c: #0a1222;
  --plate-fill: linear-gradient(180deg, var(--plate-a) 0%, var(--plate-b) 46%, var(--plate-c) 100%);
  --line-blue: rgba(111, 158, 232, 0.5);
  --line-gold: rgba(255, 214, 130, 0.78);
  --hair: rgba(111, 158, 232, 0.16);
  --hair-strong: rgba(111, 158, 232, 0.3);
  /* 金（ゲームの --c-accent・pl_gold） */
  --gold-050: #fef0d2;
  --gold-200: #ffd682;
  --gold-300: #ffca60;
  --gold-400: #ffb840;
  --gold-500: #ed9d2f;
  --gold-700: #a26215;
  --gold-ink: #3a1c00;
  --orange: #ff7a00;
  /* 字（白青） */
  --ink-000: #ffffff;
  --ink-100: #eef4fc;
  --ink-200: #d6e2f2;
  --ink-300: #c2d2ea;
  --ink-400: #9eb2cc;
  /* 枠番（ゲームの .lane-1〜6） */
  --lane-1: #f5f5f5;
  --lane-2: #1e1e1e;
  --lane-3: #dc2828;
  --lane-4: #1e5adc;
  --lane-5: #f0c81e;
  --lane-6: #1ea05a;
  /* アイコンの抜き（板の色） */
  --icon-gap: #172440;
  --icon-cut: #0b1730;

  /* 本文は端末の字。見出し（--font-display）だけゲームと同じ Noto Sans JP の太字（使う字だけ読む）。数字もゲームと同じ太字＋斜体 */
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;
  --font-display: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4.4vw, 40px);
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* 板の形（左上・右下を切る / 4 隅を切る）。内側は 1px 内へ寄せた分だけ切りを詰める（45° なので 0.59px） */
  --cut: 14px;
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --shape-in: polygon(calc(var(--cut) - 0.6px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.6px), calc(100% - var(--cut) + 0.6px) 100%, 0 100%, 0 calc(var(--cut) - 0.6px));
  --shape4: 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));
  --shape4-in: polygon(calc(var(--cut) - 0.6px) 0, calc(100% - var(--cut) + 0.6px) 0, 100% calc(var(--cut) - 0.6px), 100% calc(100% - var(--cut) + 0.6px), calc(100% - var(--cut) + 0.6px) 100%, calc(var(--cut) - 0.6px) 100%, 0 calc(100% - var(--cut) + 0.6px), 0 calc(var(--cut) - 0.6px));
}

/* ---------- 下地 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night-950);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-200);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nb {
  display: inline-block;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
:focus-visible {
  outline: 2px solid var(--gold-200);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-400);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* 見出しの字（ゲームと同じ Noto Sans JP の太字）と、和文の行の折り返し（文節で折る・見出しは行をそろえる） */
.hero-copy,
.section-title,
.feature-title,
.shot-title,
.step-title,
.loop-again,
.finale-title,
.help-title,
.store-big,
.doc-title,
.doc-h2,
.faq-q {
  font-family: var(--font-display);
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* ---------- 板（ゲームの pl_bar / pl_glass_gold と同じ作り） ----------
   ::before が細線の色の板、::after が 1px 内側の地。どちらも角を切る。要素そのものは切らない（フォーカスの枠が見えるように） */
.plate {
  --line: var(--line-blue);
  --fill: var(--plate-fill);
  position: relative;
  isolation: isolate;
  transition: --line 0.22s var(--ease-std);
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.plate::before {
  inset: 0;
  z-index: -2;
  background: var(--line);
  clip-path: var(--shape);
}
.plate::after {
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--shape-in);
}
.plate--4::before {
  clip-path: var(--shape4);
}
.plate--4::after {
  clip-path: var(--shape4-in);
}
.plate--gold {
  --line: var(--line-gold);
}

/* ---------- 枠番タイル（ゲームの .entry-lane） ---------- */
.lane {
  --s: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.09);
  border: max(2px, calc(var(--s) * 0.06)) solid rgba(255, 255, 255, 0.86);
  background: var(--lane-bg);
  color: var(--lane-fg, #fff);
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: calc(var(--s) * 0.56);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.lane-1 {
  --lane-bg: var(--lane-1);
  --lane-fg: #141414;
}
.lane-2 {
  --lane-bg: var(--lane-2);
}
.lane-3 {
  --lane-bg: var(--lane-3);
}
.lane-4 {
  --lane-bg: var(--lane-4);
}
.lane-5 {
  --lane-bg: var(--lane-5);
  --lane-fg: #141414;
}
.lane-6 {
  --lane-bg: var(--lane-6);
}
.lane-stripe {
  display: flex;
  height: 4px;
}
.lane-stripe i {
  flex: 1;
}
.lane-stripe i:nth-child(1) {
  background: var(--lane-1);
}
.lane-stripe i:nth-child(2) {
  background: #2a2a2a;
}
.lane-stripe i:nth-child(3) {
  background: var(--lane-3);
}
.lane-stripe i:nth-child(4) {
  background: var(--lane-4);
}
.lane-stripe i:nth-child(5) {
  background: var(--lane-5);
}
.lane-stripe i:nth-child(6) {
  background: var(--lane-6);
}

/* ---------- アイコン ---------- */
.icon-box {
  --cut: 10px;
  --line: var(--line-blue);
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: var(--ink-100);
}
.icon-box::before,
.icon-box::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.icon-box::before {
  inset: 0;
  z-index: -2;
  background: var(--line);
  clip-path: var(--shape);
}
.icon-box::after {
  inset: 1px;
  z-index: -1;
  background: var(--icon-gap);
  clip-path: var(--shape-in);
}
.icon-box svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}
.icon-box--sm {
  --cut: 8px;
  width: 48px;
  height: 48px;
}
.icon-box--sm svg {
  width: 28px;
  height: 28px;
}
.ic-gap {
  stroke: var(--icon-gap);
  stroke-width: 1.8px;
  paint-order: stroke;
}
.ic-cut {
  fill: var(--icon-cut);
}
.ic-cut-stroke {
  stroke: var(--icon-cut);
}

/* ブイ（ターンマーク） */
.buoy-float {
  fill: #13254a;
  stroke: rgba(140, 180, 240, 0.6);
  stroke-width: 1;
}
.buoy-cone {
  fill: #f4f6fa;
}
.buoy-band {
  fill: #e0322f;
}
.buoy-shade {
  fill: rgba(0, 0, 0, 0.16);
}
.buoy-lamp {
  fill: var(--gold-200);
}

/* 大時計 */
.clock-face {
  fill: #0b1834;
  stroke: var(--ink-100);
  stroke-width: 2;
}
.clock-red {
  fill: none;
  stroke: #ff4a3d;
  stroke-width: 3.2;
  stroke-linecap: round;
}
.clock-ticks {
  stroke: var(--ink-300);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.clock-hand {
  stroke: var(--gold-200);
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-origin: 20px 20px;
  transform: rotate(-24deg);
}
.clock-cap {
  fill: var(--gold-200);
}
@media (prefers-reduced-motion: no-preference) {
  .store-badge .clock-hand {
    animation: clock-tick 10s steps(10, end) infinite;
  }
}
@keyframes clock-tick {
  from {
    transform: rotate(-66deg);
  }
  to {
    transform: rotate(-6deg);
  }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 10, 28, 0.62) 0%, rgba(4, 10, 28, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-header.is-solid,
.page-doc .site-header {
  background: rgba(6, 14, 34, 0.86);
  border-bottom-color: rgba(111, 158, 232, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.site-header.is-solid::before,
.page-doc .site-header::before {
  opacity: 0;
}
.header-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  height: 44px;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.brand-logo {
  height: 28px;
  width: auto;
}
.page-top .site-header:not(.is-solid) .brand {
  opacity: 0;
  transform: translateY(-4px);
}
.page-top .site-header:not(.is-solid) .brand:focus-visible {
  opacity: 1;
  transform: none;
}
.nav-main {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-100);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-200), var(--orange));
  transform: scaleX(0) skewX(-20deg);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1) skewX(-20deg);
}
.nav-link[aria-current="page"] {
  color: var(--gold-200);
}

/* スマホのメニュー（details。JS が無くても開く） */
.menu {
  position: relative;
}
.menu-button {
  --cut: 8px;
  list-style: none;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-100);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.menu-button::-webkit-details-marker {
  display: none;
}
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.menu-button::before {
  inset: 0;
  z-index: -2;
  background: rgba(238, 244, 252, 0.3);
  clip-path: var(--shape);
}
.menu-button::after {
  inset: 1px;
  z-index: -1;
  background: rgba(6, 14, 34, 0.72);
  clip-path: var(--shape-in);
}
.menu-button:active {
  transform: scale(0.97);
}
.burger {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}
.burger path {
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
  transform-origin: 12px 12px;
}
.menu[open] .burger-1 {
  transform: translateY(5px) rotate(45deg);
}
.menu[open] .burger-2 {
  opacity: 0;
}
.menu[open] .burger-3 {
  transform: translateY(-5px) rotate(-45deg);
}
.menu-sheet {
  --cut: 14px;
  --line: var(--line-gold);
  --fill: linear-gradient(180deg, #17233c 0%, #0c1529 100%);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  isolation: isolate;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.6));
}
.menu-sheet::before,
.menu-sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.menu-sheet::before {
  inset: 0;
  z-index: -2;
  background: var(--line);
  clip-path: var(--shape);
}
.menu-sheet::after {
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--shape-in);
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-sheet {
    animation: sheet-in 0.28s var(--ease-out) both;
  }
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.menu-group {
  display: grid;
}
.menu-group + .menu-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--hair-strong);
}
.menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-100);
  text-decoration: none;
}
.menu-group--pages .menu-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-200);
}
.menu-link:hover,
.menu-link:active {
  background: rgba(255, 255, 255, 0.05);
}
.menu-link[aria-current="page"] {
  color: var(--gold-200);
}
@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }
  .nav-main {
    display: flex;
  }
  .menu {
    display: none;
  }
  .brand-logo {
    height: 32px;
  }
}

/* ---------- ヒーロー（起動画面と同じ構図: 3D の場面の上にロゴと札） ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 132px;
  overflow: hidden;
  text-align: center;
  background: var(--night-950);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 80% at 50% 32%, #15305c 0%, #091633 55%, #040a1c 100%);
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* iPhone の省電力モードなどで自動再生できないときに、再生の印が出ないようにする（poster のまま見せる） */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 46% at 50% 48%, rgba(4, 10, 28, 0.62) 0%, rgba(4, 10, 28, 0.28) 58%, rgba(4, 10, 28, 0) 80%),
    linear-gradient(180deg, rgba(4, 10, 28, 0.5) 0%, rgba(4, 10, 28, 0) 24%, rgba(4, 10, 28, 0) 50%, rgba(7, 17, 42, 0.74) 80%, var(--night-900) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 26px);
  width: 100%;
  max-width: 760px;
}
.hero-title {
  line-height: 0;
}
.hero-logo {
  position: relative;
  display: inline-block;
  width: clamp(272px, min(64vw, 76svh), 640px);
}
.hero-logo img {
  width: 100%;
  height: auto;
}
.hero-logo img:first-child {
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}
/* ロゴの形だけに 1 度光を走らせる（ゲームの fx_shine_band と同じ考え）。同じロゴを明るくして斜めの帯で切り抜き、帯を動かす */
.hero-logo .hero-logo-shine {
  position: absolute;
  inset: 0;
  filter: brightness(2.1) saturate(0.6);
  -webkit-mask-image: linear-gradient(104deg, transparent 42%, #000 50%, transparent 58%);
  mask-image: linear-gradient(104deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 280% 100%;
  mask-size: 280% 100%;
  -webkit-mask-position: 120% 0;
  mask-position: 120% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}
.hero-copy {
  font-size: clamp(1.0625rem, 0.92rem + 0.8vw, 1.375rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ink-000);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-logo {
    animation: logo-in 0.95s var(--ease-out) 0.1s both;
  }
  .hero-logo .hero-logo-shine {
    animation: logo-shine 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.9s 1 both;
  }
  .hero-copy {
    animation: rise 0.8s var(--ease-out) 0.45s both;
  }
  .hero .store {
    animation: rise 0.8s var(--ease-out) 0.6s both;
  }
  .hero-cue {
    animation: fade-in 1s ease 1.2s both;
  }
}
@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateX(-36px) skewX(-12deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes logo-shine {
  0% {
    opacity: 0.9;
    -webkit-mask-position: 120% 0;
    mask-position: 120% 0;
  }
  100% {
    opacity: 0.9;
    -webkit-mask-position: -20% 0;
    mask-position: -20% 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 下へ促す線（光が水面を下へ走る） */
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  color: var(--ink-300);
  text-decoration: none;
}
.hero-cue-text {
  writing-mode: vertical-rl;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.hero-cue-line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(238, 244, 252, 0.26);
}
.hero-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -45%;
  width: 100%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 214, 130, 0), var(--gold-200));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cue-line::after {
    animation: cue-run 2.2s cubic-bezier(0.6, 0, 0.2, 1) infinite;
  }
}
@keyframes cue-run {
  to {
    transform: translateY(330%);
  }
}
.hero-cue:hover {
  color: var(--ink-000);
}

/* 動画の一時停止（WCAG 2.2.2。JS があり、動画が動くときだけ出す） */
.video-toggle {
  --cut: 8px;
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-100);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-toggle::before,
.video-toggle::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.video-toggle::before {
  inset: 0;
  z-index: -2;
  background: rgba(238, 244, 252, 0.32);
  clip-path: var(--shape);
}
.video-toggle::after {
  inset: 1px;
  z-index: -1;
  background: rgba(4, 10, 28, 0.62);
  clip-path: var(--shape-in);
}
.video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.video-toggle .ic-play,
.video-toggle.is-paused .ic-pause {
  display: none;
}
.video-toggle.is-paused .ic-play {
  display: block;
}
.video-toggle:hover::before {
  background: var(--gold-200);
}
.video-toggle:active {
  transform: scale(0.94);
}
@media (prefers-reduced-motion: reduce) {
  .video-toggle {
    display: none;
  }
}
@media (max-height: 560px) {
  .hero {
    padding-bottom: 72px;
  }
  .hero-cue {
    display: none;
  }
}

/* ---------- 「App Store で近日公開」の札（まだ押せない主ボタン） ----------
   金の板（押せる）とは分けて、紺のガラスに金の細線＋斜めの細い縞（準備中のしるし）。カーソルは not-allowed */
.store {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.store-badge {
  --cut: 12px;
  --line: var(--line-gold);
  --fill: repeating-linear-gradient(-45deg, rgba(255, 214, 130, 0.06) 0 2px, rgba(255, 214, 130, 0) 2px 10px),
    linear-gradient(180deg, rgba(36, 49, 78, 0.94) 0%, rgba(14, 22, 41, 0.96) 100%);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 30px 10px 16px;
  border: 0;
  background: none;
  color: var(--ink-100);
  text-align: left;
  cursor: not-allowed;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}
.store-badge::before,
.store-badge::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.store-badge::before {
  inset: 0;
  z-index: -2;
  background: var(--line);
  clip-path: var(--shape4);
}
.store-badge::after {
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--shape4-in);
}
.store-clock .clock {
  width: 40px;
  height: 40px;
}
.store-text {
  display: grid;
}
.store-small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--ink-300);
}
.store-big {
  font-size: 1.375rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.12em;
  line-height: 1.25;
  color: var(--gold-200);
}
.store-badge.is-nudge {
  animation: nudge 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes nudge {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }
  40%,
  60% {
    transform: translateX(4px);
  }
}
/* 動画のどの場面の上でも読めるよう、紺の小さな札に載せる（ゲームのタイトルの「TAP TO START」の札と同じ考え） */
.store-note {
  padding: 3px 12px;
  background: rgba(4, 10, 28, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-200);
}
.store-toast {
  position: absolute;
  left: 50%;
  top: 74px;
  z-index: 2;
  width: max-content;
  max-width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 9px 14px;
  border: 1px solid rgba(255, 214, 130, 0.45);
  background: rgba(4, 10, 28, 0.94);
  color: var(--ink-100);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.store-toast:empty {
  visibility: hidden;
}
.store-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 節の共通 ---------- */
.section {
  position: relative;
  padding-block: clamp(68px, 8.5vw, 116px);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--ink-000);
  font-feature-settings: "palt";
}
.section-head--center .section-title {
  justify-content: center;
}
/* 見出しの前の金の短い棒（ゲームの「決まり手」などの見出しと同じ印） */
.section-title::before {
  content: "";
  flex: none;
  width: 0.26em;
  height: 1.02em;
  background: linear-gradient(180deg, var(--gold-200), var(--orange));
  transform: skewX(-14deg);
}
.section-lead {
  margin-top: 14px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.85;
  color: var(--ink-300);
}

/* 区切り: コースの点線（引き波）の真ん中にブイ。節の上の縁に置く */
.divider {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(600px, calc(100% - 2 * var(--gutter)));
  height: 32px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: radial-gradient(circle, rgba(255, 214, 130, 0.6) 1px, rgba(255, 214, 130, 0) 1.5px) 0 50% / 8px 2px repeat-x;
}
.divider::before {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.divider::after {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000);
  mask-image: linear-gradient(270deg, transparent, #000);
}
.divider .buoy {
  flex: none;
  width: 18px;
  height: 24px;
  margin: 0 14px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

/* 出てくる動き（特長の板・遊び方の板だけ。JS と動きの設定がある時だけ隠しておく） */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 特長（出走表のように枠番 1〜6） ---------- */
.features {
  padding-top: clamp(44px, 6vw, 84px);
  background:
    radial-gradient(1000px 480px at 50% 30%, rgba(70, 120, 210, 0.11), rgba(70, 120, 210, 0) 70%),
    var(--night-900);
}
.feature-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
/* スマホ: アイコン・題・枠番を 1 行に。広い画面: アイコンと枠番の下に題（ゲームのチュートリアルの見出しと同じ並び） */
.feature {
  --cut: 18px;
  --fill: radial-gradient(260px 180px at 100% 0%, var(--lane-glow, transparent), rgba(0, 0, 0, 0) 72%), var(--plate-fill);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon title lane" "text text text";
  align-items: center;
  align-content: start;
  column-gap: 14px;
  row-gap: 14px;
  padding: 20px 20px 24px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.32));
}
.feature-top {
  display: contents;
}
.feature .icon-box {
  grid-area: icon;
  width: 54px;
  height: 54px;
}
.feature .icon-box svg {
  width: 34px;
  height: 34px;
}
.feature .lane {
  grid-area: lane;
  align-self: start;
}
.feature-title {
  grid-area: title;
}
.feature-text {
  grid-area: text;
}
.feature:nth-child(1),
.step:nth-child(1) .step-card {
  --lane-glow: rgba(245, 245, 245, 0.1);
}
.feature:nth-child(2),
.step:nth-child(2) .step-card {
  --lane-glow: rgba(150, 160, 180, 0.1);
}
.feature:nth-child(3),
.step:nth-child(3) .step-card {
  --lane-glow: rgba(220, 40, 40, 0.17);
}
.feature:nth-child(4) {
  --lane-glow: rgba(30, 90, 220, 0.22);
}
.feature:nth-child(5) {
  --lane-glow: rgba(240, 200, 30, 0.13);
}
.feature:nth-child(6) {
  --lane-glow: rgba(30, 160, 90, 0.17);
}
.feature-title {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink-000);
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}
.feature-text {
  font-size: 0.96875rem;
  line-height: 1.9;
  color: var(--ink-300);
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .feature {
    grid-template-areas: "icon . lane" "title title title" "text text text";
    align-items: start;
    row-gap: 12px;
    padding: 26px 26px 30px;
  }
  .feature .icon-box {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
  }
  .feature .icon-box svg {
    width: 40px;
    height: 40px;
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .feature {
    padding: 28px 28px 32px;
  }
}

/* ---------- ゲームの画面（横持ちの iPhone の枠・横に送る） ---------- */
.screens {
  background:
    radial-gradient(900px 340px at 72% 62%, rgba(255, 184, 64, 0.07), rgba(255, 184, 64, 0) 70%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-850) 16%, var(--night-850) 84%, var(--night-900) 100%);
}
.rail {
  --rail-pad: max(var(--gutter), calc((100% - var(--container)) / 2));
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  padding: 6px var(--rail-pad) 30px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail:focus-visible {
  outline-offset: -4px;
}
.rail-track {
  list-style: none;
  padding: 0;
  display: flex;
  gap: clamp(18px, 2.6vw, 32px);
  width: max-content;
}
.rail-track::after {
  content: "";
  flex: none;
  width: 1px;
}
.shot {
  flex: none;
  width: min(84vw, 600px);
  scroll-snap-align: start;
}
/* 枠: チタンの縁・細いベゼル・角は画面の高さの 13%（横持ちなので上下に音量と電源のボタン） */
.device {
  position: relative;
  padding: 1.9%;
  border-radius: 6.3% / 13%;
  background: linear-gradient(150deg, #474f5e 0%, #1c212b 30%, #0c0f15 62%, #2c333f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 3px #06080c,
    0 34px 60px -30px rgba(0, 0, 0, 0.9),
    0 14px 26px -14px rgba(0, 0, 0, 0.6);
}
.device::before,
.device::after {
  content: "";
  position: absolute;
  height: 3px;
  background: linear-gradient(180deg, #3b4350, #1c2028);
  pointer-events: none;
}
.device::before {
  top: -2px;
  left: 20%;
  width: 9%;
  border-radius: 2px 2px 0 0;
}
.device::after {
  bottom: -2px;
  left: 14%;
  width: 14%;
  border-radius: 0 0 2px 2px;
}
.device-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2556 / 1179;
  border-radius: 4.8% / 10.4%;
  background: #02040a;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}
.shot figcaption {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--gold-400);
}
.shot-title {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink-000);
}
.shot-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-300);
}
.rail-ctrl {
  display: flex;
  gap: 12px;
  flex: none;
}
.rail-btn {
  --cut: 10px;
  --line: var(--line-blue);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-100);
  cursor: pointer;
  transition: --line 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rail-btn::before,
.rail-btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.rail-btn::before {
  inset: 0;
  z-index: -2;
  background: var(--line);
  clip-path: var(--shape);
}
.rail-btn::after {
  inset: 1px;
  z-index: -1;
  background: var(--plate-fill);
  clip-path: var(--shape-in);
}
.rail-btn svg {
  width: 22px;
  height: 22px;
}
.rail-btn:hover {
  --line: var(--gold-200);
}
.rail-btn:active {
  transform: scale(0.95);
}
.rail-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  --line: var(--line-blue);
}
/* ページの印: ブイを点線でつなぐ（ゲームのチュートリアルのページの印と同じ） */
.rail-dots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.rail-dot {
  --dot-w: 44px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: var(--dot-w);
  height: 52px;
  padding: 0 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rail-dot + .rail-dot::before {
  content: "";
  position: absolute;
  left: calc(var(--dot-w) / -2 + 8px);
  bottom: 10px;
  width: calc(var(--dot-w) - 16px);
  border-top: 2px dotted rgba(158, 178, 204, 0.42);
}
.rail-dot .buoy {
  width: 15px;
  height: 20px;
  opacity: 0.6;
  transform-origin: 50% 100%;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.rail-dot:hover .buoy {
  opacity: 1;
}
.rail-dot[aria-current="true"] .buoy {
  opacity: 1;
  transform: scale(1.55);
}
.rail-dot[aria-current="true"] .buoy-cone {
  fill: #ffcf6a;
}
.rail-dot[aria-current="true"] .buoy-band {
  fill: #a3241f;
}
.rail-dot[aria-current="true"] .buoy-float {
  fill: #7a4a10;
  stroke: var(--gold-200);
}
.rail-dot[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 46px;
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 184, 64, 0.5), rgba(255, 184, 64, 0));
  pointer-events: none;
}
@media (max-width: 420px) {
  .rail-dot {
    --dot-w: 36px;
  }
}
@media (max-width: 639px) {
  .section-head--row {
    display: block;
  }
  .rail-ctrl {
    display: none;
  }
}

/* ---------- 遊び方の流れ（左回りのコース: 下の直線で 1→2→3、上を戻って「また走る」） ---------- */
.flow {
  background:
    radial-gradient(900px 400px at 50% 62%, rgba(30, 90, 220, 0.12), rgba(30, 90, 220, 0) 70%),
    var(--night-900);
}
.loop {
  --gap: 64px;
  --ret: 112px;
  position: relative;
  padding-top: var(--ret);
}
.loop-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.step {
  position: relative;
}
.step-card {
  --cut: 18px;
  --fill: radial-gradient(260px 180px at 0% 0%, var(--lane-glow, transparent), rgba(0, 0, 0, 0) 72%), var(--plate-fill);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px 24px 28px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.32));
}
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.step-title {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--ink-000);
}
.step-text {
  font-size: 0.96875rem;
  line-height: 1.9;
  color: var(--ink-300);
}
/* 板と板の間の引き波（点線と向きの印） */
.step + .step::before,
.step + .step::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.step + .step::before {
  top: 50%;
  left: calc(-1 * var(--gap) + 12px);
  width: calc(var(--gap) - 26px);
  height: 4px;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--gold-200) 1.3px, rgba(255, 214, 130, 0) 1.8px) 0 50% / 9px 4px repeat-x;
}
.step + .step::after {
  top: 50%;
  left: -18px;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--gold-200);
  border-right: 2.5px solid var(--gold-200);
  transform: translate(-50%, -50%) rotate(45deg);
}
.loop-course {
  position: absolute;
  top: 0;
  left: calc((100% - 2 * var(--gap)) / 6);
  right: calc((100% - 2 * var(--gap)) / 6);
  height: calc(var(--ret) - 6px);
  pointer-events: none;
}
.loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.loop-svg--v {
  display: none;
}
.loop-path {
  fill: none;
  stroke: var(--gold-200);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.5 9;
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .loop-path {
    animation: wake-flow 1.1s linear infinite;
  }
}
@keyframes wake-flow {
  to {
    stroke-dashoffset: -9.5;
  }
}
.loop-arrow {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--gold-200);
  border-bottom: 2.5px solid var(--gold-200);
  transform: translate(-50%, 0) rotate(45deg);
}
.loop-mark {
  position: absolute;
  top: 34px;
  width: 22px;
}
.loop-mark .buoy {
  width: 22px;
  height: 29px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.loop-mark--1 {
  right: 26px;
}
.loop-mark--2 {
  left: 26px;
}
/* 「また走る」の札（金の細線・角を切った小さな板） */
.loop-again {
  --cut: 7px;
  position: absolute;
  left: 50%;
  top: 18px;
  isolation: isolate;
  transform: translate(-50%, -50%);
  padding: 3px 18px 4px;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--gold-200);
  white-space: nowrap;
}
.loop-again::before,
.loop-again::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.loop-again::before {
  inset: 0;
  z-index: -2;
  background: rgba(255, 214, 130, 0.55);
  clip-path: var(--shape4);
}
.loop-again::after {
  inset: 1px;
  z-index: -1;
  background: #0c1631;
  clip-path: var(--shape4-in);
}
@media (max-width: 899px) {
  .loop {
    --gap: 48px;
    padding-top: 0;
    padding-right: 64px;
  }
  .loop-steps {
    grid-template-columns: 1fr;
  }
  .step + .step::before {
    top: calc(-1 * var(--gap) + 10px);
    left: 50%;
    width: 4px;
    height: calc(var(--gap) - 24px);
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--gold-200) 1.3px, rgba(255, 214, 130, 0) 1.8px) 50% 0 / 4px 9px repeat-y;
  }
  .step + .step::after {
    top: -14px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
  }
  .loop-course {
    top: 56px;
    bottom: 56px;
    left: auto;
    right: 0;
    width: 64px;
    height: auto;
  }
  .loop-svg--h {
    display: none;
  }
  .loop-svg--v {
    display: block;
  }
  .loop-arrow {
    left: 2px;
    top: 0;
    bottom: auto;
    transform: translate(0, -50%) rotate(135deg);
  }
  .loop-mark {
    top: auto;
    width: 20px;
  }
  .loop-mark .buoy {
    width: 20px;
    height: 26px;
  }
  .loop-mark--1 {
    right: 24px;
    bottom: 10px;
  }
  .loop-mark--2 {
    left: auto;
    right: 24px;
    top: 4px;
  }
  .loop-again {
    left: auto;
    right: 9px;
    top: 50%;
    transform: translate(50%, -50%);
    writing-mode: vertical-rl;
    padding: 14px 3px;
    font-size: 0.9375rem;
  }
}

/* ---------- 配信とサポート ---------- */
.finale {
  padding-top: clamp(24px, 4vw, 48px);
}
.finale-card {
  --cut: 26px;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
}
.finale-card::before,
.finale-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.finale-card::before {
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(255, 214, 130, 0.9) 0%, rgba(255, 184, 64, 0.38) 38%, rgba(111, 158, 232, 0.38) 100%);
  clip-path: var(--shape4);
}
.finale-card::after {
  inset: 1px;
  z-index: -1;
  background:
    radial-gradient(440px 300px at 80% 44%, rgba(255, 184, 64, 0.1), rgba(255, 184, 64, 0) 70%),
    radial-gradient(520px 280px at 0% 100%, rgba(30, 90, 220, 0.22), rgba(30, 90, 220, 0) 70%),
    linear-gradient(180deg, #17233e 0%, #0b1427 100%);
  clip-path: var(--shape4-in);
}
.finale-title {
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--ink-000);
  font-feature-settings: "palt";
}
.finale-text {
  margin: 16px 0 30px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--ink-200);
}
.finale .store {
  align-items: flex-start;
}
.finale .store-toast {
  left: 0;
  transform: translate(0, 4px);
}
.finale .store-toast.is-on {
  transform: none;
}
.finale-clock {
  order: -1;
  justify-self: start;
  width: 120px;
}
.finale-clock .clock {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}
.clock--big .clock-face {
  fill: rgba(4, 10, 28, 0.55);
  stroke: rgba(238, 244, 252, 0.9);
  stroke-width: 1;
}
.clock--big .clock-ring {
  fill: none;
  stroke: rgba(111, 158, 232, 0.22);
  stroke-width: 0.5;
}
.clock--big .clock-minor {
  stroke: rgba(194, 210, 234, 0.4);
  stroke-width: 0.45;
  stroke-linecap: round;
}
.clock--big .clock-ticks {
  stroke: var(--ink-100);
  stroke-width: 1.1;
}
.clock--big .clock-red {
  stroke-width: 1.8;
}
.clock--big .clock-hand {
  stroke-width: 1.2;
  transform: rotate(-12deg);
}
@media (min-width: 900px) {
  .finale-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 48px;
  }
  .finale-clock {
    order: 0;
    justify-self: center;
    width: min(100%, 300px);
  }
}
.help-links {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
.help-link {
  --cut: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 22px;
  color: var(--ink-100);
  text-decoration: none;
  transition: --line 0.2s ease, transform 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.help-link:hover {
  --line: var(--gold-200);
  transform: translateY(-2px);
}
.help-link:active {
  transform: scale(0.99);
}
.help-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.help-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink-000);
}
.help-text {
  font-size: 0.875rem;
  color: var(--ink-300);
  overflow-wrap: anywhere;
}
.help-link > svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold-200);
  transition: transform 0.2s var(--ease-out);
}
.help-link:hover > svg {
  transform: translateX(3px);
}
@media (min-width: 720px) {
  .help-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------- フッター ---------- */
.site-footer {
  --icon-cut: var(--night-950);
  background: var(--night-950);
}
.footer-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: 44px 0 40px;
  display: grid;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  width: fit-content;
}
.footer-brand img {
  height: 32px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-left: -12px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.875rem;
  color: var(--ink-300);
  text-decoration: none;
}
.footer-link:hover {
  color: var(--ink-000);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-link[aria-current="page"] {
  color: var(--gold-200);
  font-weight: 700;
}
.footer-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--ink-300);
}
.footer-mail svg {
  width: 20px;
  height: 20px;
  fill: var(--ink-300);
  flex: none;
}
.footer-mail a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-mail a:hover {
  color: var(--ink-000);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copyright {
  font-size: 0.8125rem;
  color: var(--ink-400);
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 40px;
  }
  .footer-nav {
    margin-left: 0;
  }
  .copyright {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--hair);
  }
}

/* ---------- 規約などのページ ---------- */
.doc-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(36px, 5vw, 60px);
  background:
    radial-gradient(900px 340px at 80% 0%, rgba(30, 90, 220, 0.24), rgba(30, 90, 220, 0) 70%),
    linear-gradient(180deg, #0b1a3a 0%, var(--night-900) 100%);
}
.doc-head-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(820px, 100%);
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.course-art {
  width: 100%;
  height: 100%;
}
@media (max-width: 639px) {
  .doc-head-art {
    width: 150%;
    right: -38%;
    opacity: 0.42;
  }
}
.course-water {
  fill: rgba(30, 90, 220, 0.1);
}
.course-line {
  fill: none;
  stroke: rgba(158, 190, 240, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
}
.course-line--inner {
  stroke: rgba(158, 190, 240, 0.16);
  stroke-dasharray: none;
}
.course-start {
  stroke: rgba(255, 214, 130, 0.7);
  stroke-width: 2;
}
.course-mark {
  fill: #e0322f;
  stroke: #f4f6fa;
  stroke-width: 2;
}
.doc-title {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.75rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--ink-000);
  font-feature-settings: "palt";
}
.doc-title::before {
  content: "";
  flex: none;
  width: 0.24em;
  height: 1.02em;
  background: linear-gradient(180deg, var(--gold-200), var(--orange));
  transform: skewX(-14deg);
}
.lane-stripe--thin {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  opacity: 0.9;
}
.doc-layout {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) 0 clamp(80px, 9vw, 128px);
}
.doc-single .doc-head-inner,
.doc-single .doc-layout {
  width: min(100% - 2 * var(--gutter), var(--doc-w, 760px));
}
.doc-sct {
  --doc-w: 920px;
}
.doc-body {
  max-width: 720px;
  font-size: 1rem;
}
.doc-single .doc-body {
  max-width: none;
}
.doc-body p,
.doc-body li {
  line-height: 1.95;
  color: var(--ink-200);
}
.doc-body p + p {
  margin-top: 14px;
}
.doc-body > p:first-child {
  font-size: 1.0625rem;
  color: var(--ink-100);
}
.doc-body ul {
  list-style: none;
  padding: 0;
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.doc-body li {
  position: relative;
  padding-left: 22px;
}
/* 箇条の印: 金の小さなひし形（板の切り角と同じ 45°） */
.doc-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.82em;
  width: 7px;
  height: 7px;
  background: var(--gold-400);
  transform: rotate(45deg);
}
.doc-body a {
  color: var(--gold-200);
  text-decoration: underline;
  text-decoration-color: rgba(255, 214, 130, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc-body a:hover {
  text-decoration-color: currentColor;
}
.doc-body .meta {
  margin-top: 36px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ink-400);
}
.doc-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding-top: clamp(30px, 4vw, 40px);
}
.doc-section + .doc-section {
  margin-top: clamp(30px, 4vw, 40px);
  border-top: 1px solid var(--hair);
}
.doc-h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink-000);
  font-feature-settings: "palt";
}
.doc-num {
  --cut: 8px;
  --line: var(--line-gold);
  position: relative;
  isolation: isolate;
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--gold-200);
}
.doc-num::before,
.doc-num::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.doc-num::before {
  inset: 0;
  z-index: -2;
  background: var(--line);
  clip-path: var(--shape);
}
.doc-num::after {
  inset: 1px;
  z-index: -1;
  background: var(--plate-fill);
  clip-path: var(--shape-in);
}
.doc-h2--plain {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc-h2--plain::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--gold-200), var(--orange));
  transform: skewX(-14deg);
}
@media (min-width: 900px) {
  .doc-body {
    font-size: 1.0625rem;
  }
}

/* 目次 */
.toc {
  --cut: 12px;
  margin-bottom: 36px;
}
.toc-box > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-000);
  -webkit-tap-highlight-color: transparent;
}
.toc-box > summary::-webkit-details-marker {
  display: none;
}
.toc-box > summary:focus-visible {
  outline-offset: -3px;
}
.toc-box .chev {
  width: 20px;
  height: 20px;
  color: var(--gold-200);
  transition: transform 0.25s var(--ease-out);
}
.toc-box[open] .chev {
  transform: rotate(180deg);
}
.toc-list {
  list-style: none;
  padding: 0 10px 12px;
  display: grid;
  gap: 2px;
}
.toc-list a {
  display: block;
  padding: 9px 10px 9px 14px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-300);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.toc-list a:hover {
  color: var(--ink-000);
  background: rgba(255, 255, 255, 0.04);
}
.toc-list a[aria-current] {
  color: var(--gold-200);
  border-left-color: var(--gold-400);
  background: rgba(255, 184, 64, 0.07);
}
@media (min-width: 1024px) {
  .doc-layout:not(.doc-layout--single) {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    margin: 0;
  }
  .toc-box .chev {
    display: none;
  }
}

/* 特商法の表 */
.sct-table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
}
.sct-table > tbody > tr {
  border-top: 1px solid var(--hair-strong);
}
.sct-table > tbody > tr:last-child {
  border-bottom: 1px solid var(--hair-strong);
}
.sct-table > tbody > tr > th[scope="row"] {
  width: 230px;
  padding: 20px 24px 20px 4px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--gold-200);
}
.sct-table > tbody > tr > td {
  padding: 20px 4px;
  vertical-align: top;
}
.sct-table > tbody > tr > td > p {
  margin: 0;
}
@media (max-width: 699px) {
  .sct-table > tbody > tr {
    display: block;
    padding: 18px 0;
  }
  .sct-table > tbody > tr > th[scope="row"],
  .sct-table > tbody > tr > td {
    display: block;
    width: 100%;
    padding: 0;
  }
  .sct-table > tbody > tr > th[scope="row"] {
    margin-bottom: 6px;
  }
}
.table-scroll {
  overflow-x: auto;
  margin: 16px 0 8px;
  border: 1px solid var(--hair-strong);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table th,
.price-table td {
  padding: 11px 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: left;
  border-bottom: 1px solid var(--hair);
}
.price-table thead th {
  background: #16223c;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-100);
}
.price-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
/* 商品名は「（初回のみ…）」の前で折る（和文の途中で折らない） */
.price-table td:first-child {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink-000);
}
@media (max-width: 420px) {
  .price-table th,
  .price-table td {
    padding: 10px 12px;
    font-size: 0.875rem;
  }
}

/* お問い合わせ */
.contact-panel {
  --cut: 16px;
  --line: var(--line-gold);
  display: grid;
  justify-items: start;
  gap: 20px;
  margin: 28px 0 8px;
  padding: 26px;
}
.doc-body .contact-list {
  margin: 0;
  gap: 4px;
}
.doc-body .contact-list li {
  padding-left: 0;
  font-size: 0.9375rem;
  color: var(--ink-300);
}
.doc-body .contact-list li::before {
  display: none;
}
/* 金の主役ボタン（ゲームの pl_gold: 濃い茶の縁・クリームの細線・金のグラデーション） */
.btn-gold {
  --cut: 12px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  max-width: 100%;
  color: var(--gold-ink);
  text-decoration: none;
  filter: drop-shadow(0 12px 22px rgba(255, 150, 30, 0.2)) drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
  transition: transform 0.18s var(--ease-out), filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold::before,
.btn-gold::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.btn-gold::before {
  inset: 0;
  z-index: -2;
  background: #4a2a06;
  clip-path: var(--shape);
}
.btn-gold::after {
  inset: 1.5px;
  z-index: -1;
  background: #fff3d6;
  clip-path: polygon(calc(var(--cut) - 0.9px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.9px), calc(100% - var(--cut) + 0.9px) 100%, 0 100%, 0 calc(var(--cut) - 0.9px));
}
.btn-gold-face {
  --icon-cut: #f3ac3e;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 3px;
  padding: 0 26px;
  background: linear-gradient(180deg, #fef0d2 0%, #fcdea5 16%, #f8c469 38%, #f3ac3e 58%, #ed9d2f 76%, #c27b1e 100%);
  clip-path: polygon(calc(var(--cut) - 1.8px) 0, 100% 0, 100% calc(100% - var(--cut) + 1.8px), calc(100% - var(--cut) + 1.8px) 100%, 0 100%, 0 calc(var(--cut) - 1.8px));
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
.btn-gold-face svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: var(--gold-ink);
}
.doc-body .btn-gold {
  color: var(--gold-ink);
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05) drop-shadow(0 14px 24px rgba(255, 150, 30, 0.26)) drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}
.btn-gold:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.96) drop-shadow(0 6px 12px rgba(255, 150, 30, 0.18)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

/* よくある質問（開け閉め。対応するブラウザでは高さもなめらかに） */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.faq-item {
  --cut: 12px;
}
.faq-item > details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-000);
  -webkit-tap-highlight-color: transparent;
}
.faq-item > details > summary::-webkit-details-marker {
  display: none;
}
.faq-item > details > summary:focus-visible {
  outline-offset: -3px;
}
.faq-item > details > summary:hover {
  color: var(--gold-200);
}
.plus {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-200);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.plus-v {
  transform-origin: 12px 12px;
  transition: transform 0.28s var(--ease-out);
}
.faq-item > details[open] .plus-v {
  transform: rotate(90deg);
}
.faq-item > details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
}
.faq-item > details[open]::details-content {
  block-size: auto;
}
.faq-answer {
  padding: 0 20px 20px;
}
.faq-answer p {
  margin: 0;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
