:root {
  --ink: #172033;
  --rail: #1769e0;
  --rail-dark: #0d4598;
  --coral: #ff6b5e;
  --ticket: #ffd75a;
  --success: #13795b;
  --danger: #b82e3b;
  --paper: #fffdf6;
  --panel: #fff;
  --muted: #59657a;
  --line: #d9e2f0;
  --shadow: 5px 6px 0 var(--ink);
  --radius: 18px;
  --content: 1120px;
  --brush-1: polygon(2% 12%,14% 2%,33% 7%,52% 1%,71% 6%,90% 2%,100% 15%,95% 30%,100% 48%,94% 62%,100% 80%,88% 96%,68% 90%,48% 98%,28% 91%,9% 97%,2% 82%,7% 62%,0% 42%,6% 26%);
  --brush-2: polygon(3% 9%,20% 1%,40% 6%,60% 0%,80% 7%,98% 3%,100% 22%,93% 38%,100% 55%,96% 74%,100% 92%,80% 99%,58% 92%,38% 100%,18% 93%,1% 100%,4% 78%,0% 55%,5% 32%,1% 16%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(255,215,90,.2), transparent 22rem),
    linear-gradient(180deg, #f4f9ff 0, var(--paper) 32rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}
a { color: var(--rail-dark); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--ticket); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,246,.94); border-bottom: 3px solid var(--ink); backdrop-filter: blur(10px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: url("/assets/images/logo-mark.svg") no-repeat center / contain; }
.brand span:last-child { font-size: 1.05rem; letter-spacing: -.01em; }
.site-nav { display: flex; gap: .25rem; align-items: center; }
.site-nav a { padding: .55rem .75rem; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover { background: #e6f1ff; }
.menu-toggle { display: none; min-height: 44px; padding: .45rem .8rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.reading-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 4px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,var(--rail),var(--coral),var(--ticket)); transform: scaleX(0); transform-origin: left; }

.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5.5rem) 0 3.5rem; }
.hero::after { content: ""; position: absolute; inset: auto -4rem 1rem auto; width: 17rem; height: 17rem; border: 3px solid var(--ink); border-radius: 50%; opacity: .08; box-shadow: 0 0 0 24px var(--rail), 0 0 0 48px var(--coral); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 2rem; align-items: center; }
.eyebrow, .station-chip { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; padding: .35rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: .85rem; box-shadow: 2px 2px 0 var(--ink); }
.hero h1 { margin: 1rem 0 .75rem; max-width: 15ch; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.08; letter-spacing: -.04em; }
.hero h1 em { color: var(--rail); font-style: normal; text-decoration: underline 7px var(--ticket); text-underline-offset: .12em; }
.hero-copy { max-width: 42rem; color: #364159; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.hero-proof span { padding: .25rem .65rem; border: 1px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.82); font-size: .82rem; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.btn,
.gsc-cta-main, .gsc-cta-tertiary, .gsc-hero__cta-main, .gsc-hero__cta-ghost {
  position: relative; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.3rem; border: 0; border-radius: 10px; font-weight: 900; text-decoration: none; cursor: pointer;
  clip-path: var(--brush-1); filter: drop-shadow(5px 6px 0 var(--ink)); transition: transform .15s, filter .15s;
}
.btn:hover, .gsc-cta-main:hover, .gsc-cta-tertiary:hover, .gsc-hero__cta-main:hover, .gsc-hero__cta-ghost:hover { transform: translate(-2px,-2px) rotate(-.4deg); filter: drop-shadow(7px 9px 0 var(--ink)); }
.btn-primary { color: #fff; background: var(--rail); }
.btn-secondary { color: var(--ink); background: #fff; }
.hero-art { min-height: 310px; display: grid; place-items: center; }
.manga-guide { width: min(100%, 340px); padding: 1.2rem; transform: rotate(2deg); border: 3px solid var(--ink); border-radius: 48% 48% 18px 18px; background: linear-gradient(145deg,#fff 0 55%,#dcecff 55%); box-shadow: var(--shadow); }
.motion-lines { position: absolute; inset: 10% -25% auto; height: 80%; z-index: -1; opacity: .16; background: repeating-linear-gradient(90deg,transparent 0 16px,var(--rail) 17px 20px); transform: skew(-18deg); animation: speed-lines 3s linear infinite; }
.guide-face { display: block; width: 180px; height: 192px; margin: auto; }
.speech { position: relative; margin: 1rem 0 0; padding: .8rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font-weight: 800; text-align: center; }
.speech::before { content: ""; position: absolute; top: -12px; left: 45%; width: 18px; height: 18px; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); background: #fff; transform: rotate(45deg); }

.rail-progress { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-bottom: 1.25rem; }
.rail-stop { position: relative; text-align: center; color: var(--muted); font-weight: 800; font-size: .82rem; }
.rail-stop::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto .35rem; border: 3px solid var(--rail); border-radius: 50%; background: #fff; }
.rail-stop:not(:last-child)::after { content: ""; position: absolute; top: 8px; left: calc(50% + 12px); width: calc(100% - 24px); height: 4px; background: var(--rail); }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-title { margin: 0 0 .4rem; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; }
.section-lede { margin: 0 0 1.5rem; color: var(--muted); }
.ticket-card { padding: clamp(1.1rem, 3vw, 2rem); border: 3px solid var(--ink); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.calc-layout { display: grid; grid-template-columns: 1fr .85fr; gap: 1.5rem; align-items: start; }
.field-grid { display: grid; gap: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 900; }
.input-wrap { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; overflow: hidden; }
.input-wrap input, .input-wrap select { width: 100%; min-height: 52px; padding: .7rem .85rem; border: 0; background: transparent; color: var(--ink); }
.input-wrap span { padding: 0 .8rem; color: var(--muted); font-weight: 800; }
.field-help { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.field-error { min-height: 1.2em; margin: .25rem 0 0; color: var(--danger); font-weight: 700; font-size: .85rem; }
.calc-submit { width: 100%; margin-top: .5rem; }
.result-card { position: sticky; top: 92px; overflow: hidden; }
.result-card::before { content: "学割 TICKET"; display: block; margin: -2rem -2rem 1.4rem; padding: .65rem 1.2rem; background: var(--ticket); border-bottom: 3px dashed var(--ink); font-weight: 950; letter-spacing: .12em; }
.result-status { display: inline-flex; padding: .25rem .65rem; border: 2px solid currentColor; border-radius: 8px; color: var(--muted); font-weight: 900; transform: rotate(-2deg); }
.result-status.is-valid { color: var(--success); }
.result-status.is-error { color: var(--danger); }
.result-price { margin: .8rem 0; font-size: clamp(2.4rem,6vw,4rem); font-weight: 950; line-height: 1; font-variant-numeric: tabular-nums; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.metric { padding: .7rem; border-radius: 10px; background: #f0f5fb; }
.metric span { display: block; color: var(--muted); font-size: .8rem; }
.metric strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.source-note { margin-top: 1rem; padding: .75rem; border-left: 5px solid var(--rail); background: #edf5ff; font-size: .86rem; }

.ad-zone { min-height: 120px; display: grid; place-items: center; margin: 2.5rem auto; border: 2px dashed #8d99aa; border-radius: 12px; background: #f5f6f7; color: #59616e; text-align: center; }
.ad-zone::before { content: "広告"; display: block; font-size: .72rem; letter-spacing: .2em; }
.ad-zone[data-ad-state="inactive"] .ad-mount { display: none; }
.ad-note { max-width: 35rem; margin: .2rem auto 0; font-size: .75rem; }
.ad-zone[data-ad-state="preview"] { min-height: 280px; border-style: solid; border-color: #8db6e8; background: repeating-linear-gradient(-45deg,#f4f9ff,#f4f9ff 12px,#e9f3ff 12px,#e9f3ff 24px); }
.ad-preview { display: grid; place-items: center; align-content: center; gap: .35rem; min-height: 250px; padding: 1rem; color: #174b88; text-align: center; }
.ad-preview span { padding: .2rem .65rem; border-radius: 999px; background: #1769e0; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.ad-preview strong { font-size: 1rem; overflow-wrap: anywhere; }
.ad-preview small { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.info-card { padding: 1.2rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.info-card h3 { margin-top: 0; }
.steps { counter-reset: station; display: grid; gap: 1rem; padding: 0; list-style: none; }
.steps li { counter-increment: station; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(station); display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; color: #fff; background: var(--rail); font-weight: 950; box-shadow: 2px 2px 0 var(--ink); }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 2rem; }
.article { min-width: 0; }
.article h2 { margin-top: 2.5rem; padding-bottom: .45rem; border-bottom: 4px solid var(--ticket); line-height: 1.35; }
.article h3 { margin-top: 1.7rem; }
.article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article th, .article td { padding: .65rem; border: 1px solid var(--line); }
.article th { background: #eaf3ff; }
.toc { position: sticky; top: 92px; padding: 1rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.site-footer { margin-top: 3rem; padding: 2.5rem 0; color: #eef5ff; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #fff; }
.legal-small { color: #bac7dc; font-size: .8rem; }
.section--ink { color: #fff; background: var(--ink); }
.section--ink .section-lede { color: #c9d6e9; }
.section--ink .station-chip { color: var(--ink); }
.guide-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.guide-link { min-height: 155px; display: grid; align-content: start; gap: .4rem; padding: 1.1rem; border: 2px solid #fff; border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--ticket); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.guide-link:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 6px 9px 0 var(--ticket); }
.guide-link__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .2rem; color: var(--rail); background: #eef6ff; border: 2px solid var(--ink); border-radius: 50% 50% 40% 50%; }
.guide-link strong { line-height: 1.4; }
.guide-link small { color: var(--muted); }

.gsc-guide-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50% 50% 40% 50%; transform: rotate(-2deg); }
.gsc-guide-card__icon svg { transform: rotate(2deg); }
.source-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.update-ticket { align-self: start; padding: 1.25rem; border: 3px solid var(--ink); border-radius: 16px; background: var(--ticket); box-shadow: var(--shadow); transform: rotate(1deg); }
.update-ticket span { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.update-ticket strong { display: block; font-size: 2rem; line-height: 1.3; }

/* Static editorial templates migrated from the WordPress baseline. */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1.1rem; padding: .55rem .9rem; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--muted); font-size: .78rem; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.breadcrumbs a { display: inline-flex; align-items: center; color: var(--rail-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs > span[aria-hidden] { color: #b7c1d4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-shell { width: min(calc(100% - 2rem), 980px); margin: 1.5rem auto 0; }
.legacy-page .gsc-wrap { width: 100%; }
.legacy-page .gsc-breadcrumb-plain { display: none; }
.gsc-hero { position: relative; overflow: hidden; margin-bottom: 1.5rem; padding: clamp(1.6rem,5vw,3.2rem); border: 3px solid var(--ink); border-radius: 24px; color: #fff; background: linear-gradient(135deg,var(--rail-dark),var(--rail) 58%,#37a6d8); box-shadow: var(--shadow); }
.gsc-hero::before { content: ""; position: absolute; inset: 0 0 auto 40%; height: 100%; opacity: .1; background: repeating-linear-gradient(100deg,transparent 0 18px,#fff 19px 22px); transform: skew(-14deg); }
.gsc-hero::after { content: ""; position: absolute; right: -2.6rem; bottom: -3.4rem; width: clamp(9rem,26vw,15rem); height: clamp(9rem,26vw,15rem); background: url("/assets/images/logo-mark.svg") no-repeat center / contain; opacity: .16; transform: rotate(-8deg); filter: brightness(0) invert(1); }
.gsc-hero__inner { position: relative; z-index: 1; }
.gsc-hero__pill { display: inline-flex; padding: .25rem .65rem; border: 2px solid #fff; border-radius: 999px; color: var(--ink); background: var(--ticket); font-size: .82rem; font-weight: 900; }
.gsc-hero__title { max-width: 21ch; margin: .8rem 0; color: #fff; font-size: clamp(2rem,5vw,3.6rem); line-height: 1.2; letter-spacing: -.035em; }
.gsc-hero__desc { max-width: 46rem; margin-bottom: 0; color: #eef6ff; font-size: 1.05rem; }
.gsc-hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.gsc-hero__cta-main,.gsc-hero__cta-ghost,.gsc-cta-main,.gsc-cta-tertiary { color: var(--ink); background: var(--ticket); }
.gsc-hero__cta-ghost,.gsc-cta-tertiary { background: #fff; }
.freshness-banner { margin: 1.5rem 0; padding: 1rem 1.15rem; border: 2px solid var(--ink); border-left: 10px solid var(--coral); border-radius: 13px; background: #fff7df; box-shadow: 3px 3px 0 var(--ink); }
.freshness-banner strong { font-size: 1.08rem; }
.freshness-banner p { margin: .35rem 0 0; }
.gsc-section { margin: 1.6rem 0; padding: clamp(1rem,3vw,1.7rem); border-radius: 18px; background: #fff; }
.gsc-section--alt { background: #eef6ff; }
.gsc-section-title { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 4px solid var(--ticket); font-size: clamp(1.45rem,3vw,2.1rem); line-height: 1.35; }
.gsc-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.gsc-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gsc-card,.gsc-step,.gsc-guide-card,.gsc-info-box,.gsc-cta-box { padding: 1rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.gsc-card--blue,.gsc-info-box--blue { background: #eaf4ff; }
.gsc-card--green { background: #e8faf2; }
.gsc-card--red { background: #fff0ef; }
.gsc-info-box--amber { background: #fff7d8; }
.gsc-guide-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .4rem .8rem; color: var(--ink); text-decoration: none; }
.gsc-guide-card__body { min-width: 0; }
.gsc-guide-card__arrow { align-self: center; color: var(--rail); font-size: 1.5rem; }
.gsc-steps { display: grid; gap: 1rem; }
.gsc-step { display: grid; grid-template-columns: 46px 1fr; gap: .8rem; }
.gsc-step__num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--rail); font-weight: 950; }
.gsc-trust,.gsc-eeat { margin: 1rem 0; padding: .9rem; border-radius: 14px; background: #edf5ff; }
.gsc-trust__inner,.gsc-eeat__inner { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; }
.gsc-trust__item,.gsc-eeat__item { display: grid; }
.gsc-trust__num,.gsc-eeat__val { font-weight: 900; }
.gsc-trust__lbl,.gsc-eeat__lbl { color: var(--muted); font-size: .8rem; }
.gsc-toc { position: relative; margin: 1.5rem 0; padding: 1.1rem 1.3rem 1.1rem 1.1rem; border: 2px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.gsc-toc__header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 2px dashed var(--line); font-weight: 950; font-size: 1rem; }
.gsc-toc__header::before { content: ""; flex: none; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--rail); }
.gsc-toc__list { position: relative; display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.gsc-toc__list::before { content: ""; position: absolute; left: 14px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.gsc-toc__item { position: relative; }
.gsc-toc__link { position: relative; display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem .45rem .05rem; color: var(--ink); text-decoration: none; border-radius: 8px; }
.gsc-toc__link:hover { background: #f0f5fb; }
.gsc-toc__link:hover .gsc-toc__num { background: var(--rail); color: #fff; }
.gsc-toc__num { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ticket); font-size: .68rem; font-weight: 950; transition: background .15s, color .15s; }
.gsc-route-table-wrap { max-width: 100%; overflow-x: auto; }
.gsc-route-table,.legacy-page table { width: 100%; border-collapse: collapse; }
.gsc-route-table th,.gsc-route-table td,.legacy-page th,.legacy-page td { padding: .65rem; border: 1px solid var(--line); text-align: left; }
.gsc-route-table th,.legacy-page th { background: #eaf3ff; }
.gsc-faq-list,.faq-toggle-list { display: grid; gap: .75rem; }
.faq-item { border: 2px solid var(--ink); border-radius: 13px; background: #fff; overflow: hidden; }
.faq-question,.gsc-faq-q { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; border: 0; background: none; font: inherit; padding: .85rem 1rem; font-weight: 900; text-align: left; cursor: pointer; }
.faq-question::after,.gsc-faq-q::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 1rem; line-height: 1; }
.faq-question[aria-expanded="true"]::after,.gsc-faq-q[aria-expanded="true"]::after { content: "–"; color: #fff; background: var(--rail); border-color: var(--rail); }
.faq-answer,.gsc-faq-a { padding: 0 1rem 1rem; }
.js .faq-item:not(.is-open) .faq-answer,.js .faq-item:not(.is-open) .gsc-faq-a { display: none; }
.faq-question[aria-expanded="true"],.gsc-faq-q[aria-expanded="true"] { color: var(--rail-dark); background: #eef6ff; }
.legacy-image-note { display: block; padding: 1rem; border: 2px dashed var(--line); color: var(--muted); text-align: center; }
.editorial-replacement { padding-bottom: 2rem; }
.js .reveal,.js .gsc-card,.js .gsc-step { opacity: 0; transform: translateY(18px); transition: opacity .55s ease,transform .55s ease; }
.js .reveal.is-visible,.js .gsc-card.is-visible,.js .gsc-step.is-visible { opacity: 1; transform: translateY(0); }

@keyframes speed-lines { from { background-position-x: 0; } to { background-position-x: 80px; } }
.consent { position: fixed; z-index: 50; inset: auto 1rem 1rem; max-width: 42rem; margin-inline: auto; padding: 1rem; border: 3px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .8rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; inset: 68px 1rem auto; padding: .7rem; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .hero-grid, .calc-layout, .content-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; }
  .manga-guide { width: 230px; }
  .result-card, .toc { position: static; }
  .cards,.guide-links,.gsc-grid,.gsc-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shell { width: min(calc(100% - 1.2rem), var(--content)); }
  .hero { padding: 1.5rem 0 2rem; }
  .hero-grid { gap: 1rem; }
  .hero-art { display: none; }
  .hero h1 { font-size: clamp(2rem,11vw,3rem); }
  .hero-actions .btn { width: 100%; }
  .article-shell { width: min(calc(100% - 1.2rem),980px); }
  .gsc-hero { border-radius: 16px; }
  .ticket-card { box-shadow: 3px 4px 0 var(--ink); }
  .result-card::before { margin: -1.1rem -1.1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ======================================================================
   Core visual system — spacing, grids, cards, buttons, logo and iconography
   ====================================================================== */
:root {
  --ink:#10213d;
  --rail:#1769e0;
  --rail-dark:#0b4dad;
  --ticket:#ffd24d;
  --paper:#f7f9fc;
  --panel:#ffffff;
  --muted:#5b6b82;
  --line:#dce5f0;
  --line-strong:#c7d5e6;
  --radius:4px;
  --shadow:0 12px 32px rgba(16,33,61,.09);
  --shadow-sm:0 5px 16px rgba(16,33,61,.07);
}
body {
  background:linear-gradient(180deg,#f3f8ff 0,#fff 30rem,#fff 100%);
  color:var(--ink);
}
.site-header {
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 12px rgba(16,33,61,.04);
}
.header-inner { min-height:72px; }
.brand { gap:.7rem; }
.brand-mark { width:42px; height:42px; }
.brand span:last-child { font-size:1.08rem; font-weight:850; letter-spacing:-.015em; }
.site-nav { gap:.15rem; }
.site-nav a { border-radius:4px; padding:.62rem .82rem; }
.site-nav a:hover { background:#edf5ff; }
.site-nav .nav-primary { color:#fff; background:var(--rail); }
.site-nav .nav-primary:hover { background:var(--rail-dark); }
.menu-toggle { border:1px solid var(--line-strong); border-radius:4px; box-shadow:none; }

.hero { padding:clamp(2.4rem,6vw,4.8rem) 0 clamp(3rem,6vw,5rem); }
.hero::after { display:none; }
.hero-grid { grid-template-columns:minmax(0,1.06fr) minmax(360px,.94fr); gap:clamp(2rem,5vw,4rem); }
.eyebrow,.station-chip {
  border:1px solid #bfd5f2; border-radius:999px; background:#eef6ff; color:#164a89;
  box-shadow:none; letter-spacing:.01em;
}
.hero h1 { max-width:17ch; margin:1.1rem 0 .9rem; font-size:clamp(2.35rem,5.4vw,4.4rem); }
.hero h1 em { text-decoration-thickness:5px; }
.hero-copy { color:#40516a; }
.hero-proof { gap:.5rem; margin-top:1.15rem; }
.hero-proof span { border:1px solid var(--line-strong); border-radius:3px; background:#fff; }
.hero-actions { gap:.75rem; margin-top:1.75rem; margin-bottom:.25rem; }
.btn,.gsc-cta-main,.gsc-cta-tertiary,.gsc-hero__cta-main,.gsc-hero__cta-ghost {
  min-height:48px; padding:.75rem 1.25rem; border:1px solid transparent; border-radius:4px;
  clip-path:none; filter:none; box-shadow:none; transform:none; transition:background .18s,border-color .18s,transform .18s,box-shadow .18s;
}
.btn:hover,.gsc-cta-main:hover,.gsc-cta-tertiary:hover,.gsc-hero__cta-main:hover,.gsc-hero__cta-ghost:hover {
  transform:translateY(-1px); filter:none; box-shadow:0 8px 18px rgba(16,33,61,.10);
}
.btn-primary { background:var(--rail); border-color:var(--rail); color:#fff; }
.btn-primary:hover { background:var(--rail-dark); }
.btn-secondary { background:#fff; border-color:var(--line-strong); color:var(--ink); }
.hero-art { min-height:290px; display:grid; place-items:center; }
.hero { padding-bottom:2rem; }
.hero + .section { padding-top:3.25rem; }
.hero-visual { position:relative; width:min(100%,500px); border:1px solid var(--line-strong); border-radius:4px; background:#fff; box-shadow:var(--shadow); overflow:hidden; }
.hero-visual picture,.hero-visual img { display:block; width:100%; }
.hero-visual__badge { position:absolute; left:14px; bottom:14px; display:flex; align-items:center; gap:.55rem; max-width:calc(100% - 28px); padding:.58rem .75rem; border:1px solid rgba(255,255,255,.65); border-radius:4px; color:#10213d; background:rgba(255,255,255,.92); box-shadow:0 5px 16px rgba(16,33,61,.12); font-size:.82rem; font-weight:800; backdrop-filter:blur(7px); }
.hero-visual__badge img { width:22px; height:22px; flex:none; }

.section { padding:clamp(3rem,7vw,5.5rem) 0; }
.section + .section { border-top:1px solid #edf1f6; }
.section-title { margin:0 0 .65rem; }
.section-lede { margin:0 0 2rem; max-width:70ch; }
.ticket-card { padding:clamp(1.25rem,3vw,2rem); border:1px solid var(--line-strong); border-radius:4px; box-shadow:var(--shadow-sm); }
.calc-layout { gap:1.5rem; }
.input-wrap { border:1px solid var(--line-strong); border-radius:3px; }
.calc-submit { margin-top:.8rem; }
.result-card::before { border-bottom:1px dashed #aebbd0; }
.result-status { border:1px solid currentColor; border-radius:3px; transform:none; }
.metric { border:1px solid #e2e9f2; border-radius:3px; background:#f7f9fc; }
.source-note { margin-top:1.25rem; padding:.9rem 1rem; border:1px solid #cfe0f5; border-radius:3px; background:#f2f7fd; }

.cards,.guide-links,.gsc-grid { gap:1.25rem; }
.cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
.guide-links { grid-template-columns:repeat(3,minmax(0,1fr)); }
.info-card,.gsc-card,.gsc-step,.gsc-guide-card,.gsc-info-box,.gsc-cta-box {
  border:1px solid var(--line-strong); border-radius:4px; background:#fff; box-shadow:var(--shadow-sm);
}
.info-card { padding:1.35rem; }
.info-card h3,.gsc-card h3,.gsc-info-box h3 { display:flex; align-items:center; gap:.7rem; margin-top:0; line-height:1.4; }
.content-icon { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border:1px solid #d7e6f8; border-radius:4px; background:#f2f7fd; }
.content-icon img { display:block; width:21px; height:21px; }
.gsc-card,.gsc-step,.gsc-guide-card,.gsc-info-box,.gsc-cta-box { padding:1.25rem; }
.gsc-card--blue,.gsc-info-box--blue { background:#f2f7fd; }
.gsc-card--green { background:#f2fbf7; }
.gsc-card--red { background:#fff6f5; }
.gsc-info-box--amber { background:#fff9e5; }
.guide-link { min-height:160px; padding:1.25rem; border:1px solid #d6e2f0; border-radius:4px; box-shadow:none; transition:transform .18s,box-shadow .18s,border-color .18s; }
.guide-link:hover { transform:translateY(-2px); border-color:#a9c6ea; box-shadow:var(--shadow-sm); }
.guide-link__icon,.gsc-guide-card__icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid #d7e6f8; border-radius:4px; background:#f2f7fd; transform:none; }
.guide-link__icon img,.gsc-guide-card__icon img { width:22px; height:22px; }
.gsc-guide-card { grid-template-columns:42px 1fr auto; gap:.55rem .85rem; }
.gsc-guide-card__icon svg { transform:none; }
.steps { gap:1.25rem; }
.steps li { gap:1rem; }
.steps li::before,.gsc-step__num { border:0; box-shadow:none; }

.article-shell { margin-top:2rem; }
.breadcrumbs { margin-top:1rem; padding:.55rem .8rem; border:1px solid var(--line-strong); border-radius:3px; background:#fff; box-shadow:none; }
.gsc-hero { margin-bottom:2rem; padding:clamp(1.8rem,5vw,3rem); border:0; border-radius:4px; box-shadow:var(--shadow); background:linear-gradient(120deg,#0d4598,#1769e0 65%,#3287d8); }
.gsc-hero::before { opacity:.06; }
.gsc-hero::after { right:-1.5rem; bottom:-2rem; opacity:.10; }
.gsc-hero__pill { border:0; border-radius:3px; color:#12345e; background:#fff3c2; }
.gsc-hero__title { margin:.95rem 0 .9rem; }
.gsc-hero__desc { color:#eff6ff; }
.gsc-hero__ctas { gap:.75rem; margin-top:1.5rem; margin-bottom:.15rem; }
.gsc-hero__cta-main { color:#10213d; background:var(--ticket); border-color:#e7bc28; }
.gsc-hero__cta-ghost { color:#10213d; background:#fff; border-color:#d7e2f0; }
.freshness-banner { margin:1.75rem 0 2rem; padding:1rem 1.1rem; border:1px solid #ead38c; border-radius:4px; background:#fff9e7; box-shadow:none; }
.gsc-section { margin:2.25rem 0; padding:clamp(1.35rem,3vw,2rem); border:1px solid #edf1f6; border-radius:4px; background:#fff; }
.gsc-section--alt { background:#f3f8fd; }
.gsc-section-title { margin:0 0 1.25rem; padding-bottom:.7rem; border-bottom:2px solid #ffd24d; }
.gsc-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.gsc-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.gsc-trust,.gsc-eeat { margin:1.25rem 0; padding:1rem 1.1rem; border:1px solid #dbe8f6; border-radius:4px; background:#f3f8fd; }
.gsc-toc { margin:2rem 0; padding:1.25rem 1.35rem; border:1px solid var(--line-strong); border-radius:4px; box-shadow:none; }
.gsc-toc__link { border-radius:3px; }
.gsc-toc__num { border:1px solid #b9c9de; }
.faq-item { border:1px solid var(--line-strong); border-radius:4px; }
.faq-question::after,.gsc-faq-q::after { border:1px solid var(--line-strong); }

/* Consistent breathing room around CTAs in editorial blocks. */
.gsc-section > .gsc-cta-main,
.gsc-section > .gsc-cta-tertiary,
.gsc-card > .gsc-cta-main,
.gsc-info-box > .gsc-cta-main,
.gsc-cta-box > .gsc-cta-main,
.gsc-cta-box > .gsc-cta-tertiary,
.the-content > .btn,
.article > .btn { margin-top:1.25rem; margin-bottom:.35rem; }
.gsc-cta-box { margin-top:1.75rem; margin-bottom:1.75rem; }
.gsc-cta-box p:first-child { margin-top:0; }
.gsc-cta-box p:last-of-type { margin-bottom:.5rem; }

.ad-zone { min-height:110px; width:min(100%,970px); margin:3rem auto; border:1px solid #d5dde8; border-radius:3px; background:#f8fafc; }
.ad-zone::before { color:#8491a3; }
.ad-zone--page-end { width:min(calc(100% - 2rem),980px); }
.ad-preview span { border-radius:3px; }

.section--ink { background:#10213d; }
.site-footer { margin-top:4rem; padding:3rem 0; background:#10213d; }
.footer-grid { gap:2.5rem; }
.consent { border:1px solid var(--line-strong); border-radius:4px; box-shadow:var(--shadow); }

@media (max-width:980px) {
  .hero-grid { grid-template-columns:1fr 380px; gap:1.75rem; }
  .gsc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  .site-nav { border:1px solid var(--line-strong); border-radius:4px; box-shadow:var(--shadow); }
  .hero-grid,.calc-layout,.content-grid { grid-template-columns:1fr; }
  .hero-art { min-height:0; }
  .hero-visual { width:min(100%,620px); }
  .cards,.gsc-grid,.gsc-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .cards,.guide-links,.gsc-grid,.gsc-grid--2 { grid-template-columns:1fr; }
  .gsc-section { margin:1.5rem 0; padding:1.05rem; }
  .gsc-hero { padding:1.4rem 1.1rem; }
  .gsc-hero__ctas > * { width:100%; }
  .hero-actions > * { width:100%; }
  .hero-art { display:none; }
  .ad-zone { margin:2rem auto; }
}

/* ======================================================================
   Refined manga tone — ticket CTAs, grids and spacing
   ====================================================================== */
:root {
  --manga-dot: radial-gradient(circle, rgba(23,105,224,.14) 0 1.2px, transparent 1.3px);
  --manga-dot-soft: radial-gradient(circle, rgba(255,210,77,.2) 0 1.1px, transparent 1.2px);
  --panel-edge: #d5e2f0;
}

html { scroll-padding-top: 88px; }
main section[id], .gsc-section[id], .section[id] { scroll-margin-top: 88px; }

/* Keep the manga identity while staying cleaner and more editorial. */
body {
  background:
    radial-gradient(circle at top right, rgba(23,105,224,.08), transparent 24rem),
    linear-gradient(180deg, #f3f8ff 0, #fbfdff 17rem, #ffffff 40rem, #ffffff 100%);
}

.hero {
  position: relative;
  padding-top: clamp(2.6rem, 6vw, 4.9rem);
  padding-bottom: clamp(3rem, 6vw, 4.6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(36vw, 380px);
  height: min(22vw, 220px);
  opacity: .25;
  background-image: var(--manga-dot-soft);
  background-size: 12px 12px;
  pointer-events: none;
}
.hero-grid { gap: clamp(1.8rem, 4vw, 3.2rem); }
.hero h1 {
  max-width: 15ch;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--rail);
  text-decoration: underline 5px var(--ticket);
  text-underline-offset: .13em;
}
.hero-copy { max-width: 40rem; }
.hero-proof span {
  border: 1px solid #d6e3f3;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,33,61,.05);
}
.hero-actions { gap: .9rem; margin-top: 1.55rem; }
.hero-visual {
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(16,33,61,.12);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 48%;
  height: 48%;
  background-image: var(--manga-dot);
  background-size: 10px 10px;
  opacity: .18;
  pointer-events: none;
}
.hero-visual__badge {
  left: 16px;
  bottom: 16px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 24px rgba(16,33,61,.15);
}

/* Refined ticket style buttons. */
.btn,
.gsc-hero__cta-main,
.gsc-cta-main,
.gsc-hero__cta-ghost,
.gsc-cta-tertiary {
  position: relative;
  min-height: 50px;
  padding: .85rem 1.35rem;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}
.btn-primary,
.gsc-hero__cta-main,
.gsc-cta-main {
  border: 2px solid #caab2e;
  color: #13213b;
  background: linear-gradient(180deg, #ffd958 0, #f6c93d 100%);
  box-shadow: 0 10px 22px rgba(198,152,18,.22);
}
.btn-primary:hover,
.gsc-hero__cta-main:hover,
.gsc-cta-main:hover {
  background: linear-gradient(180deg, #ffe170 0, #f9d14c 100%);
  box-shadow: 0 14px 28px rgba(198,152,18,.28);
}
.btn-secondary,
.gsc-hero__cta-ghost,
.gsc-cta-tertiary {
  border: 1px solid var(--panel-edge);
  color: var(--ink);
  background: #fff;
}
.gsc-hero__cta-main::before,
.gsc-cta-main::before,
.btn-primary::before,
.gsc-hero__cta-main::after,
.gsc-cta-main::after,
.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fdfefe 0, #f3f7fc 100%);
  border: 2px solid #d4dee9;
  transform: translateY(-50%);
}
.gsc-hero__cta-main::before,
.gsc-cta-main::before,
.btn-primary::before { left: -8px; }
.gsc-hero__cta-main::after,
.gsc-cta-main::after,
.btn-primary::after { right: -8px; }
.gsc-hero__cta-ghost:hover,
.gsc-cta-tertiary:hover,
.btn-secondary:hover {
  border-color: #b8cbe4;
  background: #f7fbff;
}

/* Home cards and sections. */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-title,
.gsc-section-title {
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ticket-card,
.gsc-section,
.gsc-card,
.gsc-step,
.gsc-guide-card,
.gsc-info-box,
.gsc-cta-box,
.faq-item {
  border-color: var(--panel-edge);
  box-shadow: 0 10px 26px rgba(16,33,61,.06);
}
.ticket-card,
.gsc-section,
.gsc-card,
.gsc-step,
.gsc-guide-card,
.gsc-info-box,
.gsc-cta-box { overflow: hidden; }

/* Editorial hero in manga-but-clean style. */
.gsc-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #0c4a97 0, #1769e0 58%, #5cb5ff 100%);
  border-radius: 8px;
}
.gsc-hero::before {
  inset: 0 0 auto auto;
  width: min(46%, 420px);
  height: 100%;
  opacity: .16;
  background-image: var(--manga-dot-soft);
  background-size: 13px 13px;
  transform: none;
}
.gsc-hero::after {
  width: clamp(10rem, 24vw, 15rem);
  height: clamp(10rem, 24vw, 15rem);
  right: -1rem;
  bottom: -2rem;
  opacity: .12;
}
.gsc-hero__pill {
  border-radius: 999px;
  background: rgba(255,242,194,.96);
  color: #12345e;
  box-shadow: 0 6px 16px rgba(17,53,97,.12);
}
.gsc-hero__title {
  max-width: 18ch;
  margin: .95rem 0 .85rem;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.gsc-hero__title-break {
  position: relative;
  display: inline;
  padding-bottom: .06em;
  box-shadow: inset 0 -0.16em 0 rgba(255,210,77,.72);
}
.gsc-hero__desc { max-width: 44rem; }
.gsc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.gsc-hero__meta-item {
  display: inline-flex;
  align-items: center;
  padding: .38rem .72rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #f3f8ff;
  background: rgba(255,255,255,.10);
  font-size: .86rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.gsc-hero__ctas {
  gap: .8rem;
  margin-top: 1.35rem;
}

.freshness-banner {
  border-left-width: 6px;
  border-color: #ecd58d;
  background: linear-gradient(180deg, #fffaf0 0, #fff7e3 100%);
}
.breadcrumbs,
.gsc-toc,
.gsc-trust,
.gsc-eeat {
  border-radius: 6px;
}
.gsc-trust,
.gsc-eeat {
  background: linear-gradient(180deg, #f4f8fd 0, #f8fbff 100%);
}
.gsc-eeat__val,
.gsc-trust__num { font-weight: 900; }
.gsc-section { margin: 2rem 0; }
.gsc-section--alt {
  background:
    linear-gradient(180deg, #f3f8fd 0, #f7fbff 100%);
}
.gsc-section-title {
  position: relative;
  padding-bottom: .75rem;
  border-bottom: 2px solid #ffd24d;
}
.gsc-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 84px;
  height: 2px;
  background: var(--rail);
}

/* Fix guide hubs and list blocks: 3x3 / 2x2 responsive, no content removed. */
.gsc-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.gsc-guide-card {
  position: relative;
  align-items: start;
  min-height: 164px;
  grid-template-columns: 46px 1fr auto;
  gap: .7rem .95rem;
  padding: 1.2rem 1.15rem;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.98)),
    var(--manga-dot);
  background-size: auto, 10px 10px;
  background-position: 0 0, right -18px bottom -18px;
  background-repeat: no-repeat, no-repeat;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gsc-guide-card:hover {
  transform: translateY(-2px);
  border-color: #a6c1e3;
  box-shadow: 0 16px 28px rgba(16,33,61,.10);
}
.gsc-guide-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #d7e6f8;
  box-shadow: 0 3px 10px rgba(16,33,61,.05);
}
.gsc-guide-card__icon svg,
.gsc-guide-card__icon img {
  width: 22px;
  height: 22px;
}
.gsc-guide-card__body { min-width: 0; }
.gsc-guide-card__body h4 {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  line-height: 1.42;
  letter-spacing: -.015em;
}
.gsc-guide-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.gsc-guide-card::after {
  content: "›";
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: var(--rail);
  background: #f6fbff;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}
.gsc-guide-card__arrow { display: none; }

/* Map / download blocks and button spacing. */
.gsc-card--map,
.gsc-map-figure { display: grid; gap: 1rem; }
.gsc-map-figure {
  margin: 0;
  min-height: 210px;
  align-content: center;
  justify-items: center;
  padding: 1.25rem;
  border: 1px dashed #c6d6e8;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbff 0, #eef5fd 100%);
}
.legacy-image-note {
  width: 100%;
  padding: 1.3rem 1rem;
  border: 1px dashed #b9cbe0;
  border-radius: 6px;
  color: #46607f;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(244,249,255,.9));
}
.gsc-card--map .gsc-cta-main,
.gsc-card--map .gsc-cta-tertiary,
.gsc-cta-center .gsc-cta-main,
.gsc-cta-center .gsc-cta-tertiary {
  width: min(100%, 360px);
}
.gsc-cta-center {
  display: flex;
  justify-content: center;
}
.gsc-cta-box,
.gsc-info-box {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.gsc-cta-box .gsc-cta-main,
.gsc-cta-box .gsc-cta-tertiary,
.gsc-info-box .gsc-cta-main,
.gsc-info-box .gsc-cta-tertiary { margin-top: 1rem; }

/* FAQ and cards. */
.faq-item { box-shadow: 0 8px 22px rgba(16,33,61,.05); }
.faq-question,
.gsc-faq-q {
  padding: 1rem 1.05rem;
}
.faq-answer,
.gsc-faq-a { padding: 0 1.05rem 1.05rem; }

/* Home / article utility card grids. */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .gsc-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 360px; }
}
@media (max-width: 820px) {
  .cards, .guide-links, .gsc-grid, .gsc-grid--2, .gsc-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsc-hero__meta { margin-top: .9rem; }
}
@media (max-width: 620px) {
  .hero h1 { max-width: 12ch; }
  .cards, .guide-links, .gsc-grid, .gsc-grid--2, .gsc-guide-grid { grid-template-columns: 1fr; }
  .gsc-guide-card { min-height: 0; }
  .gsc-card--map .gsc-cta-main,
  .gsc-card--map .gsc-cta-tertiary,
  .gsc-cta-center .gsc-cta-main,
  .gsc-cta-center .gsc-cta-tertiary { width: 100%; }
}

/* ======================================================================
   Editorial component polish
   ====================================================================== */

/* Global editorial rhythm */
.legacy-page .the-content { min-width: 0; }
.gsc-guide-container,
.gsc-guide-main,
.gsc-wrap { width: 100%; min-width: 0; }
.gsc-body { margin: 0 0 1.15rem; color: #34465f; }
.gsc-body + .gsc-body { margin-top: -.15rem; }
.gsc-card__note,
.gsc-table-note,
.gsc-section-desc { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.gsc-table-note { margin: .7rem 0 0; }
.gsc-card__note { margin-top: .75rem; }
.gsc-section-desc { margin-top: -.55rem; margin-bottom: 1.25rem; }
.gsc-cta-box--subtle { background: linear-gradient(180deg,#fbfdff,#f4f8fd); }
.gsc-cta-box--blue { background: linear-gradient(180deg,#f2f8ff,#eaf4ff); }
.gsc-cta-box__lead { margin-top: 0; font-size: 1.03rem; font-weight: 800; }
.gsc-cta-box__text { color: #40516a; }
.gsc-cta-box__list { margin: .85rem 0 0; }
.gsc-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }

/* Hub quick access — fixes the plain-link list shown in screenshots */
.gsc-st-quick-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.gsc-st-quick-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 30px;
  gap: .9rem;
  align-items: start;
  min-height: 150px;
  padding: 1.2rem;
  border: 1px solid var(--panel-edge);
  border-radius: 7px;
  color: var(--ink);
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.98)),
    var(--manga-dot);
  background-position: 0 0, right -15px bottom -15px;
  background-size: auto, 10px 10px;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(16,33,61,.055);
  text-decoration: none;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.gsc-st-quick-card::after {
  content: "›";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cfe0f5;
  border-radius: 50%;
  color: var(--rail);
  background: #f5faff;
  font-size: 1.3rem;
  font-weight: 800;
}
.gsc-st-quick-card:hover {
  transform: translateY(-2px);
  border-color: #9ebde3;
  box-shadow: 0 15px 30px rgba(16,33,61,.10);
}
.gsc-st-quick-card__icon {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16,33,61,.08);
  border-radius: 8px;
}
.gsc-st-quick-card__icon img { width: 23px; height: 23px; }
.gsc-st-quick-card__body { grid-column: 2; min-width: 0; }
.gsc-st-quick-card__body h3 {
  margin: 0 0 .42rem;
  color: #123765;
  font-size: 1.03rem;
  line-height: 1.4;
  text-decoration: none;
}
.gsc-st-quick-card__body p { margin: 0; color: #53647c; line-height: 1.65; }

/* Decision / diagnosis component */
.gsc-diag { display: grid; gap: .9rem; margin-top: 1.25rem; }
.gsc-diag__item {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--panel-edge);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,33,61,.05);
}
.gsc-diag__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #c7dcf7;
  border-radius: 50%;
  color: #fff;
  background: var(--rail);
  font-weight: 950;
}
.gsc-diag__q { margin: 0 0 .7rem; font-weight: 900; }
.gsc-diag__answers { display: flex; flex-wrap: wrap; gap: .55rem; }
.gsc-diag__ok,
.gsc-diag__ng {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .4rem .72rem;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.gsc-diag__ok { color: #0b664e; background: #e8f8f1; border: 1px solid #a9ddca; }
.gsc-diag__ng { color: #8c2630; background: #fff0f1; border: 1px solid #efb7bd; }
.gsc-diag__item--last { border-color: #b9d8ca; background: #fbfffd; }

/* Distance examples */
.gsc-distance-examples {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .85rem;
  margin-top: 1.15rem;
}
.gsc-distance-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: .95rem 1rem .95rem 2.75rem;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  background: #fff;
  line-height: 1.55;
}
.gsc-distance-item::before {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 950;
}
.gsc-distance-item--ok { border-color: #b9dfce; background: #f4fbf8; }
.gsc-distance-item--ok::before { content: "✓"; color: #fff; background: #18835f; }
.gsc-distance-item--ng { border-color: #efc6c9; background: #fff7f7; }
.gsc-distance-item--ng::before { content: "×"; color: #fff; background: #c74550; }

/* Example form / certificate mockups */
.gsc-example-box {
  overflow: hidden;
  margin: 1.25rem 0;
  border: 1px solid #c6d8eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16,33,61,.06);
}
.gsc-example-box__header {
  padding: .75rem 1rem;
  border-bottom: 1px dashed #b8c9dc;
  color: #12345e;
  background: #edf6ff;
  font-weight: 900;
}
.gsc-example-box__body { padding: 1rem; }
.gsc-example-row {
  display: grid;
  grid-template-columns: minmax(120px,.35fr) minmax(0,1fr);
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid #edf1f6;
}
.gsc-example-row:last-child { border-bottom: 0; }
.gsc-example-row__label { color: #53647c; font-weight: 800; }
.gsc-example-row__value { font-weight: 900; }
.gsc-example-box__note { margin: 0; padding: .85rem 1rem; color: #5d6e83; background: #fffaf0; border-top: 1px solid #f0dfa4; }

/* Article collection container */
.gsc-articles-grid {
  margin-top: 1.2rem;
  padding: 1.35rem;
  border: 1px solid var(--panel-edge);
  border-radius: 7px;
  background: linear-gradient(180deg,#f7fbff,#eff6fd);
}
.gsc-articles-grid__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.gsc-articles-grid__desc { margin: 0 0 1rem; color: var(--muted); }

/* Tables */
.gsc-data-table,
.gsc-route-table,
.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  background: #fff;
}
.gsc-data-table th,
.gsc-data-table td,
.gsc-route-table th,
.gsc-route-table td,
.wp-block-table th,
.wp-block-table td {
  padding: .78rem .85rem;
  border-right: 1px solid #e6edf5;
  border-bottom: 1px solid #e6edf5;
  vertical-align: top;
}
.gsc-data-table tr:last-child td,
.gsc-route-table tr:last-child td,
.wp-block-table tr:last-child td { border-bottom: 0; }
.gsc-data-table th:last-child,
.gsc-data-table td:last-child,
.gsc-route-table th:last-child,
.gsc-route-table td:last-child,
.wp-block-table th:last-child,
.wp-block-table td:last-child { border-right: 0; }
.gsc-data-table th,
.gsc-route-table th,
.wp-block-table th {
  color: #18385f;
  background: #edf5ff;
  font-size: .9rem;
  font-weight: 900;
}
.price-saving { color: #087153; font-weight: 900; }
.price-discount { color: #0b4dad; font-weight: 900; }

/* Final CTA */
.gsc-cta-final {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem,4vw,2.4rem);
  border: 1px solid #cbdff4;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 18%,rgba(255,210,77,.38),transparent 8rem),
    linear-gradient(135deg,#eef7ff 0,#fff 58%);
  box-shadow: 0 14px 30px rgba(16,33,61,.07);
  text-align: center;
}
.gsc-cta-final::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 130px;
  height: 130px;
  background-image: var(--manga-dot);
  background-size: 11px 11px;
  opacity: .55;
}
.gsc-cta-final__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto .8rem;
  border: 1px solid #c7daf0;
  border-radius: 50%;
  background: #fff;
}
.gsc-cta-final__icon img { width: 25px; height: 25px; }
.gsc-cta-final__title { position: relative; z-index: 1; margin: 0 0 .55rem; font-size: clamp(1.45rem,3vw,2rem); }
.gsc-cta-final__desc { position: relative; z-index: 1; max-width: 50rem; margin: 0 auto 1rem; color: #43546b; }
.gsc-cta-final .gsc-cta-main { position: relative; z-index: 1; }
.gsc-cta-final__note { position: relative; z-index: 1; margin: .75rem 0 0; color: var(--muted); font-size: .88rem; font-weight: 800; }
.gsc-cta-main--lg { min-height: 56px; padding-inline: 1.7rem; font-size: 1.02rem; }
.gsc-cta-stack { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.gsc-route-link { display: inline-flex; margin-top: .35rem; font-weight: 900; text-decoration-thickness: 1px; }

/* Video placeholder */
.gsc-video-wrap {
  overflow: hidden;
  margin: 1.25rem 0;
  border: 1px solid var(--panel-edge);
  border-radius: 7px;
  background: #0f2341;
  box-shadow: 0 12px 26px rgba(16,33,61,.09);
}
.gsc-video-wrap iframe,
.gsc-video-wrap video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }

/* Remaining WordPress-origin legal/about pages: remove raw-WP appearance. */
body[data-page-type="legal"] .article-shell { max-width: 920px; }
body[data-page-type="legal"] .wp-block-cover.alignfull.hero {
  position: relative;
  min-height: 220px !important;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(16,33,61,.09);
}
body[data-page-type="legal"] .wp-block-cover__background {
  position: absolute;
  inset: 0;
  display: block;
}
body[data-page-type="legal"] .wp-block-cover__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--manga-dot-soft);
  background-size: 13px 13px;
  opacity: .18;
}
body[data-page-type="legal"] .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 2rem;
}
body[data-page-type="legal"] .wp-block-columns { width: 100%; display: grid; grid-template-columns: 1fr; margin: 0; }
body[data-page-type="legal"] .wp-block-column { min-width: 0; }
body[data-page-type="legal"] .wp-block-column:empty { display: none; }
body[data-page-type="legal"] .wp-block-cover .hero,
body[data-page-type="legal"] .wp-block-cover .container,
body[data-page-type="legal"] .wp-block-cover .header-flex { padding: 0; min-height: 0; width: 100%; }
body[data-page-type="legal"] .wp-block-cover h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem,5vw,3.2rem);
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 2px 10px rgba(4,34,75,.18);
}
body[data-page-type="legal"] .wp-block-spacer { height: 0 !important; }
body[data-page-type="legal"] .wp-block-heading {
  position: relative;
  margin: 2rem 0 .75rem;
  padding: 0 0 .55rem 1rem;
  border-bottom: 1px solid #e2e9f2;
  color: #17385f;
  font-size: 1.2rem;
  line-height: 1.4;
}
body[data-page-type="legal"] .wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  bottom: .62em;
  width: 4px;
  border-radius: 2px;
  background: var(--rail);
}
body[data-page-type="legal"] .wp-block-paragraph { margin: .7rem 0; color: #43536b; }
body[data-page-type="legal"] .wp-block-list {
  margin: .75rem 0 1.15rem;
  padding: 1rem 1rem 1rem 2.2rem;
  border: 1px solid #e0e8f2;
  border-radius: 6px;
  background: #fbfdff;
}
body[data-page-type="legal"] .wp-block-list li + li { margin-top: .35rem; }
body[data-page-type="legal"] .wp-block-quote {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #cfe0f5;
  border-left: 4px solid var(--rail);
  border-radius: 5px;
  background: #f4f9ff;
}
body[data-page-type="legal"] .wp-block-quote p { margin: 0; }

/* Subtle spacing normalization throughout migrated articles. */
.gsc-section > .gsc-wrap > :first-child { margin-top: 0; }
.gsc-section > .gsc-wrap > :last-child { margin-bottom: 0; }
.gsc-info-box ul,
.gsc-card ul,
.gsc-cta-box ul { padding-left: 1.35rem; }
.gsc-info-box li + li,
.gsc-card li + li,
.gsc-cta-box li + li { margin-top: .35rem; }

@media (max-width: 900px) {
  .gsc-distance-examples { grid-template-columns: 1fr; }
  .gsc-grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .gsc-st-quick-grid { grid-template-columns: 1fr; }
  .gsc-st-quick-card { min-height: 0; }
  .gsc-example-row { grid-template-columns: 1fr; gap: .25rem; }
  .gsc-diag__item { grid-template-columns: 40px minmax(0,1fr); gap: .75rem; }
  .gsc-diag__num { width: 36px; height: 36px; }
  .gsc-grid--3 { grid-template-columns: 1fr; }
  .gsc-route-table-wrap { margin-inline: -.25rem; padding-inline: .25rem; }
}
@media (max-width: 560px) {
  .hide-sp { display: none; }
  .gsc-st-quick-card { grid-template-columns: 42px minmax(0,1fr); }
  .gsc-st-quick-card::after { display: none; }
  .gsc-st-quick-card__body { grid-column: 2; }
  .gsc-cta-final { text-align: left; }
  .gsc-cta-final__icon { margin-left: 0; }
  .gsc-cta-final__desc { margin-left: 0; }
  .gsc-cta-final .gsc-cta-main { width: 100%; }
}

/* Micro-polish for structural helpers used across many URLs */
.gsc-trust__sep,
.gsc-eeat__divider { width: 1px; align-self: stretch; background: #dbe6f2; }
.crumb-home { flex: none; }
.gsc-toc__inner,
.gsc-faq,
.faq-toggle-section { min-width: 0; }
.gsc-diag__content { min-width: 0; }
.gsc-steps--compact { gap: .75rem; }
.gsc-steps--compact .gsc-step { padding: .9rem 1rem; }
@media (max-width: 680px) {
  .gsc-trust__sep,
  .gsc-eeat__divider { display: none; }
}

/* ======================================================================
   Retention and journey components
   Additive UX layer: search, intent routing, reading rail, result visuals,
   contextual journeys, compact data visualisation and route experience.
   ====================================================================== */

/* Header search */
.site-search-trigger {
  margin-left:auto;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.5rem .72rem;
  border:1px solid #cbd9e9;
  border-radius:4px;
  color:var(--ink);
  background:#fff;
  font-weight:850;
  cursor:pointer;
  transition:border-color .18s,background .18s,transform .18s;
}
.site-search-trigger:hover { border-color:#9fbbde; background:#f4f9ff; transform:translateY(-1px); }
.site-search-trigger svg { color:var(--rail); }
.site-search-dialog {
  width:min(calc(100% - 1.5rem),720px);
  max-height:min(82vh,760px);
  padding:0;
  border:0;
  border-radius:8px;
  background:#fff;
  box-shadow:0 28px 80px rgba(10,32,67,.28);
  overflow:hidden;
}
.site-search-dialog::backdrop { background:rgba(8,25,52,.5); backdrop-filter:blur(3px); }
.site-search-panel { padding:clamp(1rem,3vw,1.5rem); }
.site-search-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.site-search-head h2 { margin:0; font-size:clamp(1.3rem,3vw,1.75rem); }
.site-search-close {
  width:42px; height:42px; display:grid; place-items:center; flex:none;
  border:1px solid var(--line-strong); border-radius:50%; background:#fff; color:var(--ink); font-size:1.6rem; cursor:pointer;
}
.site-search-input-wrap { position:relative; }
.site-search-input-wrap::before { content:"⌕"; position:absolute; left:1rem; top:50%; transform:translateY(-52%); color:var(--rail); font-size:1.5rem; font-weight:900; }
.site-search-input-wrap input {
  width:100%; min-height:56px; padding:.75rem 1rem .75rem 3rem;
  border:2px solid #bad0ea; border-radius:6px; color:var(--ink); background:#fbfdff; font-size:1rem;
}
.site-search-input-wrap input:focus { border-color:var(--rail); outline:3px solid rgba(23,105,224,.14); }
.site-search-hints { display:flex; flex-wrap:wrap; gap:.5rem; margin:.75rem 0; }
.site-search-hints button {
  padding:.35rem .65rem; border:1px solid #d5e2f0; border-radius:999px; color:#2a537f; background:#f5f9fe; cursor:pointer; font-size:.82rem; font-weight:750;
}
.site-search-status { margin:.8rem 0 .6rem; color:var(--muted); font-size:.86rem; }
.site-search-results { display:grid; gap:.55rem; max-height:50vh; overflow:auto; overscroll-behavior:contain; }
.site-search-result {
  display:grid; grid-template-columns:auto 1fr; gap:.15rem .7rem; padding:.8rem .9rem;
  border:1px solid #dce6f2; border-radius:5px; color:var(--ink); background:#fff; text-decoration:none;
  transition:border-color .15s,background .15s,transform .15s;
}
.site-search-result:hover { border-color:#a8c4e4; background:#f8fbff; transform:translateY(-1px); }
.site-search-result__meta { grid-row:1 / span 2; align-self:start; padding:.18rem .45rem; border-radius:999px; color:#1456a0; background:#eaf4ff; font-size:.7rem; font-weight:850; white-space:nowrap; }
.site-search-result strong { line-height:1.4; }
.site-search-result p { margin:.18rem 0 0; color:var(--muted); font-size:.82rem; line-height:1.45; }

/* Intent Navigator */
.intent-navigator {
  position:relative;
  margin:2rem 0 2.4rem;
  padding:clamp(1.2rem,3.5vw,2rem);
  border:1px solid #cbdced;
  border-radius:7px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,250,255,.98)),
    radial-gradient(circle,rgba(23,105,224,.15) 0 1px,transparent 1.2px);
  background-size:auto,11px 11px;
  background-position:0 0,right -30px top -20px;
  box-shadow:0 16px 36px rgba(16,33,61,.08);
  overflow:hidden;
}
.intent-navigator::after { content:""; position:absolute; right:-30px; bottom:-28px; width:130px; height:80px; opacity:.14; background:radial-gradient(circle,var(--rail) 0 1.2px,transparent 1.3px); background-size:9px 9px; transform:rotate(-8deg); pointer-events:none; }
.intent-navigator__eyebrow { display:inline-flex; align-items:center; gap:.4rem; margin-bottom:.35rem; padding:.25rem .55rem; border-radius:999px; color:#15529a; background:#eaf4ff; font-size:.75rem; font-weight:900; letter-spacing:.04em; }
.intent-navigator h2 { margin:.25rem 0 .45rem; font-size:clamp(1.45rem,3vw,2rem); letter-spacing:-.025em; }
.intent-navigator__intro { margin:0 0 1.2rem; color:var(--muted); }
.intent-navigator__choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; }
.intent-navigator__choices button {
  min-height:72px; display:grid; grid-template-columns:34px 1fr; align-items:center; gap:.6rem; padding:.72rem .8rem;
  border:1px solid #d5e2f0; border-radius:5px; color:var(--ink); background:#fff; text-align:left; cursor:pointer; box-shadow:0 5px 14px rgba(16,33,61,.04); transition:.16s ease;
}
.intent-navigator__choices button:hover { border-color:#a8c5e6; transform:translateY(-2px); box-shadow:0 10px 20px rgba(16,33,61,.08); }
.intent-navigator__choices button.is-active { border-color:#7ba9de; background:#eef6ff; box-shadow:inset 4px 0 0 var(--rail); }
.intent-navigator__choices button > span { display:grid; place-items:center; width:30px; height:30px; border:1px solid #bed3eb; border-radius:50%; color:#1769e0; background:#f5f9ff; font-size:.68rem; font-weight:900; }
.intent-navigator__choices button strong { font-size:.92rem; line-height:1.35; }
.intent-navigator__result {
  position:relative; z-index:1; margin-top:1rem; padding:1rem 1.1rem; border:1px solid #e0c155; border-radius:5px; background:linear-gradient(180deg,#fff9df,#fff4c8); box-shadow:0 9px 22px rgba(174,128,0,.08);
}
.intent-navigator__result > span { display:block; color:#7b5c00; font-size:.72rem; font-weight:900; letter-spacing:.06em; }
.intent-navigator__result > strong { display:block; margin:.2rem 0; font-size:1.08rem; }
.intent-navigator__result p { margin:.15rem 0 .8rem; color:#4f4b3f; }
.intent-navigator__result .gsc-cta-main { min-height:44px; padding:.65rem 1.05rem; }

/* Breadcrumb/reading-rail collision guard */
.breadcrumbs { position:relative; z-index:12; }

/* Reading rail — dynamically clears the sticky header and breadcrumb. */
.reading-rail {
  --reading-rail-top:150px;
  position:fixed; z-index:11; left:max(12px,calc(50vw - 690px)); top:var(--reading-rail-top);
  width:176px; max-height:calc(100vh - var(--reading-rail-top) - 22px); padding:.8rem .75rem;
  border:1px solid #dce5f0; border-radius:6px; background:rgba(255,255,255,.94); box-shadow:0 10px 28px rgba(16,33,61,.07); backdrop-filter:blur(7px); overflow:auto;
  transition:top .16s ease,max-height .16s ease;
}
.reading-rail > strong { display:block; margin-bottom:.45rem; color:#234d7a; font-size:.72rem; letter-spacing:.06em; }
.reading-rail ol { position:relative; display:grid; gap:.05rem; margin:0; padding:0; list-style:none; }
.reading-rail ol::before { content:""; position:absolute; left:7px; top:9px; bottom:9px; width:2px; background:#dce7f3; }
.reading-rail a { position:relative; display:grid; grid-template-columns:16px 1fr; gap:.45rem; align-items:start; padding:.35rem 0; color:#67778c; text-decoration:none; font-size:.68rem; line-height:1.35; }
.reading-rail a i { position:relative; z-index:1; width:10px; height:10px; margin-top:.1rem; border:2px solid #a8bad0; border-radius:50%; background:#fff; transition:.18s; }
.reading-rail a span { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.reading-rail a.is-active { color:#104c95; font-weight:850; }
.reading-rail a.is-active i { border-color:var(--rail); background:var(--ticket); box-shadow:0 0 0 3px #e4f0ff; }

/* Calculator eligibility + visual result */
.eligibility-meter { margin:1.25rem 0 1rem; padding:1rem; border:1px solid #cbdced; border-radius:5px; background:#f7fbff; }
.eligibility-meter__head { display:flex; justify-content:space-between; gap:1rem; align-items:baseline; margin-bottom:.7rem; }
.eligibility-meter__head strong { font-size:.88rem; }
.eligibility-meter__head span { color:#2f5b87; font-size:.78rem; font-weight:800; text-align:right; }
.eligibility-meter__track { position:relative; height:12px; border-radius:999px; background:#e5edf6; overflow:visible; }
.eligibility-meter__fill { position:absolute; inset:0 auto 0 0; width:0; border-radius:999px; background:#90a5be; transition:width .25s ease,background .2s ease; }
.eligibility-meter__fill.is-eligible { background:linear-gradient(90deg,#1769e0,#3ca5f3); }
.eligibility-meter__threshold { position:absolute; z-index:2; top:-6px; bottom:-6px; left:50%; width:2px; background:#efb900; box-shadow:0 0 0 2px rgba(255,210,77,.22); }
.eligibility-meter__threshold::after { content:"100"; position:absolute; top:-21px; left:50%; transform:translateX(-50%); padding:0 .2rem; color:#7d6400; background:#f7fbff; font-size:.62rem; font-style:normal; font-weight:900; }
.eligibility-meter__labels { display:flex; justify-content:space-between; margin-top:.45rem; color:#7a899d; font-size:.68rem; }
.result-visual { margin:1rem 0 1.15rem; padding:1rem; border:1px solid #d6e2ef; border-radius:5px; background:#fff; }
.result-visual__head { display:flex; justify-content:space-between; gap:1rem; margin-bottom:.9rem; }
.result-visual__head strong { font-size:.95rem; }
.result-visual__head span { color:#5a6d85; font-size:.75rem; font-weight:750; }
.fare-bars { display:grid; gap:.65rem; }
.fare-bar { display:grid; grid-template-columns:72px minmax(90px,1fr) 88px; gap:.6rem; align-items:center; }
.fare-bar > span { font-size:.75rem; font-weight:850; }
.fare-bar__track { height:12px; border-radius:999px; background:#edf2f7; overflow:hidden; }
.fare-bar__track i { display:block; height:100%; border-radius:inherit; background:#91a7bf; transition:width .4s ease; }
.fare-bar--discount .fare-bar__track i { background:#1769e0; }
.fare-bar--saving .fare-bar__track i { background:#ffd24d; }
.fare-bar > strong { text-align:right; font-size:.82rem; font-variant-numeric:tabular-nums; }
.fare-bar > small { grid-column:2 / -1; margin-top:-.45rem; color:#75859a; font-size:.66rem; }
.fare-breakdown { margin-top:1rem; padding-top:.9rem; border-top:1px dashed #cedbea; }
.fare-breakdown > strong { display:block; margin-bottom:.55rem; font-size:.82rem; }
.fare-breakdown__grid { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; }
.fare-breakdown__grid > div { padding:.65rem .7rem; border:1px solid #e1e8f0; border-radius:4px; background:#f8fafc; }
.fare-breakdown__grid span,.fare-breakdown__grid small { display:block; color:#6b7b91; font-size:.68rem; }
.fare-breakdown__grid b { display:block; margin:.15rem 0; font-size:.78rem; font-variant-numeric:tabular-nums; }

/* Inline data visualisation (table remains canonical source) */
.inline-data-viz { margin:1.2rem 0 1.5rem; padding:1rem 1.05rem; border:1px solid #d6e2ef; border-radius:6px; background:linear-gradient(180deg,#fbfdff,#f5f9fd); }
.inline-data-viz h3 { margin:0 0 .25rem; font-size:1.05rem; }
.inline-data-viz > p { margin:.1rem 0 .9rem; color:var(--muted); font-size:.83rem; }
.svg-bar-chart { display:grid; gap:.65rem; }
.svg-bar-chart__row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(100px,2fr) 95px; gap:.7rem; align-items:center; }
.svg-bar-chart__row > span { font-size:.76rem; font-weight:800; line-height:1.35; }
.svg-bar-chart__track { height:14px; border-radius:3px; background:#e7edf5; overflow:hidden; }
.svg-bar-chart__track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#1769e0,#62b2ef); }
.svg-bar-chart__row > strong { text-align:right; font-size:.75rem; font-variant-numeric:tabular-nums; }
.inline-data-viz__note { display:block; margin-top:.8rem; color:#718197; font-size:.68rem; }

/* Route experience */
.route-experience { position:relative; overflow:hidden; }
.route-experience::after { content:""; position:absolute; right:-25px; top:-25px; width:140px; height:100px; opacity:.1; background:radial-gradient(circle,var(--rail) 0 1.2px,transparent 1.3px); background-size:9px 9px; pointer-events:none; }
.route-experience__head { position:relative; z-index:1; }
.route-tabs { position:relative; z-index:1; display:inline-flex; gap:.25rem; margin:.3rem 0 1rem; padding:.25rem; border:1px solid #d2deeb; border-radius:5px; background:#f4f7fb; }
.route-tabs button { min-height:38px; padding:.42rem .9rem; border:0; border-radius:3px; color:#50627a; background:transparent; font-weight:850; cursor:pointer; }
.route-tabs button.is-active { color:#fff; background:var(--rail); box-shadow:0 3px 8px rgba(23,105,224,.18); }
.route-strip { position:relative; z-index:1; padding:1.25rem .9rem .9rem; border:1px solid #d7e3f0; border-radius:6px; background:linear-gradient(180deg,#fbfdff,#f4f9ff); overflow-x:auto; }
.route-strip__line { position:relative; min-width:620px; display:grid; grid-template-columns:repeat(var(--stops,6),1fr); align-items:start; padding:.8rem 1rem; }
.route-strip__line::before { content:""; position:absolute; left:8%; right:8%; top:50px; height:5px; border-radius:999px; background:linear-gradient(90deg,#1769e0,#2e8ee7); box-shadow:0 2px 0 rgba(16,33,61,.12); }
.route-stop { position:relative; z-index:1; display:grid; justify-items:center; gap:.35rem; text-align:center; }
.route-stop > span { color:#6d7f95; font-size:.62rem; font-weight:850; }
.route-stop i { width:18px; height:18px; border:4px solid #1769e0; border-radius:50%; background:#ffd24d; box-shadow:0 0 0 4px #f5faff; }
.route-stop strong { max-width:90px; font-size:.78rem; line-height:1.25; }
.route-map-panel { position:relative; z-index:1; }
.route-map { height:360px; border:1px solid #d2deea; border-radius:6px; background:#eef4fa; overflow:hidden; }
.route-map.is-error { display:grid; place-items:center; }
.route-map.is-error::before { content:"地図の読み込みに失敗しました"; color:#6d7b8e; font-size:.85rem; }
.route-map-status { margin:.65rem 0 0; color:#697a8f; font-size:.72rem; }

/* Contextual next step */
.next-journey { position:relative; margin:2.6rem 0 .5rem; padding:clamp(1.2rem,3vw,1.7rem); border:1px solid #cddded; border-radius:7px; background:linear-gradient(135deg,#eef6ff,#fff 64%); box-shadow:0 13px 30px rgba(16,33,61,.07); overflow:hidden; }
.next-journey::after { content:""; position:absolute; right:-20px; bottom:-28px; width:160px; height:110px; opacity:.11; background:radial-gradient(circle,#1769e0 0 1.2px,transparent 1.3px); background-size:10px 10px; transform:rotate(-7deg); pointer-events:none; }
.next-journey__head { position:relative; z-index:1; margin-bottom:1rem; }
.next-journey__head > span { display:inline-block; padding:.2rem .45rem; border-radius:999px; color:#12519a; background:#dfeeff; font-size:.65rem; font-weight:950; letter-spacing:.1em; }
.next-journey__head h2 { margin:.4rem 0 .25rem; font-size:clamp(1.35rem,3vw,1.85rem); }
.next-journey__head p { margin:0; color:var(--muted); font-size:.87rem; }
.next-journey__grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.next-journey__card { display:grid; grid-template-columns:34px 1fr auto; grid-template-rows:auto auto; gap:.1rem .65rem; align-items:center; min-height:98px; padding:.8rem; border:1px solid #d7e3ef; border-radius:5px; color:var(--ink); background:#fff; text-decoration:none; transition:.16s ease; }
.next-journey__card:hover { border-color:#a5c3e4; transform:translateY(-2px); box-shadow:0 10px 20px rgba(16,33,61,.08); }
.next-journey__card > span { grid-row:1 / span 2; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; color:#1056a4; background:#eaf4ff; font-size:.68rem; font-weight:950; }
.next-journey__card strong { align-self:end; font-size:.88rem; line-height:1.35; }
.next-journey__card small { align-self:start; color:#718197; font-size:.7rem; line-height:1.35; }
.next-journey__card b { grid-column:3; grid-row:1 / span 2; color:var(--rail); font-size:1.2rem; }

/* Data tables: preserve text, improve scanability. */
.gsc-route-table-wrap { position:relative; border-radius:5px; }
.gsc-route-table tbody tr:nth-child(even), .legacy-page table tbody tr:nth-child(even) { background:#fafcff; }
.gsc-route-table tbody tr:hover, .legacy-page table tbody tr:hover { background:#f1f7fe; }
.gsc-route-table th { position:relative; }

@media (max-width:1280px) { .reading-rail { display:none; } }
@media (max-width:980px) {
  .intent-navigator__choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .next-journey__grid { grid-template-columns:1fr; }
  .site-search-trigger span { display:none; }
  .site-search-trigger { width:42px; justify-content:center; padding:0; }
}
@media (max-width:720px) {
  .intent-navigator { margin:1.5rem 0; padding:1rem; }
  .intent-navigator__choices { grid-template-columns:1fr; }
  .intent-navigator__choices button { min-height:60px; }
  .fare-breakdown__grid { grid-template-columns:1fr; }
  .fare-bar { grid-template-columns:62px 1fr 78px; gap:.45rem; }
  .svg-bar-chart__row { grid-template-columns:1fr 82px; gap:.3rem .6rem; }
  .svg-bar-chart__row > span { grid-column:1 / -1; }
  .route-map { height:300px; }
  .site-search-dialog { width:calc(100% - .8rem); }
}
@media (max-width:520px) {
  .site-search-trigger { order:2; margin-left:auto; }
  .menu-toggle { order:3; }
  .site-nav { order:4; }
  .eligibility-meter__head,.result-visual__head { align-items:flex-start; flex-direction:column; gap:.2rem; }
  .fare-bar { grid-template-columns:58px 1fr 72px; }
  .fare-bar > small { grid-column:1 / -1; margin-top:-.25rem; }
  .route-tabs { display:flex; width:100%; }
  .route-tabs button { flex:1; }
  .next-journey { padding:1rem; }
}

/* ======================================================================
   Navigation and demand surface
   Replaces the modal/search-button pattern with a persistent combobox,
   converts hub intent navigation to direct cards, and adds crawlable
   demand-oriented internal links without removing existing content.
   ====================================================================== */
.site-search-trigger,.site-search-dialog { display:none !important; }
.header-inner { position:relative; gap:.8rem; }
.smart-search { position:relative; width:clamp(230px,24vw,340px); margin-left:auto; flex:0 1 340px; }
.smart-search__input-wrap { position:relative; }
.smart-search__icon { position:absolute; z-index:2; left:.78rem; top:50%; transform:translateY(-50%); display:grid; place-items:center; color:#1769e0; pointer-events:none; }
.smart-search__input-wrap input {
  width:100%; min-height:42px; padding:.58rem 2.25rem .58rem 2.45rem;
  border:1px solid #cbd9e9; border-radius:5px; color:var(--ink); background:#f9fbfe;
  font-size:.88rem; font-weight:720; transition:border-color .16s,background .16s,box-shadow .16s;
}
.smart-search__input-wrap input::placeholder { color:#74859b; font-weight:650; }
.smart-search__input-wrap input:hover { border-color:#a8c2e0; background:#fff; }
.smart-search__input-wrap input:focus { border-color:#7ea9d8; outline:0; background:#fff; box-shadow:0 0 0 3px rgba(23,105,224,.12); }
.smart-search__hint { position:absolute; right:.62rem; top:50%; transform:translateY(-50%); min-width:22px; height:22px; display:grid; place-items:center; border:1px solid #d8e2ed; border-radius:4px; color:#7c8da2; background:#fff; font-size:.7rem; font-weight:900; pointer-events:none; }
.smart-search__panel {
  position:absolute; z-index:70; top:calc(100% + .55rem); right:0; width:min(560px,88vw); max-height:min(68vh,580px); padding:.85rem;
  border:1px solid #cbd9e9; border-radius:7px; background:#fff; box-shadow:0 22px 55px rgba(16,33,61,.18); overflow:auto; overscroll-behavior:contain;
}
.smart-search__panel[hidden] { display:none; }
.smart-search__top { display:flex; align-items:flex-start; gap:.7rem; padding:.05rem .05rem .75rem; border-bottom:1px solid #edf1f5; }
.smart-search__top > span { flex:none; padding-top:.3rem; color:#718197; font-size:.68rem; font-weight:900; letter-spacing:.04em; }
.smart-search__chips { display:flex; flex-wrap:wrap; gap:.38rem; }
.smart-search__chips button { padding:.28rem .56rem; border:1px solid #d7e3ef; border-radius:999px; color:#285985; background:#f6faff; font-size:.72rem; font-weight:800; cursor:pointer; }
.smart-search__chips button:hover { border-color:#aac5e4; background:#edf6ff; }
.smart-search__status { margin:.65rem .1rem .45rem; color:#66788e; font-size:.77rem; }
.smart-search__results { display:grid; gap:.38rem; }
.smart-search__result { position:relative; display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; gap:.08rem .7rem; padding:.72rem .76rem; border:1px solid transparent; border-radius:5px; color:var(--ink); text-decoration:none; transition:.14s ease; }
.smart-search__result:hover,.smart-search__result.is-active { border-color:#c7dced; background:#f5faff; }
.smart-search__meta { grid-row:1 / span 2; align-self:start; margin-top:.05rem; padding:.17rem .42rem; border-radius:999px; color:#15569c; background:#e9f4ff; font-size:.64rem; font-weight:900; white-space:nowrap; }
.smart-search__result strong { align-self:end; padding-right:.4rem; font-size:.82rem; line-height:1.36; }
.smart-search__result p { align-self:start; margin:.14rem 0 0; padding-right:.4rem; color:#74849a; font-size:.69rem; line-height:1.4; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.smart-search__result b { grid-column:3; grid-row:1 / span 2; align-self:center; color:#1769e0; font-size:1rem; }

/* Direct hub intent navigator: link cards, no reveal button state. */
.intent-navigator--direct .intent-navigator__head { max-width:690px; margin-bottom:1.15rem; }
.intent-navigator--direct .intent-navigator__intro { margin-bottom:0; }
.intent-navigator--direct .intent-navigator__choices { gap:.85rem; }
.intent-choice { position:relative; min-height:112px; display:grid; grid-template-columns:34px 1fr auto; gap:.7rem; align-items:center; padding:.92rem .9rem; border:1px solid #d4e1ee; border-radius:6px; color:var(--ink); background:#fff; box-shadow:0 5px 15px rgba(16,33,61,.045); text-decoration:none; transition:border-color .16s,box-shadow .16s,transform .16s,background .16s; }
.intent-choice:hover { border-color:#a8c4e4; background:#fbfdff; box-shadow:0 12px 24px rgba(16,33,61,.085); transform:translateY(-2px); }
.intent-choice__num { display:grid; place-items:center; width:30px; height:30px; border:1px solid #c7d8eb; border-radius:50%; color:#1769e0; background:#f4f9ff; font-size:.65rem; font-weight:950; }
.intent-choice__body { min-width:0; display:grid; gap:.16rem; }
.intent-choice__body small { width:max-content; max-width:100%; padding:.12rem .4rem; border-radius:999px; color:#6b5800; background:#fff3bc; font-size:.61rem; font-style:normal; font-weight:900; }
.intent-choice__body strong { font-size:.9rem; line-height:1.36; }
.intent-choice__body em { color:#708096; font-size:.72rem; font-style:normal; line-height:1.45; }
.intent-choice > b { color:#1769e0; font-size:1.05rem; }
.intent-navigator__choices button,.intent-navigator__result { display:none !important; }

/* Crawlable demand surface on all 19 content pages. */
.demand-surface { position:relative; margin:2.35rem 0; padding:clamp(1.15rem,3vw,1.65rem); border:1px solid #d0ddec; border-radius:7px; background:linear-gradient(180deg,#ffffff,#f8fbff); box-shadow:0 10px 28px rgba(16,33,61,.055); overflow:hidden; }
.demand-surface::after { content:""; position:absolute; right:-22px; top:-26px; width:145px; height:100px; opacity:.09; background:radial-gradient(circle,#1769e0 0 1.1px,transparent 1.25px); background-size:9px 9px; pointer-events:none; }
.demand-surface__head { position:relative; z-index:1; max-width:680px; margin-bottom:1rem; }
.demand-surface__chip { display:inline-flex; margin-bottom:.3rem; padding:.18rem .42rem; border-radius:999px; color:#17589e; background:#e8f3ff; font-size:.62rem; font-weight:950; letter-spacing:.09em; }
.demand-surface__head h2 { margin:.2rem 0 .28rem; font-size:clamp(1.3rem,2.8vw,1.72rem); letter-spacing:-.025em; }
.demand-surface__head p { margin:0; color:#6d7e93; font-size:.82rem; }
.demand-surface__grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.demand-surface__card { display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; gap:.12rem .65rem; align-items:center; min-height:86px; padding:.78rem .82rem; border:1px solid #d9e4ef; border-radius:5px; color:var(--ink); background:#fff; text-decoration:none; transition:.15s ease; }
.demand-surface__card:hover { border-color:#aec8e5; background:#fbfdff; box-shadow:0 8px 18px rgba(16,33,61,.07); transform:translateY(-1px); }
.demand-surface__tag { grid-row:1 / span 2; align-self:start; margin-top:.05rem; padding:.16rem .42rem; border-radius:999px; color:#725b00; background:#fff2b6; font-size:.61rem; font-weight:900; white-space:nowrap; }
.demand-surface__card strong { align-self:end; font-size:.83rem; line-height:1.36; }
.demand-surface__card small { align-self:start; color:#718197; font-size:.69rem; line-height:1.4; }
.demand-surface__card b { grid-column:3; grid-row:1 / span 2; color:#1769e0; font-size:1.02rem; }

@media (max-width:1080px) {
  .smart-search { width:clamp(210px,26vw,280px); flex-basis:280px; }
  .site-nav a { padding:.55rem .6rem; font-size:.9rem; }
}
@media (max-width:900px) {
  .header-inner { flex-wrap:wrap; padding-block:.55rem; }
  .brand { order:1; }
  .menu-toggle { order:2; margin-left:auto; }
  .smart-search { order:3; flex:1 0 100%; width:100%; margin-left:0; }
  .site-nav { order:4; }
  .smart-search__panel { left:0; right:auto; width:min(620px,calc(100vw - 2rem)); }
  .intent-navigator--direct .intent-navigator__choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .smart-search__input-wrap input { min-height:44px; font-size:.9rem; }
  .smart-search__hint { display:none; }
  .smart-search__panel { width:calc(100vw - 1.2rem); padding:.7rem; }
  .smart-search__top { display:block; }
  .smart-search__top > span { display:block; padding:0 0 .45rem; }
  .smart-search__result { grid-template-columns:1fr auto; }
  .smart-search__meta { grid-column:1; grid-row:auto; width:max-content; margin-bottom:.2rem; }
  .smart-search__result strong,.smart-search__result p { grid-column:1; }
  .smart-search__result b { grid-column:2; grid-row:1 / span 3; }
  .intent-navigator--direct .intent-navigator__choices,.demand-surface__grid { grid-template-columns:1fr; }
  .intent-choice { min-height:96px; }
  .demand-surface { margin:1.7rem 0; padding:1rem; }
}

/* Route helper for the calculator. Keeps the existing manual fields as the source of truth. */
.route-entry {
  margin: 0 0 1.4rem;
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid #cfdced;
  border-radius: 4px;
  background: linear-gradient(180deg,#f8fbff 0,#f2f7fd 100%);
}
.route-entry legend { padding: 0 .35rem; color: #12345e; font-size: .92rem; font-weight: 900; letter-spacing: .01em; }
.route-entry__lead { margin: .1rem 0 .9rem; color: #455873; font-size: .9rem; line-height: 1.6; }
.route-entry__grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: .65rem; align-items: end; }
.route-entry__field { display: grid; gap: .3rem; min-width: 0; }
.route-entry__field > span { color: #314966; font-size: .8rem; font-weight: 850; }
.route-entry__field input { width: 100%; min-height: 48px; padding: .65rem .75rem; border: 1px solid #bfcfe3; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-weight: 750; outline: none; }
.route-entry__field input:focus { border-color: #6e9fda; box-shadow: 0 0 0 3px rgba(23,105,224,.10); }
.route-entry__arrow { display: grid; place-items: center; width: 30px; height: 48px; color: #4773a9; font-weight: 900; }
.route-entry__status { margin-top: .75rem; padding-top: .7rem; border-top: 1px solid #dce6f2; color: #4c6079; font-size: .82rem; font-weight: 750; }
.route-entry__status[data-state="matched"] { color: #176448; }
.route-entry__status[data-state="adjusted"] { color: #7a5b10; }
.route-entry__status[data-state="error"] { color: #a22c39; }
.route-entry__note { margin: .4rem 0 0; color: #708096; font-size: .74rem; line-height: 1.55; }
.route-result { margin: 1rem 0 1.15rem; padding: 1rem; border: 1px solid #d4e1ef; border-radius: 4px; background: #f8fbff; }
.route-result__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem .75rem; margin-bottom: .8rem; }
.route-result__head span { color: #5a6e87; font-size: .75rem; font-weight: 800; }
.route-result__head strong { color: #17395f; font-size: .96rem; }
.route-result__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px,1fr); align-items: start; overflow-x: auto; padding: .25rem 0 .4rem; scrollbar-width: thin; }
.route-result__stop { position: relative; display: grid; justify-items: center; gap: .35rem; min-width: 52px; color: #63758c; font-size: .67rem; text-align: center; white-space: nowrap; }
.route-result__stop::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: #86b3e8; }
.route-result__stop:first-child::before { display: none; }
.route-result__stop i { position: relative; z-index: 1; width: 15px; height: 15px; border: 3px solid #4d8dd6; border-radius: 50%; background: #fff; }
.route-result__stop.is-end { color: #17395f; font-weight: 900; }
.route-result__stop.is-end i { border-color: #1769e0; background: #1769e0; box-shadow: inset 0 0 0 3px #fff; }
.route-result__stop b { font-weight: 800; }
.route-result > p { margin: .7rem 0 0; color: #61738a; font-size: .75rem; line-height: 1.55; }
@media (max-width:620px) {
  .route-entry { padding: 1rem; }
  .route-entry__grid { grid-template-columns: 1fr; gap: .65rem; }
  .route-entry__arrow { width: 100%; height: 18px; transform: rotate(90deg); }
  .route-result__head { display: grid; }
}
.route-result__guide {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  margin-top:.7rem;
  color:#155ca9;
  font-size:.76rem;
  font-weight:850;
  text-decoration:none;
}
.route-result__guide::after { content:"→"; }
.route-result__guide:hover { text-decoration:underline; }
.route-result__guide[hidden] { display:none; }

/* ======================================================================
   AdSense manual placements — static-site implementation
   Slots: 9968188650 (first-content), 7836849332 (second-content)
   ====================================================================== */
.ad-zone {
  display: none;
  width: min(100%, 970px);
  margin: clamp(2.25rem, 5vw, 3.5rem) auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7b8798;
  text-align: center;
  box-shadow: none;
  clear: both;
}
.ad-zone::before { content: none; }
.ad-zone[data-ad-state="active"],
.ad-zone[data-ad-state="preview"] { display: block; }
.ad-label {
  display: block;
  margin: 0 0 .45rem;
  color: #8994a5;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  text-align: center;
}
.ad-mount {
  width: 100%;
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ad-zone .adsbygoogle { width: 100%; }
.ad-zone[data-ad-state="preview"] .ad-mount {
  min-height: 180px;
  border: 1px dashed #b9cbe0;
  background: repeating-linear-gradient(-45deg,#f8fbff,#f8fbff 12px,#eff6ff 12px,#eff6ff 24px);
}
.ad-preview {
  display: grid;
  gap: .35rem;
  place-items: center;
  min-height: 160px;
  padding: 1rem;
  color: #315b8f;
}
.ad-preview strong { font-size: .92rem; }
.ad-preview small { color: #71829a; }

/* Keep ads visually separate from action/download/navigation affordances. */
.ad-zone + .gsc-section,
.ad-zone + section,
.gsc-section + .ad-zone,
section + .ad-zone { margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 620px) {
  .ad-zone { margin: 2rem auto; }
  .ad-mount { min-height: 220px; }
}

/* A 1px armed state lets IntersectionObserver preload ads before they enter view
   without reserving a large blank block across the full page. */
.ad-zone[data-ad-state="armed"] {
  display: block;
  min-height: 1px;
  margin-top: 0;
  margin-bottom: 0;
}
.ad-zone[data-ad-state="armed"] .ad-label { display: none; }
.ad-zone[data-ad-state="armed"] .ad-mount { min-height: 1px; }

/* ======================================================================
   Mobile hero hotfix — full-width above-the-fold layout
   Fixes the late <=980px two-column override squeezing copy on phones.
   ====================================================================== */
@media (max-width: 820px) {
  .hero {
    padding: 1.75rem 0 2.5rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
  }
  .hero-grid > * {
    min-width: 0;
    width: 100%;
  }
  .hero h1 {
    max-width: 14ch;
    margin: 1rem 0 .85rem;
    font-size: clamp(2.15rem, 8.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero-copy {
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.75;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
  }
  .hero-proof span {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: .35rem .45rem;
    text-align: center;
    line-height: 1.35;
  }
  .hero-actions {
    margin-top: 1.35rem;
  }
  .hero-art {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 1.5rem 0 2.2rem;
  }
  .hero::before {
    width: 70vw;
    height: 180px;
    opacity: .17;
  }
  .hero-grid {
    gap: 0;
  }
  .hero-art {
    display: none;
  }
  .eyebrow {
    max-width: 100%;
    padding: .42rem .7rem;
    line-height: 1.4;
    white-space: normal;
  }
  .hero h1 {
    max-width: 10.8em;
    margin-top: .95rem;
    font-size: clamp(2.05rem, 9vw, 2.65rem);
    line-height: 1.12;
    text-wrap: pretty;
  }
  .hero-copy {
    max-width: none;
    margin-top: 0;
    font-size: .98rem;
    line-height: 1.72;
  }
  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
  }
  .hero-proof span {
    font-size: .75rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    margin-top: 1.2rem;
  }
  .hero-actions > * {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 9.8vw, 2.35rem);
  }
  .hero-proof {
    grid-template-columns: 1fr;
  }
  .hero-proof span {
    min-height: 34px;
  }
}
