/*
 * FHC Visual CSS — Claude Design (Fable) v1.0 / 2026-07-11
 * 依存: tokens.css（先に読み込むこと）。base.css の構造は変更しない。
 *
 * フォント: Noto Sans JP / Shippori Mincho（いずれも SIL OFL 1.1）。
 * functions.php から preconnect + preload 付きで非同期配信する。
 * CSSからの外部スタイル読み込みは描画を直列にブロックするため使用しない。
 */

/* ==========================================================================
   1. ベース
   ========================================================================== */
body {
  font-family: var(--fhc-font-body);
  font-size: var(--fhc-text-base);
  line-height: var(--fhc-leading-normal);
  letter-spacing: var(--fhc-tracking-normal);
  color: var(--fhc-color-text);
  background: var(--fhc-color-background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--fhc-font-heading);
  font-weight: var(--fhc-weight-semibold);
  line-height: var(--fhc-leading-tight);
  color: var(--fhc-color-text);
  margin: 0 0 var(--fhc-space-4);
  text-wrap: pretty;
}
h1 { font-size: var(--fhc-text-3xl); }
h2 { font-size: var(--fhc-text-2xl); }
h3 { font-size: var(--fhc-text-xl); font-family: var(--fhc-font-body); font-weight: var(--fhc-weight-bold); }
h4 { font-size: var(--fhc-text-lg); font-family: var(--fhc-font-body); font-weight: var(--fhc-weight-bold); }

p { margin: 0 0 var(--fhc-space-4); }

a {
  color: var(--fhc-color-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--fhc-duration-fast) var(--fhc-ease);
}
a:hover { color: var(--fhc-color-link-hover); }

::selection { background: var(--fhc-color-brand-soft); color: var(--fhc-color-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 全幅背景ユーティリティ（.site-main 等の幅制約内から画面全幅に敷く） */
.fhc-bleed {
  position: relative;
}
.fhc-bleed::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--fhc-bleed-bg, var(--fhc-color-surface));
  z-index: -1;
}

/* ==========================================================================
   2. ヘッダー / ナビゲーション
   ========================================================================== */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--fhc-space-3) var(--fhc-space-6);
  padding-block: var(--fhc-space-4);
  position: relative;
  z-index: var(--fhc-z-header);
}
.site-header::after { /* 下罫線を全幅に */
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--fhc-color-border);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--fhc-space-3);
}
.site-branding img, .site-branding .custom-logo { /* シンボルSVG */
  width: 48px;
  height: 48px;
  display: block;
}
.site-branding a {
  font-family: var(--fhc-font-heading);
  font-weight: var(--fhc-weight-semibold);
  font-size: var(--fhc-text-2xl);
  letter-spacing: 0.08em;
  color: var(--fhc-color-brand-primary);
  text-decoration: none;
  line-height: 1.3;
}
.site-branding a:hover { color: var(--fhc-color-accent); }
.site-branding__name > span { white-space: nowrap; }
.site-branding__name wbr { display: none; }

.site-header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fhc-space-1) var(--fhc-space-2);
  margin: 0;
  padding: 0;
}
.site-header nav a {
  display: inline-block;
  padding: var(--fhc-space-2) var(--fhc-space-3);
  font-size: var(--fhc-text-sm);
  font-weight: var(--fhc-weight-medium);
  color: var(--fhc-color-text);
  text-decoration: none;
  border-radius: var(--fhc-radius-sm);
  transition: background var(--fhc-duration-fast) var(--fhc-ease), color var(--fhc-duration-fast) var(--fhc-ease);
}
.site-header nav a:hover { background: var(--fhc-color-surface); color: var(--fhc-color-brand-primary); }
.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a {
  color: var(--fhc-color-brand-primary);
  box-shadow: inset 0 -2px 0 var(--fhc-color-brand-primary);
  border-radius: var(--fhc-radius-sm) var(--fhc-radius-sm) 0 0;
}
/* ナビ末尾の問い合わせ導線: メニュー項目に .fhc-nav-cta を付与 */
.site-header nav .fhc-nav-cta > a {
  background: var(--fhc-color-brand-primary);
  color: #fff;
  border-radius: var(--fhc-radius-sm);
  padding-inline: var(--fhc-space-4);
}
.site-header nav .fhc-nav-cta > a:hover { background: var(--fhc-color-brand-strong); color: #fff; box-shadow: none; }

/* 将来の言語切替領域（JP MVPでは空のまま非表示で成立） */
.fhc-lang-switch { display: none; }
.fhc-lang-switch:has(a) { display: flex; gap: var(--fhc-space-2); font-size: var(--fhc-text-xs); }

@media (max-width: 767px) {
  .site-header { padding-block: var(--fhc-space-3); }
  .site-branding img, .site-branding .custom-logo { width: 56px; height: 56px; }
  .site-branding a { font-size: var(--fhc-text-2xl); letter-spacing: 0.08em; }
  .site-branding__name wbr { display: inline; }
  .site-header nav { width: 100%; }
  .site-header nav ul { gap: 0; margin-inline: calc(var(--fhc-space-2) * -1); }
  .site-header nav a { padding: var(--fhc-space-2) var(--fhc-space-2); font-size: 0.8125rem; }
}

/* ==========================================================================
   3. フッター
   ========================================================================== */
.site-footer {
  --fhc-bleed-bg: var(--fhc-color-dark);
  position: relative;
  color: var(--fhc-color-text-invert-muted);
  font-size: var(--fhc-text-sm);
  margin-top: var(--fhc-space-24);
  padding-block: var(--fhc-space-12) var(--fhc-space-8);
  display: grid;
  gap: var(--fhc-space-6);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--fhc-color-dark);
  z-index: -1;
}
.site-footer a { color: var(--fhc-color-text-invert); text-decoration: none; }
.site-footer a:hover { color: var(--fhc-color-brand-soft); text-decoration: underline; }
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--fhc-space-2) var(--fhc-space-6);
  margin: 0;
  padding: 0;
}
.site-footer small { font-size: var(--fhc-text-xs); color: var(--fhc-color-text-invert-muted); }

/* フッター上部ブロック（テンプレートに .fhc-footer-brand を追加した場合） */
.fhc-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--fhc-space-8);
  padding-bottom: var(--fhc-space-6);
  border-bottom: 1px solid var(--fhc-color-dark-soft);
}
.fhc-footer-brand__name {
  font-family: var(--fhc-font-heading);
  font-size: var(--fhc-text-lg);
  letter-spacing: 0.14em;
  color: var(--fhc-color-text-invert);
}
.fhc-footer-brand__addr { font-style: normal; line-height: var(--fhc-leading-normal); }

/* ==========================================================================
   4. ボタン
   ========================================================================== */
.fhc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fhc-space-2);
  min-height: 48px;
  padding: var(--fhc-space-3) var(--fhc-space-8);
  border: var(--fhc-border-width-strong) solid transparent;
  border-radius: var(--fhc-radius-md);
  font-family: var(--fhc-font-body);
  font-size: var(--fhc-text-base);
  font-weight: var(--fhc-weight-bold);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fhc-duration-fast) var(--fhc-ease),
              border-color var(--fhc-duration-fast) var(--fhc-ease),
              color var(--fhc-duration-fast) var(--fhc-ease);
}
.fhc-btn--primary { background: var(--fhc-color-brand-primary); color: #fff; }
.fhc-btn--primary:hover { background: var(--fhc-color-brand-strong); color: #fff; }
.fhc-btn--primary:active { background: var(--fhc-color-dark); }
.fhc-btn--secondary {
  background: transparent;
  color: var(--fhc-color-brand-primary);
  border-color: var(--fhc-color-brand-primary);
}
.fhc-btn--secondary:hover { background: var(--fhc-color-surface); color: var(--fhc-color-brand-strong); }
.fhc-btn--secondary:active { background: var(--fhc-color-surface-strong); }
.fhc-btn--text {
  background: none;
  color: var(--fhc-color-brand-primary);
  padding-inline: var(--fhc-space-2);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.fhc-btn--text:hover { color: var(--fhc-color-accent); }
.fhc-btn:disabled, .fhc-btn[aria-disabled="true"] {
  background: var(--fhc-color-surface-strong);
  border-color: var(--fhc-color-surface-strong);
  color: var(--fhc-color-text-muted);
  cursor: not-allowed;
}
/* 暗色地用 */
.fhc-btn--invert { background: #fff; color: var(--fhc-color-brand-primary); }
.fhc-btn--invert:hover { background: var(--fhc-color-brand-soft); color: var(--fhc-color-dark); }
.fhc-btn--ghost-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.fhc-btn--ghost-invert:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

/* ==========================================================================
   5. セクション / 見出し
   ========================================================================== */
.fhc-section { padding-block: var(--fhc-space-16); }
.fhc-section--tight { padding-block: var(--fhc-space-12); }
.fhc-section--surface { --fhc-bleed-bg: var(--fhc-color-surface); }
@media (max-width: 767px) {
  .fhc-section { padding-block: var(--fhc-space-12); }
}

.fhc-kicker {
  display: block;
  font-size: var(--fhc-text-xs);
  font-weight: var(--fhc-weight-bold);
  letter-spacing: var(--fhc-tracking-caps);
  color: var(--fhc-color-accent);
  text-transform: uppercase;
  margin-bottom: var(--fhc-space-3);
}
.fhc-section-title { font-size: var(--fhc-text-2xl); margin-bottom: var(--fhc-space-2); }
.fhc-section-lead { color: var(--fhc-color-text-muted); max-width: 44em; margin-bottom: var(--fhc-space-8); }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.fhc-hero {
  position: relative;
  color: var(--fhc-color-text-invert);
  padding-block: var(--fhc-space-20) var(--fhc-space-24);
  overflow: visible;
}
.fhc-hero::before { /* 全幅の濃紺地 + 地球 */
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    url("../images/fable/earth-3c-desktop.webp") right -6vw bottom -30vw / min(74vw, 1080px) auto no-repeat,
    #0C2033;
  z-index: -1;
}
.fhc-hero__inner { max-width: 52rem; }
.fhc-hero__tagline {
  font-family: var(--fhc-font-heading);
  font-size: var(--fhc-text-lg);
  letter-spacing: 0.06em;
  color: var(--fhc-color-brand-soft);
  margin-bottom: var(--fhc-space-5);
}
.fhc-hero__title {
  font-size: var(--fhc-text-display);
  color: #fff;
  margin-bottom: var(--fhc-space-5);
  white-space: nowrap;
}
.fhc-hero__lead {
  font-size: var(--fhc-text-base);
  line-height: var(--fhc-leading-loose);
  color: var(--fhc-color-text-invert-muted);
  margin-bottom: var(--fhc-space-8);
  max-width: 34em;
}
.fhc-hero__actions { display: flex; flex-wrap: wrap; gap: var(--fhc-space-4); }
@media (max-width: 1023px) { .fhc-hero__title { white-space: normal; } }
@media (max-width: 767px) {
  .fhc-hero { padding-block: var(--fhc-space-10) var(--fhc-space-12); }
  .fhc-hero::before {
    background:
      url("../images/fable/earth-3c-mobile.webp") center bottom -65vw / 110vw auto no-repeat,
      #0C2033;
  }
  .fhc-hero__inner { padding-bottom: 16vw; } /* 地球の表示域を抑えつつ本文との間隔を確保 */
}

/* ==========================================================================
   7. カード / グリッド
   ========================================================================== */
.fhc-grid { display: grid; gap: var(--fhc-space-5); }
.fhc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fhc-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .fhc-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .fhc-grid--2, .fhc-grid--3 { grid-template-columns: 1fr; } }

.fhc-card {
  background: var(--fhc-color-background);
  border: 1px solid var(--fhc-color-border);
  border-radius: var(--fhc-radius-lg);
  padding: var(--fhc-space-8);
  box-shadow: var(--fhc-shadow-card);
}
.fhc-card > :last-child { margin-bottom: 0; }

/* 支援領域カード */
.fhc-svc-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--fhc-space-2);
  background: var(--fhc-color-background);
  border: 1px solid var(--fhc-color-border);
  border-radius: var(--fhc-radius-lg);
  padding: var(--fhc-space-4) var(--fhc-space-6);
  box-shadow: var(--fhc-shadow-card);
}
.fhc-svc-card__num {
  font-family: var(--fhc-font-heading);
  font-size: var(--fhc-text-sm);
  letter-spacing: 0.16em;
  color: var(--fhc-color-accent);
}
.fhc-svc-card__title { font-size: var(--fhc-text-lg); font-weight: var(--fhc-weight-bold); margin: 0; font-family: var(--fhc-font-body); }
.fhc-svc-card__body { font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); margin: 0; }
a.fhc-svc-card { text-decoration: none; color: inherit; transition: border-color var(--fhc-duration-fast) var(--fhc-ease), box-shadow var(--fhc-duration-fast) var(--fhc-ease); }
a.fhc-svc-card:hover { border-color: var(--fhc-color-brand-primary); box-shadow: var(--fhc-shadow-raised); }

/* 損失シナリオカード（恐怖訴求を避け、事実→影響の2行構成） */
.fhc-risk-card {
  background: var(--fhc-color-surface);
  border-left: 3px solid var(--fhc-color-brand-primary);
  border-radius: 0 var(--fhc-radius-md) var(--fhc-radius-md) 0;
  padding: var(--fhc-space-5) var(--fhc-space-6);
}
.fhc-risk-card__event { font-weight: var(--fhc-weight-bold); margin: 0 0 var(--fhc-space-1); }
.fhc-risk-card__impact { font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); margin: 0; }

/* 代表プロフィール */
.fhc-profile {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--fhc-space-6);
  align-items: start;
}
.fhc-profile__emblem { width: 96px; height: auto; }
.fhc-profile__name { font-size: var(--fhc-text-xl); margin-bottom: var(--fhc-space-1); }
.fhc-profile__role { font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); margin-bottom: var(--fhc-space-4); }
.fhc-profile__bio { font-size: var(--fhc-text-sm); line-height: var(--fhc-leading-loose); }
@media (max-width: 767px) {
  .fhc-profile { grid-template-columns: 1fr; }
  .fhc-profile__emblem { width: 72px; }
}

/* ==========================================================================
   8. お知らせ
   ========================================================================== */
.fhc-news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fhc-color-border); }
.fhc-news-item { border-bottom: 1px solid var(--fhc-color-border); }
.fhc-news-item a {
  display: grid;
  grid-template-columns: 7.5em auto 1fr;
  gap: var(--fhc-space-4);
  align-items: baseline;
  padding: var(--fhc-space-5) var(--fhc-space-2);
  text-decoration: none;
  color: inherit;
  transition: background var(--fhc-duration-fast) var(--fhc-ease);
}
.fhc-news-item a:hover { background: var(--fhc-color-surface); }
.fhc-news-item a:hover .fhc-news-item__title { color: var(--fhc-color-brand-primary); text-decoration: underline; text-underline-offset: 0.2em; }
.fhc-news-item__date { font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); font-variant-numeric: tabular-nums; }
.fhc-news-item__cat {
  font-size: var(--fhc-text-xs);
  font-weight: var(--fhc-weight-bold);
  color: var(--fhc-color-brand-primary);
  border: 1px solid var(--fhc-color-border-strong);
  border-radius: var(--fhc-radius-pill);
  padding: 2px 10px;
  justify-self: start;
  white-space: nowrap;
}
.fhc-news-item__title { font-weight: var(--fhc-weight-medium); }
@media (max-width: 767px) {
  .fhc-news-item a { grid-template-columns: auto auto; grid-template-rows: auto auto; }
  .fhc-news-item__title { grid-column: 1 / -1; }
}

/* 0件状態（お知らせ・検索共通） */
.fhc-empty, .no-results {
  text-align: center;
  padding: var(--fhc-space-16) var(--fhc-space-4);
  border: 1px dashed var(--fhc-color-border-strong);
  border-radius: var(--fhc-radius-lg);
  color: var(--fhc-color-text-muted);
}
.fhc-empty h1, .fhc-empty h2, .no-results h1 { font-size: var(--fhc-text-xl); color: var(--fhc-color-text); }

/* ==========================================================================
   9. 長文 / 規程ページ
   ========================================================================== */
.fhc-prose { max-width: var(--fhc-container-content); }
.fhc-prose h2 {
  font-size: var(--fhc-text-xl);
  padding-top: var(--fhc-space-8);
  margin-top: var(--fhc-space-8);
  border-top: 1px solid var(--fhc-color-border);
}
.fhc-prose h3 { font-size: var(--fhc-text-lg); margin-top: var(--fhc-space-6); }
.fhc-prose p, .fhc-prose li { line-height: var(--fhc-leading-loose); }
.fhc-prose ul, .fhc-prose ol { padding-left: 1.4em; margin: 0 0 var(--fhc-space-4); }
.fhc-prose li { margin-bottom: var(--fhc-space-2); }
.fhc-prose blockquote {
  margin: var(--fhc-space-6) 0;
  padding: var(--fhc-space-4) var(--fhc-space-6);
  border-left: 3px solid var(--fhc-color-brand-soft);
  background: var(--fhc-color-surface);
  border-radius: 0 var(--fhc-radius-md) var(--fhc-radius-md) 0;
  color: var(--fhc-color-text);
}
.fhc-prose table { border-collapse: collapse; width: 100%; font-size: var(--fhc-text-sm); margin-bottom: var(--fhc-space-4); }
.fhc-prose th, .fhc-prose td { border: 1px solid var(--fhc-color-border); padding: var(--fhc-space-2) var(--fhc-space-3); text-align: left; vertical-align: top; }
.fhc-prose th { background: var(--fhc-color-surface); font-weight: var(--fhc-weight-bold); }

.fhc-note {
  font-size: var(--fhc-text-sm);
  color: var(--fhc-color-text-muted);
  background: var(--fhc-color-surface);
  border-radius: var(--fhc-radius-md);
  padding: var(--fhc-space-4) var(--fhc-space-5);
  margin: var(--fhc-space-6) 0;
}
.fhc-note--rule { /* 免責など規範的注記 */
  background: var(--fhc-color-background);
  border: 1px solid var(--fhc-color-border-strong);
  color: var(--fhc-color-text);
}
.fhc-source { font-size: var(--fhc-text-xs); color: var(--fhc-color-text-muted); }
.fhc-revision { font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); }

/* 目次 */
.fhc-toc {
  background: var(--fhc-color-surface);
  border-radius: var(--fhc-radius-lg);
  padding: var(--fhc-space-6) var(--fhc-space-8);
  margin-bottom: var(--fhc-space-10);
  max-width: var(--fhc-container-content);
}
.fhc-toc__title {
  font-size: var(--fhc-text-sm);
  font-weight: var(--fhc-weight-bold);
  letter-spacing: var(--fhc-tracking-wide);
  margin: 0 0 var(--fhc-space-3);
  font-family: var(--fhc-font-body);
}
.fhc-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: var(--fhc-space-8); font-size: var(--fhc-text-sm); }
.fhc-toc li { margin-bottom: var(--fhc-space-2); break-inside: avoid; }
.fhc-toc a { text-decoration: none; }
.fhc-toc a:hover { text-decoration: underline; }
@media (max-width: 767px) { .fhc-toc ol { columns: 1; } }

/* ==========================================================================
   10. フォーム
   ========================================================================== */
.fhc-form { max-width: var(--fhc-container-form); display: grid; gap: var(--fhc-space-6); }
.fhc-field { display: grid; gap: var(--fhc-space-2); }
.fhc-field__label { font-weight: var(--fhc-weight-bold); font-size: var(--fhc-text-sm); }
.fhc-field__badge {
  display: inline-block;
  font-size: var(--fhc-text-xs);
  font-weight: var(--fhc-weight-bold);
  border-radius: var(--fhc-radius-sm);
  padding: 1px 8px;
  margin-left: var(--fhc-space-2);
  vertical-align: 1px;
}
.fhc-field__badge--req { background: var(--fhc-color-error); color: #fff; }
.fhc-field__badge--opt { background: var(--fhc-color-surface-strong); color: var(--fhc-color-text-muted); }
.fhc-field__desc { font-size: var(--fhc-text-xs); color: var(--fhc-color-text-muted); margin: 0; }

.fhc-input, .fhc-select, .fhc-textarea,
.fhc-form input[type="text"], .fhc-form input[type="email"], .fhc-form input[type="tel"],
.fhc-form select, .fhc-form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--fhc-space-3) var(--fhc-space-4);
  font: inherit;
  color: var(--fhc-color-text);
  background: var(--fhc-color-background);
  border: 1px solid var(--fhc-color-border-strong);
  border-radius: var(--fhc-radius-md);
  transition: border-color var(--fhc-duration-fast) var(--fhc-ease);
}
.fhc-form textarea { min-height: 10em; resize: vertical; }
.fhc-input:hover, .fhc-form input:hover, .fhc-form select:hover, .fhc-form textarea:hover { border-color: var(--fhc-color-brand-primary); }
.fhc-input::placeholder, .fhc-form input::placeholder, .fhc-form textarea::placeholder { color: #7d8b99; }

.fhc-field--error input, .fhc-field--error select, .fhc-field--error textarea {
  border-color: var(--fhc-color-error);
  border-width: 2px;
  background: var(--fhc-color-error-bg);
}
.fhc-field__error {
  display: flex;
  align-items: baseline;
  gap: var(--fhc-space-1);
  font-size: var(--fhc-text-sm);
  font-weight: var(--fhc-weight-bold);
  color: var(--fhc-color-error);
  margin: 0;
}
.fhc-field__error::before { content: "⚠"; font-size: 0.9em; } /* 色以外の手掛かり */

.fhc-check { display: flex; align-items: flex-start; gap: var(--fhc-space-3); font-size: var(--fhc-text-sm); }
.fhc-check input[type="checkbox"] {
  width: 22px; height: 22px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--fhc-color-brand-primary);
  flex: none;
}

/* 送信結果バナー（色 + アイコン + 見出し語で状態を伝える） */
.fhc-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--fhc-space-3);
  padding: var(--fhc-space-4) var(--fhc-space-5);
  border-radius: var(--fhc-radius-md);
  font-size: var(--fhc-text-sm);
  border: 1px solid;
}
.fhc-alert--error { background: var(--fhc-color-error-bg); border-color: var(--fhc-color-error); color: var(--fhc-color-text); }
.fhc-alert--error::before { content: "⚠"; color: var(--fhc-color-error); font-weight: 700; }
.fhc-alert--success { background: var(--fhc-color-success-bg); border-color: var(--fhc-color-success); color: var(--fhc-color-text); }
.fhc-alert--success::before { content: "✓"; color: var(--fhc-color-success); font-weight: 700; }
.fhc-alert strong { display: block; margin-bottom: 2px; }

/* 送信中 */
.fhc-btn[data-loading="true"] { position: relative; color: transparent; pointer-events: none; }
.fhc-btn[data-loading="true"]::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fhc-spin 0.8s linear infinite;
}
@keyframes fhc-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   11. ページネーション / パンくず
   ========================================================================== */
.fhc-pagination, .pagination { display: flex; flex-wrap: wrap; gap: var(--fhc-space-2); justify-content: center; margin-top: var(--fhc-space-10); }
.fhc-pagination a, .fhc-pagination span,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--fhc-space-3);
  border: 1px solid var(--fhc-color-border);
  border-radius: var(--fhc-radius-md);
  text-decoration: none;
  font-size: var(--fhc-text-sm);
  font-weight: var(--fhc-weight-medium);
  color: var(--fhc-color-text);
}
.fhc-pagination a:hover, .pagination a.page-numbers:hover { border-color: var(--fhc-color-brand-primary); color: var(--fhc-color-brand-primary); background: var(--fhc-color-surface); }
.fhc-pagination [aria-current="page"], .pagination .page-numbers.current { background: var(--fhc-color-brand-primary); border-color: var(--fhc-color-brand-primary); color: #fff; }
.fhc-pagination .is-disabled { color: var(--fhc-color-text-muted); pointer-events: none; border-style: dashed; }

.fhc-breadcrumb { font-size: var(--fhc-text-xs); color: var(--fhc-color-text-muted); margin: var(--fhc-space-4) 0 var(--fhc-space-2); }
.fhc-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--fhc-space-1); margin: 0; padding: 0; }
.fhc-breadcrumb li + li::before { content: "/"; margin-right: var(--fhc-space-1); color: var(--fhc-color-border-strong); }
.fhc-breadcrumb a { color: var(--fhc-color-text-muted); text-decoration: none; }
.fhc-breadcrumb a:hover { color: var(--fhc-color-brand-primary); text-decoration: underline; }

/* ページ見出し帯（下層ページ共通） */
.fhc-page-header {
  --fhc-bleed-bg: var(--fhc-color-surface);
  position: relative;
  padding-block: var(--fhc-space-10);
  margin-bottom: var(--fhc-space-10);
}
.fhc-page-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--fhc-color-surface);
  z-index: -1;
}
.fhc-page-header h1 { margin-bottom: var(--fhc-space-2); }
.fhc-page-header p { color: var(--fhc-color-text-muted); margin: 0; max-width: 44em; }

/* ==========================================================================
   12. CTAブロック / 404
   ========================================================================== */
.fhc-cta {
  position: relative;
  color: var(--fhc-color-text-invert);
  text-align: center;
  padding-block: var(--fhc-space-16);
  margin-top: var(--fhc-space-16);
}
.fhc-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    url("../images/fable/earth-3c-desktop.webp") center bottom -48vw / 92vw auto no-repeat,
    #0C2033;
  z-index: -1;
}
@media (max-width: 767px) {
  .fhc-cta::before {
    background:
      url("../images/fable/earth-3c-mobile.webp") center bottom -65vw / 110vw auto no-repeat,
      #0C2033;
  }
}
.fhc-cta h2 { color: #fff; font-size: var(--fhc-text-2xl); margin-bottom: var(--fhc-space-3); }
.fhc-cta p { color: var(--fhc-color-text-invert-muted); max-width: 36em; margin-inline: auto; margin-bottom: var(--fhc-space-8); }
.fhc-cta__actions { display: flex; flex-wrap: wrap; gap: var(--fhc-space-4); justify-content: center; }
.fhc-cta .fhc-tel { color: var(--fhc-color-text-invert); font-size: var(--fhc-text-sm); margin-top: var(--fhc-space-4); display: block; }

.fhc-404 { text-align: center; padding-block: var(--fhc-space-20); }
.fhc-404__code {
  font-family: var(--fhc-font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.1em;
  color: var(--fhc-color-brand-primary);
  margin-bottom: var(--fhc-space-2);
}
.fhc-404 p { color: var(--fhc-color-text-muted); max-width: 32em; margin-inline: auto; }
.fhc-404__actions { display: flex; flex-wrap: wrap; gap: var(--fhc-space-4); justify-content: center; margin-top: var(--fhc-space-8); }

/* ==========================================================================
   13. ユーティリティ
   ========================================================================== */
.fhc-container-content { max-width: var(--fhc-container-content); }
.fhc-container-form { max-width: var(--fhc-container-form); }
.fhc-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.fhc-tel { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   14. 実装追補 — Fable v1.1 / 2026-07-13
   テンプレート実装・固定ページ本文（HTMLブロック）用の補完クラス。
   デザイン正本: previews/ページデザイン_主要4ページ.dc.html ①〜④、
   ページデザイン_下層5ページ.dc.html ⑤〜⑨。トークンのみ参照。
   ========================================================================== */

/* --- 帯レイアウト調整: page-header / hero / CTA を header・footer に密着 --- */
/* 全幅帯の ::before(z-index:-1) が body 背景の裏へ回り込むのを防ぐ（重要修正） */
.fhc-bleed, .fhc-hero, .fhc-cta, .fhc-page-header, .site-footer { isolation: isolate; }
html, body { overflow-x: clip; }
body { word-break: normal; overflow-wrap: break-word; line-break: strict; }
@supports (word-break: auto-phrase) { body { word-break: auto-phrase; } }
.site-main { padding-block: 0; }
.site-main:has(.fhc-cta:last-child) + .site-footer { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

/* --- ヘッダー: テーマ同梱シンボルSVG + 社名（カスタムロゴ設定不要） --- */
.site-branding a { display: flex; align-items: center; gap: var(--fhc-space-3); }

/* --- ナビCTA: .fhc-nav-cta 未設定でも /contact/ リンクを強調（保険） --- */
.site-header nav li:last-child > a[href*="/contact"] {
  background: var(--fhc-color-brand-primary);
  color: #fff;
  border-radius: var(--fhc-radius-sm);
  padding-inline: var(--fhc-space-4);
}
.site-header nav li:last-child > a[href*="/contact"]:hover { background: var(--fhc-color-brand-strong); color: #fff; box-shadow: none; }

/* --- フッター: ブランド行・下段（footer.php） --- */
.fhc-footer-brand__id { display: flex; align-items: flex-start; gap: var(--fhc-space-4); }
.fhc-footer-brand__emblem { width: 40px; height: auto; flex: none; }
.fhc-footer-brand__name { margin: 0 0 var(--fhc-space-1); }
.fhc-footer-brand__en { margin: 0; font-size: var(--fhc-text-xs); letter-spacing: 0.06em; color: var(--fhc-color-brand-soft); }
.fhc-footer-brand__addr { text-align: right; }
.fhc-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--fhc-space-3) var(--fhc-space-6); }
@media (max-width: 767px) { .fhc-footer-brand__addr { text-align: left; } }

/* --- ページ見出し帯: パンくず同居時の間隔（デザイン正本準拠） --- */
.fhc-page-header { padding-block: var(--fhc-space-5) var(--fhc-space-10); }
.fhc-page-header .fhc-breadcrumb { margin: 0 0 var(--fhc-space-5); }

/* --- CTA内の電話リンク --- */
.fhc-cta .fhc-tel a { color: var(--fhc-color-text-invert); font-weight: var(--fhc-weight-bold); text-decoration: none; }
.fhc-cta .fhc-tel a:hover { text-decoration: underline; }

/* --- カード内見出し（支援形態・契約形態・対象企業） --- */
.fhc-card__heading { margin: 0 0 var(--fhc-space-2); font-family: var(--fhc-font-heading); font-weight: var(--fhc-weight-semibold); font-size: var(--fhc-text-base); letter-spacing: 0.08em; color: var(--fhc-color-brand-primary); }
.fhc-card__title { margin: 0 0 var(--fhc-space-2); font-weight: var(--fhc-weight-bold); }
.fhc-card__body { margin: 0; font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); }

/* --- トップ: サービス詳細への誘導カード --- */
a.fhc-svc-more { display: flex; flex-direction: column; justify-content: center; gap: var(--fhc-space-2); border: 1px dashed var(--fhc-color-border-strong); border-radius: var(--fhc-radius-lg); padding: var(--fhc-space-4) var(--fhc-space-6); text-decoration: none; transition: border-color var(--fhc-duration-fast) var(--fhc-ease), background var(--fhc-duration-fast) var(--fhc-ease); }
a.fhc-svc-more:hover { border-color: var(--fhc-color-brand-primary); background: var(--fhc-color-surface); }
.fhc-svc-more__title { margin: 0; font-weight: var(--fhc-weight-bold); color: var(--fhc-color-brand-primary); }
.fhc-svc-more__body { margin: 0; font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); }

/* --- 代表プロフィール補助 --- */
.fhc-section-title + .fhc-profile { margin-top: var(--fhc-space-8); }
.fhc-profile__head { display: flex; align-items: center; gap: var(--fhc-space-4); margin-bottom: var(--fhc-space-4); }
.fhc-profile__head .fhc-profile__emblem { width: 64px; }
.fhc-profile__head .fhc-profile__name,
.fhc-profile__head .fhc-profile__role { margin-bottom: 0; }

/* --- サービス: 支援領域 詳細行 --- */
.fhc-svc-detail { display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: var(--fhc-space-5) var(--fhc-space-8); background: var(--fhc-color-background); border: 1px solid var(--fhc-color-border); border-radius: var(--fhc-radius-lg); padding: var(--fhc-space-8); box-shadow: var(--fhc-shadow-card); }
.fhc-svc-detail__num { font-family: var(--fhc-font-heading); font-size: var(--fhc-text-xl); font-weight: var(--fhc-weight-semibold); color: var(--fhc-color-accent); }
.fhc-svc-detail__title { margin: 0 0 var(--fhc-space-2); font-size: var(--fhc-text-lg); font-weight: var(--fhc-weight-bold); font-family: var(--fhc-font-body); }
.fhc-svc-detail__body { margin: 0; font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); }
.fhc-svc-detail ul { margin: 0; padding-left: 1.3em; font-size: var(--fhc-text-sm); line-height: 2; }
.fhc-svc-detail li { margin: 0; }
@media (max-width: 1023px) {
  .fhc-svc-detail { grid-template-columns: 48px 1fr; }
  .fhc-svc-detail ul { grid-column: 2; }
}
@media (max-width: 767px) {
  .fhc-svc-detail { grid-template-columns: 1fr; padding: var(--fhc-space-5); }
  .fhc-svc-detail ul { grid-column: auto; }
}

/* --- サービス: 進め方ステップ --- */
.fhc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .fhc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .fhc-grid--4 { grid-template-columns: 1fr; } }
.fhc-step { background: var(--fhc-color-background); border: 1px solid var(--fhc-color-border); border-radius: var(--fhc-radius-lg); padding: var(--fhc-space-6); }
.fhc-step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--fhc-radius-pill); background: var(--fhc-color-brand-primary); color: #fff; font-weight: var(--fhc-weight-bold); margin-bottom: var(--fhc-space-3); }
.fhc-step__title { margin: 0 0 var(--fhc-space-1); font-weight: var(--fhc-weight-bold); }
.fhc-step__body { margin: 0; font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); }

/* --- 本文 + サイド 2カラム（基本解説・問い合わせ） --- */
.fhc-layout-side { display: grid; grid-template-columns: minmax(0, 44rem) minmax(16rem, 1fr); gap: var(--fhc-space-10) var(--fhc-space-16); align-items: start; padding-block: var(--fhc-space-10) var(--fhc-space-16); }
@media (max-width: 1023px) { .fhc-layout-side { grid-template-columns: 1fr; } }
.fhc-side-card { position: sticky; top: var(--fhc-space-6); background: var(--fhc-color-surface); border-radius: var(--fhc-radius-lg); padding: var(--fhc-space-8); display: flex; flex-direction: column; gap: var(--fhc-space-4); }
@media (max-width: 1023px) { .fhc-side-card { position: static; } }
.fhc-side-card__emblem { width: 44px; height: auto; }
.fhc-side-card__title { margin: 0; font-weight: var(--fhc-weight-bold); }
.fhc-side-card__body { margin: 0; font-size: var(--fhc-text-sm); color: var(--fhc-color-text-muted); }

/* --- 長文内の補助 --- */
.fhc-prose .fhc-grid { margin-bottom: var(--fhc-space-8); }
.fhc-news-list { max-width: 54rem; }

/* --- 会社情報: 概要テーブル --- */
.fhc-dl { background: var(--fhc-color-background); border: 1px solid var(--fhc-color-border); border-radius: var(--fhc-radius-lg); overflow: hidden; max-width: 54rem; margin: var(--fhc-space-6) 0 0; }
.fhc-dl > div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--fhc-color-surface-strong); }
.fhc-dl > div:last-child { border-bottom: 0; }
.fhc-dl dt { background: #f7fafd; padding: var(--fhc-space-4) var(--fhc-space-6); font-weight: var(--fhc-weight-bold); font-size: var(--fhc-text-sm); }
.fhc-dl dd { margin: 0; padding: var(--fhc-space-4) var(--fhc-space-6); font-size: var(--fhc-text-sm); line-height: var(--fhc-leading-normal); }
@media (max-width: 767px) {
  .fhc-dl > div { grid-template-columns: 1fr; }
  .fhc-dl dt { padding-bottom: var(--fhc-space-1); }
  .fhc-dl dd { padding-top: 0; }
}

/* --- 会社情報: MISSION / PRINCIPAL 2カラム --- */
.fhc-about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fhc-space-10) var(--fhc-space-16); }
@media (max-width: 1023px) { .fhc-about-cols { grid-template-columns: 1fr; } }

/* --- 問い合わせ: サイド情報 --- */
.fhc-contact-aside { display: flex; flex-direction: column; gap: var(--fhc-space-6); }
.fhc-contact-tel { background: var(--fhc-color-surface); border-radius: var(--fhc-radius-lg); padding: var(--fhc-space-6); }
.fhc-contact-tel__title { margin: 0 0 var(--fhc-space-2); font-weight: var(--fhc-weight-bold); font-size: var(--fhc-text-sm); }
.fhc-contact-tel__num { margin: 0 0 var(--fhc-space-1); font-size: var(--fhc-text-xl); font-weight: var(--fhc-weight-bold); color: var(--fhc-color-brand-primary); }
.fhc-contact-tel__num a { color: inherit; text-decoration: none; }
.fhc-contact-tel__note { margin: 0; font-size: var(--fhc-text-xs); color: var(--fhc-color-text-muted); line-height: 1.8; }
.fhc-contact-email { margin: 0 0 var(--fhc-space-2); color: var(--fhc-color-brand-primary); font-weight: var(--fhc-weight-bold); }
.fhc-email { display: inline-flex; align-items: baseline; gap: 0.12em; white-space: nowrap; }
.fhc-email img { width: 1em; height: 1em; vertical-align: -0.12em; }
.fhc-contact-flow { border: 1px solid var(--fhc-color-border); border-radius: var(--fhc-radius-lg); padding: var(--fhc-space-6); }
.fhc-contact-flow__title { margin: 0 0 var(--fhc-space-3); font-weight: var(--fhc-weight-bold); font-size: var(--fhc-text-sm); }
.fhc-contact-flow ol { margin: 0; padding-left: 1.3em; font-size: var(--fhc-text-sm); line-height: 2; }

/* --- Contact Form 7 状態スタイル --- */
.fhc-consent { background: var(--fhc-color-surface); border-radius: var(--fhc-radius-md); padding: var(--fhc-space-4) var(--fhc-space-5); font-size: var(--fhc-text-sm); line-height: var(--fhc-leading-normal); }
.fhc-consent input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--fhc-color-brand-primary); margin-right: var(--fhc-space-2); vertical-align: -5px; }
.fhc-form .wpcf7-not-valid { border-color: var(--fhc-color-error); background: var(--fhc-color-error-bg); }
.fhc-form .wpcf7-not-valid-tip { display: flex; gap: 6px; font-weight: var(--fhc-weight-bold); font-size: var(--fhc-text-sm); color: var(--fhc-color-error); margin-top: var(--fhc-space-2); }
.fhc-form .wpcf7-not-valid-tip::before { content: "⚠"; }
.fhc-form .wpcf7-spinner { margin-left: var(--fhc-space-3); }
.wpcf7 form .wpcf7-response-output { margin: var(--fhc-space-6) 0 0; padding: var(--fhc-space-4) var(--fhc-space-5); border: 1px solid var(--fhc-color-border-strong); border-radius: var(--fhc-radius-md); font-size: var(--fhc-text-sm); line-height: var(--fhc-leading-normal); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--fhc-color-success); background: var(--fhc-color-success-bg); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { border-color: var(--fhc-color-error); background: var(--fhc-color-error-bg); }

/* --- 同意管理: Fable意匠受領前の最小限の可読性・操作性 --- */
.fhc-cookie-settings__button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.fhc-cookie-consent { position: fixed; z-index: 1000; inset: auto var(--fhc-space-4) var(--fhc-space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--fhc-space-5); max-width: 72rem; margin-inline: auto; padding: var(--fhc-space-5); background: var(--fhc-color-background); color: var(--fhc-color-text); border: 1px solid var(--fhc-color-border-strong); box-shadow: var(--fhc-shadow-lg); }
.fhc-cookie-consent[hidden] { display: none; }
.fhc-cookie-consent__body h2 { margin: 0 0 var(--fhc-space-2); font-size: var(--fhc-text-lg); }
.fhc-cookie-consent__body p { margin: 0; font-size: var(--fhc-text-sm); }
.fhc-cookie-consent__actions { display: flex; flex: none; gap: var(--fhc-space-3); }
@media (max-width: 767px) {
  .fhc-cookie-consent { align-items: stretch; flex-direction: column; }
  .fhc-cookie-consent__actions { flex-wrap: wrap; }
  .fhc-cookie-consent__actions .fhc-btn { flex: 1; }
}
.fhc-table-scroll { max-width: 100%; overflow-x: auto; }
.fhc-table-scroll table { min-width: 44rem; }
