/**
 * AI時代の事業成長 — 完全版読本 — ai-era-growth-factor.css
 *
 * 設計思想:
 *   - #aegf-root 配下のみ完全独立デザイン
 *   - Cocoon / entry-content / article 干渉を完全排除
 *   - CSSカスタムプロパティで全色・全値を管理
 *   - モバイルファースト + clamp() 流体タイポグラフィ
 *   - アニメーションは opacity / transform / filter のみ使用
 *   - カラーパレット: 深緑ダーク（#0a0b09系）× エメラルドアクセント × ゴールド × アイボリー
 *   - フォント: Zen Kaku Gothic New（見出し） / Noto Sans JP（本文） / Shippori Mincho（明朝・装飾）
 *   - 行間設計: デバイス別 line-height 完全最適化（Section 5.10）
 *   - 配色アクセシビリティ: コントラスト比 4.5:1 以上保証（Section 5.8）
 *   - テキスト中央配置: Flexboxラッパー構造（Section 5.9）
 *
 * @package cocoon-child-master
 */

/* ================================================================
   1. COCOON 干渉リセット
   ================================================================ */
.ai-era-growth-factor .article,
.ai-era-growth-factor .entry-content,
.ai-era-growth-factor .main,
.ai-era-growth-factor .content,
.ai-era-growth-factor .wrap,
.ai-era-growth-factor #main,
.ai-era-growth-factor #body-in,
.ai-era-growth-factor #container,
.ai-era-growth-factor #container-in,
.ai-era-growth-factor #contents,
.ai-era-growth-factor #contents-in {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  float: none !important;
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}

.ai-era-growth-factor #sidebar,
.ai-era-growth-factor .sidebar,
.ai-era-growth-factor #sidebar-scroll,
.ai-era-growth-factor .sidebar-top,
.ai-era-growth-factor .sidebar-bottom {
  display: none !important;
}

.ai-era-growth-factor #footer:not(.tp-footer),
.ai-era-growth-factor .site-footer:not(.tp-footer),
.ai-era-growth-factor .footer:not(.tp-footer) {
  display: none !important;
}

/* ================================================================
   2. CSSカスタムプロパティ（全色・全値）
   ================================================================ */
#aegf-root {
  /* ─ カラーパレット ─ */
  --aegf-bg:          #0a0b09;
  --aegf-bg-1:        #0f120f;
  --aegf-bg-2:        #151812;
  --aegf-bg-card:     #131611;
  --aegf-line:        #292e26;
  --aegf-line-soft:   #1c201a;
  --aegf-text:        #f1efe8;
  --aegf-text-2:      #a7a89d;
  --aegf-text-faint:  #8a897c;
  --aegf-accent:      #4fae78;
  --aegf-accent-2:    #8fcaa4;
  --aegf-accent-soft: rgba(79, 174, 120, 0.13);
  --aegf-accent-line: rgba(79, 174, 120, 0.38);
  --aegf-gold:        #c99a5b;
  --aegf-gold-bright: #e2c872;
  --aegf-gold-soft:   rgba(189, 128, 71, 0.14);
  --aegf-border:      rgba(189, 128, 71, 0.2);

  /* ─ タイポグラフィ ─ */
  --aegf-font-sans:    'Noto Sans JP', sans-serif;
  --aegf-font-gothic:  'Zen Kaku Gothic New', sans-serif;
  --aegf-font-serif:   'Shippori Mincho', serif;

  /* ─ 行間設計（モバイル基準値）─ */
  --aegf-lh-body:     1.9;
  --aegf-lh-lead:     2.0;
  --aegf-lh-h1:       1.25;
  --aegf-lh-h2:       1.3;
  --aegf-lh-h3:       1.4;
  --aegf-lh-caption:  1.7;

  /* ─ 文字間隔（モバイル基準値）─ */
  --aegf-ls-body:     0.03em;
  --aegf-ls-heading:  -0.01em;
  --aegf-ls-display:   0.05em;
  --aegf-ls-caption:   0.02em;

  /* ─ スペーシング ─ */
  --aegf-section-py:    clamp(3.5rem, 7vw, 7rem);
  --aegf-container-max: 700px;
  --aegf-container-wide: 1000px;
  --aegf-radius:         12px;
  --aegf-radius-sm:      8px;
  --aegf-radius-lg:      20px;

  /* ─ 段落・見出し余白 ─ */
  --aegf-p-gap:         1.25em;
  --aegf-heading-mb:    0.8em;
  --aegf-list-gap:      0.5em;

  /* ─ トランジション ─ */
  --aegf-transition:      0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --aegf-transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================================
   3. GLOBAL RESET — #aegf-root スコープ
   ================================================================ */
#aegf-root,
#aegf-root *,
#aegf-root *::before,
#aegf-root *::after {
  box-sizing: border-box;
}

#aegf-root h1,
#aegf-root h2,
#aegf-root h3,
#aegf-root h4,
#aegf-root h5,
#aegf-root h6,
#aegf-root p,
#aegf-root ul,
#aegf-root ol,
#aegf-root li,
#aegf-root figure,
#aegf-root blockquote,
#aegf-root dl,
#aegf-root dd {
  margin: 0;
  padding: 0;
}

#aegf-root ul,
#aegf-root ol {
  list-style: none;
}

#aegf-root {
  background-color: var(--aegf-bg);
  color: var(--aegf-text);
  font-family: var(--aegf-font-sans);
  font-weight: 400;
  line-height: var(--aegf-lh-body, 1.9);
  letter-spacing: var(--aegf-ls-body, 0.03em);
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}

#aegf-root ::selection {
  background: var(--aegf-accent);
  color: #0a0a0d;
}

#aegf-root img,
#aegf-root svg {
  display: block;
  max-width: 100%;
}

#aegf-root strong { color: var(--aegf-text); font-weight: 600; }
#aegf-root a { color: var(--aegf-accent-2); }
#aegf-root hr { border: none; border-top: 1px solid var(--aegf-border); }

/* ================================================================
   4. ベースコンポーネント（コンテナ／セクション）
   ================================================================ */
#aegf-root .aegf-container {
  max-width: var(--aegf-container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

#aegf-root .aegf-container--wide {
  max-width: var(--aegf-container-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

#aegf-root .aegf-section {
  padding-block: var(--aegf-section-py);
  position: relative;
}

#aegf-root .aegf-section--sm {
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

#aegf-root .aegf-section--alt {
  background-color: var(--aegf-bg-2);
}

/* ================================================================
   5. タイポグラフィ
   ================================================================ */
#aegf-root h1,
#aegf-root h2,
#aegf-root h3,
#aegf-root h4,
#aegf-root h5 {
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  color: var(--aegf-text);
  letter-spacing: 0.01em;
}

#aegf-root .aegf-section-title {
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  margin-bottom: 20px;
}
#aegf-root .aegf-section-title--left { text-align: left; }

#aegf-root .aegf-sub-title {
  font-size: clamp(1.1875rem, 2.6vw, 1.4375rem);
  margin: 52px 0 16px;
  color: var(--aegf-text);
}

#aegf-root .aegf-lead { color: var(--aegf-text-2); }

#aegf-root .aegf-hl  { color: var(--aegf-accent); }
#aegf-root .aegf-gold { color: var(--aegf-gold); }

/* デバイス別改行制御 */
#aegf-root .aegf-br-pc { display: none; }
#aegf-root .aegf-br-sp { display: inline; }
@media (min-width: 768px) {
  #aegf-root .aegf-br-pc { display: inline; }
  #aegf-root .aegf-br-sp { display: none; }
}

/* eyebrow ラベル */
#aegf-root .aegf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--aegf-font-gothic);
  font-size: 13px;
  font-weight: 500;
  color: var(--aegf-accent-2);
  margin-bottom: 22px;
}
#aegf-root .aegf-eyebrow__num {
  font-family: var(--aegf-font-serif);
  font-size: 13px;
  color: var(--aegf-gold);
  border: 1px solid var(--aegf-gold-soft);
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* pull quote */
#aegf-root .aegf-pull {
  font-family: var(--aegf-font-serif);
  font-weight: 600;
  font-size: clamp(1.3125rem, 3vw, 1.75rem);
  line-height: 1.75;
  color: var(--aegf-text);
  border-left: 2px solid var(--aegf-accent);
  border-right: none;
  border-top: none;
  border-bottom: none;
  background: transparent;
  padding: 0 0 0 26px;
  margin: 44px 0;
  box-shadow: none;
  display: block;
}
#aegf-root .aegf-pull__line { display: block; }
#aegf-root .aegf-pull small {
  display: block;
  font-family: var(--aegf-font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--aegf-text-faint);
  margin-top: 12px;
}
#aegf-root .aegf-pull--sm { font-size: 20px; }
#aegf-root .aegf-pull--center {
  border-left: none;
  padding-left: 0;
  text-align: center;
  margin-inline: auto;
  max-width: var(--aegf-container-max);
}
#aegf-root .aegf-pull--interlude { font-size: clamp(1.375rem, 3.4vw, 2rem); }
#aegf-root .aegf-pull--interlude-sm { font-size: clamp(1.1875rem, 2.8vw, 1.5625rem); }

/* caption / note */
#aegf-root .aegf-caption {
  font-size: 13.5px;
  color: var(--aegf-text-faint);
}

/* kicker-line */
#aegf-root .aegf-kicker-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--aegf-text-faint);
  font-size: 12px;
  margin-bottom: 10px;
  font-family: var(--aegf-font-gothic);
  letter-spacing: 0.08em;
}
#aegf-root .aegf-kicker-line--center { justify-content: center; }
#aegf-root .aegf-kicker-line__dash { width: 20px; height: 1px; background: var(--aegf-accent); }

/* ================================================================
   6. HERO（ファーストビュー）
   ================================================================ */
#aegf-root .aegf-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(7rem, 14vh, 8.75rem) 0 clamp(5rem, 10vh, 6.25rem);
  overflow: hidden;
}
/* ── HERO 背景写真（フルブリード / 16:9） ── */
#aegf-root .aegf-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#aegf-root .aegf-hero__bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.9) brightness(0.55);
}
#aegf-root .aegf-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 9, 0.35) 0%, rgba(10, 11, 9, 0.62) 55%, var(--aegf-bg) 96%),
    linear-gradient(100deg, rgba(10, 11, 9, 0.55) 0%, rgba(10, 11, 9, 0.1) 48%);
}
#aegf-root .aegf-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 18% -5%, rgba(79, 174, 120, 0.16), transparent 60%),
    radial-gradient(ellipse 600px 500px at 85% 10%, rgba(189, 128, 71, 0.10), transparent 60%);
}
#aegf-root .aegf-hero__content {
  position: relative;
  z-index: 2;
}
#aegf-root .aegf-content-block--hero {
  max-width: 920px;
}
#aegf-root .aegf-hero__kicker {
  font-family: var(--aegf-font-gothic);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--aegf-text-faint);
  margin-bottom: 28px;
}
#aegf-root .aegf-hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  max-width: 920px;
  font-weight: 700;
}
#aegf-root .aegf-hero__title-line { display: block; }
#aegf-root .aegf-hero__sub {
  margin-top: 30px;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  color: var(--aegf-text-2);
  max-width: 560px;
  font-weight: 300;
}
#aegf-root .aegf-hero__meta {
  margin-top: 56px;
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--aegf-text-faint);
  font-family: var(--aegf-font-gothic);
  letter-spacing: 0.08em;
}
#aegf-root .aegf-hero__meta-item span {
  display: block;
  color: var(--aegf-text-2);
  font-family: var(--aegf-font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
#aegf-root .aegf-hero__scrolldown {
  position: absolute;
  bottom: 44px;
  left: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--aegf-text-faint);
  letter-spacing: 0.1em;
  font-family: var(--aegf-font-gothic);
}
#aegf-root .aegf-hero__scrolldown-bar {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--aegf-accent), transparent);
  animation: aegf-scrolldown 1.8s ease-in-out infinite;
}
@keyframes aegf-scrolldown {
  0%   { opacity: 0.2; }
  50%  { opacity: 1; }
  100% { opacity: 0.2; }
}
@media (max-width: 767px) {
  #aegf-root .aegf-hero { min-height: auto; }
  #aegf-root .aegf-hero__scrolldown { display: none; }
}

/* ================================================================
   7. スクロールリビールアニメーション
   ================================================================ */
#aegf-root .aegf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#aegf-root .aegf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#aegf-root .aegf-reveal[data-delay="1"] { transition-delay: 0.1s; }
#aegf-root .aegf-reveal[data-delay="2"] { transition-delay: 0.2s; }
#aegf-root .aegf-reveal[data-delay="3"] { transition-delay: 0.3s; }
#aegf-root .aegf-reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  #aegf-root .aegf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #aegf-root .aegf-hero__scrolldown-bar { animation: none; }
}

/* ================================================================
   8. アクセシビリティ配色仕様（Cocoonストライプリセット含む）
      ★省略禁止。全コード必須出力。
   ================================================================ */

/* ──
   【最重要】Cocoonテーブルストライプ背景の強制リセット
   tr:nth-of-type(even/odd) によるグレー・白の自動付与を完全無効化する
   ── */
#aegf-root .entry-content table,
#aegf-root table {
  background-color: transparent !important;
  border-collapse: collapse;
}

#aegf-root .entry-content table tr,
#aegf-root .entry-content table tr:nth-of-type(even),
#aegf-root .entry-content table tr:nth-of-type(odd),
#aegf-root table tr,
#aegf-root table tr:nth-of-type(even),
#aegf-root table tr:nth-of-type(odd) {
  background-color: var(--aegf-bg-card) !important;
  color: var(--aegf-text) !important;
}

#aegf-root .entry-content table th,
#aegf-root .entry-content table td,
#aegf-root table th,
#aegf-root table td {
  color: inherit !important;
  border-color: var(--aegf-border) !important;
}

/* ──
   Cocoonが注入した白背景のblockquoteを安全なグレーに強制置換
   ── */
#aegf-root blockquote:not([class*="aegf"]),
body.ai-era-growth-factor .entry-content blockquote {
  background-color: #F0F0F0 !important; /* Rule 4: #F5F5F5〜#E0E0E0 範囲内 ✓ */
  color:            #1A1A1A !important; /* Rule 2: 対比比 ~14:1 ✓ */
  border-left:  4px solid #555555 !important;
  border-right: none       !important;
  border-top:   none       !important;
  border-bottom:none       !important;
  padding:  1.25rem 1.5rem !important;
  margin:   0              !important;
  box-shadow: none         !important;
}

/* ──
   Cocoonが注入した白背景のtableを安全なグレーに強制置換
   （LPカスタムクラスを持たないテーブル = Cocoonデフォルト適用テーブル対象）
   ── */
#aegf-root table:not([class*="aegf"]) th,
body.ai-era-growth-factor .entry-content table th {
  background-color: #E8E8E8 !important; /* Rule 4 ✓ */
  color:            #111111 !important; /* Rule 2: 対比比 ~16:1 ✓ */
  border-color:     #C0C0C0 !important;
}

#aegf-root table:not([class*="aegf"]) td,
body.ai-era-growth-factor .entry-content table td {
  background-color: #F5F5F5 !important; /* Rule 4 ✓ */
  color:            #222222 !important; /* Rule 2: 対比比 ~15:1 ✓ */
  border-color:     #D0D0D0 !important;
}

/* ──
   code / pre のCocoon白抜き上書き
   ── */
#aegf-root code:not([class]) {
  background-color: #EBEBEB !important; /* Rule 4 ✓ */
  color:            #1E1E1E !important; /* Rule 2: ~15:1 ✓ */
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

#aegf-root pre:not([class]) {
  background-color: #EBEBEB !important; /* Rule 4 ✓ */
  color:            #1E1E1E !important; /* Rule 2 ✓ */
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875em;
}

/* ──
   ダークLP内の専用blockquote（デザイン強調用）
   ── */
#aegf-root .aegf-blockquote {
  background-color: var(--aegf-bg-card) !important;
  color:            var(--aegf-text)    !important;
  border-left: 3px solid var(--aegf-gold) !important;
  padding: 1.5rem 1.75rem !important;
  border-radius: var(--aegf-radius-sm) !important;
}

/* ================================================================
   9. テキストブロック中央配置仕様（Flexboxラッパー構造）
      ★margin:autoではなくFlexboxラッパーを使用すること
   ================================================================ */

/* ── Flexboxラッパー（中央配置の標準パターン）── */
#aegf-root .aegf-align-center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* ブロック要素自体の水平中央配置 */
  justify-content: center;
  width: 100%;
}

#aegf-root .aegf-align-center-wrapper .aegf-content-block {
  max-width: var(--aegf-container-max);
  text-align: center; /* 内部テキストの中央揃え */
  width: 100%;
}

#aegf-root .aegf-align-center-wrapper .aegf-content-block--wide {
  max-width: var(--aegf-container-wide);
  text-align: center;
  width: 100%;
}

/* ── セクションヘッダーの中央配置（Flexboxラッパー構造） ── */
#aegf-root .aegf-section-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#aegf-root .aegf-section-header {
  text-align: center;
  max-width: min(640px, 90%);
  width: 100%;
}

/* セクション eyebrow ラベル */
#aegf-root .aegf-section-eyebrow {
  text-align: center;
  display: block;
  width: fit-content;
}

/* ── CTAボタン wrap の中央配置（Flexboxラッパー構造）── */
#aegf-root .aegf-cta-btn-outer {
  /* Flexboxラッパー: ボタンブロック自体を中央に */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#aegf-root .aegf-cta-btn-wrap {
  text-align: center; /* ボタンテキスト・補足テキスト */
  width: fit-content;
  /* NOTE: align-items:center の親の中で fit-content が中央に収まる */
}

/* ── blockquote の中央配置（Flexboxラッパー構造）── */
#aegf-root .aegf-blockquote-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#aegf-root .aegf-blockquote-center-wrap blockquote,
#aegf-root .aegf-blockquote-center-wrap .aegf-blockquote {
  text-align: center !important;
  max-width: min(680px, 90%) !important;
  width: 100% !important;
}

/* ── テーブルラッパーの中央配置（Flexboxラッパー構造）── */
#aegf-root .aegf-table-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── 補助ユーティリティ（Flexboxラッパーが使えない場面用）── */
/* NOTE: 以下はFlexboxラッパー不使用時のフォールバック。
   Cocoonの干渉が強い箇所では効かない場合がある。
   その場合は必ず上記のFlexboxラッパー構造に切り替えること。 */
#aegf-root .aegf-text-center {
  text-align: center !important;
}

#aegf-root .aegf-block-center {
  margin-left:  auto !important;
  margin-right: auto !important;
  max-width: var(--aegf-container-max);
}

/* ── HTMLでの使用パターン（標準） ── */
/*
  <div class="aegf-align-center-wrapper">
    <div class="aegf-content-block">
      <p>中央配置したいテキスト</p>
    </div>
  </div>
*/

/* ================================================================
   10. 行間設計・デバイス別最適化（★単一値設定禁止）
   ================================================================ */

/* ── 10.1 モバイル基準値（デフォルト: 〜767px）── */

#aegf-root p,
#aegf-root li {
  line-height:    var(--aegf-lh-body, 1.9) !important;
  letter-spacing: var(--aegf-ls-body, 0.03em);
  overflow-wrap:  break-word;
  word-break:     auto-phrase;
}

#aegf-root .aegf-lead,
#aegf-root .aegf-hero__sub,
#aegf-root .aegf-section-desc {
  line-height:    var(--aegf-lh-lead, 2.0) !important;
  letter-spacing: 0.04em;
  overflow-wrap:  break-word;
}

#aegf-root h1,
#aegf-root .aegf-hero__title {
  line-height:    var(--aegf-lh-h1, 1.25);
  letter-spacing: var(--aegf-ls-heading, -0.01em);
  overflow-wrap:  break-word;
  word-break:     auto-phrase;
}

#aegf-root h2,
#aegf-root .aegf-section-title {
  line-height:    var(--aegf-lh-h2, 1.3);
  letter-spacing: var(--aegf-ls-heading, -0.01em);
  overflow-wrap:  break-word;
  word-break:     auto-phrase;
}

#aegf-root h3 {
  line-height:    var(--aegf-lh-h3, 1.4);
  letter-spacing: -0.005em;
  overflow-wrap:  break-word;
}

#aegf-root h4,
#aegf-root h5,
#aegf-root h6 {
  line-height:    1.45;
  letter-spacing: -0.005em;
}

#aegf-root small,
#aegf-root .aegf-caption,
#aegf-root .aegf-note,
#aegf-root .aegf-cta-btn__sub {
  line-height:    var(--aegf-lh-caption, 1.7) !important;
  letter-spacing: var(--aegf-ls-caption, 0.02em);
}

#aegf-root .aegf-section-eyebrow,
#aegf-root .aegf-eyebrow,
#aegf-root .aegf-hero__kicker,
#aegf-root [class*="aegf-en-"] {
  letter-spacing: var(--aegf-ls-display, 0.05em);
  line-height: 1.4;
}

/* ── 10.2 段落間・見出し後スペーシング ── */

#aegf-root p + p {
  margin-top: var(--aegf-p-gap, 1.25em);
}

#aegf-root h2 + p,
#aegf-root h2 + .aegf-section-desc,
#aegf-root h3 + p {
  margin-top: 0.75em;
}

#aegf-root p + ul,
#aegf-root p + ol {
  margin-top: 0.75em;
}

#aegf-root li + li {
  margin-top: var(--aegf-list-gap, 0.5em);
}

#aegf-root h2:not(:first-child),
#aegf-root h3:not(:first-child) {
  margin-top: 2em;
}

#aegf-root h2,
#aegf-root h3 {
  margin-bottom: var(--aegf-heading-mb, 0.8em);
}

/* ── 10.3 タブレット最適化（768px〜1023px）── */
@media (min-width: 768px) {
  #aegf-root {
    --aegf-lh-body:    1.88;
    --aegf-lh-lead:    1.95;
    --aegf-lh-h1:      1.2;
    --aegf-lh-h2:      1.28;
    --aegf-lh-h3:      1.35;
    --aegf-ls-body:    0.025em;
    --aegf-p-gap:      1.3em;
  }

  #aegf-root .aegf-container p,
  #aegf-root .aegf-section-header p {
    max-width: 100%;
  }
}

/* ── 10.4 デスクトップ最適化（1024px〜）── */
@media (min-width: 1024px) {
  #aegf-root {
    --aegf-lh-body:    1.85;
    --aegf-lh-lead:    1.9;
    --aegf-lh-h1:      1.15;
    --aegf-lh-h2:      1.2;
    --aegf-lh-h3:      1.3;
    --aegf-lh-caption: 1.65;
    --aegf-ls-body:    0.02em;
    --aegf-ls-heading: -0.02em;
    --aegf-p-gap:      1.35em;
    --aegf-heading-mb: 0.85em;
  }

  #aegf-root h1,
  #aegf-root .aegf-hero__title {
    letter-spacing: -0.025em;
  }
}

/* ── 10.5 ワイドデスクトップ（1280px〜）── */
@media (min-width: 1280px) {
  #aegf-root {
    --aegf-lh-body: 1.85;
  }
}

/* ================================================================
   11. テーブル・ブロッククォートの白抜き問題対策（必須）
   ================================================================ */

/* ── ブロッククォート白抜き完全解消 ── */
#aegf-root blockquote {
  background: var(--aegf-bg-card) !important;
  border-left: 3px solid var(--aegf-gold) !important;
  border-right: none !important;
  color: var(--aegf-text) !important;
  padding: 1.5rem 1.75rem !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: var(--aegf-radius-sm) !important;
}

#aegf-root blockquote::before,
#aegf-root blockquote::after {
  display: none !important;
}

/* pull は独自装飾のため上記デフォルトから上書き（左罫アクセント・背景なし） */
#aegf-root blockquote.aegf-pull {
  background: transparent !important;
  border-left: 2px solid var(--aegf-accent) !important;
  padding: 0 0 0 26px !important;
  margin: 44px 0 !important;
  border-radius: 0 !important;
}
#aegf-root blockquote.aegf-pull--center {
  border-left: none !important;
  padding-left: 0 !important;
  margin-inline: auto !important;
}

/* ── テーブル白抜き完全解消 ── */
#aegf-root .aegf-table-wrap {
  overflow-x: auto;
  margin-block: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--aegf-container-wide);
  border-radius: var(--aegf-radius);
  border: 1px solid var(--aegf-border);
  width: 100%;
}

#aegf-root .aegf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: transparent !important;
}

#aegf-root .aegf-table thead th {
  background: var(--aegf-bg-card) !important;
  color: var(--aegf-text) !important;
  font-family: var(--aegf-font-gothic);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--aegf-line) !important;
  line-height: var(--aegf-lh-body);
}

#aegf-root .aegf-table tbody td {
  background: transparent !important;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(189, 128, 71, 0.08) !important;
  color: var(--aegf-text-2) !important;
  vertical-align: top;
  line-height: var(--aegf-lh-body);
}

#aegf-root .aegf-table tbody tr:last-child td {
  border-bottom: none !important;
}

#aegf-root .aegf-table tbody tr:hover td {
  background: rgba(189, 128, 71, 0.04) !important;
}

/* ================================================================
   12. リスト要素 Cocoon干渉排除（★省略禁止）
   ================================================================ */

/* ── Cocoonデフォルトリストマーカーの完全初期化 ── */
#aegf-root .entry-content ul,
#aegf-root .entry-content ol,
#aegf-root ul,
#aegf-root ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#aegf-root .entry-content li,
#aegf-root li {
  position: relative;
  padding-left: 0 !important; /* 独自マーカー使用時は後述で上書き */
  margin-bottom: 0;
  list-style-type: none !important;
}

/* ──
   Cocoonの不要な疑似要素マーカーを強制無効化
   （Cocoonは li::before にアイコン・ドット等を挿入することがある）
   ── */
#aegf-root .entry-content li::before,
#aegf-root .entry-content li::after {
  content: none !important;
}

/* ──
   LP独自のマーカー設定
   （必要なリストクラスにのみ適用。ゴールドドット）
   ── */
#aegf-root .aegf-list li {
  padding-left: 1.5em !important; /* マーカー用の余白を確保 */
  margin-bottom: var(--aegf-list-gap, 0.5em);
  position: relative;
  color: var(--aegf-text-2);
}

#aegf-root .aegf-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--aegf-gold);
  font-size: 0.6em;
  line-height: var(--aegf-lh-body);
}

/* ── チェックマーク型リスト（メリット・特徴列挙用）── */
#aegf-root .aegf-list--check li::before {
  content: '✓';
  color: var(--aegf-gold);
  font-weight: 700;
  font-size: 0.85em;
}

/* ── ナンバリングリスト（手順・ステップ用）── */
#aegf-root .aegf-list--numbered {
  counter-reset: aegf-counter;
}

#aegf-root .aegf-list--numbered li {
  counter-increment: aegf-counter;
}

#aegf-root .aegf-list--numbered li::before {
  content: counter(aegf-counter);
  font-family: var(--aegf-font-serif);
  color: var(--aegf-gold);
  font-weight: 600;
  font-size: 0.9em;
}

/* ── 強調リスト（実践知セクション）── */
#aegf-root .aegf-list--strong li {
  color: var(--aegf-text);
  font-size: 1rem;
}

/* ================================================================
   13. ボックス（callout）
   ================================================================ */
#aegf-root .aegf-box {
  background: var(--aegf-bg-card);
  border: 1px solid var(--aegf-line);
  border-radius: 6px;
  padding: 26px 28px;
  margin: 28px 0;
}
#aegf-root .aegf-box--gold {
  border-color: var(--aegf-gold-soft);
  background: linear-gradient(180deg, rgba(189, 128, 71, 0.06), transparent);
}
#aegf-root .aegf-box--accent {
  border-color: var(--aegf-accent-line);
  background: linear-gradient(180deg, var(--aegf-accent-soft), transparent);
}
#aegf-root .aegf-box h4 {
  font-size: 14px;
  color: var(--aegf-accent-2);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
#aegf-root .aegf-box--gold h4 { color: var(--aegf-gold); }
#aegf-root .aegf-box p:last-child { margin-bottom: 0; }

/* ================================================================
   14. サイドドットナビ（デスクトップのみ）
   ================================================================ */
#aegf-root .aegf-dotnav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#aegf-root .aegf-dotnav__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--aegf-line);
  cursor: pointer;
  transition: background 0.35s, box-shadow 0.35s;
  position: relative;
}
#aegf-root .aegf-dotnav__dot::after {
  content: attr(data-label);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--aegf-text-2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  background: var(--aegf-bg-1);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--aegf-line-soft);
}
#aegf-root .aegf-dotnav__dot:hover::after,
#aegf-root .aegf-dotnav__dot:focus-visible::after { opacity: 1; }
#aegf-root .aegf-dotnav__dot:focus-visible {
  outline: 2px solid var(--aegf-accent);
  outline-offset: 3px;
}
#aegf-root .aegf-dotnav__dot.is-active {
  background: var(--aegf-accent);
  box-shadow: 0 0 0 3px var(--aegf-accent-soft);
}
@media (max-width: 960px) {
  #aegf-root .aegf-dotnav { display: none; }
}

/* ================================================================
   15. TOC（目次）
   ================================================================ */
#aegf-root .aegf-toc {
  border: 1px solid var(--aegf-line);
  border-radius: 6px;
  padding: 8px;
  margin: 34px 0;
}
#aegf-root .aegf-toc a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--aegf-text-2);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
#aegf-root .aegf-toc a:hover { background: var(--aegf-bg-1); color: var(--aegf-text); }
#aegf-root .aegf-toc a:focus-visible {
  outline: 2px solid var(--aegf-accent);
  outline-offset: -2px;
}
#aegf-root .aegf-toc__arw { color: var(--aegf-text-faint); font-family: var(--aegf-font-serif); flex-shrink: 0; }

/* ================================================================
   16. ディバイダー
   ================================================================ */
#aegf-root .aegf-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  max-width: var(--aegf-container-max);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
#aegf-root .aegf-divider__ln { flex: 1; height: 1px; background: var(--aegf-line); }
#aegf-root .aegf-divider__mk { width: 5px; height: 5px; border-radius: 50%; background: var(--aegf-accent); }

/* ================================================================
   17. PART バナー（部タイトル）
   ================================================================ */
#aegf-root .aegf-part-banner {
  padding: clamp(5rem, 10vw, 6.25rem) 0 clamp(4.5rem, 9vw, 5.625rem);
  position: relative;
  overflow: hidden;
}
#aegf-root .aegf-part-banner--p1 { background: linear-gradient(180deg, var(--aegf-bg-1), var(--aegf-bg)); }
#aegf-root .aegf-part-banner--p2 { background: linear-gradient(180deg, #120a0e, var(--aegf-bg)); }
#aegf-root .aegf-part-banner--p3 { background: linear-gradient(180deg, #0d0f0a, var(--aegf-bg)); }
#aegf-root .aegf-part-banner__inner { text-align: center; }
#aegf-root .aegf-part-banner__roman {
  font-family: var(--aegf-font-serif);
  font-size: 15px;
  color: var(--aegf-gold);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
#aegf-root .aegf-part-banner__roman--accent { color: var(--aegf-accent-2); }
#aegf-root .aegf-part-banner__title {
  font-size: clamp(1.875rem, 5vw, 3.125rem);
  max-width: 760px;
  margin-inline: auto;
  font-weight: 700;
}
#aegf-root .aegf-part-banner__title-line { display: block; }
#aegf-root .aegf-part-banner__desc {
  color: var(--aegf-text-2);
  max-width: 560px;
  margin: 22px auto 0;
  font-weight: 300;
}

/* ================================================================
   18. ダイアグラム共通
   ================================================================ */
#aegf-root .aegf-diagram-frame {
  margin: 36px 0;
  border: 1px solid var(--aegf-line);
  border-radius: 8px;
  padding: clamp(1.375rem, 4vw, 2.25rem) clamp(1.25rem, 3.5vw, 1.875rem);
  background: var(--aegf-bg-card);
}
#aegf-root .aegf-diagram-frame--wide  { max-width: 900px; margin-inline: auto; }
#aegf-root .aegf-diagram-frame--narrow { max-width: 720px; margin-inline: auto; }
#aegf-root .aegf-diagram-cap {
  font-size: 12.5px;
  color: var(--aegf-text-faint);
  margin-top: 16px;
  text-align: center;
}

/* ── 本文内 画像アセット（インフォグラフィック／アーキテクチャ図／UIモックアップ） ── */
#aegf-root .aegf-visual {
  margin: 36px 0;
  border: 1px solid var(--aegf-line);
  border-radius: var(--aegf-radius-sm);
  overflow: hidden;
  background: var(--aegf-bg-card);
}
#aegf-root .aegf-visual__img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--aegf-bg-1);
}
#aegf-root .aegf-visual--16x9 .aegf-visual__img { aspect-ratio: 16 / 9; }
#aegf-root .aegf-visual--1x1  .aegf-visual__img { aspect-ratio: 1 / 1; }
#aegf-root .aegf-visual--1x1 { max-width: 440px; margin-inline: auto; }
#aegf-root .aegf-visual--wide { max-width: 900px; margin-inline: auto; }
#aegf-root .aegf-visual__cap {
  padding: 14px clamp(1.25rem, 3.5vw, 1.875rem) 18px;
  font-size: 12.5px;
  color: var(--aegf-text-faint);
  text-align: center;
}

/* ── 発行者ポートレート（CLOSING） ── */
#aegf-root .aegf-author {
  margin: 12px auto 0;
  max-width: 200px;
  text-align: center;
}
#aegf-root .aegf-author__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--aegf-radius-sm);
  border: 1px solid var(--aegf-border);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.65);
}
#aegf-root .aegf-author__cap {
  margin-top: 14px;
  font-family: var(--aegf-font-gothic);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--aegf-text-faint);
}

/* ── Before / After ── */
#aegf-root .aegf-ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
}
#aegf-root .aegf-ba-col {
  border: 1px solid var(--aegf-line);
  border-radius: 6px;
  padding: 20px 22px;
}
#aegf-root .aegf-ba-col--before { opacity: 0.7; }
#aegf-root .aegf-ba-col--after {
  border-color: var(--aegf-accent-line);
  background: var(--aegf-accent-soft);
}
#aegf-root .aegf-ba-col--ai { opacity: 1; }
#aegf-root .aegf-ba-col h5 {
  font-family: var(--aegf-font-gothic);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--aegf-text-faint);
  margin-bottom: 14px;
}
#aegf-root .aegf-ba-col--after h5 { color: var(--aegf-accent-2); }
#aegf-root .aegf-ba-col--ai h5 { color: var(--aegf-text-2); }
#aegf-root .aegf-ba-list { font-size: 14px; }
#aegf-root .aegf-ba-list li {
  margin-bottom: 10px;
  padding-left: 14px !important;
  position: relative;
  color: var(--aegf-text-2);
}
#aegf-root .aegf-ba-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--aegf-text-faint);
}
#aegf-root .aegf-ba-col--after .aegf-ba-list li { color: var(--aegf-text); }
#aegf-root .aegf-ba-col--after .aegf-ba-list li::before {
  content: '✓';
  color: var(--aegf-accent);
  font-size: 11px;
}
#aegf-root .aegf-ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aegf-accent);
  font-size: 22px;
}
#aegf-root .aegf-ba-arrow--cross { color: var(--aegf-gold); }
@media (max-width: 640px) {
  #aegf-root .aegf-ba-grid { grid-template-columns: 1fr; gap: 16px; }
  #aegf-root .aegf-ba-arrow { transform: rotate(90deg); padding: 4px 0; }
  #aegf-root .aegf-ba-arrow--cross { transform: none; padding: 2px 0; }
}

/* ── 4象限 ── */
#aegf-root .aegf-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#aegf-root .aegf-quad-item {
  border: 1px solid var(--aegf-accent-line);
  border-radius: 6px;
  padding: 22px 20px;
  text-align: center;
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(180deg, rgba(79, 174, 120, 0.07), transparent);
}
#aegf-root .aegf-quad-item b { color: var(--aegf-accent); }
#aegf-root .aegf-quad-foot {
  text-align: center;
  margin-top: 20px;
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: 16px;
  color: var(--aegf-text);
}
@media (max-width: 520px) {
  #aegf-root .aegf-quad { grid-template-columns: 1fr; }
}

/* ── ステップフロー ── */
#aegf-root .aegf-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
#aegf-root .aegf-flow-step {
  flex: 1 1 160px;
  border: 1px solid var(--aegf-line);
  border-radius: 6px;
  padding: 22px 18px;
  position: relative;
  background: var(--aegf-bg-1);
  min-width: 150px;
}
#aegf-root .aegf-flow-step__n {
  font-family: var(--aegf-font-serif);
  color: var(--aegf-accent);
  font-size: 13px;
  margin-bottom: 8px;
}
#aegf-root .aegf-flow-step__t {
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
#aegf-root .aegf-flow-step__d { font-size: 12.5px; color: var(--aegf-text-faint); line-height: 1.7; }
#aegf-root .aegf-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aegf-accent-line);
  padding: 0 6px;
  font-size: 18px;
}
@media (max-width: 700px) {
  #aegf-root .aegf-flow { flex-direction: column; }
  #aegf-root .aegf-flow-arrow { transform: rotate(90deg); padding: 6px 0; }
}

/* ── 成長3ステップカード ── */
#aegf-root .aegf-growth-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 1.5rem;
}
#aegf-root .aegf-gstep {
  border: 1px solid var(--aegf-line);
  border-radius: 8px;
  padding: 26px 22px;
  background: var(--aegf-bg-1);
  position: relative;
}
#aegf-root .aegf-gstep__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--aegf-accent);
  color: #0a0a0d;
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
#aegf-root .aegf-gstep__title {
  font-family: var(--aegf-font-gothic);
  font-size: 17px;
  margin-bottom: 8px;
}
#aegf-root .aegf-gstep p { font-size: 13.5px; color: var(--aegf-text-2); margin-bottom: 0; }
@media (max-width: 760px) {
  #aegf-root .aegf-growth-steps { grid-template-columns: 1fr; }
}

/* ── ハブ（1事例→10資産）── */
#aegf-root .aegf-hub-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
#aegf-root .aegf-hub-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}
#aegf-root .aegf-hub-item {
  border: 1px solid var(--aegf-line-soft);
  background: var(--aegf-bg-1);
  border-radius: 5px;
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--aegf-text-2);
}
#aegf-root .aegf-hub-item b {
  display: block;
  color: var(--aegf-text);
  font-family: var(--aegf-font-gothic);
  font-size: 14px;
  margin-bottom: 2px;
}
#aegf-root .aegf-hub-center {
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: 15px;
  color: var(--aegf-accent);
  border: 1px solid var(--aegf-accent-line);
  border-radius: 50px;
  padding: 10px 30px;
  background: var(--aegf-accent-soft);
}
@media (max-width: 760px) {
  #aegf-root .aegf-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 依存マップ（上流/中流/下流）── */
#aegf-root .aegf-dep-map { display: flex; flex-direction: column; gap: 12px; }
#aegf-root .aegf-dep-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#aegf-root .aegf-dep-label {
  width: 90px;
  flex-shrink: 0;
  font-family: var(--aegf-font-gothic);
  font-size: 12px;
  color: var(--aegf-text-faint);
  text-align: right;
}
#aegf-root .aegf-dep-items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
#aegf-root .aegf-dep-chip {
  border: 1px solid var(--aegf-line);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--aegf-text-2);
  background: var(--aegf-bg-1);
}
#aegf-root .aegf-dep-row--up .aegf-dep-chip {
  border-color: var(--aegf-accent-line);
  color: var(--aegf-text);
  background: var(--aegf-accent-soft);
}
#aegf-root .aegf-dep-row--feed .aegf-dep-chip {
  border-color: var(--aegf-gold-soft);
  color: var(--aegf-gold);
  background: var(--aegf-gold-soft);
}
@media (max-width: 600px) {
  #aegf-root .aegf-dep-label { width: 100%; text-align: left; margin-bottom: -4px; }
}

/* ── 事業成長OS ループ ── */
#aegf-root .aegf-os-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 0;
}
#aegf-root .aegf-os-node {
  position: relative;
  text-align: center;
  padding: 18px 14px;
}
#aegf-root .aegf-os-node--arrow-r::after {
  content: "→";
  position: absolute;
  top: 36px;
  right: -2px;
  transform: translateX(50%);
  color: var(--aegf-text-faint);
  font-size: 16px;
  line-height: 1;
}
#aegf-root .aegf-os-node__ic {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--aegf-accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--aegf-font-serif);
  color: var(--aegf-accent);
  font-size: 15px;
}
#aegf-root .aegf-os-node__t {
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
}
#aegf-root .aegf-os-node__d { font-size: 11.5px; color: var(--aegf-text-faint); line-height: 1.6; }
#aegf-root .aegf-os-connector {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--aegf-text-faint);
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 760px) {
  #aegf-root .aegf-os-loop { grid-template-columns: 1fr; }
  #aegf-root .aegf-os-node { padding: 14px 10px; }
  #aegf-root .aegf-os-node--arrow-r::after {
    content: "↓";
    position: static;
    display: block;
    transform: none;
    margin-top: 10px;
  }
}

/* ── アセットリスト（8つの力・10項目・失注カテゴリ等）── */
#aegf-root .aegf-asset-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-block: 1.25rem;
}
#aegf-root .aegf-asset-list--3col { grid-template-columns: repeat(3, 1fr); }
#aegf-root .aegf-asset-item {
  border: 1px solid var(--aegf-line-soft);
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--aegf-text-2);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
#aegf-root .aegf-asset-item__num {
  font-family: var(--aegf-font-serif);
  color: var(--aegf-gold);
  flex-shrink: 0;
}
#aegf-root .aegf-asset-item b { color: var(--aegf-text); font-weight: 500; }
@media (max-width: 640px) {
  #aegf-root .aegf-asset-list,
  #aegf-root .aegf-asset-list--3col { grid-template-columns: 1fr; }
}

/* ── 事例テンプレート4要素 ── */
#aegf-root .aegf-tmpl4 { display: grid; grid-template-columns: 1fr; gap: 0; margin-block: 1.5rem; }
#aegf-root .aegf-tmpl4-item {
  border-left: 2px solid var(--aegf-accent-line);
  padding: 6px 0 6px 24px;
  margin-bottom: 30px;
  position: relative;
}
#aegf-root .aegf-tmpl4-item::before {
  content: attr(data-n);
  position: absolute;
  left: -11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aegf-bg);
  border: 1px solid var(--aegf-accent);
  color: var(--aegf-accent-2);
  font-family: var(--aegf-font-gothic);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#aegf-root .aegf-tmpl4-item h5 {
  font-family: var(--aegf-font-gothic);
  font-size: 16px;
  margin-bottom: 8px;
  margin-top: 0;
}
#aegf-root .aegf-tmpl4-item ul { margin: 8px 0 0; }
#aegf-root .aegf-tmpl4-item li {
  font-size: 13.5px;
  color: var(--aegf-text-2);
  padding-left: 14px !important;
  position: relative;
  margin-bottom: 6px;
}
#aegf-root .aegf-tmpl4-item li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--aegf-text-faint);
}
#aegf-root .aegf-tmpl4-item .aegf-caption { margin-top: 10px; }

/* ── ワークフロー行 ── */
#aegf-root .aegf-wf { display: flex; flex-direction: column; margin-block: 1.5rem; }
#aegf-root .aegf-wf-row {
  display: grid;
  grid-template-columns: 44px 110px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--aegf-line-soft);
  align-items: center;
}
#aegf-root .aegf-wf-row:last-child { border-bottom: none; }
#aegf-root .aegf-wf-row__s { font-family: var(--aegf-font-serif); color: var(--aegf-gold); font-size: 13px; }
#aegf-root .aegf-wf-row__role { font-family: var(--aegf-font-gothic); font-size: 12.5px; color: var(--aegf-accent-2); }
#aegf-root .aegf-wf-row__cont { font-size: 13.5px; color: var(--aegf-text-2); }
@media (max-width: 520px) {
  #aegf-root .aegf-wf-row {
    grid-template-columns: 30px 1fr;
    grid-template-areas: "s role" "s cont";
    row-gap: 4px;
  }
  #aegf-root .aegf-wf-row__s    { grid-area: s; }
  #aegf-root .aegf-wf-row__role { grid-area: role; }
  #aegf-root .aegf-wf-row__cont { grid-area: cont; }
}

/* ================================================================
   19. レベルチップ / アコーディオン（10項目診断）
   ================================================================ */
#aegf-root .aegf-lv-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
#aegf-root .aegf-lv-legend > div { color: var(--aegf-text-2); }
#aegf-root .aegf-lvchip {
  display: inline-block;
  border: 1px solid var(--aegf-line);
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
}
#aegf-root .aegf-lvchip--l0 { color: var(--aegf-text-faint); }
#aegf-root .aegf-lvchip--l1 { color: var(--aegf-gold); }
#aegf-root .aegf-lvchip--l2 { color: var(--aegf-accent-2); }

#aegf-root .aegf-acc {
  border: 1px solid var(--aegf-line);
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0;
}
#aegf-root .aegf-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--aegf-bg-1);
  user-select: none;
  width: 100%;
  border: none;
  color: var(--aegf-text);
  font-family: var(--aegf-font-sans);
  font-size: 1rem;
  text-align: left;
}
#aegf-root .aegf-acc-head:focus-visible {
  outline: 2px solid var(--aegf-accent);
  outline-offset: -2px;
}
#aegf-root .aegf-acc-head__lft { display: flex; align-items: center; gap: 14px; }
#aegf-root .aegf-acc-head__idx {
  font-family: var(--aegf-font-serif);
  color: var(--aegf-gold);
  font-size: 13px;
  width: 20px;
  flex-shrink: 0;
}
#aegf-root .aegf-acc-head__ttl {
  font-family: var(--aegf-font-gothic);
  font-weight: 500;
  font-size: 15px;
}
#aegf-root .aegf-acc-head__plus {
  color: var(--aegf-accent);
  font-size: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
#aegf-root .aegf-acc.is-open .aegf-acc-head__plus { transform: rotate(45deg); }
#aegf-root .aegf-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#aegf-root .aegf-acc-body-in {
  padding: 2px 22px 22px 56px;
  font-size: 13.8px;
  color: var(--aegf-text-2);
}
#aegf-root .aegf-acc-q { color: var(--aegf-text); margin-bottom: 8px; }
#aegf-root .aegf-acc-lv { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 520px) {
  #aegf-root .aegf-acc-body-in { padding-left: 22px; }
}

/* ================================================================
   20. 留意点カード
   ================================================================ */
#aegf-root .aegf-note-card {
  border: 1px solid var(--aegf-line);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--aegf-bg-card);
}
#aegf-root .aegf-note-card__tag {
  font-family: var(--aegf-font-gothic);
  font-size: 11.5px;
  color: var(--aegf-gold);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
#aegf-root .aegf-note-card p { font-size: 14px; color: var(--aegf-text-2); margin: 0; }

/* ================================================================
   21. インタールード（幕間）
   ================================================================ */
#aegf-root .aegf-interlude {
  padding: clamp(6.25rem, 12vw, 8.75rem) 0;
  position: relative;
  background: radial-gradient(ellipse 800px 400px at 50% 50%, rgba(79, 174, 120, 0.08), transparent 70%);
}
#aegf-root .aegf-interlude--sm { padding: clamp(4.5rem, 9vw, 6.25rem) 0; }

/* ================================================================
   22. CLOSING（結び）
   ================================================================ */
#aegf-root .aegf-closing {
  padding: clamp(6.25rem, 12vw, 9.375rem) 0 clamp(5rem, 10vw, 7.5rem);
  background: linear-gradient(180deg, var(--aegf-bg), #0c0a0d 60%, var(--aegf-bg));
}
#aegf-root .aegf-closing__intro {
  color: var(--aegf-text-2);
  max-width: 600px;
  margin: 0 auto;
}
#aegf-root .aegf-closing__core {
  font-family: var(--aegf-font-serif);
  font-weight: 700;
  font-size: clamp(1.375rem, 3.6vw, 2rem);
  line-height: 1.8;
  color: var(--aegf-text);
  max-width: 800px;
  margin: 32px auto;
}
#aegf-root .aegf-closing__core-line { display: block; }
#aegf-root .aegf-br-sp { display: none; }
@media (max-width: 767px) {
  #aegf-root .aegf-br-sp { display: inline; }
}
#aegf-root .aegf-closing__body {
  color: var(--aegf-text-2);
  max-width: 600px;
  margin: 0 auto;
}
#aegf-root .aegf-closing__echo {
  color: var(--aegf-text-faint);
  font-size: 13.5px;
  margin-top: 40px;
  font-style: normal;
}
#aegf-root .aegf-closing__signoff {
  margin-top: clamp(3.5rem, 8vw, 5.625rem);
  padding-top: 40px;
  border-top: 1px solid var(--aegf-line-soft);
  font-size: 12.5px;
  color: var(--aegf-text-faint);
  letter-spacing: 0.04em;
}

/* ================================================================
   23. CTAボタン
   ================================================================ */
#aegf-root .aegf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.1em 2.6em;
  border-radius: 50px;
  color: #f4f2ea;
  font-family: var(--aegf-font-gothic);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.125rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(79, 174, 120, 0.18);
  transition:
    opacity   var(--aegf-transition),
    transform var(--aegf-transition),
    filter    var(--aegf-transition),
    box-shadow var(--aegf-transition);
  will-change: transform;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}
#aegf-root .aegf-cta-btn:hover {
  filter: brightness(1.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(79, 174, 120, 0.32);
  text-decoration: none;
  color: #ffffff;
}
#aegf-root .aegf-cta-btn:focus-visible {
  outline: 3px solid var(--aegf-gold-bright);
  outline-offset: 3px;
}
#aegf-root .aegf-cta-btn__sub {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--aegf-text-faint);
  letter-spacing: 0.04em;
}
#aegf-root .aegf-hero__cta-btn { margin-top: 0; }
#aegf-root .aegf-hero .aegf-cta-btn-outer { margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: flex-start; }
#aegf-root .aegf-hero .aegf-cta-btn-wrap { text-align: left; }
#aegf-root .aegf-hero .aegf-align-center-wrapper { align-items: flex-start; text-align: left; }
#aegf-root .aegf-hero .aegf-content-block--hero { text-align: left; }
@media (max-width: 767px) {
  #aegf-root .aegf-cta-btn { width: 100%; max-width: 420px; }
}

/* ================================================================
   24. スモールデバイス追加調整（〜480px）
   ================================================================ */
@media (max-width: 480px) {
  #aegf-root .aegf-hero__meta { flex-direction: column; gap: 18px; }
  #aegf-root .aegf-box { padding: 22px 20px; }
  #aegf-root .aegf-part-banner__roman { letter-spacing: 0.2em; }
}
