/* ============================================================
   KINGMAKER 23:23 — Design System
   Black × Gold. Imperial. Ritual. Restraint.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,700;0,6..96,900;1,6..96,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;700&family=Noto+Serif+JP:wght@400;500;700;900&display=swap');

:root {
  /* Core — INVERTED (white theme) */
  --paper: #FAF7F0;        /* warm off-white base */
  --paper-2: #F2EBDA;      /* secondary surface */
  --ink: #0F0E0C;          /* near-black for text */
  --ink-2: #2A251D;        /* mid-dark */
  --ink-3: #4A4234;        /* darker mid */

  /* Aliases kept for backward compatibility (so existing var(--black), var(--bone) still work) */
  --black: var(--paper);   /* "background" = now white */
  --bone: var(--ink);      /* "main text" = now dark */

  --line: #C9BC9A;         /* warm beige line */
  --line-2: #B5A57F;

  /* Gold spectrum — slightly deeper for contrast on white */
  --gold: #B8862D;         /* deeper gold for white-bg readability */
  --gold-bright: #D4A547;
  --gold-deep: #7A5A18;
  --gold-edge: #E8C76B;
  --gold-shadow: #4A3812;

  /* Text */
  --white: #FFFFFF;
  --ash: #5C5240;          /* mid muted (was light muted on dark) */
  --dust: #8C8270;         /* lighter muted */
  --shadow: #B8AC95;

  /* Functional */
  --crimson: #8B1A1A;
  --jade: #1F4D3A;

  /* Type */
  --f-display: 'Cinzel', 'Noto Serif JP', serif;
  --f-editorial: 'Bodoni Moda', 'Noto Serif JP', serif;
  --f-body: 'DM Sans', 'Noto Serif JP', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;
  --f-jp: 'Noto Serif JP', serif;

  /* Rhythm */
  --pad: clamp(20px, 4vw, 64px);
  --rule: 1px solid rgba(184, 134, 45, 0.25);
  --rule-bright: 1px solid rgba(184, 134, 45, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  overflow-x: clip;
  width: 100%;
  position: relative;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184, 134, 45, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(184, 134, 45, 0.05), transparent 60%);
  min-height: 100vh;
}

/* Subtle paper-grain overlay (now darker noise on light bg) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* ============== TYPOGRAPHY ============== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.42em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.eyebrow.left::before { display: none; }
.eyebrow.right::after { display: none; }

.editorial {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 400;
}

.tabular { font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: var(--gold); color: var(--black); }

/* ============== BUTTONS ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.btn:hover {
  background: var(--gold);
  color: var(--ink);
  letter-spacing: 0.4em;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--ink);
  border: 1px solid var(--gold-edge);
  box-shadow: 0 0 0 1px rgba(15, 14, 12, 0.3) inset, 0 8px 28px rgba(184, 134, 45, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold-edge) 0%, var(--gold-bright) 60%, var(--gold) 100%);
  letter-spacing: 0.4em;
  box-shadow: 0 0 0 1px rgba(15, 14, 12, 0.4) inset, 0 12px 40px rgba(184, 134, 45, 0.4);
}
.btn-ghost {
  border-color: var(--ink-3);
  color: var(--ink-2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-deep);
}

/* ============== NAV ============== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: var(--rule);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--gold);
}
.nav-brand img { width: 32px; height: 32px; }
.nav-brand .glyph {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.1em;
  margin-left: 6px;
  opacity: 0.7;
}
/* ============================================================
   NAV MENU — Chirashi (flyer) layout (v20260514c)
   Full-screen drawer: left column = sectioned index of the site,
   right column = poster art panel. Newspaper/zine typography.
   ============================================================ */
.nav-menu {
  display: block !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(184,134,45,0.06), transparent 70%),
    radial-gradient(ellipse 60% 80% at 70% 80%, rgba(184,134,45,0.04), transparent 70%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 90;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-menu.open { transform: translateY(0); }

/* Top stripe — chirashi header bar */
.nav-stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 72px var(--pad) 28px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(184, 134, 45, 0.18);
  position: relative;
}
.nav-stripe-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Two-column chirashi grid */
.nav-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 36px var(--pad) 64px;
  }
}

/* Section blocks (LEFT) */
.nav-col-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.nav-block { padding: 0; }
.nav-block-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 134, 45, 0.22);
}
.nav-block-num {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-block-where {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--dust);
  text-transform: uppercase;
}

/* List rows — newspaper style */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-list li {
  width: auto;
  max-width: none;
  text-align: left;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px dashed rgba(184, 134, 45, 0.14);
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: normal;
  font-family: inherit;
  font-size: inherit;
}
.nav-list a:hover {
  background: rgba(184, 134, 45, 0.04);
  padding-left: 18px;
  border-bottom-color: var(--gold);
}
.nav-list a .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
}
.nav-list a .t {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.nav-list a .jp {
  font-family: var(--f-jp);
  font-size: 12px;
  color: var(--dust);
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .nav-list a { grid-template-columns: 32px 1fr; }
  .nav-list a .jp { grid-column: 1 / -1; text-align: left; padding-left: 48px; margin-top: 4px; }
}

/* Primary CTA — Ring the Bell */
.nav-cta-row {
  margin-top: 28px;
}
.nav-cta-primary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--black);
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(184, 134, 45, 0.18);
}
.nav-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(184, 134, 45, 0.32);
}
.nav-cta-primary::after {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.nav-cta-primary:hover::after { transform: translateX(100%); }
.nav-cta-primary .nav-cta-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: rgba(8, 7, 6, 0.7);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.nav-cta-primary .nav-cta-text {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.nav-cta-primary .nav-cta-arrow {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--black);
  font-weight: 300;
  transition: transform 0.3s ease;
}
.nav-cta-primary:hover .nav-cta-arrow { transform: translateX(6px); }

/* Foot links — small legal nav */
.nav-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ash);
  text-transform: uppercase;
}
.nav-foot a {
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: all 0.2s ease;
}
.nav-foot a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-foot span {
  color: var(--dust);
  opacity: 0.5;
}

/* RIGHT column: chirashi mini-poster */
.nav-col-art {
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .nav-col-art { position: relative; top: auto; }
}
.nav-poster {
  background: var(--black);
  color: var(--bone);
  padding: 32px 28px 28px;
  border: 1px solid rgba(184, 134, 45, 0.3);
  position: relative;
  box-shadow:
    0 1px 0 var(--gold),
    0 20px 60px rgba(0, 0, 0, 0.4);
}
.nav-poster::before, .nav-poster::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.nav-poster::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.nav-poster::after  { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.nav-poster-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 134, 45, 0.3);
}
.nav-poster-big {
  font-family: var(--f-display);
  font-size: clamp(60px, 8vw, 92px);
  font-weight: 800;
  color: var(--gold-bright);
  text-align: center;
  line-height: 1;
  margin: 24px 0 4px;
  letter-spacing: -0.02em;
}
.nav-poster-big .colon { color: var(--gold-deep); margin: 0 -0.08em; }
.nav-poster-sub {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--bone);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.nav-poster-line {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 18px;
}
.nav-poster-text {
  font-family: var(--f-editorial);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ash);
  text-align: center;
  margin-bottom: 22px;
}
.nav-poster-text em {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 500;
}
.nav-poster-text span {
  display: block;
  margin-top: 6px;
  color: var(--bone);
  font-style: italic;
}
.nav-poster-quote {
  font-family: var(--f-editorial);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gold-deep);
  text-align: center;
  font-style: italic;
  padding: 14px 0;
  border-top: 1px solid rgba(184, 134, 45, 0.2);
  border-bottom: 1px solid rgba(184, 134, 45, 0.2);
  margin-bottom: 16px;
}
.nav-poster-quote em {
  color: var(--gold-bright);
  font-style: italic;
}
.nav-poster-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--dust);
  text-transform: uppercase;
}

/* Old element resets — neutralize legacy classes */
.nav-menu li { width: auto; max-width: none; text-align: left; list-style: none; }
.nav-menu li.nav-menu-cta { display: none; }   /* CTA replaced by .nav-cta-primary */

/* Begin button next to lang picker — hidden at all sizes (Begin lives inside hamburger drawer) */
.nav-cta { display: none; }

/* Hamburger toggle — shown at all viewport sizes */
.nav-toggle {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 11px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  border-radius: 2px;
  margin-left: 8px;
  transition: border-color 0.2s;
  position: relative;
  z-index: 100;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Below 900px, nav itself goes white instead of using backdrop-filter */
@media (max-width: 900px) {
  .nav {
    padding: 14px var(--pad);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 247, 240, 0.94);
  }
  .nav-brand { font-size: 12px; letter-spacing: 0.2em; gap: 10px; }
  .nav-brand .glyph { display: none; }
}

/* ============== LAYOUT ============== */

section {
  padding: clamp(80px, 12vh, 160px) var(--pad);
  position: relative;
  border-bottom: var(--rule);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.container-narrow { max-width: 840px; margin: 0 auto; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 80px;
  gap: 20px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
}
.section-head .lede {
  max-width: 580px;
  font-size: 15px;
  color: var(--ash);
  line-height: 1.7;
}

/* ============== ORNAMENTS ============== */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
  margin: 32px auto;
}
.ornament .line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament .dot { color: var(--gold); font-size: 8px; }

/* ============== CARDS ============== */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(242, 235, 218, 0.6));
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 1px 3px rgba(15, 14, 12, 0.04);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 134, 45, 0.05), transparent 40%);
  pointer-events: none;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: 0 8px 24px rgba(15, 14, 12, 0.08);
}

.card-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--gold);
}
.card-corner.tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.card-corner.tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.card-corner.bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.card-corner.br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

/* ============== PILLS / CHIPS ============== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chip-dim {
  border-color: var(--shadow);
  color: var(--ash);
}
.chip .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ============== UTILITIES ============== */

.center { text-align: center; }
.hidden { display: none !important; }
.spacer-sm { height: 24px; }
.spacer-md { height: 56px; }
.spacer-lg { height: 96px; }

/* ============== ANIMATIONS ============== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slowBreathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.fade-up { animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fade-up.d1 { animation-delay: 0.15s; }
.fade-up.d2 { animation-delay: 0.3s; }
.fade-up.d3 { animation-delay: 0.45s; }
.fade-up.d4 { animation-delay: 0.6s; }
.fade-up.d5 { animation-delay: 0.75s; }

/* ============== FOOTER ============== */

footer {
  padding: 80px var(--pad) 40px;
  background: var(--black);
  border-top: var(--rule);
}
footer .foot-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: var(--rule);
}
footer h5 {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer li a {
  font-size: 13px;
  color: var(--ash);
  transition: color 0.3s;
}
footer li a:hover { color: var(--gold); }
footer .foot-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dust);
  letter-spacing: 0.08em;
}
footer .foot-tagline {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 14px;
  color: var(--ash);
  margin-top: 12px;
  max-width: 320px;
}
@media (max-width: 800px) {
  footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ============== SCROLLBAR ============== */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ============== LANGUAGE PICKER (dropdown w/ search) ============== */

/* Legacy 4-button layout neutralized — JS replaces innerHTML on load. */
.lang-picker {
  display: flex;
  align-items: center;
  margin-right: 16px;
  padding: 0;
  border: none;
  background: transparent;
}
.lang-picker.lang-picker-v2 { padding: 0; }

/* Trigger button */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-width: 70px;
  white-space: nowrap;
  flex-shrink: 0;
  justify-content: space-between;
}
.lang-trigger:hover { border-color: var(--gold); color: var(--gold-deep); }
.lang-trigger[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-deep); background: rgba(255,255,255,0.95); }
.lang-trigger-label {
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--f-jp);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.lang-trigger-arrow {
  font-size: 9px;
  color: var(--gold-deep);
  line-height: 1;
}

/* Panel (full-screen on mobile, modal-ish on desktop) */
.lang-panel {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 14, 12, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding: 80px 20px 20px;
}
.lang-panel.open { display: flex; }
body.lang-panel-open { overflow: hidden; }

.lang-panel::after {
  content: '';
  display: block;
}

.lang-panel-head {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-search {
  flex: 1;
  font-family: var(--f-body);
  font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.lang-search:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,134,45,0.15), 0 12px 40px rgba(0,0,0,0.25); }
.lang-search::placeholder { color: var(--dust); }
.lang-panel-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.lang-panel-close:hover { border-color: var(--gold); color: var(--gold); }

/* Wrap the head + list into a centered column with width cap */
.lang-panel {
  flex-direction: column;
  align-items: center;
}

.lang-panel-list {
  width: 100%;
  max-width: 520px;
  max-height: 70vh;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
}
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
  font-family: var(--f-body);
}
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover { background: var(--paper-2); color: var(--gold-deep); }
.lang-opt.is-current {
  background: rgba(184, 134, 45, 0.08);
  color: var(--gold-deep);
}
.lang-opt.is-current::before {
  content: '✓';
  position: absolute;
  margin-left: -16px;
  color: var(--gold);
}
.lang-opt-native {
  font-family: var(--f-jp);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.lang-opt-code {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dust);
}
.lang-empty {
  padding: 32px 22px;
  text-align: center;
  color: var(--dust);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
}
/* Visual separator in lang dropdown between TIER 1 (10 priority
   languages per translation design) and the rest. */
.lang-tier-separator {
  padding: 14px 22px 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--dust);
  border-top: 1px solid var(--line);
  margin-top: 6px;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   PRICE DISPLAY (brand-locked, never translated, never localized)
   ============================================================
   Per display contract (v20260513):
     - JPY is the source of truth (data-jpy attr = JPY amount).
     - USD is computed at render time from /js/fx.json and shown PRIMARY.
     - JPY is shown SECONDARY beneath the USD value.
     - All price elements carry .notranslate so the i18n layer
       leaves them alone — these are never translated.

   Example markup:
     <span class="price-fixed brand-lock notranslate" translate="no">
       <span class="price-usd"     data-jpy="100">$0.63</span>
       <span class="price-sep"> · </span>
       <span class="price-jpy-sub" data-jpy="100">¥100</span>
     </span>
*/
.price-fixed {
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.price-fixed .price-usd {
  font-weight: 700;
  color: var(--gold-deep);
}
.price-fixed .price-sep {
  color: var(--ash);
  opacity: 0.6;
  margin: 0 0.2em;
}
.price-fixed .price-jpy-sub {
  color: var(--ash);
  font-size: 0.82em;
  opacity: 0.85;
}
/* Back-compat: keep .price-jpy as a synonym for the secondary slot in
   case any future caller forgets the -sub modifier. */
.price-fixed .price-jpy {
  color: var(--ash);
  font-size: 0.82em;
  opacity: 0.85;
}
.price-fx-note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dust);
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .lang-trigger { padding: 7px 10px; min-width: 64px; }
  .lang-trigger-label { font-size: 11px; max-width: 70px; }
  .lang-panel { padding: 60px 14px 14px; }
  .lang-search { font-size: 14px; padding: 12px 14px; }
  .lang-panel-close { width: 40px; height: 40px; }
  .lang-opt { padding: 14px 18px; }
  .lang-opt-native { font-size: 14px; }
}

/* ============== LANG-SPECIFIC TYPOGRAPHY ============== */

/* Non-Latin scripts need smaller display sizes (CJK + Devanagari are wider/taller) */
html[lang="ja"] h1,
html[lang="ko"] h1,
html[lang="hi"] h1 {
  font-family: var(--f-jp), var(--f-display);
  font-size: clamp(36px, 5.5vw, 76px);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
html[lang="ja"] h2,
html[lang="ko"] h2,
html[lang="hi"] h2 {
  font-family: var(--f-jp), var(--f-display);
  font-size: clamp(26px, 3.6vw, 52px);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
html[lang="ja"] .hero-tag-jp,
html[lang="ko"] .hero-tag-jp,
html[lang="hi"] .hero-tag-jp {
  font-style: normal;
  font-family: var(--f-jp);
  opacity: 0.6;
  font-size: 14px;
}

/* ============== GOOGLE TRANSLATE - HIDE DEFAULT UI ============== */
/* We hide the visible bits Google injects but NEVER touch .goog-te-combo
   (the <select> we drive programmatically) or its container.
   The container itself is positioned off-screen via inline style. */

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
}

/* Google shifts the body down to make room for its banner. Stop that. */
body {
  top: 0 !important;
  position: static !important;
}

/* Don't let Google's auto-injected font/colour override our typography */
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

/* ============== GOOGLE TRANSLATE BANNER - HIDE ============== */
/* Newer Google Translate banner uses these class/id patterns: */
.skiptranslate iframe.skiptranslate,
iframe.goog-te-banner-frame,
iframe[id=":1.container"],
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

/* Hide highlight Google adds on translated text hover */
font[style*="background-color"],
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* === v20260514f: Bilingual display switch for legal/entry pages === */
/* 日本語ピッカー時: 英語 <p> 非表示、.jp 表示
   NOTE v20260518k: the L1172 rule used to also catch entry.html
   <label> elements that had neither `.jp` nor `.lang-ja` — which
   sounded right ('hide non-Japanese labels in JP mode'), but
   entry.html's labels are NEUTRAL wrappers containing both .lang-en
   and .lang-ja <span>s inside. Killing the <label> killed the
   <input> inside it too, making the entire form invisible in JP
   mode (operator screenshot v20260518j confirmed). Solution:
   restrict the hide-rule to labels that carry an explicit
   English-only marker, so neutral entry-form labels survive. */
html[data-display-lang="ja"] .legal-page p:not(.jp),
html[data-display-lang="ja"] .entry-page p:not(.jp),
html[data-display-lang="ja"] .legal-page label.en,
html[data-display-lang="ja"] .legal-page label.lang-en,
html[data-display-lang="ja"] .entry-page label.en,
html[data-display-lang="ja"] .entry-page label.lang-en {
  display: none;
}
/* 日本語以外: 日本語 <p class="jp"> と日本語見出し非表示 */
html:not([data-display-lang="ja"]) .legal-page p.jp,
html:not([data-display-lang="ja"]) .entry-page p.jp,
html:not([data-display-lang="ja"]) .legal-page label.jp,
html:not([data-display-lang="ja"]) .entry-page label.jp,
html:not([data-display-lang="ja"]) .lang-ja {
  display: none;
}
/* 日本語時: 英語見出し/ラベルを非表示 */
html[data-display-lang="ja"] .lang-en {
  display: none;
}
/* 日本語見出しのフォント */
.lang-ja {
  font-family: var(--f-jp, "Noto Serif JP", serif);
}

/* entry-note div も同様の切替 */
html[data-display-lang="ja"] .entry-page .entry-note:not(.jp) {
  display: none;
}
html:not([data-display-lang="ja"]) .entry-page .entry-note.jp {
  display: none;
}

/* === v20260514h: Legal/Entry pages unified footer === */
.legal-footer {
  border-top: var(--rule);
  padding: 48px var(--pad) 40px;
  margin-top: 96px;
  text-align: center;
}
.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  margin-bottom: 24px;
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-footer-nav a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.legal-footer-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.legal-footer-nav .sep {
  color: var(--dust);
  font-size: 10px;
}
.legal-footer-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--dust);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.8;
}
.legal-footer-meta .meta-line {
  display: block;
}

/* v20260514i: corp 行用スタイル */
.legal-footer-nav-corporate {
  margin-top: 16px;
  font-size: 11px;
  opacity: 0.85;
}
.legal-footer-nav-corporate .corp-label {
  color: var(--dust);
  font-weight: 600;
  margin-right: 12px;
}

/* v20260514j: entry.html status messages (Workers API) */
.entry-status {
  padding: 18px 22px;
  margin: 18px 0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}
.entry-status-error {
  background: rgba(196, 60, 60, 0.08);
  border-left: 3px solid #c43c3c;
  color: #8c2424;
}
.entry-status-success {
  background: rgba(184, 134, 45, 0.08);
  border-left: 3px solid var(--gold);
  color: var(--ash);
  padding: 32px 28px;
  margin: 32px 0;
}
.entry-status-success h3 {
  font-family: var(--f-display);
  color: var(--gold);
  font-size: 22px;
  margin: 0 0 16px 0;
  letter-spacing: 0.01em;
}
.entry-status-success p {
  margin: 8px 0;
}
.entry-status-success strong {
  font-family: var(--f-mono);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.05em;
}
#entrySubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* === v20260514k: KINGMAKER short film modal === */

/* Gorilla frame: indicate clickability + play overlay */
.gorilla-frame-clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gorilla-frame-clickable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
}

/* Hover overlay: just a soft darkening + 'TAP TO WATCH' label.
   The always-visible play button (in ::after / ::before below) is the
   main affordance, so we keep this lighter to avoid double UI. */
.gorilla-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12%;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle at center,
    rgba(15, 14, 12, 0.35) 0%,
    rgba(15, 14, 12, 0.15) 40%,
    rgba(15, 14, 12, 0) 75%);
  z-index: 5;
}
.gorilla-frame-clickable:hover .gorilla-play-overlay,
.gorilla-frame-clickable:focus-visible .gorilla-play-overlay {
  opacity: 1;
}
.gorilla-play-icon {
  display: none; /* superseded by the always-visible ::before/::after button */
}
.gorilla-play-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(15, 14, 12, 0.9);
  text-transform: uppercase;
}

/* Always-visible play button — real DOM element (.gorilla-play-button)
   Dead-center of gorilla, red for high visibility, no pseudo-element conflicts. */

/* Disable the inline .gorilla-frame::before/::after gold rings in fullscreen mode
   (they were causing the stray black dot top-left of the gorilla). */
.gorilla-frame-fullscreen::before,
.gorilla-frame-fullscreen::after {
  display: none !important;
  content: none !important;
}

/* v20260514ai...an → ao — Subtle slate variant.
   Operator decision: drop the ruby jewel concept, go back to a quiet
   chic grey marker. Same position (cream gap at the crown base, above
   the gorilla's forehead) but neutral colour, thin border, no pulse
   beyond a very faint breath. Reads as a minimalist play affordance,
   not jewellery. */
.gorilla-play-button {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(58, 56, 52, 0.85);          /* slate / charcoal */
  border: 1px solid rgba(120, 116, 108, 0.55); /* hairline grey rim */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  animation: gorillaPulse 5.5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s,
              border-color 0.35s,
              background 0.35s;
}
.gorilla-play-button-glyph {
  color: rgba(200, 196, 188, 0.82);  /* warm light grey */
  font-size: 14px;
  line-height: 1;
  transform: translateX(2px);
  text-shadow: none;
  font-family: Arial, sans-serif;
  font-weight: 400;
}
.gorilla-frame-clickable:hover .gorilla-play-button,
.gorilla-frame-clickable:focus-visible .gorilla-play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(58, 56, 52, 0.95);
  border-color: rgba(160, 156, 148, 0.75);
  box-shadow: 0 0 0 5px rgba(120, 116, 108, 0.10),
              0 4px 12px rgba(0, 0, 0, 0.28);
}
@keyframes gorillaPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(120, 116, 108, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.18);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gorilla-play-button {
    width: 34px;
    height: 34px;
    top: 38%;
  }
  .gorilla-play-button-glyph {
    font-size: 12px;
    transform: translateX(1.5px);
  }
}

/* === Modal overlay === */
.km-shortfilm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.km-shortfilm-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.km-shortfilm-frame {
  position: relative;
  width: 100%;
  max-width: min(720px, calc(100vh - 120px));
  aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 80px rgba(212, 175, 55, 0.18),
              0 32px 96px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.km-shortfilm-overlay.open .km-shortfilm-frame {
  transform: scale(1);
}
.km-shortfilm-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.km-shortfilm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 14, 12, 0.75);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.km-shortfilm-close:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: rotate(90deg);
}
.km-shortfilm-meta {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.km-shortfilm-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--dust);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.km-shortfilm-title {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .km-shortfilm-frame {
    max-width: 100%;
    border-radius: 2px;
  }
  .gorilla-play-icon {
    width: 56px;
    height: 56px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gorilla-frame-clickable::after { animation: none; }
  .km-shortfilm-frame { transition: none; transform: none; }
  .km-shortfilm-overlay.open .km-shortfilm-frame { transform: none; }
}

/* === v20260514n: Full-screen gorilla hero (Stage 1) + scroll reveal (Stage 2) === */

/* Stage 1: full-viewport flex centering. .hero-v2 alone, no .hero class. */
header.hero-v2 {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  padding: 0;
  margin: 0;
  gap: 0;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  box-sizing: border-box;
}

.hero-v2 .hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

/* Override .gorilla-frame inline width:clamp(320px,38vw,480px).
   Sized conservatively so gorilla never gets clipped on common viewports. */
.hero-v2 .gorilla-frame.gorilla-frame-fullscreen,
.hero-stage .gorilla-frame {
  position: relative;
  width: min(55vmin, 540px) !important;
  height: min(55vmin, 540px) !important;
  aspect-ratio: 1;
  max-width: 80vw;
  max-height: 65vh;
  margin: 0;
  flex: 0 0 auto;
}
/* Static still image fills the frame; contain so nothing gets cropped */
.hero-stage .hero-still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-stage .hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Scroll hint */
.hero-v2 .hero-scroll-hint {
  position: absolute;
  bottom: clamp(20px, 4vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.78;
  transition: opacity 0.4s;
  z-index: 5;
  cursor: pointer;
  animation: scrollHintFloat 2.4s ease-in-out infinite;
}
.hero-v2 .hero-scroll-hint:hover {
  opacity: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}
.hero-scroll-label {
  font-weight: 500;
}
.hero-scroll-chevron {
  display: block;
  margin-top: 2px;
}
@keyframes scrollHintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(4px); }
}
.hero-scroll-hint.scrolled {
  opacity: 0;
  pointer-events: none;
}

/* Stage 2: content section */
.hero-content {
  padding: clamp(80px, 12vh, 140px) var(--pad) clamp(60px, 8vh, 100px);
  background: transparent;
  position: relative;
  border-bottom: var(--rule);
}
.hero-content-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-left-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.hero-right-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-content .countdown {
  padding: 36px 44px;
  border: var(--rule);
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.6);
  backdrop-filter: blur(4px);
  text-align: center;
}

/* Mobile */
@media (max-width: 880px) {
  .hero-content-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content .countdown {
    padding: 28px 24px;
  }
  .hero-v2 .gorilla-frame.gorilla-frame-fullscreen,
  .hero-stage .gorilla-frame {
    width: 70vmin !important;
    height: 70vmin !important;
    max-width: 80vw;
    max-height: 60vh;
  }
}

/* Short viewport */
@media (max-height: 700px) {
  .hero-v2 .gorilla-frame.gorilla-frame-fullscreen,
  .hero-stage .gorilla-frame {
    width: 48vmin !important;
    height: 48vmin !important;
    max-height: 60vh;
  }
}

/* === v20260514p: Poster lightbox (myth + legend) === */

.km-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(60px, 8vw, 100px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.km-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.km-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.km-lightbox.open .km-lightbox-figure {
  transform: scale(1);
}
.km-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(212, 175, 55, 0.22);
  border-radius: 2px;
  background: #000;
}
.km-lightbox-caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dust);
  text-transform: uppercase;
  text-align: center;
  max-width: 60ch;
  line-height: 1.6;
}

.km-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 14, 12, 0.78);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.km-lightbox-close:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: rotate(90deg);
}

.km-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 14, 12, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.km-lightbox-nav:hover {
  background: rgba(15, 14, 12, 0.85);
  border-color: var(--gold);
}
.km-lightbox-prev { left: 20px; }
.km-lightbox-next { right: 20px; }

/* Cursor hint on poster triggers */
.myth-frame img,
.legend-card img {
  cursor: zoom-in;
}
.myth-frame {
  cursor: zoom-in;
}

/* Mobile */
@media (max-width: 640px) {
  .km-lightbox {
    padding: 60px 12px;
  }
  .km-lightbox-img {
    max-height: 72vh;
  }
  .km-lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .km-lightbox-prev { left: 8px; }
  .km-lightbox-next { right: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .km-lightbox-figure { transition: none; transform: none; }
  .km-lightbox.open .km-lightbox-figure { transform: none; }
}

/* =================================================================
   v20260518e — Cycle-1 status bar + CTA locked states.
   ================================================================= */

.cycle-bar {
  /* Stays parked just under the .nav bar (position:fixed at z-index:100)
     so the countdown is always visible no matter where the user has
     scrolled. The cycle-bar's own z-index sits below the nav. */
  position: sticky;
  top: 60px;    /* navbar height ~60px — keep below the fixed nav overlay */
  z-index: 50;
  background: rgba(248, 244, 235, 0.92);  /* cream parchment, slightly opaque */
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(184, 134, 45, 0.22);
  padding: 14px 24px;
  margin-top: 60px;  /* page-top spacer matching navbar height */
}
.cycle-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cycle-bar-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cycle-bar-label-en {
  font-family: var(--f-display, 'Cinzel', serif);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep, #8a6a0a);
  font-weight: 600;
}
.cycle-bar-label-ja {
  font-family: var(--f-jp, 'Noto Serif JP', serif);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ash, #5c5a52);
  margin-top: 4px;
  font-weight: 400;
}

.cycle-bar-countdown {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.cb-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
}
.cb-num {
  font-family: var(--f-display, 'Cinzel', serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink, #0F0E0C);
}
.cb-lab {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  line-height: 1.1;
  gap: 1px;
}
.cb-lab-en {
  font-family: var(--f-display, 'Cinzel', serif);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ash, #5c5a52);
  font-weight: 500;
}
.cb-lab-ja {
  font-family: var(--f-jp, 'Noto Serif JP', serif);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  color: var(--ash, #5c5a52);
  opacity: 0.7;
  font-weight: 400;
}
.cb-sep {
  font-family: var(--f-display, 'Cinzel', serif);
  font-size: 22px;
  color: var(--gold-deep, #8a6a0a);
  padding: 0 4px;
  opacity: 0.5;
}

.cycle-bar-stages {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display, 'Cinzel', serif);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.cb-stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ash, #5c5a52);
  opacity: 0.55;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.cb-stage[data-active="1"] {
  color: var(--gold, #B8862D);
  opacity: 1;
  font-weight: 600;
}
.cb-stage[data-active="1"] .cb-dot {
  animation: cycleBarDotPulse 1.8s ease-in-out infinite;
}
.cb-stage[data-done="1"] {
  opacity: 0.32;
  text-decoration: line-through;
  text-decoration-color: rgba(92, 90, 82, 0.4);
}
.cb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.cb-date { font-weight: 600; }
.cb-name { font-weight: 400; }
.cb-arrow {
  color: var(--ash, #5c5a52);
  opacity: 0.4;
  font-size: 12px;
  font-weight: 400;
}
@keyframes cycleBarDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 5px transparent; opacity: 0.55; }
}

/* Mobile — stack vertically, shrink numbers */
@media (max-width: 820px) {
  .cycle-bar { padding: 12px 16px; }
  .cycle-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .cycle-bar-label { align-items: center; }
  .cb-num { font-size: 22px; }
  .cb-lab { font-size: 8.5px; }
  .cb-sep { font-size: 18px; }
  .cycle-bar-stages { font-size: 9px; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .cb-name { display: none; }  /* on mobile, dates alone identify the stages */
}

/* ---------- CTA locked states (Cycle 1 four-phase) ----------
   Replaced v20260518h: previous opacity+absolute design caused the
   button bounding box to keep the size of .km-cta-default (¥100)
   while a much longer locked text 'Bell opens 5/20 · 23:23 JST' was
   abs-centred on top — overflowing into the H1 above. New scheme:
   only the active state is display:inline-flex, all others display:none,
   so the button auto-sizes to whichever state is showing. */
.km-cta-locked {
  display: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--f-display, 'Cinzel', serif);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.92em;
}
.km-cta-locked-icon { font-size: 1.05em; }
.km-cta-locked-text { font-size: 0.95em; }

/* By phase: show ONE state, hide the others. */
.km-cta[data-cycle-phase="open"]:not([data-bell-open="1"]) .km-cta-default { display: inline-flex; }
.km-cta[data-cycle-phase="open"][data-bell-open="1"] .km-cta-open { display: inline-flex; }

.km-cta[data-cycle-phase="pre_open"] .km-cta-locked-pre { display: inline-flex; }
.km-cta[data-cycle-phase="pending_three"] .km-cta-locked-pending { display: inline-flex; }
.km-cta[data-cycle-phase="cycle1_complete"] .km-cta-locked-complete { display: inline-flex; }

/* Make the button feel locked when it's not in 'open' phase. */
.km-cta[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.6);
  opacity: 0.82;
}
.km-cta[aria-disabled="true"]:hover {
  transform: none;
}

/* ════════════════════════════════════════════════════════════
   v20260522: Quick explainer (10-second understanding section)
   ════════════════════════════════════════════════════════════ */
.quick-explain {
  padding: 80px var(--pad) 80px;
  background:
    linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.03) 30%, rgba(212, 175, 55, 0.06) 70%, transparent),
    var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-explain-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.quick-explain-head {
  text-align: center;
  margin-bottom: 56px;
}
.quick-explain-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.quick-explain-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--bone);
  letter-spacing: -0.01em;
  margin: 0;
}
.quick-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .quick-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.quick-step {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.quick-step:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.quick-step-num {
  font-family: var(--f-display);
  font-size: 42px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.quick-step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
  align-self: center;
  margin-top: 4px;
}
.quick-step-body h3 {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--bone);
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.quick-step-body p {
  font-family: var(--f-jp);
  font-size: 14px;
  color: var(--ash);
  line-height: 1.65;
  margin: 0;
}
.quick-explain-foot {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.quick-explain-more {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 45, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.quick-explain-more:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hide language span based on display lang */
html[data-display-lang="ja"] .quick-step-body .lang-en,
html[data-display-lang="ja"] .quick-explain-title .lang-en,
html[data-display-lang="ja"] .quick-explain-more .lang-en {
  display: none;
}
html[data-display-lang="en"] .quick-step-body .lang-ja,
html[data-display-lang="en"] .quick-explain-title .lang-ja,
html[data-display-lang="en"] .quick-explain-more .lang-ja {
  display: none;
}
/* Default (any other lang): show English */
html:not([data-display-lang="ja"]) .quick-step-body .lang-ja,
html:not([data-display-lang="ja"]) .quick-explain-title .lang-ja,
html:not([data-display-lang="ja"]) .quick-explain-more .lang-ja {
  display: none;
}

/* ════════════════════════════════════════════════════════════
   v20260522c: Nav quicklinks (Entry + My Page + Hall of Kings)
   Visible in top bar without opening hamburger menu.
   ════════════════════════════════════════════════════════════ */
.nav-quicklinks {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  margin-right: 14px;
}
.nav-ql {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.nav-ql:hover {
  color: var(--gold);
  border-color: var(--gold-deep);
}
.nav-ql-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--black);
  border-color: var(--gold-deep);
  font-weight: 700;
}
.nav-ql-primary:hover {
  color: var(--black);
  transform: translateY(-1px);
}

/* Hide secondary quicklinks on small screens to keep nav clean */
@media (max-width: 768px) {
  .nav-ql:not(.nav-ql-primary) { display: none; }
}
@media (max-width: 480px) {
  .nav-ql-primary { padding: 6px 10px; font-size: 10px; }
}
