/* Japan Travel Hacks — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:  #0057a8;
  --color-accent:   #c8002a;
  --color-text:     #1a1a1a;
  --color-muted:    #555;
  --color-border:   #ddd;
  --color-bg-alt:   #f7f7f7;
  --max-width:      800px;
  --radius:         6px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: #fff;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: var(--color-primary);
  padding: 0 1rem;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.site-header__logo {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
}
.site-header__logo:hover { text-decoration: none; opacity: .85; }
.site-header__nav a {
  color: #fff;
  font-size: .875rem;
  margin-left: 1.25rem;
  opacity: .85;
}
.site-header__nav a:hover { opacity: 1; text-decoration: none; }

/* ── Main wrapper ── */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
.hero__eyebrow {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
  margin-bottom: .5rem;
}
.hero__title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-text);
}
@media (min-width: 600px) { .hero__title { font-size: 2.25rem; } }
.hero__lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Section headings ── */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--color-primary);
}

/* ── Quick guide cards ── */
.quick-guide {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.guide-grid {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
@media (min-width: 500px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}
.guide-card__who {
  font-size: .8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.guide-card__answer {
  font-weight: 700;
  font-size: 1.05rem;
}
.guide-card__answer--esim  { color: var(--color-primary); }
.guide-card__answer--wifi  { color: #217a2f; }
.guide-card__answer--both  { color: #a05c00; }
.guide-card__note {
  font-size: .8rem;
  color: var(--color-muted);
  margin-top: .2rem;
}

/* ── Comparison table ── */
.comparison { margin-bottom: 2rem; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.comp-table th, .comp-table td {
  border: 1px solid var(--color-border);
  padding: .6rem .8rem;
  text-align: left;
  vertical-align: top;
}
.comp-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.comp-table thead th:first-child { background: #fff; color: var(--color-text); }
.comp-table tbody tr:nth-child(even) td { background: var(--color-bg-alt); }
.tag-good { color: #217a2f; font-weight: 600; }
.tag-bad  { color: var(--color-accent); font-weight: 600; }

/* ── CTA buttons ── */
.cta-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.cta-block__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}
@media (min-width: 500px) { .cta-buttons { flex-direction: row; justify-content: center; } }
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity .15s;
  text-align: center;
  min-width: 200px;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--secondary { background: #217a2f; color: #fff; }
.cta-block__note {
  font-size: .78rem;
  color: var(--color-muted);
  margin-top: .75rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .8rem;
  color: var(--color-muted);
}
.site-footer a { color: var(--color-muted); margin: 0 .4rem; }
.site-footer a:hover { color: var(--color-text); }

/* ── Generic page (stub) ── */
.generic-page { padding: 2.5rem 0; }
.generic-page h1 { font-size: 1.5rem; margin-bottom: 1rem; }
