/* Japan Rail Tickets: Shinkansen white with a blue stripe. No web fonts, no JS. */
:root {
  --ink: #14213d; --muted: #5b6577; --line: #e3e7ee; --bg: #f6f8fb; --card: #fff;
  --blue: #0b5cad; --blue-2: #1d7fe0; --accent: #f2a900; --ok: #1a7f4b; --warn-bg: #fff8e6; --warn-line: #f3dc9a; --warn-ink: #6a4b00;
  --r: 14px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

.top { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--blue-2) 70% 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: var(--ink); font-size: 18px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; color: #fff; font-size: 14px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { color: var(--ink); text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--blue); }

.hero { position: relative; color: #fff; background: #0d2342 url("/assets/img/hokkaido-shinkansen-bg.jpg") center/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,25,50,.88), rgba(10,25,50,.35)); }
.hero .wrap { position: relative; padding: 72px 16px 80px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px; max-width: 14em; letter-spacing: -.02em; }
.hero p { font-size: 18px; max-width: 34em; margin: 0 0 26px; opacity: .92; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--accent); color: #1c1400; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.6); margin-left: 8px; }

.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 24px 0 0; line-height: 1.5; }
section { padding: 40px 0 8px; }
h2 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.25; }
.page-title { font-size: 34px; letter-spacing: -.02em; margin: 36px 0 4px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 22px rgba(20,33,61,.1); transform: translateY(-2px); }
.card .img { aspect-ratio: 16/9; background: linear-gradient(135deg, #cfd8e6, #e8eef6) center/cover; }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; display: inline-block; font: 700 11px/1 system-ui; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: #e8f1fb; padding: 6px 8px; border-radius: 6px; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.price { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px dashed var(--line); }
.price b { font-size: 20px; }
.price span { font-size: 13px; color: var(--muted); text-align: right; }

.stations { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stn { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stn:hover { border-color: var(--blue); }
.stn i { width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--blue); flex: none; }

/* Articles */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 28px 32px; margin-top: 28px; }
.prose h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 8px; }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 21px; } .prose h4 { font-size: 19px; }
.prose img, .prose iframe { border-radius: 10px; }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; }
.prose .wp-caption, .prose figure { max-width: 100% !important; margin: 1.4em 0; }
.prose .wp-caption-text, .prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose .lead-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: 10px 0 6px; }
.prose dt { font-weight: 700; margin-top: 1.2em; }
.prose dd { margin: .3em 0 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.crumbs a { text-decoration: none; }
.byline { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }

/* Ticket pages */
.page { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-top: 28px; padding: 0 24px; }
.ticket { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 8px 0 32px; }
.ticket .prose { border: 0; padding: 0; margin: 0; background: none; }
.buy { position: sticky; top: 16px; align-self: start; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--bg); margin-top: 24px; }
.buy .from { font-size: 13px; color: var(--muted); }
.buy .amt { font-size: 32px; font-weight: 800; margin: 2px 0 14px; line-height: 1.2; }
.buy .btn { display: block; text-align: center; }
.buy small { display: block; color: var(--muted); margin-top: 10px; font-size: 12px; line-height: 1.5; }

.foot { margin-top: 56px; background: var(--ink); color: #c9d2e3; font-size: 14px; }
.foot .wrap { padding: 28px 16px; }
.foot-links a { color: #fff; text-decoration: none; margin-right: 18px; display: inline-block; margin-bottom: 6px; }
.foot p { max-width: 46em; margin: 10px 0 0; line-height: 1.5; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 10px 16px; }
  .nav ul { gap: 4px 14px; font-size: 14px; }
  .ticket { grid-template-columns: 1fr; gap: 0; }
  .buy { position: static; }
  .btn-ghost { margin: 10px 0 0; }
  .prose { padding: 4px 16px 24px; }
  .page { padding: 0 16px; }
}
.buy .btn + small { margin-bottom: 14px; }
.btn-second { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); margin-top: 6px; }
.card .tag + h3 { margin-top: 2px; }
