:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e7e3da;
  --accent: #2f7d6d;
  --accent-soft: #e6f2ef;
  --warn-soft: #fff6e0;
  --cta: #e07a2f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  font-size: 16px;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header / footer */
.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; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 16px; font-size: .9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.site-footer { margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); margin-right: 16px; }

/* ad disclosure */
.pr-note { background: var(--warn-soft); border: 1px solid #f0dfb0; border-radius: 8px; padding: 10px 14px; font-size: .85rem; margin: 20px 0; }

/* hero / top */
.hero { padding: 40px 0 16px; }
.hero h1 { font-size: 1.6rem; line-height: 1.5; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cat h3 { margin: 0 0 4px; font-size: 1rem; }
.cat p { margin: 0; font-size: .88rem; color: var(--muted); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--text); margin-bottom: 12px; }
.card:hover { border-color: var(--accent); }
.card .tag { display: inline-block; font-size: .75rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.6; }
.card p { margin: 0; font-size: .88rem; color: var(--muted); }

/* article */
article { padding-top: 24px; }
article h1 { font-size: 1.5rem; line-height: 1.55; margin: 8px 0 8px; }
.meta { font-size: .85rem; color: var(--muted); }
article h2 { font-size: 1.25rem; margin: 48px 0 12px; padding: 6px 0 6px 12px; border-left: 4px solid var(--accent); line-height: 1.5; }
article h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 24px 0; }
.toc p { margin: 0 0 4px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; }
.box { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.box ul { margin: 0; padding-left: 1.2em; }
.experience { border: 2px dashed var(--cta); border-radius: 12px; padding: 14px 18px; margin: 20px 0; background: #fffaf5; }
.experience .label { font-size: .8rem; font-weight: 700; color: var(--cta); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { background: #f4f1ea; }
tr > th:first-child { width: 32%; }
.compare { table-layout: fixed; min-width: 600px; }
.compare th:first-child { width: 16%; }
.table-wrap { overflow-x: auto; }
.cta { text-align: center; margin: 32px 0; }
.cta a { display: inline-block; background: #b85410; color: #fff; font-weight: 700; text-decoration: none; padding: 14px 28px; border-radius: 999px; }
.cta small { display: block; color: var(--muted); margin-top: 8px; font-size: .8rem; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dt::before { content: "Q. "; color: var(--accent); }
.faq dd { margin: 4px 0 0; }
.faq dd::before { content: "A. "; color: var(--cta); font-weight: 700; }

@media (max-width: 480px) {
  .hero h1 { font-size: 1.35rem; }
  article h1 { font-size: 1.3rem; }
  tr > th:first-child { width: 38%; }
}

/* images */
img { max-width: 100%; height: auto; display: block; }
.hero-img { margin-top: 24px; border-radius: 16px; }
.eyecatch { margin: 16px 0 8px; border-radius: 16px; }
.figure { margin: 16px 0; }
.card .thumb { border-radius: 8px; margin-bottom: 12px; }

/* author line / related */
.author-mini { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 10px 0 0; line-height: 1.7; }
.author-mini img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.about-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 8px 0 12px; }
.related { margin-top: 56px; }
.related .card h3 { font-size: 1rem; }

/* 未提携の広告（リンク先が「#」）は表示しない。承認後にURLを入れると自動で表示される */
.cta:has(a[href="#"]) { display: none; }
.cta a:hover { background: #9a4409; }

/* 結論ボックス */
.summary { background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 24px 0; }
.summary .label { margin: 0 0 6px; font-weight: 700; color: var(--accent); }

/* チェック付きの箇条書き（結論ボックス・良いところ） */
.summary ul, .box ul, ul.caution { list-style: none; padding-left: 0; margin: 0; }
.summary li, .box li, ul.caution li { position: relative; padding-left: 1.7em; margin: 4px 0; }
.summary li::before, .box li::before { content: "✓"; position: absolute; left: .2em; color: var(--accent); font-weight: 700; }
ul.caution { margin: 12px 0 20px; }
ul.caution li::before { content: "!"; position: absolute; left: .25em; top: .35em; width: 1.1em; height: 1.1em; line-height: 1.1em; text-align: center; font-size: .75rem; font-weight: 700; color: #fff; background: #b85410; border-radius: 50%; }

/* 黄色マーカー */
.marker { background: linear-gradient(transparent 60%, #ffe58a 60%); font-weight: 700; }

/* 比較表：スマホでは横スクロールの案内を出す */
.table-wrap:has(.compare)::before { content: "→ 横にスクロールできます"; display: none; font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .table-wrap:has(.compare)::before { display: block; } }
