/* ============================================================
   KEK 一般公開 2026 (V5) — design tokens & base
   Themeable via body.t-b1 / t-b2 / t-c1 / t-c2 (see themes.css)
   ============================================================ */
:root {
  /* KEK category colors */
  --c-mi:     #E0007A;   /* 見る   公開施設 */
  --c-gaku:   #0075C2;   /* 学ぶ   ブース */
  --c-tsuku:  #00A1A7;   /* 作る   体験 */
  --c-hanasu: #F18D00;   /* 話す   講演 */

  /* banner-derived palette */
  --bn-pink:    #f2799f;
  --bn-pink-dk: #d84f7e;
  --bn-cream:   #fdf3e3;
  --bn-teal:    #1f9e94;
  --bn-teal-dk: #0f6e68;
  --bn-navy:    #2b4a8f;

  --kek-blue:    #0061B0;
  --kek-blue-dk: #004a87;

  /* neutrals (light default; themes override) */
  --bg:        #f4f5f7;
  --surface:   #ffffff;
  --surface-2: #fafbfc;
  --line:      #e4e7ec;
  --line-2:    #d3d8e0;
  --ink:       #1a2230;
  --ink-2:     #44505f;
  --ink-3:     #6b7685;
  --ink-soft:  #9aa4b2;
  --accent:    var(--kek-blue);
  --accent-ink:#ffffff;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,30,50,.06), 0 2px 6px rgba(20,30,50,.05);
  --shadow:    0 4px 14px rgba(20,30,50,.08), 0 1px 3px rgba(20,30,50,.06);
  --shadow-lg: 0 18px 50px rgba(20,30,50,.18), 0 4px 12px rgba(20,30,50,.08);

  --font-disp: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(section, header, div)[id] { scroll-margin-top: calc(var(--nav-h) + 10px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-disp); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--c-mi); color: #fff; }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* category helpers */
.cat-shisetsu { --cat: var(--c-mi);     --cat-soft: #fdeaf3; }
.cat-booth    { --cat: var(--c-gaku);   --cat-soft: #e6f1fa; }
.cat-taiken   { --cat: var(--c-tsuku);  --cat-soft: #e0f4f4; }
.cat-talk     { --cat: var(--c-hanasu); --cat-soft: #fdf0e0; }

/* section scaffolding */
.section { padding: 76px 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px; display: block;
}
.section-title { font-size: clamp(26px, 3.8vw, 42px); letter-spacing: -.01em; }
.section-sub { color: var(--ink-2); font-size: 16px; margin-top: 12px; max-width: 62ch; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--cat-soft, #eef); color: var(--cat, var(--ink));
}

.scroll-y { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroll-y::-webkit-scrollbar { width: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
