/* home.css — トップページ専用の見た目。
   ⚠ トップでだけ読み込まれる（index.php が view=home の時に <link> を出す）。
   ⚠ 共通の見た目は style.css が持つ。ここに書くのは**トップにしか出ない部品**だけ。
   ⚠ 中身は本番 LIVE PORTAL の /assets/original/index.css をそのまま持ってきたもの
      （2026-08-21）。本番と同じクラス名・同じ値なので、本番側を直したらここも同じ差分を当てる。
   ⚠ .content-h2 は style.css が既に持っているので足していない（二重定義を作らない）。
   ⚠ .hero の背景画像はここに書かない。トップの hero はキャラ画像で組む
      （LIVE PORTAL の site_settings.hero_image は空）。
   ⚠ <main> の幅を外すのは style.css の main.has-hero。home.php がそのクラスを付ける
      （ここで main を上書きしない）。 */

/* ── 本番のインライン :root から、このファイルが使う変数だけを持ってくる ────────
   ⚠ --blue / --red は style.css の :root が同じ値（#0047AB / #BA3720）で持っているので足さない。
      ここに置くのは style.css に無い6つだけ。 */
:root {
  --blue-soft: #E8F0FA;
  --ink:       #1e293b;
  --gray-bg:   #fafbfc;
  --gray-soft: #f1f5f9;
  --gray-line: #e8ecf0;
  --gray-text: #64748b;
}

/* 本番はインラインの <style> で .font-en を定義していた（index.css には無い）。
   Inter は parts.php の site_head() が読み込んでいるので、ここで指定すれば効く。 */
.font-en { font-family: 'Inter', sans-serif; }

/* simple-heading：トップの見出しを「文字の大きさだけ」で階層表現する。
   style.css の .content-h2（地色つきの帯）を打ち消す。
   ⚠ 要素名を付けた h2.simple-heading の形にすること。.simple-heading 単独だと
      .content-h2 と詳細度が同じになり、記述順で勝敗が変わる。 */
h2.simple-heading {
  background: none;
  background-image: none;
  border: 0;
  padding: 0;
  color: #111827;
  font-weight: 700;
  line-height: 1.4;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

/* ⚠ ここから下は本番の index.css をそのまま移したもの。simple-heading は**この位置より前**に置く。
      本番は original.css（simple-heading）→ index.css の順で読むので、詳細度が並んだ時は
      index.css 側が勝つ。1ファイルにまとめる時に順番を逆にすると、`.pain-head h2` の
      `color:#fff` が `h2.simple-heading` の `color:#111827` に負け、濃紺の背景に濃い文字が
      乗って読めなくなる（2026-08-21 に実際に起きた）。 */

  /* ─────────────────────────────────────────
     ヒーロー（白基調・柔らか）
     ───────────────────────────────────────── */
  .hero {
    position: relative;
    background: #ffffff;
    padding: 32px 0 40px;
    overflow: hidden;
  }
  .hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "text   visual"
      "cta    visual";
    gap: 20px 48px;
    align-items: center;
  }
  .hero__content { grid-area: text; align-self: end; }
  .hero__panel { grid-area: visual; }
  .hero__actions { grid-area: cta; align-self: start; }

  /* バッジ（ヒーロー上） */
  .hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--gray-text);
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .hero__label .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(186,55,32,0.15);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(186,55,32,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(186,55,32,0); }
  }

  /* メイン見出し */
  .hero__title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
  }
  .hero__title .accent-pen {
    background-image: linear-gradient(transparent 65%, rgba(255, 207, 110, 0.55) 65%, rgba(255, 207, 110, 0.55) 95%, transparent 95%);
    padding: 0 .15em;
  }

  .hero__copy {
    font-size: 16px;
    line-height: 1.95;
    color: var(--gray-text);
    margin-bottom: 0;
    max-width: 500px;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  /* hero CTA ボタン（静止グラデ）。
     2026-08-10：.btn-main と .btn-rich の 2 クラスに割れていたが、markup は常に両方を
     同時に付けており computed も完全一致だったため 1 クラスにまとめた。旧 .btn-main の
     background / box-shadow と :hover は .btn-rich に全部上書きされて死んでいた。 */
  .btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 32px;
    min-width: 280px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #0047ab 0%, #0a0a0c 50%, #ba3720 100%);
    background-size: 100% 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22),
                0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all .25s ease;
  }
  .btn-main:hover {
    background-size: 200% 200%;
    animation: btn-gradient-shift 3s ease infinite;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 71, 171, 0.22),
                0 4px 10px rgba(186, 55, 32, 0.16);
  }
  @keyframes btn-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
  }
  /* テキスト 2 段組 */
  .btn-text {
    position: relative; z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
  }
  .btn-label-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  .btn-label-sub {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-top: 3px;
  }
  /* 右の矢印 */
  .btn-arrow {
    position: relative; z-index: 2;
    font-size: 12px;
    transition: transform 0.3s ease;
  }
  .btn-main:hover .btn-arrow {
    transform: translateX(6px);
  }
  /* 減衰モーション設定 */
  @media (prefers-reduced-motion: reduce) {
    .btn-main { animation: none; }
  }
  .btn-sub {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: white;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    border: 1.5px solid var(--gray-line);
    transition: all .25s ease;
  }
  .btn-sub:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
  }

  /* ヒーロービジュアル（3キャラ横並び・ステージ風） */
  .hero__panel {
    position: relative;
    width: 100%;
  }
  .characters-stage {
    position: relative;
    height: 520px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding-bottom: 20px;
  }
  .character {
    position: relative;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .character img {
    max-height: 100%;
    max-width: 165%;
    object-fit: contain;
    object-position: bottom center;
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.2));
  }
  /* サイドは少し小さく内側へ寄せ、中央は手前に大きく見せる */
  .character:nth-child(1) {
    z-index: 2;
    transform: translate(17%, 10px) scale(0.96) rotate(-2deg);
    transform-origin: bottom center;
  }
  .character:nth-child(2) {
    z-index: 3;
    transform: translateY(-8px) scale(1.12);
    transform-origin: bottom center;
  }
  .character:nth-child(3) {
    z-index: 2;
    transform: translate(-17%, 10px) scale(0.96) rotate(2deg);
    transform-origin: bottom center;
  }
  .character:hover { z-index: 4; }
  .character:hover img { transform: scale(1.04); }

  /* 地面の楕円シャドウ（接地感）*/
  /* picture を flex 下揃えにして img の底 = picture の底に固定 */
  .character picture {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    max-width: 165%;
  }
  /* 影は img の足元直下に配置 */
  .character picture::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60%;
    height: 16px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0) 70%);
    pointer-events: none;
    z-index: 0;
  }
  .character picture img {
    position: relative;
    z-index: 1;
  }

  /* キャラの背後にステージ的な光（青→ピンク→黄）*/
  .character::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 100%;
    height: 70%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(52px);
    z-index: -1;
  }
  .character:nth-child(1)::before { background: rgba(0, 71, 171, 0.32); }    /* EXiST青 */
  .character:nth-child(2)::before { background: rgba(186, 55, 32, 0.32); }   /* EXiST赤 */
  .character:nth-child(3)::before { background: rgba(255, 207, 110, 0.55); } /* 黄 */

  /* ─── キャラ登場アニメーション（影 → 中央 → 左 → 右 → 背景色）─── */
  /* 画像は初期は透明、順次フェードイン */
  .character picture img {
    opacity: 0;
    animation: char-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  /* 背景色（::before）は初期は透明、全キャラの後に登場 */
  .character::before {
    opacity: 0;
    animation: glow-fade-in 0.9s ease forwards;
  }
  /* 影（picture::after）は最初から表示（アニメ無し）*/

  /* 登場順：中央(0.4s) → 左(0.9s) → 右(1.4s) → 背景色(1.9s〜)*/
  .character:nth-child(2) picture img { animation-delay: 0.4s; }
  .character:nth-child(1) picture img { animation-delay: 0.9s; }
  .character:nth-child(3) picture img { animation-delay: 1.4s; }
  .character:nth-child(2)::before { animation-delay: 1.9s; }
  .character:nth-child(1)::before { animation-delay: 2.0s; }
  .character:nth-child(3)::before { animation-delay: 2.1s; }

  @keyframes char-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes glow-fade-in {
    from { opacity: 0; }
    to   { opacity: 0.7; }
  }
  /* 減衰モーション設定時はアニメ抑制 */
  @media (prefers-reduced-motion: reduce) {
    .character picture img,
    .character::before {
      animation: none;
      opacity: 1;
    }
    .character::before { opacity: 0.7; }
  }

  /* キャラ群の下に共通の床ライン（淡いグラデ）*/
  .characters-stage::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15,23,42,0.12) 50%, transparent 100%);
  }

  /* スクロールヒント */
  .scroll-hint {
    text-align: center;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--gray-text);
    animation: bounce 2s ease-in-out infinite;
  }
  .scroll-hint i { display: block; margin-top: 6px; }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  /* ─────────────────────────────────────────
     マーキー
     ───────────────────────────────────────── */
  .marquee {
    background: var(--ink);
    color: white;
    overflow: hidden;
    padding: 16px 0;
  }
  .marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
  }
  .marquee-group {
    display: flex;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
  }
  .marquee-item {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    display: inline-flex;
    align-items: center;
    gap: 20px;
  }
  .marquee-item::after {
    content: '';
    width: 5px; height: 5px;
    background: var(--red);
    border-radius: 50%;
  }
  @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .marquee-inner { animation: none; }
  }

  /* ─────────────────────────────────────────
     悩み訴求セクション
     ───────────────────────────────────────── */
  .pain-section {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #0047ab 0%, #0a0a0c 50%, #ba3720 100%);
    color: #fff;
    overflow: hidden;
  }
  /* 紙のテクスチャ */
  .pain-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
  }
  /* 装飾オーブ */
  .pain-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
  }
  .pain-blob-1 { width: 380px; height: 380px; background: rgba(255, 255, 255, 0.05); top: -120px; left: -100px; }
  .pain-blob-2 { width: 320px; height: 320px; background: rgba(255, 255, 255, 0.05); bottom: -100px; right: -80px; }

  /* ドットパターン（暗背景なので白）*/
  .pain-dots {
    position: absolute;
    width: 140px; height: 140px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
  }
  .pain-dots-tl { top: 60px; left: 5%; }
  .pain-dots-br { bottom: 60px; right: 5%; }

  /* 縦ライン装飾（暗背景なので白）*/
  .pain-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
    z-index: 1;
  }
  .pain-line-l { left: 10%; }
  .pain-line-r { right: 10%; }

  .pain-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* タイトルエリア */
  .pain-head {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
  }
  /* 大きな引用符装飾 */
  .pain-head::before {
    content: '?';
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.08);
    pointer-events: none;
    z-index: -1;
  }
  .pain-head .sub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.25em;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .pain-head .sub::before, .pain-head .sub::after {
    content: '';
    width: 28px;
    height: 1px;
    background: rgba(255,255,255,0.5);
  }
  .pain-head h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
  }
  .pain-head h2 .point {
    display: inline-block;
  }

  /* グリッド */
  .pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
  }
  @media (max-width: 900px) {
    .pain-grid { grid-template-columns: 1fr; max-width: 560px; }
  }

  .pain-card {
    background: white;
    border-radius: 20px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 24px rgba(15,23,42,0.04), 0 2px 4px rgba(15,23,42,0.02);
    position: relative;
    overflow: hidden;
  }

  .pain-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .pain-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink);
  }

  /* 下部の解決メッセージ */
  .pain-arrow {
    text-align: center;
    margin-top: 56px;
    position: relative;
  }
  /* ⛔ @keyframes bounceDown は 2026-08-10 に削除。animation から参照している箇所が
        コードベース全体でゼロだった（定義のみの死蔵）。 */
  .pain-arrow-text {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.7;
  }
  .pain-arrow-text .em {
    color: #fff;
  }

  /* ─────────────────────────────────────────
     セクション共通見出し
     ───────────────────────────────────────── */
  .sec-head {
    text-align: center;
    margin-bottom: 56px;
  }
  .sec-head .num {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .sec-head .num::before, .sec-head .num::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--blue);
  }
  .sec-head h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .sec-head h2 .marker {
    background: linear-gradient(transparent 65%, rgba(255, 217, 130, 0.7) 65%);
    padding: 0 .2em;
  }
  .sec-head p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
  }

  /* ─────────────────────────────────────────
     プラットフォーム
     ───────────────────────────────────────── */
  .platform-section { padding: 80px 0; background: white; }
  .platform-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
  .platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  @media (max-width: 640px) {
    .platform-grid { grid-template-columns: 1fr; }
  }
  .platform-card {
    --brand: #0047ab;
    background: white;
    border-radius: 20px;
    padding: 36px 32px 30px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow:
      0 20px 40px -12px rgba(15, 23, 42, 0.12),
      0 6px 16px -6px rgba(15, 23, 42, 0.06);
  }
  /* シリアル番号（右上・控えめ）*/
  .platform-num {
    position: absolute;
    top: 32px; right: 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--gray-text);
    line-height: 1;
  }
  .platform-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
  }
  .platform-logo {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--gray-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  .platform-logo img { width: 38px; height: 38px; object-fit: contain; }
  .platform-meta { flex: 1; min-width: 0; }
  .platform-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: inline-block;
  }
  /* アクセント線（EXiSTカラーグラデーション）*/
  .platform-name::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    margin-top: 8px;
    margin-bottom: 10px;
    border-radius: 2px;
  }
  .platform-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .platform-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--gray-soft);
    color: var(--gray-text);
    border-radius: 6px;
    font-weight: 600;
  }
  .platform-desc {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.85;
    margin: 18px 0 22px;
    min-height: 3.7em;
  }
  .platform-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
  .btn-stream {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 16px;
    background: var(--ink);
    color: white;
    font-size: 13px; font-weight: 700;
    border-radius: 999px;
  }

  /* ─────────────────────────────────────────
     記事
     ───────────────────────────────────────── */
  .articles-section {
    background: linear-gradient(135deg, #0047ab 0%, #0a0a0c 50%, #ba3720 100%);
    color: #fff;
    padding: 80px 0;
  }
  .articles-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
  /* 記事セクションの見出し（白基調・マーカー無し）*/
  .articles-section .sec-head .num { color: rgba(255,255,255,0.85); }
  .articles-section .sec-head .num::before,
  .articles-section .sec-head .num::after { background: rgba(255,255,255,0.5); }
  .articles-section .sec-head h2 { color: #fff; }
  .articles-section .sec-head h2 .marker { background: none; padding: 0; }
  .articles-section .sec-head p { color: rgba(255,255,255,0.75); }

  .article-list {
    background: rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
  }
  .article-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
    transition: background .2s ease;
  }
  .article-row:last-child { border-bottom: none; }
  .article-row:hover { background: rgba(255,255,255,0.06); }
  .article-row:hover .article-arrow { transform: translateX(4px); }
  .article-date { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }
  .article-row > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
  }
  /* ⚠ 本番は style="background: #FF8C00" のようにカテゴリごとの色を直書きしていたが、
     CPU の category_configs は色の列を持たない（category / type / label / sort_order の4列だけ）。
     色の正本が無いので、サイトのメインカラー1色で塗る（→ home.php は style 属性を出さない）。 */
  .article-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    color: white;
    background: var(--main);
    border-radius: 4px;
    flex-shrink: 0;
  }
  .article-title { font-size: 15px; font-weight: 700; line-height: 1.6; color: #fff; transition: color .2s ease; }
  .article-arrow { font-size: 14px; color: rgba(255,255,255,0.7); transition: all .2s ease; }
  .articles-more { text-align: center; margin-top: 32px; }

  /* ─────────────────────────────────────────
     統計
     ───────────────────────────────────────── */
  .stats-section { background: white; padding: 80px 0; }
  .stats-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .stat {
    background: var(--gray-bg);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
  }
  .stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--gray-text);
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
  }
  .stat-suffix {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
    margin-left: 4px;
  }

  /* ─────────────────────────────────────────
     EXiSTカード
     ───────────────────────────────────────── */
  .agency-section { background: var(--gray-bg); padding: 80px 0; }
  .agency-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
  .agency-card {
    background: white;
    border-radius: 24px;
    padding: 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    border: 1px solid var(--gray-line);
  }
  .agency-logo {
    width: 80px; height: 80px;
    border: 1px solid var(--gray-line);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: white;
  }
  .agency-logo img { height: 36px; width: auto; }
  .agency-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
  .agency-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .agency-tag {
    font-size: 10px; padding: 3px 9px;
    background: white; border: 1px solid var(--ink);
    color: var(--ink); font-weight: 700; border-radius: 4px;
  }
  .agency-tag.featured { background: var(--red); border-color: var(--red); color: white; }
  .agency-catch { font-size: 13px; color: var(--gray-text); line-height: 1.8; margin-bottom: 14px; }
  .agency-merits { display: flex; flex-wrap: wrap; gap: 16px; }
  .agency-merit { font-size: 12px; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
  .agency-merit i { color: var(--red); font-size: 11px; }

  /* ─────────────────────────────────────────
     エリア
     ───────────────────────────────────────── */
  .area-section { background: white; padding: 80px 0; }
  .area-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
  .area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  .area-cell {
    background: var(--gray-bg);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .25s ease;
  }
  .area-cell:hover {
    background: var(--ink);
    color: white;
    transform: translateY(-2px);
  }
  .area-cell:hover .area-count { color: rgba(255,255,255,0.6); }
  .area-name { font-size: 14px; font-weight: 700; }
  .area-count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 700;
  }

  /* ─────────────────────────────────────────
     EXiST CTAバナー（2026-08-11：旧 Tailwind ユーティリティから移行。
     元が sm:/md: の min-width ブレークポイントだったため、他ブロックの
     max-width 方式と揃えず min-width のまま踏襲している）
     ───────────────────────────────────────── */
  .cta-section { background: white; }
  .cta-wrap {
    max-width: 672px;
    margin: 0 auto;
    padding: 48px 24px;
  }
  @media (min-width: 768px) {
    .cta-wrap { padding-top: 64px; padding-bottom: 64px; }
  }
  .cta-card {
    border-radius: 16px;
    overflow: hidden;
  }
  .cta-card-inner {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }
  .cta-note {
    font-size: 12px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
  }
  @media (min-width: 640px) {
    .cta-note { font-size: 14px; }
  }
  .cta-heading {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.375;
    margin-bottom: 20px;
  }
  @media (min-width: 640px) {
    .cta-heading { font-size: 20px; }
  }
  .cta-desc {
    font-size: 14px;
    color: white;
  }
  @media (min-width: 640px) {
    .cta-desc { font-size: 16px; }
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background-color .15s ease;
  }
  .cta-btn:hover { background: #f3f4f6; }
  @media (min-width: 640px) {
    .cta-btn { width: 60%; font-size: 16px; }
  }
  .cta-btn__icon { width: 20px; height: 20px; }

  /* ─────────────────────────────────────────
     スクロール演出
     ───────────────────────────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ─────────────────────────────────────────
     レスポンシブ
     ───────────────────────────────────────── */
  @media (max-width: 1024px) {
    .hero__inner { gap: 32px; }
    .characters-stage { height: 520px; }
    .character img { max-width: 150%; }
  }
  @media (max-width: 900px) {
    .hero { padding: 20px 0 28px; }
    .hero__inner {
      grid-template-columns: 1fr;
      grid-template-areas:
        "text"
        "visual"
        "cta";
      gap: 14px;
      padding: 0 20px;
      max-width: 560px;
    }
    .hero__content { align-self: stretch; }
    .hero__actions { justify-content: center; align-self: stretch; }
    .hero__label { display: none; }
    .hero__title { font-size: clamp(28px, 7vw, 40px); line-height: 1.45; margin-bottom: 14px; text-align: center; }
    .hero__copy { font-size: 15px; line-height: 1.85; margin-bottom: 0; text-align: center; }
    .btn-main, .btn-sub { padding: 14px 22px; font-size: 13px; min-width: 0; }
    /* キャラはスマホでも横並び・主役感ある中サイズ */
    .characters-stage {
      height: clamp(320px, 70vw, 470px);
      padding-bottom: 16px;
    }
    .character img {
      max-width: 155%;
      filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.18));
    }
    .character:nth-child(1) { transform: translate(13%, 18px) scale(0.94) rotate(-2deg); }
    .character:nth-child(2) { transform: translateY(7px) scale(1.10); }
    .character:nth-child(3) { transform: translate(-13%, 18px) scale(0.94) rotate(2deg); }
    .character picture::after { width: 60%; height: 12px; }
    .character::before { width: 110%; height: 60%; filter: blur(40px); }
    .scroll-hint { margin-top: 16px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .agency-card { grid-template-columns: 1fr; text-align: left; }
    .article-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .article-row .article-arrow { display: none; }
  }
  @media (max-width: 480px) {
    .hero__inner { padding: 0 18px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .btn-main, .btn-sub { justify-content: center; width: 100%; }
  }

/* ── 本番の original.css（全ページ共通CSS）から、トップだけが使う4クラスを持ってくる ──
   ⚠ style.css を grep して未定義であることを確認済み（2026-08-21）。 */

/* 見出しの改行を、広い画面では無効にする（本番の .br-hide-md / .br-hide-sm と同じ）。 */
@media (min-width: 768px) { .br-hide-md { display: none; } }
@media (min-width: 640px) { .br-hide-sm { display: none; } }

/* ボタン内の小さめアイコン。inline svg の width/height:1em が font-size を継承するので、
   周囲の文字より一段小さい 12px になる。 */
.icon-sm { font-size: 0.75rem; }

