:root {
  color-scheme: dark;
  --bg: #080807;
  --panel: #12100d;
  --panel-2: #1b1711;
  --ink: #f7efe0;
  --muted: #b7a88e;
  --gold: #d6aa58;
  --gold-2: #f2d58f;
  --line: rgba(214, 170, 88, 0.32);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(214, 170, 88, 0.2);
  background: rgba(8, 8, 7, 0.88);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.qty,
.modal-head {
  display: flex;
  align-items: center;
}

.brand {
  width: 164px;
  min-height: 46px;
}

.brand img {
  width: 100%;
  height: 46px;
  object-fit: contain;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #2c2112, #0e0d0b);
  color: var(--gold-2);
  font-weight: 900;
}

.brand-mark.large {
  width: 72px;
  height: 72px;
  font-size: 34px;
}

.nav {
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--gold-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(30px, 6vw, 74px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(214, 170, 88, 0.24);
}

.hero-copy {
  max-width: 700px;
}

.hero-logo {
  width: min(360px, 82vw);
  margin-bottom: 28px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.eyebrow,
.plan-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.lead {
  max-width: 560px;
  color: #dacfb9;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 0 20px;
  background: #18140f;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.button.gold {
  border-color: transparent;
  background: var(--gold);
  color: #15100a;
}

.button.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.button.ghost {
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  box-shadow: 0 24px 80px var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(214, 170, 88, 0.24);
}

.stats div {
  min-height: 132px;
  padding: 24px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(214, 170, 88, 0.2);
}

.stats span,
.stats small {
  display: block;
  color: var(--muted);
}

.stats strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--gold-2);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.draw-copy p,
.plan-copy,
.notice-list,
.muted {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.product-card img {
  width: 100%;
  aspect-ratio: 5 / 5.6;
  background: #050505;
  object-fit: contain;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
}

.product-meta span {
  color: var(--muted);
  font-size: 13px;
}

.rarity {
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
}

.product-card.secret {
  border-color: rgba(242, 213, 143, 0.72);
  background: #1b1308;
}

.series-shot {
  padding: 0 clamp(18px, 5vw, 64px);
}

.series-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.series-strip img {
  width: 100%;
  aspect-ratio: 5 / 5.6;
  border: 1px solid var(--line);
  background: #050505;
  object-fit: contain;
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.buy-panel {
  display: grid;
  gap: 24px;
  align-content: start;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(22px, 4vw, 38px);
}

.buy-panel.featured {
  background: var(--panel-2);
  border-color: rgba(242, 213, 143, 0.58);
}

.price {
  color: var(--gold-2);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.price span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.qty {
  width: 156px;
  height: 48px;
  border: 1px solid var(--line);
}

.qty button,
.modal-head button {
  width: 48px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.qty output {
  flex: 1;
  text-align: center;
  font-weight: 900;
}

.set-note {
  color: var(--gold);
  font-weight: 800;
}

.draw {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.draw-stage {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: 18px;
}

.box-visual,
.result {
  min-height: 330px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.box-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.box-visual.opening {
  animation: pulse 0.55s ease-in-out 2;
}

.result {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.result img {
  width: min(260px, 100%);
  aspect-ratio: 5 / 5.6;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #050505;
  margin-bottom: 16px;
}

.notice {
  border-top: 1px solid rgba(214, 170, 88, 0.24);
}

.company {
  border-top: 1px solid rgba(214, 170, 88, 0.24);
}

.company-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 1040px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.company-list div {
  min-height: 112px;
  padding: 18px;
  background: var(--panel);
}

.company-list dt {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-list dd {
  margin: 0;
  color: var(--ink);
}

.company-list a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.notice-list p {
  margin: 0;
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 16px;
}

.modal {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}

.modal p {
  padding: 0 18px 18px;
}

.modal p:first-of-type {
  padding-top: 18px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .draw {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stats,
  .product-grid,
  .purchase-grid,
  .draw-stage,
  .series-strip,
  .company-list {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(214, 170, 88, 0.2);
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .hero {
    padding-top: 28px;
  }

  .buy-panel {
    min-height: auto;
  }
}
