:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #1f2a2a;
  --muted: #5d6b6a;
  --line: #dfe5e3;
  --accent: #0f766e;
  --accent-soft: #e3f2ef;
  --warn-soft: #fff6e0;
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー・フッター */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; }
.site-header nav { display: flex; gap: 16px; font-size: 14px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
main { padding: 32px 16px 48px; }
.site-footer { background: #1f2a2a; color: #c9d3d1; font-size: 13px; padding: 28px 0; }
.site-footer a { color: #e8efed; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.copy { color: #8fa09d; margin: 0; }

/* トップ */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; margin-bottom: 36px; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.4; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 12px; }
.section-title, .page-title { font-size: 1.3rem; margin: 0 0 16px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 1.02rem; line-height: 1.5; margin: 4px 0 0; }
.card p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.card time { font-size: 12px; color: var(--muted); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 10px; }

/* 記事 */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.article h1 { font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.45; margin: 0 0 8px; }
.crumbs, .meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--muted); }
.pr { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; margin: 4px 0 16px; }
.toc { background: var(--bg); border-radius: 10px; padding: 14px 20px; margin: 8px 0 24px; font-size: 15px; }
.toc p { font-weight: 700; margin: 0 0 4px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.prose h2 { font-size: 1.35rem; line-height: 1.5; margin: 2.2em 0 .8em; padding: 0 0 8px; border-bottom: 2px solid var(--accent); scroll-margin-top: 16px; }
.prose h3 { font-size: 1.12rem; margin: 1.8em 0 .6em; padding-left: 10px; border-left: 4px solid var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; background: var(--warn-soft); border-radius: 10px; }
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.compare { min-width: 520px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--accent-soft); }
.prose tbody th { background: #fafbfa; white-space: nowrap; }

/* 商品カード */
.product { border: 2px solid var(--accent-soft); border-radius: var(--radius); padding: 20px; margin: 1.6em 0; }
.product-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.15rem; }
.product p { margin: .6em 0; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.pc ul { margin: 4px 0 0; padding-left: 1.2em; }
.best { background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.note { font-size: 12px; color: var(--muted); }

/* ボタン・CTA */
.btn-row { text-align: center; margin: 16px 0 4px; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 26px; border-radius: 999px; }
.btn:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.cta { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; margin: 2em 0; }
.cta-title { font-weight: 700; font-size: 1.08rem; margin: 0 0 6px; }
.cta p { margin: 6px 0; }
.cta-sub { background: var(--surface); border: 1px solid var(--line); text-align: center; }
.related { margin-top: 36px; }
.related h2 { font-size: 1.2rem; }

@media (max-width: 600px) {
  .article, .hero { padding: 24px 18px; }
  .pc { grid-template-columns: 1fr; }
  main { padding: 20px 16px 40px; }
}
