/* =========================================================
   RANK NOTE（ランクノート） 共通スタイル
   ========================================================= */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --navy: #1e3a5f;
  --navy-dark: #0f172a;
  --navy-soft: #e8eef6;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --amazon: #ff9900;
  --amazon-dark: #e67e00;
  --gold: #d4a017;
  --silver: #94a3b8;
  --bronze: #b87333;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --ng: #b91c1c;
  --ng-bg: #fef2f2;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, .06);
  --max: 1080px;
  --article-max: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy); }
a:hover { color: var(--amazon-dark); }
h1, h2, h3, h4 { color: var(--navy-dark); line-height: 1.45; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-dark); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; flex: 0 0 auto; }
.logo-mark { margin-left: .2em; }
.logo:hover { color: #fff; }
.logo-mark { color: var(--amazon); }
.logo small { font-size: .72rem; font-weight: 500; color: #cbd5e1; letter-spacing: .02em; }
.nav-toggle { display: none; background: none; border: 1px solid #475569; color: #fff; border-radius: 8px; padding: 6px 12px; font-size: .9rem; cursor: pointer; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.global-nav a { color: #e2e8f0; text-decoration: none; font-size: .88rem; padding: 6px 10px; border-radius: 6px; display: block; }
.global-nav a:hover, .global-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.global-nav .nav-criteria a { color: var(--amazon); font-weight: 700; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .global-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy-dark); padding: 8px 16px 16px; border-top: 1px solid #1e293b; }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; }
  .global-nav a { padding: 10px 8px; border-bottom: 1px solid #1e293b; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .8rem; color: var(--muted); padding: 12px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: #94a3b8; }
.breadcrumb a { color: var(--muted); }

/* ---------- Layout ---------- */
main { padding: 8px 0 48px; }
.page { max-width: var(--article-max); margin: 16px auto 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
@media (max-width: 600px) { .page { padding: 22px 16px; border-radius: 0; margin-left: -16px; margin-right: -16px; } }
.page h1 { font-size: 1.6rem; margin: 0 0 12px; }
.page h2 { font-size: 1.3rem; margin: 44px 0 16px; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 8px; }
.page h3 { font-size: 1.12rem; margin: 28px 0 10px; padding-left: 10px; border-left: 4px solid var(--amazon); }
.page p { margin: 0 0 1em; }
@media (max-width: 600px) { .page h1 { font-size: 1.32rem; } .page h2 { font-size: 1.12rem; } }

/* ---------- Hero (top) ---------- */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 56px 0 48px; }
.hero h1 { color: #fff; font-size: 2rem; margin: 0 0 12px; }
.hero h1 span { color: var(--amazon); }
.hero p { color: #cbd5e1; max-width: 680px; margin: 0 0 20px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-badges li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; font-size: .84rem; }
@media (max-width: 600px) { .hero { padding: 36px 0 32px; } .hero h1 { font-size: 1.45rem; } }

.section { padding: 40px 0 0; }
.section-title { font-size: 1.35rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 6px; height: 1.2em; background: var(--amazon); border-radius: 3px; }

.score-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.score-step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.score-step .num { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; border-radius: 6px; padding: 0 10px; font-size: .85rem; }
.score-step h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.score-step p { margin: 0; font-size: .92rem; color: #475569; }
@media (max-width: 760px) { .score-steps { grid-template-columns: 1fr; } }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: var(--text); border: 2px solid transparent; transition: border-color .15s, transform .15s; display: block; }
.category-card:hover { border-color: var(--amazon); transform: translateY(-2px); color: var(--text); }
.category-card .icon { font-size: 1.6rem; }
.category-card strong { display: block; color: var(--navy-dark); font-size: 1.05rem; margin: 4px 0 2px; }
.category-card span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.article-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: block; text-decoration: none; color: var(--text); border-left: 5px solid var(--navy); transition: border-color .15s; height: 100%; }
.article-card:hover { border-left-color: var(--amazon); color: var(--text); }
.article-card .cat { font-size: .75rem; background: var(--navy-soft); color: var(--navy); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.article-card strong { display: block; color: var(--navy-dark); margin: 8px 0 4px; line-height: 1.5; }
.article-card p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.article-card .date { font-size: .78rem; color: #94a3b8; margin-top: 6px; display: block; }
@media (max-width: 760px) { .article-list { grid-template-columns: 1fr; } }
.empty-note { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

.category-hero { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 16px; }
.category-hero h1 { margin: 0 0 8px; font-size: 1.5rem; }
.category-hero p { margin: 0; color: #475569; }

/* ---------- Ad slot ---------- */
.ad-slot { margin: 28px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-slot:empty { display: none; }
.ad-label { font-size: .72rem; color: #94a3b8; text-align: center; margin-bottom: 4px; }

/* ---------- Article ---------- */
.pr-note { font-size: .8rem; color: #475569; background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 0 0 16px; line-height: 1.6; }
.article-meta { font-size: .82rem; color: var(--muted); margin: 0 0 20px; }
.lead p { font-size: 1rem; }
.lead .conclusion { background: var(--warn-bg); border-left: 5px solid var(--amazon); padding: 14px 16px; border-radius: 0 8px 8px 0; font-weight: 700; }

.method-box { background: var(--navy-soft); border: 1px solid #c9d6e8; border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.method-box .method-title { margin: 0 0 8px; font-size: 1rem; color: var(--navy); background: none; padding: 0; }
.method-box p { font-size: .9rem; margin: 0 0 8px; }
.method-box ul { margin: 0 0 8px; padding-left: 1.3em; font-size: .9rem; }
.method-box .method-link { font-size: .85rem; font-weight: 700; }

.toc { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 24px 0; font-size: .92rem; }
.toc strong { color: var(--navy); }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .87rem; }
.compare-table th, .compare-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-table thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
.compare-table tbody tr:nth-child(even) { background: #f8fafc; }
.compare-table .t-rank { text-align: center; font-weight: 800; white-space: nowrap; }
.compare-table .t-score { font-weight: 800; color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.compare-table .t-score small { font-size: .7rem; color: var(--muted); font-weight: 400; }
.compare-table a { font-weight: 700; }
.table-note { font-size: .78rem; color: var(--muted); }

.point-list { list-style: none; counter-reset: point; padding: 0; margin: 0; }
.point-list li { counter-increment: point; position: relative; padding: 16px 16px 16px 60px; background: #f8fafc; border-radius: 10px; margin-bottom: 12px; }
.point-list li::before { content: counter(point); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.point-list h3 { margin: 0 0 4px; padding: 0; border: none; font-size: 1.02rem; }
.point-list p { margin: 0; font-size: .93rem; }

/* Product card */
.product-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 28px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.product-card.is-top { border: 2px solid var(--gold); }
.pc-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.rank-badge { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; font-weight: 900; line-height: 1; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.rank-badge small { font-size: .7rem; margin-left: 1px; margin-top: 8px; }
.rank-badge.rank-1 { background: linear-gradient(135deg, #f5c542, var(--gold)); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #cbd5e1, var(--silver)); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #d99a63, var(--bronze)); }
.pc-name { margin: 0 !important; padding: 0 !important; border: none !important; font-size: 1.15rem !important; }
.pc-catch { margin: 4px 0 0 !important; color: var(--amazon-dark); font-weight: 700; font-size: .92rem; }

.pc-body { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-bottom: 18px; }
@media (max-width: 640px) { .pc-body { grid-template-columns: 1fr; } }
.pc-image a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; }
.pc-image img { width: 100%; height: 100%; object-fit: contain; }
.img-placeholder { color: #94a3b8; font-size: .8rem; text-align: center; padding: 12px; line-height: 1.5; }
@media (max-width: 640px) { .pc-image a { aspect-ratio: 4 / 3; max-width: 320px; margin: 0 auto; } }

.pc-score { background: #f8fafc; border-radius: 10px; padding: 14px 16px; }
.score-line { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.score-circle { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--amazon) calc(var(--score, 0) * 1%), #e2e8f0 0); display: flex; align-items: center; justify-content: center; position: relative; }
.score-circle::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.score-circle span { position: relative; text-align: center; line-height: 1.1; }
.score-num { font-size: 1.55rem; font-weight: 900; color: var(--navy-dark); display: block; }
.score-unit { font-size: .66rem; color: var(--muted); }
.score-label { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.score-label strong { display: block; color: var(--navy-dark); font-size: .95rem; }

.star-dist { margin: 0 0 8px; }
.star-row { display: grid; grid-template-columns: 34px 1fr 42px; gap: 8px; align-items: center; font-size: .8rem; }
.star-row .bar { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.star-row .bar i { display: block; height: 100%; background: var(--amazon); border-radius: 999px; }
.star-row.low .bar i { background: #94a3b8; }
.star-row .pct { text-align: right; color: #475569; font-variant-numeric: tabular-nums; }
.review-count { font-size: .85rem; margin: 6px 0 6px !important; }
.review-count strong { font-size: 1rem; color: var(--navy-dark); }
.sakura-status { font-size: .82rem; font-weight: 700; border-radius: 6px; padding: 6px 10px; margin: 0 !important; line-height: 1.5; }
.sakura-status.ok { background: var(--ok-bg); color: var(--ok); }
.sakura-status.warn { background: var(--warn-bg); color: var(--warn); }
.sakura-status.ng { background: var(--ng-bg); color: var(--ng); }

.pc-subtitle { font-size: .95rem; color: var(--navy); margin: 16px 0 8px; }
.merit-list { list-style: none; padding: 0; margin: 0 0 8px; }
.merit-list li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.merit-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--amazon); color: #fff; font-size: .72rem; font-weight: 900; display: flex; align-items: center; justify-content: center; line-height: 1; }

.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 640px) { .voice-grid { grid-template-columns: 1fr; } }
.voice { border-radius: 10px; padding: 14px 16px; font-size: .9rem; }
.voice h4 { margin: 0 0 6px; font-size: .92rem; }
.voice p { margin: 0; }
.voice.good { background: var(--ok-bg); }
.voice.good h4 { color: var(--ok); }
.voice.bad { background: var(--warn-bg); }
.voice.bad h4 { color: var(--warn); }
.voice-note { font-size: .74rem; color: var(--muted); margin: -6px 0 12px !important; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .87rem; margin: 0 0 18px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.spec-table th { background: #f1f5f9; width: 34%; color: var(--navy); font-weight: 700; }

.cta-wrap { text-align: center; margin: 8px 0 0 !important; }
.btn-amazon { display: inline-block; min-width: 280px; max-width: 100%; background: var(--amazon); color: #111 !important; text-decoration: none; font-weight: 800; padding: 14px 24px; border-radius: 999px; box-shadow: 0 4px 0 var(--amazon-dark); transition: transform .1s, box-shadow .1s, background .15s; }
.btn-amazon:hover { background: #ffad33; color: #111; transform: translateY(2px); box-shadow: 0 2px 0 var(--amazon-dark); }
.btn-amazon::after { content: "\00a0›"; }
.nb { display: inline-block; }
.btn-sm { min-width: 0; padding: 6px 14px; font-size: .8rem; box-shadow: 0 2px 0 var(--amazon-dark); white-space: nowrap; }

.summary-box { border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; }
.price-note { font-size: .8rem; color: var(--muted); background: #f8fafc; border-radius: 8px; padding: 12px 14px; margin-top: 20px !important; line-height: 1.7; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-list a { display: block; padding: 12px 14px; background: #f8fafc; border-radius: 8px; text-decoration: none; font-weight: 700; border-left: 4px solid var(--navy); }
.related-list a:hover { border-left-color: var(--amazon); }

.sample-banner { background: #fef9c3; border: 2px dashed #ca8a04; color: #713f12; border-radius: 8px; padding: 10px 14px; font-size: .85rem; margin: 0 0 16px; }

/* ---------- Static pages ---------- */
.page table.def { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 16px; }
.page table.def th, .page table.def td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page table.def th { background: #f1f5f9; color: var(--navy); white-space: nowrap; }
.formula { background: var(--navy-dark); color: #e2e8f0; border-radius: 8px; padding: 14px 16px; font-family: Consolas, "Courier New", monospace; font-size: .86rem; overflow-x: auto; white-space: pre; line-height: 1.7; }
.form-frame { border: 2px dashed var(--line); border-radius: 10px; min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; }
.form-frame iframe { width: 100%; min-height: 900px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cbd5e1; padding: 36px 0 24px; font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer h2 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--amazon); }
.footer-disclosure { font-size: .76rem; color: #94a3b8; border-top: 1px solid #1e293b; margin-top: 24px; padding-top: 16px; line-height: 1.7; }
.copyright { text-align: center; font-size: .76rem; color: #64748b; margin-top: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: .9; pointer-events: auto; }
