/* GAIP GAME REQUEST — ゲームの相談ページ (2026-10-11) */

:root {
  --ink: #05050a;
  --panel: #0c0d16;
  --panel-2: #141522;
  --line: #2c2f42;
  --text: #f6f7fb;
  --text-dim: #b1b5c9;
  --outline: #0a0a10;

  --yellow: #ffe63b;
  --pink: #ff3f8e;
  --cyan: #19e3ff;
  --orange: #ff7a12;
  --purple: #9a5cff;
  --lime: #7dff5a;
  --white: #f6f7fb;
  --on-neon: #0a0a10;

  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --font-latin: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, var(--font-ja);
  --font-body: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;

  --ease-punch: cubic-bezier(.2, 1.55, .35, 1);
  --ease-smear: cubic-bezier(.12, .9, .2, 1);
  --punch-shadow: 0 .05em 0 var(--outline), 0 .09em 0 var(--outline), .03em .03em 0 var(--outline), -.03em .03em 0 var(--outline);

  --accent: var(--yellow);
  --accent-2: var(--pink);
  --glow: rgba(255, 230, 59, .55);
  --glow-2: rgba(255, 63, 142, .5);
  color-scheme: dark;
}

/* 枠の光を回すための角度。未対応のブラウザーでは止まった光になる */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--ink);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;
  background: var(--ink);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, .hero-lead, .section-lead, .it-scene, .it-game, .it-twist, .scene-ex, .closing-text, .done-text { word-break: auto-phrase; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-neon);
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.br-narrow { display: none; }

/* ---------- 背景 ---------- */

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

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -8%;
  height: 46%;
  perspective: 520px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  opacity: .35;
}

.grid-floor-inner {
  position: absolute;
  inset: -64px 0 0 0;
  transform-origin: 50% 0%;
  transform: rotateX(62deg);
  background-image:
    linear-gradient(rgba(255, 63, 142, .5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(25, 227, 255, .45) 2px, transparent 2px);
  background-size: 64px 64px;
  animation: grid-run 1.4s linear infinite;
}

@keyframes grid-run {
  from { translate: 0 0; }
  to { translate: 0 64px; }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, .75) 100%);
}

.scroll-meter {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: 4px;
  pointer-events: none;
}
.scroll-meter span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan), var(--lime));
  box-shadow: 0 0 12px rgba(255, 63, 142, .6);
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- ヘッダー ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px clamp(14px, 3vw, 36px);
}

.brand {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.brand-dot {
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  animation: dot-blink 2.4s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { background: var(--yellow); }
  33% { background: var(--pink); }
  66% { background: var(--cyan); }
}

.header-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: var(--font-latin);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}
.header-label:hover { color: var(--text); border-color: var(--accent); }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 10, .75);
  font-weight: 800;
  font-size: .85rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.tool-btn:hover { border-color: var(--accent); }
.tool-icon--dot::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}
.tool-state {
  font-family: var(--font-latin);
  font-size: .7rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--line);
}
.tool-btn[aria-pressed="true"] { border-color: var(--accent); }
.tool-btn[aria-pressed="true"] .tool-state { background: var(--accent); color: var(--on-neon); }
.tool-btn[aria-pressed="true"] .tool-icon--dot::before { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.tool-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--on-neon);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 0 2px var(--outline), 0 0 18px var(--glow-2);
  transition: transform .2s var(--ease-punch);
}
.header-cta:hover { transform: translateY(-2px) rotate(-2deg); }

/* ---------- 共通の部品 ---------- */

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .04em;
  line-height: 1.6;
  box-shadow: 0 0 14px var(--glow);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px;
  border: 0;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transform: skewX(-8deg);
  transition: transform .22s var(--ease-punch), box-shadow .2s;
}
.btn > span { position: relative; z-index: 1; transform: skewX(8deg); }

.btn--primary {
  background: var(--accent);
  color: var(--on-neon);
  box-shadow: 0 0 0 3px var(--outline), 0 0 26px var(--glow);
}
/* 光の筋がときどき通る */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg) translateX(0);
  animation: btn-shine 3.2s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 55% { translate: 0 0; }
  85%, 100% { translate: 600% 0; }
}
.btn--primary:hover { transform: skewX(-8deg) translateY(-3px) scale(1.03); box-shadow: 0 0 0 3px var(--outline), 0 6px 0 var(--outline), 0 0 34px var(--glow); }
.btn--primary:active { transform: skewX(-8deg) translateY(1px) scale(.98); }

.btn--ghost {
  border: 2px solid var(--accent);
  background: rgba(5, 5, 10, .72);
  color: var(--text);
}
.btn--ghost:hover { background: var(--accent); color: var(--on-neon); transform: skewX(-8deg) translateY(-2px); }

.section {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(14px, 4vw, 48px);
}

.section-head { position: relative; max-width: 780px; margin-bottom: clamp(24px, 3.4vw, 44px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--font-latin);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--accent);
}

.eyebrow-num {
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent-2);
  color: var(--on-neon);
  letter-spacing: .04em;
}

.section-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-shadow: var(--punch-shadow), 0 0 .5em var(--glow);
}

.section-lead { margin-top: 12px; color: var(--text-dim); font-size: clamp(.95rem, 1.4vw, 1.05rem); }

.req-mark {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--pink);
  color: var(--on-neon);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.7;
  vertical-align: .12em;
}
.section-lead .req-mark { margin: 0 2px 0 0; }

.opt-mark {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: .75rem;
  font-weight: 700;
}

/* スクロールで現れる */
html.js[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(46px) scale(.97);
  transition: opacity .6s ease, transform .8s var(--ease-punch);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js[data-motion="on"] [data-reveal].is-in { opacity: 1; transform: none; }

/* 画面外のセクションはアニメーションを止める */
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- ヒーロー ---------- */

.hero {
  --accent: var(--yellow);
  --accent-2: var(--pink);
  position: relative;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px) clamp(64px, 7vw, 96px);
  min-height: min(900px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow: clip;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero-copy { position: relative; min-width: 0; }

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(3rem, 8.6vw, 7.4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.ht-line { display: block; white-space: nowrap; }
.ht-line--2 { color: var(--yellow); margin-left: .3em; }

.ht-ch {
  display: inline-block;
  -webkit-text-stroke: .035em var(--outline);
  paint-order: stroke fill;
  text-shadow: var(--punch-shadow), 0 0 .35em var(--glow);
  animation:
    ch-pop .8s var(--ease-punch) calc(var(--i) * 70ms + 150ms) both,
    ch-bob 3.6s ease-in-out calc(var(--i) * 140ms + 1.6s) infinite;
}
.ht-line:first-child .ht-ch { color: var(--white); text-shadow: var(--punch-shadow), 0 0 .35em var(--glow-2); }
.ht-ch--punct { margin-right: -.3em; }

@keyframes ch-pop {
  0% { opacity: 0; transform: translateY(.7em) scale(.3) rotate(-14deg); }
  60% { opacity: 1; transform: translateY(-.12em) scale(1.14) rotate(5deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes ch-bob {
  0%, 70%, 100% { transform: none; }
  78% { transform: translateY(-.1em) rotate(-4deg); }
  86% { transform: translateY(.02em) rotate(2deg); }
}

.hero-lead {
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.85;
  text-shadow: 0 2px 0 var(--outline);
}
.hero-lead strong {
  padding: 0 .25em;
  background: linear-gradient(transparent 55%, rgba(255, 63, 142, .65) 55%);
  color: var(--white);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-tags li {
  padding: 4px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 13, 22, .8);
  font-size: .88rem;
  font-weight: 800;
  animation: tag-in .6s var(--ease-punch) calc(var(--i) * 110ms + 900ms) both;
}
.hero-tags li::before { content: "#"; margin-right: 2px; color: var(--accent); font-family: var(--font-latin); }

@keyframes tag-in {
  from { opacity: 0; transform: translateY(16px) scale(.6); }
  to { opacity: 1; transform: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* 下へのスクロール案内 */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 44px;
  padding: 4px;
  font-family: var(--font-latin);
  font-size: .62rem;
  letter-spacing: .3em;
  color: var(--text-dim);
  text-decoration: none;
}
.scroll-cue i {
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--yellow), transparent);
  transform-origin: top;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- アイデアガチャ ---------- */

.hero-stage {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
}

/* 背後でゆっくり回る光の筋 */
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(130%, 820px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 59, .13) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: rays 48s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { rotate: 360deg; } }

.sticker {
  position: absolute;
  z-index: 3;
  padding: .2em .6em;
  border: 3px solid var(--outline);
  border-radius: 10px;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(.85rem, 1.5vw, 1.15rem);
  color: var(--on-neon);
  box-shadow: 4px 4px 0 var(--outline);
  pointer-events: none;
  animation: sticker-float 4.2s ease-in-out infinite;
}
.sticker--a { left: 2%; top: 14%; background: var(--cyan); rotate: -12deg; }
.sticker--b { left: 0; bottom: 24%; background: var(--lime); rotate: 10deg; animation-delay: -1.4s; }
.sticker--c { right: 6%; bottom: 12%; background: var(--yellow); border-radius: 50%; padding: .25em .5em; rotate: 8deg; animation-delay: -2.6s; }

@keyframes sticker-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.06); }
}

.gacha {
  --gw: clamp(270px, 29vw, 370px);
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}

.gacha-cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.gacha-cap-en {
  font-family: var(--font-latin);
  font-size: .78rem;
  letter-spacing: .24em;
  color: var(--cyan);
}
.gacha-cap-ja { font-weight: 900; font-size: 1rem; }

.gacha-help {
  margin-top: 14px;
  max-width: 30em;
  font-size: .85rem;
  color: var(--text-dim);
  text-align: center;
}

/* 1em = 本体の幅の34分の1。部品はすべてemで組み立てる */
.gacha-machine {
  position: relative;
  width: var(--gw);
  font-size: calc(var(--gw) / 34);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gacha-crown {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 13em;
  height: 4.2em;
  margin-bottom: -1.4em;
  border: .55em solid var(--outline);
  border-bottom: 0;
  border-radius: 7em 7em 0 0;
  background: var(--pink);
}
.gacha-crown span {
  margin-top: -.15em;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 2.4em;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 .08em 0 var(--outline);
  animation: crown-q 2.8s ease-in-out infinite;
}
@keyframes crown-q {
  0%, 70%, 100% { transform: none; }
  78% { transform: rotate(-18deg) scale(1.2); }
  88% { transform: rotate(14deg) scale(1.1); }
}

.gacha-dome {
  position: relative;
  z-index: 1;
  width: 31em;
  aspect-ratio: 1;
  border-radius: 50%;
  border: .6em solid var(--outline);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .24), transparent 34%),
    radial-gradient(circle at 50% 60%, rgba(25, 227, 255, .12), rgba(25, 227, 255, .05) 58%, rgba(5, 5, 10, .55) 100%);
  box-shadow: inset 0 0 0 .35em rgba(246, 247, 251, .16), 0 0 3em rgba(25, 227, 255, .25);
  overflow: hidden;
}

.gacha-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gacha-glare {
  position: absolute;
  left: 15%;
  top: 11%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  border-top: .6em solid rgba(255, 255, 255, .55);
  transform: rotate(-30deg);
  pointer-events: none;
}
.gacha-glare::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -12%;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}

.gacha-body {
  position: relative;
  z-index: 2;
  width: 33em;
  height: 17em;
  margin-top: -3.6em;
  border: .6em solid var(--outline);
  border-radius: 2.6em 2.6em 1.8em 1.8em;
  background: var(--pink);
  box-shadow: inset 0 -1.3em 0 rgba(0, 0, 0, .2), 0 1.4em 2.6em rgba(0, 0, 0, .5);
  overflow: hidden;
}
/* 流れる斜めのしま */
.gacha-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .14) 0 1.3em, transparent 1.3em 2.6em);
  background-size: 200% 200%;
  animation: stripes 2.4s linear infinite;
  pointer-events: none;
}
@keyframes stripes { to { background-position: 3.68em 0; } }

.gacha-plate {
  position: absolute;
  left: 2.4em;
  top: 1.8em;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .9em;
  border: .4em solid var(--outline);
  border-radius: .8em;
  background: var(--yellow);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.7em;
  line-height: 1.2;
  rotate: -4deg;
}
.gacha-plate i { font-style: normal; animation: plate-arrow .9s ease-in-out infinite; }
@keyframes plate-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(.35em); }
}

.gacha-handle {
  position: absolute;
  right: 2.6em;
  top: 50%;
  width: 11.4em;
  height: 11.4em;
  margin-top: -5.7em;
  padding: 0;
  border: .6em solid var(--outline);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff, #e2e5f5 55%, #a9afc9);
  box-shadow: 0 .6em 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .15s var(--ease-punch), box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.gacha-handle:hover { transform: scale(1.05); }
.gacha-handle:active { transform: translateY(.4em) scale(.97); box-shadow: 0 .2em 0 rgba(0, 0, 0, .35); }
.gacha-handle:focus-visible { outline: .4em solid var(--white); outline-offset: .3em; }
/* 押せることを知らせる光の輪 */
.gacha-handle::after {
  content: "";
  position: absolute;
  inset: -1.2em;
  border-radius: 50%;
  border: .4em solid var(--yellow);
  opacity: 0;
  animation: handle-ring 2s ease-out infinite;
  pointer-events: none;
}
@keyframes handle-ring {
  0% { opacity: .9; transform: scale(.8); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

.gacha-knob {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
}
.gacha-knob::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2.6em;
  margin-top: -1.3em;
  border: .45em solid var(--outline);
  border-radius: 1.4em;
  background: var(--yellow);
}
.gacha-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2em;
  height: 2em;
  margin: -1em 0 0 -1em;
  border: .4em solid var(--outline);
  border-radius: 50%;
  background: var(--pink);
}

.gacha-chute {
  position: absolute;
  left: 2.4em;
  bottom: 1.8em;
  width: 11.6em;
  height: 7.4em;
  border: .5em solid var(--outline);
  border-radius: 1.2em 1.2em 2em 2em;
  background: radial-gradient(ellipse at 50% 20%, #2a2c44, #0b0c16 70%);
  box-shadow: inset 0 .8em 1.2em rgba(0, 0, 0, .7);
}

.gacha-feet {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 29em;
  height: 3em;
  margin-top: -.6em;
  padding: .6em 1.6em 0;
  border: .55em solid var(--outline);
  border-top: 0;
  border-radius: 0 0 1.4em 1.4em;
  background: #1d1f33;
}
.gacha-feet i {
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: #3a3d58;
  animation: bulb 1.4s steps(1) infinite;
}
.gacha-feet i:nth-child(2n) { animation-delay: -.7s; }
@keyframes bulb {
  0% { background: var(--yellow); box-shadow: 0 0 .8em var(--yellow); }
  50% { background: #3a3d58; box-shadow: none; }
}

/* カプセル（取り出し口から出てきて開く） */
.capsule {
  --cap: var(--yellow);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6em;
  height: 6em;
  margin: -3em 0 0 -3em;
  opacity: 0;
  pointer-events: none;
}
.capsule-top, .capsule-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  border: .45em solid var(--outline);
}
.capsule-top {
  top: 0;
  border-bottom-width: .22em;
  border-radius: 3em 3em 0 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7) 0 12%, transparent 13%), var(--cap);
}
.capsule-bottom {
  bottom: 0;
  border-top-width: .22em;
  border-radius: 0 0 3em 3em;
  background: #f6f7fb;
}
.capsule.is-out { animation: cap-out .62s var(--ease-punch) forwards; }
.capsule.is-open .capsule-top { animation: cap-top .7s var(--ease-smear) forwards; }
.capsule.is-open .capsule-bottom { animation: cap-bottom .7s var(--ease-smear) forwards; }

@keyframes cap-out {
  0% { opacity: 0; transform: translateY(-2.4em) scale(.4); }
  20% { opacity: 1; }
  55% { opacity: 1; transform: translateY(.7em) scale(1.08, .9); }
  78% { opacity: 1; transform: translateY(-.4em) scale(.96, 1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes cap-top {
  to { transform: translate(-2.8em, -7.5em) rotate(-150deg); opacity: 0; }
}
@keyframes cap-bottom {
  to { transform: translate(2.4em, 3.6em) rotate(90deg); opacity: 0; }
}

/* 回しているとき */
.gacha.is-spinning .gacha-knob { animation: knob-turn .75s var(--ease-punch); }
.gacha.is-spinning .gacha-machine { animation: machine-shake .55s ease-in-out; }
.gacha.is-spinning .gacha-handle::after { animation: none; opacity: 0; }

@keyframes knob-turn {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes machine-shake {
  0%, 100% { transform: none; }
  20% { transform: rotate(-2.2deg) translateX(-.3em); }
  45% { transform: rotate(2deg) translateX(.3em); }
  70% { transform: rotate(-1deg); }
}

/* アイデアのチケット */
.idea-ticket {
  position: absolute;
  z-index: 4;
  right: -12em;
  top: 4.6em;
  width: 21em;
  padding: 1.5em 1.7em 1.7em;
  border: .45em solid var(--outline);
  border-radius: 1.3em;
  background:
    radial-gradient(circle at 0 50%, var(--ink) 0 .9em, transparent .95em),
    radial-gradient(circle at 100% 50%, var(--ink) 0 .9em, transparent .95em),
    #fff9dc;
  color: var(--on-neon);
  box-shadow: .7em .7em 0 var(--outline), 0 0 3em rgba(255, 230, 59, .35);
  rotate: 4deg;
  text-align: center;
}
.idea-ticket.is-new { animation: ticket-pop .65s var(--ease-punch); }
@keyframes ticket-pop {
  0% { opacity: 0; transform: translate(-6em, 4em) scale(.3) rotate(-24deg); }
  100% { opacity: 1; transform: none; }
}

.it-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: .5em;
  margin-bottom: .7em;
  border-bottom: .25em dashed rgba(10, 10, 16, .35);
  font-family: var(--font-latin);
  font-size: 1.15em;
  letter-spacing: .12em;
}
.it-scene {
  font-size: 1.9em;
  font-weight: 900;
  line-height: 1.25;
}
.it-x {
  margin: .1em 0;
  font-family: var(--font-latin);
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1;
  color: var(--pink);
  -webkit-text-stroke: .06em var(--outline);
}
.it-game {
  display: inline-block;
  padding: .05em .4em .1em;
  border-radius: .3em;
  background: var(--yellow);
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 0 0 .12em var(--outline);
}
.it-twist {
  margin-top: .8em;
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1.5;
}
.it-use {
  margin-top: 1em;
  min-height: 44px;
  padding: .55em 1.2em;
  border: 0;
  border-radius: 999px;
  background: var(--outline);
  color: var(--yellow);
  font-size: 1.4em;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease-punch);
}
.it-use:hover { transform: scale(1.06) rotate(-2deg); }

/* ---------- 斜めの帯 ---------- */

.tape-band {
  position: relative;
  height: clamp(110px, 12vw, 170px);
  overflow: hidden;
  pointer-events: none;
}

.tape {
  position: absolute;
  left: -10%;
  width: 120%;
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  height: clamp(34px, 4vw, 54px);
  align-items: center;
  background: var(--yellow);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(.9rem, 2.1vw, 1.6rem);
  box-shadow: 0 0 22px rgba(255, 230, 59, .5);
}
.tape > span { flex: none; padding-right: .4em; animation: tape-run 36s linear infinite; }
.tape--a { top: 22%; transform: rotate(3deg); }
.tape--b { top: 46%; transform: rotate(-3deg); background: var(--pink); font-family: var(--font-ja); box-shadow: 0 0 22px rgba(255, 63, 142, .5); }
.tape--b > span { animation-direction: reverse; animation-duration: 30s; }

@keyframes tape-run {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- 01 相談の種類 ---------- */

.types { --accent: var(--cyan); --accent-2: var(--pink); --glow: rgba(25, 227, 255, .45); }

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
}

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--cg), transparent 55%),
    linear-gradient(165deg, #171a2b, var(--panel) 60%);
  box-shadow: 0 0 0 3px var(--outline), 0 18px 40px rgba(0, 0, 0, .45);
}
html.js[data-motion="on"] .type-card[data-reveal] { transition: opacity .6s ease, transform .8s var(--ease-punch); transition-delay: calc(var(--i, 0) * 120ms); }
html.js[data-motion="on"] .type-card[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .6s ease, transform .25s ease-out; }

/* 枠をまわる光 */
.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), var(--c), transparent 25%, transparent 50%, var(--c) 62%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-border 5s linear infinite;
  pointer-events: none;
}
@keyframes spin-border { to { --spin: 360deg; } }

.type-letter {
  position: absolute;
  right: 18px;
  top: 6px;
  font-family: var(--font-latin);
  font-size: 5.4rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--c);
  opacity: .35;
}

.type-art {
  height: clamp(120px, 12vw, 160px);
  margin: 4px 0 12px;
}
.type-art svg { width: 100%; height: 100%; overflow: visible; }

.type-en {
  font-family: var(--font-latin);
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--c);
}
.type-title {
  margin-top: 4px;
  font-family: var(--font-ja);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 900;
  line-height: 1.3;
}
.type-desc { margin-top: 12px; color: var(--text-dim); font-size: .95rem; }

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 20px;
}
.type-tags li {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--c);
  font-size: .8rem;
  font-weight: 800;
}

.type-go {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--c);
  color: var(--on-neon);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--outline), 0 0 16px var(--cg);
  transition: transform .2s var(--ease-punch);
}
.type-go:hover { transform: translateX(4px) scale(1.04); }
.type-go span { transition: transform .2s; }
.type-go:hover span { transform: translateX(4px); }

/* A：コントローラー */
.art-pad .ap-body { transform-box: fill-box; transform-origin: center; animation: pad-bob 2.6s ease-in-out infinite; }
.art-pad .ap-btn { animation: pad-btn 1.6s steps(1) infinite; }
.art-pad .ap-btn--2 { animation-delay: -.4s; }
.art-pad .ap-btn--3 { animation-delay: -.8s; }
.art-pad .ap-btn--4 { animation-delay: -1.2s; }
.art-pad .ap-spark { fill: #f6f7fb; transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.art-pad .ap-spark--2 { fill: #19e3ff; animation-delay: -.6s; }
.art-pad .ap-spark--3 { fill: #ff3f8e; animation-delay: -1.2s; }
.art-pad .ap-bubble { transform-box: fill-box; transform-origin: 20% 100%; animation: bubble 3s var(--ease-punch) infinite; }

@keyframes pad-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}
@keyframes pad-btn {
  0% { opacity: 1; }
  25% { opacity: .35; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(.4) rotate(0); opacity: .4; }
  50% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}
@keyframes bubble {
  0%, 12% { transform: scale(0); }
  24%, 80% { transform: scale(1); }
  92%, 100% { transform: scale(0); }
}

/* B：パズル */
.art-puzzle .pz-left { animation: pz-left 3s var(--ease-punch) infinite; }
.art-puzzle .pz-right { animation: pz-right 3s var(--ease-punch) infinite; }
.art-puzzle .pz-ring { transform-box: fill-box; transform-origin: center; animation: pz-ring 3s ease-out infinite; }
.art-puzzle .pz-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: pz-pop 3s ease-out infinite; }

@keyframes pz-left {
  0%, 10% { transform: translate(-26px, 8px) rotate(-8deg); }
  40%, 85% { transform: none; }
  100% { transform: translate(-26px, 8px) rotate(-8deg); }
}
@keyframes pz-right {
  0%, 10% { transform: translate(26px, -8px) rotate(8deg); }
  40%, 85% { transform: none; }
  100% { transform: translate(26px, -8px) rotate(8deg); }
}
@keyframes pz-ring {
  0%, 38% { transform: scale(.4); opacity: 0; }
  42% { opacity: 1; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes pz-pop {
  0%, 38% { transform: scale(0); opacity: 0; }
  46% { transform: scale(1.2); opacity: 1; }
  80% { transform: scale(1); opacity: 1; }
  90%, 100% { transform: scale(0); opacity: 0; }
}

/* C：クラッカー */
.art-popper .pp-cone { transform-box: fill-box; transform-origin: 20% 90%; animation: pp-cone 2.4s var(--ease-punch) infinite; }
.art-popper .pp-bit { transform-box: fill-box; transform-origin: center; animation: pp-bit 2.4s cubic-bezier(.1, .7, .3, 1) infinite; animation-delay: var(--d); }

@keyframes pp-cone {
  0%, 100% { transform: none; }
  8% { transform: rotate(-8deg) scale(1.06); }
  18% { transform: rotate(3deg); }
  30% { transform: none; }
}
@keyframes pp-bit {
  0%, 6% { transform: translate(0, 0) rotate(0) scale(.3); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(calc(var(--r) * 2)) scale(1); opacity: 0; }
}

/* ---------- 02 場面 ---------- */

.scenes { --accent: var(--lime); --accent-2: var(--cyan); --glow: rgba(125, 255, 90, .4); }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.scene-grid > li { display: flex; }

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 200px;
  padding: 18px 18px 16px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, -20%), rgba(var(--rgb), .26), transparent 62%),
    rgba(12, 13, 22, .9);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .28s var(--ease-punch), border-color .2s, box-shadow .2s;
}
.scene:hover, .scene:focus-visible {
  transform: translateY(-6px) rotate(-1.2deg);
  border-color: var(--c);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(var(--rgb), .35);
}
.scene:active { transform: translateY(-2px) scale(.98); }

.scene-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--c);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  transition: transform .3s var(--ease-punch);
}
.scene:hover .scene-icon, .scene:focus-visible .scene-icon { animation: wiggle .7s ease-in-out; }
@keyframes wiggle {
  0%, 100% { transform: none; }
  25% { transform: rotate(-14deg) scale(1.15); }
  50% { transform: rotate(10deg) scale(1.1); }
  75% { transform: rotate(-5deg); }
}

.scene-name { font-family: var(--font-ja); font-weight: 900; font-size: 1.12rem; line-height: 1.35; }
.scene-ex { color: var(--text-dim); font-size: .88rem; line-height: 1.6; }
.scene-go {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-latin);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--c);
  transition: transform .2s;
}
.scene:hover .scene-go { transform: translateX(6px); }

.scene.is-picked { border-color: var(--c); animation: picked .5s var(--ease-punch); }
@keyframes picked {
  0% { transform: scale(1); }
  40% { transform: scale(.94) rotate(2deg); }
  100% { transform: none; }
}

/* ---------- 03 即興ミニゲームの例 ---------- */

.party { --accent: var(--pink); --accent-2: var(--yellow); --glow: rgba(255, 63, 142, .45); }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.demo {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--outline), 0 0 0 5px var(--line);
  overflow: hidden;
}

.demo-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  font-size: 10px;
  font-size: 1.9cqi;
  background: radial-gradient(ellipse at 50% 0%, #22264a, #0b0d1c 70%);
  border-bottom: 3px solid var(--outline);
}

.demo-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.demo-en { font-family: var(--font-latin); font-size: .74rem; letter-spacing: .2em; color: var(--accent); }
.demo-title { font-family: var(--font-ja); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 900; line-height: 1.3; }
.demo-desc { color: var(--text-dim); font-size: .93rem; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.demo-tags li { padding: 1px 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.demo-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 800;
  color: var(--yellow);
  text-underline-offset: 4px;
}

/* 早押しクイズ（6秒で1周） */
.dq-q {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 7%;
  padding: .6em 1em;
  border: .22em solid var(--outline);
  border-radius: .7em;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  font-size: 1.6em;
  font-weight: 900;
  line-height: 1.3;
  animation: dq-q 6s var(--ease-punch) infinite;
}
.dq-opts {
  position: absolute;
  left: 5%;
  width: 58%;
  top: 36%;
  bottom: 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8em;
}
.dq-opts span {
  display: grid;
  place-items: center;
  border: .2em solid var(--line);
  border-radius: .7em;
  background: var(--panel-2);
  font-size: 1.35em;
  font-weight: 900;
  animation: dq-opt 6s var(--ease-punch) infinite;
  animation-delay: var(--d);
}
.dq-opts .is-answer { animation-name: dq-opt, dq-answer; animation-duration: 6s, 6s; animation-delay: var(--d), 0s; animation-timing-function: var(--ease-punch), steps(1); }
.dq-rank {
  position: absolute;
  left: 5%;
  width: 58%;
  top: 36%;
  bottom: 8%;
  display: grid;
  gap: .5em;
}
.dq-rank li {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: 0 .9em;
  border-radius: .6em;
  background: rgba(255, 255, 255, .08);
  border: .16em solid var(--line);
  font-size: 1.3em;
  font-weight: 900;
  opacity: 0;
  animation: dq-rank 6s var(--ease-punch) infinite;
  animation-delay: var(--d);
}
.dq-rank li:first-child { background: rgba(255, 230, 59, .18); border-color: var(--yellow); }
.dq-rank b { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--yellow); color: var(--on-neon); font-family: var(--font-latin); }
.dq-rank i { margin-left: auto; font-style: normal; font-family: var(--font-latin); color: var(--cyan); }
.dq-phone {
  position: absolute;
  right: 6%;
  top: 33%;
  bottom: 6%;
  width: 24%;
  display: grid;
  place-items: center;
  border: .4em solid var(--outline);
  border-radius: 1.6em;
  background: linear-gradient(#2a2d48, #181a2c);
  box-shadow: 0 0 0 .2em #3a3d58;
}
.dq-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border: .35em solid var(--outline);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8ab9, var(--pink) 60%);
  font-family: var(--font-latin);
  font-size: 1.3em;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 .4em 0 #8a1648;
  animation: dq-press 6s ease-in-out infinite;
}
.dq-btn::after {
  content: "";
  position: absolute;
  inset: -.3em;
  border-radius: 50%;
  border: .3em solid var(--yellow);
  opacity: 0;
  animation: dq-ripple 6s ease-out infinite;
}

@keyframes dq-q {
  0% { transform: translateY(-160%); opacity: 0; }
  6%, 92% { transform: none; opacity: 1; }
  100% { transform: none; opacity: 0; }
}
@keyframes dq-opt {
  0%, 4% { transform: scale(0); opacity: 0; }
  12% { transform: scale(1.1); opacity: 1; }
  15%, 54% { transform: none; opacity: 1; }
  60%, 100% { transform: scale(.6); opacity: 0; }
}
@keyframes dq-answer {
  0%, 40% { background: var(--panel-2); border-color: var(--line); color: var(--text); }
  42%, 100% { background: var(--lime); border-color: var(--outline); color: var(--on-neon); }
}
@keyframes dq-rank {
  0%, 60% { opacity: 0; transform: translateX(-40%); }
  66%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes dq-press {
  0%, 22%, 26%, 30%, 34%, 100% { transform: none; box-shadow: 0 .4em 0 #8a1648; }
  24%, 32% { transform: translateY(.35em) scale(.94); box-shadow: 0 .05em 0 #8a1648; }
}
@keyframes dq-ripple {
  0%, 23% { opacity: 0; transform: scale(.9); }
  24% { opacity: 1; transform: scale(.9); }
  31%, 100% { opacity: 0; transform: scale(1.6); }
}

/* ルーレット（5秒で1周） */
.dr-ring, .dr-wheel {
  position: absolute;
  left: 50%;
  top: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.dr-ring {
  height: 92%;
  translate: -50% -50%;
  border: .7em dotted var(--yellow);
  animation: rays 6s linear infinite reverse;
}
.dr-wheel {
  height: 78%;
  margin: 0;
  translate: -50% -50%;
  border: .5em solid var(--outline);
  background: conic-gradient(var(--pink) 0 45deg, var(--yellow) 0 90deg, var(--cyan) 0 135deg, var(--orange) 0 180deg, var(--lime) 0 225deg, var(--purple) 0 270deg, #f6f7fb 0 315deg, #ff8a3d 0 360deg);
  box-shadow: 0 0 2.4em rgba(255, 230, 59, .35);
  animation: dr-spin 5s infinite;
}
.dr-wheel i {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  padding-top: 8%;
  font-style: normal;
  font-family: var(--font-latin);
  font-size: 2em;
  font-weight: 900;
  color: var(--on-neon);
  transform: rotate(var(--a));
}
.dr-hub {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 16%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border: .4em solid var(--outline);
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-size: 2em;
}
.dr-pin {
  position: absolute;
  left: 50%;
  top: 6%;
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 1.4em solid transparent;
  border-right: 1.4em solid transparent;
  border-top: 2.4em solid var(--white);
  transform-origin: 50% 0;
  animation: dr-pin 5s infinite;
}
.dr-win {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: .2em .6em;
  border: .3em solid var(--outline);
  border-radius: .5em;
  background: var(--yellow);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-size: 3em;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: dr-win 5s var(--ease-punch) infinite;
}
@keyframes dr-spin {
  0% { transform: rotate(22.5deg); animation-timing-function: cubic-bezier(.15, .55, .12, 1); }
  70%, 100% { transform: rotate(1822.5deg); }
}
@keyframes dr-pin {
  0%, 4%, 8%, 12%, 16%, 20%, 24%, 30%, 38%, 50%, 70%, 100% { transform: rotate(0); }
  2%, 6%, 10%, 14%, 18%, 22%, 27%, 34%, 44%, 60% { transform: rotate(-18deg); }
}
@keyframes dr-win {
  0%, 70% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(.2); }
  76% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1.15); }
  80%, 94% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
}

/* 連打レース（4.5秒で1周） */
.ds-race { background: linear-gradient(#1b2a4a, #12192f); }
.drc-goal {
  position: absolute;
  right: 9%;
  top: 8%;
  bottom: 8%;
  width: 3%;
  background:
    repeating-linear-gradient(0deg, #f6f7fb 0 1em, var(--outline) 1em 2em) 0 0 / 50% 100% no-repeat,
    repeating-linear-gradient(0deg, var(--outline) 0 1em, #f6f7fb 1em 2em) 100% 0 / 50% 100% no-repeat;
  border: .15em solid var(--outline);
}
.drc-lane {
  position: absolute;
  left: 3%;
  right: 3%;
  height: 19%;
  display: flex;
  align-items: center;
  border-bottom: .2em dashed rgba(255, 255, 255, .18);
}
.drc-lane:nth-of-type(2) { top: 8%; }
.drc-lane:nth-of-type(3) { top: 29%; }
.drc-lane:nth-of-type(4) { top: 50%; }
.drc-lane:nth-of-type(5) { top: 71%; }
.drc-lane b {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--c);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-size: 1.3em;
  border: .15em solid var(--outline);
}
.drc-runner {
  position: absolute;
  left: 8%;
  top: 50%;
  width: 3.6em;
  height: 3.6em;
  margin-top: -1.8em;
  animation: drc-run 4.5s steps(16, end) infinite;
}
.drc-runner i {
  position: absolute;
  inset: 0;
  border: .3em solid var(--outline);
  border-radius: 46% 54% 50% 50%;
  background:
    radial-gradient(circle at 62% 38%, var(--outline) 0 .32em, transparent .36em),
    radial-gradient(circle at 84% 38%, var(--outline) 0 .32em, transparent .36em),
    var(--c);
  animation: drc-hop .28s ease-in-out infinite alternate;
}
.drc-lane.is-win { animation: drc-win 4.5s steps(1) infinite; }
.drc-tap {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-latin);
  font-size: 1.6em;
  font-weight: 900;
  color: var(--yellow);
  -webkit-text-stroke: .06em var(--outline);
  opacity: 0;
  animation: drc-tap 2.2s ease-out infinite;
  animation-delay: var(--d);
}
@keyframes drc-run {
  0% { left: 8%; }
  72%, 100% { left: var(--to); }
}
@keyframes drc-hop {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-.5em) rotate(6deg); }
}
@keyframes drc-win {
  0%, 72% { background: transparent; }
  74%, 96% { background: rgba(255, 63, 142, .25); }
  100% { background: transparent; }
}
@keyframes drc-tap {
  0% { opacity: 0; transform: scale(.4) rotate(-10deg); }
  12% { opacity: 1; transform: scale(1.2) rotate(6deg); }
  40% { opacity: 0; transform: scale(1) translateY(-1.4em); }
  100% { opacity: 0; }
}

/* 花火（3秒で1周） */
.ds-fire { background: linear-gradient(#060820, #160f3c 70%, #2a1236); }
.ds-fire::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 .12em, transparent .16em),
    radial-gradient(circle at 78% 12%, #fff 0 .1em, transparent .14em),
    radial-gradient(circle at 42% 9%, #fff 0 .12em, transparent .16em),
    radial-gradient(circle at 90% 40%, #fff 0 .1em, transparent .14em),
    radial-gradient(circle at 20% 52%, #fff 0 .08em, transparent .12em);
  animation: stars 3s ease-in-out infinite alternate;
}
@keyframes stars { from { opacity: .4; } to { opacity: 1; } }
.df-city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: #05050f;
  clip-path: polygon(0 60%, 6% 60%, 6% 30%, 12% 30%, 12% 50%, 18% 50%, 18% 15%, 22% 15%, 22% 45%, 30% 45%, 30% 25%, 37% 25%, 37% 55%, 46% 55%, 46% 35%, 52% 35%, 52% 10%, 56% 10%, 56% 40%, 64% 40%, 64% 55%, 72% 55%, 72% 20%, 78% 20%, 78% 48%, 86% 48%, 86% 30%, 93% 30%, 93% 58%, 100% 58%, 100% 100%, 0 100%);
}
.df-phone {
  position: absolute;
  right: 6%;
  bottom: 8%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 9%;
  aspect-ratio: 9 / 16;
  border: .3em solid var(--outline);
  border-radius: .8em;
  background: #20233a;
  box-shadow: 0 0 0 .14em #4a4d6a;
}
.df-phone i {
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-neon);
  font-style: normal;
  font-size: 1.2em;
  animation: df-tap 1s ease-in-out infinite;
}
@keyframes df-tap {
  0%, 70%, 100% { transform: none; }
  80% { transform: scale(.82); }
}
.df-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}
/* 打ち上がる光 */
.df-burst::before {
  content: "";
  position: absolute;
  left: -.15em;
  top: 0;
  width: .3em;
  height: 3.4em;
  border-radius: .3em;
  background: linear-gradient(var(--c), transparent);
  opacity: 0;
  animation: df-rocket 3s ease-out infinite;
  animation-delay: var(--d);
}
/* 開いた瞬間の光 */
.df-burst::after {
  content: "";
  position: absolute;
  left: -5em;
  top: -5em;
  width: 10em;
  height: 10em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 60%);
  opacity: 0;
  animation: df-flash 3s ease-out infinite;
  animation-delay: var(--d);
}
.df-burst i {
  position: absolute;
  left: -.3em;
  top: -.3em;
  width: .6em;
  height: 1.6em;
  border-radius: .3em;
  background: linear-gradient(var(--c), transparent);
  box-shadow: 0 0 .6em var(--c);
  opacity: 0;
  transform-origin: 50% .3em;
  animation: df-spark 3s cubic-bezier(.1, .8, .3, 1) infinite;
  animation-delay: var(--d);
}
@keyframes df-rocket {
  0% { opacity: 0; transform: translateY(16em); }
  4% { opacity: 1; }
  28% { opacity: 1; transform: translateY(0); }
  31%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes df-flash {
  0%, 29% { opacity: 0; transform: scale(.2); }
  32% { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(1.3); }
}
@keyframes df-spark {
  0%, 29% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.3); }
  32% { opacity: 1; }
  62% { opacity: 1; transform: rotate(var(--a)) translateY(-5.2em) scale(1); }
  85%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(-5.8em) scale(.8); }
}

.party-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-left: 5px solid var(--pink);
  background: rgba(12, 13, 22, .85);
  font-weight: 700;
}

/* ---------- 04 作品 ---------- */

.works { --accent: var(--orange); --accent-2: var(--yellow); --glow: rgba(255, 122, 18, .45); max-width: none; padding-left: 0; padding-right: 0; }
.works .section-head, .works-more { max-width: 1360px; margin-left: auto; margin-right: auto; padding: 0 clamp(14px, 4vw, 48px); }
.works .section-head { margin-bottom: clamp(24px, 3.4vw, 44px); }

.works-rail {
  display: flex;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
html.js[data-motion="on"] .works-rail[data-reveal] { transform: translateX(-60px); }
html.js[data-motion="on"] .works-rail--b[data-reveal] { transform: translateX(60px); }
html.js[data-motion="on"] .works-rail[data-reveal].is-in { transform: none; }

.works-track {
  flex: none;
  display: flex;
  gap: 18px;
  padding-right: 18px;
  animation: marquee 52s linear infinite;
}
.works-rail--b .works-track { animation-direction: reverse; animation-duration: 46s; }
.works-rail:hover .works-track, .works-rail:focus-within .works-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.work {
  position: relative;
  display: block;
  width: clamp(230px, 19vw, 320px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: var(--panel-2);
  box-shadow: 0 0 0 3px var(--outline), 0 0 0 5px var(--line);
  transition: transform .3s var(--ease-punch), box-shadow .2s;
}
.works-track li:nth-child(odd) .work { rotate: -1.5deg; }
.works-track li:nth-child(even) .work { rotate: 1.5deg; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(5, 5, 10, .88));
}
.work-genre, .work-name { position: absolute; left: 14px; z-index: 1; }
.work-genre { bottom: 34px; font-family: var(--font-latin); font-size: .62rem; letter-spacing: .16em; color: var(--accent); }
.work-name { bottom: 10px; font-weight: 900; font-size: 1.02rem; text-shadow: 0 2px 0 var(--outline); }
.work:hover, .work:focus-visible { transform: scale(1.06) rotate(0deg); rotate: 0deg; box-shadow: 0 0 0 3px var(--outline), 0 0 0 5px var(--accent), 0 0 28px var(--glow); z-index: 2; }
.work:hover img { transform: scale(1.08); }

.works-more { margin-top: 28px; }

/* ---------- 05 流れ ---------- */

.flow { --accent: var(--lime); --accent-2: var(--cyan); --glow: rgba(125, 255, 90, .4); }

.flow-wrap { --p: 0; position: relative; }

.flow-track {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30px;
  height: 8px;
  border-radius: 8px;
  background: var(--line);
}
.flow-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan), var(--orange), var(--lime));
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  box-shadow: 0 0 14px rgba(125, 255, 90, .5);
}
.flow-runner {
  position: absolute;
  left: calc(var(--p) * 100%);
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
}
.flow-runner i {
  position: absolute;
  inset: 0;
  border: 4px solid var(--outline);
  border-radius: 50%;
  background:
    linear-gradient(var(--yellow) 0 50%, #f6f7fb 50% 100%);
  box-shadow: 0 0 16px rgba(255, 230, 59, .7);
  animation: runner-roll 1s linear infinite;
}
@keyframes runner-roll { to { transform: rotate(360deg); } }

.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fs-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border: 4px solid var(--outline);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text-dim);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 0 0 3px var(--line);
  transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-punch);
}
.flow-step.is-lit .fs-dot {
  background: var(--c);
  color: var(--on-neon);
  box-shadow: 0 0 0 3px var(--outline), 0 0 22px var(--c);
  transform: scale(1.12);
  animation: dot-pop .5s var(--ease-punch);
}
@keyframes dot-pop {
  0% { transform: scale(.7); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1.12); }
}

.fs-body {
  width: 100%;
  flex: 1;
  padding: 16px 14px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 13, 22, .9);
  transition: border-color .3s, transform .4s var(--ease-punch);
}
.flow-step.is-lit .fs-body { border-color: var(--c); transform: translateY(-4px); }
.fs-en { font-family: var(--font-latin); font-size: .68rem; letter-spacing: .18em; color: var(--c); }
.fs-title { font-family: var(--font-ja); font-weight: 900; font-size: 1.2rem; margin: 2px 0 6px; }
.fs-text { font-size: .88rem; color: var(--text-dim); text-align: left; }

.flow-goal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 3px solid var(--outline);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(125, 255, 90, .16), rgba(25, 227, 255, .16));
  box-shadow: 0 0 0 2px var(--lime);
}
.goal-flag {
  width: 46px;
  height: 34px;
  background:
    repeating-conic-gradient(var(--white) 0 25%, var(--outline) 0 50%) 0 0 / 11.5px 11.5px;
  border: 2px solid var(--outline);
  transform-origin: 0 50%;
  animation: flag 1.2s ease-in-out infinite alternate;
}
@keyframes flag {
  from { transform: perspective(120px) rotateY(0deg) skewY(0deg); }
  to { transform: perspective(120px) rotateY(-28deg) skewY(-6deg); }
}
.goal-en { font-family: var(--font-latin); font-weight: 900; font-size: 1.5rem; color: var(--lime); text-shadow: var(--punch-shadow); }
.goal-ja { font-family: var(--font-ja); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* ---------- 06 相談フォーム ---------- */

.request { --accent: var(--yellow); --accent-2: var(--pink); --glow: rgba(255, 230, 59, .5); }

.req-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  grid-template-areas: "main side" "submit side";
  gap: 22px clamp(20px, 3vw, 44px);
  align-items: start;
}

.req-main {
  grid-area: main;
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 24px;
  background: rgba(12, 13, 22, .92);
  box-shadow: 0 0 0 3px var(--outline), 0 0 0 5px var(--line);
}

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font-weight: 900; font-size: 1rem; }
fieldset.field > .field-label { margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.req-form input[type="text"],
.req-form input[type="email"],
.req-form input[type="tel"],
.req-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #07070e;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.req-form textarea { min-height: 160px; resize: vertical; }
.req-form input::placeholder, .req-form textarea::placeholder { color: #7f8399; }
.req-form input:focus, .req-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 230, 59, .25), 0 0 18px rgba(255, 230, 59, .25);
}
.req-form .is-shake { animation: shake .45s ease-in-out; border-color: var(--pink) !important; }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.req-form .is-flash { animation: field-flash .7s ease-out; }
@keyframes field-flash {
  0% { box-shadow: 0 0 0 4px var(--yellow), 0 0 30px rgba(255, 230, 59, .6); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.field-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--text-dim); }
.count { font-family: var(--font-latin); font-size: .75rem; }

/* 相談の種類（大きな選択肢） */
.type-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.choice { position: relative; display: flex; cursor: pointer; }
.choice input, .chip-choice input, .consent input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-face {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 118px;
  padding: 14px 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #07070e;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.45;
  transition: transform .25s var(--ease-punch), border-color .2s, background .2s, color .2s;
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid var(--c);
  color: var(--c);
  font-family: var(--font-latin);
  font-weight: 900;
}
.choice:hover .choice-face { border-color: var(--c); transform: translateY(-3px); }
.choice input:focus-visible + .choice-face { outline: 3px solid var(--white); outline-offset: 3px; }
.choice input:checked + .choice-face {
  border-color: var(--outline);
  background: var(--c);
  color: var(--on-neon);
  box-shadow: 0 0 0 3px var(--outline), 0 0 22px var(--c);
  transform: rotate(-1.5deg) scale(1.03);
  animation: choice-pop .45s var(--ease-punch);
}
.choice input:checked + .choice-face .choice-icon { background: var(--outline); border-color: var(--outline); color: var(--c); }
@keyframes choice-pop {
  0% { transform: scale(.9); }
  60% { transform: rotate(-3deg) scale(1.08); }
  100% { transform: rotate(-1.5deg) scale(1.03); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-choice { position: relative; display: inline-flex; cursor: pointer; }
.chip-choice span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #07070e;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s var(--ease-punch), border-color .2s, background .2s;
}
.chip-choice span::before {
  content: "+";
  font-family: var(--font-latin);
  color: var(--cyan);
  transition: transform .25s var(--ease-punch);
}
.chip-choice:hover span { border-color: var(--cyan); }
.chip-choice input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
.chip-choice input:checked + span {
  border-color: var(--outline);
  background: var(--cyan);
  color: var(--on-neon);
  box-shadow: 0 0 0 2px var(--outline), 0 0 14px rgba(25, 227, 255, .5);
  animation: chip-pop .35s var(--ease-punch);
}
.chip-choice input:checked + span::before { content: "✓"; color: var(--on-neon); transform: rotate(360deg); }
@keyframes chip-pop {
  0% { transform: scale(.85); }
  60% { transform: scale(1.1); }
  100% { transform: none; }
}

.field-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-size: .75rem;
  letter-spacing: .24em;
  color: var(--pink);
}
.field-sep::before, .field-sep::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #07070e;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.consent input { z-index: 1; }
.consent-box {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 2px solid var(--text-dim);
  border-radius: 7px;
  transition: background .2s, border-color .2s;
}
.consent-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 14px;
  border: solid var(--on-neon);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease-punch);
}
.consent input:checked + .consent-box { background: var(--lime); border-color: var(--lime); }
.consent input:checked + .consent-box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent-box { outline: 3px solid var(--white); outline-offset: 2px; }
.consent.is-shake { animation: shake .45s ease-in-out; border-color: var(--pink); }

/* 企画カード（カートリッジ） */
.req-side {
  grid-area: side;
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  justify-items: center;
  perspective: 1000px;
}

.cartridge {
  --c: #c9cce0;
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 22px 18px 54px;
  border-radius: 20px 20px 12px 12px;
  background: linear-gradient(180deg, #2c2f48, #181a2c);
  box-shadow: 0 0 0 4px var(--outline), 0 0 0 6px #3a3d58, 0 24px 50px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.cartridge[data-type="order"] { --c: var(--yellow); }
.cartridge[data-type="together"] { --c: var(--cyan); }
.cartridge[data-type="party"] { --c: var(--pink); }
.cartridge[data-type="other"] { --c: var(--lime); }

.cart-notch {
  position: absolute;
  top: 0;
  right: 16%;
  width: 24%;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: var(--outline);
}

.cart-label {
  position: relative;
  padding: 14px 16px 16px;
  border: 3px solid var(--outline);
  border-radius: 12px;
  background: var(--c);
  color: var(--on-neon);
  transition: background .35s ease;
}
.cart-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(10, 10, 16, .3);
  font-family: var(--font-latin);
  font-size: .66rem;
  letter-spacing: .14em;
}
.cart-type {
  display: inline-block;
  margin-top: 10px;
  padding: 1px 10px;
  border-radius: 6px;
  background: var(--outline);
  color: var(--c);
  font-size: .78rem;
  font-weight: 900;
}
.cart-title {
  margin-top: 8px;
  min-height: 2.6em;
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cart-specs { display: grid; gap: 4px; margin-top: 10px; font-size: .82rem; }
.cart-specs > div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .4); }
.cart-specs dt { font-weight: 900; }
.cart-specs dd { font-weight: 700; overflow-wrap: anywhere; }
.cart-specs dd.is-flash, .cart-title.is-flash, .cart-type.is-flash { animation: spec-flash .6s ease-out; }
@keyframes spec-flash {
  0% { transform: scale(1.12); background: rgba(255, 255, 255, .95); }
  100% { transform: none; }
}

.cart-meter { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-latin); font-size: .66rem; }
.cart-meter-bar { flex: 1; height: 10px; border: 2px solid var(--outline); border-radius: 6px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.cart-meter-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--m, 0));
  background: repeating-linear-gradient(-45deg, var(--outline) 0 5px, #3a3d58 5px 10px);
  background-size: 200% 100%;
  transition: transform .45s var(--ease-punch);
  animation: meter-move 1s linear infinite;
}
@keyframes meter-move { to { background-position: 14px 0; } }
.cart-meter-num { min-width: 3.2em; text-align: right; }

.cart-pins {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 12px;
  height: 24px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #e2bd5f 0 10px, transparent 10px 16px);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25);
}

.cart-holo {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 44%, rgba(25, 227, 255, .2) 50%, rgba(255, 63, 142, .2) 56%, transparent 70%);
  background-size: 260% 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: holo 4.2s linear infinite;
}
@keyframes holo {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

.cart-stamp {
  position: absolute;
  right: 10px;
  bottom: 44px;
  padding: 2px 12px;
  border: 4px solid var(--pink);
  border-radius: 10px;
  color: var(--pink);
  background: rgba(255, 255, 255, .85);
  font-family: var(--font-latin);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .06em;
  transform: rotate(-14deg) scale(0);
  opacity: 0;
  pointer-events: none;
}
.cartridge.is-ready .cart-stamp { opacity: 1; transform: rotate(-14deg) scale(1); animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(3); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}

.side-note { font-size: .82rem; color: var(--text-dim); text-align: center; }

.req-submit {
  grid-area: submit;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.btn--submit { min-height: 64px; padding: 12px 40px; font-size: 1.2rem; }
.btn--submit[disabled] { cursor: progress; opacity: .85; }
.btn--submit.is-sending .submit-arrow { animation: spin-arrow .8s linear infinite; }
@keyframes spin-arrow { to { transform: skewX(8deg) rotate(360deg); } }

.req-status { font-weight: 800; min-height: 1.6em; }
.req-status.is-error { color: #ff8ab9; }

/* 送信の演出：カードが差し込まれて消える */
.req-form.is-sent .cartridge { animation: cart-insert .9s cubic-bezier(.5, -.4, .7, .2) forwards; }
.req-form.is-sent .req-main, .req-form.is-sent .req-submit { transition: opacity .5s ease .2s; opacity: .25; }
@keyframes cart-insert {
  0% { transform: none; }
  30% { transform: translateY(-24px) rotate(-4deg) scale(1.04); }
  100% { transform: translateY(140%) scale(.7); opacity: 0; }
}

.req-done {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(18px, 4vw, 48px);
  border-radius: 28px;
  background: rgba(12, 13, 22, .95);
  box-shadow: 0 0 0 4px var(--outline), 0 0 0 7px var(--yellow), 0 0 50px rgba(255, 230, 59, .35);
  text-align: center;
  overflow: hidden;
  animation: done-pop .7s var(--ease-punch);
}
.req-done:focus { outline: none; }
.req-done > *:not(.done-rays) { position: relative; }
.done-rays {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 160%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(rgba(255, 230, 59, .12) 0 8deg, transparent 8deg 20deg);
  animation: rays 24s linear infinite;
  pointer-events: none;
}
@keyframes done-pop {
  0% { opacity: 0; transform: scale(.6) rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}
.done-en { font-family: var(--font-latin); letter-spacing: .2em; color: var(--yellow); font-size: .85rem; }
.done-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  text-shadow: var(--punch-shadow), 0 0 .5em var(--glow);
  animation: done-title 1.6s ease-in-out .7s infinite;
}
@keyframes done-title {
  0%, 100% { transform: none; }
  50% { transform: scale(1.04) rotate(-1deg); }
}
.done-id { font-weight: 800; }
.done-id strong {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 12px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--on-neon);
  font-family: var(--font-latin);
  letter-spacing: .06em;
}
.done-text { color: var(--text-dim); max-width: 34em; }
.done-preview { display: block; margin-top: 4px; color: var(--cyan); font-size: .85rem; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- 締め ---------- */

.closing {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(14px, 4vw, 48px) clamp(56px, 8vw, 100px);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.closing-big {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
}
.closing-big strong {
  display: inline-block;
  margin-left: .2em;
  padding: .05em .45em .1em;
  background: var(--yellow);
  color: var(--on-neon);
  font-size: 1.3em;
  rotate: -2deg;
  box-shadow: 0 0 0 3px var(--outline), 0 0 24px rgba(255, 230, 59, .5);
}
.closing-text { color: var(--text-dim); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* 追いかけてくる相談ボタン */
.float-cta {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 22px 8px 14px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--on-neon);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--outline), 0 10px 26px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 63, 142, .6);
  transform: translateY(140%) scale(.6);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-punch), opacity .3s;
}
.float-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.float-cta.is-shown:hover { transform: translateY(-3px) rotate(-3deg); }
.float-cta-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--outline);
  color: var(--yellow);
  font-size: 1.1rem;
}
.float-cta.is-shown .float-cta-icon { animation: cta-wiggle 3s ease-in-out infinite; }
@keyframes cta-wiggle {
  0%, 80%, 100% { transform: none; }
  85% { transform: rotate(-16deg) scale(1.15); }
  90% { transform: rotate(12deg) scale(1.15); }
  95% { transform: rotate(-6deg); }
}

/* 紙吹雪のキャンバス（JSで追加） */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  pointer-events: none;
}

/* ---------- フッター ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 24px clamp(14px, 4vw, 48px) 96px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.footer-link:hover { color: var(--yellow); }
.site-footer small { margin-left: auto; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 1100px) {
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-face { min-height: 0; flex-direction: row; align-items: center; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .scroll-cue { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { margin-top: 12px; }
  .gacha { --gw: min(300px, 64vw); }
  .idea-ticket { right: -10em; }
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .type-card { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .type-card > * { grid-column: 2; }
  .type-card .type-art { grid-column: 1; grid-row: 1 / span 6; align-self: center; height: 150px; margin: 0; }
  .type-card .type-letter { grid-column: auto; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-track { left: 30px; right: auto; top: 30px; bottom: 30px; width: 8px; height: auto; }
  .flow-fill { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .flow-runner { left: 50%; top: calc(var(--p) * 100%); }
  .flow-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow-step { flex-direction: row; align-items: flex-start; gap: 16px; text-align: left; }
  .fs-dot { flex: none; margin-bottom: 0; }
  .flow-step.is-lit .fs-body { transform: translateX(4px); }
  .req-form { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "submit"; }
  .req-side { position: relative; top: 0; }
}

@media (max-width: 640px) {
  .br-wide { display: none; }
  .br-narrow { display: inline; }
  .site-header { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .header-label { display: none; }
  .tool-btn { padding: 6px 10px; }
  .header-cta { padding: 6px 14px; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .ht-line--2 { margin-left: .15em; }
  .hero-actions .btn { flex: 1 1 auto; }
  .gacha { --gw: min(290px, 78vw); }
  .sticker--a { left: 0; top: 4%; }
  .sticker--b { left: auto; right: 0; top: 30%; bottom: auto; }
  .sticker--c { left: 2%; right: auto; bottom: auto; top: 50%; }
  .idea-ticket { position: relative; right: auto; top: auto; width: 100%; margin-top: 1.6em; rotate: 2deg; }
  .gacha-help { font-size: .78rem; }
  .type-card { display: flex; }
  .type-card .type-art { height: 130px; }
  .scene-grid { gap: 10px; }
  .scene { min-height: 0; padding: 14px; }
  .scene-icon { width: 42px; height: 42px; }
  .scene-name { font-size: 1rem; }
  .scene-ex { font-size: .8rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .type-choices { grid-template-columns: minmax(0, 1fr); }
  .choice-face { min-height: 64px; }
  .choice-text br { display: none; }
  .btn--submit { width: 100%; }
  .site-footer small { margin-left: 0; }
}

@media (max-width: 400px) {
  .tool-label { display: none; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .float-cta { padding-right: 18px; }
}

/* ---------- 動きOFF（ページ内の切り替え・端末の設定） ---------- */

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .bg-canvas { display: none; }
/* 動きOFFでも花火の画面は開いた形で見せる */
html[data-motion="off"] .df-burst i { opacity: 1; transform: rotate(var(--a)) translateY(-4.6em); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .bg-canvas { display: none; }
  .df-burst i { opacity: 1; transform: rotate(var(--a)) translateY(-4.6em); }
}
