/*
 * ============================================================
 * wordpress-lp-complete-codex.css
 * Cocoon 子テーマ LP 独立スタイルシート
 *
 * スコープ: .wlpc-lp 配下のみ
 * Cocoon 親テーマ・entry-content・sidebar 等の干渉を完全遮断
 * ============================================================
 */

/* ============================================================
   0-1. Google Fonts ── preconnect + display=swap は PHP側で登録
   ここでは @import を使わず functions.php 経由で読み込む
   ============================================================ */

/* ============================================================
   0-2. Cocoon 外側コンテナ干渉の完全遮断
   body.is-lp-page スコープで LP ページのみに適用
   .wlpc-lp 内部ではなく、Cocoon が生成する親要素を上書きする
   ============================================================ */

/* Cocoon の #main / #contents / #container の
   max-width・padding・float・width 制約を LP ページで完全解除 */
body.is-lp-page #main,
body.is-lp-page .main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
}

body.is-lp-page #contents,
body.is-lp-page .contents,
body.is-lp-page #container,
body.is-lp-page #wrapper {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* サイドバーを CSS 側からも確実に非表示にする
   （functions.php の get_sidebar フィルターの補完） */
body.is-lp-page #sidebar,
body.is-lp-page .sidebar,
body.is-lp-page .sidebar-container,
body.is-lp-page #sidebar-scroll,
body.is-lp-page .sidebar-fixed,
body.is-lp-page [id*="sidebar"],
body.is-lp-page [class*="sidebar"] {
  display: none !important;
}

/* Cocoon のグローバルリンクスタイルが
   .wlpc-lp 内のリンクに干渉するのを遮断 */
body.is-lp-page .wlpc-lp a,
body.is-lp-page .wlpc-lp a:hover,
body.is-lp-page .wlpc-lp a:visited {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Cocoon が付与する heading・paragraph のグローバルスタイルを
   .wlpc-lp スコープ内で確実に上書き */
body.is-lp-page .wlpc-lp h1,
body.is-lp-page .wlpc-lp h2,
body.is-lp-page .wlpc-lp h3,
body.is-lp-page .wlpc-lp h4,
body.is-lp-page .wlpc-lp h5,
body.is-lp-page .wlpc-lp h6 {
  border-left: none !important;
  border-bottom: none !important;
  border-top: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body.is-lp-page .wlpc-lp p {
  margin: 0 !important;
  padding: 0 !important;
}

body.is-lp-page .wlpc-lp ul,
body.is-lp-page .wlpc-lp ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

body.is-lp-page .wlpc-lp li::before {
  /* Cocoon が ul li に付与する ::before を初期化 */
  content: none !important;
  display: none !important;
}

body.is-lp-page .wlpc-lp img {
  max-width: 100% !important;
  height: auto !important;
  border: none !important;
  box-shadow: none !important;
}

body.is-lp-page .wlpc-lp table {
  border-collapse: collapse !important;
  width: auto !important;
}

/* ============================================================
   1. Design Tokens（CSS カスタムプロパティ）
   ============================================================ */
.wlpc-lp {

  /* --- カラー：インク系 --- */
  --wlpc-ink-900: #080D1A;
  --wlpc-ink-800: #0F1728;
  --wlpc-ink-700: #1A2540;
  --wlpc-ink-600: #283354;
  --wlpc-ink-500: #475070;
  --wlpc-ink-400: #788096;
  --wlpc-ink-300: #B0B7C8;
  --wlpc-ink-200: #DCE0EA;
  --wlpc-ink-100: #EEF0F6;
  --wlpc-paper:       #FAFAF8;
  --wlpc-paper-warm:  #F5F2EB;

  /* --- カラー：ブランドアクセント --- */
  --wlpc-navy:        #1B3A6B;  /* ダークネイビー */
  --wlpc-navy-mid:    #2E5FA3;  /* ミッドネイビー */
  --wlpc-sky:         #4A8FD4;  /* スカイブルー */
  --wlpc-sky-light:   #7AB5E8;  /* ライトスカイ */
  --wlpc-smoky:       #3D5A80;  /* スモーキーブルー */
  --wlpc-gold:        #B8973C;  /* ゴールド */
  --wlpc-gold-soft:   #D9C17A;  /* ソフトゴールド */
  --wlpc-gold-light:  #EDE0B2;  /* ライトゴールド */
  --wlpc-ivory:       #F7F3E9;  /* アイボリー */
  --wlpc-warm-white:  #FDFBF7;  /* ウォームホワイト */

  /* --- グラデーション --- */
  --wlpc-grad-hero:   linear-gradient(145deg, #07101F 0%, #0D1B34 35%, #152244 65%, #1B2E58 100%);
  --wlpc-grad-brand:  linear-gradient(135deg, #1B3A6B 0%, #2E5FA3 50%, #4A8FD4 100%);
  --wlpc-grad-gold:   linear-gradient(135deg, #B8973C 0%, #D9C17A 100%);
  --wlpc-grad-paper:  linear-gradient(180deg, #FAFAF8 0%, #F5F2EB 100%);
  --wlpc-grad-warm:   linear-gradient(180deg, #F5F2EB 0%, #EDE8DC 100%);

  /* --- フォント --- */
  --wlpc-font-jp:     'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --wlpc-font-en:     'Inter', system-ui, sans-serif;
  --wlpc-font-mono:   'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;
  --wlpc-font-serif:  'Cormorant Garamond', 'Times New Roman', serif;

  /* --- スペーシング（8pt ベース） --- */
  --wlpc-s1:  0.5rem;
  --wlpc-s2:  1rem;
  --wlpc-s3:  1.5rem;
  --wlpc-s4:  2rem;
  --wlpc-s5:  3rem;
  --wlpc-s6:  4rem;
  --wlpc-s7:  6rem;
  --wlpc-s8:  8rem;

  /* --- ボーダーラジウス --- */
  --wlpc-r-sm: 6px;
  --wlpc-r-md: 14px;
  --wlpc-r-lg: 22px;
  --wlpc-r-xl: 32px;

  /* --- シャドウ --- */
  --wlpc-shadow-sm:   0 2px 12px rgba(8, 13, 26, 0.05), 0 1px 3px rgba(8, 13, 26, 0.03);
  --wlpc-shadow-md:   0 8px 32px rgba(8, 13, 26, 0.09), 0 3px 10px rgba(8, 13, 26, 0.05);
  --wlpc-shadow-lg:   0 24px 64px rgba(8, 13, 26, 0.14), 0 8px 20px rgba(8, 13, 26, 0.07);

  /* --- トランジション --- */
  --wlpc-ease:        cubic-bezier(.22, .8, .22, 1);
  --wlpc-ease-out:    cubic-bezier(.0, .0, .2, 1);
}


/* ============================================================
   2. LP ラッパー ── Cocoon 干渉の完全遮断
   ============================================================ */

/*
 * .wlpc-lp スコープ内のみリセット。
 * `all: unset` は使用禁止（Cocoon共通部品に影響するため）。
 * スコープ型リセットで対応する。
 */
.wlpc-lp *,
.wlpc-lp *::before,
.wlpc-lp *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wlpc-lp {
  font-family: var(--wlpc-font-jp);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--wlpc-ink-800);
  background: var(--wlpc-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Cocoon の entry-content 余白・最大幅を上書き */
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Cocoon が付与するフロート・article 余白の遮断 */
.wlpc-lp img { max-width: 100%; display: block; }
.wlpc-lp a   { color: inherit; text-decoration: none; transition: all 0.3s var(--wlpc-ease); }
.wlpc-lp ul,
.wlpc-lp ol  { list-style: none; }

/* テキスト選択色 */
.wlpc-lp ::selection {
  background: var(--wlpc-navy-mid);
  color: #fff;
}

/* スクロールバー */
.wlpc-lp ::-webkit-scrollbar       { width: 8px; height: 8px; }
.wlpc-lp ::-webkit-scrollbar-track { background: var(--wlpc-ink-100); }
.wlpc-lp ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--wlpc-sky), var(--wlpc-navy-mid));
  border-radius: 8px;
}


/* ============================================================
   3. 読書進捗バー
   ============================================================ */
.wlpc-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--wlpc-grad-brand);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(74, 143, 212, 0.45);
  transition: width 0.1s linear;
  pointer-events: none;
}


/* ============================================================
   4. TOC ドットナビゲーター
   ============================================================ */
.wlpc-toc {
  position: fixed;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 500;
}
@media (max-width: 1100px) { .wlpc-toc { display: none; } }

.wlpc-toc__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wlpc-ink-200);
  display: block;
  transition: all 0.35s var(--wlpc-ease);
  position: relative;
}
.wlpc-toc__dot:hover,
.wlpc-toc__dot.active {
  background: var(--wlpc-sky);
  transform: scale(1.5);
  box-shadow: 0 0 8px rgba(74, 143, 212, 0.5);
}
/* ツールチップラベル */
.wlpc-toc__dot::before {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--wlpc-ink-900);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  font-size: 0.68rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--wlpc-ease);
  font-family: var(--wlpc-font-jp);
  letter-spacing: 0.03em;
}
.wlpc-toc__dot:hover::before { opacity: 1; }


/* ============================================================
   5. ページナビゲーション（ページ内固定ナビ）
   ============================================================ */
.wlpc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 250, 248, 0.72);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(8, 13, 26, 0.06);
  z-index: 1000;
  transition: background 0.4s var(--wlpc-ease), box-shadow 0.4s var(--wlpc-ease);
}
.wlpc-nav--scrolled {
  background: rgba(250, 250, 248, 0.94);
  box-shadow: 0 2px 18px rgba(8, 13, 26, 0.06);
}

.wlpc-nav__brand {
  font-family: var(--wlpc-font-en);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wlpc-ink-800);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wlpc-nav__brand::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wlpc-grad-brand);
  box-shadow: 0 0 12px rgba(74, 143, 212, 0.6);
}

.wlpc-nav__menu {
  display: flex;
  gap: 1.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.wlpc-nav__menu a {
  color: var(--wlpc-ink-500);
  position: relative;
  padding: 0.25rem 0;
}
.wlpc-nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--wlpc-navy);
  transition: width 0.35s var(--wlpc-ease);
}
.wlpc-nav__menu a:hover { color: var(--wlpc-ink-900); }
.wlpc-nav__menu a:hover::after { width: 100%; }

@media (max-width: 767px) {
  .wlpc-nav__menu { display: none; }
  .wlpc-nav { padding: 0.9rem 1.25rem; }
}


/* ============================================================
   6. HERO セクション
   ============================================================ */
.wlpc-hero {
  min-height: 100vh;
  background: var(--wlpc-grad-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vw, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
}

/* オーロラ光彩エフェクト */
.wlpc-hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 18% 28%, rgba(46, 95, 163, 0.4), transparent 62%),
    radial-gradient(ellipse 50% 50% at 78% 18%, rgba(27, 58, 107, 0.35), transparent 62%),
    radial-gradient(ellipse 65% 38% at 58% 88%, rgba(74, 143, 212, 0.28), transparent 72%);
  filter: blur(18px);
  animation: wlpcAuroraFlow 22s ease-in-out infinite alternate;
}
@keyframes wlpcAuroraFlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-24px, 18px) scale(1.08); }
}

/* グリッドオーバーレイ */
.wlpc-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 82%);
  pointer-events: none;
}

/* ヒーローレイアウト */
.wlpc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .wlpc-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* アイブロウ */
.wlpc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--wlpc-font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: var(--wlpc-gold-light);
  margin-bottom: 1.8rem;
}
.wlpc-hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wlpc-gold);
  box-shadow: 0 0 10px var(--wlpc-gold);
  animation: wlpcPulse 2.2s infinite;
}
@keyframes wlpcPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* タイトル */
.wlpc-hero__title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}
.wlpc-hero__title em {
  font-style: italic;
  font-weight: 500;
  font-family: var(--wlpc-font-serif);
  background: linear-gradient(135deg, #ffffff 0%, #E9D8A6 55%, var(--wlpc-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wlpc-accent {
  display: inline-block;
  background: var(--wlpc-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* サブコピー */
.wlpc-hero__sub {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.72);
  max-width: 530px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}
.wlpc-hero__sub strong { color: #fff; font-weight: 600; }

/* メタ数字 */
.wlpc-hero__meta {
  display: flex;
  gap: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wlpc-hero__meta-item {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.wlpc-hero__meta-item strong {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  color: #fff;
  font-weight: 700;
  font-family: var(--wlpc-font-en);
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #fff, var(--wlpc-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.wlpc-hero__meta-item strong small {
  font-size: 0.65em;
  font-weight: 500;
}

/* ビジュアル領域（コードカード） */
.wlpc-hero__visual {
  position: relative;
  height: clamp(360px, 50vw, 560px);
  perspective: 2000px;
}
@media (max-width: 900px) {
  .wlpc-hero__visual { height: 380px; }
}

/* コードカード共通 */
.wlpc-hero__card {
  position: absolute;
  border-radius: var(--wlpc-r-lg);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  padding: 1.4rem 1.3rem;
  font-family: var(--wlpc-font-mono);
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  overflow: hidden;
  transition: transform 0.6s var(--wlpc-ease), box-shadow 0.6s var(--wlpc-ease);
  will-change: transform;
}
.wlpc-hero__card pre { margin: 0; white-space: pre; overflow: hidden; }
.wlpc-hero__card--1 {
  top: 0; left: 0; right: 30%; height: 54%;
  transform: rotate(-3.5deg);
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.2), rgba(46, 95, 163, 0.1));
}
.wlpc-hero__card--2 {
  top: 22%; right: 0; left: 26%; height: 52%;
  transform: rotate(2.2deg);
  background: linear-gradient(135deg, rgba(74, 143, 212, 0.14), rgba(61, 90, 128, 0.08));
}
.wlpc-hero__card--3 {
  bottom: 0; left: 8%; right: 8%; height: 33%;
  transform: rotate(-1.2deg);
  background: linear-gradient(135deg, rgba(184, 151, 60, 0.12), rgba(27, 58, 107, 0.08));
}
.wlpc-hero__card-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--wlpc-font-en);
  font-size: 0.66rem;
  color: var(--wlpc-gold-soft);
  margin-bottom: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.wlpc-hero__card-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wlpc-gold);
}

/* シンタックスカラー（カード内） */
.wlpc-kw  { color: #90AEE8; font-weight: 700; }
.wlpc-str { color: #A6DBA6; }
.wlpc-com { color: rgba(255,255,255,0.38); font-style: italic; }
.wlpc-fn  { color: #8CC6E8; }
.wlpc-var { color: #E5C97A; }
.wlpc-num { color: #E0A86A; }
.wlpc-punc{ color: rgba(255,255,255,0.55); }

/* スクロール促進インジケーター */
.wlpc-hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--wlpc-font-en);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.wlpc-hero__scroll::after {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), transparent);
  animation: wlpcScrollLine 2.8s infinite;
}
@keyframes wlpcScrollLine {
  0%  { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}


/* ============================================================
   7. セクション共通
   ============================================================ */
.wlpc-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
}

.wlpc-container {
  max-width: 1200px;
  margin: 0 auto;
}
.wlpc-container--narrow {
  max-width: 880px;
  margin: 0 auto;
}

/* アイブロウ */
.wlpc-eyebrow {
  font-family: var(--wlpc-font-en);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wlpc-ink-500);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.wlpc-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--wlpc-ink-400);
  flex-shrink: 0;
}
.wlpc-eyebrow--light {
  color: rgba(255, 255, 255, 0.6);
}
.wlpc-eyebrow--light::before { background: rgba(255,255,255,0.3); }
.wlpc-eyebrow--center {
  justify-content: center;
  display: flex;
}

/* セクションタイトル */
.wlpc-section__title {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--wlpc-ink-900);
  margin-bottom: 1.4rem;
}
.wlpc-section__title em {
  font-style: italic;
  font-weight: 500;
  font-family: var(--wlpc-font-serif);
  background: var(--wlpc-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* セクションリード */
.wlpc-section__lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 2;
  color: var(--wlpc-ink-500);
  max-width: 700px;
  margin-bottom: 3.5rem;
  font-weight: 400;
}


/* ============================================================
   8. 目次グリッド（Index）
   ============================================================ */
.wlpc-index {
  background: var(--wlpc-paper);
  border-top: 1px solid var(--wlpc-ink-200);
  border-bottom: 1px solid var(--wlpc-ink-200);
}

.wlpc-index__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wlpc-ink-200);
  border-radius: var(--wlpc-r-md);
  overflow: hidden;
  box-shadow: var(--wlpc-shadow-sm);
}
@media (max-width: 900px) {
  .wlpc-index__grid { grid-template-columns: 1fr; }
}

.wlpc-index__item {
  background: var(--wlpc-paper);
  padding: 1.8rem 1.6rem;
  transition: all 0.38s var(--wlpc-ease);
  position: relative;
  cursor: pointer;
  display: block;
}
.wlpc-index__item:hover {
  background: var(--wlpc-warm-white);
  transform: translateY(-2px);
}
.wlpc-index__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--wlpc-grad-brand);
  transition: width 0.4s var(--wlpc-ease);
}
.wlpc-index__item:hover::before { width: 100%; }

.wlpc-index__num {
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--wlpc-sky);
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}
.wlpc-index__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  line-height: 1.5;
}
.wlpc-index__desc {
  font-size: 0.8rem;
  color: var(--wlpc-ink-500);
  margin-top: 0.5rem;
  line-height: 1.7;
}


/* ============================================================
   9. チャプターブロック
   ============================================================ */
.wlpc-chapter {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
}
.wlpc-chapter--warm {
  background: var(--wlpc-paper-warm);
}
.wlpc-chapter--gradient {
  background: linear-gradient(180deg, #FAFAF8 0%, #EEEAE0 100%);
}

/* チャプターヘッダー */
.wlpc-chapter__header {
  display: flex;
  align-items: flex-end;
  gap: 1.8rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--wlpc-ink-200);
}
.wlpc-chapter__num {
  font-family: var(--wlpc-font-serif);
  font-size: clamp(3.8rem, 7.5vw, 7rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.88;
  background: var(--wlpc-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.wlpc-chapter__num-label {
  font-family: var(--wlpc-font-en);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wlpc-ink-400);
  font-weight: 600;
  display: block;
  margin-bottom: 0.45rem;
}
.wlpc-chapter__title {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--wlpc-ink-900);
  line-height: 1.32;
  flex-grow: 1;
}

/* チャプター本文 */
.wlpc-chapter__body p {
  font-size: clamp(0.95rem, 1.4vw, 1.02rem);
  line-height: 2.05;
  color: var(--wlpc-ink-700);
  margin-bottom: 1.4rem;
}
.wlpc-chapter__body p strong {
  color: var(--wlpc-ink-900);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 62%, rgba(74, 143, 212, 0.14) 62%);
  padding: 0 0.12em;
}
.wlpc-chapter__body h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin: 2.8rem 0 1.1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--wlpc-navy-mid);
  line-height: 1.5;
}
.wlpc-chapter__body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin: 1.8rem 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wlpc-chapter__body h4::before {
  content: '◆';
  color: var(--wlpc-sky);
  font-size: 0.68rem;
}

/* ハイライト引用（9章のリード文） */
.wlpc-chapter__highlight {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  line-height: 1.9;
  color: var(--wlpc-ink-700);
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--wlpc-navy-mid);
  background: linear-gradient(90deg, rgba(46, 95, 163, 0.04), transparent);
  border-radius: 0 var(--wlpc-r-sm) var(--wlpc-r-sm) 0;
  margin-bottom: 1.4rem !important;
}
.wlpc-chapter__highlight strong {
  color: var(--wlpc-navy-mid);
  font-style: normal;
  font-family: var(--wlpc-font-jp);
}


/* ============================================================
   10. 定義カードグリッド
   ============================================================ */
.wlpc-def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
  margin: 2.2rem 0;
}

.wlpc-def-card {
  background: #fff;
  border-radius: var(--wlpc-r-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--wlpc-shadow-sm);
  border: 1px solid var(--wlpc-ink-100);
  transition: all 0.4s var(--wlpc-ease);
  position: relative;
  overflow: hidden;
}
.wlpc-def-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--wlpc-grad-brand);
  transition: height 0.5s var(--wlpc-ease);
}
.wlpc-def-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wlpc-shadow-md);
  border-color: transparent;
}
.wlpc-def-card:hover::before { height: 100%; }

.wlpc-def-card__label {
  font-family: var(--wlpc-font-en);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--wlpc-navy-mid);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.wlpc-def-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.wlpc-def-card__text {
  font-size: 0.88rem;
  color: var(--wlpc-ink-500);
  line-height: 1.85;
}


/* ============================================================
   11. 比較2カラム
   ============================================================ */
.wlpc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin: 2.2rem 0;
}
@media (max-width: 767px) { .wlpc-compare { grid-template-columns: 1fr; } }

.wlpc-compare__col {
  border-radius: var(--wlpc-r-md);
  padding: 2rem;
  position: relative;
}
.wlpc-compare__col--a {
  background: linear-gradient(135deg, #FEF6F6, #FCE8E8);
  border: 1px solid #F5C8C8;
}
.wlpc-compare__col--b {
  background: linear-gradient(135deg, #EFF5FE, #E2EEFE);
  border: 1px solid #C2D5F6;
}

.wlpc-compare__tag {
  display: inline-block;
  font-family: var(--wlpc-font-en);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}
.wlpc-compare__col--a .wlpc-compare__tag { background: #C0392B; color: #fff; }
.wlpc-compare__col--b .wlpc-compare__tag { background: var(--wlpc-navy-mid); color: #fff; }

.wlpc-compare__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.wlpc-compare__list { padding: 0; }
.wlpc-compare__list li {
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--wlpc-ink-700);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.7;
}
.wlpc-compare__list li::before {
  content: '';
  flex-shrink: 0;
  width: 17px; height: 17px;
  border-radius: 50%;
  margin-top: 0.18rem;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wlpc-compare__col--a .wlpc-compare__list li::before { content: '✕'; background: #C0392B; }
.wlpc-compare__col--b .wlpc-compare__list li::before { content: '✓'; background: var(--wlpc-navy-mid); }


/* ============================================================
   12. コードブロック
   ============================================================ */
.wlpc-code-block {
  background: #0C1120;
  border-radius: var(--wlpc-r-md);
  margin: 1.8rem 0;
  overflow: hidden;
  box-shadow: var(--wlpc-shadow-md);
  border: 1px solid #1C2840;
}
.wlpc-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  background: #080D1A;
  border-bottom: 1px solid #1C2840;
}
.wlpc-code-block__dots {
  display: flex;
  gap: 0.38rem;
}
.wlpc-code-block__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.wlpc-code-block__dots span:nth-child(1) { background: #FF5F57; }
.wlpc-code-block__dots span:nth-child(2) { background: #FEBC2E; }
.wlpc-code-block__dots span:nth-child(3) { background: #28C840; }
.wlpc-code-block__file {
  font-family: var(--wlpc-font-mono);
  font-size: 0.74rem;
  color: #8090A8;
  letter-spacing: 0.05em;
}
.wlpc-code-block__lang {
  font-family: var(--wlpc-font-en);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--wlpc-gold-soft);
  text-transform: uppercase;
  font-weight: 700;
}
.wlpc-code-block pre {
  padding: 1.5rem 1.3rem;
  overflow-x: auto;
  font-family: var(--wlpc-font-mono);
  font-size: 0.8rem;
  line-height: 1.88;
  color: #DCE3EE;
  margin: 0;
  white-space: pre;
}
.wlpc-code-block pre::-webkit-scrollbar { height: 5px; }
.wlpc-code-block pre::-webkit-scrollbar-track { background: transparent; }
.wlpc-code-block pre::-webkit-scrollbar-thumb { background: #263050; border-radius: 5px; }


/* ============================================================
   13. ASCII アート / 構造図
   ============================================================ */
.wlpc-ascii-art {
  background: var(--wlpc-paper);
  border: 1px dashed var(--wlpc-ink-300);
  border-radius: var(--wlpc-r-md);
  padding: 1.6rem;
  margin: 1.8rem 0;
  font-family: var(--wlpc-font-mono);
  font-size: clamp(0.72rem, 1.2vw, 0.83rem);
  line-height: 1.75;
  color: var(--wlpc-ink-700);
  white-space: pre;
  overflow-x: auto;
  position: relative;
}
.wlpc-ascii-art::before {
  content: 'STRUCTURE';
  position: absolute;
  top: 0.55rem; right: 0.9rem;
  font-family: var(--wlpc-font-en);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--wlpc-ink-300);
  font-weight: 700;
}


/* ============================================================
   14. テーブル
   ============================================================ */
.wlpc-table-wrap {
  overflow-x: auto;
  margin: 1.8rem 0;
  border-radius: var(--wlpc-r-md);
  box-shadow: var(--wlpc-shadow-sm);
}
.wlpc-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}
.wlpc-table-wrap thead th {
  background: linear-gradient(135deg, var(--wlpc-ink-900), var(--wlpc-ink-700));
  color: #fff;
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.wlpc-table-wrap tbody td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--wlpc-ink-100);
  color: var(--wlpc-ink-700);
  line-height: 1.7;
}
.wlpc-table-wrap tbody tr:last-child td { border-bottom: none; }
.wlpc-table-wrap tbody tr {
  transition: background 0.25s var(--wlpc-ease);
}
.wlpc-table-wrap tbody tr:hover { background: var(--wlpc-paper-warm); }
.wlpc-table-wrap tbody td:first-child {
  font-weight: 600;
  color: var(--wlpc-ink-900);
}


/* ============================================================
   15. アナロジーカード
   ============================================================ */
.wlpc-analogy {
  background: linear-gradient(135deg, #FFFCF5, #FEF7E2);
  border-radius: var(--wlpc-r-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  margin: 2.5rem 0;
  border: 1px solid var(--wlpc-gold-light);
  position: relative;
  overflow: hidden;
}
.wlpc-analogy::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 151, 60, 0.12), transparent 70%);
  pointer-events: none;
}
.wlpc-analogy__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--wlpc-gold);
  font-weight: 500;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}
.wlpc-analogy__label::before { content: '✦'; font-style: normal; }

.wlpc-analogy__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.8rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .wlpc-analogy__inner { grid-template-columns: 1fr; text-align: center; }
}
.wlpc-analogy__side {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  border-radius: var(--wlpc-r-md);
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.wlpc-analogy__side-label {
  font-family: var(--wlpc-font-en);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--wlpc-ink-500);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.wlpc-analogy__side-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin-bottom: 0.55rem;
}
.wlpc-analogy__side-text { font-size: 0.85rem; color: var(--wlpc-ink-600); line-height: 1.75; }
.wlpc-analogy__arrow { font-size: 1.6rem; color: var(--wlpc-gold); text-align: center; }
@media (max-width: 767px) {
  .wlpc-analogy__arrow { transform: rotate(90deg); }
}


/* ============================================================
   16. フロー図
   ============================================================ */
.wlpc-flow {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
}
.wlpc-flow__step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.8rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--wlpc-ink-100);
  align-items: flex-start;
  position: relative;
  transition: padding-left 0.35s var(--wlpc-ease), background 0.35s var(--wlpc-ease);
}
.wlpc-flow__step:hover {
  padding-left: 0.8rem;
  background: linear-gradient(90deg, rgba(46, 95, 163, 0.03), transparent);
}
.wlpc-flow__step:last-child { border-bottom: none; }
.wlpc-flow__step-num {
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 500;
  background: var(--wlpc-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.wlpc-flow__step-num::after {
  content: '';
  position: absolute;
  left: 50%; top: 115%;
  width: 1px; height: 2.5rem;
  background: linear-gradient(180deg, var(--wlpc-navy-mid), transparent);
}
.wlpc-flow__step:last-child .wlpc-flow__step-num::after { display: none; }
.wlpc-flow__step-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}
.wlpc-flow__step-content p {
  font-size: 0.92rem;
  color: var(--wlpc-ink-500);
  line-height: 1.88;
  margin: 0;
}
.wlpc-flow__step-content h4::before { display: none !important; } /* ch body の h4::before を無効化 */


/* ============================================================
   17. ロールトリオ（PHP/CSS/JS）
   ============================================================ */
.wlpc-role-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 2.5rem 0;
}
@media (max-width: 900px) { .wlpc-role-trio { grid-template-columns: 1fr; } }

.wlpc-role-card {
  background: #fff;
  border-radius: var(--wlpc-r-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wlpc-ink-100);
  transition: all 0.48s var(--wlpc-ease);
}
.wlpc-role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--wlpc-role-grad);
}
.wlpc-role-card--php { --wlpc-role-grad: linear-gradient(90deg, #1B3A6B, #2E5FA3); }
.wlpc-role-card--css { --wlpc-role-grad: linear-gradient(90deg, #2E5FA3, #4A8FD4); }
.wlpc-role-card--js  { --wlpc-role-grad: linear-gradient(90deg, #4A8FD4, #B8973C); }
.wlpc-role-card:hover { transform: translateY(-7px); box-shadow: var(--wlpc-shadow-lg); }

.wlpc-role-card__lang {
  font-family: var(--wlpc-font-en);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--wlpc-role-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.wlpc-role-card__analog {
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  color: var(--wlpc-ink-500);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.wlpc-role-card__analog::before { content: '≈'; font-style: normal; color: var(--wlpc-ink-400); }
.wlpc-role-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wlpc-ink-900);
  margin-bottom: 0.9rem;
}
.wlpc-role-card__list {
  font-size: 0.86rem;
  color: var(--wlpc-ink-600);
  line-height: 1.95;
  padding: 0;
}
.wlpc-role-card__list li {
  padding-left: 1.1rem;
  position: relative;
}
.wlpc-role-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.68rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--wlpc-ink-400);
}


/* ============================================================
   18. プロンプトブロック
   ============================================================ */
.wlpc-prompt-block {
  background: linear-gradient(135deg, #080D1A, #14213A);
  border-radius: var(--wlpc-r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  margin: 1.8rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #1F3050;
}
.wlpc-prompt-block::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(46, 95, 163, 0.22), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}
.wlpc-prompt-block__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  position: relative;
  z-index: 2;
}
.wlpc-prompt-block__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--wlpc-grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.wlpc-prompt-block__title {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wlpc-prompt-block__sub {
  font-family: var(--wlpc-font-en);
  font-size: 0.66rem;
  color: var(--wlpc-gold-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.18rem;
}
.wlpc-prompt-block pre {
  font-family: var(--wlpc-font-mono);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  color: #C5D0E0;
  line-height: 1.88;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  z-index: 2;
  margin: 0;
}
.wlpc-highlight { color: var(--wlpc-gold-light); font-weight: 600; }


/* ============================================================
   19. Tips ブロック
   ============================================================ */
.wlpc-tips {
  background: #fff;
  border-radius: var(--wlpc-r-md);
  padding: 1.6rem 1.8rem;
  margin: 1.4rem 0;
  border: 1px solid var(--wlpc-ink-100);
  border-left: 3px solid var(--wlpc-sky);
  box-shadow: var(--wlpc-shadow-sm);
}
.wlpc-tips__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--wlpc-font-en);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--wlpc-sky);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.wlpc-tips__label::before { content: '◎'; }
.wlpc-tips ul { padding: 0; }
.wlpc-tips li {
  padding: 0.38rem 0 0.38rem 1.2rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--wlpc-ink-700);
  line-height: 1.78;
}
.wlpc-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--wlpc-sky);
  font-weight: 700;
}


/* ============================================================
   20. インラインコード
   ============================================================ */
.wlpc-code-inline {
  font-family: var(--wlpc-font-mono);
  font-size: 0.84em;
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.08), rgba(46, 95, 163, 0.06));
  color: var(--wlpc-navy-mid);
  padding: 0.12em 0.5em;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid rgba(27, 58, 107, 0.14);
}


/* ============================================================
   21. 統計セクション（Chapter 12）
   ============================================================ */
.wlpc-stats {
  background: var(--wlpc-grad-hero);
  color: #fff;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}
.wlpc-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 50%, rgba(46, 95, 163, 0.3), transparent 62%),
    radial-gradient(ellipse at 72% 50%, rgba(27, 58, 107, 0.22), transparent 62%);
  pointer-events: none;
}
.wlpc-stats__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.wlpc-stats__eyebrow-wrap { text-align: center; margin-bottom: 0.8rem; }
.wlpc-stats__title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.9rem;
  line-height: 1.32;
}
.wlpc-stats__title em {
  font-style: italic;
  font-family: var(--wlpc-font-serif);
  font-weight: 500;
  background: linear-gradient(135deg, #fff, var(--wlpc-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wlpc-stats__lead {
  text-align: center;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(255, 255, 255, 0.62);
  max-width: 660px;
  margin: 0 auto 3.5rem;
  line-height: 1.95;
}

.wlpc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
@media (max-width: 900px) { .wlpc-stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wlpc-stats__grid { grid-template-columns: 1fr; } }

.wlpc-stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--wlpc-r-md);
  padding: 1.8rem 1.3rem;
  text-align: center;
  transition: all 0.4s var(--wlpc-ease);
}
.wlpc-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(184, 151, 60, 0.38);
}
.wlpc-stat-card__num {
  font-family: var(--wlpc-font-en);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--wlpc-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}
.wlpc-stat-card__num small { font-size: 1.1rem; font-weight: 500; }
.wlpc-stat-card__label { font-size: 0.78rem; color: rgba(255,255,255,0.68); letter-spacing: 0.04em; line-height: 1.7; }

/* 時間比較 */
.wlpc-stats__time-head { text-align: center; margin: 4.5rem 0 1.8rem; }
.wlpc-stats__time-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin-top: 0.7rem;
}
.wlpc-stats__time-num {
  background: var(--wlpc-grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-family: var(--wlpc-font-en);
  font-weight: 800;
}

.wlpc-time-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.8rem;
  align-items: center;
  margin: 0;
}
@media (max-width: 767px) { .wlpc-time-compare { grid-template-columns: 1fr; } }

.wlpc-time-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--wlpc-r-md);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
}
.wlpc-time-col h4 {
  font-family: var(--wlpc-font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--wlpc-gold-light);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.wlpc-time-col ul { padding: 0; }
.wlpc-time-col li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.wlpc-time-col li:last-child {
  border: none;
  font-weight: 700;
  color: #fff;
  padding-top: 1.1rem;
  font-size: 0.95rem;
}
.wlpc-time-col li span:last-child {
  font-family: var(--wlpc-font-mono);
  color: var(--wlpc-gold-soft);
}
.wlpc-time-arrow {
  text-align: center;
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  color: var(--wlpc-gold-soft);
  font-size: 1.8rem;
}
@media (max-width: 767px) {
  .wlpc-time-arrow { transform: rotate(90deg); }
}


/* ============================================================
   22. マニフェスト（まとめ）
   ============================================================ */
.wlpc-manifesto {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--wlpc-paper);
  position: relative;
  overflow: hidden;
}
.wlpc-manifesto::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; height: 80vw;
  max-width: 880px; max-height: 880px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 95, 163, 0.07), transparent 70%);
  pointer-events: none;
}
.wlpc-manifesto__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.wlpc-manifesto__mark {
  font-family: var(--wlpc-font-serif);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  background: var(--wlpc-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.8rem;
  display: block;
}
.wlpc-manifesto__quote {
  font-family: var(--wlpc-font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.72;
  color: var(--wlpc-ink-800);
  margin-bottom: 2.5rem;
  border: none;
  padding: 0;
  background: none;
}
.wlpc-em {
  background: var(--wlpc-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.wlpc-manifesto__signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--wlpc-font-en);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: var(--wlpc-ink-400);
  text-transform: uppercase;
  font-weight: 600;
}
.wlpc-manifesto__signature::before,
.wlpc-manifesto__signature::after {
  content: '';
  width: 55px; height: 1px;
  background: var(--wlpc-ink-300);
}
.wlpc-manifesto__card {
  margin-top: 5rem;
  padding: 2.6rem;
  background: #fff;
  border-radius: var(--wlpc-r-lg);
  box-shadow: var(--wlpc-shadow-md);
  text-align: left;
  border: 1px solid var(--wlpc-ink-100);
}
.wlpc-manifesto__card p {
  font-size: clamp(0.95rem, 1.4vw, 1.04rem);
  line-height: 2.05;
  color: var(--wlpc-ink-700);
  margin: 0.75rem 0 0;
}
.wlpc-manifesto__card p strong { color: var(--wlpc-ink-900); font-weight: 700; }
.wlpc-strong-accent { color: var(--wlpc-navy-mid) !important; }

/* CTA ブロック */
.wlpc-cta {
  margin-top: 4rem;
  padding: 3rem 2.5rem;
  background: var(--cta-bg, var(--wlpc-navy));
  border-radius: var(--wlpc-r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wlpc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 50%);
  pointer-events: none;
}
.wlpc-cta__btn {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: #fff;
  color: var(--cta-bg, var(--wlpc-navy));
  font-weight: 800;
  font-size: 1rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: all 0.35s var(--wlpc-ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  min-height: 48px;
  position: relative;
  z-index: 1;
}
.wlpc-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}
.wlpc-cta__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1.1rem;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}


/* ============================================================
   23. スクロールリビール アニメーション
   ============================================================ */
.wlpc-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--wlpc-ease), transform 0.9s var(--wlpc-ease);
}
.wlpc-reveal.wlpc-visible {
  opacity: 1;
  transform: translateY(0);
}
.wlpc-reveal-x {
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity 0.85s var(--wlpc-ease), transform 0.85s var(--wlpc-ease);
}
.wlpc-reveal-x.wlpc-visible {
  opacity: 1;
  transform: translateX(0);
}

/* スタガード（連続遅延）用クラス */
.wlpc-stagger > * {
  transition-delay: calc(var(--wlpc-i, 0) * 80ms);
}


/* ============================================================
   24. タップ領域の保証（モバイル）
   ============================================================ */
.wlpc-lp a,
.wlpc-lp button {
  min-height: 44px;
  min-width: 44px;
}
.wlpc-nav__menu a { min-height: unset; } /* ナビメニューは除外 */


/* ============================================================
   25. ユーティリティ
   ============================================================ */
/* フォント継承を明示（Cocoon のリセット対策） */
.wlpc-lp input,
.wlpc-lp textarea,
.wlpc-lp select {
  font-family: var(--wlpc-font-jp);
}

/* WordPress の `.screen-reader-text` との共存 */
.wlpc-lp .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ============================================================
   26. 図解画像（ダイアグラムフィギュア）
   ============================================================ */
.wlpc-diagram {
  margin: 2.8rem auto;
  max-width: 600px;
  text-align: center;
}
.wlpc-diagram__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--wlpc-r-lg);
  box-shadow: var(--wlpc-shadow-md);
  border: 1px solid var(--wlpc-ink-100);
  display: block;
  background: var(--wlpc-ink-100); /* ロード前のプレースホルダー色 */
  transition: box-shadow 0.4s var(--wlpc-ease);
}
.wlpc-diagram__img:hover {
  box-shadow: var(--wlpc-shadow-lg);
}
.wlpc-diagram__caption {
  margin-top: 1rem;
  font-family: var(--wlpc-font-en);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wlpc-ink-400);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.wlpc-diagram__caption::before,
.wlpc-diagram__caption::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--wlpc-ink-300);
  flex-shrink: 0;
}
/* ダーク背景セクション（Chapter 12 / stats）内では白系に反転 */
.wlpc-stats .wlpc-diagram__img {
  border-color: rgba(255, 255, 255, 0.12);
}
.wlpc-stats .wlpc-diagram__caption {
  color: rgba(255, 255, 255, 0.5);
}
.wlpc-stats .wlpc-diagram__caption::before,
.wlpc-stats .wlpc-diagram__caption::after {
  background: rgba(255, 255, 255, 0.2);
}
