/* =============================================================
   Supramentor - Neuro-Friendly Design
   脳腫瘍患者にやさしい × 集客に強いデザイン
   
   Design Principles:
   1. 光過敏対応：オフホワイト背景、彩度を抑えた配色（純白#fff排除）
   2. 認知負荷低減：左寄せ、広い行間、十分な余白
   3. 前庭障害対応：穏やかなアニメーション + prefers-reduced-motion
   4. 集客力：CTAは明確なコントラスト、導線をしっかり設計
   5. WCAG AA準拠：コントラスト比4.5:1以上
   ============================================================= */

:root {
    /* --- 光過敏対応：温かみのあるオフホワイト系 --- */
    --color-bg: #f6f3ee;
    --color-bg-soft: #edeae4;
    --color-bg-alt: #e7e3dd;
    --color-bg-white: #fbf9f6;

    /* テキスト：純黒を避けた目に優しいダークトーン */
    --color-text: #3d3832;
    --color-text-light: #5a524a;
    --color-text-muted: #6b6360;

    /* プライマリー：少し温かみを加えたティール */
    --color-primary: #5f9e9f;
    --color-primary-light: #dce9ea;
    --color-primary-dark: #1a6263;
    --color-primary-deep: #145455;
    --color-primary-bg: #edf3f3;

    /* セカンダリー（CTA用）：落ち着いたウォーム */
    --color-secondary: #c4856e;
    --color-secondary-light: #e8c4b6;
    --color-warm: #c4856e;
    --color-accent: #c4856e;
    --color-accent-light: #e8c4b6;

    /* ボーダー */
    --color-border: #ddd6cd;
    --color-border-light: #e8e3db;

    /* フォント */
    --font-display: 'Kaisei Opti', serif;
    --font-body: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Kaisei Opti', serif;

    /* シャドウ：控えめ */
    --shadow-soft: 0 2px 8px rgba(61,56,50,0.04);
    --shadow-card: 0 3px 16px rgba(61,56,50,0.06);
    --shadow-hover: 0 6px 24px rgba(61,56,50,0.09);

    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --section-padding: 4rem 2rem;
    --max-width: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* ★ 縦スクロールバーの場所を常に確保する。
       ページを開いた直後は中身が短くスクロールバーが無い→画像等が読まれて
       中身が伸びるとスクロールバーが出る。その瞬間、画面が約15px狭くなり、
       中央寄せの nav(max-width:1140px, margin:0 auto) が約7.5px左へ動いていた。
       （＝「一瞬右に出て、左に戻る」の正体。開発者ツールを開くと最初から
         画面が狭くスクロールバーが出た状態になるため再現しなかった）
       てんかんのある方への配慮として、常に場所を空けて幅を一定に保つ。 */
    scrollbar-gutter: stable;
}
/* ★ スマホで画面が上下に小刻みに揺れる現象への保険。
   横方向のわずかなはみ出しがあると、スクロール中に再計算が起きて
   揺れの一因になることがあるため、横はみ出しを禁止して安定させる。
   見た目・動作は変わらない。 */
html, body { overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 2;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-primary-light); }

/* ===== prefers-reduced-motion 対応 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up { opacity: 1 !important; transform: none !important; }
    .loader { display: none !important; }
}

/* ===== Scroll Animation ===== */
.fade-in-up { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Loader ===== */
.loader { position: fixed; inset: 0; background: var(--color-bg); z-index: 10000; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-leaf { font-size: 3rem; animation: leafFloat 3s ease-in-out infinite; }
@keyframes leafFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.loader-text { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--color-primary); letter-spacing: 0.12em; margin-top: 1rem; }
.loader-tagline { display: block; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* ===== Header ===== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0; transition: background 0.4s, box-shadow 0.4s; background: transparent; }
header.scrolled { background: rgba(246,243,238,0.97); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--color-border); }
/* ★ チャットボットを開いている間は、サイトのヘッダーを隠す。
   横向きでヘッダーの「Supra Mentor」がチャット内に重なって見える問題の対策。
   （body.chat-open は pet.js がチャット開閉に合わせて付け外しする） */
body.chat-open header { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }
nav { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 2rem; }
.logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--color-primary); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-links { display: flex; gap: 0.8rem; list-style: none; align-items: center; flex-wrap: nowrap; }
.nav-links a { text-decoration: none; color: var(--color-text); font-size: 0.82rem; font-weight: 500; transition: color 0.3s; white-space: nowrap; }
.nav-links a.nav-active { color: var(--color-primary-dark, #1a6263); font-weight: 700; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--color-primary-dark, #1a6263); }
/* ★ nav-active の下線を border-bottom で表現することで、
      ::after に依存しないため ▼アイコン (nav-dropdown-trigger::after) と両立できる */
.nav-links a:hover { color: var(--color-primary); }
/* ★ お知らせの鈴(#annBellBtn)が無いページで、鈴と同じ幅の余白を確保する。
      ヘッダーは右揃えのため、鈴が有るページ(ホーム)だけ項目が約45px左にずれ、
      ページを移動すると「ヘッダーが横に動く」ように見えていた。
      鈴が無いページに見えない場所取りを入れて、全ページで位置をそろえる。
      幅 = 鈴のボタン32px + .nav-links の gap 0.8rem(12.8px)。
      :has() 対応外の古いブラウザでは何も起きない（従来どおり＝安全に無視される）。
      1024px以下はナビが縦のドロワーになるため対象外。 */
@media (min-width: 1025px) {
    .nav-links:not(:has(#annBellBtn))::after {
        content: '';
        width: 32px;
        flex: 0 0 auto;
        pointer-events: none;
    }
}
/* ★ 「管理画面」リンクの扱い（第47で方針変更）
      ---------------------------------------------------------------
      【以前】管理者かどうかに関わらず場所だけ確保し、隠すときは
        visibility:hidden にしていた。firebase が管理者と確定した時点で
        リンクが現れ、ヘッダーが約65px横に動いていたため（実測 -64.80px）、
        てんかんのある方への配慮としてその動きを消すのが目的だった。

      【なぜ変えたか】
      ① ちらつき対策が別の場所に入った。nav-boot.js が
         localStorage の supramentor_navState に {in, admin} を保存し、
         各ページの <head> 最上部でそれを読んで nav-admin を付けている。
         2回目以降の訪問は最初の1フレームからリンクが出るので、
         場所を確保しなくても動かない。
      ② 予約は html.nav-out にも掛かっていたため、ログアウト中の方
         （＝初めて来た方を含む全員）にも空きが見えていた。
         守っている人数より、空きを見ている人数の方がはるかに多かった。
      ③ 空きの幅は「管理画面」という日本語の文字幅。英語は Admin と短く、
         言語によってヘッダーの並びが変わっていた。

      【いま】非管理者・ログアウト中は display:none で場所ごと消す。
      残る揺れは「管理者がその端末で初めてログインした瞬間」の一度だけで、
      そのときはログイン/新規登録 → マイページ/ログアウト の
      大きな組み替えが同時に起きているため、新しい動きにはならない。

      ⚠️ この指定は bundle.min.css にも同じ内容が入っている。
         片方だけ直すとページを移ったときにヘッダーがずれる（㊱と同じ事故）。
      ⚠️ 各ページの <head> にある
         html.nav-in:not(.nav-admin) #navAdminLi{display:none!important}
         と同じ意図。ここは詳細度を上げてあるので、どちらが勝っても結果は同じ。
      ※ 1024px以下はナビが縦のドロワーになるため対象外。 */
@media (min-width: 1025px) {
    html.nav-in:not(.nav-admin) body header nav .nav-links li#navAdminLi,
    html.nav-out body header nav .nav-links li#navAdminLi {
        display: none !important;
    }
    html.nav-in.nav-admin body header nav .nav-links li#navAdminLi {
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

.nav-cta { background: var(--color-primary) !important; color: var(--color-bg-white) !important; padding: 0.55rem 1.3rem !important; border-radius: var(--radius-sm) !important; font-weight: 600 !important; transition: background 0.3s !important; }
/* ★ ヘッダーの無料相談ボタンは、読み込み後に free-cta.js が文言を差し替える
      （無料相談 → 📅 予約を確認 / セッション予約）。文字数が違うとボタンの幅が変わり、
      ヘッダーが右揃えのため項目全体が横に動いて見えていた。
      光の点滅や画面の揺れは、てんかんのある方に負担となるため、
      いちばん長い文言に合わせて幅を固定し、1pxも動かないようにする。
      実測(文字のみ): 無料相談=52px / 📅 予約を確認=85px / セッション予約=91px
      対策：ボタン(<a>)の見た目の大きさは文言なりのまま（＝元の自然な見た目を維持）にし、
            それを包む <li> の幅だけを最長の文言に合わせて固定する。
            ボタンは <li> の中で中央に置かれるので、文言が変わっても
            <li> の幅＝ヘッダー全体の幅は 1px も変わらない。
      ※ 1024px以下はナビが縦のドロワーになり横並びでないため対象外。 */
/* ★ 2026/08 多言語化：枠幅を言語ごとに決められるようにする。
      英語 "Book a session" / スペイン語 "Reservar sesión" は
      日本語の「セッション予約」より長く、133px の枠からはみ出す。
      bundle.min.css には fix-all.js の②が同じ修正を入れているが、
      style.css は取り残されていた。そのため
        index.html（bundle.min.css）  → 176px
        counselors.html（style.css）  → 133px 固定
      となり、英語でページを移動するとヘッダーが 43px 横に動いていた。

      ⚠️ max() の中に max-content は書けない（7章③）。
         width: max(var(--nav-cta-w,133px), max-content) と書くと
         width の指定ごと無効になり、日本語で 133px→94px に縮む。 */
html:lang(en), html:lang(es) { --nav-cta-w: 176px; }

@media (min-width: 1025px) {
    /* 場所取りの枠。日本語は最長の文言「セッション予約」(133px)。
       英語・スペイン語は上の :lang() で 176px に広がる。 */
    header .nav-links > li:has(> .nav-cta) {
        width: var(--nav-cta-w, 133px);
        display: flex;
        justify-content: center;
        flex: 0 0 auto;
    }
    /* ボタン自体は文言なりの自然な大きさ（元のまま） */
    header .nav-links .nav-cta {
        white-space: nowrap;
    }
}
.nav-theme-btn { background: none; border: 1.5px solid var(--color-border); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: all 0.25s; padding: 0; }
.nav-theme-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-bg); }
.nav-cta:hover { background: var(--color-primary-dark) !important; }
/* ドロップダウン */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger::after { content: ' ▾'; font-size: 0.7em; opacity: 0.5; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--color-bg-white); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); padding: 0.5rem 0; min-width: 180px; z-index: 1100; list-style: none; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dropdown-menu li { padding: 0; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.82rem !important; color: var(--color-text) !important; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--color-primary-bg); color: var(--color-primary-dark) !important; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.menu-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--color-bg-white); padding: 1.5rem 2rem; gap: 0.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1rem; padding: 0.6rem 0; display: block; }
    .nav-cta { text-align: center; margin-top: 0.5rem; display: block !important; }
    .nav-dropdown-menu { position: static; transform: none; box-shadow: none; padding: 0 0 0 1rem; min-width: auto; display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown-menu a { font-size: 0.9rem !important; padding: 0.4rem 0; color: var(--color-text-muted) !important; }
    .nav-dropdown-trigger::after { content: ' ▾'; }
}

/* ===== Section Headers (EC風) ===== */
.section-header { text-align: center; margin-bottom: 2.8rem; }
.section-header .en-title { font-family: var(--font-en); font-size: 0.72rem; font-weight: 500; color: var(--color-primary); letter-spacing: 0.25em; text-transform: uppercase; display: block; margin-bottom: 0.6rem; }
.section-header .ja-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--color-text); line-height: 1.7; }
.section-header .ja-title .highlight { color: var(--color-primary-dark); }
.section-header .section-lead { font-size: 0.92rem; color: var(--color-text-light); margin-top: 0.8rem; line-height: 2; }
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--color-text); line-height: 1.7; text-align: center; margin-bottom: 0.8rem; }
.section-title .highlight { color: var(--color-primary-dark); }
.section-subtitle { font-size: 0.92rem; color: var(--color-text-light); text-align: center; margin-bottom: 2.5rem; line-height: 2; }

/* ===== Hero ===== */
/* ===== ヒーロー：テキスト重視（光過敏対策） ===== */
.hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 7rem 2rem 4rem; }
.hero-bg { position: absolute; inset: 0; background: var(--color-bg); }
.hero-bg::before { content: ''; position: absolute; top: 0; right: 0; width: 55%; height: 100%; background: linear-gradient(135deg, transparent 0%, var(--color-primary-bg, #edf3f3) 50%, var(--color-primary-light, #dce9ea) 100%); opacity: 0.5; }
.hero-bg::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--color-border-light); }
.hero-content { max-width: 860px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-content.hero-with-photo { max-width: 1140px; display: flex; align-items: center; gap: 4rem; text-align: left; }
.hero-text { flex: 1; }
.hero-photo { flex-shrink: 0; width: 320px; opacity: 0; animation: heroFadeIn 1.2s ease 0.6s forwards; }
.hero-photo-frame { width: 320px; height: 400px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-hover); position: relative; }
.hero-photo-frame::after { content: ''; position: absolute; inset: 0; border-radius: 16px; border: 1px solid rgba(95,158,159,0.12); pointer-events: none; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-slideshow { position: relative; }
.hero-slideshow .hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slideshow .hero-slide:first-child { position: relative; }
.hero-slideshow .hero-slide.active { opacity: 1; z-index: 1; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge-minimal { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.73rem; font-weight: 600; color: var(--color-primary-dark); letter-spacing: 0.08em; margin-bottom: 1.4rem; }
.hero-badge-minimal::before { content: ''; width: 24px; height: 2px; background: linear-gradient(90deg, var(--color-primary), rgba(95,158,159,0.3)); border-radius: 1px; flex-shrink: 0; }
.hero-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.8vw, 2.2rem); font-weight: 700; line-height: 1.7; margin-bottom: 0.3rem; color: var(--color-text); letter-spacing: 0.02em; }
.hero-title .highlight { color: var(--color-primary-dark); }
.hero-service-line { font-size: 0.78rem; color: var(--color-text-muted); letter-spacing: 0.04em; margin-bottom: 2rem; }
.hero-service-line span { margin: 0 0.3rem; opacity: 0.4; }
.hero-description { font-size: 0.92rem; color: var(--color-text-light); margin-bottom: 2rem; line-height: 2.2; }
.hero-description strong { color: var(--color-text); }
.hero-trust-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-badge-item { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: 6px; padding: 0.35rem 0.7rem; font-size: 0.72rem; font-weight: 500; color: var(--color-text-light); white-space: nowrap; }
.trust-badge-icon { font-size: 0.85rem; }
.trust-badge-text { }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust .trust-item { font-size: 0.75rem; color: var(--color-text-muted); }
.hero-social-proof { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.5rem; letter-spacing: 0.02em; }
.hero-social-proof strong { color: var(--color-primary-dark); }
/* ===== 信頼ストリップ ===== */
/* ===== Why Us (Difference) ===== */
.why-us { padding: 3.5rem 2rem; background: var(--color-bg-white); }
.why-us-inner { max-width: 860px; margin: 0 auto; }
.diff-list { display: flex; flex-direction: column; gap: 1rem; }
.diff-item { display: flex; align-items: center; gap: 0.8rem; background: var(--color-bg); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; border: 1px solid var(--color-border-light); }
.diff-general { flex: 1; font-size: 0.85rem; color: var(--color-text-light); line-height: 1.7; }
.diff-general strong { color: var(--color-text); font-weight: 700; }
.diff-arrow { color: var(--color-primary); font-size: 1rem; flex-shrink: 0; opacity: 0.7; }
.diff-supra { flex: 1; font-size: 0.88rem; color: var(--color-primary-dark); line-height: 1.7; padding: 0.8rem; background: var(--color-primary-light); border-radius: var(--radius-md); }
.diff-supra strong { color: var(--color-primary-dark); font-weight: 700; }
@media (max-width: 600px) {
    .diff-item { flex-direction: column; gap: 0.4rem; padding: 1rem; text-align: center; }
    .diff-arrow { transform: rotate(90deg); }
    .diff-supra { width: 100%; }
}

/* ===== Transformation ===== */
.transformation { padding: 3.5rem 2rem; background: var(--color-bg); }
.transformation-inner { max-width: 1000px; margin: 0 auto; }
.transformation-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.transformation-card { display: flex; align-items: center; gap: 1rem; background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; border: 1px solid var(--color-border-light); }
.transformation-before, .transformation-after { flex: 1; }
.transformation-before p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.7; }
.transformation-after p { font-size: 0.88rem; color: var(--color-primary-dark); line-height: 1.7; font-weight: 700; }
.transformation-label { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.15rem 0.5rem; border-radius: 8px; margin-bottom: 0.4rem; }
.transformation-before .transformation-label { background: var(--color-bg-alt); color: var(--color-text-light); }
.transformation-after .transformation-label { background: #b8e0e0; color: var(--color-primary-dark); }
.transformation-arrow { font-size: 1.2rem; color: var(--color-primary); flex-shrink: 0; font-weight: 300; }
@media (max-width: 600px) {
    .transformation-card { flex-direction: column; gap: 0.5rem; text-align: center; }
    .transformation-arrow { transform: rotate(90deg); }
}

/* ===== Character / Diagnosis Section ===== */
.character-section { padding: var(--section-padding); background: var(--color-bg); }
.character-inner { max-width: 560px; margin: 0 auto; }

/* Empathy block */
.diag-empathy { text-align: center; margin-bottom: 1.5rem; }
.diag-empathy-lead { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-text); line-height: 1.8; margin-bottom: 1rem; }
.diag-empathy-voices { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.diag-voice { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6; font-style: italic; }
.diag-bridge { text-align: center; font-size: 0.9rem; color: var(--color-text); line-height: 1.8; margin-bottom: 1.5rem; }
.diag-bridge strong { color: var(--color-primary-dark); }

/* Egg wobble */
.char-teaser { text-align: center; margin-bottom: 1.2rem; }
.char-teaser-egg { position: relative; display: inline-block; }
.egg-wobble { animation: eggWobble 3s ease-in-out infinite; }
@keyframes eggWobble { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(3deg); } 50% { transform: rotate(0deg); } 75% { transform: rotate(-3deg); } }
.char-teaser-sparkles { position: absolute; top: -5px; right: -10px; font-size: 1rem; color: #ffb74d; animation: sparkle 2s ease-in-out infinite; }
@keyframes sparkle { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.char-teaser-mystery { font-size: 0.82rem; color: var(--color-text-light); margin-top: 0.6rem; line-height: 1.7; }

/* Silhouette strip - overflow visible for ears/wings */
.char-silhouette-strip { margin-bottom: 1.2rem; overflow: visible; }
.char-sil-scroll { display: flex; gap: 0.5rem; justify-content: center; align-items: center; padding: 1rem 0; }
.char-sil-item { width: 55px; height: 55px; filter: brightness(0) opacity(0.12); transition: filter 0.3s, transform 0.3s; overflow: visible; }
.char-sil-item:hover { filter: brightness(0) opacity(0.25); transform: scale(1.1); }
.char-sil-item svg { width: 100%; height: 100%; overflow: visible !important; }

/* CTA */
.char-cta { text-align: center; margin-top: 0.8rem; }
.char-cta-btn { display: inline-block; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; padding: 0.9rem 2.2rem; border-radius: 30px; border: none; cursor: pointer; transition: background 0.3s, transform 0.2s; box-shadow: 0 4px 16px rgba(95,158,159,0.35); }
.char-cta-btn:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

@media (max-width: 600px) {
    .char-sil-item { width: 40px; height: 40px; }
    .diag-empathy-lead { font-size: 1rem; }
}

/* ===== Egg Celebration Overlay ===== */
.egg-celebration { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(246,243,238,0.92); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.egg-celebration.show { opacity: 1; pointer-events: auto; }
.egg-celebration-inner { text-align: center; animation: eggBounceIn 0.8s ease; }
.egg-celebration-egg { margin: 0 auto 1.2rem; }
.egg-celebration-egg svg { filter: drop-shadow(0 4px 12px rgba(255,204,128,0.4)); }
.egg-celebration-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.6rem; }
.egg-celebration-text { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.8; }
.egg-hatch { animation: eggHatch 0.6s ease; }
@keyframes eggBounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeInDesc { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
.egg-celebration-desc { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.8; margin-top: 0.8rem; padding: 0 1rem; max-width: 320px; text-align: center; }
@keyframes eggHatch { 0% { transform: scale(0.5) rotate(-5deg); } 30% { transform: scale(1.1) rotate(3deg); } 60% { transform: scale(0.95) rotate(-2deg); } 100% { transform: scale(1) rotate(0); } }

/* ===== What We Do (3秒で伝わるセクション) ===== */
.what-we-do { padding: var(--section-padding); background: var(--color-bg); }
.what-we-do-inner { max-width: 1060px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.service-item { text-align: center; padding: 1.2rem 0.8rem; background: var(--color-bg-white); border-radius: var(--radius-lg); border: 1px solid var(--color-border-light); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-item-large { padding: 1.5rem 1.2rem; text-align: left; }
.service-item-large p { font-size: 0.78rem; line-height: 1.8; }
.service-icon { font-size: 1.6rem; display: block; margin-bottom: 0.4rem; }
.service-item h4 { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.4rem; }
.service-item p { font-size: 0.7rem; color: var(--color-text-light); line-height: 1.6; }
.service-includes { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.6rem; }
.service-includes span { font-size: 0.65rem; font-weight: 600; color: var(--color-primary-dark); background: rgba(90,158,168,0.08); padding: 0.2rem 0.6rem; border-radius: 12px; border: 1px solid rgba(90,158,168,0.15); }
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr !important; gap: 0.8rem; }
}

.trust-strip { background: var(--color-bg-white); border-bottom: 1px solid var(--color-border-light); padding: 2rem 1.5rem; }
.trust-strip-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.trust-strip-item { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; }
.trust-strip-img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--color-bg); display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-border-light); }
.trust-strip-img img { width: 100%; height: 100%; object-fit: cover; }
.trust-strip-placeholder { font-size: 1.5rem; }
.trust-strip-body { min-width: 0; }
.trust-strip-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-primary); letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.trust-strip-text { display: block; font-size: 0.75rem; color: var(--color-text-light); line-height: 1.5; }
.trust-strip-divider { width: 1px; height: 40px; background: var(--color-border-light); flex-shrink: 0; }
/* ===== 選ばれる理由ストリップ ===== */
.reasons-strip { background: var(--color-bg); border-bottom: 1px solid var(--color-border-light); padding: 2rem 1.5rem; }
.reasons-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.reason-item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem; border-radius: var(--radius-md); transition: background 0.3s; }
.reason-item:hover { background: var(--color-bg-white); }
.reason-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.reason-title { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.3rem; }
.reason-desc { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.7; }
/* ===== 推薦の声セクション ===== */
.endorsements-section { padding: var(--section-padding); background: var(--color-bg-white); }
.endorsements-grid { max-width: 1000px; margin: 0 auto; display: grid; gap: 1.5rem; }
.endorsement-card { background: var(--color-bg); border-radius: var(--radius-lg); padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; border: 1px solid var(--color-border-light); }
.endorsement-card.has-video { flex-direction: column; }
.endorsement-profile { display: flex; align-items: center; gap: 0.8rem; }
.endorsement-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--color-primary-bg); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(90,158,168,0.2); }
.endorsement-photo img { width: 100%; height: 100%; object-fit: cover; }
.endorsement-photo-placeholder { font-size: 1.8rem; }
.endorsement-body { flex: 1; min-width: 0; }
.endorsement-quote { font-size: 0.92rem; color: var(--color-text); line-height: 2.0; margin-bottom: 1rem; font-style: italic; }
.endorsement-quote::before { content: '\201C'; font-size: 2rem; color: var(--color-primary); opacity: 0.3; line-height: 0; vertical-align: -0.4em; margin-right: 0.1em; }
.endorsement-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--color-text); }
.endorsement-title { font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.1rem; }
.endorsement-bio { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.8; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--color-border-light); }
.endorsement-video { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; margin-bottom: 1rem; }
.endorsement-video iframe { width: 100%; height: 100%; border: none; }
.video-thumbnail { display: block; position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #1a1a1a; margin-bottom: 0.8rem; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.video-thumbnail:hover img { opacity: 0.85; }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(0,0,0,0.65); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; padding-left: 4px; transition: background 0.3s; }
.video-thumbnail:hover .video-play-btn { background: rgba(200,50,50,0.85); }
.video-rec-label { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.75); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.03em; }
.endorsement-video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #2a3a2e, #3a4a3e); color: rgba(255,255,255,0.7); font-size: 0.85rem; gap: 0.5rem; }
.endorsement-video-placeholder span:first-child { font-size: 2.5rem; opacity: 0.8; }
.endorsement-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
/* メディア掲載 */
.media-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--color-primary-bg); color: var(--color-primary); font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 20px; margin-bottom: 0.8rem; }
.trust-item { font-size: 0.85rem; color: var(--color-text-light); font-weight: 500; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 2rem; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); transition: background 0.3s, transform 0.2s, box-shadow 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--color-primary); color: var(--color-bg-white); box-shadow: 0 3px 12px rgba(90,158,168,0.2); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ===== Empathy ===== */
.empathy-section { padding: var(--section-padding); background: var(--color-bg-white); }
.empathy-inner { max-width: var(--max-width); margin: 0 auto; }
.empathy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.empathy-card { background: var(--color-bg-white); border-radius: var(--radius-md); padding: 1.6rem 1.4rem; border: 1px solid var(--color-border-light); transition: box-shadow 0.3s, transform 0.3s; }
.empathy-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.empathy-quote { font-size: 0.9rem; color: var(--color-text); line-height: 2; }
.empathy-message { text-align: center; font-size: 0.95rem; color: var(--color-text-light); line-height: 2.1; }
.empathy-message strong { color: var(--color-primary); font-weight: 700; }

/* ===== About ===== */
.about-section { padding: var(--section-padding); background: var(--color-bg-white); }
.about-inner { max-width: 860px; margin: 0 auto; }
.about-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.about-main-card { text-align: center; }
.about-photo { margin-bottom: 1rem; }
.about-photo-frame { width: 200px; height: 250px; border-radius: 50% 50% 20px 20px; overflow: hidden; box-shadow: 0 8px 30px rgba(95,158,159,0.15); margin: 0 auto; border: 3px solid white; }
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-intro { text-align: center; }
.about-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.1rem; }
.about-name-en { font-size: 0.78rem; color: var(--color-primary); font-weight: 400; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.about-role { font-size: 0.8rem; color: var(--color-text-light); font-weight: 500; line-height: 1.6; margin-bottom: 0; }
.about-story-card { background: var(--color-bg-white); border-radius: 20px; padding: 1.5rem 2rem; text-align: center; max-width: 500px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid var(--color-border-light); position: relative; }
.about-story-card::before { content: '\2726'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--color-bg-white); padding: 0 0.5rem; color: var(--color-primary); font-size: 1rem; }
.about-story-main { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--color-text); line-height: 2; margin-bottom: 0.6rem; }
.about-story-sub { font-size: 0.85rem; color: var(--color-text-light); line-height: 2; }
.about-trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 480px; width: 100%; }
.about-trust-card { background: var(--color-bg-white); border-radius: 14px; padding: 0.7rem 0.8rem; display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--color-border-light); transition: all 0.25s; }
.about-trust-card:hover { border-color: var(--color-primary-light); box-shadow: 0 4px 16px rgba(95,158,159,0.1); transform: translateY(-2px); }
.about-trust-highlight { border-color: var(--color-primary-light); background: linear-gradient(135deg, #f0f7f7, #e8f5f5); }
.about-trust-icon { font-size: 1.3rem; flex-shrink: 0; }
.about-trust-text { font-size: 0.7rem; color: var(--color-text-light); line-height: 1.4; }
.about-trust-text b { color: var(--color-text); font-weight: 600; }
.about-footer-row { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; padding-top: 0.5rem; }
.about-media-inline { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.about-media-inline a { font-size: 0.72rem; color: var(--color-text-light); text-decoration: none; padding: 0.4rem 0.7rem; border: 1px solid var(--color-border-light); border-radius: 12px; transition: all 0.2s; text-align: center; line-height: 1.3; background: var(--color-bg-white); }
.about-media-inline a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); box-shadow: 0 2px 8px rgba(95,158,159,0.1); transform: translateY(-1px); }
.about-media-inline a .media-type { display: block; font-size: 0.55rem; color: var(--color-primary); font-weight: 600; margin-bottom: 0.15rem; letter-spacing: 0.03em; }
.about-text { text-align: center; }
.about-story p { font-size: 0.88rem; color: var(--color-text-light); line-height: 2.2; margin-bottom: 0.8rem; text-align: center; }
.about-credentials { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.3rem; justify-content: center; }
.credential-tag { background: var(--color-bg-white); color: var(--color-primary-dark); padding: 0.4rem 1rem; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; border: 1px solid var(--color-primary-light); }

/* ===== Services ===== */
.services-section { padding: var(--section-padding); background: var(--color-bg); }
.services-inner { max-width: var(--max-width); margin: 0 auto; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar-card { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 2.2rem 1.8rem; text-align: left; border: 1px solid var(--color-border-light); transition: box-shadow 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-primary); transform: scaleX(0); transition: transform 0.4s; }
.pillar-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-num { font-family: var(--font-en); font-size: 0.7rem; color: var(--color-primary); letter-spacing: 0.15em; font-weight: 700; margin-bottom: 0.5rem; }
.pillar-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.pillar-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.3rem; }
.pillar-subtitle { font-size: 0.8rem; color: var(--color-primary); font-weight: 500; margin-bottom: 0.8rem; }
.pillar-desc { font-size: 0.85rem; color: var(--color-text-light); line-height: 2; }
/* セラピー実績写真 */
.service-photo-feature { display: flex; gap: 2rem; align-items: center; margin-top: 3rem; padding: 2rem; background: var(--color-bg); border-radius: var(--radius-lg); border: 1px solid var(--color-border-light); }
.service-photo { width: 280px; height: 200px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-primary-bg); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-photo-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--color-text-light); font-size: 0.82rem; }
.service-photo-placeholder span { font-size: 2.5rem; }
.service-photo-label { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--color-primary); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.service-photo-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.5rem; }
.service-photo-desc { font-size: 0.88rem; color: var(--color-text-light); line-height: 2; }

/* ===== Themes ===== */
.themes-section { padding: var(--section-padding); background: var(--color-bg); }
.themes-inner { max-width: 1060px; margin: 0 auto; }
.theme-categories { display: flex; flex-direction: column; gap: 1.2rem; }
.theme-category { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 1.8rem; border: 1px solid var(--color-border-light); }
.category-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--color-bg-soft); }
.category-icon { font-size: 1.3rem; }
.category-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--color-text); }
.theme-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.theme-tag { display: flex; align-items: center; gap: 0.4rem; background: var(--color-bg-soft); border: 1.5px solid transparent; padding: 0.5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.3s, border-color 0.3s, transform 0.2s; }
.theme-tag:hover { background: var(--color-primary-light); border-color: var(--color-primary); transform: translateY(-1px); }
.tag-emoji { font-size: 0.95rem; }
.tag-text { font-size: 0.82rem; font-weight: 500; color: var(--color-text); }
.themes-cta { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.themes-cta-text { color: var(--color-text-light); font-size: 0.92rem; margin-bottom: 1.5rem; line-height: 2; }

/* ===== Voices ===== */
.voice-section { padding: var(--section-padding); background: var(--color-bg); }
.voice-inner { max-width: var(--max-width); margin: 0 auto; }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.voice-card { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 1.8rem; border: 1px solid var(--color-border-light); transition: box-shadow 0.3s, transform 0.3s; }
.voice-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.voice-stars { font-size: 0.8rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.voice-text { font-size: 0.88rem; color: var(--color-text); line-height: 2; margin-bottom: 1rem; text-align: left; }
.voice-author { border-top: 1px solid var(--color-bg-soft); padding-top: 0.8rem; display: flex; gap: 0.8rem; align-items: center; }
.voice-name { font-weight: 700; font-size: 0.82rem; color: var(--color-text); }
.voice-detail { font-size: 0.78rem; color: var(--color-text-light); }

/* ===== FAQ ===== */
.faq-section { padding: var(--section-padding); background: var(--color-bg-white); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { background: var(--color-bg-white); border-radius: var(--radius-md); border: 1px solid var(--color-border-light); overflow: hidden; cursor: pointer; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--color-primary-light); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; font-size: 0.92rem; font-weight: 500; color: var(--color-text); }
.faq-toggle { font-size: 1.1rem; color: var(--color-primary); transition: transform 0.3s; font-weight: 700; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; font-size: 0.88rem; color: var(--color-text-light); line-height: 2; padding: 0 1.4rem; text-align: left; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.4rem 1.4rem; }

/* ===== Contact CTA ===== */
.contact-section { padding: var(--section-padding); background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-deep)); text-align: center; }
.contact-inner { max-width: 660px; margin: 0 auto; }
.contact-desc { color: rgba(250,248,245,0.8); font-size: 0.95rem; line-height: 2.1; margin-bottom: 2rem; }
.contact-btn { background: var(--color-bg-white); color: var(--color-primary-dark) !important; font-weight: 700; font-size: 0.95rem; padding: 0.9rem 2.2rem; border-radius: var(--radius-sm); }
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ===== Footer ===== */
footer { padding: 0; background: var(--color-text); border-top: none; text-align: left; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 2.5rem 2rem 1.5rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { }
.footer-logo { margin-bottom: 0.8rem; }
.footer-tagline { font-size: 0.82rem; color: rgba(250,248,245,0.6); line-height: 1.7; }
.footer-nav h4 { font-family: var(--font-display); font-size: 0.82rem; color: rgba(250,248,245,0.9); margin-bottom: 0.8rem; font-weight: 600; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { font-size: 0.78rem; color: rgba(250,248,245,0.5); margin-bottom: 0.5rem; line-height: 1.5; }
.footer-nav a { color: rgba(250,248,245,0.5); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: rgba(250,248,245,0.9); }
.footer-bottom { border-top: 1px solid rgba(250,248,245,0.1); padding-top: 1.2rem; text-align: center; }
.footer-bottom p { font-size: 0.72rem; color: rgba(250,248,245,0.3); }
@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
    /* ★ フッター（2026/07 変更）
       以前は1列で、ロゴ＋3つのリンク集が全部縦に積まれてとても長かった。
       リンクは短いラベルの一覧（順番に意味は無い）なので横に並べてよい。
       ただし3列だと1列102px程度になり、「Cancer Journey Institute」等の
       長い名前が入らないため2列にする。
        ・ロゴ＋SNS … 横幅いっぱい
        ・サイトマップ / サポート … 2列に並べる
        ・連携・推薦 … 名前が長いので横幅いっぱい */
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1rem; }
    .footer-brand { grid-column: 1 / -1; }
    /* ★ リンク集が3つあるページ（ホーム）だけ、3つ目（連携・推薦）を全幅にする。
       「Cancer Journey Institute」等の長い名前が2列だと入らないため。
       ※ 4番目の要素＝ロゴ + リンク集3つ の構成のときだけ効く。
         リンク集が2つのページ（サービス各ページ等）では発動せず、
         「サイトマップ / サポート」がきれいに2列で並ぶ。 */
    .footer-main > .footer-nav:nth-child(4):last-child { grid-column: 1 / -1; }
    .footer-nav h4 { font-size: 0.78rem; margin-bottom: 0.6rem; }
    .footer-nav li { font-size: 0.72rem; margin-bottom: 0.5rem; line-height: 1.5; }
    .footer-inner { padding: 2rem 1.2rem 1.2rem; }
}

/* ===== Floating CTA ===== */

/* 中間CTA */
.mid-cta { text-align: center; padding: 2.5rem 2rem; background: linear-gradient(135deg, rgba(90,158,168,0.06), rgba(196,133,110,0.06)); }
.mid-cta-text { font-size: 0.95rem; color: var(--color-text-dark); margin-bottom: 1rem; line-height: 1.8; }
.mid-cta .btn-primary { font-size: 0.9rem; padding: 0.8rem 2rem; }

/* テーマ展開ボタン */
.theme-more-btn { display: block; margin: 1.2rem auto 0; font-size: 0.8rem; padding: 0.5rem 1.5rem; }
.theme-more-area { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.floating-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 890; background: var(--color-primary-dark); padding: 0.6rem 1rem; display: none; align-items: center; justify-content: center; gap: 0.8rem; box-shadow: 0 -1px 8px rgba(0,0,0,0.08); transform: translateY(100%); transition: transform 0.4s ease; }
.floating-cta.visible { display: flex; transform: translateY(0); }
.floating-cta.visible ~ .chatbot-container { bottom: 75px !important; }
.floating-cta.visible ~ .pet-container { bottom: 147px !important; }
.floating-cta.visible ~ .pet-container { bottom: 147px !important; }
/* ★ 卵ボタンもペット本体と同じだけ持ち上げる。
   これが無いと、CTAバーが出てチャットボタンが上がってきたときに
   卵(bottom:100px)と重なってしまう。 */
.floating-cta.visible ~ .show-pet-button { bottom: 147px !important; }
.floating-cta.visible ~ .chat-prompt-bubble { bottom: 240px !important; }
.floating-cta-btn { background: var(--color-bg-white); color: var(--color-primary-dark); font-weight: 700; font-size: 0.85rem; padding: 0.55rem 1.3rem; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: transform 0.2s; }
.floating-cta-btn:hover { transform: scale(1.02); }
.floating-cta-text { color: rgba(250,248,245,0.85); font-size: 0.78rem; font-weight: 500; }
.floating-cta-close { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(250,248,245,0.5); font-size: 1.1rem; cursor: pointer; padding: 0.3rem; }
.floating-cta-close:hover { color: rgba(250,248,245,0.9); }

/* ミニ復元バー */
.floating-cta-mini { position: fixed; bottom: 0; left: 0; right: 0; z-index: 890; display: none; align-items: center; justify-content: center; gap: 0; background: var(--color-primary-dark); box-shadow: 0 -1px 8px rgba(0,0,0,0.08); opacity: 0; transform: translateY(100%); transition: all 0.3s ease; }
.floating-cta-mini.visible { display: flex; opacity: 1; transform: translateY(0); animation: miniSlideUp 0.4s ease; }
@keyframes miniSlideUp { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
.fcta-mini-btn { background: none; border: none; color: white; font-size: 0.75rem; font-weight: 600; font-family: var(--font-body); padding: 0.55rem 1rem; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.fcta-mini-btn:hover { background: rgba(255,255,255,0.1); }
.fcta-mini-chat { }
.fcta-mini-book { }
.fcta-mini-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.25); }
.fcta-mini-expand { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.5); font-size: 0.7rem; cursor: pointer; padding: 0.3rem; transition: color 0.2s; }
.floating-cta-mini.visible ~ .chatbot-container { bottom: 48px !important; }
.floating-cta-mini.visible ~ .pet-container { bottom: 120px !important; }
.floating-cta-mini.visible ~ .pet-container { bottom: 120px !important; }
/* ★ 卵ボタンもペット本体と同じだけ持ち上げる（ミニCTA版） */
.floating-cta-mini.visible ~ .show-pet-button { bottom: 120px !important; }
@media (max-width: 600px) {
    .hero-content.hero-with-photo { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hero-text { order: 2; }
    .hero-photo { order: 1; width: 180px; }
    .hero-photo-frame { width: 180px; height: 220px; border-radius: 16px; }
    .hero-photo-caption { font-size: 0.78rem; }
    .floating-cta { padding: 0.5rem 0.8rem; gap: 0.5rem; }
    .floating-cta-btn { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
    .floating-cta-text { font-size: 0.7rem; }
}

/* キャラSVG：viewBox外のパーツ（耳・王冠）を表示 */
.char-preview-icon svg,
.char-anim svg,
.pet-character svg,
.result-character svg,
.evolution-character svg,
.showcase-svg svg,
.growth-icon svg {
    overflow: visible !important;
}

/* キャラアニメーション（穏やか版：遅め・小さめの動き） */
.char-anim { width: 100%; height: 100%; overflow: visible; }
.char-anim-float { animation: charFloat 4s ease-in-out infinite; }
@keyframes charFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.char-anim-bounce { animation: charBounce 3s ease-in-out infinite; }
@keyframes charBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.char-anim-wobble { animation: charWobble 4s ease-in-out infinite; }
@keyframes charWobble { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-2deg)} 75%{transform:rotate(2deg)} }
.char-anim-sway { animation: charSway 5s ease-in-out infinite; }
@keyframes charSway { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }
.char-anim-dance { animation: charDance 3s ease-in-out infinite; }
@keyframes charDance { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px) rotate(2deg)} }
.char-anim-walk { animation: charWalk 3s ease-in-out infinite; }
@keyframes charWalk { 0%,100%{transform:translateX(0)} 50%{transform:translateX(3px)} }
.char-anim-spin { animation: charSpin 8s linear infinite; }
@keyframes charSpin { from{transform:rotateY(0)} to{transform:rotateY(360deg)} }

/* ===== Chatbot ===== */
.chatbot-container { position: fixed; bottom: 24px; right: 24px; z-index: 1100; font-family: var(--font-body); }
.chatbot-toggle { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(90,158,168,0.3); transition: all 0.3s; position: relative; animation: gentleBounce 4s ease-in-out infinite; }
@keyframes gentleBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.chatbot-toggle:hover { transform: scale(1.05); animation: none; }
.chatbot-toggle svg { width: 26px; height: 26px; fill: var(--color-bg-white); }
.chatbot-toggle.active svg.chat-icon { display: block; }
.chatbot-toggle:not(.active) svg.close-icon { display: none; }
.chatbot-toggle.active svg.close-icon { display: none; }
.chatbot-badge { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; background: var(--color-secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--color-bg-white); animation: pulse 3s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.chatbot-toggle.active .chatbot-badge { display: none; }
.chatbot-toggle.active { animation: none; }

.chatbot-window { position: fixed; bottom: 90px; right: 24px; width: 420px; min-width: 320px; max-width: calc(100vw - 16px); height: 600px; min-height: 280px; max-height: calc(100dvh - 150px); background: var(--color-bg-white); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06); overscroll-behavior: contain; z-index: 1100; }
.chatbot-window.active { opacity: 1; visibility: visible; transform: translateY(0); }

/* チャットウィンドウをリサイズ可能に（左上ハンドル） */
.chatbot-window {
    min-width: 340px;
    min-height: 380px;
}
.chatbot-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    cursor: nw-resize;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}
/* ★ リサイズ用ハンドルは、マウスでウィンドウにホバーしたときだけ操作可能にする。
   ホバーできないタッチ端末では pointer-events:none のままなので、透明な
   ハンドルが「×」などのタップを吸ってしまう事故が起きない。 */
.chatbot-resize-handle,
.chatbot-resize-r,
.chatbot-resize-l,
.chatbot-resize-t,
.chatbot-resize-b,
.chatbot-resize-bl,
.chatbot-resize-br,
.chatbot-resize-right { pointer-events: none; }
.chatbot-window:hover .chatbot-resize-handle,
.chatbot-window:hover .chatbot-resize-r,
.chatbot-window:hover .chatbot-resize-l,
.chatbot-window:hover .chatbot-resize-t,
.chatbot-window:hover .chatbot-resize-b,
.chatbot-window:hover .chatbot-resize-bl,
.chatbot-window:hover .chatbot-resize-br,
.chatbot-window:hover .chatbot-resize-right { pointer-events: auto; }
.chatbot-window:hover .chatbot-resize-handle { opacity: 1; }
.chatbot-resize-handle::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    box-shadow:
        5px 0 0 rgba(255,255,255,0.45),
        0 5px 0 rgba(255,255,255,0.45),
        5px 5px 0 rgba(255,255,255,0.3);
}
.chatbot-resize-r {
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 26px;
    cursor: ne-resize;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-r { opacity: 1; }
.chatbot-resize-r::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    box-shadow:
        -5px 0 0 rgba(255,255,255,0.45),
        0 5px 0 rgba(255,255,255,0.45),
        -5px 5px 0 rgba(255,255,255,0.3);
}
.chatbot-resize-l {
    position: absolute;
    top: 50%;
    left: -2px;
    width: 10px;
    height: 36px;
    transform: translateY(-50%);
    cursor: ew-resize;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-l { opacity: 1; }
.chatbot-resize-l::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: rgba(95,158,159,0.35);
}
.chatbot-resize-t {
    position: absolute;
    top: -2px;
    left: 28px;
    right: 28px;
    height: 10px;
    cursor: ns-resize;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-t { opacity: 1; }
.chatbot-resize-t::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
}
/* 下端リサイズ */
.chatbot-resize-b {
    position: absolute;
    bottom: -2px;
    left: 28px;
    right: 28px;
    height: 10px;
    cursor: ns-resize;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-b { opacity: 1; }
.chatbot-resize-b::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(95,158,159,0.3);
}
/* 左下リサイズ */
.chatbot-resize-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
    height: 26px;
    cursor: sw-resize;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-bl { opacity: 1; }
.chatbot-resize-bl::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(95,158,159,0.5);
    box-shadow:
        5px 0 0 rgba(95,158,159,0.4),
        0 -5px 0 rgba(95,158,159,0.4),
        5px -5px 0 rgba(95,158,159,0.3);
}
/* 右下リサイズ */
.chatbot-resize-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    cursor: se-resize;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-br { opacity: 1; }
.chatbot-resize-br::before {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(95,158,159,0.5);
    box-shadow:
        -5px 0 0 rgba(95,158,159,0.4),
        0 -5px 0 rgba(95,158,159,0.4),
        -5px -5px 0 rgba(95,158,159,0.3);
}
/* 右端リサイズ */
.chatbot-resize-right {
    position: absolute;
    top: 50%;
    right: -2px;
    width: 10px;
    height: 36px;
    transform: translateY(-50%);
    cursor: ew-resize;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}
.chatbot-window:hover .chatbot-resize-right { opacity: 1; }
.chatbot-resize-right::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: rgba(95,158,159,0.35);
}

.chatbot-header { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: 0.8rem; position: relative; flex-shrink: 0; cursor: grab; user-select: none; }
.chatbot-header:active { cursor: grabbing; }

/* ウィンドウコントロール（最小化・元に戻す・最大化・閉じる） */
.chatbot-win-controls {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 6;
}
.cwc-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.cwc-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}
.cwc-btn.cwc-close:hover {
    background: rgba(220,80,60,0.8);
    color: white;
}

/* =============================================================
   ★ スマホ（タッチ端末）向けの調整
   1) 閉じる「×」ボタンを大きく押しやすくする。最小化・拡大・元に戻すは
      スマホでは不要なので隠し、×だけを大きく残す。
   2) チャットウィンドウを画面サイズに自動で合わせる（縦向き・横向き両対応）。
      横向きで画面が低いときに下までスクロールできない問題の対策。
   タッチ端末の判定は幅ではなく (hover:none)&(pointer:coarse) を使う。
   横向きのスマホは幅が 600px を超えることが多く、幅だけの判定では
   漏れてしまうため。
   ============================================================= */
@media (hover: none) and (pointer: coarse) {
    /* --- 0) ★ リサイズ用の透明な部品を無効化 ---
       画面の四隅・四辺にあるドラッグ用ハンドルは opacity:0 で見えないが
       タップは吸ってしまう。特に右上のハンドルが「×」に重なり、1回目の
       タップを奪って「2回押さないと閉じない」原因になっていた。
       タッチ端末ではドラッグ・リサイズは不要なので、全て無効化する。 */
    .chatbot-resize-handle,
    .chatbot-resize-r,
    .chatbot-resize-l,
    .chatbot-resize-t,
    .chatbot-resize-b,
    .chatbot-resize-bl,
    .chatbot-resize-br,
    .chatbot-resize-right {
        display: none !important;
        pointer-events: none !important;
    }

    /* --- 1) ボタン：スマホでは「×閉じる」だけを大きく残す。
            最小化・元に戻す・拡大は、スマホでは不要かつ事故のもと
            （最小化すると戻せない等）なので全て隠す。
            閉じても右下の丸いチャットボタンからすぐ開き直せる。 --- */
    .chatbot-window .cwc-btn#chatMinBtn,
    .chatbot-window .cwc-btn#chatRestoreBtn,
    .chatbot-window .cwc-btn#chatMaxBtn {
        display: none !important;
    }
    .chatbot-win-controls { gap: 0; right: 0.6rem; }
    .cwc-btn.cwc-close {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.22);
        position: relative;
    }
    .cwc-btn.cwc-close svg { width: 15px; height: 15px; }
    /* タップ範囲をさらに広げる（見た目のサイズはそのまま、当たり判定だけ拡大） */
    .cwc-btn.cwc-close::after {
        content: "";
        position: absolute;
        top: -8px; right: -8px; bottom: -8px; left: -8px;
    }

    /* --- 2) チャットを画面サイズに自動フィット --- */
    .chatbot-window {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        right: 8px !important;
        left: auto !important;
        bottom: 8px !important;
        /* 高さは固定値をやめ、画面の高さに合わせて自動調整。 */
        height: auto !important;
        top: 8px !important;                 /* 上下8pxずつ空けて画面いっぱいに */
        max-height: none !important;
        min-height: 0 !important;
        border-radius: 16px !important;
    }
    /* メッセージ欄が伸縮してスクロールする本体。ヘッダー/入力欄は固定、
       中央だけがスクロールするので、どんな画面高でも下まで見られる。 */
    .chatbot-window .chatbot-messages { flex: 1 1 auto !important; min-height: 0 !important; }

    /* ★ 上下スクロール時に左右へブレる（横に揺れる）のを防ぐ。
       スクロールの向きを縦だけに固定し、横方向のはみ出し・パンを完全に止める。 */
    .chatbot-window { overflow: hidden !important; touch-action: pan-y !important; }
    .chatbot-window .chatbot-messages {
        overflow-x: hidden !important;
        touch-action: pan-y !important;
        width: 100% !important;
        max-width: 100% !important;
        overscroll-behavior: contain !important;
    }
    /* 中の要素が1pxでもはみ出すと横揺れの原因になるため、全て枠内に収める。 */
    .chatbot-window .chatbot-messages > * { max-width: 100% !important; }
    .chatbot-window .chat-message { max-width: 88% !important; }

    /* ★ 安全策：万一スマホで最小化状態(.chat-minimized)になっても、
       小さいバーにせず通常表示のままにする（戻せなくなる事故を防ぐ）。
       スマホでは最小化ボタン自体を隠しているので通常は発生しないが、念のため。 */
    .chatbot-window.chat-minimized .chatbot-messages,
    .chatbot-window.chat-minimized .chatbot-input-area,
    .chatbot-window.chat-minimized .chatbot-action-bar,
    .chatbot-window.chat-minimized .chatbot-counselor-bar {
        display: flex !important;
    }
    .chatbot-window.chat-minimized .cwc-btn.cwc-close { display: flex !important; }
}

/* ★ 横向きで画面が低いスマホ（例：iPhone 横）向けの微調整。
   ヘッダーや入力欄の余白を詰めて、メッセージ表示領域を最大化する。 */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
    .chatbot-window { top: 6px !important; bottom: 6px !important; }
    .chatbot-header { padding: 0.6rem 1rem !important; cursor: default !important; }
}

/* 最小化状態：小さなピルバーだけ表示 */
.chatbot-window.chat-minimized {
    height: auto !important;
    min-height: auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.chatbot-window.chat-minimized .chatbot-header {
    padding: 0.5rem 0.7rem 0.5rem 1rem;
    border-radius: 24px;
    gap: 0.6rem;
}
.chatbot-window.chat-minimized .chatbot-header-info h4 {
    font-size: 0.8rem;
}
.chatbot-window.chat-minimized .chatbot-header-info p,
.chatbot-window.chat-minimized .chatbot-avatar,
.chatbot-window.chat-minimized .wp-header-btn {
    display: none !important;
}
.chatbot-window.chat-minimized .chatbot-win-controls {
    position: static;
    transform: none;
}
.chatbot-window.chat-minimized .cwc-btn {
    width: 22px;
    height: 22px;
}
.chatbot-window.chat-minimized .chatbot-messages,
.chatbot-window.chat-minimized .chatbot-action-bar,
.chatbot-window.chat-minimized .chatbot-input-area,
.chatbot-window.chat-minimized .chatbot-counselor-bar,
.chatbot-window.chat-minimized .wp-panel,
.chatbot-window.chat-minimized .chatbot-resize-handle,
.chatbot-window.chat-minimized .chatbot-resize-r,
.chatbot-window.chat-minimized .chatbot-resize-l,
.chatbot-window.chat-minimized .chatbot-resize-t,
.chatbot-window.chat-minimized .chatbot-resize-b,
.chatbot-window.chat-minimized .chatbot-resize-bl,
.chatbot-window.chat-minimized .chatbot-resize-br,
.chatbot-window.chat-minimized .chatbot-resize-right {
    display: none !important;
}

/* 最大化状態：画面全体を埋めてサイトのヘッダーごと覆う（隙間なし） */
.chatbot-window.chat-maximized {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    max-width: none !important;
    border-radius: 0 !important;
    z-index: 100000 !important;
}
/* ★ 最大化時：親コンテナの重なり順も最前面に上げ、サイトのヘッダー(z:1000)より確実に前へ。
   さらにチャットのヘッダーを上端に貼り付け、「元に戻す/閉じる」が常に押せるようにする。 */
.chatbot-container:has(.chatbot-window.chat-maximized) { z-index: 100000 !important; }
.chatbot-window.chat-maximized .chatbot-header { position: sticky; top: 0; z-index: 3; }
/* ★ 最大化中はリサイズ不要。四隅/四辺のリサイズハンドルがヘッダーのボタンに重なって
   クリックを奪っていたため、最大化時は全ハンドルを無効化（非表示＋クリック透過）する。 */
.chatbot-window.chat-maximized .chatbot-resize-handle,
.chatbot-window.chat-maximized .chatbot-resize-r,
.chatbot-window.chat-maximized .chatbot-resize-l,
.chatbot-window.chat-maximized .chatbot-resize-t,
.chatbot-window.chat-maximized .chatbot-resize-b,
.chatbot-window.chat-maximized .chatbot-resize-bl,
.chatbot-window.chat-maximized .chatbot-resize-br,
.chatbot-window.chat-maximized .chatbot-resize-right {
    display: none !important;
    pointer-events: none !important;
}
/* chatbot-close: cwc-btnに統合済み */
.chatbot-avatar { width: 40px; height: 40px; background: var(--color-bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.chatbot-header-info h4 { font-family: var(--font-display); font-size: 0.92rem; color: var(--color-bg-white); }
.chatbot-header-info p { font-size: 0.72rem; color: rgba(250,248,245,0.75); }

.chatbot-messages { flex: 1; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--color-bg); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* ★ スクロール時に左右へブレないための保険：
   メッセージや中の画像・長いURL・コードが幅をはみ出さないようにする。 */
.chatbot-messages > * { max-width: 100%; }
.chat-message { overflow-wrap: anywhere; word-break: break-word; }
.chatbot-messages img,
.chatbot-messages video,
.chatbot-messages pre,
.chatbot-messages table { max-width: 100%; }
.chatbot-messages pre { overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.chat-message { max-width: 92%; padding: 0.85rem 1.1rem; border-radius: 16px; font-size: 0.88rem; line-height: 1.85; }
.chat-message.bot { animation: msgReceive 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.chat-message.user { animation: msgSend 0.35s cubic-bezier(0.34, 1.2, 0.64, 1); }
/* ★ ギフトカード入りのボットメッセージ: バブル装飾を打ち消して一体化(has()の代わりにmodifierクラス方式) */
.chat-message.bot.has-gift-card { padding: 0; border: none; background: transparent; box-shadow: none; max-width: 95%; }
.chat-message.bot.has-gift-card > .gift-card { margin: 0; }
@keyframes msgReceive { 
    0% { opacity: 0; transform: translateY(8px) scale(0.96); } 
    60% { opacity: 1; transform: translateY(-2px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); } 
}
@keyframes msgSend { 
    0% { opacity: 0; transform: translateY(4px) scale(0.97); } 
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); } 
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-message.bot { background: var(--color-bg-white); align-self: flex-start; border: 1px solid var(--color-border-light); border-radius: 4px 16px 16px 16px; overflow: visible; box-shadow: 0 1px 3px rgba(61,56,50,0.04); }
.chat-message .voice-box { background: var(--color-primary-bg); border-left: 3px solid var(--color-primary); border-radius: 6px; padding: 0.8rem 1rem; margin: 0.5rem 0; font-size: 0.82rem; color: var(--color-text-light); line-height: 1.9; }
.chat-message.user { background: linear-gradient(135deg, var(--color-primary), #4a8d8e); color: var(--color-bg-white); align-self: flex-end; border-radius: 16px 16px 4px 16px; box-shadow: 0 2px 8px rgba(95,158,159,0.2); transition: box-shadow 0.5s ease; }
.chat-message.user.just-sent { box-shadow: 0 2px 16px rgba(95,158,159,0.35); }

.quick-replies { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
/* ★ CTA優先レイアウト: 最初のボタンがCTAの場合フル幅で目立たせる */
.quick-replies.qr-stack { flex-direction: column; gap: 0.5rem; }
.quick-reply { background: var(--color-bg-white); border: 1.5px solid var(--color-border); color: var(--color-text); padding: 0.6rem 1rem; border-radius: 14px; font-size: 0.82rem; cursor: pointer; transition: all 0.25s ease; font-family: var(--font-body); text-align: left; line-height: 1.4; box-shadow: 0 1px 3px rgba(141,114,87,0.04); }
.quick-reply:hover { background: var(--color-primary-bg); border-color: var(--color-primary); color: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(95,158,159,0.18); }
.quick-reply:active { transform: scale(0.97); box-shadow: none; }

.chatbot-input-area { padding: 0.85rem 1rem; display: none; gap: 0.6rem; background: var(--color-bg-white); border-top: 1px solid var(--color-border-light); flex-shrink: 0; }
.chatbot-input-area.livechat-active, .chatbot-input-area.ai-chat-active { display: flex; }
.chatbot-input { flex: 1; background: var(--color-bg); border: 1.5px solid var(--color-border-light); border-radius: 22px; padding: 0.7rem 1.1rem; font-family: var(--font-body); font-size: 16px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.chatbot-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(95,158,159,0.1); }
.chatbot-send { width: 40px; height: 40px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; box-shadow: 0 2px 8px rgba(95,158,159,0.25); }
.chatbot-send:hover { transform: scale(1.05); }
.chatbot-send svg { width: 16px; height: 16px; fill: var(--color-bg-white); }

/* Chatbot internal UI */
.typing-indicator { display: flex; gap: 4px; padding: 0.9rem 1.3rem !important; align-items: center; }
.typing-indicator span { width: 6px; height: 6px; background: var(--color-primary-light); border-radius: 50%; animation: typingBounce 1.5s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.3; } 30% { transform: translateY(-4px); opacity: 0.8; } }

.progress-bar { display: flex; gap: 5px; margin-bottom: 0.8rem; }
.progress-dot { flex: 1; height: 4px; background: var(--color-border); border-radius: 2px; }
.progress-dot.completed { background: var(--color-primary); }
.progress-dot.active { background: var(--color-secondary); }

.result-card { background: linear-gradient(135deg, var(--color-primary-bg), var(--color-secondary-light)); border-radius: var(--radius-md); padding: 1.8rem 1.4rem 1.4rem; margin-top: 0.6rem; overflow: visible; }
.result-character { width: 120px; height: 120px; margin: 1.5rem auto 1rem; overflow: visible; }
.result-card .type-name { font-family: var(--font-display); font-size: 1rem; text-align: center; margin-bottom: 0.4rem; color: var(--color-text); }
.result-card .phase-name { font-size: 0.82rem; color: var(--color-primary-dark); text-align: center; margin-bottom: 0.7rem; }
.result-card .description { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.8; margin-bottom: 0.8rem; text-align: center; }

/* ===== 改善版 結果カード V2 ===== */
.result-card.result-card-v2 { padding: 1.2rem 1rem 1rem; }
.result-header-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.result-egg-small { width: 50px; height: 50px; flex-shrink: 0; }
.result-egg-small svg { width: 100%; height: 100%; }
.result-info { flex: 1; }
.result-card-v2 .type-name { font-family: var(--font-display); font-size: 0.92rem; text-align: left; margin-bottom: 0.1rem; color: var(--color-text); }
.result-card-v2 .phase-name { font-size: 0.72rem; color: var(--color-primary-dark); text-align: left; margin-bottom: 0; }
.result-feature { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.6; padding: 0.6rem 0.7rem; background: var(--color-bg-white); border-radius: 8px; border-left: 3px solid var(--color-primary); margin-bottom: 0.7rem; }

/* ヒント（常に表示） */
.result-hint-open { background: var(--color-primary-bg); border-radius: 10px; padding: 0.8rem; }
.result-hint-label { font-size: 0.72rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 0.4rem; }
.result-hint-text { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.7; margin-bottom: 0.7rem; }

/* ヒント実践ボタン */
.hint-practice-area { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hint-practice-btn { background: var(--color-primary); color: var(--color-bg-white); border: none; border-radius: 8px; padding: 0.45rem 0.9rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background 0.2s; }
.hint-practice-btn:hover { background: var(--color-primary-dark); }
.hint-hard-btn { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: 8px; padding: 0.45rem 0.9rem; font-size: 0.78rem; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; }
.hint-hard-btn:hover { background: var(--color-bg-soft); }

/* 感情選択UI */
.hint-feeling-ask { font-size: 0.78rem; color: var(--color-text); font-weight: 600; margin-bottom: 0.4rem; }
.hint-feeling-btns { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.hint-feeling-btn { background: var(--color-bg-white); border: 1.5px solid var(--color-border); border-radius: 8px; padding: 0.35rem 0.6rem; font-size: 0.72rem; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; color: var(--color-text); }
.hint-feeling-btn:hover { border-color: var(--color-primary); background: var(--color-primary-bg); }
.hint-feeling-response { font-size: 0.78rem; color: var(--color-text-light); line-height: 1.7; }
.hint-feeling-cta { margin-top: 0.5rem; }
.hint-feeling-cta.hint-cta-hidden { opacity: 0; transform: translateY(4px); pointer-events: none; }
.hint-feeling-cta.hint-cta-visible { opacity: 1; transform: translateY(0); pointer-events: auto; transition: opacity 0.6s ease, transform 0.6s ease; }
.hint-feeling-cta .quick-reply { font-size: 0.75rem; }

/* ===== SEO情報セクション ===== */
.seo-info-section { padding: 3.5rem 2rem; background: var(--color-bg-soft); }
.seo-info-inner { max-width: 1000px; margin: 0 auto; }
.seo-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.seo-info-card { background: var(--color-bg-white); border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--color-border-light); }
.seo-info-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--color-text); margin-bottom: 0.8rem; }
.seo-info-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.9; }
.cta-btn { display: block; width: 100%; background: var(--color-primary); color: var(--color-bg-white); text-align: center; padding: 0.85rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; margin-top: 0.8rem; cursor: pointer; border: none; font-family: var(--font-body); }

.step-indicator { display: flex; align-items: center; gap: 6px; margin-bottom: 0.8rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--color-border-light); }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); transition: all 0.3s; }
.step-dot.done { background: var(--color-primary); }
.step-dot.current { background: var(--color-secondary); box-shadow: 0 0 0 3px rgba(196,133,110,0.2); }
.step-label { font-size: 0.72rem; color: var(--color-text-light); margin-left: auto; }

/* ★ プライマリCTA — 押してほしいボタン */
.quick-reply.qr-cta { 
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); 
    color: var(--color-bg-white) !important; 
    border-color: var(--color-primary); 
    font-weight: 600; 
    border-radius: 20px; 
    text-align: center;
    box-shadow: 0 2px 8px rgba(95,158,159,0.25);
    position: relative;
    overflow: hidden;
}
.quick-reply.qr-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: ctaShimmer 3s ease-in-out infinite;
}
@keyframes ctaShimmer { 0%{background-position:200% center} 100%{background-position:-200% center} }
.quick-reply.qr-cta:hover { 
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-deep)); 
    border-color: var(--color-primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(95,158,159,0.35);
}
.quick-reply.qr-cta:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(95,158,159,0.2);
}
/* ★ スタック時の最初のCTAはフル幅 */
.quick-replies.qr-stack .quick-reply.qr-cta:first-child {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.88rem;
    justify-content: center;
}

/* 有料CTA */
.quick-reply.qr-cta-paid { background: var(--color-secondary); color: var(--color-bg-white) !important; border-color: var(--color-secondary); font-weight: 600; border-radius: 20px; text-align: center; }
.quick-reply.qr-cta-paid:hover { background: #b0755e; border-color: #b0755e; }

/* 閉じる・戻る — 控えめに */
.quick-reply.qr-close { background: transparent; border: 1px solid var(--color-border-light); color: var(--color-text-muted); font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 20px; }
.quick-reply.qr-close:hover { background: var(--color-bg-soft); border-color: var(--color-border); color: var(--color-text-light); }
/* ★ 「戻る」も控えめスタイル */
.quick-reply.qr-back { background: transparent; border: 1px solid var(--color-border-light); color: var(--color-text-muted); font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 20px; }
.quick-reply.qr-back:hover { background: var(--color-bg-soft); border-color: var(--color-border); color: var(--color-text-light); }

/* ★ CTA押した後の嬉しいフィードバック */
@keyframes ctaSuccess { 
    0% { transform: scale(0.96); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); opacity: 0.7; }
}
.quick-reply.qr-cta.clicked {
    animation: ctaSuccess 0.4s ease-out;
    pointer-events: none;
}

.cb-flow-box { background: var(--color-bg); border-radius: 8px; padding: 0.8rem 1rem; margin: 0.5rem 0; }
.cb-flow-step { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.82rem; color: var(--color-text); line-height: 1.5; }
.cb-flow-step + .cb-flow-step { border-top: 1px dashed var(--color-border); }
.cb-flow-num { width: 22px; height: 22px; min-width: 22px; background: var(--color-primary); color: var(--color-bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }

.growth-preview { display: flex; align-items: center; justify-content: center; gap: 0.15rem; margin-top: 0.8rem; padding: 1rem 0.4rem 0.7rem; background: var(--color-bg); border-radius: 8px; flex-wrap: wrap; overflow: visible; }
.growth-stage { text-align: center; font-size: 0.6rem; color: var(--color-text-light); }
.growth-stage.growth-current { color: var(--color-primary); font-weight: 600; }
.growth-icon { width: 30px; height: 30px; margin: 0 auto 0.15rem; display: flex; align-items: center; justify-content: center; overflow: visible; }
.growth-icon svg { width: 100%; height: 100%; overflow: visible; }
.growth-silhouette { background: var(--color-border); border-radius: 50%; color: var(--color-bg-white); font-size: 0.75rem; font-weight: 700; }
.growth-arrow { color: var(--color-border); font-size: 0.6rem; margin: 0 0.05rem; }
.growth-hint { background: var(--color-primary-bg); border-radius: 6px; padding: 0.5rem 0.7rem; margin-top: 0.3rem; font-size: 0.78rem; color: var(--color-primary-dark); text-align: center; }

.voice-before { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.6; padding-bottom: 0.3rem; }
.voice-arrow { text-align: center; font-size: 0.7rem; color: var(--color-primary); padding: 0.15rem 0; }
.voice-after { font-size: 0.8rem; color: var(--color-text); line-height: 1.6; padding-top: 0.3rem; }
.compare-box { display: flex; flex-direction: column; gap: 0.5rem; }
.compare-item { border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.8rem; line-height: 1.7; }
.compare-free { background: var(--color-primary-bg); border-left: 3px solid var(--color-primary); }
.compare-paid { background: linear-gradient(135deg, #f5ede6, #f0e6dd); border-left: 3px solid var(--color-secondary); }

/* ===== Pet System ===== */
.pet-container { position: fixed; width: 80px; z-index: 999; display: none; bottom: 96px; right: 14px; overflow: visible; pointer-events: auto; }
.pet-container.active { display: block; }
.pet-character { width: 80px; height: 80px; cursor: pointer; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12)); transition: transform 0.2s; animation: petAppear 0.5s ease; overflow: visible; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pet-character svg { max-width: 100%; max-height: 100%; }
@keyframes petAppear { from { transform: scale(0) rotate(-180deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.pet-character:hover { transform: scale(1.08); }
.pet-character.action-warm { animation: petWarm 1s ease-in-out infinite; }
.pet-character.action-feed { animation: petEat 0.6s ease-in-out 4; }
.pet-character.action-pet { animation: petHappy 0.5s ease-in-out 4; }
.pet-character.action-sleep { animation: petSleep 2.5s ease-in-out infinite; }
@keyframes petWarm { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.03) rotate(2deg); } }
@keyframes petEat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1) rotate(3deg); } }
@keyframes petHappy { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-10deg) scale(1.05); } 75% { transform: rotate(10deg) scale(1.05); } }
@keyframes petSleep { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(0.97) translateY(2px); } }

.pet-speech { position: absolute; bottom: calc(100% + 10px); right: 0; background: var(--color-bg-white); padding: 0.6rem 0.9rem; border-radius: 16px; font-size: 0.72rem; box-shadow: 0 6px 22px rgba(26,98,99,0.16), 0 1px 3px rgba(0,0,0,0.06); border: 1px solid rgba(95,158,159,0.14); opacity: 0; transition: opacity 0.4s; pointer-events: none; width: max-content; min-width: 110px; max-width: min(210px, 74vw); white-space: normal; overflow-wrap: break-word; word-break: break-word; line-height: 1.65; text-align: left; z-index: 1150; color: #4a4540; }
.pet-speech.show { opacity: 1; animation: petSpeechPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pet-speech.pet-speech-clickable { pointer-events: auto; cursor: pointer; }
.pet-speech-text { display: block; }
.pet-speech-action { display: block; margin-top: 0.45rem; padding-top: 0.4rem; border-top: 1px solid #f0ebe5; font-size: 0.69rem; font-weight: 700; color: var(--color-primary-dark); cursor: pointer; text-align: center; transition: color 0.2s; }
.pet-speech-action:hover { color: var(--color-primary); }
@keyframes petSpeechPop { 0% { transform: scale(0.85) translateY(8px); opacity: 0; } 50% { transform: scale(1.03) translateY(-2px); opacity: 1; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.pet-speech::after { content: ''; position: absolute; top: 100%; right: 26px; border: 7px solid transparent; border-top-color: var(--color-bg-white); filter: drop-shadow(0 2px 1px rgba(26,98,99,0.06)); }
/* ★ スマホでは吹き出しが幅を取りすぎないよう、最大幅と文字サイズを抑える。
   また右に寄せすぎて画面外に出ないよう、最小幅も下げてコンパクトに。 */
@media (max-width: 600px) {
  .pet-speech {
    font-size: 0.68rem;
    padding: 0.5rem 0.75rem;
    min-width: 0;
    max-width: 60vw;
    line-height: 1.55;
  }
}
@media (max-width: 380px) {
  .pet-speech { max-width: 56vw; font-size: 0.66rem; }
}
.pet-remove { position: absolute; top: -14px; right: -5px; width: 22px; height: 22px; background: rgba(95,94,90,0.9); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 1px 4px rgba(0,0,0,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-bg-white); font-size: 12px; font-weight: bold; cursor: pointer; opacity: 0; transition: all 0.3s; z-index: 910; }
.pet-remove:hover { background: var(--color-text-light); transform: scale(1.1); }
.pet-container.active:not(.choices-hidden) .pet-remove { opacity: 1; }
.pet-action-menu { position: absolute; top: 50%; right: 82px; transform: translateY(-50%); background: var(--color-bg-white); border-radius: var(--radius-md); padding: 10px; box-shadow: 0 3px 16px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 5px; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 910; }
.pet-container.active:not(.choices-hidden) .pet-action-menu { opacity: 1; visibility: visible; }
.pet-container.actioning .pet-action-menu { opacity: 0 !important; visibility: hidden !important; }
.pet-action-btn { background: var(--color-bg); border: 1.5px solid var(--color-border); color: var(--color-text); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); white-space: nowrap; }
.pet-action-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg-white); }
.pet-action-btn.pet-action-bye { border-color: var(--color-border); color: var(--color-text-muted); font-size: 0.65rem; padding: 6px 10px; margin-top: 4px; }
.pet-action-btn.pet-action-bye:hover { background: var(--color-text-muted); border-color: var(--color-text-muted); color: var(--color-bg-white); }
.pet-effect { position: absolute; bottom: 35px; left: -30px; pointer-events: none; font-size: 1.4rem; opacity: 0; z-index: 1003; }
.pet-effect.show { animation: effectPop 1s ease forwards; }
@keyframes effectPop { 0% { opacity: 0; transform: translateX(-50%) scale(0.5); } 20% { opacity: 1; transform: translateX(-50%) translateY(-20px) scale(1.2); } 100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(0.8); } }
.pet-status { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; pointer-events: none; z-index: 915; transition: bottom 0.3s ease; }
.pet-status-label { font-size: 0.5rem; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); padding: 1px 7px; border-radius: 10px; letter-spacing: 0.05em; box-shadow: 0 2px 6px rgba(90,158,168,0.3); border: 1.5px solid rgba(255,255,255,0.6); }
/* ★ 卵ボタン（×でしまったキャラクターを呼び戻すボタン）
   以前は z-index:898 で、チャット窓(.chatbot-window / z-index:1100, bottom:90px)の
   真下に潜り込み、輪郭がうっすら見えるだけで押せなかった。
   「×を押すとキャラが完全に消えた」ように見えていた原因。
   ペット本体(.pet-container / z-index:999)と同じ高さに上げ、
   さらにチャットボタン(62px, bottom:24px)と重ならない位置に置く。 */
.show-pet-button { position: fixed; bottom: 100px; right: 34px; z-index: 1001; width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg-white); border: 1.5px solid var(--color-border); display: none; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer; box-shadow: 0 3px 14px rgba(0,0,0,0.16); transition: all 0.3s; }
.show-pet-button.visible, .show-pet-button.active { display: flex; }
.show-pet-button:hover { transform: scale(1.08); }
/* チャット窓が開いている間は卵を隠す（窓に重なって邪魔になるため）。
   ペット本体が .livechat-hidden で隠れるのと同じ考え方。 */
.chatbot-window.active ~ .show-pet-button,
body:has(.chatbot-window.active) .show-pet-button { display: none !important; }
.pet-container.hidden { display: none !important; }

/* ★ スリープモード */
.pet-sleeping { }
.pet-sleeping .pet-character { opacity: 0.7; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08)) brightness(0.9) !important; }
#petSleepOverlay { position: absolute; top: -10px; right: -5px; pointer-events: none; z-index: 920; }
.sleep-zzz { position: absolute; font-family: var(--font-display); font-weight: 700; color: var(--color-primary); opacity: 0; }
.sleep-z1 { font-size: 1.2rem; right: 0; animation: zzzFloat 3s ease-in-out infinite; }
.sleep-z2 { font-size: 0.9rem; right: -8px; animation: zzzFloat 3s ease-in-out infinite 0.8s; }
.sleep-z3 { font-size: 0.7rem; right: -14px; animation: zzzFloat 3s ease-in-out infinite 1.6s; }
@keyframes zzzFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.7); }
    20% { opacity: 0.8; transform: translateY(-10px) scale(1); }
    80% { opacity: 0.4; transform: translateY(-30px) scale(0.9); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.6); }
}
/* スリープ時のアクションメニュー常時表示 */
.pet-sleeping .pet-action-menu { opacity: 1 !important; visibility: visible !important; }
/* チェックイン時のアクションメニュー常時表示 */
.pet-checkin .pet-action-menu { opacity: 1 !important; visibility: visible !important; }
.pet-action-wake { animation: wakeGlow 2s ease-in-out infinite; }
@keyframes wakeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(255,183,77,0); }
    50% { box-shadow: 0 0 12px rgba(255,183,77,0.3); }
}

/* Evolution overlay */
.evolution-overlay { position: fixed; inset: 0; background: rgba(61,56,50,0.6); z-index: 10001; display: none; align-items: center; justify-content: center; }
.evolution-overlay.active { display: flex; }
.evolution-content { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 3rem 2rem 2.5rem; text-align: center; max-width: 340px; width: 90%; box-shadow: 0 16px 48px rgba(0,0,0,0.15); overflow: visible; }
.evolution-character { width: 140px; height: 140px; margin: 0 auto 1.3rem; overflow: visible; }
.evolution-text { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-text); margin-bottom: 1.3rem; }
.evolution-close { background: var(--color-primary); color: var(--color-bg-white); border: none; padding: 0.7rem 1.8rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); }

/* Showcase (Legacy) */
.character-showcase { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-soft); margin-bottom: 2rem; }
.showcase-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; text-align: center; color: var(--color-text); margin-bottom: 0.5rem; }
.showcase-subtitle { font-size: 0.82rem; color: var(--color-text-light); text-align: center; margin-bottom: 1.5rem; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.showcase-card { background: var(--color-bg); border-radius: var(--radius-md); padding: 1.5rem 0.6rem 0.8rem; text-align: center; transition: all 0.3s; cursor: pointer; overflow: visible; }
.showcase-card:hover { background: var(--color-primary-light); transform: translateY(-2px); }
.showcase-card-special { background: linear-gradient(135deg, var(--color-primary-bg), var(--color-secondary-light)); border: 1.5px solid var(--color-warm); }
.showcase-svg { width: 70px; height: 70px; margin: 0 auto 0.4rem; overflow: visible; }
.showcase-svg svg { width: 100%; height: 100%; overflow: visible; }
.showcase-name { font-size: 0.7rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.2rem; line-height: 1.3; }
.showcase-phase { font-size: 0.65rem; color: var(--color-primary); }

@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(-10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ===== Dance Animations（穏やか版：動きを50%縮小、速度を遅く） ===== */
/* TYPE 1: 雲 */
.dance-1-1 { animation: d11 1.8s ease-in-out infinite; }
@keyframes d11 { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(-5px) scale(1.03);} }
.dance-1-2 { animation: d12 1.5s ease-in-out infinite; }
@keyframes d12 { 0%{transform:rotate(0) translateY(0);} 25%{transform:rotate(-5deg) translateY(-6px);} 50%{transform:rotate(0) translateY(-8px);} 75%{transform:rotate(5deg) translateY(-6px);} 100%{transform:rotate(0) translateY(0);} }
.dance-1-3 { animation: d13 2s ease-in-out infinite; }
@keyframes d13 { 0%{transform:scale(1) rotate(0);} 20%{transform:scale(1.05) rotate(-4deg) translateY(-5px);} 40%{transform:scale(0.98) rotate(4deg) translateY(-3px);} 60%{transform:scale(1.06) rotate(-3deg) translateY(-8px);} 80%{transform:scale(1) rotate(3deg) translateY(-4px);} 100%{transform:scale(1) rotate(0);} }
.dance-1-4 { animation: d14 2.5s ease-in-out infinite; }
@keyframes d14 { 0%{transform:rotate(0) scale(1);} 15%{transform:rotate(-8deg) scale(1.08) translateY(-6px);} 30%{transform:rotate(8deg) scale(1.05) translateY(-10px);} 50%{transform:rotate(0) scale(1.1) translateY(-12px);} 70%{transform:rotate(-5deg) scale(1.05) translateY(-8px);} 85%{transform:rotate(5deg) scale(1.03) translateY(-4px);} 100%{transform:rotate(0) scale(1);} }
/* TYPE 2: ウサギ */
.dance-2-1 { animation: d21 1s ease-in-out infinite; }
@keyframes d21 { 0%,100%{transform:translateY(0);} 40%{transform:translateY(-8px);} 60%{transform:translateY(-8px) scaleY(1.05);} }
.dance-2-2 { animation: d22 1.2s ease-in-out infinite; }
@keyframes d22 { 0%,100%{transform:translateY(0) rotate(0);} 25%{transform:translateY(-10px) rotate(-4deg);} 50%{transform:translateY(0) scaleY(0.9);} 75%{transform:translateY(-10px) rotate(4deg);} }
.dance-2-3 { animation: d23 1.5s ease-in-out infinite; }
@keyframes d23 { 0%{transform:translateY(0) rotate(0) scale(1);} 20%{transform:translateY(-12px) rotate(-6deg) scale(1.05);} 40%{transform:translateY(0) scaleY(0.88);} 60%{transform:translateY(-12px) rotate(6deg) scale(1.05);} 80%{transform:translateY(0) scaleY(0.9);} 100%{transform:translateY(0) rotate(0) scale(1);} }
.dance-2-4 { animation: d24 1.8s ease-in-out infinite; }
@keyframes d24 { 0%{transform:translateY(0) rotate(0);} 15%{transform:translateY(-15px) rotate(-8deg) scale(1.08);} 30%{transform:translateY(0) scaleY(0.85);} 45%{transform:translateY(-16px) rotate(8deg) scale(1.1);} 60%{transform:translateY(0) scaleY(0.88) rotate(0);} 75%{transform:translateY(-10px) scale(1.05);} 100%{transform:translateY(0) rotate(0);} }
/* TYPE 3: ハムスター */
.dance-3-1 { animation: d31 0.8s ease-in-out infinite; }
@keyframes d31 { 0%,100%{transform:scaleX(1) scaleY(1);} 50%{transform:scaleX(1.06) scaleY(0.94);} }
.dance-3-2 { animation: d32 1s ease-in-out infinite; }
@keyframes d32 { 0%,100%{transform:rotate(0) scaleX(1);} 25%{transform:rotate(-3deg) scaleX(1.06) scaleY(0.94);} 50%{transform:rotate(0) scaleX(0.97) scaleY(1.04);} 75%{transform:rotate(3deg) scaleX(1.06) scaleY(0.94);} }
.dance-3-3 { animation: d33 1.3s ease-in-out infinite; }
@keyframes d33 { 0%{transform:rotate(0) translate(0,0);} 20%{transform:rotate(-4deg) translate(-3px,-2px) scaleX(1.08);} 40%{transform:rotate(3deg) translate(3px,0) scaleY(0.92);} 60%{transform:rotate(-3deg) translate(-2px,-3px) scaleX(1.05);} 80%{transform:rotate(4deg) translate(2px,0) scaleY(0.94);} 100%{transform:rotate(0) translate(0,0);} }
.dance-3-4 { animation: d34 1.6s ease-in-out infinite; }
@keyframes d34 { 0%{transform:rotate(0) scale(1);} 15%{transform:rotate(-6deg) scale(1.08) translate(-3px,-4px);} 30%{transform:rotate(5deg) scaleX(1.1) scaleY(0.9);} 50%{transform:rotate(0) scale(1.1) translateY(-5px);} 65%{transform:rotate(-4deg) scaleX(1.09) scaleY(0.92) translate(3px,-3px);} 80%{transform:rotate(6deg) scale(1.05);} 100%{transform:rotate(0) scale(1);} }
/* TYPE 4: スライム猫 */
.dance-4-1 { animation: d41 1.5s ease-in-out infinite; }
@keyframes d41 { 0%,100%{transform:skewX(0) scaleY(1);} 30%{transform:skewX(3deg) scaleY(0.95);} 60%{transform:skewX(-3deg) scaleY(1.03);} }
.dance-4-2 { animation: d42 1.8s ease-in-out infinite; }
@keyframes d42 { 0%{transform:skewX(0) scaleY(1);} 25%{transform:skewX(4deg) scaleY(0.92) translateX(2px);} 50%{transform:skewX(-4deg) scaleY(1.06) translateX(-2px);} 75%{transform:skewX(3deg) scaleY(0.94);} 100%{transform:skewX(0) scaleY(1);} }
.dance-4-3 { animation: d43 2s ease-in-out infinite; }
@keyframes d43 { 0%{transform:skewX(0) scale(1);} 20%{transform:skewX(5deg) scaleY(0.9) scaleX(1.05) translateX(3px);} 40%{transform:skewX(-6deg) scaleY(1.06) translateX(-3px);} 60%{transform:skewX(4deg) scaleY(0.94) rotate(3deg);} 80%{transform:skewX(-3deg) scaleY(1.04) rotate(-2deg);} 100%{transform:skewX(0) scale(1);} }
.dance-4-4 { animation: d44 2.5s ease-in-out infinite; }
@keyframes d44 { 0%{transform:scale(1) rotate(0);} 15%{transform:skewX(8deg) scaleY(0.88) translateX(4px);} 30%{transform:skewX(-8deg) scaleY(1.08) translateX(-4px) rotate(-3deg);} 50%{transform:scale(1.08) rotate(0) translateY(-5px);} 65%{transform:skewX(5deg) scaleY(0.9) rotate(3deg) translate(3px,-3px);} 80%{transform:skewX(-4deg) scaleY(1.05) rotate(-2deg);} 100%{transform:scale(1) rotate(0);} }
/* TYPE 5: 妖精 */
.dance-5-1 { animation: d51 1.2s ease-in-out infinite; }
@keyframes d51 { 0%,100%{transform:translateY(0) rotate(0);} 50%{transform:translateY(-5px) rotate(3deg);} }
.dance-5-2 { animation: d52 1.5s ease-in-out infinite; }
@keyframes d52 { 0%{transform:rotate(0) translateY(0);} 25%{transform:rotate(-6deg) translateY(-6px) scale(1.03);} 50%{transform:rotate(0) translateY(-9px) scale(1.05);} 75%{transform:rotate(6deg) translateY(-6px) scale(1.03);} 100%{transform:rotate(0) translateY(0);} }
.dance-5-3 { animation: d53 1.8s ease-in-out infinite; }
@keyframes d53 { 0%{transform:translate(0,0) rotate(0) scale(1);} 20%{transform:translate(-4px,-8px) rotate(-8deg) scale(1.04);} 40%{transform:translate(4px,-10px) rotate(5deg) scale(1.06);} 60%{transform:translate(-3px,-11px) rotate(-4deg) scale(1.05);} 80%{transform:translate(3px,-6px) rotate(6deg) scale(1.03);} 100%{transform:translate(0,0) rotate(0) scale(1);} }
.dance-5-4 { animation: d54 2.2s ease-in-out infinite; }
@keyframes d54 { 0%{transform:translate(0,0) rotate(0) scale(1);} 14%{transform:translate(-5px,-9px) rotate(-10deg) scale(1.08);} 28%{transform:translate(5px,-12px) rotate(8deg) scale(1.1);} 42%{transform:translate(-3px,-15px) rotate(-5deg) scale(1.09);} 57%{transform:translate(4px,-14px) rotate(10deg) scale(1.08);} 71%{transform:translate(-4px,-10px) rotate(-8deg) scale(1.05);} 85%{transform:translate(3px,-5px) rotate(5deg) scale(1.03);} 100%{transform:translate(0,0) rotate(0) scale(1);} }
/* TYPE 6: 芽キャラ */
.dance-6-1 { animation: d61 1s ease-in-out infinite; }
@keyframes d61 { 0%,100%{transform:translateX(0) rotate(0);} 25%{transform:translateX(-2px) rotate(-3deg);} 75%{transform:translateX(2px) rotate(3deg);} }
.dance-6-2 { animation: d62 1.3s ease-in-out infinite; }
@keyframes d62 { 0%{transform:translate(0,0) rotate(0);} 25%{transform:translate(-3px,-3px) rotate(-4deg);} 50%{transform:translate(0,-4px) rotate(0) scaleY(1.03);} 75%{transform:translate(3px,-3px) rotate(4deg);} 100%{transform:translate(0,0) rotate(0);} }
.dance-6-3 { animation: d63 1.6s ease-in-out infinite; }
@keyframes d63 { 0%{transform:translate(0,0) rotate(0);} 20%{transform:translate(-4px,-4px) rotate(-5deg) scale(1.03);} 40%{transform:translate(4px,-6px) rotate(5deg) scale(1.04);} 60%{transform:translate(-3px,-5px) rotate(-4deg) scaleY(1.05);} 80%{transform:translate(3px,-3px) rotate(3deg);} 100%{transform:translate(0,0) rotate(0);} }
.dance-6-4 { animation: d64 2s ease-in-out infinite; }
@keyframes d64 { 0%{transform:translate(0,0) rotate(0) scale(1);} 15%{transform:translate(-5px,-5px) rotate(-8deg) scale(1.05);} 30%{transform:translate(5px,-8px) rotate(6deg) scale(1.06);} 45%{transform:translate(0,-9px) rotate(0) scale(1.08);} 60%{transform:translate(-4px,-6px) rotate(-5deg) scale(1.05);} 75%{transform:translate(4px,-4px) rotate(5deg) scale(1.03);} 100%{transform:translate(0,0) rotate(0) scale(1);} }
/* TYPE 7: フェニックス */
.dance-7-1 { animation: d71 1.2s ease-in-out infinite; }
@keyframes d71 { 0%,100%{transform:scale(1) rotate(0);} 30%{transform:scale(1.04) rotate(-3deg);} 70%{transform:scale(1.04) rotate(3deg);} }
.dance-7-2 { animation: d72 1.5s ease-in-out infinite; }
@keyframes d72 { 0%{transform:scale(1) rotate(0) translateY(0);} 25%{transform:scale(1.05) rotate(-5deg) translateY(-4px);} 50%{transform:scale(1.08) rotate(0) translateY(-8px);} 75%{transform:scale(1.05) rotate(5deg) translateY(-4px);} 100%{transform:scale(1) rotate(0) translateY(0);} }
.dance-7-3 { animation: d73 1.8s ease-in-out infinite; }
@keyframes d73 { 0%{transform:rotate(0) scale(1) translate(0,0);} 20%{transform:rotate(-8deg) scale(1.06) translate(-3px,-6px);} 40%{transform:rotate(5deg) scale(1.09) translate(3px,-9px);} 60%{transform:rotate(-4deg) scale(1.08) translate(-2px,-8px);} 80%{transform:rotate(6deg) scale(1.05) translate(2px,-4px);} 100%{transform:rotate(0) scale(1) translate(0,0);} }
.dance-7-4 { animation: d74 2.2s ease-in-out infinite; }
@keyframes d74 { 0%{transform:rotate(0) scale(1);} 12%{transform:rotate(-10deg) scale(1.1) translate(-4px,-8px);} 25%{transform:rotate(8deg) scale(1.12) translate(4px,-11px);} 37%{transform:rotate(0) scale(1.15) translateY(-14px);} 50%{transform:rotate(-8deg) scale(1.12) translate(-3px,-11px);} 62%{transform:rotate(10deg) scale(1.1) translate(3px,-8px);} 75%{transform:rotate(-5deg) scale(1.08) translate(-2px,-5px);} 87%{transform:rotate(5deg) scale(1.05) translate(2px,-3px);} 100%{transform:rotate(0) scale(1);} }

/* ===== Mini dances ===== */
.mini-dance-1-1,.mini-dance-1-2,.mini-dance-1-3,.mini-dance-1-4 { animation: md1 1s ease-in-out 1; }
@keyframes md1 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-4px) rotate(2deg);} }
.mini-dance-2-1,.mini-dance-2-2,.mini-dance-2-3,.mini-dance-2-4 { animation: md2 0.8s ease-in-out 1; }
@keyframes md2 { 0%,100%{transform:translateY(0);} 40%{transform:translateY(-6px);} }
.mini-dance-3-1,.mini-dance-3-2,.mini-dance-3-3,.mini-dance-3-4 { animation: md3 0.6s ease-in-out 1; }
@keyframes md3 { 0%,100%{transform:scaleX(1) scaleY(1);} 50%{transform:scaleX(1.05) scaleY(0.96);} }
.mini-dance-4-1,.mini-dance-4-2,.mini-dance-4-3,.mini-dance-4-4 { animation: md4 0.9s ease-in-out 1; }
@keyframes md4 { 0%,100%{transform:skewX(0);} 50%{transform:skewX(2deg) scaleY(0.97);} }
.mini-dance-5-1,.mini-dance-5-2,.mini-dance-5-3,.mini-dance-5-4 { animation: md5 0.8s ease-in-out 1; }
@keyframes md5 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px) rotate(2deg);} }
.mini-dance-6-1,.mini-dance-6-2,.mini-dance-6-3,.mini-dance-6-4 { animation: md6 0.8s ease-in-out 1; }
@keyframes md6 { 0%,100%{transform:rotate(0);} 30%{transform:rotate(-3deg);} 70%{transform:rotate(3deg);} }
.mini-dance-7-1,.mini-dance-7-2,.mini-dance-7-3,.mini-dance-7-4 { animation: md7 0.9s ease-in-out 1; }
@keyframes md7 { 0%,100%{transform:scale(1);} 50%{transform:scale(1.04) translateY(-3px);} }

/* Stage 5 dances（穏やか版） */
.dance-1-5 { animation: d15 3s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(100,180,255,0.3)); }
@keyframes d15 { 0%{transform:rotate(0) scale(1);} 25%{transform:rotate(-8deg) scale(1.08) translateY(-10px);} 50%{transform:rotate(6deg) scale(1.1) translateY(-15px);} 75%{transform:rotate(-5deg) scale(1.08) translateY(-8px);} 100%{transform:rotate(0) scale(1);} }
.dance-2-5 { animation: d25 2s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255,215,0,0.3)); }
@keyframes d25 { 0%{transform:translateY(0) scale(1);} 25%{transform:translateY(-15px) rotate(-8deg) scale(1.08);} 50%{transform:translateY(0) scaleY(0.9);} 75%{transform:translateY(-12px) rotate(6deg) scale(1.06);} 100%{transform:translateY(0) scale(1);} }
.dance-3-5 { animation: d35 1.8s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255,165,0,0.3)); }
@keyframes d35 { 0%{transform:rotate(0) scale(1);} 25%{transform:rotate(-6deg) scaleX(1.08) scaleY(0.92);} 50%{transform:rotate(5deg) scale(1.1);} 75%{transform:rotate(-4deg) scaleX(1.06) scaleY(0.95);} 100%{transform:rotate(0) scale(1);} }
.dance-4-5 { animation: d45 2.5s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(150,100,255,0.3)); }
@keyframes d45 { 0%{transform:skewX(0) scale(1);} 25%{transform:skewX(6deg) scaleY(0.9);} 50%{transform:skewX(-8deg) scale(1.08);} 75%{transform:skewX(4deg) scaleY(0.92);} 100%{transform:skewX(0) scale(1);} }
.dance-5-5 { animation: d55 2.5s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255,100,150,0.3)); }
@keyframes d55 { 0%{transform:translate(0,0) scale(1);} 25%{transform:translate(-6px,-10px) rotate(-10deg) scale(1.08);} 50%{transform:translate(6px,-14px) rotate(8deg) scale(1.1);} 75%{transform:translate(-4px,-8px) rotate(-6deg) scale(1.06);} 100%{transform:translate(0,0) scale(1);} }
.dance-6-5 { animation: d65 2.2s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(100,200,100,0.3)); }
@keyframes d65 { 0%{transform:translate(0,0) scale(1);} 25%{transform:translate(-5px,-6px) rotate(-8deg) scale(1.06);} 50%{transform:translate(5px,-10px) rotate(6deg) scale(1.1);} 75%{transform:translate(-3px,-5px) rotate(-5deg) scale(1.05);} 100%{transform:translate(0,0) scale(1);} }
.dance-7-5 { animation: d75 2.5s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,100,50,0.35)); }
@keyframes d75 { 0%{transform:rotate(0) scale(1);} 25%{transform:rotate(-10deg) scale(1.1) translate(-5px,-8px);} 50%{transform:rotate(8deg) scale(1.15) translateY(-14px);} 75%{transform:rotate(-6deg) scale(1.08) translate(-3px,-6px);} 100%{transform:rotate(0) scale(1);} }

/* Stage 5 mini dances */
.mini-dance-1-5 { animation: md1s5 1.3s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(100,180,255,0.2)); }
@keyframes md1s5 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px) rotate(3deg) scale(1.04);} }
.mini-dance-2-5 { animation: md2s5 1s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(255,215,0,0.2)); }
@keyframes md2s5 { 0%,100%{transform:translateY(0);} 40%{transform:translateY(-8px) scale(1.04);} }
.mini-dance-3-5 { animation: md3s5 0.8s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(255,165,0,0.2)); }
@keyframes md3s5 { 0%,100%{transform:scaleX(1) scaleY(1);} 50%{transform:scaleX(1.06) scaleY(0.94) rotate(2deg);} }
.mini-dance-4-5 { animation: md4s5 1.1s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(150,100,255,0.2)); }
@keyframes md4s5 { 0%,100%{transform:skewX(0);} 50%{transform:skewX(3deg) scaleY(0.96);} }
.mini-dance-5-5 { animation: md5s5 1s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(255,100,150,0.2)); }
@keyframes md5s5 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px) rotate(3deg) scale(1.04);} }
.mini-dance-6-5 { animation: md6s5 0.9s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(100,200,100,0.2)); }
@keyframes md6s5 { 0%,100%{transform:rotate(0);} 30%{transform:rotate(-4deg) scale(1.03);} 70%{transform:rotate(4deg) scale(1.03);} }
.mini-dance-7-5 { animation: md7s5 1.1s ease-in-out 1; filter: drop-shadow(0 0 3px rgba(255,100,50,0.2)); }
@keyframes md7s5 { 0%,100%{transform:scale(1);} 50%{transform:scale(1.06) translateY(-5px);} }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    :root { --section-padding: 3rem 1.2rem; }
    .empathy-grid { grid-template-columns: 1fr; }
    .about-content { text-align: center; }

    .about-credentials { justify-content: center; }
    .voice-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-trust-badges { flex-direction: column; align-items: center; gap: 0.5rem; }
    /* ★ 推薦者は4人。1列に積むと写真＋2行の説明で縦に長くなりすぎるため、
       スマホでは 2×2 のグリッドにして高さを半分にする（2026/07 変更）。 */
    .trust-strip-inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.6rem;
        align-items: start;
    }
    /* 区切り線はグリッドでは不要（列が分かれるため）。消して縦を稼ぐ。 */
    .trust-strip-divider { display: none; }
    /* 各項目は写真を上、文字を下にして、狭い1列でも収まるようにする */
    .trust-strip-item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
    }
    .trust-strip-img { width: 48px; height: 48px; }
    .trust-strip-label { font-size: 0.68rem; margin-bottom: 0.1rem; }
    .trust-strip-text { font-size: 0.64rem; line-height: 1.5; }
    /* 説明文の <br> はPC向けの改行。狭い列では自然に折り返させる */
    .trust-strip-text br { display: none; }
    .reasons-inner { grid-template-columns: 1fr; gap: 0.5rem; }
    /* ★ 推薦セクション
       動画付きカードは、2列に並べるとサムネイル・肩書き・推薦文が
       すべて小さくなり読めなくなった（実機確認）。1枚ずつに戻す。
       ここは「読ませて信じてもらう」場所なので、縦の長さより読みやすさを優先する。 */
    .endorsement-row { grid-template-columns: 1fr; }
    .endorsement-card { padding: 1.5rem; }
    /* 文章カード（荒木氏 / UCSF受賞）だけ、写真を横→上にして本文の幅を活かす。
       （横に置くと狭い画面では推薦文の幅が削られて読みにくいため） */
    .endorsement-card:not(.has-video) { flex-direction: column; gap: 0.8rem; }
    /* ★「🎬 推薦メッセージを見る」のラベルは、PCではサムネイルの左下に浮かせている。
       スマホはサムネイルが約155pxしかなく、人物の顔に重なってしまう。
       ※ ラベルは <a class="video-thumbnail">（16:9・overflow:hidden）の中にあるため、
         外に出す（position:static）と枠に収まらず切れてしまう。
         そこで「下辺いっぱいの帯」にして、顔にかからない一番下だけを覆う。 */
    .video-rec-label {
        left: 0;
        right: 0;
        bottom: 0;
        text-align: center;
        border-radius: 0;
        font-size: 0.68rem;
        padding: 0.4rem 0.5rem;
        /* 下から上へ自然に消えるグラデ。写真を塊で隠さない。 */
        background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.62) 60%, rgba(0,0,0,0) 100%);
        letter-spacing: 0.02em;
    }
    .service-photo-feature { flex-direction: column; }
    .service-photo { width: 100%; height: 180px; }
    .team-grid { grid-template-columns: 1fr; max-width: 240px; }
    /* ★ 信頼バッジは4枚。1列に積むと縦に長くなるため、スマホでも2列のままにする。
       （PCと同じ 2列。狭いぶんアイコン・文字・余白を少し詰める）2026/07 変更 */
    .about-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 0.5rem; }
    .about-trust-card { padding: 0.6rem 0.55rem; gap: 0.4rem; border-radius: 12px; }
    .about-trust-icon { font-size: 1.1rem; }
    .about-trust-text { font-size: 0.62rem; line-height: 1.45; }
    .about-story-card { padding: 1.2rem 1.2rem; }
    .about-footer-row { flex-direction: column; gap: 0.8rem; }
    .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }
    .theme-tags { gap: 0.5rem; }
    .character-flow { flex-direction: column; align-items: center; }
    .flow-arrow { transform: rotate(90deg); }
    .hero-trust { flex-direction: column; gap: 0.5rem; align-items: center; }
    .chatbot-window { width: calc(100vw - 16px); min-width: unset; right: 8px; bottom: 80px; height: calc(100dvh - 100px); max-height: calc(100dvh - 100px); border-radius: 16px; }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .char-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .empathy-card { padding: 1.2rem 1rem; }
}

/* 王冠フロートアニメーション（有料カウンセリング演出） */
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* チャットプロンプトバブル（ペットの左横に固定） */
.chat-prompt-bubble {
    position: fixed;
    bottom: 190px;
    right: 18px;
    background: var(--color-bg-white);
    padding: 0.7rem 1rem;
    border-radius: 16px 16px 4px 16px;
    font-size: 0.78rem;
    line-height: 1.65;
    color: #4a4540;
    box-shadow: 0 6px 22px rgba(26,98,99,0.16), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(95,158,159,0.14);
    min-width: 0;
    max-width: 230px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    z-index: 1160;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}
.chat-prompt-bubble.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    cursor: pointer;
}
.chat-prompt-bubble .prompt-char-name {
    font-size: 0.7rem;
    color: var(--color-primary-dark);
    margin-bottom: 3px;
    font-weight: 700;
}
.chat-prompt-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    border: 8px solid transparent;
    border-top-color: var(--color-bg-white);
}
/* ★ スマホでは幅を抑えてコンパクトに（画面を圧迫しない） */
@media (max-width: 600px) {
  .chat-prompt-bubble {
    bottom: 180px;
    font-size: 0.74rem;
    padding: 0.6rem 0.85rem;
    max-width: 62vw;
  }
}
@media (max-width: 380px) {
  .chat-prompt-bubble { max-width: 58vw; font-size: 0.72rem; }
}

/* メディア掲載バー */


/* SNSリンク */
.about-sns { display: flex; gap: 1rem; margin-top: 1rem; justify-content: center; }
.sns-link { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 36px; height: auto; border-radius: 0; background: none; color: var(--color-text-muted); transition: all 0.2s; text-decoration: none; }
.sns-link svg { width: 36px; height: 36px; padding: 9px; background: var(--color-bg-soft); border-radius: 50%; transition: all 0.2s; }
.sns-link:hover svg { background: var(--color-primary); color: #fff; }
.sns-label { font-size: 0.6rem; color: var(--color-text-muted); letter-spacing: 0.02em; white-space: nowrap; }
.sns-link:hover .sns-label { color: var(--color-primary); }
.footer-sns { display: flex; gap: 1rem; margin-top: 0.6rem; }
.footer-sns .sns-link { width: auto; height: auto; }
.footer-sns .sns-link svg { width: 32px; height: 32px; padding: 8px; background: rgba(255,255,255,0.1); }
.footer-sns .sns-link:hover svg { background: rgba(255,255,255,0.25); }
.footer-sns .sns-label { color: rgba(255,255,255,0.5); }
.footer-sns .sns-link:hover .sns-label { color: rgba(255,255,255,0.9); }

/* ===== 数字インパクトストリップ ===== */
.stats-strip { background: var(--color-bg-white); border-bottom: 1px solid var(--color-border-light); padding: 2.5rem 2rem; }
.stats-strip-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: center; gap: 3rem; text-align: center; flex-wrap: wrap; }
.stat-item { min-width: 130px; }
.stat-number { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--color-primary-dark); line-height: 1.3; }
.stat-label { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 0.2rem; letter-spacing: 0.05em; }

/* ★ スマホでは3つを横並びにする（2026/07 追加）
   元は flex + min-width:130px + gap:3rem で、横並びに 550px 必要だった。
   スマホ(360〜414px)では収まらず縦積みになり、間延びしていた。
   3等分のグリッドにし、文字サイズと余白を画面幅に合わせて縮める。 */
@media (max-width: 640px) {
  .stats-strip { padding: 1.6rem 0.8rem; }
  .stats-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
  }
  .stat-item { min-width: 0; }              /* 3等分に収まるよう最小幅を解除 */
  /* 画面幅に応じて滑らかに縮む（狭い端末でも溢れない） */
  .stat-number { font-size: clamp(0.95rem, 4.4vw, 1.35rem); }
  .stat-label  { font-size: clamp(0.54rem, 2.3vw, 0.66rem); line-height: 1.5; letter-spacing: 0; margin-top: 0.3rem; }
}

/* ===== ビジュアルバンド ===== */
.visual-band { padding: 3rem 2rem; background: var(--color-bg); text-align: center; position: relative; }
.visual-band-text { max-width: 500px; margin: 0 auto; font-family: var(--font-display); font-size: 1.15rem; color: var(--color-text-light); line-height: 2; font-weight: 500; }
.visual-band-sub { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.6rem; letter-spacing: 0.05em; }

/* ===== ヒーローキャプション ===== */
.hero-photo-caption { text-align: center; margin-top: 0.6rem; font-family: var(--font-display); font-size: 0.82rem; color: var(--color-text); font-weight: 500; height: 2.8rem; position: relative; }
.hero-caption-slide { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transition: opacity 1s ease-in-out; line-height: 1.4; }
.hero-caption-slide.active { opacity: 1; }
.hero-caption-slide span { display: block; font-size: 0.68rem; color: var(--color-text-muted); margin-top: 0.1rem; letter-spacing: 0.05em; }

/* ===== 和の余白美（セクション間の呼吸） ===== */
.section-header .en-title { position: relative; display: inline-block; }
.section-header .en-title::after { content: ''; display: block; width: 24px; height: 1px; background: var(--color-primary); margin: 0.6rem auto 0; }

/* セクション区切り線 */
.section-divider { width: 40px; height: 1px; background: var(--color-border); margin: 0 auto; }

/* カードの微細なホバー */


.empathy-card { transition: transform 0.3s ease; }
.empathy-card:hover { transform: translateY(-2px); }

/* ボタン洗練 */
.btn { letter-spacing: 0.05em; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.15); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.4s, height 0.4s; }
.btn-primary:hover::after { width: 300px; height: 300px; }

/* mid-CTA の洗練 */
.mid-cta { position: relative; }
.mid-cta::before { content: ''; display: block; width: 30px; height: 1px; background: var(--color-primary); margin: 0 auto 1.5rem; }

/* 和紙テクスチャ（微細） */
.empathy-section { background: var(--color-bg-white); position: relative; }
.transformation { position: relative; }

/* フッター洗練 */
footer { letter-spacing: 0.03em; }

/* ===== カウンセラー プロフィール内メディア ===== */
.about-media { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border-light); text-align: center; }
.about-media-label { font-size: 0.7rem; color: var(--color-text-muted); letter-spacing: 0.1em; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.about-media-items { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.about-media-items a { font-size: 0.75rem; color: var(--color-text-light); text-decoration: none; padding: 0.3rem 0.7rem; border: 1px solid var(--color-border-light); border-radius: 4px; transition: all 0.2s; }
.about-media-items a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

/* ===================================================
   ===== ライブチャット システム CSS =====
   =================================================== */

/* パルスアニメーション */
@keyframes livechatPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}

/* フローティングCTA内のライブチャットボタン */
.floating-cta-livechat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.lc-status-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    flex-shrink: 0;
}
.lc-status-label {
    font-size: 0.65rem;
    color: var(--color-text-light);
    white-space: nowrap;
}
.lc-chat-btn {
    background: linear-gradient(135deg, #2eb0c6, #1e8fa3);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lc-chat-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(46,176,198,0.3);
}
.floating-cta-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    margin: 0 0.3rem;
}

/* ライブチャット：システムメッセージ */
.livechat-system-msg {
    text-align: center;
    font-size: 0.68rem;
    color: #7a7067;
    padding: 0.25rem 0.75rem;
    margin: 0.6rem auto;
    background: rgba(244,240,235,0.85);
    border-radius: 14px;
    line-height: 1.5;
    display: inline-block;
    max-width: 85%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(4px);
}

/* ライブチャット：タイムスタンプ（LINE風：バブルの外側） */
.livechat-time {
    display: block;
    font-size: 0.58rem;
    color: #b5ada5;
    margin-top: 0.15rem;
    text-align: right;
    line-height: 1;
}
.chat-message.user .livechat-time {
    text-align: left;
}

/* ===== Supramentor ライブチャット背景（ブランドカラー・ポップ） ===== */
.chatbot-messages.lc-mode {
    background: linear-gradient(180deg, #edf3f3 0%, #f3eeea 50%, #edf3f3 100%) !important;
    background-image: 
        radial-gradient(ellipse at 15% 85%, rgba(95,158,159,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 15%, rgba(196,133,110,0.05) 0%, transparent 60%) !important;
}

/* ===== Supramentorバブル（LINE機能 × ブランドデザイン） ===== */
/* 相手（カウンセラー）のメッセージ：白バブル・左寄せ */
.lc-mode .chat-message.bot.livechat-msg {
    background: #ffffff !important;
    color: var(--color-text) !important;
    border-radius: 4px 16px 16px 16px !important;
    padding: 0.7rem 0.95rem !important;
    max-width: 78% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    box-shadow: 0 1px 4px rgba(61,56,50,0.06) !important;
    position: relative;
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
    border: 1px solid rgba(221,214,205,0.5) !important;
    animation: lcMsgReceive 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes lcMsgReceive {
    0% { opacity: 0; transform: translateY(8px) scale(0.95); box-shadow: 0 0 0 rgba(95,158,159,0); }
    50% { opacity: 1; transform: translateY(-2px) scale(1.01); box-shadow: 0 4px 20px rgba(95,158,159,0.15); }
    100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 1px 4px rgba(61,56,50,0.06); }
}

/* 自分のメッセージ：Supraティール・右寄せ */
.lc-mode .chat-message.user.livechat-msg {
    background: linear-gradient(135deg, #d4eef0, #c8e6e8) !important;
    color: var(--color-text) !important;
    border-radius: 16px 4px 16px 16px !important;
    padding: 0.7rem 0.95rem !important;
    max-width: 78% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    box-shadow: 0 2px 6px rgba(95,158,159,0.12) !important;
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
    border: 1px solid rgba(95,158,159,0.12) !important;
    animation: lcMsgSend 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
@keyframes lcMsgSend {
    0% { opacity: 0; transform: scale(0.97); }
    50% { opacity: 1; transform: scale(1.02); box-shadow: 0 3px 12px rgba(95,158,159,0.2); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 2px 6px rgba(95,158,159,0.12); }
}

/* ライブチャット時のタイムスタンプ色 */
.lc-mode .livechat-time {
    color: #b5ada5;
}
.lc-mode .chat-message.user .livechat-time {
    color: #b5ada5;
}

/* ライブチャット：メールプロンプト */
.livechat-email-prompt {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 0.8rem;
    margin: 0.5rem 0;
    text-align: center;
}
.livechat-email-prompt p {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.livechat-email-row {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}
.livechat-email-input {
    flex: 1;
    max-width: 200px;
    padding: 0.4rem 0.7rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: var(--font-body);
}
.livechat-email-input:focus {
    border-color: var(--color-primary);
    outline: none;
}
.livechat-email-btn {
    padding: 0.4rem 0.8rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-body);
}
.livechat-email-skip {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-top: 0.3rem;
    text-decoration: underline;
}

/* ライブチャットモード時の入力エリア（Supraブランド） */
.chatbot-input-area.livechat-active {
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-white);
}
.chatbot-input-area.livechat-active .chatbot-input {
    background: var(--color-bg-white);
    border: 1.5px solid var(--color-border);
    border-radius: 20px;
}
.chatbot-input-area.livechat-active .chatbot-input:focus {
    border-color: var(--color-primary);
}

/* 未読バッジ */
.chatbot-badge.has-unread {
    background: #e91e63 !important;
    color: white !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    animation: livechatPulse 1.5s infinite;
}

/* ライブチャットボタンスタイル（チャットボット内） */
.quick-reply.qr-livechat {
    background: linear-gradient(135deg, #e3f2fd, #f0fafb) !important;
    border-color: #2eb0c6 !important;
    color: #1e8fa3 !important;
    font-weight: 600 !important;
}
.quick-reply.qr-livechat:hover {
    background: linear-gradient(135deg, #d4eef3, #e8f7fa) !important;
}

/* ===================================================
   ===== Phase 2: ページ内ライブチャットCTA =====
   =================================================== */

/* カウンセラー紹介後の専用CTA */
.livechat-page-cta {
    max-width: 520px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}
.livechat-page-cta-inner {
    background: var(--color-bg-white);
    border: 1.5px solid var(--color-primary-light);
    border-radius: 24px;
    padding: 1.5rem 1.5rem 1.3rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(95,158,159,0.08);
    position: relative;
    overflow: hidden;
}
.livechat-page-cta-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-warm), var(--color-primary));
    border-radius: 24px 24px 0 0;
}
.lc-cta-avatar {
    width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 0.5rem; border: 2px solid var(--color-primary-light);
    box-shadow: 0 2px 8px rgba(95,158,159,0.15);
}
.lc-cta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.livechat-page-cta-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.6rem;
}
.livechat-page-cta-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}
.livechat-page-cta-text {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 0.6rem;
}
.livechat-page-cta-tags {
    display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 0.8rem;
}
.livechat-page-cta-tags span {
    font-size: 0.65rem; color: var(--color-primary); font-weight: 600;
    background: var(--color-primary-bg); padding: 0.2rem 0.6rem; border-radius: 12px;
}
.livechat-page-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(95,158,159,0.25);
}
.livechat-page-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95,158,159,0.35);
}
.lc-page-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ccc; display: inline-block;
}
.lc-page-dot.online { background: #4caf50; animation: livechatPulse 2s infinite; }
.lc-page-dot.away { background: #ffc107; }
.lc-page-dot.offline { background: #ccc; }
.lc-page-status-text { font-size: 0.7rem; color: var(--color-text-muted); }

/* 利用者の声後のインラインボタン */
.livechat-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--color-bg-white);
    border: 1.5px solid #2eb0c6;
    color: #1e8fa3;
    border-radius: 25px;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
}
.livechat-inline-btn:hover {
    background: #f0fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,176,198,0.15);
}
.lc-inline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
}
.lc-inline-dot.online {
    background: #4caf50;
    animation: livechatPulse 2s infinite;
}
.lc-inline-dot.away { background: #ffc107; }

/* ===================================================
   ===== ライブチャット 初回選択肢 =====
   =================================================== */
.livechat-initial-choices {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
}
.livechat-choices-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 0.6rem;
}
.livechat-choices-btns {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.livechat-choice-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--color-bg-white);
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.livechat-choice-btn:hover {
    border-color: var(--color-primary);
    background: #f8fcfd;
    transform: translateX(3px);
}
.livechat-choice-btn:active {
    transform: translateX(1px);
}
.lc-choice-emoji {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===================================================
   ===== ライブチャット CTAカード・登録促し =====
   =================================================== */

/* CTAカード（訪問者側に表示される予約ボタン付きメッセージ） */
.livechat-cta-card {
    background: transparent !important;
    padding: 0 !important;
}
.lc-cta-body {
    background: var(--color-bg-white);
    border: 1.5px solid #2eb0c6;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.lc-cta-buttons {
    text-align: center;
}
.lc-cta-book-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2eb0c6, #1e8fa3);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46,176,198,0.3);
    animation: livechatCtaPulse 2s ease-in-out infinite;
}
.lc-cta-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,176,198,0.4);
}
@keyframes livechatCtaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(46,176,198,0.3); }
    50% { box-shadow: 0 4px 25px rgba(46,176,198,0.5); }
}
.lc-cta-note {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.4rem;
}

/* 登録促しカード */
.livechat-signup-prompt {
    margin: 0.8rem 0;
}
.lc-signup-inner {
    background: linear-gradient(135deg, #f0fafb, #fff);
    border: 1.5px solid #d4eef3;
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
}
.lc-signup-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.4rem;
}
.lc-signup-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.lc-signup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2eb0c6, #1e8fa3);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 1.8rem;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46,176,198,0.25);
}
.lc-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,176,198,0.35);
}
/* ★ ログインボタン(2026/05追加): 既存ユーザー向け. 
   メインCTAと統一感のあるpill shape + 上品な余白 + さりげない hairline
   特異性を上げるため .lc-signup-inner 配下で指定 */
.lc-signup-inner .lc-login-btn,
button.lc-login-btn {
    display: inline-block;
    background: transparent;
    color: #1e8fa3;
    border: 1px solid rgba(30,143,163,0.35);
    border-radius: 25px;
    padding: 0.55rem 1.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.7rem;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}
.lc-signup-inner .lc-login-btn:hover,
button.lc-login-btn:hover {
    background: rgba(30,143,163,0.06);
    border-color: rgba(30,143,163,0.55);
    color: #156d7d;
    transform: translateY(-1px);
}
.lc-signup-inner .lc-login-btn:active,
button.lc-login-btn:active {
    transform: translateY(0);
}
.lc-signup-note {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* ボットに戻るリンク */
.livechat-back-to-bot {
    text-align: center;
    padding: 0.6rem 0;
    margin-top: 0.3rem;
}
.livechat-back-to-bot span {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.livechat-back-to-bot span:hover {
    color: var(--color-primary);
}

/* ライブチャット時・チャットボット表示時にペットを非表示 */
.pet-container.livechat-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}
/* メール通知案内プロンプト */
.livechat-notif-prompt {
    margin: 0.6rem 0;
}
.lc-notif-inner {
    background: linear-gradient(135deg, #e8f5f0, #f0fafb);
    border: 1.5px solid #b2dfdb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.lc-notif-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e8fa3;
    margin-bottom: 0.3rem;
}
.lc-notif-desc {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}
.lc-notif-row {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}
.lc-notif-skip {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-top: 0.4rem;
    text-decoration: underline;
}

/* キャラクターアバター付きチャットバブル */
.chat-message.bot.with-avatar {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 90%;
}
.char-avatar-bubble {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-bg-white);
    border: 2px solid var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(95,158,159,0.12);
}
.char-avatar-bubble svg {
    width: 28px;
    height: 28px;
}
.char-avatar-bubble.char-speaking {
    animation: charBounce 0.4s ease-in-out 3;
}
@keyframes charBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.char-typing-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary);
    display: inline-block; animation: typingDot 1.2s infinite;
}
.char-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.char-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* メッセージ送信後のアクションチップ（横スクロール・コンパクト） */
.livechat-next-actions,
.livechat-after-reply-actions {
    margin: 0.3rem 0;
}

/* ─────────────────────────────────────────
   ライブチャット用アクションドック
   入力欄の上に常駐する固定アクションバー
   おしゃれ系：薄いガラスモーフィズム + 上部ヘアライン
   ───────────────────────────────────────── */
.lc-action-dock {
    display: none;  /* デフォルト非表示。中身が入った時のみ表示 */
    position: relative;
    flex-shrink: 0;
    padding: 0.55rem 0.85rem 0.5rem;
    background: linear-gradient(180deg, rgba(251, 249, 246, 0) 0%, rgba(251, 249, 246, 0.85) 35%, rgba(251, 249, 246, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 5;
}
/* ライブチャット中で、ドックに中身がある時のみ表示 */
.lc-action-dock.has-actions {
    display: block;
    animation: lcDockSlideUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@keyframes lcDockSlideUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ドック内の chips は標準スタイルを継承するが、
   余計な margin を削って、ドック内のスペーシングに統一 */
.lc-action-dock .livechat-next-actions,
.lc-action-dock .livechat-after-reply-actions {
    margin: 0;
}
.lc-action-dock .lc-chips {
    padding: 0;
    gap: 0.3rem;
    justify-content: flex-start;
}
.lc-action-dock .lc-chip {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(95, 158, 159, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lc-action-dock .lc-chip:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(95, 158, 159, 0.15);
}
.lc-action-dock .lc-chip-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}
.lc-action-dock .lc-chip-muted {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-muted);
}
.lc-action-dock .lc-chip-muted:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--color-text-light);
}

/* AI会話用ショートカット：少しソフトな印象に */
.lc-action-dock .ai-chat-shortcuts .lc-chips {
    justify-content: center;
}
.lc-action-dock .ai-chat-shortcuts .lc-chip {
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
}

.lc-chips-wrap {
    overflow: visible;
}
.lc-chips {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    padding: 0.2rem 0;
}
.lc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
    background: rgba(251,249,246,0.95);
    color: var(--color-text-light);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
}
.lc-chip:hover {
    background: var(--color-bg-white);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    box-shadow: 0 1px 4px rgba(95,158,159,0.15);
}
.lc-chip:active {
    transform: scale(0.97);
}
.lc-chip-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
}
.lc-chip-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    box-shadow: 0 2px 8px rgba(95,158,159,0.3);
}
.lc-chip-muted {
    border-color: transparent;
    background: transparent;
    color: #b5ada5;
    font-weight: 400;
}
.lc-chip-muted:hover {
    background: rgba(0,0,0,0.03);
    border-color: transparent;
    color: var(--color-text-muted);
    box-shadow: none;
}

/* 旧スタイルの互換（他で使われている場合） */
.lc-next-inner {
    background: rgba(251,249,246,0.95);
    border-radius: 16px;
    padding: 0.7rem 0.8rem;
    text-align: center;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(61,56,50,0.04);
}
.lc-next-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.lc-next-btns {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.lc-next-btn {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid var(--color-primary);
    background: var(--color-bg-white);
    color: var(--color-primary-dark);
    font-weight: 600;
}
.lc-next-btn:hover {
    background: var(--color-primary-bg);
}
.lc-next-btn.lc-next-secondary {
    border-color: var(--color-border);
    color: var(--color-text-muted);
    font-weight: 400;
}
.lc-next-btn.lc-next-secondary:hover {
    border-color: #bbb;
    color: var(--color-text-light);
}

/* ライブチャット内の利用者の声カード */
.lc-voices-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.lc-voice-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    border-left: 3px solid var(--color-primary);
}
.lc-voice-stars {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
}
.lc-voice-item p {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}
.lc-voice-item span {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

/* Next actionsの主要ボタン（Supraウォーム） — 旧スタイル互換 */
.lc-next-btn.lc-next-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-color: var(--color-primary);
    font-weight: 700;
    border-radius: 20px;
}
.lc-next-btn.lc-next-primary:hover {
    box-shadow: 0 3px 12px rgba(95,158,159,0.3);
    transform: translateY(-1px);
}

/* 管理者モード時のチャットボットトグル */
.chatbot-toggle.admin-mode {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    animation: none !important;
}
.chatbot-toggle.admin-mode .chatbot-badge {
    background: #e8936a !important;
    color: white !important;
    font-size: 0.6rem !important;
}

/* ヘッダーの新規登録リンク */
.nav-signup-link {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

/* 新着メッセージインジケーター（Supraブランド） */
.livechat-new-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.6rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--color-warm);
}
.livechat-new-indicator::before,
.livechat-new-indicator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-secondary-light);
}

/* フローティング新着メッセージバナー（ユーザー側チャット内） */
.lc-new-msg-banner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e8936a, #d46f52);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(232,147,106,0.4);
    animation: bannerSlideIn 0.4s ease-out;
    white-space: nowrap;
}
.lc-new-msg-banner:hover {
    transform: translateX(-50%) scale(1.05);
}
@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== AIチャット おしゃれバブル ===== */
.chat-message.bot.ai-chat-bubble {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 92%;
    box-shadow: none;
}
.ai-chat-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ai-chat-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-white);
    border: 2px solid var(--color-primary-light);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(95,158,159,0.15);
}
.ai-chat-avatar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-chat-avatar-inner svg {
    width: 30px;
    height: 30px;
}
.ai-chat-body {
    flex: 1;
    min-width: 0;
}
.ai-chat-text {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 4px 16px 16px 16px;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(61,56,50,0.04);
}
/* AI会話モードの選択肢ボタン改善 */
.ai-chat-body .quick-replies {
    margin-top: 0.7rem;
}
.ai-chat-body .quick-reply {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}
/* タイピングインジケーター：AI会話モード */
.chat-message.bot.ai-chat-bubble.typing-indicator {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.ai-chat-bubble .char-typing-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--color-primary-light);
    border-radius: 50%;
    margin-right: 4px;
    animation: typingBounce 1.5s ease-in-out infinite;
}
.ai-chat-bubble .char-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-bubble .char-typing-dot:nth-child(3) { animation-delay: 0.4s; }
.chat-message.bot.ai-chat-bubble.typing-indicator .ai-chat-body {
    display: flex;
    align-items: center;
    min-height: 36px;
}

/* ===== New Hero: Chat-First Layout ===== */
.hero.hero-chat-first { min-height: auto; padding: 6rem 2rem 2.5rem; }
.hero.hero-chat-first .hero-content { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero.hero-chat-first .hero-top { padding-bottom: 0; }
.hero.hero-chat-first .hero-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.8vw, 2.2rem); font-weight: 700; line-height: 1.7; margin-bottom: 0.3rem; color: var(--color-text); letter-spacing: 0.02em; }
.hero.hero-chat-first .hero-description { font-size: 0.92rem; color: var(--color-text-light); margin-bottom: 1.6rem; line-height: 2.2; }
.hero.hero-chat-first .hero-social-proof { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 1.2rem; }
.hero.hero-chat-first .hero-social-proof strong { color: var(--color-primary-dark); }

/* Chat Button - おしゃれなグリーンボタン */
.hero-chat-btn-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.hero-chat-btn { display: inline-flex; align-items: center; gap: 0.7rem; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; border: none; border-radius: 14px; padding: 1rem 2rem 1rem 1.4rem; cursor: pointer; transition: all 0.3s; font-family: var(--font-body); position: relative; box-shadow: 0 4px 16px rgba(95,158,159,0.25); }
.hero-chat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(95,158,159,0.35); }
.hero-chat-btn:active { transform: translateY(-1px); }
.hero-chat-btn-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 50%; flex-shrink: 0; color: white; }
.hero-chat-btn-label { font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; }
.hero-chat-btn-arrow { font-size: 1.3rem; font-weight: 300; opacity: 0.7; transition: transform 0.2s; margin-left: 0.2rem; }
.hero-chat-btn:hover .hero-chat-btn-arrow { transform: translateX(4px); opacity: 1; }
.hero-chat-tags { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.hero-chat-tags span { font-size: 0.72rem; color: var(--color-text-muted); }

/* Mobile adjustments for new hero */
@media (max-width: 768px) {
    .hero.hero-chat-first { padding: 5rem 1.2rem 1.5rem; }
    .hero-chat-btn { padding: 0.8rem 1.5rem 0.8rem 1rem; border-radius: 12px; }
    .hero-chat-btn-icon { width: 34px; height: 34px; }
    .hero-chat-btn-icon svg { width: 18px; height: 18px; }
    .hero-chat-btn-label { font-size: 0.88rem; }
    .hero-chat-tags span { font-size: 0.68rem; }
}

/* =============================================================
   Hero Split（既存）
   ============================================================= */
.hero.hero-split { min-height: auto; padding: 6rem 2rem 3rem; align-items: flex-start; }
.hero-split-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-split-left { text-align: left; }
.hero-split-right { display: flex; flex-direction: column; align-items: center; }
.hero-trust-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.trust-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--color-primary-bg); color: var(--color-primary-dark); font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 999px; letter-spacing: 0.04em; }
.trust-tag .trust-dot { width: 5px; height: 5px; background: var(--color-primary); border-radius: 50%; }
.hero-target-box { background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: 10px; padding: 0.9rem 1.2rem; margin-bottom: 1.8rem; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.hero-target-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--color-text); line-height: 1.6; padding: 0.2rem 0; }
.hero-target-row + .hero-target-row { border-top: 1px solid var(--color-border-light); margin-top: 0.4rem; padding-top: 0.6rem; }
.hero-target-icon { font-size: 0.9rem; }
.hero-title-split { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.55; letter-spacing: 0.01em; margin-bottom: 1.5rem; color: var(--color-text); }
.hero-title-split span { display: block; }
.hero-title-split .highlight { color: var(--color-primary-dark); }
.hero-description-split { font-size: 0.92rem; color: var(--color-text-light); line-height: 2; margin-bottom: 2rem; }
.hero-description-split strong { color: var(--color-text); font-weight: 600; }
.hero-cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.hero-chat-btn-large { display: inline-flex; align-items: center; gap: 0.7rem; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; border: none; border-radius: 999px; padding: 1rem 2rem 1rem 1.4rem; cursor: pointer; transition: all 0.3s; font-family: var(--font-body); box-shadow: 0 4px 16px rgba(95,158,159,0.25); }
.hero-chat-btn-large:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(95,158,159,0.35); }
.hero-chat-btn-large .hero-chat-btn-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; color: white; }
.hero-chat-btn-large .hero-chat-btn-label { font-size: 0.95rem; font-weight: 600; }
.hero-secondary-link { font-size: 0.82rem; color: var(--color-primary-dark); text-decoration: none; padding-left: 0.4rem; transition: color 0.2s; border-bottom: 1px solid transparent; }
.hero-secondary-link:hover { color: var(--color-primary); border-bottom-color: var(--color-primary-light); }
.hero-mockup-caption { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 0.8rem; letter-spacing: 0.04em; }
.chat-mockup { width: 100%; max-width: 380px; background: var(--color-bg-white); border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04); overflow: hidden; display: flex; flex-direction: column; height: 500px; user-select: none; position: relative; }
.chat-mockup-header { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; color: white; }
.chat-mockup-avatar { position: relative; width: 40px; height: 40px; background: rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-mockup-avatar-icon { font-size: 1.1rem; }
.chat-mockup-online-dot { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; background: #4ade80; border: 2px solid var(--color-primary-dark); border-radius: 50%; }
.chat-mockup-header-info { flex: 1; min-width: 0; }
.chat-mockup-name { font-size: 0.92rem; font-weight: 600; }
.chat-mockup-status { font-size: 0.7rem; opacity: 0.9; display: flex; align-items: center; gap: 0.3rem; margin-top: 0.15rem; }
.chat-mockup-status-dot { width: 5px; height: 5px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 0 0 rgba(74,222,128,0.7); animation: chatMockupPulse 2s infinite; }
@keyframes chatMockupPulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); } 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.chat-mockup-body { flex: 1; padding: 1.2rem 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; background: linear-gradient(180deg, #fafbfb 0%, var(--color-bg-white) 100%); transition: opacity 0.5s; }
.chat-mockup-body::-webkit-scrollbar { width: 4px; }
.chat-mockup-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }
.chat-mockup-fadeout { opacity: 0; }
.chat-mockup-row { display: flex; max-width: 100%; }
.chat-mockup-row-bot { justify-content: flex-start; }
.chat-mockup-row-user { justify-content: flex-end; }
.chat-mockup-bubble { padding: 0.65rem 0.95rem; border-radius: 14px; font-size: 0.82rem; line-height: 1.6; max-width: 80%; }
.chat-mockup-bubble-bot { background: var(--color-bg); color: var(--color-text); border-bottom-left-radius: 4px; }
.chat-mockup-bubble-user { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; border-bottom-right-radius: 4px; }
.chat-mockup-typing { display: inline-flex; gap: 4px; padding: 0.85rem 1rem; }
.chat-mockup-typing span { width: 7px; height: 7px; background: var(--color-text-muted); border-radius: 50%; opacity: 0.5; animation: chatMockupTyping 1.2s infinite ease-in-out; }
.chat-mockup-typing span:nth-child(1) { animation-delay: 0s; }
.chat-mockup-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-mockup-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatMockupTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-mockup-options { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.3rem; }
.chat-mockup-option { display: flex; align-items: center; gap: 0.55rem; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.78rem; color: var(--color-text); transition: all 0.25s; }
.chat-mockup-option-icon { font-size: 0.85rem; }
.chat-mockup-option-hover { background: #f5f9f9; border-color: var(--color-primary-light); transform: translateX(2px); }
.chat-mockup-option-selected { background: var(--color-primary-bg); border-color: var(--color-primary); color: var(--color-primary-dark); transform: translateX(4px); box-shadow: 0 2px 8px rgba(95,158,159,0.15); }
.chat-mockup-pressed { transform: scale(0.96) !important; }
.chat-mockup-input { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; background: var(--color-bg-white); border-top: 1px solid var(--color-border-light); transition: background 0.2s; }
.chat-mockup-input-focused { background: #fafdfd; }
.chat-mockup-input-text { flex: 1; position: relative; font-size: 0.78rem; color: var(--color-text); padding: 0.5rem 0.8rem; background: var(--color-bg); border-radius: 999px; min-height: 32px; display: flex; align-items: center; transition: box-shadow 0.2s, background 0.2s; }
.chat-mockup-input-focused .chat-mockup-input-text { background: var(--color-bg-white); box-shadow: 0 0 0 2px var(--color-primary-light); }
.chat-mockup-input-placeholder { color: var(--color-text-muted); transition: opacity 0.2s; }
.chat-mockup-input-placeholder-hidden { opacity: 0; position: absolute; pointer-events: none; }
.chat-mockup-input-typed { color: var(--color-text); white-space: pre; }
.chat-mockup-input-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--color-primary-dark); margin-left: 1px; opacity: 0; vertical-align: middle; }
.chat-mockup-input-caret-on { opacity: 1; animation: chatMockupCaretBlink 0.9s steps(2) infinite; }
@keyframes chatMockupCaretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.chat-mockup-send { width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: white; border: none; display: flex; align-items: center; justify-content: center; transition: transform 0.15s, box-shadow 0.2s; }
.chat-mockup-pressed.chat-mockup-send { transform: scale(0.88) !important; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15); }
.chat-mockup-cursor { position: absolute; top: -11px; left: -11px; width: 22px; height: 22px; pointer-events: none; opacity: 0; z-index: 50; transform: translate(0, 0); transition: opacity 0.3s; will-change: transform; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.chat-mockup-cursor-visible { opacity: 1; }
.chat-mockup-cursor svg { transition: transform 0.18s ease; }
.chat-mockup-cursor-click svg { transform: scale(0.78); }
.chat-mockup-ripple { position: absolute; top: 0; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(95,158,159,0.5); pointer-events: none; opacity: 0; z-index: 49; }
.chat-mockup-ripple-anim { animation: chatMockupRipple 0.6s ease-out; }
@keyframes chatMockupRipple { 0% { opacity: 0.7; transform: scale(0.3); } 100% { opacity: 0; transform: scale(4.5); } }
.anim-fade-in { animation: chatFadeIn 0.4s ease-out both; }
.anim-slide-right { animation: chatSlideRight 0.4s ease-out both; }
@keyframes chatFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chatSlideRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 968px) {
    .hero.hero-split { padding: 5rem 1.5rem 2rem; }
    .hero-split-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-split-left { text-align: center; max-width: 600px; margin: 0 auto; }
    .hero-trust-tags { justify-content: center; }
    .hero-target-box { text-align: left; }
    .hero-cta-stack { align-items: center; }
    .hero-split-right { order: -1; }
    .chat-mockup { max-width: 360px; height: 460px; }
}
@media (max-width: 480px) {
    .hero.hero-split { padding: 4.5rem 1rem 1.5rem; }
    .hero-title-split { font-size: 1.5rem; line-height: 1.5; }
    .chat-mockup { max-width: 100%; height: 440px; border-radius: 14px; }
}

/* =============================================================
   ✦ FINAL DESIGN SYSTEM ✦
   チャットボット ウェルカム & 再訪問 — 完成形
   8pxグリッド / WCAG AA / 統一されたモーション言語
   ============================================================= */

/* デザイントークン — 一元管理 */
:root {
    /* 8pxグリッドスケール */
    --sm-space-1: 0.25rem;   /* 4 */
    --sm-space-2: 0.5rem;    /* 8 */
    --sm-space-3: 0.75rem;   /* 12 */
    --sm-space-4: 1rem;      /* 16 */
    --sm-space-5: 1.25rem;   /* 20 */
    --sm-space-6: 1.5rem;    /* 24 */
    --sm-space-8: 2rem;      /* 32 */
    
    /* タイポグラフィスケール（2:1.125 比率）*/
    --sm-text-xs: 0.6875rem;   /* 11 */
    --sm-text-sm: 0.78125rem;  /* 12.5 */
    --sm-text-base: 0.875rem;  /* 14 */
    --sm-text-md: 0.9375rem;   /* 15 */
    --sm-text-lg: 1.0625rem;   /* 17 */
    --sm-text-xl: 1.1875rem;   /* 19 */
    
    /* line-heightスケール */
    --sm-leading-tight: 1.4;
    --sm-leading-normal: 1.6;
    --sm-leading-relaxed: 1.8;
    
    /* 色相階調（プライマリの深み） */
    --sm-green-50:  #f0f7f6;
    --sm-green-100: #d8e8e7;
    --sm-green-200: #b8d4d4;
    --sm-green-400: #6ba8a9;
    --sm-green-500: #5f9e9f;
    --sm-green-600: #4d8b8c;
    --sm-green-700: #3d6f70;
    --sm-green-900: #1f3838;
    
    /* 暖色アクセント */
    --sm-warm-50:  #fefcf7;
    --sm-warm-100: #faf3e6;
    --sm-warm-200: #f0e4cc;
    --sm-warm-300: #e8d4b3;
    --sm-warm-700: #8b7758;
    
    /* グレースケール（暖色寄り） */
    --sm-gray-50:  #fafaf9;
    --sm-gray-100: #f4f4f3;
    --sm-gray-200: #e8e8e6;
    --sm-gray-300: #d4d4d1;
    --sm-gray-500: #8a8b88;
    --sm-gray-700: #4a4b48;
    --sm-gray-900: #1a1b18;
    
    /* セマンティック */
    --sm-text-primary: var(--sm-gray-900);
    --sm-text-secondary: var(--sm-gray-700);
    --sm-text-tertiary: var(--sm-gray-500);
    
    /* 影 — 3層構造で自然光 */
    --sm-shadow-1: 0 1px 2px rgba(31, 56, 56, 0.04);
    --sm-shadow-2: 0 1px 2px rgba(31, 56, 56, 0.04), 0 4px 8px -2px rgba(31, 56, 56, 0.06);
    --sm-shadow-3: 0 1px 2px rgba(31, 56, 56, 0.04), 0 8px 16px -4px rgba(31, 56, 56, 0.08), 0 16px 32px -8px rgba(95, 158, 159, 0.12);
    --sm-shadow-4: 0 2px 4px rgba(31, 56, 56, 0.04), 0 16px 32px -8px rgba(31, 56, 56, 0.08), 0 24px 48px -12px rgba(95, 158, 159, 0.18);
    
    /* イージング — 統一モーション言語 */
    --sm-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);     /* 標準 */
    --sm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* 要素の出現・着地 */
    --sm-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* 弾性のあるフィードバック */
    
    /* 持続時間 */
    --sm-duration-fast: 200ms;
    --sm-duration-base: 300ms;
    --sm-duration-slow: 500ms;
    --sm-duration-slower: 700ms;
}

/* ─────────────────────────────────────────
   挨拶テキスト
   ───────────────────────────────────────── */
.welcome-greeting,
.reunion-greeting {
    margin-bottom: var(--sm-space-3);
    animation: smGreetingIn var(--sm-duration-slower) var(--sm-ease-out) both;
}
@keyframes smGreetingIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-greeting-text,
.reunion-greeting-text {
    font-family: var(--font-display);
    font-size: var(--sm-text-lg);
    font-weight: 500;
    line-height: var(--sm-leading-normal);
    letter-spacing: 0.04em;
}
.welcome-greeting-text { color: var(--sm-green-700); }
.reunion-greeting-text { color: var(--sm-warm-700); }

.welcome-question,
.reunion-question {
    font-family: var(--font-display);
    font-size: var(--sm-text-md);
    color: var(--sm-text-primary);
    line-height: var(--sm-leading-relaxed);
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-top: var(--sm-space-1);
    animation: smGreetingIn var(--sm-duration-slower) 100ms var(--sm-ease-out) both;
}
.welcome-question strong {
    color: var(--sm-green-700);
    font-weight: 600;
    background: linear-gradient(transparent 65%, rgba(244, 168, 150, 0.28) 65%);
    padding: 0 0.1em;
}
.reunion-question strong {
    color: var(--sm-green-700);
    font-weight: 600;
}

/* 軽量挨拶（メニュー戻り） */
.welcome-greeting-return .welcome-greeting-text,
.reunion-greeting-return .reunion-greeting-text {
    font-family: var(--font-body);
    font-size: var(--sm-text-base);
    font-weight: 500;
    color: var(--sm-text-secondary);
    letter-spacing: 0.02em;
}
.welcome-greeting-return,
.reunion-greeting-return {
    margin-bottom: var(--sm-space-2);
}

/* ─────────────────────────────────────────
   メニューバブル（透明・全幅）
   ───────────────────────────────────────── */
.chat-message.welcome-menu-bubble {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: var(--sm-space-2) !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    align-self: stretch !important;
}

.welcome-menu,
.reunion-menu {
    display: flex;
    flex-direction: column;
    gap: var(--sm-space-3);
    width: 100%;
}

/* メニュー要素の段階的フェードイン */
.welcome-menu > *,
.reunion-menu > * {
    opacity: 0;
    transform: translateY(10px);
    animation: smMenuItemIn var(--sm-duration-slow) var(--sm-ease-out) forwards;
}
.welcome-menu > *:nth-child(1) { animation-delay: 0ms; }
.welcome-menu > *:nth-child(2) { animation-delay: 80ms; }
.welcome-menu > *:nth-child(3) { animation-delay: 160ms; }
.welcome-menu > *:nth-child(4) { animation-delay: 240ms; }
.reunion-menu > *:nth-child(1) { animation-delay: 0ms; }
.reunion-menu > *:nth-child(2) { animation-delay: 100ms; }
.reunion-menu > *:nth-child(3) { animation-delay: 180ms; }
.reunion-menu > *:nth-child(4) { animation-delay: 250ms; }
.reunion-menu > *:nth-child(5) { animation-delay: 310ms; }
@keyframes smMenuItemIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   主役カード（診断）
   ───────────────────────────────────────── */
.welcome-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sm-space-4);
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, var(--sm-warm-50) 100%);
    border: 1px solid var(--sm-warm-300);
    border-radius: 18px;
    padding: var(--sm-space-4) var(--sm-space-5);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    overflow: hidden;
    box-shadow: var(--sm-shadow-3);
    transition: 
        transform var(--sm-duration-slow) var(--sm-ease-out),
        box-shadow var(--sm-duration-slow) var(--sm-ease-out),
        border-color var(--sm-duration-base) var(--sm-ease-in-out);
    -webkit-tap-highlight-color: transparent;
}

/* 左の縦線アニメーション */
.welcome-hero-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--sm-green-500), var(--sm-green-700));
    border-radius: 0 2px 2px 0;
    transition: height var(--sm-duration-slow) var(--sm-ease-out);
}

/* 背景グロー */
.welcome-hero-glow {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 144px;
    height: 144px;
    background: radial-gradient(circle, rgba(244, 168, 150, 0.16) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--sm-duration-slow) var(--sm-ease-in-out);
}

.welcome-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-4);
    border-color: var(--sm-green-200);
}
.welcome-hero-card:hover::before { height: 60%; }
.welcome-hero-card:hover .welcome-hero-glow { opacity: 1; }
.welcome-hero-card:focus-visible {
    outline: 2px solid var(--sm-green-500);
    outline-offset: 3px;
}
.welcome-hero-card:active { transform: translateY(0); transition-duration: 100ms; }

/* 卵イラスト */
.welcome-hero-illust {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-hero-egg {
    width: 100%;
    height: 100%;
    animation: smEggBreathe 4.5s var(--sm-ease-in-out) infinite;
}
@keyframes smEggBreathe {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-3px) rotate(1deg); }
}

/* テキストエリア */
.welcome-hero-content { min-width: 0; }
.welcome-hero-eyebrow {
    font-family: var(--font-en, 'Inter', sans-serif);
    font-size: var(--sm-text-xs);
    font-weight: 600;
    color: var(--sm-warm-700);
    letter-spacing: 0.22em;
    margin-bottom: var(--sm-space-1);
    text-transform: uppercase;
}
.welcome-hero-title {
    font-family: var(--font-display);
    font-size: var(--sm-text-lg);
    font-weight: 700;
    color: var(--sm-text-primary);
    line-height: var(--sm-leading-tight);
    margin-bottom: var(--sm-space-2);
    letter-spacing: 0.02em;
}
.welcome-hero-subtitle {
    font-size: var(--sm-text-sm);
    color: var(--sm-text-secondary);
    line-height: var(--sm-leading-normal);
    margin-bottom: var(--sm-space-3);
}

/* 信頼バッジ（無料・登録不要・約1分）— 機能的安心感 */
.welcome-hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: var(--sm-space-2);
    padding: 0.45rem 0.7rem;
    background: linear-gradient(135deg, rgba(95, 158, 159, 0.06), rgba(184, 212, 213, 0.04));
    border: 1px solid rgba(184, 212, 213, 0.4);
    border-radius: 10px;
}
.welcome-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sm-green-700);
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.welcome-hero-trust-item svg {
    flex-shrink: 0;
    color: var(--sm-green-500);
}
.welcome-hero-trust-dot {
    width: 3px;
    height: 3px;
    background: var(--sm-green-200);
    border-radius: 50%;
    flex-shrink: 0;
}

/* 専門性表記 — 控えめな信頼の証 */
.welcome-hero-credibility {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: var(--sm-space-3);
    font-size: 0.66rem;
    color: var(--sm-warm-700);
    letter-spacing: 0.05em;
    line-height: 1.4;
    opacity: 0.85;
}
.welcome-hero-credibility svg {
    flex-shrink: 0;
    color: var(--sm-warm-700);
    opacity: 0.9;
}
.welcome-hero-credibility strong {
    font-weight: 600;
    color: var(--sm-warm-700);
    letter-spacing: 0.04em;
}

/* CTA行 — ピル型ボタンで終端を作る */
.welcome-hero-action {
    display: inline-flex;
    align-items: center;
}
.welcome-hero-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.55rem 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--sm-green-500), var(--sm-green-700));
    color: white;
    border-radius: 999px;
    font-size: var(--sm-text-base);
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 4px 12px -2px rgba(95, 158, 159, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: 
        transform var(--sm-duration-slow) var(--sm-ease-out),
        box-shadow var(--sm-duration-slow) var(--sm-ease-out),
        padding var(--sm-duration-slow) var(--sm-ease-out);
    position: relative;
    overflow: hidden;
}
/* シャイン効果 */
.welcome-hero-cta-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 65%,
        transparent 100%
    );
    background-size: 250% 100%;
    background-position: 200% center;
    pointer-events: none;
    transition: background-position 0.8s var(--sm-ease-in-out);
}
.welcome-hero-cta-text {
    position: relative;
    z-index: 1;
}
.welcome-hero-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: 
        background var(--sm-duration-slow) var(--sm-ease-out),
        transform var(--sm-duration-slow) var(--sm-ease-out);
    position: relative;
    z-index: 1;
}
.welcome-hero-cta-arrow svg {
    transition: transform var(--sm-duration-slow) var(--sm-ease-spring);
}
/* カードホバー時のCTA変化 */
.welcome-hero-card:hover .welcome-hero-cta-pill {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 20px -2px rgba(95, 158, 159, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.welcome-hero-card:hover .welcome-hero-cta-pill::before {
    background-position: -100% center;
}
.welcome-hero-card:hover .welcome-hero-cta-arrow {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}
.welcome-hero-card:hover .welcome-hero-cta-arrow svg {
    transform: translateX(2px);
}

/* ─────────────────────────────────────────
   仕切り
   ───────────────────────────────────────── */
.welcome-divider {
    display: flex;
    align-items: center;
    gap: var(--sm-space-3);
    font-size: var(--sm-text-xs);
    color: var(--sm-text-tertiary);
    letter-spacing: 0.18em;
    font-weight: 500;
    text-transform: uppercase;
}
.welcome-divider::before,
.welcome-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sm-gray-200);
}

/* ─────────────────────────────────────────
   サブカード
   ───────────────────────────────────────── */
.welcome-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sm-space-2);
}
.welcome-sub-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid var(--sm-gray-200);
    border-radius: 14px;
    padding: var(--sm-space-3) var(--sm-space-2);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--sm-duration-base) var(--sm-ease-out);
    text-align: center;
    box-shadow: var(--sm-shadow-1);
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
}
/* 主役カード（無料チャット）：押し付けず、デザインだけで主役感 */
.welcome-sub-card-primary {
    border-color: var(--sm-green-300, #a8c8c0);
    box-shadow: 0 1px 3px rgba(91, 138, 114, 0.06), 0 4px 14px rgba(91, 138, 114, 0.08);
}
.welcome-sub-card-primary .welcome-sub-icon {
    color: var(--sm-green-700);
}
.welcome-sub-card-primary:hover {
    border-color: var(--sm-green-400);
    box-shadow: 0 4px 14px rgba(91, 138, 114, 0.16), 0 2px 6px rgba(91, 138, 114, 0.06);
}
.welcome-sub-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--sm-shadow-2);
    border-color: var(--sm-green-200);
    background: linear-gradient(135deg, #ffffff, var(--sm-green-50));
}
.welcome-sub-card:focus-visible {
    outline: 2px solid var(--sm-green-500);
    outline-offset: 2px;
}
.welcome-sub-card:active { transform: translateY(0); transition-duration: 100ms; }
.welcome-sub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--sm-green-600);
    flex-shrink: 0;
}
.welcome-sub-card:hover .welcome-sub-icon { color: var(--sm-green-700); }
.welcome-sub-title {
    font-size: var(--sm-text-base);
    font-weight: 500;
    color: var(--sm-text-primary);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   ウェルカム：カウンセラー推奨カード（メイン）
   ───────────────────────────────────────── */
.welcome-counselor-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--sm-space-3);
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--sm-green-200);
    border-radius: 16px;
    padding: 1.1rem 1.2rem 1.1rem 1rem;
    margin-top: var(--sm-space-2);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--sm-duration-base) var(--sm-ease-out);
    text-align: left;
    box-shadow: 0 1px 3px rgba(91, 138, 114, 0.06), 0 4px 12px rgba(91, 138, 114, 0.04);
    -webkit-tap-highlight-color: transparent;
}
.welcome-counselor-card:hover {
    transform: translateY(-2px);
    border-color: var(--sm-green-400);
    box-shadow: 0 4px 14px rgba(91, 138, 114, 0.12), 0 2px 6px rgba(91, 138, 114, 0.06);
}
.welcome-counselor-card:focus-visible {
    outline: 2px solid var(--sm-green-500);
    outline-offset: 2px;
}
.welcome-counselor-card:active { transform: translateY(0); transition-duration: 100ms; }

/* おすすめバッジ：上品なリボン風、左上 */
.welcome-counselor-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    background: var(--sm-green-600);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(91, 138, 114, 0.2);
    z-index: 2;
    line-height: 1.4;
}

.welcome-counselor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sm-green-100);
    color: var(--sm-green-700);
    flex-shrink: 0;
    transition: background var(--sm-duration-base) var(--sm-ease-out), transform var(--sm-duration-base) var(--sm-ease-out);
}
.welcome-counselor-card:hover .welcome-counselor-icon {
    background: var(--sm-green-200);
    transform: scale(1.05);
}
.welcome-counselor-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.welcome-counselor-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sm-text-primary);
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.welcome-counselor-desc {
    font-size: 0.74rem;
    color: var(--sm-text-secondary);
    line-height: 1.5;
    opacity: 0.85;
}
.welcome-counselor-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-green-500);
    flex-shrink: 0;
    transition: transform var(--sm-duration-base) var(--sm-ease-out);
}
.welcome-counselor-card:hover .welcome-counselor-arrow {
    transform: translateX(3px);
    color: var(--sm-green-700);
}

/* ─────────────────────────────────────────
   ウェルカム：AIと話す（サブカード・コンパクト）
   ───────────────────────────────────────── */
.welcome-ai-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--sm-space-3);
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--sm-gray-200);
    border-radius: 14px;
    padding: 0.85rem 1.2rem 0.85rem 1rem;
    margin-top: 0.6rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--sm-duration-base) var(--sm-ease-out);
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    -webkit-tap-highlight-color: transparent;
}
.welcome-ai-card:hover {
    transform: translateY(-1px);
    border-color: var(--sm-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.welcome-ai-card:focus-visible {
    outline: 2px solid var(--sm-green-500);
    outline-offset: 2px;
}
.welcome-ai-card:active { transform: translateY(0); transition-duration: 100ms; }
.welcome-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sm-gray-50);
    color: var(--sm-text-secondary);
    flex-shrink: 0;
    transition: background var(--sm-duration-base) var(--sm-ease-out);
}
.welcome-ai-card:hover .welcome-ai-icon {
    background: var(--sm-gray-100);
}
.welcome-ai-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sm-text-primary);
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.welcome-ai-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-text-tertiary);
    flex-shrink: 0;
    transition: transform var(--sm-duration-base) var(--sm-ease-out);
}
.welcome-ai-card:hover .welcome-ai-arrow {
    transform: translateX(2px);
    color: var(--sm-text-secondary);
}

/* ─────────────────────────────────────────
   テキストリンク（ボタン化）
   ───────────────────────────────────────── */
.welcome-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--sm-gray-200);
    color: var(--sm-text-secondary);
    font-size: var(--sm-text-sm);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    margin: var(--sm-space-1) auto 0;
    cursor: pointer;
    font-family: var(--font-body);
    border-radius: 999px;
    transition: 
        background var(--sm-duration-base) var(--sm-ease-out),
        border-color var(--sm-duration-base) var(--sm-ease-out),
        color var(--sm-duration-base) var(--sm-ease-out),
        transform var(--sm-duration-base) var(--sm-ease-out);
    letter-spacing: 0.04em;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--sm-shadow-1);
}
.welcome-link svg {
    color: var(--sm-text-tertiary);
    transition: color var(--sm-duration-base) var(--sm-ease-out),
                transform var(--sm-duration-base) var(--sm-ease-out);
    flex-shrink: 0;
}
.welcome-link-arrow {
    margin-left: 0.1rem;
}
.welcome-link:hover {
    background: #ffffff;
    border-color: var(--sm-green-200);
    color: var(--sm-green-700);
    transform: translateY(-1px);
    box-shadow: var(--sm-shadow-2);
}
.welcome-link:hover svg {
    color: var(--sm-green-500);
}
.welcome-link:hover .welcome-link-arrow {
    transform: translateX(2px);
}
.welcome-link:hover .welcome-link-arrow-back {
    transform: translateX(-2px);
}
.welcome-link:focus-visible {
    outline: 2px solid var(--sm-green-500);
    outline-offset: 2px;
}
.welcome-link:active {
    transform: translateY(0);
    transition-duration: 100ms;
}

.welcome-clicked {
    animation: smClickFeedback var(--sm-duration-base) var(--sm-ease-spring);
}
@keyframes smClickFeedback {
    0% { transform: scale(1); }
    35% { transform: scale(0.96); }
    100% { transform: scale(1); }
}
.welcome-menu-disabled {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity var(--sm-duration-slow) var(--sm-ease-in-out);
}

/* =============================================================
   再訪問メニュー
   ============================================================= */

/* キャラカード */
.reunion-char-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sm-space-4);
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--sm-warm-50) 100%);
    border: 1px solid var(--sm-warm-300);
    border-radius: 18px;
    padding: var(--sm-space-4) var(--sm-space-5);
    box-shadow: var(--sm-shadow-3);
    overflow: hidden;
}
.reunion-char-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(184, 212, 213, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.reunion-char-portrait {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reunion-char-portrait-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, var(--sm-green-50) 0%, var(--sm-warm-50) 100%);
    border-radius: 50%;
    border: 1px solid var(--sm-green-200);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.reunion-char-portrait-figure {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    animation: smCharBreathe 4s var(--sm-ease-in-out) infinite;
}
.reunion-char-portrait-figure svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
@keyframes smCharBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* キャラ情報 */
.reunion-char-info { min-width: 0; }
.reunion-char-eyebrow {
    font-family: var(--font-en, 'Inter', sans-serif);
    font-size: var(--sm-text-xs);
    font-weight: 600;
    color: var(--sm-warm-700);
    letter-spacing: 0.22em;
    margin-bottom: var(--sm-space-1);
    text-transform: uppercase;
}
.reunion-char-name {
    font-family: var(--font-display);
    font-size: var(--sm-text-lg);
    font-weight: 700;
    color: var(--sm-text-primary);
    letter-spacing: 0.04em;
    margin-bottom: var(--sm-space-2);
    line-height: var(--sm-leading-tight);
}

/* キャラのセリフ */
.reunion-char-dialogue {
    background: rgba(255, 255, 255, 0.65);
    border-left: 2px solid var(--sm-green-200);
    border-radius: 0 8px 8px 0;
    padding: var(--sm-space-2) var(--sm-space-3);
    font-size: var(--sm-text-sm);
    color: var(--sm-text-secondary);
    line-height: var(--sm-leading-normal);
    font-style: italic;
    letter-spacing: 0.02em;
}
.reunion-char-line { font-style: italic; }
.reunion-char-special {
    margin-top: var(--sm-space-2);
    padding-top: var(--sm-space-2);
    border-top: 1px dashed rgba(184, 212, 213, 0.5);
    font-size: var(--sm-text-sm);
    color: var(--sm-text-tertiary);
}

/* 完全体の特別装飾 */
.reunion-char-card-complete {
    border-color: rgba(244, 168, 150, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, var(--sm-warm-50) 50%, rgba(244, 168, 150, 0.06) 100%);
}
.reunion-char-card-complete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(244, 168, 150, 0.3) 25%,
        rgba(95, 158, 159, 0.3) 50%,
        rgba(244, 168, 150, 0.3) 75%,
        transparent 100%);
}
.reunion-char-card-complete .reunion-char-eyebrow {
    color: #c8896c;
    letter-spacing: 0.24em;
}
.reunion-char-card-complete .reunion-char-portrait-bg {
    background: radial-gradient(circle at 30% 30%, #fff5ed 0%, var(--sm-warm-100) 100%);
    border-color: rgba(244, 168, 150, 0.4);
}
.reunion-char-milestone {
    margin-top: var(--sm-space-2);
    padding: var(--sm-space-2) var(--sm-space-3);
    background: linear-gradient(135deg, rgba(244, 168, 150, 0.08), rgba(95, 158, 159, 0.05));
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: var(--sm-text-sm);
    color: var(--sm-warm-700);
    line-height: var(--sm-leading-tight);
    letter-spacing: 0.03em;
    text-align: center;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   メインボタン（キャラと話す）
   ───────────────────────────────────────── */
.reunion-primary-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--sm-space-3);
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, var(--sm-green-500), var(--sm-green-700));
    color: white;
    border: none;
    border-radius: 16px;
    padding: var(--sm-space-3) var(--sm-space-4);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    box-shadow: var(--sm-shadow-2), 0 8px 20px -8px rgba(95, 158, 159, 0.5);
    transition: 
        transform var(--sm-duration-slow) var(--sm-ease-out),
        box-shadow var(--sm-duration-slow) var(--sm-ease-out);
    overflow: hidden;
    position: relative;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
}
.reunion-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-3), 0 16px 32px -8px rgba(95, 158, 159, 0.55);
}
.reunion-primary-btn:focus-visible {
    outline: 2px solid var(--sm-green-700);
    outline-offset: 3px;
}
.reunion-primary-btn:active { transform: translateY(0); transition-duration: 100ms; }
.reunion-primary-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}
.reunion-primary-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.reunion-primary-title {
    font-size: var(--sm-text-base);
    font-weight: 600;
    line-height: var(--sm-leading-tight);
    letter-spacing: 0.02em;
}
.reunion-primary-desc {
    font-size: var(--sm-text-sm);
    opacity: 0.85;
    line-height: var(--sm-leading-tight);
}
.reunion-primary-arrow {
    transition: transform var(--sm-duration-slow) var(--sm-ease-out);
    opacity: 0.85;
    color: white;
}
.reunion-primary-btn:hover .reunion-primary-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* セカンダリ：カウンセラー */
.reunion-counselor-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--sm-space-3);
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--sm-green-200);
    border-radius: 16px;
    padding: var(--sm-space-3) var(--sm-space-4);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: all var(--sm-duration-base) var(--sm-ease-out);
    box-shadow: var(--sm-shadow-1);
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
}
.reunion-counselor-btn:hover {
    transform: translateY(-1px);
    border-color: var(--sm-green-500);
    background: linear-gradient(135deg, #ffffff, var(--sm-green-50));
    box-shadow: var(--sm-shadow-2);
}
.reunion-counselor-btn:focus-visible {
    outline: 2px solid var(--sm-green-500);
    outline-offset: 2px;
}
.reunion-counselor-btn:active { transform: translateY(0); transition-duration: 100ms; }
.reunion-counselor-icon {
    width: 32px;
    height: 32px;
    background: var(--sm-green-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sm-green-600);
}
.reunion-counselor-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.reunion-counselor-title {
    font-size: var(--sm-text-base);
    font-weight: 600;
    color: var(--sm-text-primary);
    line-height: var(--sm-leading-tight);
    letter-spacing: 0.02em;
}
.reunion-counselor-desc {
    font-size: var(--sm-text-sm);
    color: var(--sm-text-secondary);
    line-height: var(--sm-leading-tight);
}
.reunion-counselor-meta {
    font-family: var(--font-en, 'Inter', sans-serif);
    font-size: var(--sm-text-xs);
    font-weight: 700;
    color: var(--sm-green-700);
    background: var(--sm-green-50);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.12em;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* サブグリッド */
.reunion-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sm-space-2);
}
.reunion-sub-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sm-space-2);
    background: #ffffff;
    border: 1px solid var(--sm-gray-200);
    border-radius: 14px;
    padding: var(--sm-space-3) var(--sm-space-2);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: center;
    transition: all var(--sm-duration-base) var(--sm-ease-out);
    box-shadow: var(--sm-shadow-1);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.reunion-sub-card:hover {
    transform: translateY(-1px);
    border-color: var(--sm-warm-300);
    background: linear-gradient(135deg, #ffffff, var(--sm-warm-50));
    box-shadow: var(--sm-shadow-2);
}
.reunion-sub-card:focus-visible {
    outline: 2px solid var(--sm-warm-700);
    outline-offset: 2px;
}
.reunion-sub-card:active { transform: translateY(0); transition-duration: 100ms; }
.reunion-sub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-warm-700);
    opacity: 0.85;
    flex-shrink: 0;
}
.reunion-sub-text {
    font-size: var(--sm-text-base);
    font-weight: 500;
    color: var(--sm-text-primary);
    line-height: var(--sm-leading-tight);
}

/* ─────────────────────────────────────────
   レスポンシブ — 緻密な調整
   ───────────────────────────────────────── */

/* 中型タブレット（620〜768px） — 縦比率調整 */
@media (max-width: 768px) and (min-width: 481px) {
    .welcome-hero-card,
    .reunion-char-card { padding: var(--sm-space-4); gap: var(--sm-space-3); }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    .welcome-greeting-text,
    .reunion-greeting-text { font-size: var(--sm-text-md); }
    .welcome-question,
    .reunion-question { font-size: var(--sm-text-base); }
    
    .welcome-hero-card { padding: var(--sm-space-3) var(--sm-space-4); gap: var(--sm-space-3); }
    .welcome-hero-illust { width: 56px; height: 64px; }
    .welcome-hero-title { font-size: var(--sm-text-md); }
    .welcome-hero-subtitle { font-size: var(--sm-text-sm); margin-bottom: var(--sm-space-2); }
    .welcome-hero-eyebrow { font-size: 0.625rem; letter-spacing: 0.18em; }
    .welcome-hero-action-text { font-size: var(--sm-text-sm); }
    .welcome-hero-cta-pill { padding: 0.5rem 0.5rem 0.5rem 0.95rem; font-size: var(--sm-text-sm); gap: 0.45rem; }
    .welcome-hero-cta-arrow { width: 24px; height: 24px; }
    .welcome-hero-cta-arrow svg { width: 12px; height: 12px; }
    .welcome-hero-trust { padding: 0.4rem 0.55rem; gap: 0.35rem; }
    .welcome-hero-trust-item { font-size: 0.65rem; }
    .welcome-hero-trust-item svg { width: 10px; height: 10px; }
    .welcome-hero-credibility { font-size: 0.62rem; margin-bottom: var(--sm-space-2); }
    
    .reunion-char-card { padding: var(--sm-space-3) var(--sm-space-4); gap: var(--sm-space-3); }
    .reunion-char-portrait { width: 56px; height: 56px; }
    .reunion-char-portrait-figure { width: 48px; height: 48px; font-size: 1.9rem; }
    .reunion-char-name { font-size: var(--sm-text-md); }
    
    .reunion-primary-btn,
    .reunion-counselor-btn { padding: var(--sm-space-3); }
    .reunion-primary-title,
    .reunion-counselor-title { font-size: var(--sm-text-base); }
    .reunion-primary-desc,
    .reunion-counselor-desc { font-size: 0.7rem; }
    
    .welcome-sub-card,
    .reunion-sub-card { min-height: 46px; padding: var(--sm-space-2) var(--sm-space-2); }
    .welcome-sub-title { font-size: var(--sm-text-sm); }
    .reunion-sub-text { font-size: 0.78125rem; }
    
    /* 新ウェルカムカード：モバイル調整 */
    .welcome-counselor-card { padding: var(--sm-space-3) var(--sm-space-3); gap: var(--sm-space-2); }
    .welcome-counselor-icon { width: 36px; height: 36px; }
    .welcome-counselor-title { font-size: var(--sm-text-sm); }
    .welcome-counselor-desc { font-size: 0.68rem; }
    .welcome-counselor-badge { font-size: 0.6rem; padding: 0.18rem 0.55rem; }
    .welcome-ai-card { padding: var(--sm-space-2) var(--sm-space-3); }
    .welcome-ai-icon { width: 28px; height: 28px; }
    .welcome-ai-text { font-size: 0.82rem; }
}

/* 超小型（360px以下） */
@media (max-width: 360px) {
    .welcome-hero-card,
    .reunion-char-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--sm-space-2);
    }
    .welcome-hero-illust,
    .reunion-char-portrait { margin: 0 auto; }
    .welcome-hero-action { justify-content: center; }
    .reunion-primary-btn,
    .reunion-counselor-btn {
        grid-template-columns: auto 1fr;
        gap: var(--sm-space-2);
    }
    .reunion-primary-arrow { display: none; }
    .reunion-counselor-meta { 
        position: absolute;
        top: var(--sm-space-2);
        right: var(--sm-space-2);
    }
    .reunion-counselor-btn { position: relative; }
}

/* ─────────────────────────────────────────
   モーション低減対応
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .welcome-greeting,
    .welcome-question,
    .reunion-greeting,
    .reunion-question,
    .welcome-menu > *,
    .reunion-menu > *,
    .welcome-hero-egg,
    .reunion-char-portrait-figure { animation: none !important; }
    .welcome-hero-card,
    .welcome-sub-card,
    .welcome-counselor-card,
    .welcome-ai-card,
    .reunion-primary-btn,
    .reunion-counselor-btn,
    .reunion-sub-card,
    .welcome-link { transition: none !important; }
    .welcome-menu > *,
    .reunion-menu > * { opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────
   ハイコントラスト対応
   ───────────────────────────────────────── */
@media (prefers-contrast: more) {
    .welcome-hero-card,
    .reunion-char-card,
    .welcome-sub-card,
    .welcome-counselor-card,
    .welcome-ai-card,
    .reunion-counselor-btn,
    .reunion-sub-card { border-width: 2px; }
    .welcome-link::after { display: none; }
    .welcome-link { text-decoration: underline; }
}

/* =============================================================
   カウンセラー紹介カード（ライブチャット起動時）
   ICF認定コーチ × ピアサポーター プロフィール表示
   ============================================================= */

.chat-message.counselor-intro-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--sm-warm-50) 100%) !important;
    border: 1px solid var(--sm-warm-300) !important;
    border-radius: 16px !important;
    padding: var(--sm-space-3) var(--sm-space-4) !important;
    box-shadow: var(--sm-shadow-2) !important;
    max-width: 92% !important;
}

.counselor-intro-charline {
    font-size: 0.72rem;
    color: var(--sm-text-tertiary);
    font-style: italic;
    margin-bottom: var(--sm-space-2);
    padding-bottom: var(--sm-space-2);
    border-bottom: 1px dashed var(--sm-gray-200);
    line-height: var(--sm-leading-normal);
}

/* プロフィール本体 */
.counselor-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sm-space-3);
    align-items: center;
    margin-bottom: var(--sm-space-2);
}

.counselor-profile-avatar-link {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    text-decoration: none;
    transition: transform var(--sm-duration-base) var(--sm-ease-out);
    -webkit-tap-highlight-color: transparent;
}
.counselor-profile-avatar-link:hover {
    transform: scale(1.05);
}
.counselor-profile-avatar-link:active {
    transform: scale(0.98);
    transition-duration: 100ms;
}

.counselor-profile-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sm-green-500), var(--sm-green-700));
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 0 0 4px var(--sm-green-200),
        0 4px 12px rgba(95, 158, 159, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counselor-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.counselor-profile-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.counselor-profile-avatar-fallback svg {
    width: 100%;
    height: 100%;
}

.counselor-profile-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.counselor-profile-name {
    font-family: var(--font-display);
    font-size: var(--sm-text-md);
    font-weight: 700;
    color: var(--sm-text-primary);
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.counselor-profile-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.counselor-profile-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.counselor-profile-tag-pro {
    background: linear-gradient(135deg, var(--sm-green-500), var(--sm-green-700));
    color: white;
    box-shadow: 0 1px 3px rgba(95, 158, 159, 0.3);
}

.counselor-profile-tag-peer {
    background: linear-gradient(135deg, rgba(244, 168, 150, 0.18), rgba(232, 137, 108, 0.12));
    color: #b06b54;
    border: 1px solid rgba(244, 168, 150, 0.35);
}

.counselor-profile-cross {
    font-size: 0.7rem;
    color: var(--sm-text-tertiary);
    font-weight: 500;
    font-family: var(--font-en);
    opacity: 0.7;
}

/* プロフィールリンク — 洗練されたインライン CTA */
.counselor-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--sm-green-700);
    text-decoration: none;
    margin-top: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    width: fit-content;
    padding: 0.32rem 0.7rem 0.32rem 0.55rem;
    background: linear-gradient(135deg, rgba(95, 158, 159, 0.08), rgba(95, 158, 159, 0.04));
    border: 1px solid rgba(95, 158, 159, 0.2);
    border-radius: 999px;
    transition: 
        background var(--sm-duration-base) var(--sm-ease-out),
        border-color var(--sm-duration-base) var(--sm-ease-out),
        color var(--sm-duration-base) var(--sm-ease-out),
        transform var(--sm-duration-base) var(--sm-ease-out),
        box-shadow var(--sm-duration-base) var(--sm-ease-out);
    -webkit-tap-highlight-color: transparent;
}

.counselor-profile-link svg {
    flex-shrink: 0;
    transition: transform var(--sm-duration-base) var(--sm-ease-out);
    color: var(--sm-green-500);
}

.counselor-profile-link-arrow {
    margin-left: 0.05rem;
}

.counselor-profile-link:hover {
    background: linear-gradient(135deg, rgba(95, 158, 159, 0.14), rgba(95, 158, 159, 0.08));
    border-color: rgba(95, 158, 159, 0.4);
    color: var(--sm-green-700);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(95, 158, 159, 0.15);
}

.counselor-profile-link:hover .counselor-profile-link-arrow {
    transform: translate(2px, -2px);
}

.counselor-profile-link:active {
    transform: translateY(0);
    transition-duration: 100ms;
}

/* 信頼バッジ行 */
.counselor-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(135deg, rgba(95, 158, 159, 0.05), rgba(184, 212, 213, 0.04));
    border: 1px solid rgba(184, 212, 213, 0.35);
    border-radius: 8px;
    margin-top: var(--sm-space-2);
}

.counselor-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sm-green-700);
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.counselor-trust-item svg {
    flex-shrink: 0;
    color: var(--sm-green-500);
}

.counselor-trust-dot {
    width: 3px;
    height: 3px;
    background: var(--sm-green-200);
    border-radius: 50%;
    flex-shrink: 0;
}

/* スマホ調整 */
@media (max-width: 480px) {
    .counselor-profile-avatar { width: 50px; height: 50px; }
    .counselor-profile-name { font-size: var(--sm-text-base); }
    .counselor-profile-tag { font-size: 0.65rem; }
    .counselor-profile-link { font-size: 0.66rem; padding: 0.28rem 0.6rem 0.28rem 0.5rem; }
    .counselor-trust-item { font-size: 0.65rem; }
    .counselor-trust-row { padding: 0.4rem 0.55rem; gap: 0.3rem; }
}

@media (max-width: 360px) {
    .counselor-profile-title { gap: 0.25rem; }
    .counselor-profile-cross { display: none; }
}

/* 「メニューに戻る」は他の選択肢と同じデザインだが少し控えめに */
.livechat-choice-btn-back {
    background: rgba(255, 255, 255, 0.6) !important;
    color: var(--sm-text-tertiary, #8a8b88) !important;
    margin-top: 0.4rem;
}
.livechat-choice-btn-back:hover {
    background: var(--color-bg-white) !important;
    color: var(--sm-text-secondary, #4a4b48) !important;
}

/* ライブチャット選択肢の「メニューに戻る」リンク（welcome-linkを使う統一） */
.livechat-back-unified {
    margin-top: 0.8rem !important;
    margin-bottom: 0.3rem !important;
    align-self: center;
}

/* 「その他」選択後の「メニューに戻る」配置調整 */
.livechat-cancel-wrap {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0 0.5rem;
    padding: 0 1rem;
}

/* ヘッダーの「メニューに戻る」ボタンは廃止（選択肢の下のリンクに統一） */
.livechat-header-back-btn {
    display: none !important;
}

/* ===== About: Activity Photo Gallery ===== */
.about-activity-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1.5rem; }
.about-activity-item { position: relative; border-radius: var(--radius-md, 10px); overflow: hidden; aspect-ratio: 3/3.5; }
.about-activity-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.4s; }
.about-activity-item:hover img { transform: scale(1.05); }
.about-activity-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.55)); color: white; font-size: 0.68rem; font-weight: 500; padding: 1.5rem 0.6rem 0.4rem; letter-spacing: 0.03em; }
@media (max-width: 768px) {
    .about-activity-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* ライブチャット：入力欄上の常設「通知を受け取る」リンク（控えめ・いつでも押せる） */
.lc-bell-link {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #b58a3a;
    font-size: 0.72rem;
    font-family: inherit;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    text-align: center;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}
.lc-bell-link:hover {
    opacity: 1;
    color: #8a4a0a;
    text-decoration: underline;
}

/* ============================================================
   スマホ下部の空白 & 横向きガクガク揺れ 対策
   ------------------------------------------------------------
   ・空白：iOS Safariで position:fixed;bottom:0 の下部CTAバーが、
     最下部までスクロールした際にドキュメント末尾へ空白帯を作る現象。
     safe-area とビューポート単位のズレが主因。
   ・揺れ：横向き時に hero の 100dvh がアドレスバー開閉のたびに
     再計算され、レイアウトが上下に揺れる現象。
   既存の見た目・動作は変えず、余白と高さの計算だけを安定させる。
   ============================================================ */

/* --- (1) 下部固定バーぶんの空白を吸収：iOSのsafe-areaを尊重 --- */
.floating-cta,
.floating-cta-mini {
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
}

/* --- (2) スクロール領域のはみ出しを抑える保険 ---
   下方向にtranslateされた固定要素がスクロール高さを広げないようにする。
   ページ自体のスクロールには影響しない。 */
body {
    overflow-x: hidden;
}

/* --- (3) 横向き（landscape）時：heroの100dvhを解除して揺れを止める ---
   縦向きは従来通り100dvhでファーストビューを保つ。横向きだけ、
   中身に応じた高さ(auto)にして、アドレスバー開閉による再計算揺れを回避。 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
    }
}

/* --- (4) iOS向け 100dvh の最終フォールバック（dvh非対応の古い端末用） ---
   dvh対応端末には影響しない。非対応端末のみ -webkit-fill-available を使い、
   アドレスバーを含まない実高さで計算して空白・揺れを軽減。 */
@supports (-webkit-touch-callout: none) and (not (height: 100dvh)) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* --- (5) scrollbar-gutter はデスクトップのみ ---
   PCではnav中央寄せのガタつき防止に有効だが、モバイルSafariでは
   右端に余白帯を生む場合がある。スクロールバーが元々重ならない
   タッチ端末では無効化して、意図しない空白を防ぐ。 */
@media (hover: none) and (pointer: coarse) {
    html {
        scrollbar-gutter: auto;
    }
}

/* ============================================================
   推薦カード：UCSF公式連携ブロック（旧3枚目を1枚目に統合）
   ============================================================ */
.endorsement-partnership {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--color-border, #e5e0d5);
}
.endorsement-partnership .media-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
}
.endorsement-partnership-text {
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--color-text, #2b2b2b);
    margin-bottom: 0.6rem;
}
.endorsement-partnership-source {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary-dark, #1a6263);
    line-height: 1.6;
}
.endorsement-partnership-source span {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--color-text-light, #777);
    margin-top: 2px;
}

/* ============================================================
   推薦カード：プロフィールへのリンクボタン
   （動画リンクと共存させるため、カード内の独立ボタンとして設置）
   ============================================================ */
.endorsement-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary-dark, #1a6263);
    text-decoration: none;
    border-bottom: 1px solid rgba(95,158,159,0.45);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.endorsement-profile-link .epl-arrow {
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
}
.endorsement-profile-link:hover {
    color: var(--color-primary, #5f9e9f);
    border-color: var(--color-primary, #5f9e9f);
}
.endorsement-profile-link:hover .epl-arrow {
    transform: translateX(2px);
}
.endorsement-profile-link:focus-visible {
    outline: 2px solid var(--color-primary, #5f9e9f);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   上部 推薦バッジ：リンクだと一目で分かるボタン化
   （trust-strip-link のみ対象。国際学会登壇バッジには影響なし）
   ============================================================ */
a.trust-strip-link {
    padding: 0.5rem 0.75rem;
    background: rgba(95,158,159,0.05);
    border: 1px solid rgba(95,158,159,0.25);
}
a.trust-strip-link:hover {
    background: rgba(95,158,159,0.10);
    border-color: var(--color-primary, #5f9e9f);
}
/* リンクの合図（プロフィールを見る →） */
.trust-strip-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--color-primary-dark, #1a6263);
    opacity: 0.85;
}
.trust-strip-cue span {
    transition: transform 0.2s ease;
}
a.trust-strip-link:hover .trust-strip-cue {
    opacity: 1;
}
a.trust-strip-link:hover .trust-strip-cue span {
    transform: translateX(2px);
}

/* ============================================================
   推薦カード（動画付き）：左右の高さを揃え、ボタンを最下部にそろえる
   ============================================================ */
.endorsement-row { align-items: stretch; }
.endorsement-card.has-video {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* プロフィールボタンをカード最下部へ押し出す */
.endorsement-card.has-video .endorsement-profile-link {
    margin-top: auto;
    align-self: flex-start;
}
/* 連携／師弟ブロックの直後にボタンが続く場合の間隔調整 */
.endorsement-card.has-video .endorsement-partnership + .endorsement-profile-link {
    margin-top: 1rem;
}

/* 上部バッジ合図の矢印（細いシェブロン・控えめ） */
.trust-strip-cue .tsc-arrow {
    font-size: 1.15em;
    line-height: 1;
    transition: transform 0.2s ease;
}
a.trust-strip-link:hover .trust-strip-cue .tsc-arrow {
    transform: translateX(2px);
}
