/* ============================================================
   ブログ専用スタイル(site/blog/ 配下の全ページで使用)
   ブログは「白背景・一般向けオウンドメディア調」(2026-07-18 社長指示)。
   本体サイト(ダーク)とは独立したスタンドアロンCSS。
   style.css / guide.css は読み込まない・変更しないこと。
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg2: #f6f8fa;
  --text: #1a222e;
  --muted: #57606a;
  --border: #e4e9ef;
  --accent: #1f6feb;
  --accent-soft: #eaf2fe;
  --good: #1a7f37;
  --good-soft: #ebf7ee;
  --warn: #9a6700;
  --warn-soft: #fff8e5;
  --grad: linear-gradient(90deg, #1f6feb, #00b7c2, #2ea043);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.9;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- ヘッダー ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--text); }
.logo img { border-radius: 6px; }
nav.top { display: flex; align-items: center; gap: 18px; }
nav.top a { color: var(--muted); font-size: 14px; font-weight: 600; }
nav.top a:hover, nav.top a.current { color: var(--text); }
nav.top a.btn-nav {
  background: var(--accent); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 13.5px;
}
nav.top a.btn-nav:hover { filter: brightness(1.08); color: #fff; }

/* ---------- 一覧(index) ---------- */
.blog-hero { max-width: 1080px; margin: 0 auto; padding: 52px 20px 8px; }
.blog-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 10px;
}
.blog-hero h1 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.4; }
.blog-hero .desc { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 640px; }

.post-grid {
  max-width: 1080px; margin: 0 auto; padding: 34px 20px 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px;
}
.post-card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; color: var(--text);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: 0 10px 30px rgba(26, 34, 46, 0.10); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 1200 / 630; background: var(--bg2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.post-card .cat {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 12px;
}
.post-card h2 { font-size: 16.5px; line-height: 1.55; }
.post-card p.excerpt { color: var(--muted); font-size: 13px; line-height: 1.75; }

/* ---------- 記事ページ ---------- */
.post { max-width: 720px; margin: 0 auto; padding: 44px 20px 80px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

.post-head .cat {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 14px; margin-bottom: 14px;
}
.post-head h1 { font-size: clamp(24px, 4.2vw, 32px); line-height: 1.5; letter-spacing: 0.01em; }
.post-head .meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.post-head .lead { color: var(--muted); font-size: 15.5px; margin-top: 16px; }
.post-head .lead strong { color: var(--text); }

.eyecatch { margin: 26px 0 8px; }
.eyecatch img { border-radius: 16px; border: 1px solid var(--border); }

/* 本文 */
.post h2 {
  font-size: 22px; line-height: 1.5; margin: 54px 0 18px; padding: 0 0 12px;
  border-bottom: 2px solid var(--border); position: relative;
}
.post h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 84px; height: 2px; background: var(--grad);
}
.post h3 { font-size: 17px; margin: 32px 0 10px; }
.post p { margin: 14px 0; }
.post p, .post li { color: #333c48; }
.post strong { color: var(--text); }

/* 目次 */
.toc { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin: 30px 0 8px; }
.toc .toc-title { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc ol li { counter-increment: toc; margin: 7px 0; font-size: 14.5px; }
.toc ol li::before {
  content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 800;
  font-size: 12px; margin-right: 10px; letter-spacing: 0.05em;
}
.toc a { color: var(--text); font-weight: 600; }
.toc a:hover { color: var(--accent); }

/* 情報ボックス */
.note {
  border-radius: 12px; padding: 16px 18px 16px 48px; margin: 20px 0;
  font-size: 14px; position: relative; line-height: 1.8;
  background: var(--accent-soft); border: 1px solid #cfe1fb; color: #2c3a4e;
}
.note::before {
  position: absolute; left: 16px; top: 15px; font-weight: 800; font-size: 15px;
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  content: "i"; background: var(--accent); color: #fff; font-style: italic; font-family: Georgia, serif;
}
.note.good { background: var(--good-soft); border-color: #cdeeda; }
.note.good::before { content: "✓"; background: var(--good); font-style: normal; font-family: inherit; font-size: 13px; }
.note.warn { background: var(--warn-soft); border-color: #f3e3b3; }
.note.warn::before { content: "!"; background: var(--warn); font-style: normal; font-family: inherit; }
.note strong { color: var(--text); }

/* 手順(番号つき) */
.steps-list { list-style: none; margin: 18px 0 6px; counter-reset: step; }
.steps-list[start="4"] { counter-reset: step 3; }
.steps-list li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 4px; width: 2px; background: var(--border);
}

/* 図版 */
figure.shot { margin: 24px 0 10px; }
figure.shot img { border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 38px rgba(26, 34, 46, 0.10); }
figure.shot.plain img { box-shadow: none; }
figure.shot figcaption { color: var(--muted); font-size: 12.5px; margin-top: 10px; text-align: center; }

/* 表 */
.table-scroll { margin: 22px 0 8px; overflow-x: auto; }
table.compare { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--bg2); font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }
table.compare thead th:first-child { border-radius: 10px 0 0 0; }
table.compare thead th:last-child { border-radius: 0 10px 0 0; }
table.compare td:first-child { font-weight: 700; white-space: nowrap; color: var(--text); }
table.compare td { color: #333c48; }
table.compare td.good { color: var(--good); font-weight: 700; }

.post ul.plain { margin: 12px 0 12px 4px; list-style: none; }
.post ul.plain li { margin: 8px 0; padding-left: 26px; position: relative; }
.post ul.plain li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

/* 記事末CTA */
.post-cta {
  background: linear-gradient(135deg, #f0f7ff, #ecfdf5);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 34px 30px; margin-top: 56px; text-align: center;
}
.post-cta h2 { font-size: 20px; margin: 0 0 10px; padding: 0; border: none; }
.post-cta h2::after { display: none; }
.post-cta p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.post-cta .btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  font-size: 15px; padding: 14px 34px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(31, 111, 235, 0.30);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.post-cta .btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.post-cta .cta-sub { font-size: 12px; color: var(--muted); margin-top: 14px; margin-bottom: 0; }

/* 著者 */
.author {
  display: flex; gap: 14px; align-items: center; margin-top: 34px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
}
.author .avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px;
}
.author p { margin: 0; font-size: 13px; color: var(--muted); }
.author p b { display: block; color: var(--text); font-size: 14px; }

/* 前後ナビ */
.pager { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.pager a {
  flex: 1 1 220px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; color: var(--text); font-size: 13.5px; font-weight: 700;
  transition: box-shadow 0.2s ease;
}
.pager a:hover { box-shadow: 0 8px 22px rgba(26, 34, 46, 0.08); }
.pager a span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 4px; }
.pager a.next { text-align: right; }

/* ---------- フッター ---------- */
footer.site { border-top: 1px solid var(--border); background: var(--bg2); }
footer.site .wrap {
  max-width: 1080px; margin: 0 auto; padding: 26px 20px;
  display: flex; gap: 22px; flex-wrap: wrap;
}
footer.site a { color: var(--muted); font-size: 13px; }
footer.site a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 15px; }
  .post h2 { font-size: 20px; }
  nav.top a.plain-link { display: none; }
}
