/* fromtokyodaytrip.com — Shinkansen blue editorial theme */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@400;600;700&display=optional');

:root {
  --bg:        #fafaf8;
  --bg-alt:    #f2f0eb;
  --border:    #dedad4;
  --text:      #1c1b18;
  --muted:     #5a5751;
  --accent:    #1a4d8f;
  --accent-lt: #e8eef7;
  --warn:      #9a6809;
  --highlight: #fde68a;
  --highlight-strong: #fbd35a;
  --serif:     'Fraunces', Georgia, serif;
  --sans:      'Source Sans 3', system-ui, sans-serif;
  --max:       820px;
  --wide:      1120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
}
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .25em; }

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex; align-items: center;
}
.site-header-inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.site-logo span { color: var(--accent); }
.header-nav { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.header-nav a {
  font-size: .85rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  letter-spacing: .02em;
}
.header-nav a:hover { color: var(--accent); }

/* =========================================================
   ANCHOR NAV
   ========================================================= */
.anchor-nav {
  position: sticky; top: 52px; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav-list {
  max-width: var(--wide); margin: 0 auto;
  padding: 0 1.5rem;
  display: inline-flex; gap: .15rem;
  list-style: none; min-width: 100%;
}
.anchor-nav-list li { flex-shrink: 0; padding: 0; margin: 0; }
.anchor-nav-list li::before { content: none; }
.anchor-link {
  display: inline-block;
  padding: .55rem .8rem;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, opacity .15s;
  opacity: .55; white-space: nowrap;
}
.anchor-link:hover { color: var(--accent); border-bottom-color: var(--accent); opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 4rem 1.5rem 3rem;
  max-width: var(--max); margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-deck {
  font-size: 1.15rem; color: var(--muted);
  max-width: 600px; margin: 0 auto 1.5rem;
}
.hero-byline {
  font-size: .82rem; color: var(--muted);
  letter-spacing: .04em;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.75rem;
  background: var(--accent); color: #fff;
  padding: .75em 1.6em; border-radius: 4px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  transition: opacity .2s;
}
.hero-cta:hover { opacity: .88; color: #fff; }

/* =========================================================
   FACTS BAR
   ========================================================= */
.facts-bar {
  background: var(--text); color: #fff;
  padding: 1.5rem 1.5rem;
}
.facts-bar-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.fact { min-width: 0; text-align: center; }
.fact-num {
  font-family: var(--serif);
  font-size: 1.9rem; font-weight: 900;
  color: var(--highlight);
  line-height: 1;
}
.fact-label {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: .35rem;
  overflow-wrap: anywhere;
}

/* =========================================================
   INLINE U-LINKS (yellow highlighter)
   ========================================================= */
.u-link {
  position: relative;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  padding: 0 .12em;
  background-image: linear-gradient(to top,
    transparent .15em,
    var(--highlight) .15em,
    var(--highlight) 1.05em,
    transparent 1.05em);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: color .15s, background-image .15s;
}
.u-link:hover {
  color: var(--accent);
  background-image: linear-gradient(to top,
    transparent .15em,
    var(--highlight-strong) .15em,
    var(--highlight-strong) 1.05em,
    transparent 1.05em);
}

/* =========================================================
   SECTION SHELLS
   ========================================================= */
.section { padding: 3.5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-wide { max-width: var(--wide); margin: 0 auto; }

.section-label {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
  display: block;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 1rem;
}
h3 {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: .5rem;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   TLDR CALLOUT
   ========================================================= */
.tldr-box {
  background: var(--accent-lt);
  border-left: 4px solid var(--accent);
  padding: 1.4rem 1.6rem;
  border-radius: 0 6px 6px 0;
  margin-top: 1.25rem;
}
.tldr-box ul { padding-left: 1.2em; }
.tldr-box li { margin-bottom: .5em; font-size: 1.05rem; }

/* =========================================================
   TOP DESTINATIONS LIST
   ========================================================= */
.dest-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.dest-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.dest-item:first-child { border-top: 1px solid var(--border); }
.dest-num {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 900;
  color: var(--border); line-height: 1;
  padding-top: .2rem;
}
.dest-body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.dest-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .6rem; }
.chip {
  display: inline-block;
  padding: .2em .65em;
  font-size: .75rem; font-weight: 600;
  border-radius: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.chip.accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
}
.chip.accent:hover { opacity: .85; }
.dest-body p { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }

/* =========================================================
   HIDDEN GEMS GRID
   ========================================================= */
.gem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.gem-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}
.gem-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.gem-card p { font-size: .87rem; color: var(--muted); margin-bottom: .75rem; }
.gem-card .chip.accent { display: block; text-align: center; }

/* =========================================================
   PERSONA GRID
   ========================================================= */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.persona-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}
.persona-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.persona-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.persona-card ul { font-size: .87rem; color: var(--muted); }
.persona-card li { margin-bottom: .3em; }
.persona-card .chip.accent { margin-top: .75rem; text-align: center; display: block; }

/* =========================================================
   SEASON GUIDE
   ========================================================= */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.season-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.season-head {
  background: var(--accent); color: #fff;
  padding: .75rem 1rem;
  font-weight: 700; font-size: .95rem;
}
.season-body {
  padding: 1rem;
  font-size: .87rem; color: var(--muted);
}
.season-body ul { padding-left: 1.1em; }
.season-body li { margin-bottom: .3em; }
.season-body .chip.accent { margin-top: .75rem; display: block; text-align: center; }

/* =========================================================
   LOGISTICS TABLE
   ========================================================= */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
thead th {
  text-align: left; padding: .7rem .9rem;
  border-bottom: 2px solid var(--border);
  font-weight: 700; white-space: nowrap;
  background: var(--bg-alt);
  cursor: pointer;
}
thead th:hover { color: var(--accent); }
thead th.sorted-asc::after { content: ' ↑'; font-size: .8em; }
thead th.sorted-desc::after { content: ' ↓'; font-size: .8em; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
tbody td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
td .dest-badge {
  display: inline-block;
  padding: .15em .5em;
  font-size: .72rem; font-weight: 700;
  border-radius: 3px;
  white-space: nowrap;
}
td .dest-badge.hakone { background: #e0edda; color: #2d6a2d; }
td .dest-badge.kamakura { background: #dde8f8; color: #1a4d8f; }
td .dest-badge.fuji { background: #fae8e0; color: #8b2500; }
td .dest-badge.nikko { background: #f5e8d0; color: #7a4800; }
td .dest-badge.kyoto { background: #eeddf0; color: #5e2d6e; }
td .dest-badge.other { background: var(--bg-alt); color: var(--muted); }
.tour-row-hidden { display: none; }
.book-cta {
  display: inline-block;
  padding: .25em .7em;
  background: var(--accent); color: #fff;
  border-radius: 3px; font-weight: 700; font-size: .82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.book-cta:hover { opacity: .85; color: #fff; }
.tc-name a {
  color: var(--text); text-decoration: none; font-weight: 600;
}
.tc-name a:hover { color: var(--accent); }

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar { padding: 1.25rem 0; }
.filter-group { margin-bottom: .9rem; }
.filter-group-label {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
  display: block;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip {
  padding: .35em .85em;
  font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  background: transparent; color: var(--muted);
  cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}

/* =========================================================
   PICK CARDS
   ========================================================= */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.pick-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.pick-img-link { display: block; }
.pick-card img { width: 100%; height: 180px; object-fit: cover; }
.pick-body {
  padding: 1rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.pick-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.badge {
  display: inline-block;
  padding: .15em .5em;
  font-size: .72rem; font-weight: 700;
  border-radius: 3px; white-space: nowrap;
}
.badge-sell  { background: #fee2e2; color: #b91c1c; }
.badge-offer { background: #fef3c7; color: #92400e; }
.badge-priv  { background: #ede9fe; color: #5b21b6; }
.badge-skip  { background: #d1fae5; color: #065f46; }
.badge-inst  { background: #e0f2fe; color: #0369a1; }
.badge-free  { background: #f0fdf4; color: #166534; }
.pick-title { font-family: var(--serif); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.pick-title a { color: var(--text); text-decoration: none; }
.pick-title a:hover { color: var(--accent); }
.pick-meta { font-size: .83rem; color: var(--muted); margin-bottom: .5rem; }
.pick-price { font-size: .9rem; font-weight: 700; margin-bottom: auto; }
.pick-book {
  display: block;
  margin-top: 1rem;
  padding: .6em 1em;
  background: var(--accent); color: #fff;
  border-radius: 4px; font-weight: 700; font-size: .87rem;
  text-decoration: none; text-align: center;
  transition: opacity .2s;
}
.pick-book:hover { opacity: .85; color: #fff; }

/* =========================================================
   COUNT BAR + ZERO-MATCH BANNER
   ========================================================= */
.count-bar {
  font-size: .85rem; color: var(--muted);
  margin-bottom: .75rem;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .78rem; letter-spacing: .04em;
}
.topic-banner {
  display: none;
  background: var(--warn);
  color: #fff;
  padding: .9rem 1.2rem;
  border-radius: 5px;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.topic-banner.visible { display: block; }

/* =========================================================
   COMMUNITY VOICES
   ========================================================= */
.pullquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-lt);
  border-radius: 0 6px 6px 0;
}
.pullquote p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.pullquote cite { font-size: .82rem; color: var(--muted); }
.testimonials { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
}
.testimonial-text { font-size: .9rem; margin-bottom: .4rem; }
.testimonial-attr { font-size: .78rem; color: var(--muted); }

/* =========================================================
   RED FLAGS
   ========================================================= */
.flag-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none; padding: 0;
  margin-top: 1.5rem;
}
.flag-item {
  background: #fff8f0;
  border: 1px solid #f9c376;
  border-radius: 6px;
  padding: 1rem 1.1rem;
}
.flag-item strong { display: block; margin-bottom: .3rem; color: var(--warn); font-size: .95rem; }
.flag-item p { font-size: .87rem; color: var(--muted); margin: 0; }

/* =========================================================
   TOURS CTA SECTION
   ========================================================= */
.tours-cta-box {
  background: var(--accent-lt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
}
.tours-cta-box h3 { margin-bottom: .75rem; }
.tours-cta-box ul { margin-bottom: 1.25rem; }
.tours-cta-box li { font-size: .95rem; margin-bottom: .5rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-family: var(--sans); font-size: .97rem; font-weight: 700;
  color: var(--text); line-height: 1.4;
  position: relative;
}
.faq-question::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent); font-weight: 400;
  transition: transform .2s;
}
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner { padding: 0 0 1rem; font-size: .92rem; color: var(--muted); }
.faq-answer-inner p { margin-bottom: .6rem; }
.faq-answer-inner a { color: var(--accent); }
.faq-item.open .faq-answer { max-height: 800px; }

/* =========================================================
   METHODOLOGY BOX
   ========================================================= */
.methodology-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
  font-size: .87rem; color: var(--muted);
  margin-top: 2rem;
}
.methodology-box h4 { font-size: .9rem; margin-bottom: .5rem; color: var(--text); }

/* =========================================================
   FLOATING PLAN PILL
   ========================================================= */
.plan-pill {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
  background: var(--accent); color: #fff;
  padding: .7em 1.3em; border-radius: 40px;
  font-weight: 700; font-size: .88rem;
  text-decoration: none;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  transform: translateY(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.plan-pill.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.plan-pill:hover { color: #fff; opacity: .88; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.site-footer-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--serif); font-weight: 700;
  color: #fff; margin-bottom: .75rem; font-size: .95rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .87rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--wide); margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; color: rgba(255,255,255,.45);
}

/* =========================================================
   CATALOGUE PAGE SPECIFICS
   ========================================================= */
.catalogue-hero {
  padding: 2.5rem 1.5rem 1.5rem;
  max-width: var(--wide); margin: 0 auto;
}
.catalogue-hero h1 {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900; margin-bottom: .5rem;
}
.catalogue-hero p { font-size: .95rem; color: var(--muted); }
.catalogue-intro {
  background: var(--accent-lt);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.4rem;
  border-radius: 0 5px 5px 0;
  font-size: .92rem;
  margin: 1rem 0;
}

/* =========================================================
   BACK-NAV
   ========================================================= */
.back-nav {
  padding: .6rem 1.5rem;
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
}
.back-nav a { color: var(--muted); text-decoration: none; }
.back-nav a:hover { color: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .site-header-inner { padding: 0 1rem; }
  .header-nav { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .facts-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.5rem 1rem; }
  .dest-item { grid-template-columns: 2rem 1fr; gap: 0 .75rem; }
  .dest-num { font-size: 1.2rem; }
  .picks-grid { grid-template-columns: 1fr; }
  table { font-size: .82rem; }
  tbody td, thead th { padding: .5rem .6rem; }
  .plan-pill { bottom: 1rem; right: 1rem; }
  .catalogue-hero { padding: 1.75rem 1rem 1rem; }
  .anchor-nav-list { padding: 0 1rem; }
  .filter-chips { gap: .3rem; }
  .filter-chip { padding: .3em .7em; font-size: .78rem; }
}
