/* コラムの新しい見た目(2026年11月)。今のテーマ(Cocoon)の CSS のあとに読み込んで、上書きする。
   色: 墨 #1B2230 / 本文 #2A3140 / 紺 #27447A / 薄い青 #EEF2F9 / 線 #DDE3EE
   記事の文章・見出し・URL は変えない。見た目だけを変える。 */
:root {
  --ink: #1b2230;
  --text: #2a3140;
  --muted: #5e6677;
  --navy: #27447a;
  --tint: #eef2f9;
  --line: #dde3ee;
  --bsm-navy: #27447a;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
}

html { overflow-x: hidden; }
body.public-page { font-family: var(--sans); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.public-page a { color: var(--navy); }

/* ---------- ヘッダー ---------- */
body.public-page .site-header { border-bottom: 1px solid var(--line); background: #fff; }
body.public-page .site-nav__link { font-family: var(--sans); font-size: 14px; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
body.public-page .site-nav__link:hover { color: var(--navy); }

/* ---------- ページ全体の幅 ---------- */
body.public-page .content-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
body.public-page .main { width: 100%; max-width: none; margin: 0 auto; padding: 0; float: none; box-sizing: border-box; background: transparent; box-shadow: none; border: 0; }
body.public-page #content { background: #fff; padding-bottom: 96px; }

/* パンくず */
body.public-page .breadcrumb { font-size: 13px; color: var(--muted); margin: 28px 0 0; padding: 0; background: none; }
body.public-page .breadcrumb a { color: var(--muted); text-decoration: none; }

/* ---------- 記事 ---------- */
body.public-page .article { max-width: none; margin: 0; padding: 0; }
body.public-page .article-header { max-width: 760px; margin: 40px auto 0; padding: 0; }
body.public-page .article .entry-title {
  font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.55; color: var(--ink);
  margin: 0; padding: 0; border: 0; background: none; letter-spacing: 0.01em; text-align: left;
}
body.public-page .article .entry-title::before, body.public-page .article .entry-title::after { display: none; }
body.public-page .date-tags { margin: 20px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
body.public-page .date-tags, body.public-page .date-tags a, body.public-page .date-tags span, body.public-page .date-tags time { color: var(--muted); font-size: 13px; }
body.public-page .eye-catch-wrap { max-width: 1040px; margin: 0 auto; padding: 0; }
body.public-page .article-header { max-width: none; }
body.public-page .article-header > .entry-title,
body.public-page .article-header > .date-tags { max-width: 720px; margin-left: auto; margin-right: auto; }
body.public-page .article-header > .date-tags { margin-top: 20px; }
body.public-page .eye-catch-wrap { margin-top: 36px; }
body.public-page .eye-catch { margin: 0; }
body.public-page .eye-catch img { width: 100%; height: auto; display: block; border-radius: 0; }
/* 日付は、題のすぐ下に出す */
body.public-page .article-header { display: flex; flex-direction: column; }
body.public-page .article-header > .entry-title { order: 1; width: 100%; box-sizing: border-box; }
body.public-page .article-header > .date-tags { order: 2; width: 100%; box-sizing: border-box; }
body.public-page .article-header > .eye-catch-wrap { order: 3; width: 100%; }

body.public-page .entry-content { max-width: 720px; margin: 56px auto 0; padding: 0; font-size: 17px; line-height: 2; color: var(--text); }
body.public-page .entry-content p { margin: 0 0 24px; line-height: 2; font-size: 17px; }
body.public-page .entry-content [class*='fz-'] { font-size: inherit; }
body.public-page .entry-content li { line-height: 1.9; }
body.public-page .entry-content img { max-width: 100%; height: auto; }
body.public-page .entry-content .wp-block-image { margin: 28px 0; }
body.public-page .entry-content .wp-block-image img { display: block; margin: 0 auto; }
body.public-page .entry-content hr, body.public-page .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* 強調: 赤の太字・黄色の蛍光ペンをやめて、薄い青の下線に */
body.public-page .entry-content strong, body.public-page .entry-content b, body.public-page .entry-content .bold { font-weight: 700; color: var(--ink); }
body.public-page .entry-content .red, body.public-page .entry-content .has-red-color, body.public-page .entry-content .bold-red { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, #dce5f5 62%); }
body.public-page .entry-content .marker, body.public-page .entry-content .marker-under, body.public-page .entry-content .marker-under-red,
body.public-page .entry-content .marker-blue, body.public-page .entry-content .marker-under-blue { background: linear-gradient(transparent 62%, #dce5f5 62%); font-weight: 700; color: var(--ink); }
body.public-page .entry-content .bold-blue, body.public-page .entry-content .has-blue-color { color: var(--navy); }

/* 見出し */
body.public-page .entry-content h2 {
  font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.6; color: var(--ink);
  margin: 72px 0 20px; padding: 24px 0 0; border: 0; border-top: 2px solid var(--ink); background: none; border-radius: 0; box-shadow: none;
}
body.public-page .entry-content h2::before, body.public-page .entry-content h2::after { display: none; }
body.public-page .entry-content h3 {
  font-family: var(--sans); font-weight: 700; font-size: 19px; line-height: 1.7; color: var(--ink);
  margin: 40px 0 10px; padding: 0; border: 0; background: none;
}
body.public-page .entry-content h3::before, body.public-page .entry-content h3::after { display: none; }
body.public-page .entry-content h4 { font-size: 17px; color: var(--ink); margin: 28px 0 8px; border: 0; background: none; padding: 0; }

/* 見出しのすぐ下の「答え」 */
body.public-page .entry-content p.bsm-answer { background: var(--tint); padding: 18px 22px; font-size: 16px; line-height: 1.9; margin: 0 0 28px; }
body.public-page .entry-content p.bsm-answer::before { content: '答え'; font-weight: 700; color: var(--navy); margin-right: 12px; }

/* 色つきの箱(今は赤・青・水色などがばらばら)を、薄い青にそろえる */
body.public-page .entry-content .has-background, body.public-page .entry-content [class*='has-watery-'][class*='background'],
body.public-page .entry-content .has-red-background-color { background-color: var(--tint) !important; color: var(--text); }
body.public-page .entry-content ul.has-background, body.public-page .entry-content .wp-block-group > ul { list-style: none; margin: 0 0 28px; padding: 22px 26px; font-size: 16px; line-height: 1.8; }
body.public-page .entry-content ul.has-background li { margin: 4px 0; }
body.public-page .entry-content ul { padding-left: 1.4em; }
body.public-page .entry-content .wp-block-cocoon-blocks-info-box, body.public-page .entry-content .wp-block-cocoon-blocks-icon-box,
body.public-page .entry-content .wp-block-cocoon-blocks-tab-box-1 { border-radius: 0; border-color: var(--line) !important; box-shadow: none; }

/* 目次 */
body.public-page .toc { border: 1px solid var(--line); background: #fff; padding: 24px 28px; margin: 0 0 56px; border-radius: 0; box-shadow: none; }
body.public-page .toc-title { display: block; font-size: 13px; letter-spacing: 0.12em; color: var(--navy); font-weight: 700; text-align: left; margin: 0 0 12px; background: none; padding: 0; }
body.public-page .toc-content, body.public-page .toc-list { font-size: 15px; line-height: 2.1; }
body.public-page .toc a { color: var(--text); text-decoration: none; }
body.public-page .toc a:hover { color: var(--navy); }

/* 記事の下: カテゴリ */
body.public-page .article-footer { max-width: 720px; margin: 48px auto 0; padding: 0; font-size: 13px; }

/* ---------- 記事の下の案内の帯 ---------- */
body.public-page .bsm-cta { max-width: 720px; margin: 72px auto 0; background: var(--ink); color: #fff; padding: 40px 36px; box-sizing: border-box; text-align: left; }
body.public-page .bsm-cta-label { font-size: 13px; letter-spacing: 0.12em; font-weight: 700; color: #b9c7e6; }
body.public-page .bsm-cta-title { font-family: var(--serif); font-size: 24px; line-height: 1.6; font-weight: 700; margin: 12px 0; color: #fff; }
body.public-page .bsm-cta-text { margin: 0 0 24px; font-size: 15px; line-height: 1.9; color: #e4eaf6; }
body.public-page .bsm-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
body.public-page .bsm-cta-buttons a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; box-sizing: border-box; font-size: 15px; text-decoration: none; border: 1px solid #8fa3cc; color: #fff; }
body.public-page .bsm-cta-buttons a.primary { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
body.public-page .bsm-line-cta { display: none; }

/* ---------- 記事のカード(関連記事・一覧) ---------- */
body.public-page .popular-h2, body.public-page .entry-content .popular-h2 {
  font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); text-align: left; background: none; border: 0;
  border-top: 2px solid var(--ink); padding: 20px 0 0; margin: 88px 0 32px;
}
body.public-page .popular-h2::before, body.public-page .popular-h2::after { display: none; }
body.public-page .article-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
body.public-page .article-cards li, body.public-page .article-cards .card-container { margin: 0; padding: 0; width: auto; float: none; background: none; border: 0; box-shadow: none; }
body.public-page .article-cards a, body.public-page .popular-cards a { display: block; text-decoration: none; color: inherit; }
body.public-page .article-cards figure, body.public-page .popular-cards figure { margin: 0; }
body.public-page .article-cards img, body.public-page .popular-cards figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
body.public-page .article-cards .entry-title, body.public-page .popular-cards .entry-title {
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--ink); margin: 14px 0 0; padding: 0; border: 0; background: none; text-align: left;
}
body.public-page .article-cards .pf-63_, body.public-page .popular-cards .pf-63_ { display: none; }
@media (max-width: 900px) { body.public-page .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- トップページ ---------- */
body.home .entry-content { max-width: none; margin-top: 0; }
body.home .entry-content > h1 {
  font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.45; color: var(--ink); text-align: left;
  margin: 72px 0 16px; padding: 0; border: 0; background: none;
}
body.home .entry-content > h1::before { content: 'COLUMN'; display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; color: var(--navy); font-weight: 700; margin-bottom: 16px; }
body.home .entry-content > h1::after { display: none; }
body.home .popular-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; }
body.home .popular-card { position: relative; margin: 0; padding: 0; width: auto; float: none; background: none; border: 0; box-shadow: none; }
body.home .popular-card .lank-image { position: absolute; top: 0; left: 0; width: 44px; height: auto; z-index: 2; }
@media (max-width: 900px) { body.home .popular-cards { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
body.public-page .site-footer { background: var(--ink); color: #c9d3e8; }
body.public-page .site-footer a { color: #c9d3e8; text-decoration: none; }
body.public-page .site-footer .h4 { color: #fff; letter-spacing: 0.1em; }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  body.public-page .content-in { padding: 0 20px; }
  body.public-page .article .entry-title { font-size: 26px; }
  body.public-page .entry-content { font-size: 16px; margin-top: 40px; }
  body.public-page .entry-content p { font-size: 16px; }
  body.public-page .entry-content h2 { font-size: 23px; margin-top: 56px; }
  body.public-page .bsm-cta { padding: 32px 24px; }
  body.public-page .bsm-cta-title { font-size: 21px; }
  body.public-page .article-cards { grid-template-columns: 1fr; }
  body.home .entry-content > h1 { font-size: 34px; margin-top: 48px; }
}

/* 記事の下のカテゴリ(暗い箱をやめて、薄い枠に) */
body.public-page .article-footer .cat-link, body.public-page .article-footer .tag-link {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); border: 1px solid #bfcbe3; border-radius: 0; padding: 6px 14px; font-size: 13px; text-decoration: none; margin: 0 8px 8px 0;
}
body.public-page .article-footer .cat-link:hover, body.public-page .article-footer .tag-link:hover { background: var(--tint); }
body.public-page .article-footer .tax-icon { color: var(--navy); }

/* カード: 元のテーマの固定の幅(300px)・余白を、列の幅いっぱいに */
body.public-page .article-cards { padding: 0 !important; }
body.public-page .card-container { width: auto !important; margin: 0 !important; text-align: left; }
body.public-page .card-container figure { max-width: none; max-height: none; width: 100%; margin: 0; }
body.public-page .card-container figure img, body.public-page .popular-cards figure img { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; border: 0; margin: 0 !important; background: #eef2f9; object-fit: cover; }
body.home .popular-cards { display: grid !important; }
body.home .popular-card { width: auto !important; max-width: none !important; margin: 0 !important; }
body.home img.lank-image { width: 44px; margin: 0 !important; }
@media (max-width: 969px) { body.home .popular-cards { grid-template-columns: 1fr; } body.home .popular-card { max-width: none !important; } }

/* トップの説明文・分類のリンク */
body.home .bsm-lead { font-size: 17px; line-height: 1.9; color: var(--text); margin: 0 0 8px; max-width: 640px; }
body.home .bsm-chips { list-style: none; margin: 28px 0 56px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body.home .bsm-chips li { margin: 0; }
body.home .bsm-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #bfcbe3; color: var(--ink); text-decoration: none; font-size: 14px; box-sizing: border-box; }
body.home .bsm-chips a:hover { background: var(--tint); }
body.home .entry-content ul.bsm-chips { padding-left: 0; }
body.home .bsm-lead { max-width: 720px; }
/* 元のテーマの「幅 1256px 固定」を、画面の幅に合わせる(スマホで横にはみ出す原因) */
body.public-page .content-in.wrap { width: 100%; }

/* ---------- 見本との違いを合わせる(11/20) ---------- */
/* 記事の一番上の画像: 今の画像は文字入りの3:2なので、切り取らずに、本文の幅にそろえる */
body.public-page .eye-catch-wrap { max-width: 720px; }
body.public-page .eye-catch { width: 100%; max-width: none; }
body.public-page .eye-catch img { width: 100%; height: auto; }
/* 目次: 大見出しだけを出す(小見出しは隠す。見出しの id はそのまま) */
body.public-page .toc-list ol, body.public-page .toc-list ul { display: none; }

/* トップ: ピックアップ */
body.home .bsm-pickup { margin: 0 0 96px; }
body.home .bsm-pickup a { display: flex; flex-wrap: wrap; text-decoration: none; color: inherit; background: var(--tint); }
body.home .bsm-pickup figure { flex: 1 1 480px; margin: 0; min-height: 300px; background: #d9dfea; }
body.home .bsm-pickup figure img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
body.home .bsm-pickup-body { flex: 1 1 360px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; box-sizing: border-box; }
body.home .bsm-pickup-label { font-size: 13px; letter-spacing: 0.12em; color: var(--navy); font-weight: 700; }
body.home .bsm-pickup-title { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.6; color: var(--ink); }
body.home .bsm-pickup-text { font-size: 15px; line-height: 1.9; }
body.home .bsm-pickup-more { font-size: 14px; font-weight: 700; color: var(--navy); }
/* トップ: 診断の帯 */
body.home .bsm-band { margin: 96px 0 0; background: var(--tint); padding: 56px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; box-sizing: border-box; }
body.home .bsm-band-text { flex: 1 1 420px; }
body.home .bsm-band-label { font-size: 13px; letter-spacing: 0.12em; color: var(--navy); font-weight: 700; }
body.home .bsm-band-title { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.6; color: var(--ink); margin: 10px 0; }
body.home .bsm-band p { margin: 0; font-size: 15px; line-height: 1.9; }
body.home .bsm-band a.bsm-band-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 40px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; box-sizing: border-box; }
@media (max-width: 760px) { body.home .bsm-pickup-body { padding: 28px 24px; } body.home .bsm-band { padding: 40px 24px; } }
/* ピックアップの画像: 枠いっぱいに敷き詰める(余白でずれないように) */
body.home .bsm-pickup figure { position: relative; overflow: hidden; }
body.home .bsm-pickup figure img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; object-fit: cover; object-position: center; }
