/* ブログ（/blog/ の一覧・カテゴリー別・個別記事、トップの新着記事）。renewal.css の後に、ブログのページでだけ読む。
   - クラスは bl- で始める。色は renewal.css の変数（黒・白・灰・ミント）だけを使う。外部の読み込みはしない。
   - 記事の題名・本文は編集画面で自由に書かれるので、見出し用の部分フォント（RN Gothic：収めた文字だけ）は使わず、端末の書体で出す
     （部分フォントに無い文字だけ別の書体になり、太さがそろわなくなるのを避ける）。 */
.bl, .bl-front {
  --bl-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --bl-en: "Instrument Sans", system-ui, sans-serif;
}
.bl-title, .bl-h1, .bl-h2, .bl-card, .bl-cats, .bl-tag, .bl-body, .bl-empty, .bl-pager, .bl-cta, .bl-meta, .bl .pg-crumbs, .bl .bl-title { font-family: var(--bl-ja); }
.bl :focus-visible, .bl-front :focus-visible { outline: 3px solid var(--rn-mint-text); outline-offset: 3px; }

/* ---------- 題字 ---------- */
.bl-head .pg-crumbs ol { row-gap: 4px; }
.bl-head .pg-crumbs li { min-width: 0; overflow-wrap: anywhere; }
.bl-head--single .pg-head__inner { max-width: 920px; margin: 0 auto; }
.bl-h1 { font-weight: 800; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
.bl-h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.5; letter-spacing: 0; margin-bottom: clamp(24px, 3vw, 40px) !important; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--rn-sub); }
.bl-meta__label { font-weight: 700; color: var(--rn-ink); }
.bl-date { font-family: var(--bl-en); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--rn-sub); font-variant-numeric: tabular-nums; }
.bl-date--mod { font-family: var(--bl-ja); }
.bl-date--mod time { font-family: var(--bl-en); }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 4px 12px; border-radius: 99px; background: var(--rn-mint-soft); color: var(--rn-mint-text); text-decoration: none; }
a.bl-tag:hover { background: var(--rn-mint-light); color: var(--rn-ink); }

/* ---------- 一覧 ---------- */
.bl-sec { padding-top: clamp(40px, 5vw, 72px); }
.bl-cats { margin-bottom: clamp(28px, 4vw, 48px); }
.bl-cats ul { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 99px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--rn-ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--rn-line); transition: background-color .2s, box-shadow .2s; }
.bl-cats a:hover { box-shadow: inset 0 0 0 1.5px var(--rn-ink); }
.bl-cats a[aria-current="page"] { background: var(--rn-ink); color: #ffffff; box-shadow: none; }

.bl-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.bl-card { min-width: 0; }
.bl-card__link { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 22px 22px 24px; border-radius: var(--rn-r); background: #ffffff; box-shadow: inset 0 0 0 1px var(--rn-line); color: var(--rn-ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.bl-card__link:hover { box-shadow: inset 0 0 0 1.5px var(--rn-ink); transform: translateY(-2px); }
.bl-card__img { display: block; margin: -22px -22px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rn-r) var(--rn-r) 0 0; background: var(--rn-gray2); }
.bl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bl-card__title { font-size: 17px; font-weight: 800; line-height: 1.6; letter-spacing: 0; overflow-wrap: anywhere; }
.bl-card__text { font-size: 14px; line-height: 1.8; color: var(--rn-sub); overflow-wrap: anywhere; }
.bl-card__more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--rn-mint-text); }
.bl-card__more::after { content: " →"; }

.bl-empty { max-width: 640px; padding: clamp(28px, 4vw, 48px); border-radius: var(--rn-r); background: var(--rn-gray); font-size: 15px; line-height: 1.9; color: var(--rn-sub); }
.bl-empty__h { font-size: 20px; font-weight: 800; color: var(--rn-ink); margin-bottom: 10px !important; }
.bl-empty__btns { margin-top: 22px !important; }

.bl-pager { margin-top: clamp(36px, 5vw, 64px); }
.bl-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--rn-ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--rn-line); font-variant-numeric: tabular-nums; }
.bl-pager a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--rn-ink); }
.bl-pager .page-numbers.current { background: var(--rn-ink); color: #ffffff; box-shadow: none; }
.bl-pager .page-numbers.dots { box-shadow: none; min-width: 24px; padding: 0; }

/* ---------- 個別記事 ---------- */
.bl-main { max-width: 800px; margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--rn-gutter) clamp(56px, 7vw, 104px); }
.bl-eyecatch { margin: 0 0 clamp(28px, 4vw, 48px); border-radius: var(--rn-r); overflow: hidden; background: var(--rn-gray2); }
.bl-eyecatch img { display: block; width: 100%; height: auto; }
.bl-body { font-size: 16px; line-height: 2; color: var(--rn-ink); overflow-wrap: anywhere; }
.bl-body > * + * { margin-top: 1.5em; }
.bl-body h2 { margin-top: 2.6em; padding-top: 18px; border-top: 2px solid var(--rn-ink); font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; line-height: 1.55; letter-spacing: 0; }
.bl-body h3 { margin-top: 2.2em; padding-left: 14px; border-left: 4px solid var(--rn-mint); font-size: clamp(18px, 2vw, 21px); font-weight: 800; line-height: 1.6; }
.bl-body h4 { margin-top: 2em; font-size: 16px; font-weight: 800; line-height: 1.7; }
.bl-body h2 + *, .bl-body h3 + *, .bl-body h4 + * { margin-top: 1em; }
.bl-body a { color: var(--rn-mint-text); text-decoration: underline; text-underline-offset: 4px; }
.bl-body a:hover { color: var(--rn-ink); }
.bl-body strong, .bl-body b { font-weight: 800; }
.bl-body ul, .bl-body ol { padding-left: 1.5em; }
.bl-body ul { list-style: disc; }
.bl-body ol { list-style: decimal; }
.bl-body li + li { margin-top: .5em; }
.bl-body li > ul, .bl-body li > ol { margin-top: .5em; }
.bl-body img, .bl-body video, .bl-body iframe { max-width: 100%; }
.bl-body img { height: auto; border-radius: 12px; }
.bl-body figure { margin-left: 0; margin-right: 0; }
.bl-body figcaption, .bl-body .wp-caption-text { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--rn-sub); }
.bl-body .wp-caption { max-width: 100%; }
.bl-body blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-radius: 12px; background: var(--rn-gray); color: var(--rn-sub); }
.bl-body blockquote > * + * { margin-top: 1em; }
.bl-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.bl-body th, .bl-body td { padding: 12px 14px; border: 1px solid var(--rn-line); text-align: left; vertical-align: top; }
.bl-body th { background: var(--rn-gray); font-weight: 800; }
.bl-body .wp-block-table, .bl-body .bl-scroll { overflow-x: auto; }
.bl-body pre { padding: 16px 18px; border-radius: 12px; background: var(--rn-ink); color: #ffffff; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.bl-body code { font-size: .92em; }
.bl-body hr { border: 0; border-top: 1px solid var(--rn-line); margin: 2.4em 0; }
.bl-body .alignleft, .bl-body .alignright, .bl-body .aligncenter { display: block; margin-left: auto; margin-right: auto; float: none; }
.bl-pages { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 700; }
.bl-back { margin-top: clamp(40px, 5vw, 64px) !important; }

.bl-related { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }

/* ---------- 相談の導線 ---------- */
.bl-cta { padding: clamp(8px, 1.4vw, 20px); }
.bl-cta__inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 72px) max(22px, calc(var(--rn-gutter) - clamp(8px, 1.4vw, 20px))); border-radius: 28px; background: var(--rn-mint-soft); }
.bl-cta__h { font-weight: 800; font-size: clamp(22px, 2.8vw, 36px); line-height: 1.5; letter-spacing: 0; }
.bl-cta__h .cx-nw { display: inline-block; }
.bl-cta__text { margin-top: 12px !important; max-width: 620px; font-size: 15px; line-height: 1.9; color: var(--rn-sub); }
.bl-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bl .rn-btn, .bl .rn-link { text-decoration: none; }

/* ---------- トップの新着記事 ---------- */
.bl-front__more { margin-top: clamp(28px, 4vw, 48px) !important; }

@media (max-width: 1000px) {
  .bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-cta__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bl-list { grid-template-columns: minmax(0, 1fr); }
  .bl-card__link { padding: 20px 20px 22px; }
  .bl-card__img { margin: -20px -20px 6px; }
  .bl-cta__inner { border-radius: 22px; }
  .bl-cta__btns .rn-btn { flex: 1 1 100%; justify-content: center; }
  .bl-body { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-card__link, .bl-cats a { transition: none; }
  .bl-card__link:hover { transform: none; }
}
