/* ═══════════════════════════════════════════════════
   JAPAN 2026 · SHARED DESIGN SYSTEM
═══════════════════════════════════════════════════ */

:root {
  /* Palette · cinematic dark */
  --bg:        #08070a;
  --bg-2:      #110f10;
  --bg-3:      #1a1714;
  --bg-card:   #14110e;
  --line:      #2a241c;
  --line-2:    #1d1814;
  --ink:       #f4ede0;
  --ink-2:     #b8a88f;
  --ink-3:     #756855;
  --ink-4:     #4a4338;

  /* Accent palette */
  --gold:      #d4a056;
  --gold-soft: #e7c692;
  --jade:      #8fb99c;
  --iris:      #c089cf;
  --vermilion: #e15a5a;
  --indigo:    #88a8d4;

  /* Page accents (cities + admin) */
  --tokyo:     var(--gold);
  --kyoto:     var(--iris);
  --osaka:     var(--vermilion);
  --flight:    var(--jade);
  --info:      var(--indigo);

  /* Default page accent (overridden per page) */
  --accent: var(--gold);

  /* Type */
  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --italic: 'Cormorant Garamond', serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'DM Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in:  cubic-bezier(.6, 0, .8, 0);

  /* Layout */
  --shell-max: 1320px;
  --shell-pad: 64px;
  --topnav-h:  72px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* Page-wide subtle paper grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 320px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

::selection { background: rgba(212, 160, 86, 0.32); color: var(--ink); }

/* ═══════════════════════════════════════════════════
   VIEW TRANSITIONS · cross-document fade
═══════════════════════════════════════════════════ */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vtFadeOut 0.32s var(--ease-in) both;
}
::view-transition-new(root) {
  animation: vtFadeIn 0.55s var(--ease) both;
}
@keyframes vtFadeOut {
  to { opacity: 0; transform: translateY(-6px) scale(.995); filter: blur(2px); }
}
@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(1.005); filter: blur(2px); }
}

/* ═══════════════════════════════════════════════════
   TOP NAV
═══════════════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topnav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  background: rgba(8, 7, 10, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
}
.topnav.scrolled,
body[data-page]:not([data-page="home"]) .topnav {
  background: rgba(8, 7, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-2);
}

.topnav .brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topnav .brand .jp { color: var(--gold); font-size: 18px; }
.topnav .brand .sep { color: var(--ink-3); font-size: 11px; opacity: .6; }
.topnav .brand .en {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.topnav .links {
  display: flex;
  gap: 4px;
}
.topnav .links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 14px;
  border-radius: 2px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.topnav .links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.topnav .links a.active {
  color: var(--accent);
  background: rgba(212, 160, 86, 0.08);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.topnav .meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.6;
}
.topnav .meta strong { color: var(--ink-2); font-weight: 400; }

/* ═══════════════════════════════════════════════════
   SHELL / SECTIONS
═══════════════════════════════════════════════════ */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

main { display: block; }

.section {
  padding: 100px 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line-2); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-head h2 em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.section-head .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════
   HERO · cinematic, image-led
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--shell-pad) 60px;
  overflow: hidden;
  isolation: isolate;
  /* Fallback gradient */
  background: radial-gradient(ellipse at 50% 30%, #2a1c12 0%, var(--bg) 70%);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-img.loaded { opacity: 1; }
.hero::before {
  /* Dark bottom-up gradient + side vignette */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,7,10,0.55) 0%, rgba(8,7,10,0.4) 35%, rgba(8,7,10,0.85) 75%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(8,7,10,0.6) 100%);
  z-index: -1;
}

.hero-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--serif);
  font-size: clamp(280px, 38vw, 520px);
  color: rgba(255,255,255,0.025);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  letter-spacing: -0.02em;
}

/* ─── Sakura petals (home hero) ─── */
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  top: -40px;
  fill: rgba(255, 188, 199, 0.6);
  filter: drop-shadow(0 2px 6px rgba(255, 188, 199, 0.18));
  will-change: transform, opacity;
}

@keyframes petalDrift1 {
  0%   { transform: translate(0, -40px) rotate(0deg);      opacity: 0; }
  8%   { opacity: 0.7; }
  35%  { transform: translate(40px, 35vh) rotate(140deg); }
  60%  { transform: translate(10px, 60vh) rotate(260deg); }
  85%  { transform: translate(50px, 85vh) rotate(380deg);  opacity: 0.55; }
  100% { transform: translate(20px, 110vh) rotate(480deg); opacity: 0; }
}
@keyframes petalDrift2 {
  0%   { transform: translate(0, -40px) rotate(20deg);     opacity: 0; }
  8%   { opacity: 0.6; }
  30%  { transform: translate(-30px, 30vh) rotate(-120deg); }
  55%  { transform: translate(-50px, 55vh) rotate(-240deg); }
  80%  { transform: translate(-20px, 80vh) rotate(-360deg); opacity: 0.5; }
  100% { transform: translate(-40px, 110vh) rotate(-480deg); opacity: 0; }
}
@keyframes petalDrift3 {
  0%   { transform: translate(0, -40px) rotate(-10deg);    opacity: 0; }
  8%   { opacity: 0.5; }
  40%  { transform: translate(20px, 40vh) rotate(160deg); }
  70%  { transform: translate(-15px, 70vh) rotate(290deg); }
  95%  { transform: translate(30px, 95vh) rotate(420deg);  opacity: 0.4; }
  100% { transform: translate(0, 110vh) rotate(450deg);    opacity: 0; }
}

.petal.p1  { left: 5%;  width: 24px; height: 28px; animation: petalDrift1 16s linear infinite; }
.petal.p2  { left: 14%; width: 32px; height: 38px; animation: petalDrift2 22s linear infinite; animation-delay: 4s; }
.petal.p3  { left: 24%; width: 20px; height: 24px; animation: petalDrift3 18s linear infinite; animation-delay: 8s; }
.petal.p4  { left: 34%; width: 28px; height: 34px; animation: petalDrift1 24s linear infinite; animation-delay: 2s; }
.petal.p5  { left: 44%; width: 24px; height: 28px; animation: petalDrift2 19s linear infinite; animation-delay: 11s; }
.petal.p6  { left: 53%; width: 26px; height: 32px; animation: petalDrift3 21s linear infinite; animation-delay: 6s; }
.petal.p7  { left: 63%; width: 22px; height: 26px; animation: petalDrift1 17s linear infinite; animation-delay: 13s; }
.petal.p8  { left: 73%; width: 30px; height: 36px; animation: petalDrift2 23s linear infinite; animation-delay: 9s; }
.petal.p9  { left: 83%; width: 22px; height: 26px; animation: petalDrift3 20s linear infinite; animation-delay: 1s; }
.petal.p10 { left: 92%; width: 26px; height: 32px; animation: petalDrift1 18s linear infinite; animation-delay: 7s; }

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}

.hero-content {
  max-width: 920px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.25vw, 126px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-bottom: 80px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero h1 em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-kanji {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink-2);
  letter-spacing: 0.42em;
  margin-bottom: 36px;
}
.hero-lede {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
}

.hero-bottom {
  position: absolute;
  bottom: 32px; left: var(--shell-pad); right: var(--shell-pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  z-index: 2;
  flex-wrap: wrap;
}
.hero-scroll {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--ink-2);
  animation: heroLine 2.4s ease-in-out infinite;
}
@keyframes heroLine {
  0%, 100% { width: 30px; opacity: 0.4; }
  50%      { width: 60px; opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════════ */
.countdown {
  display: flex;
  gap: 36px;
  align-items: flex-end;
  padding: 22px 28px;
  background: rgba(8,7,10,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,160,86,0.18);
  border-radius: 4px;
}
.countdown.flat {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  padding: 0;
}
.countdown .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 8px;
  align-self: flex-end;
  padding-bottom: 6px;
}
.cd-block {
  text-align: center;
}
.cd-num {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 56px);
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line-2);
  text-align: left;
}
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.stat .n em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
}
.stat .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat .s {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════
   DAILY TIMELINE STRIP
═══════════════════════════════════════════════════ */
.timeline-wrap {
  position: relative;
  margin: 0 calc(var(--shell-pad) * -1);
}
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 var(--shell-pad);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  scroll-behavior: auto;
}
.timeline.dragging { cursor: grabbing; }
.timeline.dragging * { pointer-events: none; }
.timeline::-webkit-scrollbar { display: none; }

.tl-day {
  flex: 0 0 220px;
  scroll-snap-align: start;
  padding: 24px 24px 28px;
  border-right: 1px solid var(--line-2);
  position: relative;
  background: var(--bg);
  transition: background 0.3s var(--ease);
  --day-color: var(--ink-3);
}
.tl-day:hover { background: var(--bg-2); }
.tl-day::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--day-color);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.tl-day:hover::before { opacity: 1; }

.tl-day .num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tl-day .date {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.tl-day .city {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--day-color);
  margin-bottom: 16px;
}
.tl-day .stay {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.tl-day .stay strong {
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.tl-day.travel { background: var(--bg-2); }
.tl-day.travel .stay::before { content: '✈ '; color: var(--accent); }

/* ═══════════════════════════════════════════════════
   MAP · stylised Japan SVG
═══════════════════════════════════════════════════ */
.map-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.map-svg {
  position: relative;
  aspect-ratio: 1.05 / 1;
  background: linear-gradient(180deg, rgba(212,160,86,0.05), transparent);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 30px;
  isolation: isolate;
  overflow: hidden;
}
.honshu-img {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  object-fit: contain;
  /* Invert: gray Honshu→light, white surround→black.
     Sepia + saturate + hue-rotate: tint the light region toward gold.
     Screen blend: black surround disappears against the dark page. */
  filter: invert(1) sepia(1) saturate(3) hue-rotate(-8deg) brightness(0.95);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.map-overlay {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  z-index: 2;
}
.map-svg svg {
  width: 100%;
  height: 100%;
}
.map-svg .land {
  fill: rgba(212,160,86,0.08);
  stroke: rgba(212,160,86,0.4);
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(212,160,86,0.05));
}
.map-svg .pin {
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.map-svg .pin:hover { transform: scale(1.15); transform-origin: var(--cx) var(--cy); }
.map-svg .pin-dot {
  fill: var(--pc);
  filter: drop-shadow(0 0 8px var(--pc));
}
.map-svg .pin-ring {
  fill: none;
  stroke: var(--pc);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: pulse 2.6s ease-out infinite;
  transform-origin: var(--cx) var(--cy);
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.2); opacity: 0; }
}
.map-svg .pin-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--ink-2);
}
.map-svg .pin:hover .pin-label { fill: var(--pc); }
.map-svg .route {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.6;
}
.map-legend {
  display: grid;
  gap: 14px;
  align-content: center;
}
.map-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
  transition: padding 0.3s var(--ease);
}
.map-legend-item:hover { padding-left: 6px; }
.map-legend-item .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 12px var(--pc);
}
.map-legend-item .nm {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.map-legend-item .nm em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--pc);
  margin-left: 8px;
}
.map-legend-item .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════
   CITY PORTALS (large cards with images)
═══════════════════════════════════════════════════ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.city-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 3 / 4;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
  --pc: var(--accent);
}
.city-card:hover {
  transform: translateY(-4px);
  border-color: var(--pc);
}
.city-card .img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.55) saturate(0.85);
}
.city-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.7) saturate(1);
}
.city-card .img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,7,10,0.05) 0%, rgba(8,7,10,0.55) 60%, rgba(8,7,10,0.95) 100%);
  pointer-events: none;
}
.city-card .content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.city-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.city-card .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.city-card .kj {
  font-family: var(--serif);
  font-size: 50px;
  color: var(--pc);
  opacity: 0.85;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.city-card .nm {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-weight: 400;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.city-card .nm em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--pc);
  font-weight: 400;
}
.city-card .desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 30ch;
  margin-bottom: 20px;
}
.city-card .stats {
  display: flex;
  gap: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.city-card .stats .item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.city-card .stats .item strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--pc);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.city-card .arrow {
  position: absolute;
  bottom: 32px; right: 32px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--pc);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.city-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════════════
   ADMIN TILES (Flights, Info)
═══════════════════════════════════════════════════ */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-tile {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  --pc: var(--accent);
}
.admin-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--pc);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.admin-tile:hover {
  background: var(--bg-3);
  border-color: var(--pc);
  transform: translateY(-2px);
}
.admin-tile:hover::before { transform: scaleY(1); }
.admin-tile .kj {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--pc);
  opacity: 0.45;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.admin-tile:hover .kj { opacity: 0.7; }
.admin-tile .body { flex: 1; }
.admin-tile .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.admin-tile .nm {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.admin-tile .nm em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--pc);
}
.admin-tile .sub {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.admin-tile .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.admin-tile .meta strong { color: var(--pc); font-weight: 400; }
.admin-tile .arrow {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--pc);
  opacity: 0.45;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
}
.admin-tile:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ═══════════════════════════════════════════════════
   MUST DO'S
═══════════════════════════════════════════════════ */
.must-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.must-card {
  position: relative;
  padding: 28px 28px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --mc: var(--accent);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.must-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mc);
  opacity: 0.35;
  transition: opacity 0.35s var(--ease);
}
.must-card:hover {
  background: var(--bg-3);
  border-color: var(--mc);
  transform: translateY(-2px);
}
.must-card:hover::before { opacity: 1; }

.must-card .mc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.must-card .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.must-card .city-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mc);
}
.must-card .kj-mark {
  font-family: var(--serif);
  font-size: 92px;
  line-height: 1;
  color: var(--mc);
  opacity: 0.18;
  text-align: center;
  margin: 28px 0 28px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.must-card:hover .kj-mark {
  opacity: 0.32;
  transform: translateY(-2px);
}
.must-card .mc-bot {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.must-card .status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mc);
  margin-bottom: 8px;
}
.must-card .placeholder {
  font-family: var(--italic);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.must-foot {
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--italic);
  font-style: italic;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.6;
  max-width: 580px;
}

/* ═══════════════════════════════════════════════════
   TRANSPORT DIAGRAM
═══════════════════════════════════════════════════ */
/* Train route · horizontal card-based scrollable strip */
.route-scroll {
  position: relative;
  margin: 0 calc(var(--shell-pad) * -1);
}
.route-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding: var(--shell-pad);
  padding: 24px var(--shell-pad) 56px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  scroll-behavior: auto;
}
.route-track.dragging { cursor: grabbing; }
.route-track.dragging * { pointer-events: none; }
.route-track::-webkit-scrollbar { display: none; }

/* Edge fades */
.route-fade {
  position: absolute;
  top: 24px; bottom: 56px;
  width: 90px;
  pointer-events: none;
  z-index: 5;
}
.route-fade-l {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 25%, transparent);
}
.route-fade-r {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 25%, transparent);
}

/* Stop card */
.route-stop {
  flex: 0 0 230px;
  scroll-snap-align: center;
  padding: 28px 26px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  --pc: var(--ink);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.route-stop::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--pc);
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}
.route-stop:hover {
  background: var(--bg-3);
  border-color: var(--pc);
  transform: translateY(-2px);
}
.route-stop:hover::before { opacity: 1; }

.route-stop.airport {
  background: transparent;
  border-style: dashed;
  --pc: var(--ink-3);
}
.route-stop.airport::before {
  background: var(--ink-3);
  opacity: 0.35;
}

.rs-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.rs-kanji {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--pc);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  transition: opacity 0.35s var(--ease);
}
.route-stop:hover .rs-kanji { opacity: 0.4; }

.rs-name {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.route-stop.airport .rs-name {
  font-size: 24px;
  color: var(--ink-2);
}

.rs-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pc);
  line-height: 1.7;
}
.route-stop.airport .rs-meta { color: var(--ink-3); }

/* Leg between two stops */
.route-leg {
  flex: 0 0 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
}
.route-leg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 25%,
    var(--accent) 75%,
    transparent 100%);
  opacity: 0.45;
  z-index: 0;
}
.route-leg::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  background: var(--bg);
  padding: 0 6px;
  z-index: 1;
}
.rl-mode {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  padding: 4px 10px;
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.3;
}
.rl-time {
  font-family: var(--italic);
  font-style: italic;
  font-size: 19px;
  color: var(--accent);
  background: var(--bg);
  padding: 2px 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.005em;
}

@media (max-width: 700px) {
  .route-stop { flex: 0 0 200px; padding: 22px 22px 26px; }
  .route-leg { flex: 0 0 140px; padding: 0 8px; }
  .rs-kanji { font-size: 50px; }
  .rs-name { font-size: 24px; }
  .route-stop.airport .rs-name { font-size: 20px; }
  .rl-time { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════
   SUB-PAGE HERO (city/flights/info)
═══════════════════════════════════════════════════ */
.sub-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--shell-pad) 60px;
  margin-top: var(--topnav-h);
  overflow: hidden;
  isolation: isolate;
}
.sub-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.sub-hero-img.loaded { opacity: 1; }
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,10,0.4) 0%, rgba(8,7,10,0.55) 50%, rgba(8,7,10,0.95) 100%);
  z-index: -1;
}
.sub-hero-mark {
  position: absolute;
  right: 4%;
  bottom: -6%;
  font-family: var(--serif);
  font-size: clamp(220px, 28vw, 380px);
  color: rgba(255,255,255,0.04);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.sub-hero-content {
  max-width: 880px;
  position: relative;
  z-index: 1;
}
.sub-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
}
.sub-hero h1 em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.sub-hero .lede {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
}

/* Quick facts strip below sub-hero */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.facts-strip .stat { background: transparent; }

/* ═══════════════════════════════════════════════════
   WEATHER BLOCK
═══════════════════════════════════════════════════ */
.weather {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  padding: 50px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.w-icon {
  width: 88px;
  height: 88px;
  position: relative;
  flex-shrink: 0;
}
.w-icon svg { width: 100%; height: 100%; }
.w-info {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 40px;
  align-items: baseline;
}
.w-cell .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.w-cell .val {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.w-cell .val em {
  color: var(--accent);
  font-family: var(--italic);
  font-style: italic;
}
.w-cell .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.w-note {
  font-family: var(--italic);
  font-style: italic;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  align-self: center;
  max-width: 36ch;
  text-align: right;
  justify-self: end;
}

/* ═══════════════════════════════════════════════════
   STAY CARDS
═══════════════════════════════════════════════════ */
.stay {
  padding: 32px 36px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--stay-color, var(--accent));
  margin-bottom: 22px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stay:hover { background: var(--bg-3); }

.stay-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
}
.stay-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.stay-name .area {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--stay-color);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 400;
}
.stay-dates {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  letter-spacing: 0.04em;
}
.stay-dates strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--stay-color);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 22px;
}
.sg-cell .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.sg-cell .val {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.sg-cell .val.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--stay-color);
}
.sg-cell .muted {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.stay-extra {
  display: flex;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.stay-extra span { color: var(--ink-2); }
.stay-extra strong {
  color: var(--stay-color);
  font-weight: 400;
  font-size: 12px;
}

.stay-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn-pdf, .btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--stay-color);
  color: var(--stay-color);
  background: transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-pdf:hover, .btn-toggle:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-1px);
}
.btn-pdf .ico {
  display: inline-block;
  width: 11px; height: 13px;
  border: 1px solid currentColor;
  border-radius: 1px;
  position: relative;
}
.btn-pdf .ico::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 4px; height: 4px;
  background: var(--bg-2);
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.btn-pdf .arr { font-family: var(--serif); font-size: 13px; letter-spacing: 0; }
.btn-toggle .plus {
  display: inline-block;
  width: 12px; height: 12px;
  position: relative;
}
.btn-toggle .plus::before,
.btn-toggle .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.btn-toggle .plus::before { width: 10px; height: 1px; }
.btn-toggle .plus::after  { width: 1px; height: 10px; transition: transform 0.3s var(--ease); }
.btn-toggle.open .plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.stay-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-2);
  display: none;
  animation: detailsIn 0.4s var(--ease) both;
}
.stay-details.open { display: block; }
@keyframes detailsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.stay-details .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.stay-details .row:last-child { border-bottom: 0; }
.stay-details .row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.stay-details .row .v { color: var(--ink-2); line-height: 1.6; }
.stay-details .row .v strong { color: var(--ink); font-weight: 500; }

.amenity-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.amenity {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  text-transform: uppercase;
}

/* Notes */
.note {
  margin-top: 18px;
  padding: 16px 22px;
  border-left: 2px solid var(--vermilion);
  background: rgba(225,90,90,0.05);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.note strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--vermilion);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.note.good { border-left-color: var(--jade); background: rgba(143,185,156,0.05); }
.note.good strong { color: var(--jade); }
.note.info { border-left-color: var(--indigo); background: rgba(136,168,212,0.05); }
.note.info strong { color: var(--indigo); }

/* ═══════════════════════════════════════════════════
   COMING SOON BANNER
═══════════════════════════════════════════════════ */
.coming-soon {
  padding: 90px 40px;
  text-align: center;
  border: 1px dashed var(--accent);
  background: rgba(255,255,255,0.015);
  position: relative;
  overflow: hidden;
}
.coming-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.02), transparent 70%);
  pointer-events: none;
}
.cs-kanji {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: 0.06em;
}
.coming-soon h3 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.coming-soon h3 em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
}
.cs-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cs-tag::before, .cs-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.cs-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--italic);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   TABLES (data, passengers)
═══════════════════════════════════════════════════ */
.tbl {
  border-top: 1px solid var(--line);
}
.tbl .row {
  display: grid;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}
.tbl .row.head {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.tbl .row.head > div {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tbl .row > div { font-size: 14.5px; color: var(--ink); }
.tbl .row .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tbl .row .muted { color: var(--ink-3); font-size: 12.5px; }

/* Data grid (4-cell) */
.data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.data .c {
  background: var(--bg-2);
  padding: 24px 22px;
}
.data .c .l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.data .c .v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.data .c .v.accent { color: var(--accent); }
.data .c .s {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════
   INFO PAGE TABS (sticky sub-nav)
═══════════════════════════════════════════════════ */
.subtabs {
  position: sticky;
  top: var(--topnav-h);
  background: rgba(8,7,10,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
  z-index: 100;
  padding: 0 var(--shell-pad);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a {
  padding: 18px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.subtabs a:hover { color: var(--ink); }
.subtabs a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.info-card {
  padding: 28px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ic-color, var(--accent));
}
.info-card h5 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.info-card h5 em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--ic-color);
}
.info-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.info-card p strong { color: var(--ink); font-weight: 500; }
.info-card ul { list-style: none; margin-top: 10px; }
.info-card li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
  margin-bottom: 4px;
}
.info-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ic-color);
}

/* Phrases */
.phrases {
  border-top: 1px solid var(--line);
}
.phrases .row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 2fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
  transition: padding 0.3s var(--ease);
}
.phrases .row:hover { padding-left: 6px; }
.phrases .jp {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.phrases .ro {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.phrases .en {
  font-family: var(--italic);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  padding: 60px var(--shell-pad);
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-2);
}
.footer .l {
  font-family: var(--italic);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
}
.footer .l em {
  font-family: var(--serif);
  font-style: normal;
  color: var(--accent);
}
.footer .mark {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  opacity: 0.7;
  text-align: center;
  letter-spacing: 0.15em;
}
.footer .r {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  text-align: right;
  letter-spacing: 0.16em;
  line-height: 2;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --shell-pad: 40px; }
  .topnav { padding: 0 28px; gap: 24px; }
  .topnav .meta { display: none; }
  .map-block { grid-template-columns: 1fr; gap: 40px; }
  .must-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .city-card { aspect-ratio: 4 / 3; }
  .city-card:last-child { grid-column: span 2; aspect-ratio: 16 / 7; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stats-strip .stat:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .data { grid-template-columns: repeat(2, 1fr); }
  .stay-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .w-info { grid-template-columns: 1fr 1fr; gap: 24px; }
  .w-note { grid-column: span 2; text-align: left; max-width: none; justify-self: start; }
  .footer { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer .r { text-align: center; }
}

@media (max-width: 700px) {
  :root { --shell-pad: 28px; --topnav-h: 54px; }

  /* Topnav · slim, padding tied to shell-pad so it lines up with content */
  .topnav { padding: 0 var(--shell-pad); gap: 10px; }
  .topnav .brand { font-size: 14px; }
  .topnav .brand .en { display: none; }
  .topnav .links a { padding: 6px 6px; font-size: 8.5px; letter-spacing: 0.16em; }

  /* Sections · tighter vertical rhythm */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; gap: 16px; }
  .section-head h2 { font-size: clamp(22px, 7vw, 34px); }
  .eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 0.26em; }
  .eyebrow::before { width: 22px; }

  /* Hero */
  .hero { padding-bottom: 72px; }
  .hero-tag { font-size: 9px; margin-bottom: 18px; letter-spacing: 0.26em; }
  .hero-tag::before { width: 24px; }
  .hero h1 { font-size: clamp(36px, 11vw, 80px); margin-bottom: 48px; }
  .hero-lede { font-size: clamp(14px, 3.6vw, 17px); }
  .hero-bottom { position: static; margin-top: 22px; gap: 16px; }
  .hero-scroll { font-size: 8.5px; }

  /* Countdown · compact */
  .countdown { gap: 14px; padding: 14px 16px; }
  .countdown .label { display: none; }
  .cd-num { font-size: clamp(26px, 7vw, 38px); }
  .cd-unit { font-size: 8px; letter-spacing: 0.2em; }

  /* Stats strip */
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 18px; }
  .stat .n { font-size: clamp(24px, 7.5vw, 36px); }
  .stat .l { font-size: 9px; letter-spacing: 0.2em; }
  .stat .s { font-size: 9px; }

  /* Daily timeline strip */
  .timeline-wrap { margin: 0 calc(var(--shell-pad) * -1); }
  .tl-day { flex: 0 0 140px; padding: 18px 16px 22px; }
  .tl-day .num { font-size: 8.5px; letter-spacing: 0.2em; }
  .tl-day .date { font-size: 17px; }
  .tl-day .city { font-size: 8.5px; margin-bottom: 12px; }
  .tl-day .stay { font-size: 11px; padding-top: 10px; }

  /* City portal cards */
  .city-grid { grid-template-columns: 1fr; }
  .city-card, .city-card:last-child { grid-column: span 1; aspect-ratio: 4 / 3; }
  .city-card .content { padding: 24px; }
  .city-card .nm { font-size: 30px; margin-bottom: 10px; }
  .city-card .kj { font-size: 38px; }
  .city-card .desc { font-size: 12px; max-width: 28ch; }
  .city-card .stats { gap: 22px; padding-top: 12px; }
  .city-card .stats .item strong { font-size: 16px; }

  /* Admin tiles */
  .admin-grid { grid-template-columns: 1fr; }
  .admin-tile { padding: 20px 22px; gap: 16px; }
  .admin-tile .kj { font-size: 42px; }
  .admin-tile .nm { font-size: 24px; }
  .admin-tile .sub { font-size: 12px; margin-bottom: 8px; }
  .admin-tile .meta { font-size: 9px; }

  /* Must-do cards */
  .must-grid { grid-template-columns: 1fr; }
  .must-card { padding: 22px 22px 24px; min-height: 200px; }
  .must-card .kj-mark { font-size: 64px; margin: 20px 0; }
  .must-card .placeholder { font-size: 15px; }
  .must-card .num { font-size: 9px; }

  /* Train route */
  .route-stop { flex: 0 0 175px; padding: 20px 20px 22px; }
  .route-leg { flex: 0 0 120px; padding: 0 6px; }
  .rs-num { font-size: 9px; margin-bottom: 12px; }
  .rs-kanji { font-size: 46px; margin-bottom: 14px; }
  .rs-name { font-size: 22px; margin-bottom: 10px; }
  .route-stop.airport .rs-name { font-size: 18px; }
  .rs-meta { font-size: 9px; }
  .rl-mode { font-size: 8px; }
  .rl-time { font-size: 14px; }

  /* Sub-hero (city/flights/info pages) */
  .sub-hero { height: 56vh; min-height: 340px; padding: 0 var(--shell-pad) 36px; }
  .sub-hero h1 { font-size: clamp(40px, 12vw, 84px); }
  .sub-hero .lede { font-size: 15px; }

  /* Facts strip · sub-hero */
  .facts-strip { grid-template-columns: 1fr 1fr; }

  /* Weather */
  .weather { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .w-icon { width: 52px; height: 52px; }
  .w-info { grid-template-columns: 1fr 1fr; gap: 18px; }
  .w-cell .lbl { font-size: 9px; }
  .w-cell .val { font-size: 22px; }

  /* Stay cards */
  .stay { padding: 20px 18px; }
  .stay-top { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; }
  .stay-dates { text-align: left; }
  .stay-name { font-size: 21px; }
  .stay-name .area { font-size: 9px; margin-bottom: 6px; }
  .stay-dates strong { font-size: 17px; }
  .stay-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .sg-cell .val { font-size: 13px; }
  .stay-extra { gap: 16px; padding-top: 14px; font-size: 10.5px; }
  .stay-details .row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; font-size: 12.5px; }
  .btn-pdf, .btn-toggle { padding: 9px 14px; font-size: 9px; gap: 10px; }

  /* Flight data block */
  .data { grid-template-columns: 1fr 1fr; }
  .data .c { padding: 18px 16px; }
  .data .c .v { font-size: 17px; }

  /* Info cards */
  .info-grid { grid-template-columns: 1fr; }
  .info-card { padding: 22px 22px; }
  .info-card h5 { font-size: 17px; }
  .info-card p, .info-card li { font-size: 13px; }

  /* Phrases */
  .phrases .row { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .phrases .jp { font-size: 21px; }
  .phrases .ro { font-size: 11px; }
  .phrases .en { font-size: 14px; }

  /* Coming soon banner */
  .coming-soon { padding: 56px 26px; }
  .coming-soon h3 { font-size: 26px; }
  .cs-kanji { font-size: 48px; margin-bottom: 16px; }
  .cs-tag { font-size: 9.5px; }
  .cs-desc { font-size: 13px; }

  /* Subtabs (info page) */
  .subtabs { padding: 0 var(--shell-pad); }
  .subtabs a { padding: 14px 12px; font-size: 8.5px; letter-spacing: 0.18em; }

  /* Footer */
  .footer { padding: 40px var(--shell-pad); gap: 18px; }
  .footer .l { font-size: 14px; }
  .footer .mark { font-size: 18px; }
  .footer .r { font-size: 8.5px; line-height: 1.9; }

  /* Tables */
  .tbl .row { padding: 14px 0; gap: 16px; }
  .tbl .row > div { font-size: 13px; }
  .tbl .row .mono { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════
   CALENDAR · 暦
═══════════════════════════════════════════════════ */

/* ─── Toolbar (sticky under topnav) ─── */
.cal-toolbar {
  position: sticky;
  top: var(--topnav-h);
  z-index: 100;
  background: rgba(8,7,10,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
  padding: 16px var(--shell-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cal-toolbar-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-toolbar-r { display: flex; align-items: center; gap: 12px; }

.cal-print-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cal-print-link .ico { font-size: 13px; }
.cal-print-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
@media (max-width: 720px) {
  .cal-print-link .lbl { display: none; }
  .cal-print-link { padding: 7px 10px; }
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cal-nav-btn .arrow {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  color: var(--accent);
  line-height: 0.6;
  transition: transform 0.25s var(--ease);
}
.cal-nav-btn .lbl { padding-top: 1px; }
.cal-nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
#cal-prev:hover .arrow { transform: translateX(-3px); }
#cal-next:hover .arrow { transform: translateX(3px); }

.cal-today-btn {
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cal-today-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

/* Segmented switcher (Month / Week / Day) */
.cal-switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
}
.cal-switcher button {
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.cal-switcher button:last-child { border-right: 0; }
.cal-switcher button:hover { color: var(--ink); background: rgba(255,255,255,0.03); }
.cal-switcher button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ─── Legend strip ─── */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cal-legend-item { display: inline-flex; align-items: center; gap: 9px; }
.cal-legend-item .dot {
  width: 9px; height: 9px;
  background: var(--lc);
  box-shadow: 0 0 10px var(--lc);
  border-radius: 50%;
}
.cal-legend-sep { color: var(--ink-4); }
.cal-legend-cats { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cal-legend-cats .cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.cal-legend-cats .cat-tag::first-letter {
  color: var(--accent);
  font-family: var(--serif);
  margin-right: 6px;
  font-size: 13px;
  letter-spacing: 0;
}
.cal-legend-cats .cat-tag:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.cal-legend-cats .cat-tag.inactive {
  opacity: 0.4;
  color: var(--ink-4);
  border-color: var(--line-2);
  background: transparent;
}
.cal-legend-cats .cat-tag.inactive::first-letter {
  color: var(--ink-4);
}
.cal-legend-cats .cat-reset {
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px dashed var(--accent);
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.cal-legend-cats .cat-reset:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ─── Main grid wrap ─── */
.cal-section { padding-top: 28px; padding-bottom: 80px; }
.cal-grid {
  transition: opacity 0.22s var(--ease), transform 0.32s var(--ease);
  will-change: transform, opacity;
}
.cal-grid.cal-fading      { opacity: 0; transform: translateY(6px); }
.cal-grid.cal-exit-left   { opacity: 0; transform: translateX(-32px); }
.cal-grid.cal-exit-right  { opacity: 0; transform: translateX(32px); }
.cal-grid.cal-enter-right { opacity: 0; transform: translateX(32px); }
.cal-grid.cal-enter-left  { opacity: 0; transform: translateX(-32px); }

.cal-keys {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
}
.cal-keys kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 2px 7px;
  margin: 0 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  background: var(--bg-2);
}

/* ─── Month view ─── */
.cal-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.cal-month-head-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-month-head-cell .en {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cal-month-head-cell .jp {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-3);
  opacity: 0.7;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(118px, 1fr);
  border-left: 1px solid var(--line-2);
}
.cal-month-cell {
  position: relative;
  padding: 10px 12px 12px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  --day-color: transparent;
  transition: background 0.25s var(--ease);
}
.cal-month-cell.off-month { background: var(--bg); opacity: 0.35; }
.cal-month-cell.off-trip:not(.off-month) { opacity: 0.45; }
.cal-month-cell.in-trip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--day-color);
}
.cal-month-cell.in-trip:hover {
  background: color-mix(in srgb, var(--day-color) 6%, var(--bg));
}
.cal-month-cell.travel-day::after {
  content: '✈';
  position: absolute;
  top: 8px; right: 36px;
  font-size: 11px;
  color: var(--day-color);
  opacity: 0.7;
}

.cal-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cal-cell-date {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1;
}
.cal-month-cell.in-trip .cal-cell-date { color: var(--day-color); }
.cal-cell-jp {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--ink-3);
  opacity: 0.65;
}
.cal-cell-city {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-cell-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.cal-cell-more {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 2px 0;
  transition: color 0.2s var(--ease);
}
.cal-cell-more:hover { color: var(--accent); }

/* ─── Event chips (used in Month + Agenda) ─── */
.cal-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 5px;
  background: color-mix(in srgb, var(--chip-color, var(--accent)) 10%, transparent);
  border-left: 2px solid var(--chip-color, var(--accent));
  text-align: left;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  border-radius: 1px;
  width: 100%;
  min-width: 0;
}
.cal-chip:hover {
  background: color-mix(in srgb, var(--chip-color, var(--accent)) 22%, transparent);
  transform: translateX(2px);
}
.cal-chip-time {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chip-color, var(--accent));
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.cal-chip-title {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* ─── Week view ─── */
.cal-week {
  border: 1px solid var(--line-2);
  background: var(--bg);
}
.cal-week-head {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.cal-week-head-cell {
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--line-2);
  --day-color: var(--ink-3);
  transition: background 0.2s var(--ease);
}
.cal-week-head-cell:last-child { border-right: 0; }
.cal-week-head-cell.off-trip { opacity: 0.4; }
.cal-week-head-cell:hover.in-trip { background: color-mix(in srgb, var(--day-color) 8%, transparent); }
.cal-week-head-cell .cal-wd-jp {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--day-color);
  opacity: 0.8;
}
.cal-week-head-cell .cal-wd-en {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.cal-week-head-cell .cal-wd-num {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--day-color);
  margin-top: 6px;
  line-height: 1;
}

.cal-week-allday {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.cal-allday-label,
.cal-day-allday-label {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cal-week-allday-slot {
  padding: 8px 8px;
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 32px;
}

.cal-week-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  position: relative;
  --hour-height: 44px;
  min-height: calc(var(--hour-count) * var(--hour-height));
}
.cal-week-gutter {
  position: relative;
}
.cal-week-hour {
  height: var(--hour-height);
  padding: 4px 10px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-align: right;
  border-top: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.cal-week-col {
  position: relative;
  border-left: 1px solid var(--line-2);
  --day-color: var(--ink-4);
}
.cal-week-col.off-trip { background: rgba(255,255,255,0.005); }
.cal-week-hour-line {
  height: var(--hour-height);
  border-top: 1px solid var(--line-2);
}

/* Timed event blocks (Week + Day) */
.cal-block {
  position: absolute;
  left: 4px; right: 4px;
  min-height: 54px;     /* ensure time + title always fit even for short events */
  padding: 6px 10px;
  text-align: left;
  background: color-mix(in srgb, var(--block-color, var(--accent)) 18%, var(--bg-2));
  border-left: 2px solid var(--block-color, var(--accent));
  overflow: hidden;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  border-radius: 1px;
}
.cal-block:hover {
  background: color-mix(in srgb, var(--block-color, var(--accent)) 30%, var(--bg-2));
  transform: translateY(-1px);
}
.cal-block-time {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--block-color, var(--accent));
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cal-block-title {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 3px;
  letter-spacing: -0.005em;
}
.cal-block-loc {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Day view ─── */
.cal-day-banner {
  padding: 26px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--day-color, var(--accent));
  margin-bottom: 24px;
}
.cal-day-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--day-color, var(--accent));
  margin-bottom: 10px;
}
.cal-day-date {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.cal-day-stay {
  font-family: var(--italic);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 6px;
}

.cal-day-allday {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  margin-bottom: 14px;
}
.cal-day-allday-inner {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line-2);
}

.cal-day-grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  border: 1px solid var(--line-2);
  background: var(--bg);
  --hour-height: 52px;
  min-height: calc(var(--hour-count) * var(--hour-height));
}
.cal-day-col {
  position: relative;
  border-left: 1px solid var(--line-2);
}
.cal-day-empty {
  margin-top: 30px;
  padding: 60px 20px;
  text-align: center;
  font-family: var(--italic);
  font-style: italic;
  color: var(--ink-3);
  font-size: 16px;
  border: 1px dashed var(--line);
}

/* ─── Mobile agenda (replaces Month on small screens) ─── */
.cal-agenda { display: flex; flex-direction: column; }
.cal-agenda-day {
  border-bottom: 1px solid var(--line-2);
  padding: 16px 0 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  --day-color: var(--ink-3);
}
.cal-agenda-day:first-child { border-top: 1px solid var(--line-2); }
.cal-agenda-hd { position: relative; padding-left: 10px; }
.cal-agenda-hd::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--day-color);
}
.cal-agenda-date .num {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--day-color);
  line-height: 1;
}
.cal-agenda-date .wd {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}
.cal-agenda-city {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.cal-agenda-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-agenda-empty {
  font-family: var(--italic);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-4);
  padding: 4px 0;
}
.cal-agenda-day.travel-day .cal-agenda-hd::after {
  content: '✈';
  position: absolute;
  right: -4px; top: 0;
  font-size: 10px;
  color: var(--day-color);
  opacity: 0.6;
}

/* ─── Modal ─── */
.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8,7,10,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.cal-modal.open { display: flex; }
.cal-modal.visible { opacity: 1; }

.cal-modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--modal-color, var(--accent));
  padding: 36px 36px 32px;
  transform: translateY(16px) scale(0.99);
  opacity: 0;
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}
.cal-modal.visible .cal-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
body.cal-modal-locked { overflow: hidden; }

.cal-modal-watermark {
  position: absolute;
  right: 18px; top: 6px;
  font-family: var(--serif);
  font-size: 140px;
  color: var(--modal-color, var(--accent));
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cal-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}
.cal-modal-close:hover { color: var(--ink); transform: scale(1.08); }

.cal-modal-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--modal-color, var(--accent));
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cal-modal-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--modal-color, var(--accent));
  opacity: 0.55;
}
.cal-modal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.cal-modal-meta {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 6px 0;
  margin-bottom: 22px;
}
.cal-modal-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.cal-modal-row:last-child { border-bottom: 0; }
.cal-modal-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 2px;
}
.cal-modal-row .v { color: var(--ink-2); line-height: 1.55; }
.cal-modal-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 22px;
}
.cal-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cal-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--modal-color, var(--accent));
  border: 1px solid var(--modal-color, var(--accent));
  background: transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.cal-modal-link:hover {
  background: color-mix(in srgb, var(--modal-color, var(--accent)) 10%, transparent);
  transform: translateY(-1px);
}
.cal-modal-link .arr { font-family: var(--serif); font-size: 13px; letter-spacing: 0; }
.cal-modal-pdf { /* inherits .btn-pdf, but uses modal color */ }

/* ─── Today highlight (sakura accent · auto-updates at midnight) ─── */
.cal-today-pill {
  display: inline-block;
  padding: 2px 7px 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

/* Month cell */
.cal-month-cell.cal-is-today {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-month-cell.cal-is-today:hover {
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
}
.cal-month-cell.cal-is-today .cal-cell-date { color: var(--accent); }

/* Week head */
.cal-week-head-cell.cal-is-today {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-week-head-cell.cal-is-today .cal-wd-num { color: var(--accent); }
.cal-week-head-cell.cal-is-today .cal-today-pill { margin-top: 6px; font-size: 7.5px; padding: 1px 5px; }

/* Day banner */
.cal-day-banner.cal-is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.cal-day-banner .cal-today-pill { margin-left: 10px; }

/* Mobile agenda row */
.cal-agenda-day.cal-is-today .cal-agenda-hd::before {
  background: var(--accent);
  width: 3px;
  box-shadow: 0 0 8px var(--accent);
}
.cal-agenda-day.cal-is-today .cal-agenda-date .num { color: var(--accent); }
.cal-agenda-day.cal-is-today .cal-today-pill { display: block; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .cal-grid,
  .cal-modal,
  .cal-modal-card,
  .cal-chip,
  .cal-block { transition: none !important; }
}

/* ─── Calendar responsive ─── */
@media (max-width: 1100px) {
  .cal-toolbar { padding: 14px var(--shell-pad); }
  .cal-month-grid { grid-auto-rows: minmax(96px, 1fr); }
}

@media (max-width: 900px) {
  .cal-week-head,
  .cal-week-allday,
  .cal-week-grid { grid-template-columns: 48px repeat(7, minmax(0, 1fr)); }
  .cal-week-head-cell .cal-wd-num { font-size: 18px; }
  .cal-week-head-cell .cal-wd-en { font-size: 8.5px; }
  .cal-block-title { font-size: 12px; }
  .cal-block-loc { display: none; }
}

@media (max-width: 720px) {
  /* Toolbar reflows */
  .cal-toolbar {
    padding: 12px var(--shell-pad);
    gap: 12px;
  }
  .cal-toolbar-l { gap: 8px; flex: 1; }
  .cal-toolbar-r { width: 100%; justify-content: flex-end; }
  .cal-title { font-size: 16px; margin-left: 4px; }
  .cal-nav-btn { padding: 7px 10px; gap: 0; }
  .cal-nav-btn .lbl { display: none; }
  .cal-nav-btn .arrow { font-size: 18px; }
  .cal-today-btn { padding: 7px 12px; font-size: 9px; }
  .cal-switcher button { padding: 7px 14px; font-size: 9px; }

  /* Legend tighter */
  .cal-legend { padding: 16px 0; gap: 14px; font-size: 9px; }
  .cal-legend-cats .cat-tag { font-size: 9px; }

  /* Section */
  .cal-section { padding: 16px 0 60px; }

  /* Week view on mobile becomes scrollable */
  .cal-week { overflow-x: auto; }
  .cal-week-head,
  .cal-week-allday,
  .cal-week-grid { min-width: 720px; }

  /* Day view */
  .cal-day-banner { padding: 18px 20px; margin-bottom: 16px; }
  .cal-day-date { font-size: 22px; }
  .cal-day-stay { font-size: 14px; }
  .cal-day-grid { --hour-height: 44px; grid-template-columns: 44px minmax(0, 1fr); }
  .cal-day-allday { grid-template-columns: 44px minmax(0, 1fr); }

  /* Modal full-bleed */
  .cal-modal { padding: 0; align-items: flex-end; }
  .cal-modal-card {
    max-height: 90vh;
    max-width: 100%;
    padding: 28px 24px 32px;
    border-top: 3px solid var(--modal-color, var(--accent));
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    transform: translateY(40px);
  }
  .cal-modal-watermark { font-size: 100px; right: 12px; top: 4px; }
  .cal-modal-title { font-size: 22px; margin-bottom: 16px; }
  .cal-modal-row { grid-template-columns: 80px 1fr; gap: 10px; padding: 10px 0; font-size: 13px; }
  .cal-modal-actions { flex-direction: column; align-items: stretch; }
  .cal-modal-link { justify-content: center; }

  .cal-keys { display: none; }
}
