@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --main: #1a5632;
  --main-light: #f0f7f3;
  --cta: #e8910c;
  --cta-hover: #d07d00;
  --text: #222;
  --text-sub: #555;
  --text-note: #888;
  --card-border: #e0e0e0;
  --gold: #c5a24d;
  --gold-light: #faf5e8;
  --gold-border: #d4b66a;
  --gold-dark: #8a6d2b;
  --gold-gradient: linear-gradient(135deg, #d4a942 0%, #f5d880 40%, #c5a24d 70%, #a8872e 100%);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--main); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.site-logo { font-size: 18px; font-weight: 700; color: var(--main); letter-spacing: -0.02em; }
.site-logo span { color: var(--gold); }
.header-nav { display: flex; gap: 24px; list-style: none; }
.header-nav a { font-size: 13px; font-weight: 500; color: var(--text-sub); }
.header-nav a:hover { color: var(--main); text-decoration: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== DISCLAIMER ===== */
.disclaimer-bar {
  background: var(--main-light);
  text-align: center;
  padding: 6px 16px;
  font-size: 11px;
  color: var(--text-note);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--main) 0%, #2d8a56 50%, var(--main) 100%);
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.hero h1 {
  font-size: 30px; font-weight: 900; line-height: 1.5;
  margin-bottom: 16px;
  position: relative; z-index: 1;
  letter-spacing: 0.02em;
}
.hero h1 span {
  display: inline-block;
  border-bottom: 3px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.hero .hero-badge {
  display: inline-block;
  background: #e8910c;
  color: #fff;
  border-radius: 4px;
  padding: 6px 20px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  position: relative; z-index: 1;
}
.hero p { font-size: 14px; opacity: 0.85; max-width: 540px; margin: 0 auto; position: relative; z-index: 1; line-height: 1.8; }
.hero-sm { padding: 40px 20px 32px; }
.hero-sm h1 { font-size: 24px; }

/* ===== CONTAINER ===== */
.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ===== EDITOR COMMENT ===== */
.editor-comment {
  background: #fff;
  border-left: 4px solid var(--main);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 40px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.editor-comment .editor-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; color: var(--main);
  background: var(--main-light);
  padding: 2px 10px; border-radius: 4px;
  margin-bottom: 12px; letter-spacing: 0.04em;
}
.editor-comment p { margin-bottom: 14px; color: var(--text-sub); font-size: 14px; line-height: 1.9; }
.editor-comment p:last-child { margin-bottom: 0; }

/* ===== TOC ===== */
.toc {
  background: var(--main-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0 48px;
}
.toc h2 { font-size: 16px; font-weight: 700; color: var(--main); margin-bottom: 14px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 14px; color: var(--text-sub); font-weight: 500; }
.toc a:hover { color: var(--main); }

/* ========================================
   RANKING CARD — BASE (No.02–04 green)
   ======================================== */
.ranking-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}

/* Rank badge — base (green, absolute on banner) */
.rank-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  background: var(--main);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  min-width: 56px;
}
.rank-badge .rank-num {
  font-family: 'Inter', sans-serif;
  font-size: 28px; font-weight: 900;
  line-height: 1;
}
.rank-badge .rank-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.8;
  margin-top: 2px;
}

/* Rank title row — inline badge + title + best pick (for 1st place) */
.rank-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-border);
  flex-wrap: wrap;
}
.rank-title-row .card-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 1;
  min-width: 0;
}
.rank-badge-inline {
  display: flex; align-items: center; gap: 2px;
  background: var(--gold-gradient);
  color: #5a3e00;
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(197,162,77,0.35);
  flex-shrink: 0;
}
.rank-badge-inline .rank-crown {
  font-size: 18px;
  margin-right: 4px;
}
.rank-badge-inline .rank-num {
  font-family: 'Inter', sans-serif;
  font-size: 24px; font-weight: 900;
  line-height: 1;
}
.rank-badge-inline .rank-label {
  font-size: 12px; font-weight: 700;
  margin-left: 1px;
}

/* Green inline badge for 2-4位 */
.rank-badge-green {
  background: var(--main);
  color: #fff;
}
.rank-badge-green .rank-num { color: #fff; }
.rank-badge-green .rank-label { color: rgba(255,255,255,0.85); }

/* Green title row */
.rank-title-green {
  border-bottom-color: #eee;
}

.card-banner {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #f5f5f5;
}
.card-body { padding: 28px 32px 32px; }
.card-title {
  font-size: 20px; font-weight: 900; color: var(--main);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

/* ========================================
   No.01 GOLD CHAMPION CARD
   ======================================== */
.ranking-card.rank-1st {
  border: 2px solid var(--gold-border);
  box-shadow: 0 4px 24px rgba(197,162,77,0.2), 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
/* subtle gold shimmer on top edge */
.ranking-card.rank-1st::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-gradient);
  z-index: 3;
  border-radius: 10px 10px 0 0;
}
/* BEST PICK inline tag */
.best-pick {
  background: linear-gradient(135deg, #d4a942, #f0c850);
  color: #5a3e00;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(197,162,77,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* (1st place uses inline badge, not absolute) */

/* Gold card title accent */
.rank-1st .card-title {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-border);
}

/* Gold spec grid */
.rank-1st .spec-grid {
  background: var(--gold-light);
  border-color: #e8d9a8;
}
.rank-1st .spec-item {
  border-right-color: #e8d9a8;
  border-bottom-color: #e8d9a8;
}
.rank-1st .spec-value {
  color: var(--gold-dark);
}

/* Gold CTA */
.rank-1st .cta-btn {
  background: linear-gradient(135deg, #d4a942, #c59a30);
  box-shadow: 0 4px 16px rgba(197,162,77,0.35);
  font-size: 17px;
  padding: 20px 24px;
}
.rank-1st .cta-btn:hover {
  background: linear-gradient(135deg, #c59a30, #a8872e);
  box-shadow: 0 6px 24px rgba(197,162,77,0.45);
}

/* Gold text accent */
.rank-1st .card-text h3 {
  color: var(--gold-dark);
  border-left-color: var(--gold);
}

/* ===== SPEC GRID ===== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--main-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e0e8e3;
}
.spec-item {
  text-align: center;
  padding: 16px 8px;
  border-right: 1px solid #e0e8e3;
}
.spec-item:last-child { border-right: none; }
.spec-label {
  font-size: 11px; font-weight: 500; color: var(--text-note);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.spec-value {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 22px; font-weight: 900; color: var(--main);
  line-height: 1.2;
}
.spec-value small { font-size: 13px; font-weight: 500; }

/* ===== CARD TEXT ===== */
.card-text h3 {
  font-size: 16px; font-weight: 700; color: var(--main);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.card-text p {
  margin-bottom: 14px; color: var(--text-sub); font-size: 14px; line-height: 1.95;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--cta);
  color: #fff;
  font-size: 16px; font-weight: 700;
  padding: 18px 24px;
  border-radius: 8px;
  margin-top: 24px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(232,145,12,0.3);
  position: relative;
}
.cta-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,145,12,0.35);
  text-decoration: none;
}
.cta-btn::after {
  content: '→';
  position: absolute; right: 24px;
  font-size: 18px;
}

/* ===== SECTION ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--main-light); }
.section h2 {
  font-size: 22px; font-weight: 900; color: var(--main);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main);
  display: inline-block;
}
.section p { margin-bottom: 16px; }
.section ul, .section ol { margin-bottom: 16px; padding-left: 24px; }
.section li { margin-bottom: 8px; }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 12px 16px 12px 44px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  font-size: 14px;
}
.checklist li::before {
  content: '✓';
  position: absolute; left: 16px; top: 12px;
  color: var(--main); font-weight: 900; font-size: 16px;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%; padding: 18px 48px 18px 20px;
  background: none; border: none;
  text-align: left; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
}
.faq-q::before { content: 'Q. '; color: var(--main); font-weight: 900; }
.faq-q::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 20px; color: var(--text-note);
  transition: transform .3s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 20px;
  font-size: 14px; color: var(--text-sub); line-height: 1.9;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 20px 20px;
}

/* ===== COMPARISON TABLE ===== */
.compare-wrap { overflow-x: auto; margin: 24px 0; }
.compare-table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th {
  background: var(--main); color: #fff;
  padding: 12px 16px; font-weight: 700; text-align: center;
  white-space: nowrap;
}
.compare-table td {
  padding: 12px 16px; border-bottom: 1px solid #eee;
  text-align: center;
}
.compare-table tr:nth-child(even) { background: var(--main-light); }
.compare-table td:first-child { font-weight: 700; text-align: left; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0; font-size: 12px; color: var(--text-note);
}
.breadcrumb a { color: var(--text-note); }
.breadcrumb span { margin: 0 6px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--main);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
}
.footer-nav { list-style: none; display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 13px; }
.footer-nav a:hover { color: #fff; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 24px; }
  .hero { padding: 48px 16px 44px; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px 20px; gap: 12px;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .hamburger { display: block; }
  .card-banner { height: auto; }
  .card-body { padding: 20px 16px 24px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item { border-bottom: 1px solid #e0e8e3; }
  .spec-item:nth-child(even) { border-right: none; }
  .rank-1st .spec-item:nth-child(even) { border-right: none; }
  .spec-value { font-size: 18px; }
  .rank-1st .spec-value { font-size: 20px; }
  .editor-comment { padding: 20px; }
  .toc { padding: 20px; }
  .cta-btn { font-size: 15px; padding: 16px 20px; }
  .rank-1st .cta-btn { font-size: 16px; padding: 18px 20px; }
  .section h2 { font-size: 19px; }
  .card-title { font-size: 18px; }
  .best-pick { font-size: 10px; padding: 4px 8px; }
  .rank-badge { top: 12px; left: 12px; padding: 8px 12px 6px; min-width: 48px; }
  .rank-badge .rank-num { font-size: 24px; }
  .rank-badge-inline .rank-num { font-size: 20px; }
  .rank-badge-inline .rank-crown { font-size: 16px; }
  .rank-badge-inline { padding: 4px 10px; }
  .rank-title-row { gap: 8px; }
}
