/*
Theme Name: GENSEN Child (Knowhow Bank)
Template: gensen_tcd050
Description: TCD GENSENの子テーマ。knowhow-bank用のカスタマイズを格納。
Version: 1.0.0
Author: knowhow-bank
*/

/* ============================================================
   TOPページのコンテンツビルダー内 wysiwyg ブロック装飾
   ============================================================ */

/* --- 実績バッジ (4カラム) --- */
.cb_content-wysiwyg .khb-stats{
  display:flex !important;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:20px 30px;margin:20px auto 50px;padding:28px 24px;
  background:linear-gradient(135deg,#faf7f2 0%,#f3ede2 100%);
  border-top:1px solid #ece4d6;border-bottom:1px solid #ece4d6;
  max-width:1100px;
}
.cb_content-wysiwyg .khb-stat-item{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:130px;}
.cb_content-wysiwyg .khb-stat-num{font-family:'Playfair Display',serif;font-size:42px;font-weight:700;color:#92785f;line-height:1;letter-spacing:.02em;}
.cb_content-wysiwyg .khb-stat-num small{font-size:16px;font-weight:400;margin-left:4px;color:#b69e84;}
.cb_content-wysiwyg .khb-stat-label{font-size:12px;color:#555;margin-top:8px;letter-spacing:.1em;}
.cb_content-wysiwyg .khb-stat-divider{width:1px;height:40px;background:#d6c9b3;}
@media(max-width:767px){
  .cb_content-wysiwyg .khb-stats{gap:14px 18px;padding:20px 14px;margin:10px auto 32px;}
  .cb_content-wysiwyg .khb-stat-item{min-width:44%;}
  .cb_content-wysiwyg .khb-stat-num{font-size:30px;}
  .cb_content-wysiwyg .khb-stat-num small{font-size:13px;}
  .cb_content-wysiwyg .khb-stat-label{font-size:11px;margin-top:4px;}
  .cb_content-wysiwyg .khb-stat-divider{display:none;}
}

/* --- 事業3カラム (CSS Grid) --- */
.cb_content-wysiwyg .khb-services{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:24px;
  margin:0 auto 10px;
  max-width:1100px;
  padding:0 10px;
  box-sizing:border-box;
}
.cb_content-wysiwyg .khb-service-card{
  background:#fff;border:1px solid #e8e1d7;border-top:4px solid #b69e84;
  padding:32px 26px;box-sizing:border-box;position:relative;
  transition:transform .25s ease,box-shadow .25s ease;
}
.cb_content-wysiwyg .khb-service-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.08);}
.cb_content-wysiwyg .khb-service-num{font-family:'Playfair Display',serif;font-size:38px;color:#b69e84;letter-spacing:.05em;line-height:1;margin-bottom:10px;}
.cb_content-wysiwyg .khb-service-lead{font-size:15px;font-weight:700;color:#92785f;margin:0 0 12px;padding-bottom:12px;border-bottom:2px solid #f3ede2;letter-spacing:.03em;line-height:1.5;}
.cb_content-wysiwyg .khb-service-title{font-size:19px;color:#333;margin:0 0 14px;font-weight:700;line-height:1.5;}
.cb_content-wysiwyg .khb-service-desc{font-size:14px;color:#555;line-height:1.85;margin:0;}
@media(max-width:767px){
  .cb_content-wysiwyg .khb-services{grid-template-columns:1fr !important;gap:16px;}
  .cb_content-wysiwyg .khb-service-card{padding:24px 20px;}
  .cb_content-wysiwyg .khb-service-num{font-size:32px;}
  .cb_content-wysiwyg .khb-service-lead{font-size:14px;}
  .cb_content-wysiwyg .khb-service-title{font-size:17px;}
  .cb_content-wysiwyg .khb-service-desc{font-size:13px;}
}

/* --- 選ばれる理由 --- */
.cb_content-wysiwyg .khb-reasons{margin:30px auto 10px;max-width:1000px;}
.cb_content-wysiwyg .khb-reason-item{background:#fff;border-left:4px solid #b69e84;padding:26px 30px;margin-bottom:18px;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.cb_content-wysiwyg .khb-reason-no{font-family:'Playfair Display',serif;font-size:13px;letter-spacing:.2em;color:#b69e84;margin-bottom:8px;font-weight:600;}
.cb_content-wysiwyg .khb-reason-title{font-size:20px;color:#333;margin:0 0 12px;font-weight:700;line-height:1.5;}
.cb_content-wysiwyg .khb-reason-body{font-size:14px;color:#555;line-height:1.9;margin:0;}
@media(max-width:767px){
  .cb_content-wysiwyg .khb-reason-item{padding:20px 18px;}
  .cb_content-wysiwyg .khb-reason-title{font-size:16px;}
  .cb_content-wysiwyg .khb-reason-body{font-size:13px;line-height:1.8;}
}

/* --- 代表挨拶 --- */
.cb_content-wysiwyg .khb-message{background:#faf7f2;padding:40px 36px;margin:30px auto 10px;border:1px solid #ece4d6;max-width:900px;}
.cb_content-wysiwyg .khb-message-text{font-size:15px;color:#444;line-height:2.0;margin:0 0 16px;}
.cb_content-wysiwyg .khb-message-lead{font-size:22px;color:#b69e84;font-weight:700;line-height:1.7;margin:0 0 22px;letter-spacing:.02em;}
.cb_content-wysiwyg .khb-message-signature{text-align:right;font-size:15px;color:#333;margin-top:28px;line-height:1.8;}
.cb_content-wysiwyg .khb-message-cta{text-align:center;margin-top:30px;}
.cb_content-wysiwyg .khb-message .khb-btn{display:inline-block;padding:14px 40px;background:#b69e84;color:#fff;text-decoration:none;font-size:14px;letter-spacing:.1em;transition:background .25s ease;}
.cb_content-wysiwyg .khb-message .khb-btn:hover{background:#92785f;color:#fff;}
@media(max-width:767px){
  .cb_content-wysiwyg .khb-message{padding:28px 20px;}
  .cb_content-wysiwyg .khb-message-text{font-size:14px;line-height:1.9;}
  .cb_content-wysiwyg .khb-message-lead{font-size:17px;}
  .cb_content-wysiwyg .khb-message-signature{font-size:14px;}
}

/* --- お問い合わせCTA --- */
.cb_content-wysiwyg .khb-cta{background:linear-gradient(135deg,#b69e84 0%,#92785f 100%);padding:50px 30px;margin:30px auto 10px;text-align:center;max-width:1100px;}
.cb_content-wysiwyg .khb-cta-inner{max-width:800px;margin:0 auto;}
.cb_content-wysiwyg .khb-cta-sub{color:#fff;font-size:15px;line-height:1.9;margin:0 0 30px;opacity:.95;}
.cb_content-wysiwyg .khb-cta-buttons{margin:0;}
.cb_content-wysiwyg .khb-cta-btn{display:inline-block;padding:18px 48px;font-size:16px;text-decoration:none;letter-spacing:.1em;transition:all .25s ease;border:2px solid #fff;}
.cb_content-wysiwyg .khb-cta-btn-primary{background:#fff;color:#92785f;}
.cb_content-wysiwyg .khb-cta-btn-primary:hover{background:transparent;color:#fff;}
@media(max-width:767px){
  .cb_content-wysiwyg .khb-cta{padding:36px 18px;}
  .cb_content-wysiwyg .khb-cta-sub{font-size:13px;}
  .cb_content-wysiwyg .khb-cta-btn{padding:14px 30px;font-size:14px;display:block;max-width:280px;margin:0 auto;}
}

/* ============================================================
   固定ページ（コンサル/セミナー等）の dl.contents_list 装飾
   洗練されたカードスタイル
   ============================================================ */
#left_col .post_content #contents > #description,
body.page .post_content #contents > #description{
  max-width:900px;margin:0 auto 40px;padding:24px 28px;
  background:linear-gradient(135deg,#faf7f2 0%,#f3ede2 100%);
  border-left:4px solid #b69e84;
  font-size:15px;line-height:2.0;color:#444;
}

/* <dl> 全体を縦に積む"カード"に */
body.page .post_content #contents > #contents_list,
body.page .post_content #contents dl#contents_list{
  display:block !important;
  max-width:1000px;margin:0 auto 24px;
  background:#fff;
  border:1px solid #ece4d6;
  border-radius:2px;
  box-shadow:0 4px 16px rgba(100,80,60,.06);
  overflow:hidden;
  transition:box-shadow .3s ease, transform .3s ease;
}
body.page .post_content #contents > #contents_list:hover,
body.page .post_content #contents dl#contents_list:hover{
  box-shadow:0 10px 28px rgba(100,80,60,.12);
  transform:translateY(-2px);
}

/* <dt> をカードのヘッダー部に */
body.page .post_content #contents dl#contents_list > dt{
  margin:0 !important;
  padding:18px 28px !important;
  background:linear-gradient(135deg,#b69e84 0%,#92785f 100%);
  color:#fff !important;
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:.05em;
  line-height:1.5 !important;
  position:relative;
  padding-left:56px !important;
}
body.page .post_content #contents dl#contents_list > dt::before{
  content:'';
  position:absolute;
  left:22px;top:50%;transform:translateY(-50%);
  width:22px;height:22px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
  background-size:contain;background-repeat:no-repeat;
  opacity:.85;
}

/* <dt> が連続する場合 (東北地区など) の装飾を変える */
body.page .post_content #contents dl#contents_list > dt + dt{
  background:#faf7f2;
  color:#92785f !important;
  font-size:15px !important;
  border-top:1px solid #ece4d6;
  padding-left:28px !important;
}
body.page .post_content #contents dl#contents_list > dt + dt::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392785f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
  left:10px;
}

/* <dd> をカードの本体に */
body.page .post_content #contents dl#contents_list > dd{
  margin:0 !important;
  padding:22px 28px !important;
  background:#fff;
  font-size:14px !important;
  line-height:2.0 !important;
  color:#444;
}
body.page .post_content #contents dl#contents_list > dd div{line-height:2.0;margin-bottom:6px;}
body.page .post_content #contents dl#contents_list > dd a{
  color:#92785f;text-decoration:underline;word-break:break-all;
}

/* 画像が入るケース */
body.page .post_content #contents dl#contents_list #contents_list_img{
  display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;padding-top:16px;
  border-top:1px dashed #ece4d6;
}
body.page .post_content #contents dl#contents_list #contents_list_img img{
  max-width:300px;height:auto;float:none !important;margin:0 !important;
  border-radius:2px;box-shadow:0 2px 6px rgba(0,0,0,.08);
}

/* モバイル対応 */
@media (max-width:767px){
  body.page .post_content #contents dl#contents_list > dt{
    font-size:15px !important;padding:14px 20px 14px 46px !important;
  }
  body.page .post_content #contents dl#contents_list > dt::before{
    left:16px;width:18px;height:18px;
  }
  body.page .post_content #contents dl#contents_list > dd{
    padding:18px 20px !important;font-size:13px !important;
  }
  body.page .post_content #contents > #description{
    padding:18px 18px;font-size:13.5px;margin-bottom:28px;
  }
}

/* ============================================================
   ヘッダー — TOPページでも背景を不透明の黒に統一する
   （親テーマでは rgba(0,0,0,0) で完全透過になっているため上書き）
   ============================================================ */
#header_top{background-color:rgba(0,0,0,0.92) !important;}
#header_top.header_fix,
#header_fix,
.fix_top.header_fix #header_top{background-color:rgba(0,0,0,0.92) !important;}

/* --- ロゴ + サブタイトル を左寄せ、ロゴブロックをヘッダーの上下中央に配置 --- */
/* ヘッダーロゴのラッパーをflexで縦中央に */
#header_logo,
#header_logo_fix{
  height:68px !important;
  max-height:68px !important;
  display:flex !important;
  align-items:center !important;   /* 縦中央 */
  justify-content:flex-start !important;
}
.fix_top.header_fix #header_logo_fix{
  height:70px !important;
  max-height:70px !important;
}

/* .logo は高さを内容に合わせ、line-height を 1系に */
#header_logo .logo,
#header_logo_fix .logo,
#footer_logo .logo{
  line-height:1.15 !important;
  text-align:left !important;
  display:inline-block !important;
  margin:0 !important;
}
#header_logo .logo a,
#header_logo_fix .logo a,
#footer_logo .logo a{
  display:inline-block !important;
  text-align:left !important;
  line-height:1.15 !important;
}

/* ロゴテキストのサイズを抑える（親テーマ36px → 26px） */
#header_logo .logo .rich_font,
#header_logo_fix .logo .rich_font,
#footer_logo .logo .rich_font{
  font-size:26px !important;
  line-height:1.2 !important;
  display:block !important;
}

/* サブタイトル（desc）をロゴの直下に左寄せで配置（ロゴ左端と揃える） */
#header_logo .desc,
#header_logo_fix .desc,
#footer_logo .desc,
.logo .desc{
  display:block !important;
  padding:0 !important;
  font-size:11px !important;
  font-weight:400 !important;
  letter-spacing:.18em;
  margin:4px 0 0 !important;
  opacity:.8;
  line-height:1.3 !important;
  text-align:left !important;
  vertical-align:baseline !important;
}

/* モバイル時はさらに小さく */
@media(max-width:767px){
  #header_logo .logo .rich_font,
  #header_logo_fix .logo .rich_font{font-size:20px !important;}
  #header_logo .desc,
  #header_logo_fix .desc{font-size:10px !important;letter-spacing:.1em;}
}

/* --- メニューが折り返さないようpaddingを詰め、1行維持 --- */
@media only screen and (min-width:1025px){
  #global_menu > ul{white-space:nowrap;}
  #global_menu > ul > li > a{padding:0 18px !important;}

  /* ドロップダウン(サブメニュー)の幅を広げ、長いタイトルを折り返して表示 */
  #global_menu ul ul{
    width:260px !important;
  }
  #global_menu ul ul a{
    white-space:normal !important;
    word-break:keep-all !important;  /* 単語区切りで折り返し */
    line-height:1.5 !important;
    padding:12px 20px !important;
  }
  /* サブメニューの孫メニュー位置を親幅に合わせて調整 */
  #global_menu ul ul ul{left:260px !important;}
}
/* 画面が広いときはさらにゆったり */
@media only screen and (min-width:1400px){
  #global_menu > ul > li > a{padding:0 24px !important;}
}

/* ============================================================
   フッター（3カラム） — 親テーマのフッター全体を非表示にする
   ============================================================ */
#footer_nav,
#footer_contents,
#footer_bottom_menu,
#footer > *:not(.khb-footer){display:none !important;}

.khb-footer{background:#222;padding:64px 24px 36px;color:#ddd;}
.khb-footer-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:60px;}
.khb-footer-col{font-size:14px;}
.khb-footer-brand{font-size:18px;font-weight:700;color:#fff;margin:0 0 20px;letter-spacing:.04em;}
.khb-footer-address{font-size:13px;line-height:2.0;color:#ccc;margin:0;}
.khb-footer-heading{font-size:15px;font-weight:700;color:#fff;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid #555;letter-spacing:.04em;}
.khb-footer-list{list-style:none;margin:0;padding:0;}
.khb-footer-list li{margin:0 0 14px;}
.khb-footer-list li a{
  display:inline-flex;align-items:center;gap:10px;
  color:#ddd;text-decoration:none;font-size:14px;line-height:1.5;
  transition:opacity .2s, color .2s;
}
.khb-footer-list li a::before{
  content:'';
  flex-shrink:0;
  width:18px;height:18px;border-radius:50%;
  background:#b69e84;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 5l5 5-5 5'/></svg>");
  background-size:12px 12px;background-repeat:no-repeat;background-position:center;
}
.khb-footer-list li a:hover{color:#b69e84;opacity:1;}

.khb-footer-sub{max-width:1200px;margin:48px auto 0;padding-top:24px;text-align:center;border-top:1px solid #3a3a3a;}
.khb-footer-sub-links{margin:0 0 18px;font-size:13px;}
.khb-footer-sub-links a{
  display:inline-block;padding:0 18px;color:#ddd;text-decoration:none;
  border-left:1px solid #666;border-right:1px solid #666;
}
.khb-footer-sub-links a:hover{color:#b69e84;}
.khb-footer-copy{margin:0;font-size:12px;color:#888;letter-spacing:.05em;}

@media (max-width:900px){
  .khb-footer-inner{grid-template-columns:1fr;gap:40px;}
  .khb-footer{padding:48px 20px 28px;}
}
@media (max-width:480px){
  .khb-footer-brand{font-size:16px;}
  .khb-footer-heading{font-size:14px;}
  .khb-footer-list li a{font-size:13px;}
}


/* ============================================================
   記事詳細ページ カスタマイズ
   ============================================================ */

/* ── サイドバーのスタイル ───────────────── */
#side_col .sidebar_widget{
  margin-bottom: 36px;
  background: #fff;
  border: 1px solid #eae3d6;
  padding: 22px 20px;
  box-sizing: border-box;
}
#side_col .sidebar_widget h3.widget_headline{
  font-size: 16px;
  color: #333;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #b69e84;
  letter-spacing: .03em;
}
#side_col .sidebar_widget ul{list-style:none;margin:0;padding:0;}
#side_col .sidebar_widget ul li{
  border-bottom: 1px dotted #e0d8c8;
  padding: 10px 0;
  line-height: 1.6;
  font-size: 13px;
}
#side_col .sidebar_widget ul li:last-child{border-bottom:none;}
#side_col .sidebar_widget ul li a{color:#555;text-decoration:none;transition:color .2s;}
#side_col .sidebar_widget ul li a:hover{color:#b69e84;}

/* サイドバー: 代表プロフィール */
#side_col .sb_profile{text-align:center;}
#side_col .sb_profile .sb_profile_img{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid #faf7f2;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
#side_col .sb_profile .sb_profile_name{
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}
#side_col .sb_profile .sb_profile_title{
  font-size: 12px;
  color: #92785f;
  margin: 0 0 12px;
  letter-spacing: .05em;
}
#side_col .sb_profile .sb_profile_desc{
  font-size: 12.5px;
  line-height: 1.8;
  color: #555;
  text-align: left;
  margin: 0 0 14px;
}
#side_col .sb_profile .sb_profile_link{
  display: inline-block;
  padding: 10px 22px;
  background: #b69e84;
  color: #fff !important;
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .25s;
}
#side_col .sb_profile .sb_profile_link:hover{background:#92785f;}

/* サイドバー: 最新記事（サムネイル付き） */
#side_col .sb_recent_posts ul li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#side_col .sb_recent_posts .sb_thumb{
  width: 70px;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f0e8;
}
#side_col .sb_recent_posts .sb_thumb img{
  width: 100%; height: 100%; object-fit: cover;
}
#side_col .sb_recent_posts .sb_meta{
  flex: 1;
  font-size: 12.5px;
  line-height: 1.55;
}
#side_col .sb_recent_posts .sb_date{
  display: block;
  color: #999;
  font-size: 11px;
  margin-bottom: 3px;
  font-family: 'Playfair Display',serif;
  letter-spacing: .05em;
}

/* サイドバー: CTAバナー */
#side_col .sb_cta{
  background: linear-gradient(135deg,#b69e84 0%,#92785f 100%);
  padding: 24px 18px;
  text-align: center;
  border: none !important;
}
#side_col .sb_cta .sb_cta_title{
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
}
#side_col .sb_cta .sb_cta_desc{
  color: #fff;
  opacity: .95;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 14px;
}
#side_col .sb_cta .sb_cta_btn{
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: #92785f !important;
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: opacity .25s;
}
#side_col .sb_cta .sb_cta_btn:hover{opacity:.85;}

/* ── 2カラム時のメインカラム幅調整（記事・固定ページ共通） ───────────────── */
body.single #main_col,
body.page #main_col{position:relative;}
body.single #left_col,
body.page #left_col{
  width: calc(100% - 300px - 40px);
  float: left;
}
body.single #side_col,
body.page #side_col{
  width: 300px;
  float: right;
}
@media only screen and (max-width:1024px){
  body.single #left_col,
  body.single #side_col,
  body.page #left_col,
  body.page #side_col{width:100%;float:none;}
  body.single #side_col,
  body.page #side_col{margin-top:40px;}
}

/* ── 記事内の本文の読みやすさ向上（記事詳細ページのみに限定） ───────────────── */
#left_col #article .post_content{
  font-size: 16px;
  line-height: 2.0;
  color: #333;
}
#left_col #article .post_content p{margin: 0 0 1.5em;}
#left_col #article .post_content h2{
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 2.5em 0 1em;
  padding: 16px 20px;
  background: #faf7f2;
  border-left: 5px solid #b69e84;
  line-height: 1.5;
}
#left_col #article .post_content h3{
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 2em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid #ece4d6;
  line-height: 1.5;
}
#left_col #article .post_content h4{
  font-size: 17px;
  font-weight: 700;
  color: #92785f;
  margin: 1.8em 0 0.6em;
  padding-left: 14px;
  border-left: 3px solid #b69e84;
  line-height: 1.5;
}
#left_col #article .post_content img{max-width:100%;height:auto;}
#left_col #article .post_content blockquote{
  background: #faf7f2;
  border-left: 4px solid #b69e84;
  margin: 1.8em 0;
  padding: 20px 24px;
  color: #555;
  font-style: normal;
}
#left_col #article .post_content strong{color:#92785f;font-weight:700;}
@media only screen and (max-width:767px){
  #left_col #article .post_content{font-size:15px;line-height:1.9;}
  #left_col #article .post_content h2{font-size:19px;padding:12px 14px;}
  #left_col #article .post_content h3{font-size:17px;}
  #left_col #article .post_content h4{font-size:15px;}
}

/* ── TOPページのwysiwygブロック見出しは blog_list と同じシンプルなセンタリング見出しに統一 ───────────────── */
/*  front-page.php の blog_list ブロックは以下のマークアップで出力される：
 *    <h2 class="cb_headline rich_font">...</h2>
 *    <p class="cb_desc">...</p>
 *
 *  既存のコンサルティング情報/伝統工芸ブログはこの形式で表示されている（添付画像参照）。
 *  wysiwygブロック内で自前出力したh2.cb_headline.rich_fontも同じ見た目にする。
 *  親テーマ側に基本スタイルはあるが、一部のwysiwygブロック内でリセットが必要。
 */
.cb_content-wysiwyg .post_content > h2.cb_headline.rich_font{
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: -3.8px 0 10px !important;
  text-align: center;
  color: #b69e84 !important;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.4;
}
.cb_content-wysiwyg .post_content > p.cb_desc{
  text-align: center;
  color: #555;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 40px;
}
@media only screen and (max-width:767px){
  .cb_content-wysiwyg .post_content > h2.cb_headline.rich_font{font-size:20px;}
  .cb_content-wysiwyg .post_content > p.cb_desc{font-size:12px;margin-bottom:24px;}
}

/* ── 目次 ───────────────── */
.khb-toc{
  background: #faf7f2;
  border: 1px solid #ece4d6;
  padding: 22px 28px;
  margin: 0 0 40px;
  border-radius: 2px;
}
.khb-toc .khb-toc-title{
  font-size: 15px;
  font-weight: 700;
  color: #92785f;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d6c9b3;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.khb-toc .khb-toc-title::before{
  content:'';
  display:inline-block;
  width:0;height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:7px solid #b69e84;
  transition:transform .2s ease;
}
.khb-toc.is-closed .khb-toc-title::before{transform:rotate(-90deg);}
.khb-toc .khb-toc-list{
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: khb-toc-h2;
}
.khb-toc.is-closed .khb-toc-list{display:none;}
.khb-toc .khb-toc-list > li{
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
}
.khb-toc .khb-toc-list > li::before{
  counter-increment: khb-toc-h2;
  content: counter(khb-toc-h2,decimal-leading-zero) ".  ";
  color: #b69e84;
  font-family: 'Playfair Display',serif;
  font-weight: 600;
  margin-right: 4px;
}
.khb-toc .khb-toc-list ul{
  list-style: none;
  padding: 6px 0 0 20px;
  margin: 0;
}
.khb-toc .khb-toc-list ul li{
  font-size: 13px;
  padding: 4px 0;
  color: #666;
}
.khb-toc .khb-toc-list ul li::before{
  content:'– ';
  color:#b69e84;
  margin-right:4px;
}
.khb-toc a{color:#444;text-decoration:none;transition:color .2s;}
.khb-toc a:hover{color:#b69e84;}

/* ── 著者プロフィールボックス（記事末尾） ───────────────── */
.khb-author-box{
  background: #faf7f2;
  border: 1px solid #ece4d6;
  padding: 30px;
  margin: 50px 0 30px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
}
.khb-author-box .khb-author-img{
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.khb-author-box .khb-author-body{flex:1;}
.khb-author-box .khb-author-label{
  font-family: 'Playfair Display',serif;
  font-size: 11px;
  color: #b69e84;
  letter-spacing: .25em;
  margin: 0 0 6px;
  font-weight: 600;
}
.khb-author-box .khb-author-name{
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.3;
}
.khb-author-box .khb-author-name small{
  display: inline-block;
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin-left: 8px;
}
.khb-author-box .khb-author-title{
  font-size: 12px;
  color: #92785f;
  margin: 0 0 12px;
  letter-spacing: .03em;
}
.khb-author-box .khb-author-desc{
  font-size: 13.5px;
  line-height: 1.9;
  color: #555;
  margin: 0 0 14px;
}
.khb-author-box .khb-author-link{
  display: inline-block;
  padding: 8px 22px;
  background: #b69e84;
  color: #fff !important;
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .25s;
}
.khb-author-box .khb-author-link:hover{background:#92785f;}
@media only screen and (max-width:767px){
  .khb-author-box{flex-direction:column;text-align:center;padding:22px 18px;gap:16px;}
  .khb-author-box .khb-author-img{width:90px;height:90px;margin:0 auto;}
  .khb-author-box .khb-author-desc{text-align:left;font-size:13px;}
}
