/* Forma 記事ページ共通 (forma-styles-v2.css の後に読み込む) */

.art-hero-img, .art-img, .pc-img, .fc-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* 画像プレースホルダー（WordPress実装時に featured image / アイキャッチに差し替え） */
.img-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; box-sizing: border-box; background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 10px, #fff 10px, #fff 20px); border: 1px dashed var(--line-2); color: var(--muted); font-size: 12px; font-weight: 600; }

.blog-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.blog-hero h1 { font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.5; margin: 18px 0 12px; }
.blog-hero p { font-size: 14.5px; color: var(--ink-2); max-width: 620px; }

/* カテゴリタブ */
.cat-bar { position: sticky; top: 68px; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 8px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; transition: all .18s; }
.cat-tab:hover { border-color: var(--lilac-3); color: var(--violet); }
.cat-tab.sel { background: var(--violet); border-color: var(--violet); color: #fff; }

/* 記事一覧 */
.blog-body { padding: 48px 0 88px; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media (max-width: 960px){ .blog-layout { grid-template-columns: 1fr; } }

/* 注目記事 */
.feat-card { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 36px; transition: box-shadow .2s, border-color .2s; }
.feat-card:hover { box-shadow: var(--shadow-md); border-color: var(--lilac-3); }
.feat-card .fc-img { min-height: 240px; }
.feat-card .fc-body { padding: 30px 32px; display: flex; flex-direction: column; }
.feat-card h2 { font-weight: 900; font-size: 21px; line-height: 1.6; margin: 12px 0 10px; }
.feat-card .fc-ex { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; flex: 1; }
@media (max-width: 720px){ .feat-card { grid-template-columns: 1fr; } .feat-card .fc-img { min-height: 180px; } }

/* 記事カードグリッド */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 640px){ .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--lilac-3); }
.post-card .pc-img { height: 160px; }
.post-card .pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-weight: 700; font-size: 15.5px; line-height: 1.65; margin: 10px 0 8px; }
.post-card .pc-ex { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* メタ情報 */
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-cat { font-size: 11px; font-weight: 700; color: var(--violet); background: var(--lilac); padding: 3px 10px; border-radius: var(--r-sm); }
.pm-date { font-size: 11.5px; color: var(--muted); }
.pm-read { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.post-card .post-meta.foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ページネーション */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: all .18s; padding: 0 10px; }
.pager a:hover { border-color: var(--violet); color: var(--violet); }
.pager a.cur { background: var(--violet); border-color: var(--violet); color: #fff; }

/* サイドバー */
.side { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 140px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.side-box h4 { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.side-box h4::before { content: ""; width: 4px; height: 14px; background: var(--violet); }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rank-list a { display: flex; gap: 12px; align-items: flex-start; }
.rank-list .rk { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--violet); background: var(--lilac); border-radius: var(--r-sm); }
.rank-list li:first-child .rk { background: var(--violet); color: #fff; }
.rank-list .rt { font-size: 12.5px; font-weight: 600; line-height: 1.65; color: var(--ink); transition: color .18s; }
.rank-list a:hover .rt { color: var(--violet); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 12px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 12px; transition: all .18s; }
.tag-cloud a:hover { border-color: var(--violet); color: var(--violet); background: var(--lilac); }

/* サイドCTA */
.side-cta { background: var(--violet-3); border-radius: var(--r); padding: 26px 24px; text-align: center; color: #fff; }
.side-cta .sc-t { font-weight: 900; font-size: 16.5px; line-height: 1.6; margin-bottom: 8px; }
.side-cta p { font-size: 12px; color: var(--lilac-3); line-height: 1.8; margin-bottom: 16px; }
.side-cta .btn { width: 100%; }

/* ============ 記事詳細 ============ */
.art-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumb a { color: var(--muted); transition: color .18s; }
.crumb a:hover { color: var(--violet); }
.crumb .sep { color: var(--lilac-3); }
.art-head h1 { font-weight: 900; font-size: clamp(24px, 3vw, 34px); line-height: 1.6; margin: 14px 0 18px; max-width: 780px; }
.art-author { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.art-author .av { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--lilac-2); display: grid; place-items: center; font-weight: 700; color: var(--violet); }
.art-author .nm { font-size: 13px; font-weight: 700; }
.art-author .rl { font-size: 11.5px; color: var(--muted); }

.art-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; padding: 48px 0 88px; }
@media (max-width: 960px){ .art-layout { grid-template-columns: 1fr; } }
.art-hero-img { height: 340px; border-radius: var(--r); margin-bottom: 36px; border: 1px solid var(--line); }
@media (max-width: 640px){ .art-hero-img { height: 200px; } }

/* 目次 */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; margin-bottom: 40px; }
.toc h4 { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.toc h4::before { content: ""; width: 4px; height: 14px; background: var(--violet); }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 10px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color .18s; line-height: 1.6; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 900; font-size: 12px; color: var(--violet); margin-top: 2px; }
.toc a:hover { color: var(--violet); }

/* 本文 */
.art-body { font-size: 15px; line-height: 2.1; color: var(--ink); }
.art-body h2 { font-weight: 900; font-size: 21px; line-height: 1.6; margin: 52px 0 20px; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--violet); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.art-body h3 { font-weight: 700; font-size: 17px; margin: 38px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--lilac-2); }
.art-body p { margin-bottom: 22px; color: var(--ink-2); }
.art-body p b { color: var(--ink); }
.art-body ul { margin: 0 0 22px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.art-body ul li { display: flex; gap: 10px; color: var(--ink-2); }
.art-body ul li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--violet); margin-top: 12px; }
.art-point { background: var(--lilac); border-radius: var(--r); padding: 22px 26px; margin: 28px 0; }
.art-point .pt { font-size: 12.5px; font-weight: 900; color: var(--violet); letter-spacing: .1em; margin-bottom: 8px; }
.art-point p { margin: 0; font-size: 14px; color: var(--violet-ink); font-weight: 500; }
.art-img { height: 260px; border-radius: var(--r); margin: 28px 0; border: 1px solid var(--line); }

/* 記事内CTA */
.art-cta { background: var(--violet-3); border-radius: var(--r); padding: 34px 32px; margin: 48px 0; text-align: center; color: #fff; }
.art-cta .ac-t { font-weight: 900; font-size: 19px; line-height: 1.6; margin-bottom: 8px; }
.art-cta p { color: var(--lilac-3); font-size: 13px; margin-bottom: 20px; }

/* シェア・タグ */
.art-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.share { display: flex; gap: 8px; }
.share a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-2); transition: all .18s; }
.share a:hover { border-color: var(--violet); color: var(--violet); background: var(--lilac); }

/* 前後記事ナビ */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.art-nav a { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; transition: border-color .2s, box-shadow .2s; background: #fff; }
.art-nav a:hover { border-color: var(--lilac-3); box-shadow: var(--shadow-sm); }
.art-nav .dir { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.art-nav .ttl { font-size: 13px; font-weight: 700; line-height: 1.6; }
.art-nav a.next { text-align: right; }
.art-nav a.next .dir { justify-content: flex-end; }
@media (max-width: 560px){ .art-nav { grid-template-columns: 1fr; } }

/* 記事内FAQ */
.art-faq { margin-top: 48px; padding-top: 8px; }
.art-faq h3 { font-weight: 900; font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.art-faq h3::before { content: ""; width: 5px; height: 20px; background: var(--violet); }
.art-faq .faq-item:first-of-type { border-top: 1px solid var(--line); }

/* 関連記事 */
.rel { margin-top: 56px; }
.rel h3 { font-weight: 900; font-size: 19px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.rel h3::before { content: ""; width: 5px; height: 20px; background: var(--violet); }
