/* Nippon Picks — editorial comparison site */
:root {
  --ink: #14171c;
  --body: #2b3038;
  --muted: #6b7280;
  --line: #e7e3db;
  --paper: #fbf9f5;
  --card: #ffffff;
  --indigo: #17324d;
  --indigo-soft: #eef2f6;
  --vermilion: #d63b2f;
  --vermilion-dark: #b32b20;
  --gold: #c99a2e;
  --good: #1f9d63;
  --shadow: 0 1px 2px rgba(20,23,28,.04), 0 8px 24px rgba(20,23,28,.06);
  --maxw: 760px;
  --sans: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Masthead ---------- */
.site-header {
  background: var(--indigo);
  color: #fff;
  border-bottom: 3px solid var(--vermilion);
}
.site-header .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .2px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--vermilion);
  display: inline-block; position: relative; flex: none;
}
.brand .mark::after { /* rising-sun dot */
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: #fff; opacity: .92;
}
.brand-tagline { color: #c7d3df; font-size: 14px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-self: center; }
.site-nav a { color: #c7d3df; text-decoration: none; font-size: 14px; font-family: var(--sans); font-weight: 600; }
.site-nav a:hover { color: #fff; }
@media (max-width: 620px) { .site-nav { margin-left: 0; width: 100%; gap: 16px; } }

/* ---------- Layout ---------- */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px 12px;
}
/* ---------- Hero image ---------- */
.hero { margin: 0 0 22px; }
.hero img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-large img { aspect-ratio: 16 / 7; object-fit: cover; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--vermilion); margin: 0 0 10px;
}
.content h1 {
  font-family: var(--serif);
  font-size: 40px; line-height: 1.18; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 14px; font-weight: 700;
}
.article-meta {
  color: var(--muted); font-size: 14.5px; margin: 0 0 22px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.article-meta .by { font-weight: 600; color: var(--body); }

.content h2 {
  font-family: var(--serif);
  font-size: 27px; line-height: 1.3; color: var(--ink);
  margin: 44px 0 14px; padding-left: 14px;
  border-left: 4px solid var(--vermilion);
}
.content h3 {
  font-size: 20.5px; color: var(--indigo); font-weight: 700;
  margin: 30px 0 8px;
}
.content p { margin: 0 0 17px; }
.content a { color: var(--vermilion-dark); text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: var(--vermilion); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; }
.content li { margin: 7px 0; }
.content strong { color: var(--ink); font-weight: 700; }

/* first paragraph = lead */
.content > p:first-of-type { font-size: 20px; color: var(--ink); }

/* ---------- 3-column layout ---------- */
.layout {
  max-width: 1180px; margin: 0 auto; padding: 8px 20px;
  display: grid; grid-template-columns: 208px minmax(0,1fr) 248px; gap: 34px;
  align-items: start;
}
.layout .col-main { max-width: none; margin: 0; padding: 26px 0 12px; }
.rail { position: sticky; top: 18px; font-family: var(--sans); }
.rail-title {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
/* TOC */
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--muted);
  font-size: 14px; text-decoration: none; line-height: 1.4;
}
.toc a:hover { color: var(--vermilion-dark); border-left-color: var(--vermilion); }
/* Pick box */
.pick-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; box-shadow: var(--shadow); margin-top: 18px;
}
.pick-name { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.pick-note { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
/* Mascot */
.mascot {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 10px 8px; box-shadow: var(--shadow); text-align: center;
}
.mascot img { width: 100%; height: auto; display: block; border-radius: 8px; }
.mascot figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ---------- Provider logo chip in table ---------- */
.logo-cell { display: flex; align-items: center; gap: 9px; }
.logo-cell img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; flex: none; }
.logo-name { font-weight: 700; color: var(--ink); }

/* ---------- BEST VALUE badge ---------- */
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: var(--vermilion);
  padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle;
  white-space: nowrap;
}
.badge.gold { background: var(--gold); }
tr.is-pick td { background: #fff8ef !important; box-shadow: inset 3px 0 0 var(--gold); }

/* ---------- yes / no marks ---------- */
.yes { color: var(--good); font-weight: 800; }
.no { color: #c0554e; font-weight: 800; }

/* ---------- CTA in table ---------- */
.content td .cta { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.content .cta::after { content: " \2192"; font-weight: 700; }

/* ---------- Affiliate disclosure ---------- */
.affiliate-disclosure {
  background: var(--indigo-soft);
  border: 1px solid #dbe3ec;
  border-left: 3px solid var(--indigo);
  padding: 12px 16px; font-size: 14.5px; color: #45525f;
  border-radius: 8px; margin: 0 0 30px;
}
.affiliate-disclosure strong { color: var(--indigo); }

/* ---------- Comparison table ---------- */
.content .table-wrap, .content > table { margin: 24px 0 30px; }
.content table {
  border-collapse: separate; border-spacing: 0;
  width: 100%; font-size: 14.5px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  display: block; overflow-x: auto; white-space: nowrap;
}
.content thead th {
  background: var(--indigo); color: #fff; font-weight: 600;
  text-align: left; padding: 12px 14px; position: sticky; top: 0;
  border-bottom: none;
}
.content tbody td {
  padding: 11px 14px; border-top: 1px solid var(--line);
  vertical-align: top;
}
.content tbody tr:nth-child(even) td { background: #faf8f4; }
.content tbody tr:hover td { background: var(--indigo-soft); }
.content tbody td:first-child { font-weight: 700; color: var(--ink); }
/* highlight prices/checks written in markdown */
.content td:has(> strong) { color: var(--good); }

/* ---------- CTA buttons (for affiliate links later) ---------- */
.content a.cta, .content .cta a {
  display: inline-block; background: var(--vermilion); color: #fff;
  text-decoration: none; font-weight: 700; padding: 10px 18px;
  border-radius: 8px; box-shadow: var(--shadow);
}
.content a.cta:hover { background: var(--vermilion-dark); }

/* ---------- Index (home) ---------- */
.index-intro { font-size: 20px; color: var(--body); margin: 4px 0 26px; }
.index-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.index-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.index-item:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20,23,28,.10); }
.index-item a {
  font-family: var(--serif); font-size: 23px; font-weight: 700;
  color: var(--ink); text-decoration: none; line-height: 1.3;
}
.index-item a:hover { color: var(--vermilion-dark); }
.index-item p { color: var(--muted); font-size: 15.5px; margin: 8px 0 10px; }
.index-date {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 46px; background: var(--indigo); color: #c7d3df;
}
.site-footer .wrap {
  max-width: 1180px; margin: 0 auto; padding: 26px 20px 40px;
  font-size: 13.5px;
}
.site-footer strong { color: #fff; }
.footer-note { color: #9fb0c1; margin-top: 8px; }

/* ---------- Responsive ---------- */
/* tablet: drop right rail */
@media (max-width: 1040px) {
  .layout { grid-template-columns: 190px minmax(0,1fr); gap: 26px; }
  .rail-right { display: none; }
}
/* mobile: single column, no rails */
@media (max-width: 820px) {
  .layout { display: block; padding: 8px 20px; }
  .rail { display: none; }
  .layout .col-main { padding-top: 20px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .content h1 { font-size: 31px; }
  .content h2 { font-size: 23px; }
  .content > p:first-of-type { font-size: 18.5px; }
}
