/* ===== 基本設計：スマホ最優先（流入はほぼSNS） ===== */
:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #33322e;
  --muted: #7a776e;
  --line: #e8e5dd;
  --accent: #2f8f6b;       /* 落ち着いた緑：安心・信頼 */
  --accent-dark: #237053;
  --accent-soft: #e9f4ef;
  --cta: #e8703a;          /* CTAだけ暖色で目立たせる */
  --cta-dark: #cf5c28;
  --rank-gold: #c9a227;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", YuGothic, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ===== ヘッダー ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header .container { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.site-title { font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; }
.site-desc { font-size: 12px; color: var(--muted); }

/* ===== PR表記（ステマ規制対応・削除禁止） ===== */
.pr-notice {
  background: #f3f1ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 12px;
  margin: 16px 0;
}

/* ===== 記事 ===== */
article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 20px; margin: 20px 0; }
@media (min-width: 600px) { article { padding: 40px 36px; } }

h1 { font-size: 24px; line-height: 1.5; margin: 8px 0 12px; }
h2 {
  font-size: 20px; line-height: 1.5;
  margin: 44px 0 16px;
  padding: 8px 12px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
h3 { font-size: 17.5px; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }

/* アイキャッチ画像（ファイルが無い場合は onerror で自動的に消える） */
.eyecatch { display: block; width: 100%; height: auto; border-radius: 12px; margin: 6px 0 22px; }
.hero .eyecatch { margin: 18px 0 4px; }

/* スクリーンリーダー・SEO用に残す見えない見出し */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
p { margin: 0 0 1.2em; }
strong { background: linear-gradient(transparent 65%, #ffe8a3 65%); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }

/* リード共感ボックス */
.empathy {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.empathy li { margin-bottom: 4px; }

/* 注意・要確認ボックス */
.note {
  background: #fff7ee;
  border: 1px solid #f0ddc4;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 16px 0;
}

/* ===== 比較表 ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px -18px; padding: 0 18px; }
.table-hint { font-size: 12px; color: var(--muted); text-align: right; margin: 0 0 4px; }
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 13.5px;
  background: var(--card);
}
table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}
table.compare thead th { background: var(--accent); color: #fff; font-weight: 700; }
table.compare tbody th { background: #f6f4ee; font-weight: 700; white-space: nowrap; }
table.compare .best { background: #fdf6e3; font-weight: 700; }

/* 比較の段（ティア）見出し */
.tier-head {
  font-size: 17px;
  margin: 34px 0 12px;
  padding: 9px 14px;
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
  border-radius: 4px;
  border-bottom: none;
  color: var(--accent-dark);
}
.tier-head.tier-2 { background: #f3f1ea; border-left-color: #b9b5aa; color: #5c584f; }
.tier-note { font-size: 13.5px; color: var(--muted); margin: -4px 0 14px; }

/* ===== 各社カード ===== */
.service-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  margin: 26px 0;
}
.service-card.rank-1 { border-color: var(--rank-gold); }
.rank-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 6px;
}
.rank-1 .rank-badge { background: var(--rank-gold); }
.service-card h3 { border: none; margin-top: 4px; font-size: 19px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 14px; }
.spec th, .spec td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.spec th { background: #f6f4ee; white-space: nowrap; width: 7.5em; font-weight: 600; }

.good li::marker { content: "✅ "; }
.fit { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; margin: 12px 0; }
.fit-title { font-weight: 700; color: var(--accent-dark); display: block; margin-bottom: 4px; }

/* ===== CTAボタン ===== */
.cta-btn {
  display: block;
  text-align: center;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 20px;
  margin: 14px auto 4px;
  max-width: 420px;
  box-shadow: 0 3px 0 var(--cta-dark);
  transition: transform .08s ease;
}
.cta-btn:active { transform: translateY(2px); box-shadow: none; }
.cta-sub { text-align: center; font-size: 12px; color: var(--muted); margin: 0; }
.cta-btn.pending { background: #b9b5aa; box-shadow: 0 3px 0 #9b978c; pointer-events: none; }

/* LINE誘導 */
.line-box {
  background: #eaf7e9;
  border: 2px solid #59b25a;
  border-radius: 12px;
  padding: 20px 18px;
  margin: 30px 0;
  text-align: center;
}
.line-box .cta-btn { background: #06c755; box-shadow: 0 3px 0 #05a447; }

/* FAQ */
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  background: var(--card);
}
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 4px; font-size: 14.5px; }

/* 目次 */
.toc { background: #f6f4ee; border-radius: 10px; padding: 14px 18px; font-size: 14.5px; }
.toc-title { font-weight: 700; margin-bottom: 6px; }
.toc ol { margin: 0; }
.toc a { color: var(--accent-dark); }

/* ===== トップページ ===== */
.hero { text-align: center; padding: 36px 0 8px; }
.hero h1 { font-size: 25px; }
.hero p { color: var(--muted); font-size: 15px; }
.article-list { list-style: none; padding: 0; }
.article-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
  transition: border-color .15s;
}
.article-list li:hover { border-color: var(--accent); }
.article-list a { display: block; padding: 18px 20px; text-decoration: none; color: var(--text); }
.article-list .list-title { font-weight: 700; font-size: 16.5px; }
.article-list .list-desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.badge-soon { font-size: 11px; color: #fff; background: #b9b5aa; border-radius: 4px; padding: 2px 6px; margin-left: 6px; }

/* 注目記事カード（トップの柱記事だけ少し目立たせる） */
.article-list li.featured {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 3px 12px rgba(47, 143, 107, 0.14);
}
.article-list li.featured .list-title { font-size: 18px; color: var(--accent-dark); }
.article-list li.featured .list-desc { color: #5c6b62; }
.badge-first {
  display: inline-block;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent);
  border-radius: 4px; padding: 2px 8px;
  margin-right: 8px; vertical-align: middle;
}

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--muted); margin: 0 8px; }
