/* ============================================================
   blog.css — ブログ記事ページ（控えめ・ニュートラル / フラット）
   style.css → brand.css → blog.css の順で読み込む。body は theme-blue。
   色は主にニュートラル。ブランド色はリンク・CTAなど要所のみ。
   ============================================================ */

/* レイアウト */
.blog-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }
.blog--rich .blog-wrap { display: grid; grid-template-columns: minmax(0,1fr) 296px; gap: 40px; align-items: start; }
.blog--minimal .blog-main { max-width: 700px; margin: 0 auto; }
.blog--editorial .blog-wrap { max-width: 860px; }
@media (max-width: 900px) { .blog--rich .blog-wrap { grid-template-columns: 1fr; gap: 28px; } .sidebar { position: static !important; } }

/* パンくず */
.breadcrumb { font-size: .76rem; color: #aab1b9; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 20px; max-width: 1080px; margin: 0 auto; }
.breadcrumb a { color: #2460A7; } .breadcrumb .sep { color: #cbd5e1; } .breadcrumb .current { color: #7a828b; }

/* 記事ヘッダー */
.post-cat { display: inline-block; font-size: .72rem; font-weight: 700; color: #2460A7; background: #eef3fb; padding: 3px 10px; border-radius: 3px; text-decoration: none; }
.post-cat:hover { background: #dfeafd; }
.post-title { font-size: 1.7rem; font-weight: 700; line-height: 1.55; color: #1a1a1a; margin: 12px 0 10px; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #9aa3ad; font-size: .8rem; align-items: center; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags span, .post-tags a { font-size: .72rem; color: #888; border: 1px solid #e3e7ec; padding: 2px 9px; border-radius: 3px; text-decoration: none; }
.post-tags a:hover { color: #2460A7; border-color: #b9cdec; }
.post-lead { color: #555; font-size: 1rem; line-height: 1.9; margin: 14px 0 0; }
.post-featured { width: 100%; aspect-ratio: 16 / 6.5; background: #eef1f5; border-radius: 4px; margin: 18px 0 26px;
  display: flex; align-items: center; justify-content: center; color: #c2cad3; font-size: .8rem; }
img.post-featured { object-fit: cover; display: block; }
/* 本文中の画像 */
.post-body img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 18px auto; }
.post-body figure { margin: 18px 0; }
.post-body figcaption { font-size: .8rem; color: #9aa3ad; text-align: center; margin-top: 6px; }
/* 一覧カードのサムネイル */
.post-card__img img, .feat-main__img img, .feat-sub__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 区切り（控えめ） */
.divider { height: 1px; background: #eceef1; margin: 22px 0; }
.divider--amber { height: 2px; width: 56px; background: var(--amber); border-radius: 2px; margin: 16px 0 22px; }

/* 本文 */
.post-body { line-height: 1.95; color: #3a3a3a; font-size: 1rem; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; margin: 50px 0 30px; padding: 0 0 0px 14px; border-left: 8px solid #2460A7; border-bottom: 1px solid var(--border); }
.post-body h3 { font-size: 1.08rem; font-weight: 700; color: #1a1a1a; margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
.post-body h3::before { content: ""; flex: none; width: 4px; height: 17px; background: #c3ccd8; border-radius: 2px; }
.post-body p { margin: 0 0 16px; }
.post-body a { color: #2460A7; }
.post-body strong { color: #1a1a1a; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 22px; }
.post-body li { margin: 4px 0; }
/* 表（Markdownテーブル）: フラット・横スクロール対応 */
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body th, .post-body td { border: 1px solid #e3e8ef; padding: 9px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
.post-body thead th { background: #f4f6f9; color: #1a1a1a; font-weight: 700; }
.post-body tbody tr:nth-child(even) { background: #fafbfc; }
/* 引用（>）: 安心ポイント風コールアウト */
.post-body blockquote { position: relative; background: #f5f8fc; border: 1px solid #e3e8ef; border-left: 4px solid #c3ccd8; border-radius: 0 4px 4px 0; margin: 22px 0 22px 28px; padding: 13px 18px 13px 42px; color: #44505c; font-size: .88rem; line-height: 1.8; }
@media (max-width: 600px) { .post-body blockquote { margin-left: 14px; } }
.post-body blockquote::before { content: "\1F4A1"; position: absolute; left: 14px; top: 12px; font-size: 1.05rem; line-height: 1.6; }
.post-body blockquote p { margin: 0 0 8px; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote strong { color: #1a1a1a; }
/* FAQ（定義リスト 質問\n: 回答）: Q/Aバッジ・カード型 */
.post-body dl { margin: 18px 0; }
.post-body dt { position: relative; background: #eef3fa; border-radius: 0; padding: 12px 14px 12px 46px; margin-top: 12px; font-weight: 700; color: #1a1a1a; line-height: 1.7; }
.post-body dt::before { content: "Q"; position: absolute; left: 12px; top: 16px; width: 22px; height: 22px; background: #2460A7; color: #fff; border-radius: 2px; font-size: .8rem; font-weight: 700; text-align: center; line-height: 19px; }
.post-body dd { position: relative; margin: 0; padding: 10px 14px 14px 46px; color: #44505c; line-height: 1.9; font-size: .95rem; }
.post-body dd::before { content: "A"; position: absolute; left: 12px; top: 14px; width: 22px; height: 22px; background: #F5A800; color: #ffffff; border-radius: 2px; font-size: .8rem; font-weight: 700; text-align: center; line-height: 19px; }

/* 手順 */
.steps { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.step { display: flex; gap: 14px; background: #fff; border: 1px solid #e6e9ee; border-radius: 4px; padding: 14px 16px; }
.step__n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #2460A7; color: #fff; font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.step__t { font-weight: 700; color: #1a1a1a; margin-bottom: 3px; font-size: .95rem; }
.step__d { color: #666; font-size: .9rem; line-height: 1.75; }

/* TIP / 補足（控えめ） */
.tip { background: #f7f8fa; border: 1px solid #eceef1; border-left: 3px solid #c3ccd8; border-radius: 0 4px 4px 0; padding: 13px 16px; margin: 18px 0; font-size: .92rem; color: #555; line-height: 1.8; }
.tip b { color: #1a1a1a; }

/* 目次 */
.toc { background: #f7f8fa; border: 1px solid #eceef1; border-radius: 4px; padding: 15px 18px; margin: 22px 0; }
.toc__title { font-size: .8rem; font-weight: 700; color: #555; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a { color: #2460A7; font-size: .9rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 記事内CTA（ツール誘導：ブランド色OK） */
.post-cta { background: var(--brand-blue); border-radius: 4px; padding: 20px 22px; margin: 26px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-cta__t { flex: 1; min-width: 200px; color: #fff; }
.post-cta__t b { display: block; font-weight: 700; margin-bottom: 3px; }
.post-cta__t span { color: #cfe0f5; font-size: .85rem; }
.post-cta .btn { background: var(--amber); color: #1a1a1a; flex: none; }
.post-cta .btn:hover { background: var(--amber-dark); color: #fff; }

/* 関連記事 */
.related { margin-top: 38px; }
.related__h { font-size: .85rem; font-weight: 700; letter-spacing: 1px; color: #9aa3ad; padding-bottom: 9px; border-bottom: 1px solid #eceef1; margin-bottom: 14px; }
.related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related__card { border: 1px solid #e6e9ee; border-radius: 4px; overflow: hidden; display: block; color: inherit; }
.related__img { height: 92px; background: #e9edf2; overflow: hidden; }
.related__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related__b { padding: 10px 12px; }
.related__cat { font-size: .7rem; color: #9aa3ad; font-weight: 700; }
.related__t { font-size: .86rem; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin-top: 2px; }
@media (max-width: 560px) { .related__grid { grid-template-columns: 1fr; } }

/* サイドバー */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; }
.sb { border: 1px solid #e6e9ee; border-radius: 4px; padding: 16px 18px; }
.sb__title { font-size: .76rem; font-weight: 700; letter-spacing: 1px; color: #9aa3ad; padding-bottom: 9px; border-bottom: 1px solid #eceef1; margin-bottom: 12px; }
.sb-cta { background: var(--brand-link); border: 1px solid #dce6f2; border-radius: 4px; padding: 20px; text-align: center; color: #ffffff; }
.sb-cta__t { font-weight: 700; margin: 6px 0; }
.sb-cta__d { color: #cfe0f5; font-size: .82rem; line-height: 1.6; margin-bottom: 14px; }
.sb-cta .btn { display: block; background: var(--amber); color: #1a1a1a; }
.sb-cta .btn:hover { background: var(--amber-dark); color: #fff; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.cat-list a { font-size: .88rem; color: #444; text-decoration: none; }
.cat-list a:hover { color: #2460A7; }
.cat-list .n { font-size: .72rem; color: #9aa3ad; background: #f2f4f7; padding: 1px 8px; border-radius: 3px; }
.recent { display: flex; flex-direction: column; gap: 12px; }
.recent__i { display: flex; gap: 10px; }
.recent__img { flex: none; width: 54px; height: 38px; border-radius: 3px; background: #e9edf2; overflow: hidden; }
.recent__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent__cat { font-size: .68rem; color: #9aa3ad; font-weight: 700; }
.recent__t { font-size: .82rem; color: #333; line-height: 1.5; font-weight: 500; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a { font-size: .78rem; color: #666; border: 1px solid #e3e7ec; padding: 3px 10px; border-radius: 3px; text-decoration: none; }

/* 浮遊ミニ目次（editorial） */
.toc-float { position: sticky; top: 24px; float: right; width: 200px; margin: 0 0 20px 28px; font-size: .82rem; }
.toc-float .toc__title { letter-spacing: .5px; }
.toc-float ol { padding-left: 16px; }
.toc-float a { color: #666; }
@media (max-width: 760px) { .toc-float { float: none; width: auto; margin: 0 0 20px; } }

/* ============================================================
   ブログ一覧ページ
   ============================================================ */
/* ヒーロー（控えめ：白系＋アンバー細線） */
.blog-hero { background: #f7f8fa; border-bottom: 1px solid #eceef1; padding: 30px 20px; }
.blog-hero__inner { max-width: 1080px; margin: 0 auto; }
.blog-hero__eyebrow { font-family: "Outfit",sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: 2px; color: #9aa3ad; }
.blog-hero__title { font-family: "Outfit","Noto Sans JP",sans-serif; font-size: 1.6rem; font-weight: 700; color: #1a1a1a; margin: 6px 0; }
.blog-hero__rule { height: 2px; width: 48px; background: var(--amber); border-radius: 2px; margin: 8px 0 10px; }
.blog-hero__desc { color: #666; font-size: .92rem; max-width: 560px; line-height: 1.7; }

/* カテゴリナビ */
.cat-nav { background: #fff; border-bottom: 1px solid #eceef1; }
.cat-nav__inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; overflow-x: auto; }
.cat-nav a { font-size: .82rem; font-weight: 600; color: #888; text-decoration: none; padding: 13px 16px; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a.active { color: var(--brand-blue); border-bottom-color: var(--amber); }
.cat-nav a:hover { color: var(--brand-blue); }

/* セクション見出し */
.sec-eyebrow { font-family: "Outfit",sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; color: #9aa3ad; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.sec-eyebrow::after { content: ""; flex: 1; height: 1px; background: #eceef1; }

/* 注目記事 */
.featured { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 30px; }
@media (max-width: 680px) { .featured { grid-template-columns: 1fr; } }
.feat-main { border: 1px solid #e6e9ee; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.feat-main__img { aspect-ratio: 16 / 8; background: #e9edf2; }
.feat-main__b { padding: 14px 16px; }
.feat-cat { font-size: .7rem; font-weight: 700; color: #2460A7; }
.feat-main__t { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin: 4px 0; }
.feat-main__m { font-size: .76rem; color: #9aa3ad; }
.feat-sub { display: flex; flex-direction: column; gap: 12px; }
.feat-sub__c { border: 1px solid #e6e9ee; border-radius: 4px; overflow: hidden; flex: 1; color: inherit; display: flex; flex-direction: column; }
.feat-sub__img { height: 84px; background: #e9edf2; }
.feat-sub__b { padding: 10px 12px; }
.feat-sub__t { font-size: .85rem; font-weight: 700; color: #1a1a1a; line-height: 1.45; margin-top: 3px; }

/* 記事一覧カード（横型） */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card { display: flex; border: 1px solid #e6e9ee; border-radius: 4px; overflow: hidden; color: inherit; }
.post-card__img { width: 168px; flex: none; background: #e9edf2; position: relative; }
@media (max-width: 560px) { .post-card { flex-direction: column; } .post-card__img { width: auto; height: 150px; } }
.post-card__b { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.post-card__t { font-size: 1rem; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin: 4px 0 5px; }
.post-card__d { font-size: .85rem; color: #666; line-height: 1.7; }
.post-card__f { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.post-card__date { font-size: .74rem; color: #9aa3ad; }
.post-card__read { font-size: .74rem; font-weight: 700; color: #2460A7; margin-left: auto; }
.new-badge { position: absolute; top: 8px; left: 8px; background: var(--amber); color: #1a1a1a; font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; letter-spacing: .5px; }

/* ページネーション */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; border: 1px solid #e3e7ec; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; color: #666; text-decoration: none; background: #fff; padding: 0 6px; }
.pagination .active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.pagination a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pagination .dots { border: none; background: transparent; }

/* 人気記事（ランク） */
.popular { display: flex; flex-direction: column; gap: 11px; }
.popular__i { display: flex; gap: 10px; }
.popular__r { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #7a828b; color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.popular__r.is-1 { background: var(--amber); color: #1a1a1a; }
.popular__r.is-2 { background: #a7b0ba; }
.popular__cat { font-size: .68rem; color: #9aa3ad; font-weight: 700; }
.popular__t { font-size: .82rem; color: #333; line-height: 1.5; font-weight: 500; }

/* 広告枠（ニュートラル・本番ではAdSense自動広告 or ユニット） */
.ad { background: #fafafa; border: 1px dashed #d8dce1; border-radius: 4px; color: #b8bec6; font-size: .76rem;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; }
.ad--h { min-height: 90px; margin: 22px 0; }
.ad--rect { min-height: 280px; margin: 22px 0; }
.ad--side { min-height: 250px; }
