/* MOON EVENT — shared foundation (tokens, fonts, header, footer, buttons, legal prose).
   Page-specific styles live in site.css. Do not duplicate these rules elsewhere. */

@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("../fonts/Assistant.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #000;
  --bg-raised: #0d0d0d;
  --row: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --muted: #a9a9a9;
  --accent: #d8402a;      /* ember red: sold-out, alerts */
  --ok: #7fd08a;          /* available */
  /* Latin glyphs use Cinzel / Assistant; Japanese glyphs fall through to the device's
     Mincho (headings) and Gothic (body) system fonts — no heavy CJK webfont to download. */
  --font-display: "Cinzel", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-body: "Assistant", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
:lang(ja) body { line-height: 1.75; line-break: strict; overflow-wrap: anywhere; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4, :lang(ja) .display { line-height: 1.35; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: gray; color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; margin: 0 0 0.5em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
/* The small line under the brand carries the required "チケットリセール" descriptor: keep it legible. */
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; line-height: 1.5; color: #d6d6d6; text-transform: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav a { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: #fff; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: #000; font-family: var(--font-body); font-weight: 800; font-size: 12.5px; letter-spacing: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; font: 700 13px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; min-height: 44px; min-width: 44px; padding: 9px 14px; white-space: nowrap; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 13px 26px; border: 1px solid #fff; background: #fff; color: #000; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn:hover { background: transparent; color: #fff; }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: #fff; color: #000; }
.btn[disabled], .btn.is-disabled { border-color: var(--line); background: transparent; color: var(--muted); cursor: not-allowed; pointer-events: none; }

/* Status badges */
.badge { display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid currentColor; }
.badge--ok { color: var(--ok); }
.badge--soldout { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 30px 0 34px; font-size: 14.5px; color: var(--muted); text-align: center; }
.policy-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.policy-links a { display: inline-block; padding: 11px 0; text-decoration: none; white-space: nowrap; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .disclaimer { margin: 14px auto 0; max-width: 760px; font-size: 12.5px; line-height: 1.7; text-wrap: balance; }
@media (min-width: 761px) { .nav a { padding-block: 10px; white-space: nowrap; } }

/* Legal / policy pages */
.legal { max-width: 820px; margin-inline: auto; padding: 56px var(--gutter) 0; }
.legal h1 { font-size: clamp(26px, 4.4vw, 40px); }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 18px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 15px; margin-top: 24px; }
.legal p, .legal li { color: #dcdcdc; }
.legal a { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { font-weight: 700; color: #fff; background: var(--row); width: 34%; }
.legal .todo { background: rgba(216, 64, 42, 0.18); border: 1px dashed var(--accent); padding: 1px 6px; color: #fff; font-weight: 600; }
.legal .callout { background: var(--row); border-left: 3px solid #fff; padding: 14px 18px; margin: 20px 0; }
