/* ==========================================================
   S1 NEO INVITATIONAL — design tokens follow the official
   WGP26-27 Season1 site (navy / gold / cream, Mincho + Gothic)
   ========================================================== */
:root {
  --navy: #241b47;
  --navy-2: #2f2560;
  --navy-3: #3b3073;
  --ink: #2b2438;
  --ink-sub: #5d5670;
  --gold: #a8862f;
  --gold-lt: #d4b563;
  --gold-pale: #f3e8c6;
  --gold-ink: #7a5f1c; /* gold for small text on light backgrounds (>= 4.5:1) */
  --cream: #f4efe2;
  --beige: #ddd3b8;
  --paper: #faf7ef;
  --white: #fff;
  --silver: #8d93a6;
  --alert: #b23a48;
  --alert-pale: #f8e4e6;
  --line: rgba(36, 27, 71, .14);
  --shadow: 0 10px 30px -12px rgba(36, 27, 71, .35);
  --radius: 6px;
  --f-serif: "Shippori Mincho", "Yu Mincho", serif;
  --f-sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --w: 1120px;
  --header-h: 64px;
  --ws-yellow: #e4c21c;
  --ws-green: #3f9a4a;
  --ws-red: #cf3a3a;
  --ws-blue: #2f6fc4;
  --ws-purple: #7b4bb3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.8;
  line-break: strict; overflow-wrap: anywhere; font-feature-settings: "palt" 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .section--navy :focus-visible, .hero :focus-visible, .p-dialog .pd-head :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-lt); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- sample notice ---------- */
.sample-bar { background: var(--alert); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; letter-spacing: .04em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--cream); border-bottom: 3px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand { align-items: center; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--gold-lt); align-self: center; }
.brand-main { font-family: var(--f-serif); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.brand-tag { font-size: 11px; border: 1px solid var(--gold); color: var(--gold-lt); padding: 1px 8px; letter-spacing: .08em; }
.gnav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.gnav::-webkit-scrollbar { display: none; }
.gnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0; }
.gnav a {
  display: grid; place-items: center; min-width: 108px; padding: 6px 14px; text-decoration: none;
  border: 1px solid rgba(212, 181, 99, .45); background: var(--navy-2); line-height: 1.3; text-align: center;
  transition: background .2s, color .2s;
}
.gnav a b { font-size: 14px; font-weight: 700; }
.gnav a small { font-size: 10px; letter-spacing: .1em; color: var(--gold-lt); }
.gnav a:hover { background: var(--navy-3); }
.gnav a[aria-current="page"], .gnav a.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.gnav a[aria-current="page"] small, .gnav a.is-active small { color: var(--navy); }
/* Brand + 4 nav tabs no longer fit on one row: stack them and give each tab
   an equal share of the width so no tab is ever pushed off-screen. */
@media (max-width: 980px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0; }
  .brand { padding-top: 10px; }
  .gnav { margin-left: 0; overflow: visible; }
  .gnav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .gnav a { min-width: 0; padding: 6px 4px; }
}
@media (max-width: 760px) {
  .brand { flex-wrap: wrap; row-gap: 2px; white-space: normal; }
  .brand-main { font-size: 20px; }
  .gnav ul { gap: 4px; }
  .gnav a { padding: 4px 2px; }
  .gnav a b { font-size: 13px; white-space: nowrap; }
  .gnav a small { font-size: 9px; letter-spacing: .06em; }
  /* a 2-row sticky header would eat too much of a phone screen */
  .site-header { position: static; }
  :root { --header-h: 0px; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-main { font-size: 17px; letter-spacing: .02em; }
}

/* ---------- section heading (official style: EN label + ◆ + JP title) ---------- */
.section { padding: 88px 0; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--beige { background: var(--beige); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { display: block; font-family: var(--f-serif); font-size: 13px; letter-spacing: .3em; color: var(--gold-ink); font-weight: 700; }
.section--navy .sec-head .en { color: var(--gold-lt); }
.sec-head h2 { font-family: var(--f-serif); font-weight: 800; font-size: clamp(26px, 4vw, 36px); margin: 4px 0 0; line-height: 1.4; }
.sec-head .dia { display: block; color: var(--gold); font-size: 12px; margin-top: 10px; }
.sec-head .dia::before, .sec-head .dia::after { content: ""; display: inline-block; width: 48px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: .6; }
.section--navy .sec-head h2 { color: var(--cream); }
.lead { max-width: 720px; margin: 0 auto 40px; text-align: center; font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 28px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--gold); cursor: pointer; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-lt); }
.btn--ghost { background: transparent; color: var(--cream); }
.btn--ghost:hover { background: rgba(212, 181, 99, .15); }
.btn--navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-3); }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .arrow::after { content: "→"; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--beige); padding: 40px 0; font-size: 13px; border-top: 3px solid var(--gold); }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--gold-lt); }

/* ---------- shared bits ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 10px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; line-height: 1.6; }
.colors { display: inline-flex; gap: 3px; }
.colors i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.c-yellow { background: var(--ws-yellow); } .c-green { background: var(--ws-green); } .c-red { background: var(--ws-red); }
.c-blue { background: var(--ws-blue); } .c-purple { background: var(--ws-purple); }
.rank { display: inline-grid; place-items: center; font-family: var(--f-serif); font-weight: 800; font-size: 12px; padding: 2px 10px; letter-spacing: .06em; }
.rank--1 { background: linear-gradient(135deg, #c9a94f, #f1dc97 50%, #a8862f); color: var(--navy); }
.rank--2 { background: linear-gradient(135deg, #9da3b4, #e3e6ee 50%, #7d8396); color: var(--navy); }
.muted { color: var(--ink-sub); }
.loading, .error-box { text-align: center; padding: 32px; color: var(--ink-sub); }
.error-box { color: var(--alert); background: var(--alert-pale); border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
