/* Yells コラム/記事CSS（claude design styles/blog.css 由来） */

/* ===========================================================
   Yells 記事（blog / article）専用 CSS — 案A: Open
   site.css / top.css / features.css の上に重ねて使用。
   =========================================================== */

/* -------- カテゴリフィルタ -------- */
.blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 56px; }
.blog-filter a { font-size: 13.5px; font-weight: 700; color: var(--c-dark); background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: 9px 18px; transition: all .15s ease; }
.blog-filter a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.blog-filter a.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* -------- 注目記事 -------- */
.feature-post { max-width: 1040px; margin: 0 auto 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.feature-post .fp-thumb { min-height: 320px; }
.feature-post .fp-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-post .fp-pick { font-family: var(--f-latin); font-weight: 800; font-size: 11px; letter-spacing: 0.1em; color: var(--c-primary); }
.feature-post h2 { margin: 14px 0 0; font-size: 26px; font-weight: 800; color: var(--c-dark); line-height: 1.5; }
.feature-post p { margin: 16px 0 0; font-size: 14px; color: var(--c-muted); line-height: 1.9; }
.feature-post .fp-meta { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--c-muted); font-family: var(--f-mono); }

/* -------- 記事グリッド -------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1040px; margin: 0 auto; }
.post-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.post-card .pc-thumb { aspect-ratio: 16 / 10; position: relative; }
.post-card .pc-cat { position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(21,39,115,0.82); border-radius: 999px; padding: 5px 12px; backdrop-filter: blur(2px); }
.post-card .pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--c-dark); line-height: 1.65; }
.post-card .pc-ex { margin: 10px 0 0; font-size: 12.5px; color: var(--c-muted); line-height: 1.75; }
.post-card .pc-date { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); font-size: 11.5px; color: var(--c-muted); font-family: var(--f-mono); }

/* -------- ページネーション -------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--c-border); font-size: 14px; font-weight: 700; color: var(--c-dark); background: #fff; font-family: var(--f-mono); }
.pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager .cur { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pager .nav { padding: 0 16px; }
.pager .dots { border: none; background: transparent; }

/* ===========================================================
   記事詳細（article）
   =========================================================== */
.article-hero { background: var(--c-cream); padding: 56px 0 0; }
.article-head { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.article-head .crumb { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); margin-bottom: 20px; }
.article-head .crumb a { color: var(--c-muted); }
.article-head .crumb a:hover { color: var(--c-primary); }
.article-head .a-cat { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--c-primary); border-radius: 999px; padding: 6px 14px; }
.article-head h1 { margin: 16px 0 0; font-size: 34px; font-weight: 900; color: var(--c-dark); line-height: 1.5; letter-spacing: 0.01em; }
.article-head .a-meta { margin: 22px 0 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.article-head .a-author { display: flex; align-items: center; gap: 10px; }
.article-head .a-author .av { width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary-050); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-weight: 800; font-family: var(--f-latin); font-size: 14px; }
.article-head .a-author b { color: var(--c-dark); font-weight: 700; }
.article-head .a-date { font-family: var(--f-mono); }
.article-cover { max-width: 880px; margin: 36px auto -80px; padding: 0 32px; }
.article-cover .ph { aspect-ratio: 16 / 7; }

/* 本文レイアウト：本文 + 目次 */
.article-body-wrap { max-width: 1080px; margin: 0 auto; padding: 120px 32px 0; display: grid; grid-template-columns: 1fr 240px; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 22px 24px; background: #fff; box-shadow: var(--sh-sm); }
.toc .toc-h { font-family: var(--f-latin); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; color: var(--c-muted); text-transform: uppercase; margin-bottom: 14px; }
.toc a { display: block; font-size: 13px; color: var(--c-muted); line-height: 1.6; padding: 7px 0 7px 14px; border-left: 2px solid var(--c-border); transition: all .15s ease; }
.toc a:hover { color: var(--c-primary); border-left-color: var(--c-primary); }

/* 本文タイポ */
.prose { font-size: 16px; line-height: 2.05; color: var(--c-text); max-width: 100%; }
.prose > * { max-width: 100%; }
.prose h2 { font-size: 25px; font-weight: 800; color: var(--c-dark); line-height: 1.5; margin: 52px 0 20px; padding-left: 16px; border-left: 4px solid var(--c-primary); scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; font-weight: 800; color: var(--c-dark); margin: 36px 0 14px; }
.prose p { margin: 0 0 22px; }
.prose a { color: var(--c-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.4em; }
.prose li { margin-bottom: 10px; }
.prose ul li::marker { color: var(--c-primary); }
.prose strong { color: var(--c-dark); font-weight: 700; }
.prose .lead { font-size: 17.5px; line-height: 2; color: var(--c-muted); margin-bottom: 36px; }
.prose figure { margin: 32px 0; }
.prose figure .ph { aspect-ratio: 16 / 9; }
.prose figcaption { margin-top: 10px; font-size: 12.5px; color: var(--c-muted); text-align: center; }
.prose blockquote { margin: 28px 0; padding: 18px 24px; background: var(--c-primary-050); border-radius: var(--r-sm); font-size: 15px; color: var(--c-dark); line-height: 1.9; }
.callout { margin: 28px 0; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 22px 26px; background: var(--c-cream); }
.callout .co-h { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; color: var(--c-dark); margin-bottom: 10px; }
.callout .co-h svg { width: 18px; height: 18px; color: var(--c-primary); }
.callout p { margin: 0; font-size: 14px; color: var(--c-muted); line-height: 1.9; }

/* 記事フッタCTA・著者・SNS */
.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 44px 0 0; }
.article-tags a { font-size: 12.5px; color: var(--c-muted); background: var(--c-cream); border-radius: 999px; padding: 7px 14px; font-family: var(--f-mono); }
.article-tags a:hover { color: var(--c-primary); }
.author-box { margin: 40px 0 0; display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 26px 28px; background: #fff; box-shadow: var(--sh-sm); }
.author-box .av { width: 60px; height: 60px; border-radius: 50%; background: var(--c-primary-050); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-weight: 800; font-family: var(--f-latin); font-size: 20px; flex: none; }
.author-box h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--c-dark); }
.author-box p { margin: 0; font-size: 13px; color: var(--c-muted); line-height: 1.8; }

/* リード直下の著者バイライン */
.author-byline { display: flex; align-items: center; gap: 14px; margin: 24px 0 8px; padding: 18px 22px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-sm); }
.author-byline .av { width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary-050); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-weight: 800; font-family: var(--f-latin); font-size: 18px; flex: none; }
.author-byline .ab-info { flex: 1; min-width: 0; }
.author-byline .ab-name { font-size: 14.5px; font-weight: 800; color: var(--c-dark); }
.author-byline .ab-role { font-size: 12.5px; color: var(--c-muted); margin-top: 4px; line-height: 1.75; }

/* 関連記事 */
.related { max-width: 1040px; margin: 0 auto; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-post { grid-template-columns: 1fr; }
  .feature-post .fp-thumb { min-height: 220px; }
  .article-body-wrap { grid-template-columns: 1fr; gap: 0; padding-top: 110px; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 26px; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 21px; }
  .article-cover { margin-bottom: -50px; }
  .article-body-wrap { padding-top: 80px; }
}
