:root {
  --mint: #ede8ff;
  --mint-2: #ddd4ff;
  --leaf: #6b21ff;
  --ink: #14082e;
  --muted: #5c5580;
  --cyan: #00d4ff;
  --cyan-deep: #0099cc;
  --orange: #ff5e1a;
  --orange-deep: #e04600;
  --navy: #12082a;
  --paper: #faf8ff;
  --line: rgba(20, 8, 46, 0.12);
  --shadow: 0 18px 50px rgba(20, 8, 46, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.8) 0 90px, transparent 92px),
    radial-gradient(circle at 92% 0%, rgba(107, 33, 255, 0.22) 0 160px, transparent 162px),
    radial-gradient(circle at 70% 40%, rgba(0, 212, 255, 0.18) 0 90px, transparent 92px),
    var(--mint);
}
img { max-width: 100%; }
a { color: var(--cyan-deep); }
button, input, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 92px;
  padding: 10px 0;
}
fieldset { border: 0; margin: 0 0 12px; padding: 0; }
legend { padding: 0; font-weight: 800; }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.nav a.is-on { color: var(--leaf); }
.nav-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.35);
}
.nav-shop.is-on {
  background: var(--orange-deep);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25), 0 10px 22px rgba(255, 122, 26, 0.35);
}

.stage-band { padding: 64px 0 28px; }
.stage-copy { max-width: 760px; }
.kicker {
  margin: 0 0 8px;
  color: var(--leaf);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
h1, h2, h3 { line-height: 1.15; }
h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.03em; }
h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { margin: 0 0 8px; font-size: 1.2rem; }
.lede { font-size: 1.18rem; color: var(--muted); margin: 0 0 22px; }
.banner-frame {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1038;
}
.banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}
.play-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play-link { display: block; width: min(230px, 100%); }
.play-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 499 / 171;
  object-fit: contain;
}

.section { padding: 28px 0 64px; }
.panel {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trio article, .icon-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line);
}
.ico {
  width: 32px;
  height: 32px;
  stroke: var(--leaf);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-card .ico, .trio .ico { display: block; margin-bottom: 10px; }
.shot-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.shot-rail img, .portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 1280;
  object-fit: cover;
  border-radius: 22px;
  background: #2a1a52;
}
.wide-note {
  margin-top: 22px;
  padding: 28px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--navy), #3a1588);
  color: #f4f0ff;
}
.wide-note a { color: #7ee8ff; }
.wide-note p { margin: 0; font-size: 1.25rem; }

.page-company .sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 240px;
  gap: 36px;
  align-items: start;
  background: var(--paper);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}
.mini-col { display: grid; gap: 16px; }
.mini-shot img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}
.mini-shot img.ratio-portrait { aspect-ratio: 800 / 1280; }
.mini-shot img.ratio-square { aspect-ratio: 1 / 1; width: 210px; }
.mini-shot figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.page-game .game-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  gap: 36px;
  align-items: center;
  background: linear-gradient(155deg, #12082a, #2d0f6e 55%, #004d66);
  color: #f5f8ff;
  border-radius: 32px;
  padding: 42px;
}
.page-game .game-top .lede, .page-game .game-top .kicker { color: #b8f0ff; }
.page-game .game-top a { color: #fff; }
.feature-list { display: grid; gap: 14px; margin-top: 22px; }
.feature-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--paper);
  border-radius: 18px;
  padding: 16px 18px;
}
.portrait { width: 100%; }
.game-stills {
  display: grid;
  grid-template-columns: 280px 280px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 22px;
}
.game-stills .banner-frame { margin-top: 0; }

.page-shop .store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: start;
}
.coin-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 4px;
}
.coin-card { display: block; position: relative; cursor: pointer; }
.coin-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.coin-face {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 74px;
  padding: 8px;
  border-radius: 16px;
  background: var(--paper);
  border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(22, 48, 40, 0.05);
}
.coin-card input:focus-visible + .coin-face,
.coin-card input:checked + .coin-face {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.22);
}
.coin-face img {
  width: 46px;
  height: auto;
  aspect-ratio: 74 / 77;
  object-fit: contain;
}
.coin-face strong { display: block; color: var(--ink); font-size: 1rem; }
.coin-face .js-price { color: var(--leaf); font-weight: 800; }
.order-desk {
  position: sticky;
  top: 108px;
  background: var(--paper);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.order-desk label, .field { display: block; margin: 0 0 12px; font-weight: 700; }
.order-desk input[type="text"],
.order-desk input[type="email"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #c9ddd0;
  background: #fff;
  color: var(--ink);
}
.pay-list { display: grid; gap: 8px; margin-top: 8px; font-weight: 600; }
.pay-list label { margin: 0; font-weight: 600; }
.pay-only { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.money-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.money-switch, .btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}
.money-switch { background: var(--mint-2); color: var(--ink); }
.money-switch[aria-pressed="true"] { background: var(--navy); color: #fff; }
.btn {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.28);
}
.btn.full { width: 100%; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check-line input { margin-top: 4px; }
.form-errors {
  margin: 0 0 12px;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: #fff1f0;
  color: #8d1d1d;
}
.sum-box {
  margin: 8px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mint);
}
.promise { margin-top: 22px; }
.promise h2 { margin-bottom: 8px; }
.promise h3 { margin-top: 18px; }

.reach-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.reach-row article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 18px;
}
.reach-row h2 { font-size: 1rem; margin-bottom: 6px; }
.reach-row p { margin: 0 0 6px; }
.reach-row .ico { stroke: var(--leaf); }
.receipt label { display: block; margin: 0; font-weight: 700; }
.receipt input[readonly] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #c9ddd0;
  background: #f4f7f5;
  color: var(--ink);
}
.game-stills > img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 1280;
  object-fit: cover;
  border-radius: 22px;
  background: #2a1a52;
}

.receipt, .result-card {
  width: min(680px, 100%);
  margin: 36px auto 48px;
  background: var(--paper);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.receipt dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 12px; margin: 0; }
.receipt dt { font-weight: 800; }
.receipt dd { margin: 0; }
.seal {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 800;
}
.seal.ok { background: #d9f8e4; color: var(--leaf); }
.seal.bad { background: #ffe4d8; color: #c2410c; }
.page-fault .result-card { border-top: 8px solid #ef4444; }
.page-finish .result-card { border-top: 8px solid var(--cyan); }
.page-receipt .result-card, .page-receipt .receipt { border-top: 8px solid var(--orange); }

.site-foot {
  margin-top: 20px;
  padding: 36px 0 28px;
  background: #0c0620;
  color: #d8d0f5;
}
.site-foot a { color: #d8d0f5; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.foot-name { margin: 0 0 8px; font-weight: 800; color: #fff; }
.foot-nav, .foot-policy { display: grid; gap: 6px; align-content: start; }
.foot-copy { margin: 18px auto 0; color: #9a8fc4; }

.page-company .sheet {
  border: 1px solid rgba(107, 33, 255, 0.15);
}
.page-contact .reach-row article {
  border-color: rgba(0, 212, 255, 0.2);
}
.page-shop .order-desk {
  border: 2px solid rgba(255, 94, 26, 0.35);
}

@media (max-width: 980px) {
  .trio, .icon-grid, .page-company .sheet, .page-game .game-top, .page-shop .store-layout, .game-stills, .foot-grid {
    grid-template-columns: 1fr;
  }
  .reach-row { grid-template-columns: 1fr 1fr; }
  .shot-rail { grid-template-columns: repeat(3, 1fr); }
  .order-desk { position: static; }
  .mini-shot img, .mini-shot img.ratio-square { width: min(220px, 70%); }
}
@media (max-width: 640px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .top-row { align-items: flex-start; padding: 12px 0; }
  .brand img { width: 52px; height: 52px; }
  .shot-rail { grid-template-columns: repeat(2, 1fr); }
  .reach-row { grid-template-columns: 1fr; }
  .stage-band { padding-top: 32px; }
  .page-company .sheet, .page-game .game-top { padding: 22px; }
  .receipt dl { grid-template-columns: 1fr; }
}
