/* Japan Travel Planner — site stylesheet (v2, 2026-09-07) */

:root {
  --paper: #faf8f4;
  --card: #ffffff;
  --ink: #23272f;
  --ink-strong: #14171c;
  --muted: #5c626e;   /* darkened 2026-09-08: #6b7280 failed WCAG AA (4.38:1) on --accent-soft */
  --accent: #b3232c;      /* vermilion */
  --accent-dark: #8f1c23;
  --accent-soft: #fdf1ef;
  --line: #e7e2d9;
  --line-soft: #efe9df;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  margin: 0;
  font-size: 1.02rem;
}

.wrap {
  margin: 0 auto;
  max-width: 780px;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header .wrap {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.site-header .brand {
  color: var(--ink-strong);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .brand .dot { color: var(--accent); }
.site-header nav {
  align-items: center;
  display: flex;
  gap: 18px;
}
.site-header nav a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a.nav-cta {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  white-space: nowrap;
}
.site-header nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* Typography */
h1, h2, h3 {
  color: var(--ink-strong);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  line-height: 1.25;
}
h1 { font-size: 2.15rem; margin: 0.6em 0 0.45em; }
h2 { font-size: 1.45rem; margin-top: 2.2em; }
h3 { font-size: 1.12rem; margin-top: 1.6em; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }

main { padding-bottom: 24px; }

/* Breadcrumb + article meta */
.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1.6rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-meta {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.6rem;
  padding-bottom: 1.1rem;
}

/* Tables */
table {
  background: var(--card);
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 1.2rem 0;
  overflow: hidden;
  width: 100%;
}
th, td { border: 1px solid var(--line-soft); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: #f4f0e8; color: var(--ink-strong); font-weight: 600; }
tr:nth-child(even) td { background: #fcfbf8; }

/* CTA box */
.cta {
  background: var(--accent-soft);
  border: 1px solid #f3d0cb;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  margin: 2.4rem 0;
  padding: 22px 26px;
}
.cta h2 {
  font-size: 1.18rem;
  margin: 0 0 0.4rem;
}
.cta p { margin: 0.5rem 0; }
.cta .button {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(143, 28, 35, 0.25);
  color: #ffffff;
  display: inline-block;
  font-weight: 600;
  margin-top: 0.7rem;
  padding: 11px 22px;
  text-decoration: none;
}
.cta .button:hover { background: var(--accent-dark); color: #fff; }
.cta .price-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }

/* Homepage hero */
.hero { padding: 3.2rem 0 1rem; }
.hero h1 { font-size: 2.6rem; margin: 0 0 0.5rem; }
.hero .lede { color: var(--ink); font-size: 1.12rem; max-width: 60ch; }
.hero .kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Product card (homepage) */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35, 39, 47, 0.05);
  margin: 2.2rem 0;
  padding: 26px 30px;
}
.product-card h2 { margin: 0 0 0.3rem; }
.product-card .tagline { color: var(--muted); margin-top: 0; }
.product-card ul {
  columns: 2;
  gap: 2rem;
  margin: 1rem 0;
}
.product-card li { break-inside: avoid; font-size: 0.95rem; }
.product-card .button {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  margin-top: 0.4rem;
  padding: 12px 24px;
  text-decoration: none;
}
.product-card .button:hover { background: var(--accent-dark); }
.product-card .price { color: var(--ink-strong); font-weight: 700; }
.product-card .guarantee { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }

/* Guide index cards */
.guide-section-title { margin-top: 2.6rem; }
.guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.guide-grid li { margin: 0; }
.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  height: 100%;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(179, 35, 44, 0.08);
}
.guide-card .t {
  color: var(--ink-strong);
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.guide-card .d { color: var(--muted); display: block; font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .product-card ul { columns: 1; }
  .hero h1 { font-size: 2.1rem; }
}

/* Related guides */
.related {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 2.6rem;
  padding: 20px 26px;
}
.related h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.related ul { margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3.5rem;
  padding: 1.6rem 0 2.4rem;
}
.site-footer .brandline {
  color: var(--ink-strong);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .links { margin-top: 0.5rem; }

/* Planner product page */
.planner-hero { padding: 3rem 0 0.5rem; }
.planner-hero .price-line { color: var(--ink-strong); font-size: 1.05rem; font-weight: 600; }
.preview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
}
.preview-grid li { margin: 0; }
.preview-grid img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(35, 39, 47, 0.07);
  display: block;
  height: auto;
  width: 100%;
}
.preview-grid figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; text-align: center; }
@media (max-width: 640px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
.steps { counter-reset: step; list-style: none; margin: 1.2rem 0; padding: 0; }
.steps li {
  counter-increment: step;
  margin: 0.9rem 0;
  padding-left: 3rem;
  position: relative;
}
.steps li::before {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  content: counter(step);
  font-weight: 700;
  height: 2rem;
  left: 0;
  line-height: 2rem;
  position: absolute;
  text-align: center;
  top: 0.1rem;
  width: 2rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0.7rem 0;
  padding: 14px 18px;
}
.faq summary {
  color: var(--ink-strong);
  cursor: pointer;
  font-weight: 600;
}
.faq details p { margin: 0.7rem 0 0.2rem; }
.buy-box {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 14px;
  margin: 2.4rem 0;
  padding: 24px 28px;
  text-align: center;
}
.buy-box .big {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.buy-box .button {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.6rem;
  padding: 14px 30px;
  text-decoration: none;
}
.buy-box .button:hover { background: var(--accent-dark); }
.buy-box .fine { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }

/* ===== v3 visual refresh (2026-09-07) ===== */

/* Sticky glass header */
.site-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(250, 248, 244, 0.86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Full-bleed photo hero (homepage) */
.photo-hero {
  color: #fff;
  overflow: hidden;
  position: relative;
}
.photo-hero img.bg {
  display: block;
  height: 480px;
  object-fit: cover;
  width: 100%;
}
.photo-hero .shade {
  background: linear-gradient(180deg, rgba(20,23,28,0.05) 30%, rgba(20,23,28,0.72) 100%);
  inset: 0;
  position: absolute;
}
.photo-hero .hero-copy {
  bottom: 36px;
  left: 0;
  position: absolute;
  right: 0;
}
.photo-hero .kicker { color: #ffd9d5; }
.photo-hero h1 {
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.15;
  margin: 0.2rem 0 0.5rem;
  max-width: 21ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.photo-hero .lede {
  color: #f3efe9;
  font-size: 1.05rem;
  max-width: 58ch;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.photo-hero .hero-actions { margin-top: 1.1rem; }
.photo-hero .hero-actions .button {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  margin-right: 10px;
  padding: 12px 24px;
  text-decoration: none;
}
.photo-hero .hero-actions .button.ghost {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.55);
}
.photo-hero .hero-actions .button:hover { background: var(--accent-dark); }
.photo-hero .hero-actions .button.ghost:hover { background: rgba(255,255,255,0.25); }
@media (max-width: 640px) {
  .photo-hero img.bg { height: 420px; }
  .photo-hero h1 { font-size: 2rem; }
}

/* Article hero banner (guides) */
.article-hero { line-height: 0; }
.article-hero img {
  display: block;
  height: 300px;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 640px) { .article-hero img { height: 200px; } }

/* Guide cards with thumbnails */
.guide-card { overflow: hidden; padding: 0; }
.guide-card .thumb {
  aspect-ratio: 3 / 2;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.guide-card .txt { display: block; padding: 14px 16px 16px; }
.guide-card:hover { box-shadow: 0 6px 22px rgba(35, 39, 47, 0.12); transform: translateY(-2px); }
.guide-card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }

/* Dark footer */
.site-footer {
  background: #1b1e24;
  border-top: none;
  color: #9aa1ab;
  margin-top: 4rem;
  padding: 2.2rem 0 2.6rem;
}
.site-footer .brandline { color: #f3efe9; font-size: 1.05rem; }
.site-footer a { color: #c7ccd4; }
.site-footer a:hover { color: #ff8d85; }
.site-footer .credit { font-size: 0.8rem; margin-top: 0.9rem; }

/* Free mini planner capture box */
.freebie {
  align-items: center;
  background: linear-gradient(135deg, #fdf1ef 0%, #faf8f4 100%);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 2.4rem 0;
  padding: 18px 22px;
}
.freebie .txt { flex: 1 1 320px; }
.freebie .t { color: var(--ink-strong); font-family: Fraunces, Georgia, serif; font-size: 1.08rem; font-weight: 700; }
.freebie .d { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.freebie .button {
  background: var(--ink-strong);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
}
.freebie .button:hover { background: var(--accent); }

/* Accessibility */
.skip-link {
  background: var(--ink-strong);
  border-radius: 0 0 8px 0;
  color: #fff;
  left: 0;
  padding: 10px 18px;
  position: absolute;
  top: -60px;
  transition: top 0.15s ease;
  z-index: 100;
}
.skip-link:focus { top: 0; color: #fff; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Affiliate disclosure line — sits directly beside every sponsored link (FTC 16 CFR 255). */
.aff-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}
