/* =========================================================
   THERMIDOR — Common styles
   Shared by every page
   ========================================================= */

:root {
  --ink: #11110f;
  --ink-2: #1a1916;
  --paper: #c9bfa8;
  --paper-light: #e0d8c6;
  --muted: #918d84;
  --red: #741f1c;
  --blue: #173b55;
  --flag-white: #c9bfa8;
  --line: rgba(224, 216, 198, .45);
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --story-progress: 0;
  --story-danger: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-light);
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic",
    "Noto Sans JP", sans-serif;
  line-height: 1.9;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- Typography ---------- */

.hero-title,
.story-year,
.information h2,
.ticket-panel h3,
.footer-title,
.section-kicker {
  font-family:
    "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP", serif;
}

.brand-en,
.hero-title__en,
.story-label span {
  font-family:
    "Bodoni 72", "Didot", "Bodoni MT",
    "Times New Roman", serif;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    max(12px, env(safe-area-inset-top))
    18px
    0;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 15, .80),
    rgba(17, 17, 15, 0)
  );
  opacity: 0;
  transition: opacity .35s ease;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.brand,
.menu-button {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.brand-en {
  font-size: .76rem;
  letter-spacing: .18em;
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: var(--paper-light);
  transition: transform .35s ease, top .35s ease;
}

.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 26px; }

.menu-button.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.menu-button.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Full-screen menu ---------- */

.global-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(12, 12, 11, .98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.global-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.global-menu__inner {
  min-height: 100svh;
  padding:
    calc(var(--header-h) + 42px)
    8vw
    calc(42px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.global-menu__title {
  margin: 0 0 30px;
  color: var(--muted);
  letter-spacing: .22em;
  font-size: .68rem;
}

.global-menu a {
  display: block;
  padding: 12px 0;
  font-family:
    "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 7vw, 2.2rem);
  letter-spacing: .06em;
}

.global-menu__divider {
  margin: 20px 0 10px;
  border-top: 1px solid rgba(224, 216, 198, .16);
}

.global-menu a.global-menu__secondary {
  font-size: 1rem;
  color: var(--muted);
}

.global-menu a.global-menu__ticket {
  margin-top: auto;
  border: 1px solid rgba(224, 216, 198, .65);
  text-align: center;
  font-size: 1rem;
  padding: 14px 18px;
}

/* ---------- Shared ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  padding: 11px 24px;
  font-size: .9rem;
  letter-spacing: .08em;
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.button:active {
  transform: translateY(1px);
}


/* ---------- Secondary page ---------- */

.subpage {
  min-height: 100svh;
  padding:
    calc(var(--header-h) + 56px)
    22px
    80px;
  background:
    radial-gradient(circle at 72% 18%, rgba(116, 31, 28, .10), transparent 32%),
    var(--ink);
}

.subpage-inner {
  width: min(100%, 820px);
  margin: 0 auto;
}

.subpage h1 {
  margin: 0;
  font-family:
    "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 10vw, 3.8rem);
  font-weight: 500;
  letter-spacing: .06em;
}

.subpage .en {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "Times New Roman", serif;
  font-size: .7rem;
  letter-spacing: .2em;
}

.subpage .lead {
  margin: 46px 0 0;
  color: rgba(224, 216, 198, .78);
}

.subpage .placeholder-card {
  margin-top: 34px;
  border-top: 1px solid rgba(224, 216, 198, .2);
  border-bottom: 1px solid rgba(224, 216, 198, .2);
  padding: 28px 0;
}

.subpage .back {
  display: inline-block;
  margin-top: 38px;
  color: var(--muted);
  font-size: .82rem;
}



/* ---------- Shared desktop adjustments ---------- */

@media (min-width: 760px) {
  :root {
    --header-h: 76px;
  }

  .site-header {
    padding-left: 34px;
    padding-right: 34px;
  }

  .brand-en {
    font-size: .82rem;
  }

  .button:hover {
    background: var(--red);
    color: var(--paper-light);
    border-color: var(--red);
  }

  .global-menu__inner {
    width: min(100%, 900px);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  .global-menu a {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
}

/* ---------- Shared reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ---------- Compact mobile menu ---------- */
.global-menu {
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

@media (max-width: 759px) {
  .global-menu__inner {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: calc(20px + var(--safe-bottom));
  }

  .global-menu__inner > * {
    flex-shrink: 0;
  }

  .global-menu__title {
    margin-bottom: 12px;
  }

  .global-menu a {
    min-height: 44px;
    padding: 7px 0;
    font-size: clamp(1.125rem, 5vw, 1.375rem);
    line-height: 1.5;
  }

  .global-menu__divider {
    margin: 12px 0 6px;
  }

  .global-menu a.global-menu__secondary {
    margin-bottom: 12px;
  }

  .global-menu a.global-menu__ticket {
    padding: 12px 16px;
  }
}

/* =========================================================
   2026-09-11 Readability pass
   Improve legibility for a wider age range while preserving
   the established visual hierarchy and compact mobile menu.
   ========================================================= */

.brand-en { font-size: .82rem; }
.button { font-size: 1rem; }
.subpage .en { font-size: .78rem; }
.subpage .back { font-size: .9rem; }

@media (max-width: 759px) {
  .global-menu__title { font-size: .72rem; }
  .global-menu a.global-menu__secondary,
  .global-menu a.global-menu__ticket { font-size: 1rem; }
}


/* =========================================================
   2026-09-11 Readability refinement 2
   Brighter functional secondary text across all pages.
   Decorative watermarks / background numerals remain muted.
   ========================================================= */

:root {
  --muted: #aaa59b;
}

.subpage .en,
.subpage .back,
.global-menu__title {
  color: rgba(224,216,198,.72);
}

/* ---------- Privacy link ---------- */
.privacy-link {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: rgba(224, 216, 198, .72);
  font-size: .86rem;
  letter-spacing: .03em;
  text-decoration: underline;
  text-decoration-color: rgba(224, 216, 198, .28);
  text-underline-offset: .28em;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  color: var(--paper-light);
  text-decoration-color: currentColor;
}
