:root {
  --cream: #EAF2FF;
  --cream-deep: #EEDAAE;
  --navy: #202147;
  --navy-deep: #181933;
  --red: #E13A4B;
  --ink: #202147;
  --on-navy: #F1E9D6;
  --font-display: 'Zen Dots', 'Bungee', system-ui, sans-serif;
  --font-body: 'Tirra', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 44px; }
h3 { font-size: 24px; }
p, li, .btn { font-family: var(--font-body); }
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  h2 { font-size: 30px; }
}
p { line-height: 1.65; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 0.75em;
}
.eyebrow--navy { color: #E88787; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary, .header-cta, .nav-cta, .footer-book-btn {
  background: var(--red);
  color: var(--cream);
}
.btn--primary:hover, .header-cta:hover, .nav-cta:hover, .footer-book-btn:hover {
  transform: translateY(-2px);
  background: #a92f2f;
}
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(234, 242, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
}
.nav-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--red); }
.nav-links .nav-cta { display: none; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-grid { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    border-bottom: 3px solid var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links a:not(.btn) {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(27,31,59,0.12);
  }
  .nav-links .nav-cta {
    display: inline-block;
    margin: 16px 24px 20px;
    color: var(--cream);
  }
}

/* ---------- Bands ---------- */
.band { position: relative; overflow: hidden; padding: 64px 0; }
.band--cream { background: var(--cream); color: var(--ink); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--navy h2, .band--navy h3 { color: var(--on-navy); }
.section-lede { max-width: 700px; font-size: 19px; line-height: 1.55; opacity: 0.9; }
@media (max-width: 640px) { .section-lede { font-size: 17px; } }

/* ---------- Corner branch ---------- */
.corner-branch {
  position: absolute;
  width: 90px;
  height: auto;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}
.corner-branch--tl { top: 0; left: 24px; }
.corner-branch--tr { top: 0; right: 24px; transform: scaleX(-1); }
@media (max-width: 640px) {
  .corner-branch { width: 56px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 0; padding-bottom: 0; background: #EAF2FF; }
.hero-stamps {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/stamps.webp');
  background-size: 420px auto;
  background-repeat: repeat;
  background-position: center top;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.3fr;
  align-items: stretch;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  padding-right: 20px;
}
.hero-copy .eyebrow { margin-bottom: 0.4em; }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-sub { font-size: 1rem; font-weight: 600; margin: 0 0 0.4em; }
.hero-body { max-width: 44ch; font-size: 14px; line-height: 1.4; opacity: 0.85; margin: 0 0 0.6em; }
.hero-actions { display: flex; gap: 16px; margin-top: 0.8em; flex-wrap: wrap; }
.hero-scene { position: relative; width: 100%; height: 100%; }
.hero-scene picture { display: contents; }
.scene-banner { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scene { order: -1; height: 320px; }
  .scene-banner { object-fit: cover; }
  .hero-copy { padding-top: 32px; padding-bottom: 32px; }
}

/* ---------- Hero widget band ---------- */
.hero-widget-band {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid rgba(32,33,71,0.08);
}
.hero-widget-band .wrap { max-width: 1320px; padding: 28px 32px 20px; }
#firebird-search-widget { min-height: 64px; }

/* ---------- Route facts band ---------- */
.route-facts-band { background: #EAF2FF; padding: 40px 0 16px; }
.route-facts-band h2 { font-size: 30px; margin-bottom: 28px; }
.route-facts-card {
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 28px 32px;
  background: #fff;
}
.route-facts-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .route-facts-band { padding: 32px 0; }
  .route-facts-card { padding: 20px; }
}

/* ---------- Dividers ---------- */
.divider { position: relative; height: 140px; }
.divider svg.divider-ridge-svg, .divider > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.divider-torii {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 62px;
  fill: var(--red);
  z-index: 2;
}
.divider--to-navy { background: var(--cream); }
.divider--to-navy .divider-ridge { fill: var(--navy); }
.divider--to-cream { background: var(--navy); }
.divider--to-cream .divider-ridge { fill: var(--cream); }
@media (max-width: 640px) {
  .divider { height: 90px; }
  .divider-torii { width: 50px; height: 42px; }
}

.divider--illustrated { height: auto; aspect-ratio: 6912 / 1912; }
.divider--illustrated img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; margin-top: 32px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
@media (max-width: 900px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card-grid--4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: 26px;
  border-radius: 4px;
  border: 1px solid rgba(241,233,214,0.12);
}
.band--cream .card { background: var(--navy); }
.card-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(194,59,59,0.15);
  border: 1px solid rgba(194,59,59,0.5);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.card p { opacity: 0.85; font-size: 0.95rem; margin: 0.6em 0 0; }
.card h3 { margin-bottom: 0.3em; }

/* ---------- Photo cards ---------- */
.card.card--photo {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  border: none;
  box-shadow: 0 10px 30px rgba(23,21,26,0.12);
}
.card-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card--photo .card-body { padding: 22px; }
.card--photo .card-body h3 { color: var(--ink); }
.card--photo .card-body p { opacity: 0.7; }
.card--photo .card-label { margin-bottom: 12px; }
#nozomi-classes .card-body h3,
#hikari-classes .card-body h3,
#kodama-classes .card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: normal;
}

.card--train .spec-list {
  list-style: none;
  margin: 18px 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(32,33,71,0.12);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(32,33,71,0.08);
}
.spec-list li span { opacity: 0.6; flex-shrink: 0; }
.spec-list li strong { text-align: right; }
.card-note { font-size: 0.88rem; }

.feature-list { list-style: none; margin: 12px 0 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.75;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.card-photo--placeholder {
  background: linear-gradient(135deg, var(--cream-deep), var(--cream));
}

/* ---------- Compare table ---------- */
.compare-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid rgba(32,33,71,0.1);
  border-radius: 16px;
  background: #fff;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45;
  vertical-align: top;
}
.compare-table thead th {
  background: #F0F1F5;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.compare-table tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.compare-table th:first-child, .compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}
.compare-table thead th:first-child { background: #F0F1F5; }
.compare-table tbody th:first-child { background: #fff; }
.compare-table tbody td { color: var(--ink); opacity: 0.75; }
.compare-table tbody tr:not(:last-child) th,
.compare-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(32,33,71,0.08);
}
.pass-note {
  margin-top: 24px;
  font-size: 0.92rem;
  opacity: 0.75;
  max-width: 70ch;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

/* ---------- Route map ---------- */
.route-map { margin: 56px 0 8px; overflow-x: auto; }
.route-map picture, .route-map img { display: block; }
.route-map img { width: 100%; min-width: 640px; height: auto; }

/* ---------- The View ---------- */
.view-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 40px; align-items: start; }
.fact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.fact-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(241,233,214,0.15);
  font-size: 0.98rem;
  opacity: 0.92;
}
.fact-list li:last-child { border-bottom: 1px solid rgba(241,233,214,0.15); }
.fuji-scene { position: relative; margin-top: 32px; aspect-ratio: 600 / 260; overflow: hidden; }
.fuji-scene img { position: absolute; max-width: none; }
.fuji-scene-sun { top: -10%; right: 12%; width: 32%; }
.fuji-scene-mountain { bottom: -10%; left: -6%; width: 46%; filter: invert(1); }

.scenery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scenery-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23,21,26,0.12);
}
.scenery-card picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.scenery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scenery-card p {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 860px) {
  .view-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.accordion { margin-top: 40px; }
.accordion details {
  border-bottom: 2px solid rgba(27,31,59,0.15);
  padding: 20px 0;
}
.accordion summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: var(--red);
}
.accordion details[open] summary::after { content: '–'; }
.accordion p { margin: 14px 0 0; opacity: 0.85; max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 40px; }
.footer-widget-wrap {
  background: var(--navy-deep);
  border: 1px solid rgba(241,233,214,0.15);
  border-radius: 6px;
  padding: 36px;
  margin-bottom: 48px;
  text-align: center;
}
.footer-widget-wrap h2 { margin-bottom: 20px; }
.site-footer p { font-size: 0.85rem; opacity: 0.65; max-width: 80ch; }
.site-footer a.affiliate-clk:not(.btn) { text-decoration: underline; }

/* ---------- Legal page ---------- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 60px 24px 100px; font-family: var(--font-body); }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; }
.legal-page h2 { font-family: var(--font-body); font-size: 1.15rem; margin-top: 2em; }
.legal-back { display: inline-block; margin-bottom: 30px; text-decoration: none; font-weight: 600; color: var(--red); }
