/* お役立ち情報TOP（/knowledge/ = page-knowledge.php）とブログTOP（/blog/ = home.php）専用。
   .blog-hub の変数（blog-hub.css / theme-vars.css）を使う。構造のみ・色は変数から。接頭辞 kb- */
.blog-hub.kb-hub .bh-inner{ max-width:1160px; }

/* ---------- ヒーロー ---------- */
.kb-hero{ text-align:center; padding:8px 0 40px; }
.kb-hero__eyebrow{ font-family:var(--font-en); font-size:12px; letter-spacing:.22em; font-weight:600; color:var(--accent); margin:0 0 12px; }
.kb-hero__title{ font-size:36px; font-weight:700; line-height:1.3; letter-spacing:.02em; margin:0 0 14px; }
.kb-hero__lead{ max-width:720px; margin:0 auto; font-size:15px; line-height:1.9; color:var(--fg-muted); }
.kb-search{ display:flex; max-width:560px; margin:26px auto 0; border:1.5px solid var(--border-strong); border-radius:var(--radius-pill); background:var(--bg); overflow:hidden; transition:border-color .2s, box-shadow .2s; }
.kb-search:focus-within{ border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-shadow); }
.kb-search input[type=search]{ flex:1; min-width:0; border:0; outline:0; padding:14px 20px; font-size:15px; background:transparent; font-family:var(--font-jp); }
.kb-search button{ flex:none; border:0; cursor:pointer; padding:0 24px; font-size:14px; font-weight:700; color:#fff; background:var(--accent); font-family:var(--font-jp); transition:background .2s; }
.kb-search button:hover{ background:var(--accent-2); }

/* ---------- セクション ---------- */
.kb-sec{ margin:0 0 64px; }
.kb-sec__head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-bottom:14px; margin-bottom:24px; border-bottom:2px solid var(--accent-soft); }
.kb-sec__title{ position:relative; margin:0; padding-left:15px; font-size:22px; font-weight:700; line-height:1.4; }
.kb-sec__title::before{ content:""; position:absolute; left:0; top:.2em; bottom:.2em; width:5px; border-radius:3px; background:var(--accent); }
.kb-sec__sub{ margin:0; font-size:13px; color:var(--fg-muted); }
.kb-more{ font-size:13px; font-weight:600; color:var(--accent); white-space:nowrap; }
.kb-more:hover{ color:var(--cv-orange); }

/* ---------- 3つの入口（ブログ／ウェビナー／お役立ち資料） ---------- */
.kb-gates{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch; }
.kb-gate{ display:flex; flex-direction:column; padding:26px 24px 22px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); transition:border-color .2s, box-shadow .2s; }
.kb-gate:hover{ border-color:var(--accent); box-shadow:0 12px 30px var(--accent-shadow); }
.kb-gate__ico{ width:52px; height:52px; border-radius:14px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); margin-bottom:14px; }
.kb-gate__ico svg{ width:26px; height:26px; }
.kb-gate__en{ font-family:var(--font-en); font-size:11px; letter-spacing:.2em; font-weight:600; color:var(--accent); margin:0 0 4px; }
.kb-gate__name{ margin:0 0 8px; font-size:22px; font-weight:700; }
.kb-gate__desc{ margin:0 0 10px; font-size:13.5px; line-height:1.8; color:var(--fg-muted); }
.kb-gate__for{ margin:0 0 16px; padding:10px 12px; font-size:12.5px; line-height:1.7; background:var(--bg-soft); border-radius:var(--radius-sm); color:var(--fg); }
.kb-gate__for b{ color:var(--accent); font-weight:700; }
.kb-gate__list{ list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:2px; flex:1; }
.kb-gate__list li{ margin:0; }
.kb-gate__list a{ display:block; padding:9px 0; font-size:13.5px; line-height:1.6; border-top:1px solid var(--border); }
.kb-gate__list a:hover{ color:var(--accent); }
.kb-gate__list time{ display:block; font-family:var(--font-en); font-size:11px; color:var(--fg-dim); }
.kb-gate__cta{ display:block; text-align:center; padding:12px 16px; font-size:14px; font-weight:700; color:#fff !important; background:var(--accent); border-radius:var(--radius-pill); transition:background .2s; }
.kb-gate__cta:hover{ background:var(--accent-2); }

/* ---------- 道案内（悩み別の入口） ---------- */
.kb-paths{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.kb-path{ display:flex; gap:16px; padding:20px 22px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); }
.kb-path__no{ flex:none; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); font-weight:700; font-family:var(--font-en); }
.kb-path__body{ min-width:0; flex:1; }
.kb-path__q{ margin:0 0 10px; font-size:15.5px; font-weight:700; line-height:1.5; }
.kb-path__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.kb-path__list a{ display:block; padding:8px 12px; font-size:13px; line-height:1.55; background:var(--bg-soft); border-radius:var(--radius-sm); transition:background .2s, color .2s; }
.kb-path__list a:hover{ background:var(--accent-soft); color:var(--accent); }
.kb-path__more{ display:inline-block; margin-top:10px; font-size:12.5px; font-weight:600; color:var(--accent); }

/* ---------- テーマ別（カテゴリ） ---------- */
.kb-themes{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.kb-theme{ display:flex; flex-direction:column; gap:6px; padding:18px 20px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); transition:border-color .2s, box-shadow .2s, transform .2s; }
.kb-theme:hover{ border-color:var(--accent); box-shadow:0 10px 24px var(--accent-shadow); transform:translateY(-2px); }
.kb-theme__name{ font-size:16px; font-weight:700; line-height:1.4; }
.kb-theme__desc{ font-size:12.5px; line-height:1.7; color:var(--fg-muted); }
.kb-theme__count{ margin-top:auto; padding-top:6px; font-size:12px; font-weight:700; color:var(--accent); }

/* ---------- ブログTOP：入口記事・人気記事・一覧 ---------- */
.kb-picks{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.kb-pick a{ display:flex; flex-direction:column; gap:6px; height:100%; padding:18px 20px; background:var(--bg); border:1px solid var(--accent); border-radius:var(--radius); transition:box-shadow .2s, background .2s; }
.kb-pick a:hover{ background:var(--accent-soft); box-shadow:0 10px 24px var(--accent-shadow); }
.kb-pick__tag{ align-self:flex-start; padding:2px 10px; font-size:11px; font-weight:700; color:#fff; background:var(--accent); border-radius:var(--radius-pill); }
.kb-pick__ttl{ font-size:15px; font-weight:700; line-height:1.55; }
.kb-pick__why{ font-size:12.5px; line-height:1.65; color:var(--fg-muted); }

.kb-rank{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:10px 24px; counter-reset:kb; }
.kb-rank li{ counter-increment:kb; margin:0; }
.kb-rank a{ position:relative; display:block; padding:12px 12px 12px 46px; font-size:14px; line-height:1.6; border-bottom:1px solid var(--border); transition:color .2s, background .2s; }
.kb-rank a::before{ content:counter(kb); position:absolute; left:8px; top:50%; transform:translateY(-50%); width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-family:var(--font-en); font-size:12px; font-weight:700; color:var(--accent); background:var(--accent-soft); }
.kb-rank li:nth-child(-n+3) a::before{ color:#fff; background:var(--accent); }
.kb-rank a:hover{ color:var(--accent); background:var(--bg-soft); }

.kb-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.kb-item a{ display:flex; gap:16px; padding:14px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); transition:border-color .2s, box-shadow .2s; }
.kb-item a:hover{ border-color:var(--accent); box-shadow:0 8px 20px var(--accent-shadow); }
.kb-item__thumb{ flex:none; width:168px; aspect-ratio:16/9; border-radius:var(--radius-sm); overflow:hidden; background:var(--bg-3); }
.kb-item__thumb img{ width:100%; height:100%; object-fit:cover; }
.kb-item__thumb--ph{ display:grid; place-items:center; color:#fff; font-family:var(--font-en); font-size:11px; letter-spacing:.18em; background:linear-gradient(135deg,var(--accent),var(--accent-2)); }
.kb-item__body{ min-width:0; display:flex; flex-direction:column; gap:6px; justify-content:center; }
.kb-item__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:12px; }
.kb-item__meta time{ font-family:var(--font-en); color:var(--fg-dim); }
.kb-item__cat{ padding:2px 10px; font-weight:600; color:var(--accent); background:var(--accent-soft); border-radius:var(--radius-pill); }
.kb-item__ttl{ font-size:15px; font-weight:700; line-height:1.55; }
.kb-item a:hover .kb-item__ttl{ color:var(--accent); }

@media (max-width:1000px){
  .kb-gates, .kb-themes{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px){
  .kb-hero__title{ font-size:28px; }
  .kb-gates, .kb-themes, .kb-paths, .kb-picks, .kb-rank{ grid-template-columns:1fr; }
  .kb-item a{ flex-direction:column; }
  .kb-item__thumb{ width:100%; }
}
