/* v12a：記事ページの上部（記事ヒーロー）と一覧のサムネイル。参考の実測（reference_article/measure_ref_article_v12a.json）に合わせる。
   見出し：OpenAI の事例 64px・48px（太さ500）、Sierra 44px（400）、スマホ 32px・26px → 新しい案は PC 56px・太さ600、スマホ 32px（v11 は 40px・26px・太さ500）。
   写真：OpenAI の Morgan Stanley と同じく、見出しの下に横幅いっぱい（OpenAI 1104〜1376px）。写真の角は OpenAI の実測 約6px。スマホは画面の端まで。
   日付・カテゴリ：OpenAI は見出しの上に日付、Sierra は左の列に日付。新しい案はカテゴリを見出しの上の小さな英字、日付・著者を見出しの下の1行。
   一覧のサムネイルの角：Sierra のブログ一覧の小さいカードの実測 12px。ピル型のラベル・光る点は使わない。 */

/* ---------- 記事ヒーロー ---------- */
.ah { padding: clamp(24px, 3vw, 44px) 0 clamp(40px, 4.4vw, 64px); background: var(--fb-surface, #fff); }
.ah .crumb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; font-size: 13px; color: var(--fb-ink-muted); }
.ah .crumb a { color: var(--fb-ink-muted); }
.ah__head { max-width: 1040px; margin-top: clamp(28px, 3.6vw, 52px); }
.ah__label { margin: 0; font-family: Inter, "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fb-purple-700, #5532C2); }
.ah__sep { margin: 0 .7em; color: var(--fb-ink-muted); font-weight: 400; }
.ah .ah__title { margin: 16px 0 0; font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; color: var(--fb-ink); text-align: left; text-wrap: balance; }
.ah__sub { margin: 16px 0 0; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; line-height: 1.55; color: var(--fb-ink); }
.ah__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 24px 0 0; font-family: Inter, "Noto Sans JP", sans-serif; font-size: 14px; color: var(--fb-ink-muted); text-align: left; }
.ah__meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 14px; vertical-align: -1px; background: #C9C6C0; }
.ah__by { color: var(--fb-ink); font-weight: 500; }
.ah__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ah__media { margin: clamp(32px, 3.6vw, 52px) 0 0; overflow: hidden; border-radius: 6px; background: var(--fb-bg-alt); aspect-ratio: 12 / 5; }
.ah__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ah__lead { margin: clamp(32px, 3.6vw, 48px) 0 0; max-width: 40em; font-size: 18px; line-height: 1.9; color: var(--fb-ink); text-align: left; }

/* 10分野：番号つきの5列×2段 */
.ah-fields { padding: 0 0 clamp(16px, 2vw, 32px); }
.ah-fields__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-top: 28px; border-top: 1px solid var(--fb-ink); }
.ah-fields__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.ah-fields__note { margin: 0; font-size: 14px; color: var(--fb-ink-muted); }
.ah-fields__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--fb-line); }
.ah-fields__grid li { display: flex; flex-direction: column; gap: 10px; min-height: 96px; padding: 18px 20px 20px; border-right: 1px solid var(--fb-line); border-bottom: 1px solid var(--fb-line); background: var(--fb-surface, #fff); }
.ah-fields__grid li:nth-child(-n+5) { border-top: 1px solid var(--fb-line); }
.ah-fields__no { font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--fb-purple-700, #5532C2); }
.ah-fields__name { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--fb-ink); }

@media (max-width: 1023px) {
  .ah__media { aspect-ratio: 2 / 1; }
  .ah-fields__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-fields__grid li:nth-child(-n+5) { border-top: 0; }
  .ah-fields__grid li:nth-child(-n+2) { border-top: 1px solid var(--fb-line); }
  .ah-fields__grid li { min-height: 0; padding: 14px 16px 16px; gap: 6px; }
}
@media (max-width: 599px) {
  .ah { padding-top: 20px; }
  .ah__head { margin-top: 24px; }
  .ah .ah__title { margin-top: 14px; font-size: clamp(28px, 8.2vw, 32px); line-height: 1.28; word-break: auto-phrase; }
  .ah .ah__title .nb { display: inline; }
  .ah .ah__title .nbk { display: inline-block; }  /* try5：「経営／コンサルティングとは」でだけ折り返す（auto-phrase が効かない環境のため） */
  .ah__sub { font-size: 17px; }
  .ah__meta { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .ah__meta > * + *::before { display: none; }  /* try4：区切り線が行頭に来たため、スマホは縦に並べる */
  .ah__media { margin: 28px calc(var(--fb-gutter, 24px) * -1) 0; border-radius: 0; aspect-ratio: 3 / 2; }
  .ah__lead { font-size: 16px; line-height: 1.85; }
  .ah-fields__name { font-size: 15px; }
}

/* ---------- 一覧のサムネイル（角は Sierra のブログ一覧の小さいカードの実測 12px） ---------- */
/* insight の一覧は2列なので、サムネイルはカードの上に置く（左右に並べると本文が狭くなった：try1） */
.posts--list .post.post--thumb { display: block; }
.post__thumb { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; margin-bottom: 18px; background: var(--fb-bg-alt); }
.post__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post--thumb:hover .post__thumb img { transform: scale(1.03); }
.post__body { display: block; min-width: 0; }
.post__body h3 { margin-top: 8px; }
.news--wide li.news__thumbrow { grid-template-columns: 120px 110px 140px minmax(0, 1fr); align-items: center; }
.news__thumb { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: var(--fb-bg-alt); }
.news__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news__thumb--none { background: none; }
@media (max-width: 760px) {
  .news--wide li.news__thumbrow { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
  .news--wide li.news__thumbrow .news__thumb { grid-row: 1 / span 3; }
  .news--wide li.news__thumbrow--none { grid-template-columns: minmax(0, 1fr); }
  .news--wide li.news__thumbrow--none .news__thumb--none { display: none; }
}
@media (prefers-reduced-motion: reduce) { .post__thumb img { transition: none; } }
