/* ============================================================
   実家相続コンパス ハブページ warm スタイル
   対象: /haka/ /jikka/ /shukatsu/ /shindan/ 4ページ
   配置: cocoon-child-master/assets/css/hub-warm.css
   enqueue: functions.php (is_page(['haka','jikka','shukatsu','shindan']))
   依存: chrome-warm.css の --jsg-* トークン
   ============================================================ */

/* ハブページの本体は .entry-content > .hkn-hub に格納される */
body.page .entry-content .hkn-hub {
  font-family: var(--jsg-sans);
  color: var(--jsg-ink);
  line-height: 1.85;
  margin: -20px -20px 0;
}

/* TOC を非表示（ハブページではセクション構造で見出しを兼ねる） */
body.page-id-699 .entry-content > #toc,
body.page-id-700 .entry-content > #toc,
body.page-id-701 .entry-content > #toc,
body.page-id-703 .entry-content > #toc { display: none !important; }

/* Cocoon 標準の h2 横帯デザインをハブ内で抑制 */
.hkn-hub h2 {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--jsg-ink) !important;
}
.hkn-hub h3 {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--jsg-ink) !important;
}

/* ============================ HERO ============================ */
.hkn-hub-hero {
  background: linear-gradient(180deg, var(--jsg-forest) 0%, var(--jsg-forest-deep) 100%);
  color: #fff;
  padding: 64px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hkn-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(197,97,58,.12) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(143,168,148,.10) 0, transparent 40%);
  pointer-events: none;
}
.hkn-hub-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hkn-hub-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  color: #BFCBC1;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
}
.hkn-hub-hero h1 {
  font-family: var(--jsg-serif) !important;
  font-weight: 600 !important;
  font-size: 34px !important;
  line-height: 1.45 !important;
  letter-spacing: .05em;
  color: #fff !important;
  margin: 0 0 18px !important;
}
.hkn-hub-hero-lead {
  font-size: 16px;
  line-height: 1.95;
  color: #E7EDE7;
  margin: 0 0 32px;
}
.hkn-hub-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hkn-hub-hero-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: .25s;
  letter-spacing: .04em;
}
.hkn-hub-hero-cta .cta-primary {
  background: var(--jsg-clay);
  color: #fff !important;
  box-shadow: 0 14px 28px -14px rgba(172,82,48,.9);
}
.hkn-hub-hero-cta .cta-primary:hover {
  background: var(--jsg-clay-deep);
  transform: translateY(-2px);
}
.hkn-hub-hero-cta .cta-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.6);
}
.hkn-hub-hero-cta .cta-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ============================ SECTION ============================ */
.hkn-hub-section { padding: 56px 24px; background: var(--jsg-cream-2); }
.hkn-hub-section + .hkn-hub-section { background: var(--jsg-cream); }
.hkn-hub-section-inner { max-width: 880px; margin: 0 auto; }
.hkn-hub-section-eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--jsg-clay);
  margin: 0 0 10px;
  font-weight: 600;
}
.hkn-hub-section h2 {
  font-family: var(--jsg-serif) !important;
  font-size: 24px !important;
  line-height: 1.5 !important;
  letter-spacing: .04em;
  margin: 0 0 12px !important;
}
.hkn-hub-section-desc {
  font-size: 15px;
  line-height: 1.95;
  color: var(--jsg-mute);
  margin: 0 0 36px;
}

/* ============================ 症状カードグリッド ============================ */
.hkn-hub-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.hkn-hub-card {
  background: #fff;
  border: 1px solid var(--jsg-line);
  border-radius: 10px;
  padding: 22px 22px 20px;
  text-decoration: none !important;
  color: var(--jsg-ink) !important;
  transition: .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.hkn-hub-card:hover {
  border-color: var(--jsg-clay);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(43,42,38,.3);
}
.hkn-hub-card-num {
  font-family: var(--jsg-serif);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--jsg-clay);
  font-weight: 600;
}
.hkn-hub-card-title {
  font-family: var(--jsg-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--jsg-ink);
  margin: 4px 0 0;
}
.hkn-hub-card-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--jsg-mute);
  margin: 0;
  flex: 1;
}
.hkn-hub-card-link {
  font-size: 12.5px;
  color: var(--jsg-clay);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: .04em;
}
.hkn-hub-card-link::after { content: " →"; }

/* ルーター大型カード（/shindan/ 用） */
.hkn-hub-cards--router { grid-template-columns: 1fr; gap: 14px; }
.hkn-hub-cards--router .hkn-hub-card { padding: 26px 28px; flex-direction: row; align-items: center; gap: 24px; }
.hkn-hub-cards--router .hkn-hub-card-icon {
  width: 54px; height: 54px; flex: none;
  background: var(--jsg-forest-soft); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--jsg-serif); font-size: 22px; color: var(--jsg-forest); font-weight: 600;
}
.hkn-hub-cards--router .hkn-hub-card-body { flex: 1; }
.hkn-hub-cards--router .hkn-hub-card-title { font-size: 18px; }

/* ============================ ジャーニー ============================ */
.hkn-hub-journey {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
}
.hkn-hub-journey-step {
  background: #fff;
  border: 1px solid var(--jsg-line);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
}
.hkn-hub-journey-step-num {
  font-family: var(--jsg-serif);
  font-size: 13px;
  color: var(--jsg-clay);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .06em;
}
.hkn-hub-journey-step-title {
  font-family: var(--jsg-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--jsg-ink);
  line-height: 1.5;
}
.hkn-hub-journey-step-desc {
  font-size: 11.5px;
  color: var(--jsg-mute);
  line-height: 1.6;
  margin-top: 6px;
}

/* ============================ 主要記事リスト ============================ */
.hkn-hub-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hkn-hub-articles li {
  background: #fff;
  border: 1px solid var(--jsg-line);
  border-radius: 8px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.hkn-hub-articles li::before { display: none !important; }
.hkn-hub-articles a {
  display: block;
  padding: 14px 18px;
  text-decoration: none !important;
  color: var(--jsg-ink) !important;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 500;
  transition: .2s;
  border-radius: 8px;
}
.hkn-hub-articles a:hover {
  background: var(--jsg-cream);
  color: var(--jsg-clay) !important;
}

/* ============================ FAQ ============================ */
.hkn-hub-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hkn-hub-faq-item {
  background: #fff;
  border: 1px solid var(--jsg-line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.hkn-hub-faq-item summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--jsg-serif);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--jsg-ink);
  position: relative;
  padding-right: 50px;
  line-height: 1.55;
}
.hkn-hub-faq-item summary::-webkit-details-marker { display: none; }
.hkn-hub-faq-item summary::before {
  content: "Q.";
  color: var(--jsg-clay);
  font-weight: 700;
  margin-right: 8px;
}
.hkn-hub-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--jsg-mute);
  transition: .2s;
  line-height: 1;
}
.hkn-hub-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hkn-hub-faq-answer {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--jsg-mute);
}
.hkn-hub-faq-answer p { margin: 0 0 10px; }
.hkn-hub-faq-answer p:last-child { margin: 0; }

/* ============================ ボトムCTA ============================ */
.hkn-hub-bottom-cta {
  background: linear-gradient(180deg, var(--jsg-beige) 0%, var(--jsg-cream) 100%);
  padding: 56px 24px;
  text-align: center;
}
.hkn-hub-bottom-cta-inner { max-width: 720px; margin: 0 auto; }
.hkn-hub-bottom-cta h2 {
  font-family: var(--jsg-serif) !important;
  font-size: 22px !important;
  letter-spacing: .04em;
  color: var(--jsg-ink) !important;
  margin: 0 0 14px !important;
}
.hkn-hub-bottom-cta-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--jsg-mute);
  margin: 0 0 28px;
}
.hkn-hub-bottom-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hkn-hub-bottom-cta-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: .25s;
  letter-spacing: .04em;
}
.hkn-hub-bottom-cta-row .cta-primary {
  background: var(--jsg-clay); color: #fff !important;
  box-shadow: 0 14px 28px -14px rgba(172,82,48,.9);
}
.hkn-hub-bottom-cta-row .cta-primary:hover { background: var(--jsg-clay-deep); transform: translateY(-2px); }
.hkn-hub-bottom-cta-row .cta-line {
  background: #06C755; color: #fff !important;
}
.hkn-hub-bottom-cta-row .cta-line:hover { background: #05A546; transform: translateY(-2px); }
.hkn-hub-bottom-cta-row .cta-ghost {
  background: #fff; color: var(--jsg-ink) !important;
  border: 1px solid var(--jsg-line);
}
.hkn-hub-bottom-cta-row .cta-ghost:hover { border-color: var(--jsg-clay); color: var(--jsg-clay) !important; }

/* ============================ クロスリンク（他ハブへ） ============================ */
.hkn-hub-cross {
  background: #fff;
  padding: 48px 24px;
  border-top: 1px solid var(--jsg-line);
}
.hkn-hub-cross-inner { max-width: 880px; margin: 0 auto; }
.hkn-hub-cross h2 {
  font-family: var(--jsg-serif) !important;
  font-size: 18px !important;
  color: var(--jsg-mute) !important;
  margin: 0 0 18px !important;
  letter-spacing: .04em;
}
.hkn-hub-cross-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hkn-hub-cross-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--jsg-cream-2);
  border: 1px solid var(--jsg-line);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--jsg-ink) !important;
  transition: .2s;
}
.hkn-hub-cross-card:hover {
  border-color: var(--jsg-clay);
  background: #fff;
}
.hkn-hub-cross-card-icon {
  width: 36px; height: 36px; flex: none;
  background: var(--jsg-forest-soft);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--jsg-serif);
  font-size: 15px;
  color: var(--jsg-forest);
  font-weight: 600;
}
.hkn-hub-cross-card-title {
  font-family: var(--jsg-serif);
  font-size: 14px;
  font-weight: 600;
}
.hkn-hub-cross-card-sub {
  font-size: 11.5px;
  color: var(--jsg-mute);
  margin-top: 2px;
  letter-spacing: .02em;
}

/* ============================ AI診断バナー（/jikka/, /shindan/ 用） ============================ */
.hkn-hub-ai-banner {
  background: var(--jsg-forest);
  color: #fff;
  border-radius: 14px;
  padding: 32px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.hkn-hub-ai-banner::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(197,97,58,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hkn-hub-ai-banner-body { flex: 1; position: relative; }
.hkn-hub-ai-banner-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: #BFCBC1;
  margin: 0 0 8px;
}
.hkn-hub-ai-banner h3 {
  font-family: var(--jsg-serif) !important;
  font-size: 19px !important;
  color: #fff !important;
  margin: 0 0 8px !important;
  line-height: 1.5 !important;
}
.hkn-hub-ai-banner-desc {
  font-size: 13.5px;
  color: #E7EDE7;
  line-height: 1.8;
  margin: 0 0 16px;
}
.hkn-hub-ai-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--jsg-clay);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: .25s;
  letter-spacing: .04em;
}
.hkn-hub-ai-banner-cta:hover { background: var(--jsg-clay-deep); transform: translateY(-2px); }

/* ============================ レスポンシブ ============================ */
@media (max-width: 768px) {
  body.page .entry-content .hkn-hub { margin: -16px -16px 0; }
  .hkn-hub-hero { padding: 48px 22px 44px; }
  .hkn-hub-hero h1 { font-size: 26px !important; }
  .hkn-hub-hero-lead { font-size: 14.5px; }
  .hkn-hub-section { padding: 44px 18px; }
  .hkn-hub-section h2 { font-size: 21px !important; }
  .hkn-hub-cards { grid-template-columns: 1fr; gap: 12px; }
  .hkn-hub-cards--router .hkn-hub-card { flex-direction: row; padding: 18px 20px; gap: 16px; }
  .hkn-hub-cards--router .hkn-hub-card-icon { width: 44px; height: 44px; font-size: 18px; }
  .hkn-hub-journey { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hkn-hub-articles { grid-template-columns: 1fr; }
  .hkn-hub-bottom-cta { padding: 44px 18px; }
  .hkn-hub-cross-grid { grid-template-columns: 1fr; }
  .hkn-hub-ai-banner { flex-direction: column; align-items: stretch; padding: 26px 22px; gap: 18px; }
}
