:root {
  color-scheme: dark;
  --bg: #11151c;
  --panel: #191f29;
  --panel-raised: #202834;
  --line: #35404e;
  --muted: #a2adba;
  --text: #f3f5f8;
  --accent: #e8ff62;
  --accent-dark: #c8dd43;
  --blue: #9dc6ff;
  --mono: 'Cascadia Mono', 'Courier New', monospace;
  --sans: 'Yu Gothic UI', 'Noto Sans JP', Meiryo, sans-serif;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
a { color: inherit; }
button, input { font: inherit; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: auto; padding: 22px 28px; }
.site-header { border-bottom: 1px solid rgba(255,255,255,.09); }
.wordmark { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .11em; text-decoration: none; }
.wordmark span { color: var(--accent); margin-left: 9px; }
.edition, .eyebrow, .step-label, .site-footer, .scope-note, .date-month { font-family: var(--mono); letter-spacing: .09em; }
.edition { color: var(--muted); font-size: 10px; }
main { max-width: 1120px; margin: auto; padding: 0 28px 56px; }
.hero { padding: 62px 0 39px; max-width: 770px; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 10px; line-height: 1.5; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 17px; font-size: clamp(36px, 6vw, 64px); line-height: 1.12; letter-spacing: -.055em; font-weight: 700; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 600px; margin-bottom: 19px; color: #c1c9d2; font-size: 15px; line-height: 1.85; }
.scope-note { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; color: #d4dae1; font-size: 10px; letter-spacing: .025em; }
.scope-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.finder { padding: 28px clamp(18px, 4vw, 40px) 22px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.step-label { padding-top: 4px; color: var(--accent); font-size: 12px; }
.step-label span { color: var(--muted); }
.form-group { margin: 0; padding: 21px 0 24px; border: 0; border-top: 1px solid rgba(255,255,255,.1); }
.form-group legend { width: 100%; padding: 0 0 14px; font-size: 14px; font-weight: 600; }
.field-number { margin-right: 10px; color: var(--accent); font-family: var(--mono); font-size: 11px; }
.field-hint { padding-left: 7px; color: var(--muted); font-size: 11px; font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.budget-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.priority-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.focus-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.price-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; border: 1px solid #424d5b; border-radius: 4px; color: #d8dee6; text-align: center; font-size: 12px; line-height: 1.45; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.choice input:checked + span { border-color: var(--accent); background: rgba(232,255,98,.09); color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid white; outline-offset: 2px; }
.choice:hover span { border-color: #8792a0; }
.button { min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { background: var(--accent); color: #141810; }
.button-primary:hover { background: var(--accent-dark); }
.start-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 5px; padding-inline: 17px 15px; }
.start-button span { font-size: 17px; }
.form-footnote, .results-footnote { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.results-section { padding-top: 53px; scroll-margin-top: 20px; overflow-x: clip; }
.results-heading { margin-bottom: 9px; }
.results-summary { margin: 0 0 18px; color: #c3ccd6; font-size: 12px; line-height: 1.8; }
.results-summary p { margin: 0 0 12px; color: var(--text); font-size: 15px; font-weight: 700; }
.expand-budget { max-width: 320px; }
.results-stale-note { margin: 0 0 8px; color: var(--accent); font-size: 12px; }
.recalculate-button { width: 100%; margin: 0 0 16px; }
.seat-list { display: grid; gap: 12px; }
.seat-card { position: relative; display: grid; grid-template-columns: 66px minmax(0,1fr) minmax(165px, 205px); gap: 18px; align-items: start; padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.seat-card:first-child { border-color: rgba(232,255,98,.67); }
.rank { display: flex; flex-direction: column; gap: 5px; color: var(--accent); font-family: var(--mono); font-size: 23px; line-height: 1; }
.rank small { color: var(--muted); font-family: var(--sans); font-size: 9px; letter-spacing: .04em; }
.seat-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 6px; }
.seat-title-row h3 { margin: 0; font-size: 21px; }
.seat-location { color: var(--blue); font-family: var(--mono); font-size: 10px; }
.seat-description { margin: 0 0 10px; color: #c3ccd6; font-size: 11px; line-height: 1.7; }
.seat-benefit-label { display: block; margin: 10px 0 3px; color: var(--muted); font-size: 9px; }
.match-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.match-reasons-label { margin: 10px 0 5px; color: var(--muted); font-size: 9px; }
.match-reasons li { padding: 5px 7px; border: 1px solid #35404e; border-radius: 3px; color: #d7dce2; font-size: 9px; }
.seat-side { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.seat-price-label { margin: 0; color: var(--muted); font-size: 9px; }
.seat-price { min-width: 0; max-width: 100%; margin: -6px 0 1px; font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.035em; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.seat-price small { color: var(--muted); font-family: var(--sans); font-size: 9px; letter-spacing: 0; }
.button-secondary { display: flex; align-items: center; justify-content: space-between; width: 100%; border-color: #536070; background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--accent); }
.toggle-icon { color: var(--accent); font-family: var(--mono); font-size: 17px; }
.button-ticket { min-height: 40px; padding: 9px; background: #e8ff62; color: #141810; text-align: center; text-decoration: none; font-size: 10px; font-weight: 700; }
.button-ticket:hover { background: var(--accent-dark); }
.button-detail { min-height: 33px; padding: 6px 8px; border: 1px solid #46515f; border-radius: 4px; color: #d5dce4; text-align: center; text-decoration: none; font-size: 9px; }
.button-detail:hover { border-color: #a6b4c4; }
.button-alt { color: #bac6d4; text-align: center; font-size: 9px; line-height: 1.5; text-decoration: none; }
.button-alt:hover { color: var(--accent); text-decoration: underline; }
.compare-wrap { margin-top: 16px; overflow-x: clip; }
.compare-wrap h3 { margin: 0 0 10px; font-size: 18px; }
.comparison-scroll-hint { display: none; margin: 0 0 7px; color: var(--muted); font-size: 10px; }
.comparison-legend { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.comparison-legend strong { color: var(--accent); font-family: var(--mono); }
.comparison-panel { max-width: 100%; margin-top: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #596576 var(--panel); border: 1px solid var(--line); border-radius: 6px; background: var(--panel); -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: auto; font-size: 12px; }
.comparison-table th, .comparison-table td { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.09); text-align: left; vertical-align: top; line-height: 1.6; }
.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) { min-width: 142px; }
.comparison-table thead th { color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 400; }
.comparison-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 145px; background: var(--panel); }
.comparison-table thead th:first-child { z-index: 3; }
.comparison-table tbody th { width: 145px; color: var(--muted); font-weight: 500; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.comparison-rating { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.rating-best { color: var(--accent); }
.rating-good { color: #d7e2ef; }
.rating-some { color: var(--muted); }
.event-note { display: flex; align-items: center; gap: 22px; margin-top: 47px; padding: 20px 24px; }
.event-date { display: flex; align-items: baseline; gap: 7px; min-width: 107px; }
.date-day { font-family: var(--mono); font-size: 25px; letter-spacing: -.1em; }
.date-month { color: var(--accent); font-size: 10px; }
.date-month b { display: block; margin-top: 3px; font-size: 9px; font-weight: 400; }
.event-details { flex: 1; }
.event-details .eyebrow { margin-bottom: 6px; font-size: 9px; }
.event-details p:not(.eyebrow) { margin: 0; font-size: 12px; }
.event-details .muted { margin-top: 4px !important; color: var(--muted); font-size: 10px !important; }
.text-link { color: var(--accent); font-size: 10px; text-decoration: none; white-space: nowrap; }
.data-note { max-width: 800px; margin: 22px auto 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.data-note p { margin-bottom: 6px; }
.data-note strong { color: #e0e5ea; }
.site-footer { border-top: 1px solid rgba(255,255,255,.09); color: var(--muted); font-size: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .text-link:hover { text-decoration: underline; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .budget-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .seat-card { grid-template-columns: 47px minmax(0,1fr); gap: 12px; padding: 17px; }
  .seat-side { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .seat-price-label, .seat-price { grid-column: 1 / -1; }
  .seat-card .button-detail, .seat-card .button-ticket { min-height: 38px; display: flex; align-items: center; justify-content: center; }
  .seat-card .button-alt { grid-column: 1 / -1; }
  .event-note { flex-wrap: wrap; gap: 13px; }
  .event-details { min-width: 190px; }
  .event-note .text-link { margin-left: auto; }
}

@media (max-width: 480px) {
  .site-header, .site-footer { padding: 17px 18px; }
  main { padding: 0 18px 42px; }
  .hero { padding: 43px 0 28px; }
  .hero-copy { font-size: 13px; }
  .scope-note { font-size: 9px; }
  .finder { padding: 21px 16px 18px; }
  h2 { font-size: 21px; }
  .choice-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .priority-grid, .focus-grid, .price-grid { grid-template-columns: 1fr; }
  .comparison-scroll-hint { display: flex; align-items: center; justify-content: space-between; }
  .comparison-table { min-width: max-content; }
  .comparison-table th:not(:first-child), .comparison-table td:not(:first-child) { width: 142px; min-width: 142px; max-width: 142px; }
  .choice span { min-height: 43px; }
  .field-hint { display: block; margin: 5px 0 0 27px; padding: 0; }
  .seat-card { grid-template-columns: 35px minmax(0,1fr); gap: 9px; padding: 14px 12px; }
  .rank { font-size: 18px; }
  .seat-title-row h3 { font-size: 18px; }
  .seat-price { font-size: 15px; }
  .event-note { padding: 17px; }
  .event-date { min-width: 85px; }
  .date-day { font-size: 21px; }
  .event-details { min-width: 160px; }
  .site-footer { align-items: flex-start; gap: 14px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
