/* =========================================================
 * blog-single.css : 「06-1 ブログ記事詳細（テンプレート）」ページ固有スタイル
 * デザイン基準: design-reference/06-1-blogsingle-pc.png (1440x4365) / -sp.png
 * 中央コンテンツ幅 1024 / PC左右余白 208px
 * 2カラム: 左=記事本文(703px) / 右=サイドバー(230px)
 * base -> header -> footer -> cta -> blog-single -> spcv の順で読み込む
 * ※ blog/ 配下ページから読み込むが、CSS内の画像パスは
 *   このファイル(assets/css/)基準の相対（../images/...）
 * ========================================================= */

/* ----- ヒーローサブ ----- */
.bs-hero {
  position: relative;
  width: 100%;
  height: 120px; /* Figma SP: par/ヘッダーサブ 375x120 */
  overflow: hidden;
}

@media (min-width: 1025px) {
  .bs-hero { height: 250px; }
}

.bs-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/blog/hero-single.jpg");
  background-size: cover;
  background-position: center;
}

.bs-hero__content {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-sp);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1025px) {
  .bs-hero__content { padding-inline: 0; }
}

.bs-hero__title {
  color: var(--color-bg-white);
}

/* ----- 2カラムレイアウト ----- */
.bs-layout {
  background: var(--color-bg-white);
  padding-block: 48px 40px;
}

@media (min-width: 1025px) {
  .bs-layout { padding-block: 64px 40px; }
}

.bs-layout__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-sp);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 1025px) {
  .bs-layout__inner {
    padding-inline: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }
}

/* ----- 左：記事本文 ----- */
.bs-article {
  width: 100%;
}

@media (min-width: 1025px) {
  .bs-article { width: 703px; flex-shrink: 0; }
}

.bs-article__title {
  color: var(--color-text-black);
}

.bs-article__date {
  display: block;
  margin-top: 16px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 12px;
  line-height: 22px;
  color: var(--color-text-sub); /* #3F3B3A */
}

/* 著者カード */
.bs-author {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding: 24px;
  background: var(--color-bg-beige); /* #F9F7F2 */
  border-radius: 4px;
}

.bs-author__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
}

.bs-author__body {
  min-width: 0;
}

.bs-author__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-author__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy); /* #00103E */
  color: var(--color-bg-white);
  padding: 5px 10px;
  border-radius: 2px;
}

.bs-author__name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text-black);
}

.bs-author__role {
  margin-top: 6px;
  color: var(--color-text-black);
}

.bs-author__bio {
  margin-top: 12px;
  color: var(--color-text-black);
}

.bs-author__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-navy);
  transition: opacity var(--transition-base);
}

.bs-author__link:hover { opacity: 0.7; }

/* 記事ヒーロー画像 */
.bs-article__hero {
  margin-top: 40px;
}

.bs-article__hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 703 / 406;
  object-fit: cover;
  border-radius: 0;
}

/* 本文中画像 */
.bs-article__body-img {
  margin-top: 24px;
  border: 1px solid #a9a9a9; /* 記事内画像の枠 1px #a9a9a9 */
  max-width: 560px;
}

.bs-article__body-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 315;
  object-fit: cover;
  border-radius: 0;
}

/* H3 見出し（濃紺の帯） */
.bs-h3 {
  margin-top: 48px;
  padding: 12px 24px;
  background: var(--color-navy); /* #00103E */
  color: var(--color-bg-white);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

@media (min-width: 1025px) {
  .bs-h3 { font-size: 30px; }
}

/* H4 見出し（金の縦バー） */
.bs-h4 {
  position: relative;
  margin-top: 40px;
  padding-left: 20px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--color-text-black);
}

@media (min-width: 1025px) {
  .bs-h4 { font-size: 28px; }
}

.bs-h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;             /* 見出しフレームの左ボーダー */
  height: 1.2em;           /* フレーム全高を占める */
  background: var(--color-bg-deep-beige); /* #d3bf7c */
  border-radius: 0;        /* 角丸なし */
}

/* 本文段落 */
.bs-p {
  margin-top: 20px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text-black);
}

/* 目次ボックス */
.bs-toc {
  margin-top: 40px;
  padding: 28px 32px 36px;
  border: 1px solid #a9a9a9; /* 目次枠 #a9a9a9 */
  border-radius: 0;
}

.bs-toc__title {
  text-align: center;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text-black);
}

.bs-toc__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bs-toc__list a {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-navy); /* #00103E */
  transition: opacity var(--transition-base);
}

.bs-toc__list a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ----- 右：サイドバー ----- */
.bs-sidebar {
  width: 100%;
}

@media (min-width: 1025px) {
  .bs-sidebar { width: 230px; flex-shrink: 0; }
}

.bs-cta-box {
  max-width: 320px;
  margin-inline: auto;
}

@media (min-width: 1025px) {
  .bs-cta-box { max-width: none; }
}

.bs-cta-box__head {
  background: var(--color-navy); /* #00103E */
  color: var(--color-bg-white);
  text-align: center;
  padding: 14px 12px;
}

.bs-cta-box__body {
  padding: 22px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bs-cta-box__lead {
  text-align: center;
  color: #3c3c3c; /* Figma: まずは気軽に… #3c3c3c */
  padding-bottom: 18px;
  border-bottom: 1px solid #414141; /* 区切り線 */
  width: 100%;
}

.bs-cta-box__img {
  margin-top: 20px;
  width: 230px;
  height: 111px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.bs-cta-box__btn {
  margin-top: 22px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-bg-deep-beige); /* #C0AF72 */
  color: var(--color-bg-white);
  padding: 14px 12px;
  border-radius: 4px;
  transition: opacity var(--transition-base);
}

.bs-cta-box__btn:hover { opacity: 0.85; }

.bs-cta-box__btn-arrow {
  font-size: 13px;
}

.bs-cta-box__foot {
  margin-top: 22px;
  background: var(--color-navy); /* #00103E */
  color: var(--color-bg-white);
  text-align: center;
  padding: 16px 12px;
}

/* ----- おすすめ記事 ----- */
.bs-recommend {
  background: var(--color-bg-white);
  padding-bottom: 80px;
}

@media (min-width: 1025px) {
  .bs-recommend { padding-bottom: 120px; }
}

.bs-recommend__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-sp);
  padding-top: 40px;
  border-top: 1px solid var(--color-text-sub); /* 区切り線 */
}

@media (min-width: 1025px) {
  .bs-recommend__inner {
    padding-inline: 0;
    padding-top: 48px;
  }
}

.bs-recommend__title {
  color: var(--color-text-black);
}

.bs-recommend__list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}

@media (min-width: 600px) {
  .bs-recommend__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .bs-recommend__list {
    grid-template-columns: repeat(4, 230px);
    justify-content: space-between;
    margin-top: 40px;
  }
}

.bs-rec-card {
  display: flex;
  flex-direction: column;
}

.bs-rec-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 230 / 150;
  overflow: hidden;
  border-radius: 0;
}

.bs-rec-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.bs-rec-card__thumb:hover img { transform: scale(1.04); }

.bs-rec-card__date {
  margin-top: 14px;
  color: var(--color-text-black);
}

.bs-rec-card__title {
  margin-top: 10px;
  color: var(--color-text-black);
}

.bs-rec-card__title a {
  color: inherit;
  transition: color var(--transition-base);
}

.bs-rec-card__title a:hover { color: var(--color-accent); }

/* PC値の上書き */
@media (min-width: 1025px) {
  .bs-p { font-size: 16px; }              /* SP14 → PC16 */
  .bs-toc__list a { font-size: 16px; }    /* SP14 → PC16 */
  .bs-author__name { font-size: 18px; font-weight: 600; line-height: 18px; }   /* Figma PC: 外山 紗織 18/600/lh18（SPは700/lh24） */
  .bs-article__date { font-size: 14px; }  /* SP12 → PC14（11/3 さおりさんがFigmaで19→14） */
}

/* PC行間の上書き */
@media (min-width: 1025px) {
  .bs-p { line-height: 28px; }         /* SP14/lh24 → PC16/lh28 */
  .bs-article__date { line-height: 28px; } /* PC14/lh28 */
}

/* サイドバーCTA/目次のlh・日付/著者の色 */
.bs-toc__title { line-height: 28px; }        /* 目次 16/lh28 */
@media (max-width:1024px){ .bs-toc__title { line-height: 24px; } } /* SP 16/lh24 */
.bs-cta-box__head, .bs-cta-box__foot { line-height: 24px; } /* 本文トークンのlh28は不適 */
.bs-cta-box__lead { line-height: 20px; }     /* 14/lh20 */
.bs-article__date { color: #7c7c7c; }
.bs-author__bio { color: var(--color-text-sub); } /* #3f3b3a */
@media (max-width:1024px){ .bs-author__name { line-height: 24px; } }  /* Figma SP: 外山 紗織 16/lh24 */
/* 特異度を上げてトークン@mediaに勝たせる（サイドバーCTAのlh） */
.bs-cta-box .bs-cta-box__head, .bs-cta-box .bs-cta-box__foot { line-height: 24px; }
.bs-cta-box .bs-cta-box__lead { line-height: 20px; }

/* 11/3 更新日（書き直した記事だけ）・目次の番号なし */
.bs-article__updated { margin-left: 1em; font-family: var(--font-jp), var(--font-en); }
.bs-toc__list { list-style: none; padding-left: 0; }
.bs-h3[id], .bs-h4[id] { scroll-margin-top: 120px; }
.bs-toc__sub { list-style: none; margin-top: 14px; padding-left: 16px; display: flex; flex-direction: column; gap: 14px; } /* 見出し4は一段下げる（Figma 16px） */
.bs-author__link { color: var(--color-text-sub); } /* ＞は本文と同じ色 */
.bs-author__link-text { color: var(--color-navy); text-decoration: underline; text-underline-offset: 3px; } /* 下線の部分だけ目次と同じ青 */
/* 目次とリンクの青は Figma の #02418B（--color-navy #00103E は見出し用の紺で、Figmaの目次の色と違う） */
.bs-toc__list a, .bs-author__link-text { color: #02418B; }

/* ===== 本文の表（WordPressの「表」ブロック）Figma 23402:3603「表のデザイン見本」11/3 =====
   1行目（ヘッダー）：紺に白の太字／1列目：薄いベージュに太字／線 #DCD6C8
   SP：3列以上の表は横スクロール（表の幅520px）。上に「← 横にスクロールできます →」 */
.bs-article .wp-block-table { margin: 32px 0 0; }
.bs-article .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-black);
}
.bs-article .wp-block-table th,
.bs-article .wp-block-table td {
  border: 1px solid #DCD6C8;
  padding: 14px;
  vertical-align: middle;
  text-align: left;
  background: var(--color-bg-white);
}
.bs-article .wp-block-table thead th,
.bs-article .wp-block-table thead td {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-bottom-width: 1px;
}
.bs-article .wp-block-table tbody tr > :first-child {
  background: var(--color-bg-beige-mid); /* #F6F3EB */
  font-weight: 700;
}
.bs-article .wp-block-table figcaption,
.bs-article .wp-block-table .wp-element-caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-sub-light); /* #85827D */
  text-align: left;
}
@media (max-width: 1024px) {
  .bs-article .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bs-article .wp-block-table table { font-size: 12px; line-height: 18px; }
  .bs-article .wp-block-table th,
  .bs-article .wp-block-table td { padding: 10px; }
  /* 3列以上の表だけ横スクロール */
  .bs-article .wp-block-table table:has(tr > :nth-child(3)) { min-width: 520px; }
  .bs-article .wp-block-table:has(tr > :nth-child(3))::before {
    content: "← 横にスクロールできます →";
    display: block;
    position: sticky;
    left: 0;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 16px;
    color: var(--color-text-sub-light);
    text-align: right;
  }
}

/* ===== 本文（エディタで入れた記事）の追加分 2026-11-03 ===== */
.bs-article__hero + .bs-p { margin-top: 32px; }
.bs-article .bs-p a,
.bs-article li a { color: #02418B; text-decoration: underline; text-underline-offset: 3px; }
.bs-article .bs-p a:hover,
.bs-article li a:hover { opacity: 0.7; }
.bs-article .bs-p strong { font-weight: 700; }
.bs-article > ul,
.bs-article > ol {
  margin-top: 20px;
  padding-left: 1.5em;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text-black);
}
.bs-article > ul { list-style: disc; }
.bs-article > ol { list-style: decimal; }
.bs-article > ul li + li,
.bs-article > ol li + li { margin-top: 6px; }
.bs-article > .wp-block-table { margin-top: 28px; }
.bs-article > .bs-toc + .bs-h3,
.bs-article > .bs-h3 + .bs-h4 { margin-top: 32px; }
.bs-article > .bs-h3 + .bs-p,
.bs-article > .bs-h4 + .bs-p { margin-top: 24px; }

/* ===== サイドバーのカード（角丸＋影で立体的に）2026-11-03 ===== */
.bs-cta-box {
  background: var(--color-bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 16, 62, 0.12), 0 1px 3px rgba(0, 16, 62, 0.08);
}
.bs-cta-box__body { padding: 22px 16px 4px; }
.bs-cta-box__lead { border-bottom-color: #DCD6C8; }
.bs-cta-box__img {
  width: 100%;
  height: auto;
  aspect-ratio: 230 / 111;
  border-radius: 8px;
}
.bs-cta-box__btn {
  border-radius: 8px;
  box-shadow: 0 3px 0 #9E8E55;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}
.bs-cta-box__btn:hover { opacity: 1; transform: translateY(2px); box-shadow: 0 1px 0 #9E8E55; }
.bs-cta-box__foot { margin-top: 20px; }

/* ===== 目次の新デザイン（見出し帯＋アイコン＋長いときは途中から隠す）2026-11-03 ===== */
.bs-toc {
  margin-top: 40px;
  padding: 0;
  border: 1px solid #E5E0D5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-white);
}
.bs-toc__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  background: #F2EDE2;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-black);
}
/* 箇条書きのアイコン（点3つ＋線3本） */
.bs-toc__icon {
  width: 18px;
  height: 14px;
  background:
    radial-gradient(circle, #383635 1.6px, transparent 1.8px) 0 0 / 4px 4.67px repeat-y,
    linear-gradient(#383635, #383635) 6px 1.2px / 12px 2px no-repeat,
    linear-gradient(#383635, #383635) 6px 6px / 12px 2px no-repeat,
    linear-gradient(#383635, #383635) 6px 10.8px / 12px 2px no-repeat;
}
.bs-toc__body { padding: 24px 28px 28px; }
@media (max-width: 1024px) { .bs-toc__body { padding: 20px 18px 24px; } }
.bs-toc__list { margin-top: 0; gap: 18px; }
.bs-toc__list a,
.bs-toc__sub a {
  color: var(--color-text-black);
  text-decoration: none;
}
.bs-toc__list a:hover { opacity: 1; color: #02418B; text-decoration: underline; }
/* 見出し3：丸の中に＞のアイコン＋太字 */
.bs-toc__list > li > a {
  position: relative;
  display: inline-block;
  padding-left: 28px;
  font-weight: 700;
}
.bs-toc__list > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* 見出し4：金の点＋細字、一段下げる */
.bs-toc__sub { padding-left: 28px; gap: 12px; }
.bs-toc__sub a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  font-weight: 400;
}
.bs-toc__sub a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C0AF72;
}
/* 長い目次：途中から隠して、下をぼかす */
.bs-toc__check { position: absolute; opacity: 0; pointer-events: none; }
.bs-toc--long .bs-toc__body {
  position: relative;
  max-height: 300px;
  overflow: hidden;
}
.bs-toc--long .bs-toc__body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.bs-toc__check:checked ~ .bs-toc__body { max-height: none; }
.bs-toc__check:checked ~ .bs-toc__body::after { display: none; }
.bs-toc__more {
  display: block;
  margin: 0 auto 20px;
  width: fit-content;
  padding: 8px 28px;
  border: 1px solid var(--color-navy);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.bs-toc__more:hover { background: var(--color-navy); color: #fff; }
.bs-toc__more-close { display: none; }
.bs-toc__check:checked ~ .bs-toc__more .bs-toc__more-open { display: none; }
.bs-toc__check:checked ~ .bs-toc__more .bs-toc__more-close { display: inline; }
.bs-toc__check:focus-visible ~ .bs-toc__more { outline: 2px solid #02418B; outline-offset: 2px; }

/* 目次の文字は本文と同じ書体・大きさにそろえる（SP14px／PC16px・行間1.6） */
.bs-toc,
.bs-toc__more { font-family: var(--font-jp); }
.bs-toc__list a,
.bs-toc__sub a { font-family: var(--font-jp); font-size: 14px; line-height: 1.6; letter-spacing: normal; }
@media (min-width: 1025px) {
  .bs-toc__list a,
  .bs-toc__sub a { font-size: 16px; }
}

/* ===== 案A：PCの幅を広げる（全体1100px・本文740px・右280px）2026-11-03 Figma 28508:168 ===== */
@media (min-width: 1025px) {
  .bs-hero__content,
  .bs-layout__inner,
  .bs-recommend__inner { max-width: 1140px; padding-inline: 20px; }
  .bs-layout__inner { gap: 40px; }
  .bs-article { width: auto; flex: 1 1 740px; max-width: 740px; min-width: 0; }
  .bs-sidebar { width: 280px; flex: 0 0 280px; align-self: stretch; }
  .bs-side-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
}
@media (max-width: 1024px) {
  .bs-cta-card { max-width: 340px; margin-inline: auto; }
  .bs-side-toc { display: none; } /* スマホは本文の目次があるので出さない */
}

/* 相談カード：白＋紺の帯＋ベージュの太枠（Figma 28509:258） */
.bs-cta-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 16, 62, 0.18), 0 2px 6px rgba(0, 16, 62, 0.10);
}
.bs-cta-card__band {
  margin: 0;
  padding: 12px;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.bs-cta-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 24px;
  border: 4px solid #E8DFCB;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.bs-cta-card__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-navy);
}
.bs-cta-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 116;
  object-fit: cover;
  border-radius: 8px;
}
.bs-cta-card__sub {
  margin: 0;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 13px;
  line-height: 1.6;
  color: #706F6A;
}
.bs-cta-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 14px 12px;
  border-radius: 8px;
  background: #C0AF72;
  color: #fff;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 0 #9E8E55;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.bs-cta-card__btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 #9E8E55; }

/* 小さな目次（いま読んでいる見出しに印） */
.bs-side-toc {
  padding: 18px 0 12px;
  background: #fff;
  border: 1px solid #E5E0D5;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 16, 62, 0.08);
}
.bs-side-toc__title {
  margin: 0;
  padding: 0 20px 10px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-black);
}
.bs-side-toc__list { list-style: none; margin: 0; padding: 0; }
.bs-side-toc__list a {
  display: block;
  padding: 8px 16px 8px 17px;
  border-left: 3px solid transparent;
  font-family: var(--font-jp);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-black);
  transition: background var(--transition-base), color var(--transition-base);
}
.bs-side-toc__list a:hover { color: #02418B; }
.bs-side-toc__list a.is-current {
  border-left-color: var(--color-navy);
  background: #F3F7FE;
  color: var(--color-navy);
  font-weight: 700;
}

/* ===== 本文の見出しを小さく・箇条書きを本文と同じ大きさに 2026-11-03 ===== */
.bs-h3 { font-size: 19px; padding: 12px 20px; }
.bs-h4 { font-size: 17px; padding-left: 18px; }
.bs-h4::before { width: 8px; height: 1.4em; top: 0; }
@media (min-width: 1025px) {
  .bs-h3 { font-size: 24px; padding: 14px 24px; }
  .bs-h4 { font-size: 20px; }
  .bs-article > ul,
  .bs-article > ol { font-size: 16px; line-height: 28px; }
}

/* ===== 2列の表（項目｜内容）は、左の項目の列を細くする 2026-11-03 ===== */
.bs-article .wp-block-table table:not(:has(tr > :nth-child(3))) tr > :first-child {
  width: 26%;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .bs-article .wp-block-table table:not(:has(tr > :nth-child(3))) tr > :first-child { width: 32%; white-space: normal; }
}

/* ===== 次の見出しの前に、ひと区切りのスペース 2026-11-03 ===== */
.bs-article > .bs-h3 { margin-top: 64px; }
.bs-article > .bs-h4 { margin-top: 44px; }
@media (min-width: 1025px) {
  .bs-article > .bs-h3 { margin-top: 80px; }
  .bs-article > .bs-h4 { margin-top: 52px; }
}
.bs-article > .bs-toc + .bs-h3 { margin-top: 48px; }
.bs-article > .bs-h3 + .bs-h4 { margin-top: 32px; }

/* ===== 記事タイトルを小さく 2026-11-03 ===== */
.bs-article__title.t-h2 { font-size: 23px; line-height: 1.5; letter-spacing: 0.03em; }
@media (min-width: 1025px) {
  .bs-article__title.t-h2 { font-size: 30px; line-height: 1.5; }
}

/* ===== 右の小さな目次の「ページの上に戻る」／本文の下のスペース 2026-11-03 ===== */
.bs-side-toc__top {
  display: block;
  margin: 10px 16px 4px;
  padding-top: 12px;
  border-top: 1px solid #E5E0D5;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  transition: opacity var(--transition-base);
}
.bs-side-toc__top:hover { opacity: 0.7; }
.bs-layout { padding-bottom: 80px; }
@media (min-width: 1025px) {
  .bs-layout { padding-bottom: 120px; }
}
