/* bestseller-shop — 楽天/Amazon売れ筋比較サイト
 * カラー: 白基調 + アクセントオレンジ + 落ち着いたグレー
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1f2d3a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}
.num, time, .price, .stat-value { font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: #c84a32; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Color Tokens ===== */
:root {
  --accent: #e85a3d;
  --accent-dark: #c84a32;
  --accent-soft: #fce7e0;
  --ink: #1f2d3a;
  --ink-soft: #51606e;
  --ink-mute: #93a0ac;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e5e8eb;
  --warm: #fff7ec;
  --yellow: #f5c542;
}

/* ===== Affiliate Disclosure Strip ===== */
.affi-strip {
  background: var(--accent-soft);
  border-bottom: 1px solid #f3c4b4;
  font-size: 13px;
  color: #7a3520;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}
.affi-strip a { color: #7a3520; text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo { font-weight: 700; font-size: 18px; color: var(--ink); }
.logo small { font-weight: 400; font-size: 11px; color: var(--ink-soft); display: block; margin-top: 2px; }
.nav-main { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-main a {
  color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.nav-main a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 100%);
  padding: 60px 20px 50px;
  text-align: center;
}
.hero h1 { font-size: clamp(24px, 4vw, 34px); color: var(--ink); line-height: 1.4; margin-bottom: 12px; }
.hero p { color: var(--ink-soft); font-size: 16px; max-width: 640px; margin: 0 auto; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 14px 0; }
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 6px; color: #b8b0a0; }

/* ===== Section ===== */
section { padding: 40px 0; }
.section-title {
  font-size: 22px; color: var(--ink);
  margin-bottom: 20px; border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.section-sub { color: var(--ink-soft); margin-bottom: 24px; font-size: 14px; }

/* ===== Category Card Grid (top page) ===== */
.cat-card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.cat-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cat-card-head h3 { font-size: 18px; margin: 0; }
.cat-card-head h3 a { color: var(--ink); }
.cat-card-head h3 a:hover { color: var(--accent); }
.cat-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.cat-desc { color: var(--ink-soft); font-size: 13px; margin-bottom: 12px; }
.topn-list { list-style: none; margin: 0; padding: 0; counter-reset: topn; }
.topn-list li {
  counter-increment: topn;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
}
.topn-list li::before {
  content: counter(topn) ".";
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
.topn-list a { color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.topn-list a:hover { color: var(--accent); text-decoration: none; }
.topn-name { font-weight: 500; }
.topn-star { font-size: 11px; color: var(--ink-soft); }
.cat-more {
  display: inline-block; margin-top: 12px;
  color: var(--accent-dark); font-weight: 600; font-size: 13px;
}

/* ===== Product list (category page) ===== */
.prod-list-grid { display: flex; flex-direction: column; gap: 14px; }
.prod-list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: center;
}
.prod-rank {
  font-size: 28px; font-weight: 800; color: var(--accent);
  text-align: center;
}
.prod-list-body h3 { font-size: 16px; margin: 4px 0 6px; }
.prod-list-body h3 a { color: var(--ink); }
.prod-list-body h3 a:hover { color: var(--accent); }
.prod-price { font-size: 14px; color: var(--accent-dark); font-weight: 700; margin-bottom: 4px; }
.prod-rating { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.prod-rating strong { color: var(--ink); margin-left: 4px; }
.prod-onelina { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.prod-badges { margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ed-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 10px;
}
.sale-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: var(--yellow); color: #6a5212;
  padding: 2px 8px; border-radius: 10px;
}

/* ===== Product detail hero ===== */
.prod-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 360px;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 16px;
}
.prod-hero-meta .prod-price { font-size: 18px; }
.prod-rating-big { font-size: 18px; margin: 12px 0; color: var(--accent); }
.prod-rating-big strong { color: var(--ink); margin-left: 6px; }
.prod-rating-big small { color: var(--ink-soft); font-size: 12px; margin-left: 6px; }
.prod-cta-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0;
}
.prod-hero-chart { display: flex; justify-content: center; }

/* ===== 6 axis bars ===== */
.axis-list { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.axis-row {
  display: grid;
  grid-template-columns: 100px 140px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.axis-label { font-weight: 700; color: var(--ink); }
.axis-stars { color: var(--accent); font-size: 14px; }
.axis-stars small { color: var(--ink-soft); margin-left: 4px; }
.axis-bar {
  background: #f2f2f2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.axis-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, var(--accent) 100%);
  border-radius: 999px;
}
.axis-score { font-weight: 700; color: var(--ink); text-align: right; }

/* ===== Data Table ===== */
.data-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; font-size: 14px;
}
.data-table th, .data-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table th { background: #f7f0ec; color: var(--ink); font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.cmp-this { background: var(--accent-soft); }
.data-table tr.cmp-this td { font-weight: 600; }

/* ===== Article Body ===== */
.article-body { background: var(--card); padding: 30px 36px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 30px; }
.article-body h1 { font-size: 26px; line-height: 1.5; color: var(--ink); margin-bottom: 12px; }
.article-body .article-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-body h2 { font-size: 20px; color: var(--ink); margin: 32px 0 14px; padding-left: 10px; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 17px; color: var(--ink); margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body ul li, .article-body ol li { margin-bottom: 6px; }
.article-body strong { color: var(--ink); }

/* ===== Callout ===== */
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 18px;
  margin: 18px 0;
  font-size: 14px;
}
.callout strong { display: block; margin-bottom: 4px; color: var(--accent-dark); }
.callout small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-yellow { background: var(--yellow); color: #1f2d3a; }
.btn-yellow:hover { background: #e0b32d; color: #1f2d3a; }

/* ===== Related products ===== */
.related-products {
  margin: 40px 0 24px;
  padding: 22px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.related-products > h2 { font-size: 18px; margin-bottom: 6px; padding-left: 10px; border-left: 4px solid var(--accent); }
.related-products-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; }
.prod-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.prod-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; min-height: 130px;
}
.prod-card h3 { font-size: 14px; line-height: 1.45; color: var(--ink); margin: 0; font-weight: 700; }
.prod-card-cat { font-size: 11px; color: var(--ink-soft); margin: 0; }
.affi-btn {
  display: inline-block; margin-top: auto; align-self: flex-start;
  padding: 7px 14px; background: var(--accent); color: #fff !important;
  font-size: 13px; font-weight: 700; border-radius: 999px;
  text-decoration: none !important;
}
.affi-btn:hover { background: var(--accent-dark); }

/* ===== End of article affi note ===== */
.affi-end {
  margin-top: 36px;
  padding: 16px 18px;
  background: #f3eee2;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  background: #1f2d3a;
  color: #c9d2db;
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; font-size: 13px; }
.site-footer a { color: #c9d2db; }
.site-footer a:hover { color: #fff; }
.copyright { max-width: 1100px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid #2d3d4d; font-size: 12px; color: #8090a0; text-align: center; }

/* ===== Sticky CTA ===== */
.sticky-affi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 56px 10px 16px;
  background: rgba(31, 45, 58, 0.96);
  color: #fff; font-size: 13px; line-height: 1.3;
  box-shadow: 0 -2px 8px rgba(0,0,0,.15);
}
.sticky-affi[hidden] { display: none !important; }
.sticky-affi-text { font-weight: 700; color: #fff; }
.sticky-affi-btn {
  display: inline-block; padding: 7px 14px;
  background: var(--accent); color: #fff !important;
  font-weight: 700; font-size: 13px; border-radius: 999px;
  text-decoration: none !important;
}
.sticky-affi-btn:hover { background: var(--accent-dark); }
.sticky-affi-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  background: transparent; border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%; color: #fff; font-size: 16px; line-height: 1;
  cursor: pointer; padding: 0;
}
.sticky-affi-close:hover { background: rgba(255,255,255,.12); }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .nav-main { display: none; }
  .site-header-inner { padding: 12px 16px; }
  .hero { padding: 40px 16px 36px; }
  .article-body { padding: 22px 16px; }
  .article-body h1 { font-size: 22px; }
  .article-body h2 { font-size: 18px; }
  .prod-hero { grid-template-columns: 1fr; }
  .prod-list-card { grid-template-columns: 50px 1fr; padding: 14px 16px; }
  .axis-row { grid-template-columns: 80px 110px 1fr 36px; font-size: 12px; }
  .sticky-affi { flex-direction: column; gap: 6px; padding: 10px 48px 10px 14px; font-size: 12px; }
}

/* ===== MOSHIMO READY (2026-05-19) ===== */
dl.kv-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 12px 0 20px;
  padding: 16px 20px;
  background: #fafaf6;
  border-radius: 8px;
  border: 1px solid #ece8db;
  font-size: 14px;
  line-height: 1.7;
}
dl.kv-list dt { font-weight: 700; color: #444; white-space: nowrap; }
dl.kv-list dd { margin: 0; color: #333; }
.footer-credit { font-size: 12px; color: #777; text-align: center; margin: 8px 0 4px; line-height: 1.6; }
.footer-credit code { background: #f2f0e7; padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
.callout { background:#fff3cd; border-left:4px solid #f9c84a; padding:14px 16px; border-radius:6px; margin:14px 0; }
/* ===== /MOSHIMO READY ===== */
