:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --usa: #1d4ed8;
  --mex: #047857;
  --jp: #b91c1c;
  --accent: #2563eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
section { padding: 2rem 1rem; max-width: 720px; margin: 0 auto; }
h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.2rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Site header */
.site-head {
  background: #111;
  color: #fff;
  padding: 1rem 1rem 0.8rem;
  text-align: center;
}
.site-head .brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fbbf24;
}
.site-head .tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

/* Nav (top) */
.nav {
  background: #1f2937;
  color: #fff;
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav a {
  color: #d1d5db;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav a:hover { background: #374151; text-decoration: none; }
.nav a.current { background: #fbbf24; color: #111; }

/* Back link */
.back {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  font-size: 0.8rem;
}
.back a { color: var(--muted); font-weight: 600; }

/* Hero */
.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=1600&q=80') center/cover;
  opacity: 0.25;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.6rem; }
.hero .sub { font-size: 0.95rem; color: rgba(255,255,255,0.82); max-width: 520px; margin-bottom: 1.5rem; }
.hero .dates {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero .cities {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.hero .cities span {
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.hero .concept {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  max-width: 480px;
}

/* Page title (sub-pages) */
.page-title {
  padding: 2rem 1rem 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-title h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.page-title .lead {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.card .tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  color: #fff;
  margin-bottom: 0.4rem;
}
.card .tag.usa { background: var(--usa); }
.card .tag.mex { background: var(--mex); }
.card .tag.jp  { background: var(--jp); }
.card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.card .kw { font-size: 0.78rem; color: var(--muted); }

.navcard {
  display: block;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: all 0.2s;
}
.navcard:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.navcard .n { font-size: 0.7rem; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; }
.navcard .ttl { font-size: 0.95rem; font-weight: 700; margin-top: 0.15rem; }
.navcard .desc { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* Tables */
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
table.t th, table.t td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.t th {
  background: #f3f4f6;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
table.t tr:last-child td { border-bottom: none; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }
table.t .ok { color: var(--mex); font-weight: 700; }
table.t .warn { color: #b45309; font-weight: 700; }
table.t .ng { color: #dc2626; font-weight: 700; }

/* Status pill */
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
}
.pill.ok   { background: #d1fae5; color: #065f46; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.ng   { background: #fee2e2; color: #991b1b; }
.pill.info { background: #dbeafe; color: #1e40af; }

/* Schedule strip */
.sched {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 0.2rem;
  text-align: center;
  font-size: 0.62rem;
  margin-bottom: 1rem;
}
.sched .d {
  padding: 0.45rem 0.15rem;
  border-radius: 5px;
  background: #f3f4f6;
  line-height: 1.2;
}
.sched .d.usa { background: var(--usa); color: #fff; }
.sched .d.mex { background: var(--mex); color: #fff; }
.sched .d.jp  { background: var(--jp);  color: #fff; }
.sched .d.match { outline: 2px solid #fbbf24; outline-offset: -2px; }

/* Timeline */
.tl {
  position: relative;
  margin: 1rem 0 2rem 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}
.tl-day { margin-bottom: 1.5rem; }
.tl-day h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
}
.tl-day h4::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: #fff;
}
.tl-day.usa h4::before { border-color: var(--usa); background: var(--usa); }
.tl-day.mex h4::before { border-color: var(--mex); background: var(--mex); }
.tl-day.jp  h4::before { border-color: var(--jp);  background: var(--jp); }
.tl-day.match h4::before { background: #fbbf24; border-color: #fbbf24; }
.tl-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}
.tl-item .t {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}
.tl-item .hi { background: #fef3c7; padding: 0 0.15rem; border-radius: 2px; font-weight: 600; }
.tl-note {
  margin: 0.35rem 0 0.2rem;
  padding: 0.5rem 0.7rem;
  background: #f9fafb;
  border-left: 3px solid var(--border);
  font-size: 0.76rem;
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}

/* Info box */
.info {
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.82rem;
}
.info.green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.info.yellow { background: #fffbeb; border: 1px solid #fde68a; }
.info.blue   { background: #eff6ff; border: 1px solid #bfdbfe; }
.info.red    { background: #fef2f2; border: 1px solid #fecaca; }
.info.dark   { background: #111; color: #fff; padding: 1.3rem; }

/* Action / Warning list */
.act {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}
.act h4 { font-size: 0.88rem; margin-bottom: 0.4rem; }
.act ul { list-style: none; font-size: 0.82rem; }
.act li { padding: 0.25rem 0 0.25rem 1.2rem; position: relative; }
.act li::before {
  content: '!';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #dc2626;
}

/* Evidence / source table */
.evidence {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}
.evidence h4 { color: #c2410c; font-size: 0.9rem; margin-bottom: 0.5rem; }
.evidence table { width: 100%; font-size: 0.75rem; border-collapse: collapse; }
.evidence td, .evidence th { padding: 0.3rem; text-align: left; vertical-align: top; }
.evidence tr:nth-child(even) { background: #ffedd5; }
.evidence a { color: #c2410c; }

/* Scenario boxes */
.scen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (min-width: 500px) {
  .scen { grid-template-columns: 1fr 1fr; }
}
.scen .s {
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  border: 2px solid var(--border);
}
.scen .s h4 { margin-bottom: 0.4rem; }
.scen .s .lbl {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
}
.scen .s.a { border-color: var(--mex); }
.scen .s.a .lbl { background: var(--mex); color: #fff; }
.scen .s.b { border-color: var(--usa); }
.scen .s.b .lbl { background: var(--usa); color: #fff; }

/* CTA */
.cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, #fafafa, #eef2ff);
}
.cta h2 { margin-bottom: 0.7rem; }
.cta > p { color: var(--muted); max-width: 400px; margin: 0 auto 1.3rem; font-size: 0.88rem; }

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.7rem;
  color: #9ca3af;
}
footer a { color: #9ca3af; }

/* Small screens */
@media (max-width: 420px) {
  .sched { grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; font-size: 0.58rem; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
}

/* utility */
.muted { color: var(--muted); }
.small { font-size: 0.78rem; }
.xsmall { font-size: 0.72rem; }
.center { text-align: center; }
.mt1 { margin-top: 0.5rem; }
.mt2 { margin-top: 1rem; }
.mt3 { margin-top: 1.5rem; }
.mb2 { margin-bottom: 1rem; }
.nowrap { white-space: nowrap; }
.badge-usa { color: var(--usa); font-weight: 700; }
.badge-mex { color: var(--mex); font-weight: 700; }
.badge-jp  { color: var(--jp);  font-weight: 700; }
