:root {
  --bg: #f8f9fa;
  --bg-soft: #ffffff;
  --paper: #ffffff;
  --ink: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --accent: #0d6efd;
  --accent-strong: #0b5ed7;
  --accent-soft: #e7f1ff;
  --subtle: #f8f9fa;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  background: var(--paper);
  border-radius: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section {
  padding: 32px 28px;
  border-top: 1px solid var(--line);
}
.section:first-child {
  border-top: 0;
}
.reading-width {
  max-width: 740px;
}
.section-split {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: clamp(24px, 3vw, 32px); }
h2 { font-size: clamp(20px, 2.5vw, 26px); }
h3 { font-size: 18px; }
p {
  margin: 0 0 14px;
  color: var(--ink);
}
.site-intro {
  padding: 40px 28px 24px;
  text-align: center;
}
.site-intro p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.hero {
  padding: 40px 28px 32px;
  background: var(--paper);
}
.notice-strip {
  padding: 12px 28px;
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
}
.notice-strip p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
.hero-tags,
.chips,
.meta-chip,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span,
.chips span,
.badge,
.source,
.meta-chip span {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--subtle);
  color: var(--ink);
}
.badge {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.source {
  color: var(--accent);
  background: var(--accent-soft);
}
.lead-text {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.8;
}
.hero-actions {
  margin-top: 20px;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.hero-actions a.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-actions a.primary:hover {
  background: var(--accent-strong);
}
.hero-actions a.secondary {
  background: transparent;
}
.grid-4 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.highlight-card,
.note-card,
.nav-card,
.topic-card,
.latest-item,
.about-card {
  border-left: 3px solid var(--accent-soft);
  padding: 0 0 0 16px;
  background: transparent;
}
.latest-list {
  display: grid;
  gap: 18px;
}
.latest-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-bottom: 18px;
  border-left: 0;
  padding-left: 0;
  border-bottom: 1px solid var(--line);
}
.latest-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.widget-shell {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: var(--subtle);
  overflow-x: auto;
}
.guide-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle);
  text-align: left;
}
.guide-avatar {
  width: min(80px, 100%);
  display: block;
  margin: 0 0 12px;
}
.guide-avatar.fallback {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 36px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}
.guide-name {
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}
.guide-role,
.guide-note,
.guide-line {
  font-size: 14px;
}
.guide-line {
  color: var(--accent);
  margin-bottom: 0;
}
.highlight-title,
.nav-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.comparison-table th {
  background: #343a40;
  color: #fff;
  font-weight: 600;
}
.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.video-embed {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  padding-bottom: 56.25%;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.product-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 20px 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.meta-chip {
  margin-bottom: 12px;
}
.product-store {
  font-size: 14px;
}
.product-verdict {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}
.product-stats {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.product-stats div {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.product-stats strong {
  color: var(--ink);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border-radius: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.cta:hover {
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
}
.list {
  margin: 0;
  padding-left: 20px;
}
.takeaway-list {
  margin-top: 10px;
}
.takeaway-list strong {
  color: var(--ink);
  margin-right: 6px;
}
.note-surface {
  margin-top: 28px;
  padding: 20px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--line);
}
.product-fit {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:first-child {
  border-top: 0;
  padding-top: 0;
}
footer {
  padding: 24px 28px 32px;
  color: var(--muted);
  font-size: 13px;
}
footer .credit-box {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.topic-card a,
.nav-card a,
.latest-item a {
  text-decoration: none;
  font-weight: 600;
}
.nav-card p:last-of-type,
.highlight-card p:last-of-type,
.about-card p:last-of-type,
.note-card p:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  main { padding: 16px 12px 48px; }
  .section {
    padding: 24px 16px;
  }
  .hero {
    padding: 28px 16px 24px;
  }
  .hero,
  footer,
  .notice-strip { padding-left: 16px; padding-right: 16px; }
  .latest-item { grid-template-columns: 1fr; }
  .hero-actions a {
    width: 100%;
  }
}
/* Product card format (for compare pages) */
.product-cards { margin-top: 2rem; }
.product-card-detail {
  display: flex;
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}
.product-card-detail.cheapest {
  border-left: 4px solid #f59e0b;
}
.product-card-detail img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}
.product-card-info h3 { font-size: 16px; margin: 0 0 8px; }
.product-card-info .unit-price {
  font-size: 1.2em;
  color: #2563eb;
  font-weight: bold;
}
.product-card-info .price-line { font-size: 14px; color: #666; margin: 4px 0; }
.product-card-info .review-line { font-size: 13px; color: #888; }
.btn-buy {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: #2563eb;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
}
.btn-buy:hover { background: #1d4ed8; }

/* Section accent lines */
.section h2, .product-cards h2, .comparison-section h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid #3b82f6;
  margin-bottom: 1rem;
}

/* Data meta box */
.data-meta-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 2rem 0;
  font-size: 14px;
  color: #666;
}

/* 2-column layout */
.page-layout {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Sidebar ranking */
.sidebar-ranking {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  position: sticky;
  top: 20px;
}
.sidebar-ranking h3 {
  font-size: 0.95rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}
.sidebar-rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.sidebar-rank-item:last-child { border-bottom: none; }
.sidebar-rank-num {
  font-weight: bold;
  color: #f59e0b;
  min-width: 20px;
}
.sidebar-rank-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.sidebar-rank-info a {
  font-size: 0.85rem;
  display: block;
}
.sidebar-rank-price {
  font-size: 0.8rem;
  color: #2563eb;
  font-weight: bold;
}
.sidebar-rank-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* Better table styling */
.comparison-table th {
  background: #f7fafc;
  color: #333;
  padding: 12px;
}
.comparison-table td {
  padding: 12px;
}
.comparison-table tr.cheapest-row {
  background-color: #f0fdf4;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .product-card-detail { flex-direction: column; }
  .product-card-detail img { width: 100%; height: auto; max-height: 200px; }
}
