/* LAST DERBY — static site (no JS, no external requests) */
:root {
  --navy: #0B1020;
  --navy-2: #10172d;
  --navy-3: #18213d;
  --ink: #EEF1F8;
  --body: #D3D9E8;
  --muted: #8F99B5;
  --gold: #FFC740;
  --gold-2: #E3A92B;
  --gold-soft: rgba(255, 199, 64, 0.14);
  --crimson: #C8102E;
  --crimson-soft: rgba(200, 16, 46, 0.14);
  --line: rgba(255, 199, 64, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --wrap: 1120px;
  --read: 760px;
  --gutter: 16px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-latin: "Avenir Next", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--navy);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 199, 64, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(200, 16, 46, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd979; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 32, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-family: var(--font-latin); font-weight: 800; font-style: italic; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
@media (max-width: 439px) { .brand span { display: none; } }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--body); text-decoration: none; font-size: 13.5px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.nav a:hover { border-color: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold); border-color: var(--line); background: var(--gold-soft); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92svh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.55) 0%, rgba(11, 16, 32, 0.05) 28%, rgba(11, 16, 32, 0.35) 55%, rgba(11, 16, 32, 0.92) 82%, var(--navy) 100%),
    radial-gradient(60% 50% at 50% 70%, rgba(11, 16, 32, 0.0), rgba(11, 16, 32, 0.35));
}
.hero-inner { width: 100%; padding: 120px var(--gutter) 56px; text-align: center; }
.hero-logo { width: min(560px, 88vw); margin: 0 auto; mix-blend-mode: lighten; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.55)); }
.hero-tag {
  margin: 10px auto 0; color: var(--ink); font-size: clamp(20px, 4.6vw, 30px); font-weight: 700; letter-spacing: 0.12em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero-sub { margin: 6px auto 0; color: var(--body); font-size: clamp(13.5px, 3.4vw, 16px); letter-spacing: 0.14em; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-width: 200px; height: 56px; padding: 0 20px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 12px; text-decoration: none;
  font-family: var(--font-latin);
}
.store-badge svg { width: 22px; height: 26px; flex: none; opacity: 0.9; }
.store-badge small { display: block; font-size: 10.5px; letter-spacing: 0.06em; line-height: 1.1; opacity: 0.8; }
.store-badge b { display: block; font-size: 19px; letter-spacing: 0.01em; line-height: 1.15; font-weight: 600; }
.store-badge[aria-disabled="true"] { cursor: default; }

.age {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(200, 16, 46, 0.7); background: rgba(200, 16, 46, 0.18); color: #ffd6dc; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
}
.notice-line { margin-top: 18px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.eyebrow { font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: 0.32em; color: var(--gold); text-transform: uppercase; }
.section h2 { margin: 6px 0 10px; color: var(--ink); font-size: clamp(22px, 5vw, 32px); line-height: 1.4; letter-spacing: 0.06em; }
.lead { color: var(--body); max-width: 620px; margin: 0; }

.features { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 199, 64, 0));
}
.card .num { font-family: var(--font-latin); font-style: italic; font-weight: 800; font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.card h3 { margin: 6px 0 8px; color: var(--ink); font-size: 19px; letter-spacing: 0.06em; }
.card p { margin: 0; font-size: 14.5px; }
.card .en { font-family: var(--font-latin); font-weight: 800; font-style: italic; font-size: 28px; color: var(--ink); letter-spacing: 0.04em; line-height: 1.1; }

.fair { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fair { grid-template-columns: 1fr 1fr; } }
.fair li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line-2); font-size: 14.5px;
}
.fair { padding: 0; }
.fair .mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold); font-size: 14px; font-weight: 800;
}
.fair b { display: block; color: var(--ink); font-size: 15px; }

.band {
  margin-top: 32px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(200, 16, 46, 0.45);
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.16), rgba(200, 16, 46, 0.04)); color: #ffe3e7; font-size: 14px;
}
.band strong { color: #fff; }

/* ---------- legal / document pages ---------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); position: relative; }
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 199, 64, 0) 60%);
}
.page-head h1 { margin: 8px 0 0; color: var(--ink); font-size: clamp(24px, 6vw, 36px); line-height: 1.35; letter-spacing: 0.06em; }
.page-head .meta { margin-top: 10px; color: var(--muted); font-size: 13px; }

.doc { padding: 28px 0 80px; }
.doc > :first-child { margin-top: 0; }
.doc h2 {
  margin: 56px 0 14px; padding-top: 4px; color: var(--ink); font-size: clamp(19px, 4.6vw, 23px); line-height: 1.5; letter-spacing: 0.05em;
  scroll-margin-top: 76px;
}
.doc h2::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 14px; background: var(--gold); border-radius: 2px; }
.doc h3 {
  margin: 34px 0 10px; padding-left: 12px; border-left: 3px solid var(--gold); color: var(--ink); font-size: 16.5px; line-height: 1.55; letter-spacing: 0.04em;
  scroll-margin-top: 76px;
}
.doc p { margin: 0 0 14px; }
.doc ol, .doc ul { margin: 0 0 16px; padding-left: 1.6em; }
.doc li { margin: 6px 0; padding-left: 2px; }
.doc li::marker { color: var(--gold-2); font-weight: 700; }
.doc ul ul, .doc ol ul { margin: 8px 0 6px; }
.doc hr { border: 0; height: 1px; background: var(--line); margin: 48px 0 24px; }

.draft {
  margin: 0 0 28px; padding: 16px 18px; border-radius: 12px;
  background: var(--crimson-soft); border: 1px solid rgba(200, 16, 46, 0.5); color: #ffdfe4; font-size: 14px; line-height: 1.75;
}
.draft p { margin: 0; }
.draft strong { color: #fff; display: inline-block; padding: 1px 8px; margin-right: 6px; border-radius: 4px; background: var(--crimson); font-size: 12.5px; letter-spacing: 0.06em; }

mark.ph {
  background: var(--gold-soft); color: var(--gold); border: 1px dashed rgba(255, 199, 64, 0.55);
  padding: 0 4px; border-radius: 4px; white-space: normal;
}

.table-wrap { margin: 8px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc thead th { background: rgba(255, 199, 64, 0.07); color: var(--gold); font-size: 12.5px; letter-spacing: 0.06em; }
@media (max-width: 599px) { .doc th, .doc td { padding: 10px 10px; } }
.doc tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.doc td:first-child { color: var(--ink); font-weight: 600; }
.doc td { word-break: normal; overflow-wrap: anywhere; }
.doc .table-wide table { min-width: 640px; }
/* two-column key/value tables stack on phones */
@media (max-width: 599px) {
  .doc .kv table, .doc .kv tbody, .doc .kv tr, .doc .kv td { display: block; width: 100%; }
  .doc .kv thead { display: none; }
  .doc .kv tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .doc .kv tr:last-child { border-bottom: 0; }
  .doc .kv td { padding: 0; border: 0; background: none !important; }
  .doc .kv td:first-child { color: var(--gold); font-size: 12.5px; letter-spacing: 0.06em; margin-bottom: 2px; }
}

.toc {
  margin: 0 0 8px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line-2);
}
.toc summary { cursor: pointer; color: var(--ink); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; }
.toc ol { margin: 12px 0 0; padding-left: 0; list-style: none; columns: 1; font-size: 14px; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--gold); }

/* ---------- support ---------- */
.contact-card {
  margin: 8px 0 32px; padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 199, 64, 0.08), rgba(255, 255, 255, 0.015) 60%);
}
.contact-card h2 { margin-top: 0 !important; }
.contact-card h2::before { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd463, var(--gold-2)); color: #1a1406; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; font-size: 15px;
  box-shadow: 0 6px 20px rgba(255, 199, 64, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn:hover { color: #1a1406; filter: brightness(1.05); }
.checklist { margin: 14px 0 0; padding-left: 1.4em; font-size: 14.5px; }

.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 18px 4px; color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; font-family: var(--font-latin); font-style: italic; font-weight: 800; color: var(--gold); width: 20px; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gold); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 20px 36px; font-size: 14.5px; }
.faq .a p { margin: 0 0 10px; }
.faq .a ol, .faq .a ul { margin: 0 0 10px; padding-left: 1.4em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 13px; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-brand img { width: 180px; mix-blend-mode: lighten; }
.foot-links { display: grid; grid-template-columns: 1fr; gap: 6px 28px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 600px) { .foot-links { grid-template-columns: repeat(2, minmax(0, auto)); } }
@media (min-width: 900px) { .foot-links { grid-template-columns: repeat(3, minmax(0, auto)); } }
.nw { white-space: nowrap; }
.foot-links a { color: var(--body); text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { color: var(--gold); }
.foot-notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); line-height: 1.9; }
.foot-notes p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.contact-card .btn { margin: 4px 0 18px; }

/* long URLs in body text must wrap on phones */
.doc a, .doc li, .doc p { overflow-wrap: anywhere; }
