/* ================================================
   CSS Variables - デザインシステム
================================================ */
:root {
    /* オレンジカラーパレット - ライトモード（洗練されたコーラル系） */
    --color-primary: #FF6B4A;
    --color-primary-dark: #E8563D;
    --color-primary-light: #FF8B6D;
    --color-secondary: #FF9166;
    --color-accent: #FFB08A;

    /* アクセントカラー - 調和された補色系 */
    --color-blue: #4A9FFF;
    --color-purple: #9B6CFF;
    --color-teal: #1CC9B8;
    --color-pink: #FF7AB8;

    /* グラデーション（洗練されたスムーズなブレンド） */
    --gradient-primary: linear-gradient(135deg, #FF6B4A 0%, #FF9166 50%, #FFB08A 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9166 0%, #FFB08A 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 107, 74, 0.97) 0%, rgba(255, 145, 102, 0.95) 50%, rgba(255, 176, 138, 0.93) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 100%);
    --gradient-mesh:
        radial-gradient(at 0% 0%, rgba(74, 159, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(155, 108, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 107, 74, 0.12) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(28, 201, 184, 0.12) 0px, transparent 50%);

    /* ニュートラルカラー - ライトモード */
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-black: #000000;

    /* 背景とテキスト - ライトモード */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #0a0a0a;
    --text-secondary: #1a1a1a;
    --text-tertiary: #404040;
    --border-color: #e5e5e5;
    --header-bg: rgba(255, 255, 255, 0.98);
    --card-bg: #ffffff;

    /* タイポグラフィ */
    --font-display: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    --font-serif: 'Playfair Display', 'Noto Sans JP', serif;
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* ボーダー */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* シャドウ（より繊細で洗練された多層シャドウ） */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px -1px rgba(0, 0, 0, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.10), 0 4px 12px -4px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.14), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
    --shadow-orange: 0 8px 20px rgba(255, 107, 74, 0.18), 0 2px 6px rgba(255, 107, 74, 0.08), 0 0 0 1px rgba(255, 107, 74, 0.04);

    /* トランジション - 最新linear()イージング */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: linear(
        0, 0.004, 0.016, 0.035, 0.063, 0.098, 0.141, 0.191, 0.25, 0.316,
        0.391, 0.473, 0.563, 0.66, 0.766, 0.879, 1, 0.996 99.25%, 1
    );
    --ease-elastic: linear(
        0, 0.218 2.1%, 0.862 6.5%, 1.114, 1.296 10.7%, 1.346, 1.37 12.9%,
        1.373 13.1%, 1.364 13.4%, 1.091 18%, 0.974 20%, 0.914, 0.884,
        0.893, 0.938, 1 29.5%, 1.007 30%, 1 47.9%, 0.998 54.5%, 1 56.7%
    );

    /* レイアウト */
    --container-max-width: 100%;
    --container-padding: clamp(1.25rem, 4vw, 3rem);
    --header-height: 70px;
    --header-max-width: clamp(320px, 92vw, 1480px);
    --content-max-width: clamp(320px, 90vw, 1320px);

    /* グラスモーフィズム */
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-medium: rgba(255, 255, 255, 0.5);
    --glass-bg-heavy: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: none;
    --glass-blur: blur(20px);
    --glass-blur-light: blur(10px);
    --glass-blur-heavy: blur(30px);

    /* グラスモーフィズム - アクセント（洗練されたコーラル系） */
    --glass-accent-bg: rgba(255, 107, 74, 0.08);
    --glass-accent-border: rgba(255, 107, 74, 0.18);
    --glass-accent-hover: rgba(255, 107, 74, 0.12);

    /* カードデザインシステム */
    --card-radius-lg: 18px;
    --card-radius-xl: 24px;
    --card-border-soft: rgba(255, 145, 102, 0.18);
    --card-border-strong: rgba(255, 145, 102, 0.32);
    --card-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 25px 55px rgba(15, 23, 42, 0.16);
    --card-shadow-glow: 0 30px 80px rgba(255, 107, 74, 0.22);
    --card-bg-surface: linear-gradient(150deg, rgba(255, 248, 244, 0.97), rgba(255, 235, 227, 0.98));
    --card-bg-solid: #ffffff;
    --card-bg-glass: rgba(255, 255, 255, 0.92);
}

@media (min-width: 1440px) {
    :root {
        --container-padding: clamp(2rem, 4vw, 4.5rem);
        --header-max-width: clamp(320px, 88vw, 1560px);
        --content-max-width: clamp(320px, 84vw, 1380px);
    }
}

@media (min-width: 1800px) {
    :root {
        --container-padding: clamp(2.5rem, 5vw, 5rem);
        --header-max-width: clamp(320px, 80vw, 1680px);
        --content-max-width: clamp(320px, 75vw, 1500px);
    }
}

/* ダークモード */
[data-theme="dark"] {
    /* オレンジカラーパレット - ダークモード（洗練されたコーラル系） */
    --color-primary: #FF7A59;
    --color-primary-dark: #FF5733;
    --color-primary-light: #FF9B7F;
    --color-secondary: #FF9B7F;
    --color-accent: #FFC4A8;

    /* グラデーション - ダークモード（洗練されたブレンド） */
    --gradient-primary: linear-gradient(135deg, #FF7A59 0%, #FF9B7F 50%, #FFC4A8 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9B7F 0%, #FFC4A8 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 122, 89, 0.95) 0%, rgba(255, 155, 127, 0.92) 50%, rgba(255, 196, 168, 0.90) 100%);

    /* 背景とテキスト - ダークモード（深みのある青みがかったダーク） */
    --bg-primary: #0a0a12;
    --bg-secondary: #12121c;
    --bg-tertiary: #1a1a28;
    --text-primary: #f5f5f7;
    --text-secondary: #c7c7cc;
    --text-tertiary: #8e8e93;
    --border-color: #2c2c3a;
    --header-bg: rgba(10, 10, 18, 0.95);
    --card-bg: rgba(18, 18, 28, 0.8);

    /* グレー調整 */
    --color-gray-50: #1a1a28;
    --color-gray-100: #12121c;
    --color-gray-200: #2c2c3a;
    --color-gray-300: #3a3a4a;
    --color-gray-600: #c7c7cc;
    --color-gray-700: #e5e5e7;
    --color-gray-800: #f5f5f7;
    --color-gray-900: #ffffff;

    /* シャドウ - ダークモード（グロー効果付き） */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 8px -1px rgba(0, 0, 0, 0.5), 0 1px 3px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 122, 89, 0.05);
    --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.7), 0 4px 12px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 122, 89, 0.08);
    --shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 8px 16px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 122, 89, 0.1);
    --shadow-orange: 0 8px 24px rgba(255, 122, 89, 0.35), 0 2px 8px rgba(255, 122, 89, 0.18), 0 0 0 1px rgba(255, 122, 89, 0.12);

    /* グラスモーフィズム - ダークモード（洗練された透明感） */
    --glass-bg-light: rgba(18, 18, 28, 0.65);
    --glass-bg-medium: rgba(18, 18, 28, 0.75);
    --glass-bg-heavy: rgba(18, 18, 28, 0.92);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-accent-bg: rgba(255, 122, 89, 0.15);
    --glass-accent-border: rgba(255, 122, 89, 0.25);
    --glass-accent-hover: rgba(255, 122, 89, 0.22);

    /* カードデザインシステム */
    --card-border-soft: rgba(255, 255, 255, 0.08);
    --card-border-strong: rgba(255, 122, 89, 0.35);
    --card-shadow-soft: 0 25px 60px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 32px 70px rgba(0, 0, 0, 0.65);
    --card-shadow-glow: 0 30px 80px rgba(255, 122, 89, 0.35);
    --card-bg-surface: linear-gradient(150deg, rgba(18, 18, 28, 0.95), rgba(15, 15, 24, 0.9));
    --card-bg-solid: rgba(18, 18, 28, 0.9);
    --card-bg-glass: rgba(18, 18, 28, 0.8);
}

/* ================================================
   リセット & ベーススタイル
================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

/* 最新CSS技術：interpolate-size */
* {
    interpolate-size: allow-keywords;
}

/* レスポンシブメディア要素 */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* テキストのオーバーフロー防止 - スマホ対応改善 */
h1, h2, h3, h4, h5, h6,
p, span, a, button, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* スマホサイズでのテキスト改行改善 */
@media (max-width: 768px) {
    /* モバイル最適化 - すべてのアニメーション・トランジションを無効化 */
    * {
        animation: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    html {
        scroll-behavior: auto !important;
    }

    h1, h2, h3, h4, h5, h6 {
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.3;
    }

    p, span {
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.6;
    }

    /* ヒーローセクションのモバイル対応 */
    .hero {
        padding: calc(var(--header-height) + 1rem) 1rem 1rem;
        text-align: center;
        min-height: 100svh; /* スマホはUI除いた実高 */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    /* モバイルで動画アニメーションを無効化 */
    .hero-video-background {
        animation: videoFadeIn 2s ease-out forwards !important;
        transform: translate(-50%, -50%) !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        /* overflow-x: hidden; を削除 - モバイルスクロール問題を回避 */
    }

    .hero-title {
        text-align: center;
        margin: 0 auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        text-align: center;
        margin: 0 auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-description {
        text-align: center;
        margin: 0 auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 全体のオーバーフロー修正 - モバイル対応 */
    body {
        width: 100%;
        max-width: 100vw;
        position: relative;
        overscroll-behavior-y: none;
    }

    .section {
        width: 100%;
        max-width: 100vw;
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* スムーズスクロールの設定 - モバイル対応 */
    html {
        scroll-behavior: smooth;
        width: 100%;
        max-width: 100vw;
        position: relative;
        -webkit-text-size-adjust: 100%;
        touch-action: manipulation;
        overscroll-behavior-y: none;
    }

    /* セクションのスクロール問題を修正 */
    .section {
        scroll-margin-top: 2rem;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        width: 40px;
        height: 40px;
    }

    .theme-toggle {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
    }
}

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* overflow-x: clip; を削除 - モバイルスクロール問題を回避 */
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    transition: background-color var(--transition-base), color var(--transition-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[data-theme="dark"] body {
    background:
        radial-gradient(ellipse at top, rgba(255, 122, 89, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 122, 89, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    background-attachment: fixed;
}

[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 122, 89, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 155, 127, 0.03) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

button {
    font-family: inherit;
}

/* ================================================
   ユーティリティクラス
================================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
}

/* ================================================
   カードコンポーネント基礎スタイル
================================================ */
:where(.problem-card, .case-card, .job-card, .review-card, .faq-item) {
    --card-radius-current: var(--card-radius-lg);
    --card-bg-current: var(--card-bg-surface);
    --card-border-current: var(--card-border-soft);
    --card-shadow-current: var(--card-shadow-soft);
    border-radius: var(--card-radius-current);
    background: var(--card-bg-current);
    border: var(--card-border-width, 1px) solid var(--card-border-current);
    box-shadow: var(--card-shadow-current);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}


/* ドットパターン背景 */
.section.has-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 107, 74, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.6;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    width: 100%;
    max-width: min(var(--content-max-width), var(--header-max-width));
    margin-left: auto;
    margin-right: auto;
}

/* メインセクションの横幅をヘッダーと揃える */
.problems-section .container,
.jobs-section .container,
.features-section .container,
.cases-section .container,
.reviews-section .container,
#FLOW .container,
.register-section .container {
    width: 100%;
    max-width: min(var(--content-max-width), var(--header-max-width));
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-lg);
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1rem, 2.5vw, 1.25rem);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.08), rgba(255, 145, 102, 0.08));
    border: 1px solid rgba(255, 107, 74, 0.18);
    box-shadow: 0 2px 8px rgba(255, 107, 74, 0.12);
    position: relative;
    transition: all var(--transition-base);
}

[data-theme="dark"] .section-label {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(255, 155, 127, 0.12));
    border: 1px solid rgba(255, 122, 89, 0.25);
    box-shadow: 0 2px 12px rgba(255, 122, 89, 0.15), 0 0 0 1px rgba(255, 122, 89, 0.08);
}

/* ホバーエフェクトを削除 */
.section-label::before {
    display: none;
}

.section-label:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(255, 107, 74, 0.12);
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1), rgba(255, 145, 102, 0.1));
    animation: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
    position: relative;
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        var(--color-primary) 30%,
        var(--text-secondary) 60%,
        var(--text-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sectionTitleGradient 8s ease-in-out infinite;
    max-width: 100%;
    word-break: keep-all;
}

@keyframes sectionTitleGradient {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}


.section-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    will-change: opacity, transform;
    transition:
        opacity var(--fade-duration, 0.6s) cubic-bezier(0.16, 1, 0.3, 1),
        transform var(--fade-duration, 0.6s) cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--fade-delay, 0s);
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fade-in:nth-child(1) { --fade-delay: 0.08s; }
.fade-in:nth-child(2) { --fade-delay: 0.16s; }
.fade-in:nth-child(3) { --fade-delay: 0.24s; }
.fade-in:nth-child(4) { --fade-delay: 0.32s; }
.fade-in:nth-child(5) { --fade-delay: 0.40s; }
.fade-in:nth-child(6) { --fade-delay: 0.48s; }

/* アニメーションユーティリティ */
.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideInUp {
    /* スライドアニメーションを削除 */
}

.animate-zoomIn {
    animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-rotateIn {
    animation: rotateIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideInLeft {
    /* スライドアニメーションを削除 */
}

.animate-slideInRight {
    /* スライドアニメーションを削除 */
}

.hover-float:hover {
    animation: subtleFloat 2s ease-in-out infinite;
}

.hover-bounce:hover {
    animation: gentleBounce 0.6s ease-in-out;
}

.hover-glow:hover {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

/* 遅延アニメーション */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ================================================
   ヘッダー
================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: var(--header-height);
    padding: 0.6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: padding var(--transition-base);
}

.header.scrolled {
    padding: 15px 8px;
    border-radius: 36px;
    margin:5px 0;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: clamp(0.5rem, 1vw, 0.8rem) clamp(1.75rem, 4vw, 2.5rem);
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        backdrop-filter var(--transition-base);
}

.header.scrolled .header-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 238, 231, 0.78) 100%);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 24px 46px rgba(15, 15, 15, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    padding: clamp(0.45rem, 0.9vw, 0.75rem) clamp(1.75rem, 3vw, 2.75rem);
    margin: 0 auto;
}

[data-theme="dark"] .header.scrolled .header-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.85) 0%, rgba(30, 30, 30, 0.78) 100%);
    border-color: rgba(255, 176, 138, 0.28);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);

}

.logo {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0;
    margin-right: 0;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-height: 32px;
    transition: opacity 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    position: relative;
    min-width: 0;
}

.mobile-nav-overlay {
    display: none;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    letter-spacing: 0.03em;
    position: relative;
    padding: clamp(0.3rem, 0.8vw, 0.4rem) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ヒーローセクション上でナビリンクを白に */
.header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.header:not(.scrolled) .nav-link:hover {
    color: var(--color-white);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.5rem;
    margin-left: clamp(0.75rem, 3vw, 2rem);
    flex-shrink: 0;
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ヒーローセクション上でテーマトグルボタンのスタイル調整 */
.header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.header:not(.scrolled) .theme-toggle svg {
    fill: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.theme-toggle:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.header:not(.scrolled) .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.theme-toggle svg {
    position: relative;
    width: 100%;
    height: 100%;
    fill: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ライトモード時のデフォルトスタイル */
[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle svg {
    fill: #2C3E50;
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle:hover svg {
    fill: #1a1a1a;
}

/* ライトモード時のヒーローセクション上（スクロール前）のボタンスタイル */
[data-theme="light"] .header:not(.scrolled) .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

[data-theme="light"] .header:not(.scrolled) .theme-toggle svg {
    fill: #2C3E50;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .header:not(.scrolled) .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

[data-theme="light"] .header:not(.scrolled) .theme-toggle:hover svg {
    fill: #1a1a1a;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

.header.scrolled .theme-toggle {
    border-color: rgba(255, 107, 74, 0.15);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header.scrolled .theme-toggle svg {
    fill: #FF6B4A;
}

.header.scrolled .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 107, 74, 0.25);
    box-shadow: 0 4px 10px rgba(255, 107, 74, 0.12);
}

.header.scrolled .theme-toggle:hover svg {
    fill: #E8563D;
}

/* ライトモード時のスクロール後のボタンスタイル */
[data-theme="light"] .header.scrolled .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header.scrolled .theme-toggle svg {
    fill: #2C3E50;
}

[data-theme="light"] .header.scrolled .theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .header.scrolled .theme-toggle:hover svg {
    fill: #1a1a1a;
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .theme-toggle svg {
    fill: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .header.scrolled .theme-toggle {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 107, 74, 0.2);
}

[data-theme="dark"] .header.scrolled .theme-toggle svg {
    fill: #FFB08A;
}

[data-theme="dark"] .theme-toggle:hover svg {
    fill: #FFD4B8;
}

.theme-icon {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: block;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.floating-consult-cta {
    --cta-base-translateX: 0;
    position: fixed;
    bottom: clamp(1.5rem, 4vh, 3rem);
    right: clamp(1.5rem, 4vw, 3rem);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    background: linear-gradient(135deg, #FF6B4A 0%, #FF9166 50%, #FFB08A 100%);
    box-shadow:
        0 4px 12px rgba(255, 107, 74, 0.3),
        0 2px 6px rgba(255, 107, 74, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate3d(var(--cta-base-translateX), 20px, 0) scale(0.9);
    opacity: 0;
    pointer-events: none;
    z-index: 1200;
    visibility: hidden;
    /* GPU加速 - モバイルでのちらつき防止 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.floating-consult-cta.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(var(--cta-base-translateX), 0, 0) scale(1);
    visibility: visible;
}

.floating-consult-cta.show:hover {
    transform: translate3d(var(--cta-base-translateX), -3px, 0) scale(1.05);
    box-shadow:
        0 8px 20px rgba(255, 107, 74, 0.4),
        0 4px 10px rgba(255, 107, 74, 0.3);
}

.floating-consult-cta.show:active {
    transform: translate3d(var(--cta-base-translateX), -1px, 0) scale(1);
}

.floating-consult-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.floating-consult-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

[data-theme="dark"] .floating-consult-cta {
    box-shadow:
        0 4px 12px rgba(255, 122, 89, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .floating-consult-cta.show:hover {
    box-shadow:
        0 8px 20px rgba(255, 122, 89, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.4);
}

body.nav-open .floating-consult-cta {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--cta-base-translateX), 24px, 0) scale(0.88);
    box-shadow: none;
    visibility: hidden;
}

body.nav-open .floating-consult-cta::after {
    animation: none;
}

/* モバイルメニュー */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 7px;
    width: 32px;
    height: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
}

.header:not(.scrolled) .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:not(.scrolled) .mobile-menu-btn {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.header:not(.scrolled) .mobile-menu-btn span {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.header.scrolled .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 107, 74, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header.scrolled .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 107, 74, 0.25);
    box-shadow: 0 4px 10px rgba(255, 107, 74, 0.12);
}

.header.scrolled .mobile-menu-btn span {
    background: #FF6B4A;
}

.header.scrolled .mobile-menu-btn:hover span {
    background: #E8563D;
}

[data-theme="dark"] .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .mobile-menu-btn span {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .header.scrolled .mobile-menu-btn {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 107, 74, 0.2);
}

[data-theme="dark"] .header.scrolled .mobile-menu-btn span {
    background: #FFB08A;
}

[data-theme="dark"] .header.scrolled .mobile-menu-btn:hover span {
    background: #FFD4B8;
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.nav-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

body.nav-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.nav-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

body.nav-open .mobile-menu-btn {
    background: rgba(255, 107, 74, 0.2);
    border-color: rgba(255, 107, 74, 0.4);
    z-index: 10000;
    position: relative;
}

body.nav-open .mobile-menu-btn span {
    background: var(--color-primary);
}

[data-theme="dark"] body.nav-open .mobile-menu-btn {
    background: rgba(255, 107, 74, 0.25);
    border-color: rgba(255, 107, 74, 0.45);
}

[data-theme="dark"] body.nav-open .mobile-menu-btn span {
    background: var(--color-primary);
}

/* ================================================
   ヒーローセクション
================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: clamp(calc(var(--header-height) + 2rem), 10vh, calc(var(--header-height) + 4rem)) 2rem clamp(2rem, 5vh, 4rem);
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0;
}

.hero-bg-image,
.hero-globe,
.bubbles-container,
.people-animation,
.world-map {
    display: none;
}

[data-theme="dark"] .hero {
    background: #0a0a0a;
}

[data-theme="dark"] .hero::before {
    background-image:
        linear-gradient(rgba(255, 133, 85, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 133, 85, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

[data-theme="dark"] .hero::after {
    color: rgba(255, 107, 53, 0.04);
}

/* 動画背景 */
.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 1;
    filter: brightness(1.05) contrast(1) saturate(1.1);
    animation: videoZoom 60s ease-in-out infinite alternate;
    display: block;
    visibility: visible;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
        filter: brightness(1.05) contrast(1) saturate(1.1) blur(10px);
    }
    to {
        opacity: 1;
        filter: brightness(1.05) contrast(1) saturate(1.1) blur(0px);
    }
}

@keyframes videoZoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.03);
    }
}

/* 動画オーバーレイ */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(20, 10, 10, 0.4) 50%,
            rgba(0, 0, 0, 0.5) 100%
        );
    backdrop-filter: blur(2px);
    mix-blend-mode: normal;
    /* オーバーレイの動きを安定化 */
    transform: translateZ(0);
    will-change: auto;
}

[data-theme="dark"] .hero-video-background {
    opacity: 0.7;
    filter: brightness(0.85) contrast(1.05) saturate(1);
}

[data-theme="dark"] .hero-video-overlay {
    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(20, 10, 10, 0.65) 50%,
            rgba(0, 0, 0, 0.75) 100%
        );
}

/* 背景テキスト「CAREER」 */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    text-transform: uppercase;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtleFloat 20s ease-in-out infinite;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .hero-bg-text {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 50px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(255, 255, 255, 0.05);
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

.continent {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawContinent 3s ease-in-out forwards;
}

.continent:nth-child(1) { animation-delay: 0s; }
.continent:nth-child(2) { animation-delay: 0.3s; }
.continent:nth-child(3) { animation-delay: 0.6s; }
.continent:nth-child(4) { animation-delay: 0.9s; }
.continent:nth-child(5) { animation-delay: 1.2s; }

@keyframes drawContinent {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 0;
    width: 100%;
    max-width: 950px;
    margin-left: auto;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(255, 145, 102, 0.25) 0%,
        rgba(255, 107, 74, 0.15) 40%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s ease-in-out infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 5%;
    right: -15%;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(255, 176, 138, 0.18) 0%,
        rgba(255, 107, 74, 0.08) 40%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: floatAround 15s ease-in-out infinite;
}

/* 画像周りの装飾円 */
.hero-visual .hero-main-image::before {
    content: '';
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 74, 0.06) 0%,
        rgba(255, 145, 102, 0.04) 50%,
        rgba(255, 176, 138, 0.06) 100%
    );
    border-radius: 50%;
    z-index: -1;
    animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    33% {
        transform: scale(1.12);
        opacity: 0.85;
    }
    66% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translate(35px, -45px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(20px, -20px) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translate(-25px, 25px) rotate(270deg);
        opacity: 0.85;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-main-image {
    width: 180%;
    max-width: 180%;
    height: auto;
    box-shadow:
        0 50px 120px rgba(255, 107, 74, 0.32),
        0 20px 60px rgba(255, 145, 102, 0.28),
        0 0 0 1px rgba(255, 107, 74, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    /* モダンでスタイリッシュな有機的形状 */
    clip-path: polygon(
        25% 0%, 35% 0%, 45% 1%, 55% 1%, 65% 0%, 75% 0%,
        82% 3%, 88% 8%, 92% 14%, 95% 21%, 97% 29%, 98% 38%,
        99% 47%, 99% 56%, 98% 65%, 96% 73%, 93% 80%, 88% 86%,
        82% 91%, 75% 94%, 67% 96%, 58% 98%, 49% 99%, 40% 98%,
        31% 96%, 23% 92%, 16% 87%, 10% 81%, 6% 73%, 3% 64%,
        1% 55%, 1% 45%, 2% 36%, 4% 28%, 7% 20%, 12% 13%, 18% 7%
    );
    animation: morphShape 18s ease-in-out infinite, floatImage 8s ease-in-out infinite, imageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
    position: relative;
    filter: saturate(1.18) contrast(1.1) brightness(1.03);
}



.hero-main-image:hover {
    transform: scale(1.06) translateY(-12px) rotate(1.5deg);
    box-shadow:
        0 50px 120px rgba(255, 107, 74, 0.38),
        0 20px 60px rgba(255, 145, 102, 0.32),
        0 0 0 1px rgba(255, 107, 74, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    filter: saturate(1.25) contrast(1.12) brightness(1.06);
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

/* 滑らかで丸みのあるモーフィングアニメーション */
@keyframes morphShape {
    0%, 100% {
        clip-path: polygon(
            30% 5%, 40% 3%, 50% 2%, 60% 3%, 70% 5%,
            80% 8%, 88% 12%, 93% 18%, 96% 25%, 98% 33%,
            99% 42%, 99% 50%, 99% 58%, 98% 67%, 96% 75%,
            93% 82%, 88% 88%, 80% 92%, 70% 95%, 60% 97%,
            50% 98%, 40% 97%, 30% 95%, 20% 92%, 12% 88%,
            7% 82%, 4% 75%, 2% 67%, 1% 58%, 1% 50%,
            1% 42%, 2% 33%, 4% 25%, 7% 18%, 12% 12%, 20% 8%
        );
    }
    25% {
        clip-path: polygon(
            28% 7%, 38% 4%, 50% 3%, 62% 4%, 72% 7%,
            82% 10%, 89% 15%, 94% 21%, 97% 28%, 99% 36%,
            100% 45%, 100% 50%, 100% 55%, 99% 64%, 97% 72%,
            94% 79%, 89% 85%, 82% 90%, 72% 93%, 62% 96%,
            50% 97%, 38% 96%, 28% 93%, 18% 90%, 11% 85%,
            6% 79%, 3% 72%, 1% 64%, 0% 55%, 0% 50%,
            0% 45%, 1% 36%, 3% 28%, 6% 21%, 11% 15%, 18% 10%
        );
    }
    50% {
        clip-path: polygon(
            32% 6%, 42% 4%, 50% 3%, 58% 4%, 68% 6%,
            78% 9%, 86% 13%, 92% 19%, 95% 26%, 97% 34%,
            98% 43%, 98% 50%, 98% 57%, 97% 66%, 95% 74%,
            92% 81%, 86% 87%, 78% 91%, 68% 94%, 58% 96%,
            50% 97%, 42% 96%, 32% 94%, 22% 91%, 14% 87%,
            8% 81%, 5% 74%, 3% 66%, 2% 57%, 2% 50%,
            2% 43%, 3% 34%, 5% 26%, 8% 19%, 14% 13%, 22% 9%
        );
    }
    75% {
        clip-path: polygon(
            29% 6%, 39% 4%, 50% 2%, 61% 4%, 71% 6%,
            81% 9%, 88% 14%, 93% 20%, 96% 27%, 98% 35%,
            99% 44%, 99% 50%, 99% 56%, 98% 65%, 96% 73%,
            93% 80%, 88% 86%, 81% 91%, 71% 94%, 61% 96%,
            50% 98%, 39% 96%, 29% 94%, 19% 91%, 12% 86%,
            7% 80%, 4% 73%, 2% 65%, 1% 56%, 1% 50%,
            1% 44%, 2% 35%, 4% 27%, 7% 20%, 12% 14%, 19% 9%
        );
    }
}

/* 装飾要素 */
.puzzle-piece-decoration {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 74, 0.25), 0 0 40px rgba(255, 107, 74, 0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 74, 0.4), 0 0 60px rgba(255, 107, 74, 0.25);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* 新しい洗練されたアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentleBounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 74, 0.15);
    }
    50% {
        box-shadow: 0 8px 24px rgba(255, 107, 74, 0.3);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(var(--content-max-width), var(--header-max-width));
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    padding: 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

/* 右側の画像を非表示 */
.hero-visual {
    display: none;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 53, 0.08) 0%,
        transparent 60%
    );
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: floatSlow 20s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-30px, 30px);
    }
}

[data-theme="dark"] .hero-content {
    color: #ffffff;
}

[data-theme="dark"] .hero-content::before {
    background: radial-gradient(
        circle,
        rgba(255, 133, 85, 0.12) 0%,
        transparent 60%
    );
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    padding: clamp(0.5rem, 1.2vw, 0.625rem) clamp(1.25rem, 3vw, 1.75rem);
    border-radius: var(--radius-full);
    font-size: clamp(0.7rem, 1.6vw, 0.8125rem);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    animation:
        labelReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        labelGlow 5s ease-in-out 1s infinite;
}

@keyframes labelGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

@keyframes labelReveal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-label::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 180deg at 50% 50%,
        rgba(255, 255, 255, 0) 0deg,
        rgba(255, 255, 255, 0.3) 180deg,
        rgba(255, 255, 255, 0) 360deg
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
}

.hero-label:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    position: relative;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    word-break: keep-all;
}

.hero-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-15deg);
    animation:
        titleWordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) * 0.15s);
    transform-origin: center bottom;
}

/* 各単語に個別の傾きアニメーション */
.hero-title-word:nth-child(1) {
    animation:
        titleWordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        wordTilt1 5s ease-in-out 1s infinite;
}

.hero-title-word:nth-child(3) {
    animation:
        titleWordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards,
        wordTilt2 4.5s ease-in-out 1.15s infinite;
}

.hero-title-word:nth-child(5) {
    animation:
        titleWordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
        wordTilt3 5.5s ease-in-out 1.3s infinite;
}

@keyframes wordTilt1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

@keyframes wordTilt2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-4px) rotate(1.5deg);
    }
    66% {
        transform: translateY(-2px) rotate(0deg);
    }
}

@keyframes wordTilt3 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-3px) rotate(-1.2deg);
    }
    80% {
        transform: translateY(-1px) rotate(0.5deg);
    }
}


@keyframes titleWordReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
    animation:
        expandLine 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards,
        linePulse 5s ease-in-out 1.8s infinite;
}

@keyframes linePulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
        opacity: 1;
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
        opacity: 0.9;
    }
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

[data-theme="dark"] .hero-title {
    color: #ffffff;
    text-shadow: 0 4px 32px rgba(255, 107, 53, 0.15);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    font-style: normal;
    background: linear-gradient(135deg, #FFB08A 0%, #FFFFFF 50%, #FFB08A 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-xl);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: subtitleSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards, gradientFlow 5s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        transform: translateX(-40px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

[data-theme="dark"] .hero-subtitle {
    color: #a3a3a3;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(80px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: descriptionFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards;
}

.hero-description span {
    display: block;
}

@keyframes descriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] .hero-description {
    color: rgba(255, 255, 255, 0.85);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    position: relative;
    justify-content: center;
}

.hero-cta .btn {
    animation: ctaButtonReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.hero-cta .btn:nth-child(1) {
    animation-delay: 0.9s;
}

.hero-cta .btn:nth-child(2) {
    animation-delay: 1.05s;
}

@keyframes ctaButtonReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: clamp(0.9rem, 2vw, 1.0625rem);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B4A 0%, #FF9166 50%, #FFB08A 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 700;
    box-shadow:
        0 8px 24px rgba(255, 107, 74, 0.4),
        0 4px 12px rgba(255, 107, 74, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: clamp(0.8rem, 2vw, 0.95rem) clamp(1.5rem, 3.5vw, 2rem);
    border-radius: 50px;
    letter-spacing: 0.02em;
}

/* グラデーションオーバーレイ */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF8B6D 0%, #FFB08A 50%, #FFD4B8 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* キラキラエフェクト */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.btn-primary span,
.btn-primary > * {
    position: relative;
    z-index: 2;
    color: inherit;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(255, 107, 74, 0.45),
        0 8px 20px rgba(255, 107, 74, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    opacity: 0.8;
}

.btn-primary:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
    box-shadow:
        0 8px 20px rgba(255, 107, 74, 0.35),
        0 4px 10px rgba(255, 107, 74, 0.25);
}

.btn-primary:active span,
.btn-primary:active > * {
    color: var(--color-white);
    z-index: 3;
}

/* ボタン内のアイコン */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon svg {
    width: clamp(18px, 3vw, 20px);
    height: clamp(18px, 3vw, 20px);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow:
        0 8px 24px rgba(255, 122, 89, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow:
        0 12px 32px rgba(255, 122, 89, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 60px rgba(255, 122, 89, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(0.8rem, 2vw, 0.95rem) clamp(1.5rem, 3.5vw, 2rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 700;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 107, 74, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 122, 89, 0.3);
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--glass-accent-bg);
    border-color: rgba(255, 122, 89, 0.5);
    box-shadow:
        0 8px 24px rgba(255, 122, 89, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 40px rgba(255, 122, 89, 0.15);
}

/* デスクトップ用レイアウト */
.hero-container {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
    max-width: 1300px;
    padding: 0 2rem;
}

.hero-content {
    flex: 1;
    align-items: center;
    text-align: center;
}

.hero-visual {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    max-width: 550px;
}


/* SVG アニメーション */
.hero-image svg g {
    animation: floatIcon 6s ease-in-out infinite;
}

.hero-image svg g:nth-child(5) {
    animation: floatIcon 5s ease-in-out infinite;
}

.hero-image svg g:nth-child(6) {
    animation: floatIcon 7s ease-in-out 1s infinite;
}

.hero-image svg g:nth-child(7) {
    animation: floatIcon 6s ease-in-out 2s infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image {
    animation: subtleFloat 8s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}


/* ================================================
   セクションのパララックス効果
================================================ */
.section {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.section-header {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* ================================================
   悩みセクション
================================================ */
.problems-section {
    background:
        radial-gradient(circle at 18% 25%, rgba(255, 107, 74, 0.18) 0%, transparent 22%),
        radial-gradient(circle at 82% 75%, rgba(255, 176, 138, 0.15) 0%, transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(255, 145, 102, 0.1) 0%, transparent 28%),
        radial-gradient(circle, rgba(255, 107, 74, 0.15) 1.5px, transparent 1.5px),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 107, 74, 0.08) 40px,
            rgba(255, 107, 74, 0.08) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 107, 74, 0.08) 40px,
            rgba(255, 107, 74, 0.08) 41px
        ),
        linear-gradient(180deg, #faf6f4 0%, #ffffff 100%);
    background-size: 100%, 100%, 100%, 20px 20px, 100%, 100%, 100%;
    position: relative;
    overflow: hidden;
}

.problems-section::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 8%;
    width: 180px;
    height: 180px;
    background: rgba(255, 107, 74, 0.12);
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.problems-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 220px;
    height: 220px;
    background: rgba(255, 176, 138, 0.15);
    border-radius: 35% 65% 70% 30% / 40% 30% 70% 60%;
    filter: blur(60px);
    pointer-events: none;
    animation: morphShape 18s ease-in-out infinite;
    z-index: 0;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 35% 65% 70% 30% / 40% 30% 70% 60%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 65% 35% 30% 70% / 60% 70% 30% 40%;
        transform: rotate(180deg);
    }
}

[data-theme="dark"] .problems-section {
    background:
        radial-gradient(circle at 18% 25%, rgba(255, 122, 89, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 82% 75%, rgba(255, 155, 127, 0.06) 0%, transparent 35%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

[data-theme="dark"] .problems-section::before {
    background: rgba(255, 122, 89, 0.06);
    filter: blur(90px);
}

[data-theme="dark"] .problems-section::after {
    background: rgba(255, 155, 127, 0.05);
    filter: blur(80px);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-top: var(--spacing-2xl);
    position: relative;
    z-index: 1;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    perspective: 1500px;
    align-items: stretch; /* 各行で高さを揃える */
}

.problems-grid .problem-card {
    width: 100%;
}

@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        z-index: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    [data-theme="dark"] .problem-card {
        background: rgba(20, 20, 20, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
    }
}

.problem-card {
    position: relative;
    --card-radius-current: var(--card-radius-lg);
    --card-bg-current: var(--card-bg-surface);
    --card-border-current: var(--card-border-soft);
    --card-shadow-current: var(--card-shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.problem-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 183, 146, 0.25), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(255, 107, 74, 0.18), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.problem-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.problem-card:hover,
.problem-card.is-hovering {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.problem-card:hover::before,
.problem-card.is-hovering::before {
    opacity: 1;
}

.problem-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: saturate(1.15);
}

.problem-card-content {
    padding: clamp(1.15rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.problem-number {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 107, 74, 0.12);
    color: rgba(255, 107, 74, 0.95);
}

.problem-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* 全カードタイトルの文字アニメーション */
.problem-title span,
.feature-title span,
.case-name span,
.review-text span {
    display: inline-block;
    transition: color 0.3s ease;
    animation: charWave 10s ease-in-out infinite;
    transform-style: preserve-3d;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.problem-card:hover .problem-title span,
.feature-item:hover .feature-title span,
.case-card:hover .case-name span,
.review-card:hover .review-text span {
    animation-play-state: running;
}

@keyframes charWave {
    0%, 85%, 100% {
        transform: rotate(0deg) translateZ(0px);
        color: inherit;
    }
    88% {
        transform: rotate(12deg) translateZ(0px);
        color: #FF6B4A;
    }
    91% {
        transform: rotate(15deg) translateZ(0px);
        color: #FF9166;
    }
    94% {
        transform: rotate(12deg) translateZ(0px);
        color: #FFB08A;
    }
    97% {
        transform: rotate(0deg) translateZ(0px);
        color: inherit;
    }
}

[data-theme="dark"] .problem-card .problem-title span,
[data-theme="dark"] .feature-item .feature-title span,
[data-theme="dark"] .case-card .case-name span,
[data-theme="dark"] .review-card .review-text span {
    animation-name: charWaveDark;
}

@keyframes charWaveDark {
    0%, 85%, 100% {
        transform: rotate(0deg) translateZ(0px);
        color: #ffffff;
    }
    88% {
        transform: rotate(12deg) translateZ(0px);
        color: #FF9166;
    }
    91% {
        transform: rotate(15deg) translateZ(0px);
        color: #FFB08A;
    }
    94% {
        transform: rotate(12deg) translateZ(0px);
        color: #FF9166;
    }
    97% {
        transform: rotate(0deg) translateZ(0px);
        color: #ffffff;
    }
}

[data-theme="dark"] .problem-title {
    color: var(--text-primary);
}

.problem-description {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.65;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
    transform-style: preserve-3d;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

[data-theme="dark"] .problem-description {
    color: var(--text-secondary);
}

/* ================================================
   特徴セクション（最新技術：Container Queries使用）
================================================ */
.features-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    container-type: inline-size;
    container-name: features;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333%;
    height: 100%;
    background: #f8fafc;
    transform: skewX(-12deg);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .features-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .features-section::before {
    background: rgba(15, 23, 42, 0.5);
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.features-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: var(--spacing-2xl);
}

@media (min-width: 1024px) {
    .features-layout {
        flex-direction: row;
        align-items: center;
    }
}

.features-content {
    flex: 1;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-item-row {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-number-badge {
    flex-shrink: 0;
    width: clamp(2.5rem, 4vw, 2.75rem);
    height: clamp(2.5rem, 4vw, 2.75rem);
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
}

.feature-item-content {
    flex: 1;
}

.feature-item-title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.3vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.feature-item-description {
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    margin: 0;
}

.features-visual {
    flex: 1;
}

.features-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

.features-visual-item {
    position: relative;
    border-radius: clamp(16px, 2.5vw, 20px);
    overflow: hidden;
}

.features-visual-item:first-child {
    transform: translateY(clamp(1rem, 2vw, 1.5rem));
}

.features-visual-item:nth-child(2) {
    transform: translateY(0);
}

.features-visual-item:nth-child(3) {
    transform: translateY(0);
    z-index: 1;
}

.features-visual-item:nth-child(4) {
    transform: translateY(clamp(-5rem, -8vw, -7rem));
}

.features-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: inherit;
}

.features-visual-card {
    background: var(--bg-primary);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 145, 102, 0.15);
}

.features-visual-card-primary {
    background: var(--gradient-primary);
    color: #ffffff;
}

.features-visual-icon {
    width: clamp(1.75rem, 3vw, 2rem);
    height: clamp(1.75rem, 3vw, 2rem);
    margin-bottom: 0.25rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.features-visual-card-primary .features-visual-icon {
    color: #ffffff;
}

.features-visual-icon svg {
    width: 100%;
    height: 100%;
}

.features-visual-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.features-visual-card-primary .features-visual-title {
    color: #ffffff;
}

.features-visual-text {
    font-size: clamp(0.8rem, 1.6vw, 0.875rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.features-visual-card-primary .features-visual-text {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .features-visual-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-item-title {
    color: #ffffff;
}

[data-theme="dark"] .feature-item-description {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .features-visual-title {
    color: #ffffff;
}

[data-theme="dark"] .features-visual-text {
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   転職成功事例前CTAセクション
================================================ */
.cases-cta-section {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    isolation: isolate;
}

.cases-cta-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(20, 20, 20, 0.55) 50%,
        rgba(0, 0, 0, 0.60) 100%
    );
    z-index: 1;
}


[data-theme="dark"] .cases-cta-background-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(15, 15, 15, 0.60) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.cases-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cases-cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.15), rgba(255, 149, 0, 0.12));
    border-radius: 20px;
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.cases-cta-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 74, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cases-cta-icon:hover::before {
    width: 120px;
    height: 120px;
}

.cases-cta-icon svg {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cases-cta-icon:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.cases-cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cases-cta-description {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.cases-cta-button-wrapper {
    margin-bottom: 2rem;
}

.cases-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), rgba(255, 149, 0, 1));
    border: none;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.cases-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 149, 0, 1), var(--color-primary));
    transition: left 0.4s ease;
    z-index: 0;
}

.cases-cta-button:hover::before {
    left: 0;
}

.cases-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 74, 0.4);
}

.cases-cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 107, 74, 0.3);
}

.cases-cta-button .btn-text {
    position: relative;
    z-index: 1;
}

.cases-cta-button .btn-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cases-cta-button:hover .btn-icon {
    transform: translateX(4px);
}


[data-theme="dark"] .cases-cta-button {
    box-shadow: 0 4px 20px rgba(255, 122, 89, 0.4);
}

[data-theme="dark"] .cases-cta-button:hover {
    box-shadow: 0 8px 30px rgba(255, 122, 89, 0.5);
}

/* ================================================
   成功事例セクション
================================================ */
.cases-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* グリッド背景 */
.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 107, 74, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 74, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridSlide 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridSlide {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(60px) translateX(60px);
    }
}

/* 背景アクセント */
.cases-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 74, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 149, 0, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .cases-section {
    background:
        radial-gradient(ellipse at center, rgba(255, 122, 89, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.cases-section .section-title {
    color: var(--text-primary);
}

.cases-section .section-description {
    color: var(--text-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-top: var(--spacing-2xl);
    align-items: start;
    width: 100%;
}

.case-card {
    --card-radius-current: 16px;
    --card-bg-current: var(--card-bg-solid);
    --card-border-current: rgba(0, 0, 0, 0.08);
    --card-shadow-current: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

[data-theme="dark"] .case-card {
    --card-bg-current: rgba(255, 255, 255, 0.05);
    --card-border-current: rgba(255, 255, 255, 0.1);
    --card-shadow-current: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.case-card.is-hovering {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 107, 74, 0.15);
    border-color: rgba(255, 107, 74, 0.2);
}

[data-theme="dark"] .case-card.is-hovering {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 74, 0.25);
    border-color: rgba(255, 107, 74, 0.3);
}

.case-card.is-hovering .case-person {
    transform: translateZ(15px);
}

.case-card.is-hovering .case-avatar {
    transform: translateZ(25px) scale(1.05);
}

.case-card.is-hovering .case-name {
    transform: translateZ(30px);
    color: var(--color-primary);
}

.case-card.is-hovering .case-change {
    transform: translateZ(20px);
}

.case-card.is-hovering .case-highlight {
    transform: translateZ(15px);
}

.case-card.is-hovering .case-points {
    transform: translateZ(10px);
}

.case-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 110px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

[data-theme="dark"] .case-person {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.case-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 107, 74, 0.1);
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.case-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.case-tag {
    display: inline-block;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.08), rgba(255, 145, 102, 0.08));
    border: 1px solid rgba(255, 107, 74, 0.18);
    box-shadow: 0 2px 8px rgba(255, 107, 74, 0.12);
    position: relative;
    transition: all var(--transition-base);
    white-space: nowrap;
    max-width: fit-content;
}

[data-theme="dark"] .case-tag {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.15), rgba(255, 155, 127, 0.15));
    border: 1px solid rgba(255, 122, 89, 0.3);
    box-shadow: 0 2px 12px rgba(255, 122, 89, 0.2), 0 0 0 1px rgba(255, 122, 89, 0.1);
}

.case-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.case-change {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    position: relative;
    height: 160px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.change-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    justify-content: center;
    text-align: center;
}

.change-before {
    border-right: 2px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .change-before {
    border-color: rgba(255, 255, 255, 0.06);
}

.change-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.change-job {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.change-salary {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-display);
    margin-top: 0.25rem;
}

.change-after .change-salary {
    color: var(--color-primary);
}

.change-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
    border: 2px solid rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .change-arrow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.case-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.06));
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    height: 56px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

[data-theme="dark"] .case-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    border-color: rgba(16, 185, 129, 0.2);
}

.highlight-icon {
    font-size: 1rem;
    color: var(--color-success);
}

.highlight-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-success);
}

.case-points {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.case-points li {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.case-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ================================================
   営業求人票セクション
================================================ */
.jobs-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.jobs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 107, 74, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 74, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .jobs-section {
    background: var(--bg-primary);
}

/* ================================================
   営業求人票セクション
================================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: var(--spacing-2xl);
    align-items: stretch;
    width: 100%;
}

.job-card {
    --card-radius-current: 16px;
    --card-bg-current: var(--card-bg-solid);
    --card-border-current: rgba(0, 0, 0, 0.08);
    --card-shadow-current: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    opacity: 0.9;
    pointer-events: none;
}

[data-theme="dark"] .job-card {
    --card-bg-current: rgba(255, 255, 255, 0.05);
    --card-border-current: rgba(255, 255, 255, 0.1);
    --card-shadow-current: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.job-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 107, 74, 0.2);
}

[data-theme="dark"] .job-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 107, 74, 0.3);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
}

.job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.job-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1), rgba(255, 145, 102, 0.1));
    border: 1px solid rgba(255, 107, 74, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .job-info-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.job-info-item:last-child {
    border-bottom: none;
}

.job-info-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.job-info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 60%;
}

.job-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.job-apply-wrapper {
    margin-top: auto;
    padding-top: 1rem;
}

.job-apply-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.05), rgba(255, 145, 102, 0.05));
    border: 2px solid rgba(255, 107, 74, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.job-apply-btn:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--color-primary), rgba(255, 145, 102, 1));
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 74, 0.3);
}

.job-apply-btn:hover span {
    color: #ffffff !important;
}

.job-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.2);
}

.job-apply-btn span {
    position: relative;
    z-index: 2;
    color: inherit;
    transition: color 0.3s ease;
}

.job-apply-btn .btn-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    color: inherit;
}

.job-apply-btn:hover .btn-icon {
    transform: translateX(4px);
}

[data-theme="dark"] .job-apply-btn {
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.1), rgba(255, 155, 127, 0.1));
    border-color: rgba(255, 122, 89, 0.4);
    color: var(--color-primary);
}

[data-theme="dark"] .job-apply-btn:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--color-primary), rgba(255, 155, 127, 1));
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(255, 122, 89, 0.4);
}

[data-theme="dark"] .job-apply-btn:hover span {
    color: #ffffff !important;
}

[data-theme="dark"] .job-apply-btn:hover .btn-icon {
    color: #ffffff !important;
}

.jobs-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .jobs-cta {
    border-color: rgba(255, 255, 255, 0.1);
}

.jobs-cta-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ================================================
   お客様の声セクション
================================================ */
.reviews-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* サイバーテキスト背景 */
.reviews-section::after {
    content: 'REVIEWS';
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-display);
    font-size: clamp(8rem, 15vw, 15rem);
    font-weight: 900;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.1em;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2));
}

/* データストリーム効果 */
.reviews-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(59, 130, 246, 0.03) 2px,
            rgba(59, 130, 246, 0.03) 4px
        ),
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    background-position: 0 0;
    animation: dataStream 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dataStream {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(96px);
    }
}

[data-theme="dark"] .reviews-section::before {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 122, 89, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 155, 127, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

.reviews-section .container {
    position: relative;
    z-index: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-top: var(--spacing-2xl);
    align-items: stretch;
    width: 100%;
}

.review-card {
    --card-radius-current: var(--card-radius-xl);
    --card-bg-current: var(--card-bg-glass);
    --card-border-current: rgba(255, 107, 53, 0.12);
    --card-shadow-current:
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(255, 107, 53, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: var(--spacing-lg);
    font-family: var(--font-serif);
    font-size: 140px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.18;
    line-height: 1;
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 20px rgba(255, 107, 53, 0.4));
}

.review-card:hover::before {
    opacity: 0.25;
    transform: scale(1.08);
    filter: drop-shadow(0 4px 20px rgba(255, 107, 53, 0.4));
}

[data-theme="dark"] .review-card {
    --card-bg-current: var(--card-bg-glass);
    --card-border-current: rgba(255, 255, 255, 0.1);
    --card-shadow-current:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 122, 89, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--glass-accent-bg), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: 0;
}

.review-card:hover {
    border-color: #ff9500;
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.18),
        0 18px 36px -8px rgba(255, 149, 0, 0.12),
        0 8px 16px -4px rgba(255, 149, 0, 0.08),
        0 0 0 1px #ff9500,
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 149, 0, 0.1);
}

.review-card:hover::after {
    opacity: 1;
}

[data-theme="dark"] .review-card:hover {
    box-shadow: var(--shadow-xl), var(--shadow-orange);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
}

.review-star {
    width: 22px;
    height: 22px;
    fill: #ff9500;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(255, 149, 0, 0.4));
}

.review-card:hover .review-star {
    fill: #ff6b35;
    filter: drop-shadow(0 2px 6px rgba(255, 107, 53, 0.5));
    transform: scale(1.05);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
    font-size: clamp(0.9rem, 2vw, 1rem);
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--color-accent);
    box-shadow:
        0 4px 12px rgba(255, 149, 0, 0.4),
        0 0 30px rgba(255, 149, 0, 0.3);
    transition: all var(--transition-base);
}

.review-card:hover .review-avatar {
    border-color: var(--color-primary);
    box-shadow:
        0 6px 16px rgba(255, 107, 53, 0.4),
        0 3px 8px rgba(255, 107, 53, 0.25);
    transform: scale(1.04);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-name {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.review-author-job {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: var(--text-tertiary);
}

/* ================================================
   よくある質問セクション
================================================ */
.faq-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* グラデーション背景 */
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 25% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 浮遊する六角形 - 右上 */
.faq-section::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 8%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexFloat1 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* 追加の図形たち */
#FAQ .container::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(225deg, rgba(6, 182, 212, 0.09) 0%, rgba(59, 130, 246, 0.07) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexFloat2 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#FAQ .container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: circleFloat1 16s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#FAQ .section-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: circleFloat2 22s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

#FAQ .section-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobFloat 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes hexFloat1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.7;
    }
}

@keyframes hexFloat2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-25px) rotate(-180deg) scale(1.1);
        opacity: 0.65;
    }
}

@keyframes circleFloat1 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -20px);
        opacity: 0.6;
    }
}

@keyframes circleFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate(-20px, 30px) scale(1.15);
        opacity: 0.5;
    }
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        opacity: 0.3;
    }
    33% {
        transform: translate(15px, -15px) rotate(120deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        opacity: 0.55;
    }
    66% {
        transform: translate(-10px, 10px) rotate(240deg);
        border-radius: 50% 50% 50% 50% / 30% 70% 30% 70%;
        opacity: 0.45;
    }
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

#FAQ .section-header {
    position: relative;
}

[data-theme="dark"] .faq-section::before {
    background-image:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 25% 80%, rgba(6, 182, 212, 0.11) 0%, transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(59, 130, 246, 0.09) 0%, transparent 40%);
}

[data-theme="dark"] .faq-section::after {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.12) 100%);
}

[data-theme="dark"] #FAQ .container::before {
    background: linear-gradient(225deg, rgba(6, 182, 212, 0.13) 0%, rgba(59, 130, 246, 0.11) 100%);
}

[data-theme="dark"] #FAQ .container::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] #FAQ .section-header::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] #FAQ .section-header::after {
    background: linear-gradient(45deg, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.faq-list {
    margin-top: var(--spacing-2xl);
}

.faq-item {
    --card-radius-current: var(--radius-xl);
    --card-border-width: 2px;
    --card-bg-current: var(--glass-bg-medium);
    --card-border-current: rgba(255, 107, 53, 0.3);
    --card-shadow-current: var(--shadow-md);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b35 0%, #ff9500 50%, #ffb84d 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.faq-item:hover::before {
    opacity: 1;
}

[data-theme="dark"] .faq-item {
    --card-bg-current: var(--glass-bg-medium);
    --card-border-current: rgba(255, 122, 89, 0.3);
    --card-shadow-current:
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.faq-item:hover {
    background: var(--glass-bg-light);
    border-color: #ff6b35;
    box-shadow:
        0 8px 24px rgba(255, 107, 53, 0.15),
        0 4px 12px rgba(255, 149, 0, 0.1),
        0 2px 6px rgba(255, 107, 53, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .faq-item:hover {
    background: var(--glass-bg-light);
    border-color: rgba(255, 122, 89, 0.5);
    box-shadow:
        var(--glass-shadow),
        0 12px 32px rgba(255, 122, 89, 0.35),
        0 0 60px rgba(255, 122, 89, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: clamp(0.75rem, 2vw, var(--spacing-md)) clamp(1rem, 3vw, var(--spacing-lg));
    text-align: left;
    font-size: clamp(0.95rem, 2.5vw, 1.0625rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-q-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.faq-q-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    flex-shrink: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
}

.faq-toggle::before {
    width: 10px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 10px;
    transition: opacity var(--transition-base);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle::after {
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer-content {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    padding-left: calc(var(--spacing-lg) + 32px + var(--spacing-md));
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ================================================
   サービスの流れセクション
================================================ */
#FLOW {
    position: relative;
    background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    overflow: hidden;
}

/* ドットパターン背景 */
#FLOW::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    background-image:
        radial-gradient(circle, rgba(71, 85, 105, 0.35) 1px, transparent 1px),
        radial-gradient(circle, rgba(100, 116, 139, 0.25) 0.8px, transparent 0.8px);
    background-size:
        50px 50px,
        25px 25px;
    background-position:
        0 0,
        12.5px 12.5px;
    pointer-events: none;
    z-index: 1;
}

/* 微妙なグラデーションオーバーレイ */
#FLOW::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(148, 163, 184, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(100, 116, 139, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

#FLOW .container {
    position: relative;
    z-index: 2;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    position: relative;
    width: 100%;
}

.flow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step-timeline-dot {
    display: none;
}

/* 矢印コネクター - PCサイズのみ（スマホでは非表示） */
@media (min-width: 769px) {
    .flow-step:nth-child(3n+1)::after,
    .flow-step:nth-child(3n+2)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -2rem;
        width: 2rem;
        height: 4px;
        background: #ff6b4a;
        z-index: 10;
        transform: translateY(-50%);
        box-shadow: 0 2px 12px rgba(255, 107, 74, 0.4);
    }

    .flow-step:nth-child(3n+1)::before,
    .flow-step:nth-child(3n+2)::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -2rem;
        width: 0;
        height: 0;
        border-left: 18px solid #ff6b4a;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        z-index: 11;
        transform: translateY(-50%);
        filter: drop-shadow(3px 0 6px rgba(255, 107, 74, 0.5));
    }
}

/* 最後の行の矢印を非表示 */
.flow-step:nth-child(4)::after,
.flow-step:nth-child(4)::before,
.flow-step:nth-child(5)::after,
.flow-step:nth-child(5)::before {
    display: none;
}

.flow-step-content {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    border-radius: clamp(20px, 4vw, 28px);
    background: linear-gradient(135deg, #ffffff, #fff3eb);
    border: 1px solid rgba(255, 145, 102, 0.18);
    box-shadow: var(--card-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: visible;
}

[data-theme="dark"] .flow-step-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
}

.flow-step-content::before,
.flow-step-content-overlay {
    display: none;
}

/* カード内番号バッジ - data-number属性を使用 */
.flow-step-number-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #1f2937);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .flow-step-number-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.flow-arrow {
    position: absolute;
    top: 50%;
    right: -3rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    z-index: 10;
    transform: translateY(-50%);
    animation: arrowSlide 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    pointer-events: none;
}

.flow-line {
    position: absolute;
    top: 50%;
    right: -3rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-tertiary);
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

@keyframes arrowSlide {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50%) translateX(8px);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .flow-arrow {
        display: none;
    }
}

/* PC・タブレットサイズでの矢印表示（横向き） */
@media (min-width: 769px) {
    .flow-arrow {
        display: block;
        position: absolute;
        top: 50%;
        right: -3rem;
        transform: translateY(-50%);
        animation: arrowSlide 1.5s ease-in-out infinite;
        font-size: clamp(2rem, 5vw, 3rem);
        color: var(--color-primary);
        z-index: 10;
        text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    }

    .flow-line {
        display: block;
        position: absolute;
        top: 50%;
        right: -3rem;
        transform: translateY(-50%);
        font-size: clamp(2rem, 5vw, 3rem);
        color: var(--text-tertiary);
        z-index: 10;
    }
}

/* スマホサイズでの矢印表示（縦向き） */
@media (max-width: 768px) {
    .flow-arrow {
        display: block !important;
        position: absolute;
        top: auto;
        bottom: -2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        animation: arrowSlideDown 1.5s ease-in-out infinite;
        font-size: clamp(1.5rem, 4vw, 2rem);
        color: var(--color-primary);
        z-index: 10;
        text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
        text-align: center;
        width: 100%;
        height: auto;
    }

    .flow-line {
        display: block !important;
        position: absolute;
        top: auto;
        bottom: -2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        font-size: clamp(1.5rem, 4vw, 2rem);
        color: var(--text-tertiary);
        z-index: 10;
        text-align: center;
        width: 100%;
        height: auto;
    }

    /* スマホサイズでの矢印を縦向きに変更 */
    .flow-arrow::before {
        content: "↓";
        display: block;
        font-size: clamp(1.5rem, 4vw, 2rem);
        color: var(--color-primary);
        text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    }

    .flow-arrow {
        font-size: 0;
        line-height: 0;
    }

    /* スマホサイズでの棒線を縦向きに変更 */
    .flow-line::before {
        content: "|";
        display: block;
        font-size: clamp(1.5rem, 4vw, 2rem);
        color: var(--text-tertiary);
    }

    .flow-line {
        font-size: 0;
        line-height: 0;
    }


    @keyframes arrowSlideDown {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
            opacity: 0.7;
        }
        50% {
            transform: translateX(-50%) translateY(8px);
            opacity: 1;
        }
    }
}

/* サービスの流れセクションの番号を右側に配置 */
#FLOW .feature-number {
    left: auto;
    right: 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: clamp(5rem, 12vw, 8rem);
}

/* サービスの流れセクションのカードにposition: relativeを追加 */
#FLOW .feature-item {
    position: relative;
    overflow: visible !important;
}

/* サービスの流れセクションのグリッドgapを広げる */
#FLOW .features-grid {
    gap: 4rem;
}

/* 矢印と横棒のz-indexを高く */
#FLOW .flow-arrow,
#FLOW .flow-line {
    z-index: 100 !important;
}

/* サービスの流れセクションのカード下部にオーバーレイを追加 */
#FLOW .feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 25%,
        rgba(0, 0, 0, 0.92) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* サービスの流れセクションのテキストスタイル改善 */
#FLOW .feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

#FLOW .feature-title {
    position: absolute;
    bottom: 130px;
    left: 28px;
    right: 28px;
    color: var(--color-white);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    margin: 0;
    letter-spacing: 0.02em;
}

#FLOW .feature-description {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    height: 90px;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    margin: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
    text-overflow: clip;
}

/* ビズエルが選ばれる理由セクションのカード下部にオーバーレイを追加 */
#FEATURE .feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 25%,
        rgba(0, 0, 0, 0.92) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ビズエルが選ばれる理由セクションのテキストスタイル改善 */
#FEATURE .feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

#FEATURE .feature-title {
    position: absolute;
    bottom: 130px;
    left: 28px;
    right: 28px;
    color: var(--color-white);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    margin: 0;
    letter-spacing: 0.02em;
}

#FEATURE .feature-description {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    height: 90px;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    margin: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
    text-overflow: clip;
}

/* STEP 2, 3, 4は黒オーバーレイ（薄く） */
.flow-step[data-step="2"] .flow-step-content::before,
.flow-step[data-step="3"] .flow-step-content::before,
.flow-step[data-step="4"] .flow-step-content::before {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 40%,
        transparent 100%
    );
}

.flow-step[data-step="2"] .flow-step-content,
.flow-step[data-step="3"] .flow-step-content,
.flow-step[data-step="4"] .flow-step-content {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.flow-step-content:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(255, 107, 74, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.flow-step[data-step="2"] .flow-step-content:hover,
.flow-step[data-step="3"] .flow-step-content:hover,
.flow-step[data-step="4"] .flow-step-content:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.flow-step-content > * {
    position: relative;
    z-index: 2;
}

.flow-step-number {
    display: none;
}

.flow-step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.flow-step-content:hover .flow-step-icon {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.flow-step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-white);
    stroke-width: 2.5;
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.flow-step-content:hover .flow-step-icon svg {
    transform: scale(1.1);
}

.flow-step-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.flow-step-tag {
    display: none;
}

.flow-step-title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.flow-step-body {
    display: grid;
    gap: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
}

.flow-step-body p {
    margin: 0;
    position: relative;
    padding-left: 1.25rem;
}

.flow-step-body p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* 新しいタイムラインスタイル */
.flow-section {
    background: #f8fafc;
}

[data-theme="dark"] .flow-section {
    background: var(--bg-secondary);
}

.flow-timeline-container {
    position: relative;
    max-width: min(var(--content-max-width), var(--header-max-width));
    margin: var(--spacing-2xl) auto 0;
    padding: 0 var(--container-padding);
}

.flow-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(226, 232, 240, 1);
    transform: translateX(-50%);
    z-index: 0;
}

@media (max-width: 768px) {
    .flow-timeline-line {
        display: none;
    }
}

.flow-timeline-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.flow-step-item {
    position: relative;
    z-index: 1;
}

.flow-step-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .flow-step-content-wrapper {
        flex-direction: row;
    }

    .flow-step-content-wrapper.order-reverse {
        flex-direction: row-reverse;
    }
}

.flow-step-text {
    flex: 1;
    text-align: center;
    padding: 0 clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
    .flow-step-text {
        width: 42%;
        text-align: right;
    }

    .flow-step-content-wrapper.order-reverse .flow-step-text {
        text-align: left;
    }
}

.flow-step-icon-circle {
    flex-shrink: 0;
    width: clamp(2.75rem, 4vw, 3rem);
    height: clamp(2.75rem, 4vw, 3rem);
    background: #ffffff;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.flow-step-item:hover .flow-step-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.3);
}

.flow-step-item:nth-child(4) .flow-step-icon-circle {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.flow-step-empty {
    flex: 1;
    width: 42%;
}

@media (max-width: 767px) {
    .flow-step-empty {
        display: none;
    }
}

.flow-step-title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.3vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.flow-step-description {
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .flow-timeline-line {
    background: rgba(51, 65, 85, 1);
}

[data-theme="dark"] .flow-step-icon-circle {
    background: var(--bg-primary);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

[data-theme="dark"] .flow-step-item:nth-child(4) .flow-step-icon-circle {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

[data-theme="dark"] .flow-step-title {
    color: #ffffff;
}

[data-theme="dark"] .flow-step-description {
    color: rgba(255, 255, 255, 0.8);
}

.flow-connector {
    display: none;
}

[data-theme="dark"] #FLOW {
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 1) 100%);
}

[data-theme="dark"] #FLOW::before {
    background-image:
        radial-gradient(circle, rgba(148, 163, 184, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(100, 116, 139, 0.2) 0.8px, transparent 0.8px);
}

[data-theme="dark"] #FLOW::after {
    background:
        radial-gradient(circle at 25% 30%, rgba(148, 163, 184, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(100, 116, 139, 0.08) 0%, transparent 45%);
}

[data-theme="dark"] .flow-step-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
}

[data-theme="dark"] .flow-step-title {
    color: #ffffff;
}

[data-theme="dark"] .flow-step-body {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .flow-step:nth-child(3n+1)::after,
    .flow-step:nth-child(3n+2)::after,
    .flow-step:nth-child(3n+1)::before,
    .flow-step:nth-child(3n+2)::before {
        display: none;
    }

    .flow-step:nth-child(2n+1)::after,
    .flow-step:nth-child(2n+1)::before {
        content: '';
        display: block;
    }

    .flow-step:nth-child(4)::after,
    .flow-step:nth-child(4)::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .flow-step::after,
    .flow-step::before {
        display: none !important;
    }

    .flow-step-content {
        padding: 2rem 1.5rem;
        aspect-ratio: auto;
        min-height: 320px;
    }

    .flow-step-title {
        font-size: clamp(1.2rem, 3vw, 1.375rem);
    }

    .flow-step-body {
        font-size: clamp(0.8rem, 2vw, 0.875rem);
        gap: 0.75rem;
    }

    .flow-step-icon {
        width: 64px;
        height: 64px;
    }

    .flow-step-icon svg {
        width: 32px;
        height: 32px;
    }

    .flow-step-content::after {
        font-size: clamp(2rem, 5vw, 2.5rem);
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* ================================================
   CTAセクション
================================================ */
.cta-section {
    background:
        linear-gradient(135deg,
            rgba(255, 107, 74, 0.92) 0%,
            rgba(255, 145, 102, 0.9) 50%,
            rgba(255, 176, 138, 0.88) 100%),
        url('https://images.unsplash.com/photo-1556761175-4b46a572b786?w=1920&h=600&fit=crop&q=80') center/cover no-repeat;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-4xl) 0;
}

[data-theme="dark"] .cta-section {
    background:
        linear-gradient(135deg,
            rgba(10, 10, 18, 0.75) 0%,
            rgba(26, 26, 40, 0.85) 50%,
            rgba(10, 10, 18, 0.75) 100%),
        linear-gradient(45deg,
            rgba(255, 122, 89, 0.15) 0%,
            transparent 40%,
            transparent 60%,
            rgba(255, 122, 89, 0.15) 100%),
        url('https://images.unsplash.com/photo-1556761175-4b46a572b786?w=1920&h=600&fit=crop&q=80') center/cover no-repeat;
    border-top: 1px solid rgba(255, 122, 89, 0.2);
    border-bottom: 1px solid rgba(255, 122, 89, 0.2);
}

/* 装飾パターン */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%);
    background-size: 40px 40px;
    animation: circuitMove 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

@keyframes circuitMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 40px 40px, -40px -40px;
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.cta-description {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: var(--color-white);
    color: var(--color-primary);
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2rem, 5vw, 2.75rem);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    border: none;
    box-shadow:
        0 8px 24px rgba(255, 255, 255, 0.35),
        0 4px 12px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.05) 0%, rgba(255, 107, 74, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.btn-cta-white::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.btn-cta-white:hover::after {
    left: 100%;
}

.btn-cta-white:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 12px 36px rgba(255, 255, 255, 0.45),
        0 6px 18px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    color: var(--color-primary);
}

.btn-cta-white:hover::before {
    opacity: 1;
}

.btn-cta-white:active {
    transform: translateY(-1px) scale(1.01);
}

[data-theme="dark"] .btn-cta-white {
    background: var(--color-white);
    color: var(--color-primary);
}

[data-theme="dark"] .btn-cta-white:hover {
    color: var(--color-primary);
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2rem, 5vw, 2.75rem);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-cta-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.btn-cta-outline:hover::before {
    opacity: 1;
}

.btn-cta-outline:active {
    transform: translateY(-1px) scale(1.01);
}

[data-theme="dark"] .btn-cta-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-cta-large {
    padding: clamp(1.25rem, 3vw, 1.5rem) clamp(2rem, 5vw, 3rem);
    font-size: clamp(1.1rem, 3vw, 1.375rem);
    font-weight: 800;
    border-radius: var(--radius-xl);
    min-width: 320px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}

.btn-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

.btn-text {
    position: relative;
    z-index: 3;
}

.btn-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    position: relative;
    z-index: 3;
}

.btn-cta-white:hover .btn-icon {
    transform: scale(1.15) rotate(-5deg);
}

.btn-cta-white:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

@media (max-width: 768px) {
    .btn-cta-large {
        padding: clamp(1.1rem, 3vw, 1.375rem) clamp(1.75rem, 5vw, 2.5rem);
        font-size: clamp(1rem, 3vw, 1.25rem);
        min-width: 100%;
        gap: 0.75rem;
    }

    .btn-icon {
        width: 24px;
        height: 24px;
    }

    .btn-arrow {
        width: 20px;
        height: 20px;
    }
}

/* ================================================
   登録フォーム
================================================ */
.register-section {
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.02) 0%,
        rgba(255, 186, 73, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.register-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255, 149, 0, 0.06) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .register-section {
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.03) 0%,
        rgba(255, 186, 73, 0.03) 100%);
}

[data-theme="dark"] .register-section::before {
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .register-section::after {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255, 149, 0, 0.08) 0%, transparent 35%);
}

.register-section .container {
    position: relative;
    z-index: 1;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-3xl);
    border-radius: 32px;
    border: 2px solid rgba(255, 107, 53, 0.12);
    box-shadow:
        0 20px 60px rgba(255, 107, 74, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.register-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-primary));
    background-size: 200% 100%;
}

[data-theme="dark"] .register-form {
    background: var(--glass-bg-heavy);
    border-color: rgba(255, 122, 89, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(255, 122, 89, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 122, 89, 0.1);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-wrapper.has-leading-icon input,
.form-input-wrapper.has-leading-icon select,
.form-input-wrapper.has-leading-icon textarea {
    padding-left: 3.5rem;
}

.form-field-icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-field-icon--textarea {
    top: 1.25rem;
    transform: none;
}

.form-field-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-input-wrapper:focus-within .form-field-icon {
    color: var(--color-secondary);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: clamp(0.85rem, 2vw, 0.9375rem);
    letter-spacing: 0.01em;
}

.form-label .required {
    color: var(--color-primary);
    margin-left: 0.125rem;
}

/* 電話番号フィールドのスタイル */
.phone-type-select-wrapper select {
    font-weight: 400 !important;
    color: var(--text-primary) !important;
}

.form-field-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
}

.register-form input,
.register-form select,
.register-form textarea {
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}

.register-form select {
    appearance: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23ff6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.register-form select option {
    padding: 1rem;
    background: var(--color-white);
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.register-form select option:hover {
    background: linear-gradient(135deg, rgba(255, 245, 240, 1) 0%, rgba(255, 235, 225, 1) 100%);
}

.register-form select option:checked {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-weight: 600;
}

.register-form textarea {
    resize: vertical;
    min-height: 140px;
}

[data-theme="dark"] .register-form input,
[data-theme="dark"] .register-form select,
[data-theme="dark"] .register-form textarea {
    background: rgba(26, 26, 38, 0.8);
    border-color: rgba(255, 122, 89, 0.25);
    color: var(--text-primary);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 122, 89, 0.05);
}

[data-theme="dark"] .register-form select {
    background-color: rgba(26, 26, 38, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23FF7A59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
}

[data-theme="dark"] .register-form select option {
    background: rgba(30, 30, 40, 1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .register-form select option:hover {
    background: linear-gradient(135deg, rgba(50, 40, 45, 1) 0%, rgba(60, 45, 50, 1) 100%);
}

[data-theme="dark"] .register-form select option:checked {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.register-form input:hover,
.register-form select:hover,
.register-form textarea:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 0 0 4px rgba(255, 107, 53, 0.08),
        0 4px 12px rgba(255, 107, 53, 0.12);
}

[data-theme="dark"] .register-form input:focus,
[data-theme="dark"] .register-form select:focus,
[data-theme="dark"] .register-form textarea:focus {
    background: rgba(30, 30, 42, 1);
    border-color: rgba(255, 122, 89, 0.5);
    box-shadow:
        0 0 0 4px rgba(255, 122, 89, 0.15),
        0 4px 16px rgba(255, 122, 89, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 122, 89, 0.1);
}

/* カスタムセレクトボックス */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select input[type="hidden"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
    padding-left: 3.5rem;
    padding-right: 3rem;
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 248, 0.9) 100%);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    font-weight: 500;
    box-shadow:
        0 2px 8px rgba(255, 107, 53, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-height: 0;
    line-height: 1.5;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ff6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.custom-select.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:hover {
    border-color: rgba(255, 107, 53, 0.35);
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.98) 0%, rgba(255, 245, 240, 0.95) 100%);
    box-shadow:
        0 4px 12px rgba(255, 107, 53, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 248, 0.98) 100%);
    box-shadow:
        0 0 0 4px rgba(255, 107, 53, 0.12),
        0 6px 16px rgba(255, 107, 53, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    outline: none;
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(255, 107, 53, 0.08);
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 107, 53, 0.08);
    position: relative;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: linear-gradient(135deg, rgba(255, 240, 235, 1) 0%, rgba(255, 230, 220, 1) 100%);
    color: var(--color-primary);
    padding-left: clamp(1.25rem, 3vw, 1.5rem);
}

.custom-option.selected {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 122, 89, 0.95) 100%);
    color: white;
    font-weight: 600;
}

.custom-option.selected::before {
    content: '✓';
    position: absolute;
    left: clamp(0.75rem, 2vw, 1rem);
    font-weight: bold;
}

.custom-option.selected:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 1) 0%, rgba(255, 122, 89, 1) 100%);
    color: white;
}

/* ダークモード */
[data-theme="dark"] .custom-select-trigger {
    background: linear-gradient(135deg, rgba(30, 30, 42, 0.95) 0%, rgba(26, 26, 38, 0.9) 100%);
    border-color: rgba(255, 122, 89, 0.25);
    color: var(--text-primary);
    box-shadow:
        0 2px 12px rgba(255, 122, 89, 0.08),
        inset 0 1px 0 rgba(255, 122, 89, 0.08),
        0 0 0 1px rgba(255, 122, 89, 0.12);
}

[data-theme="dark"] .custom-select-trigger::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23FF7A59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .custom-select-trigger:hover {
    background: linear-gradient(135deg, rgba(35, 35, 47, 0.98) 0%, rgba(30, 30, 42, 0.95) 100%);
    border-color: rgba(255, 122, 89, 0.4);
    box-shadow:
        0 4px 16px rgba(255, 122, 89, 0.12),
        inset 0 1px 0 rgba(255, 122, 89, 0.12),
        0 0 0 1px rgba(255, 122, 89, 0.18);
}

[data-theme="dark"] .custom-select.open .custom-select-trigger,
[data-theme="dark"] .custom-select-trigger:focus {
    background: linear-gradient(135deg, rgba(35, 35, 47, 1) 0%, rgba(30, 30, 42, 0.98) 100%);
    border-color: rgba(255, 122, 89, 0.6);
    box-shadow:
        0 0 0 4px rgba(255, 122, 89, 0.18),
        0 6px 20px rgba(255, 122, 89, 0.25),
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 24px rgba(255, 122, 89, 0.15);
}

[data-theme="dark"] .custom-options {
    background: rgba(26, 26, 38, 0.98);
    border-color: rgba(255, 122, 89, 0.3);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(255, 122, 89, 0.12);
}

[data-theme="dark"] .custom-option {
    border-bottom-color: rgba(255, 122, 89, 0.12);
}

[data-theme="dark"] .custom-option:hover {
    background: linear-gradient(135deg, rgba(50, 40, 45, 1) 0%, rgba(60, 45, 50, 1) 100%);
    color: rgba(255, 122, 89, 1);
}

[data-theme="dark"] .custom-option.selected {
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.95) 0%, rgba(255, 107, 74, 0.95) 100%);
    color: white;
}

[data-theme="dark"] .custom-option.selected:hover {
    background: linear-gradient(135deg, rgba(255, 122, 89, 1) 0%, rgba(255, 107, 74, 1) 100%);
}

/* 電話番号フィールドのスタイル */
.phone-input-container {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: stretch;
    width: 100%;
}

.phone-type-select-wrapper {
    flex: 0 0 clamp(140px, 35%, 200px);
    min-width: 140px;
}

.phone-type-select-wrapper .custom-select-trigger {
    font-weight: 600;
}

.phone-input-main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 65%;
}

@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .phone-type-select-wrapper {
        flex: 1;
        min-width: 100%;
    }

    .phone-input-main {
        flex: 1;
        min-width: 100%;
    }
}

.submit-wrapper {
    grid-column: 1 / -1;
    margin-top: var(--spacing-md);
}

.submit-wrapper .btn-primary {
    width: 100%;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.submit-wrapper .btn-primary span {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-radio-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: clamp(0.85rem, 2vw, 0.9375rem);
    letter-spacing: 0.01em;
}

.form-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-radio-group label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1.2rem, 3vw, 1.5rem);
    font-size: clamp(0.85rem, 2vw, 0.9375rem);
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

[data-theme="dark"] .form-radio-group label {
    background: rgba(40, 40, 50, 0.8);
    border-color: rgba(255, 107, 53, 0.25);
}

.form-radio-group label:hover {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .form-radio-group label:hover {
    background: rgba(50, 50, 60, 1);
    border-color: rgba(255, 107, 53, 0.4);
}

.form-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-radio-group input[type="radio"]:checked + span {
    display: inline;
}

.form-radio-group label:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .form-radio-group label:has(input[type="radio"]:checked) {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ================================================
   登録完了メッセージ
================================================ */
.consultation-success-message {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 245, 0.95) 100%);
    border-radius: 24px;
    border: 2px solid rgba(255, 107, 53, 0.15);
    box-shadow:
        0 10px 40px rgba(255, 107, 53, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    animation: successSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .consultation-success-message {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98) 0%, rgba(25, 25, 30, 0.95) 100%);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow:
        0 10px 40px rgba(255, 107, 53, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.success-icon {
    width: clamp(80px, 15vw, 100px);
    height: clamp(80px, 15vw, 100px);
    animation: successIconPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes successIconPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-icon-circle {
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: successCircleDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes successCircleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-icon-check {
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successCheckDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.9s forwards;
}

@keyframes successCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: successTitleFade 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes successTitleFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    animation: successMessageFade 0.6s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes successMessageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-steps {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(255, 107, 53, 0.1);
    animation: successStepsFade 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

[data-theme="dark"] .success-steps {
    background: rgba(40, 40, 45, 0.5);
    border-color: rgba(255, 107, 53, 0.2);
}

@keyframes successStepsFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-steps-title {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    text-align: center;
}

.success-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.success-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .success-step-item {
    background: rgba(30, 30, 35, 0.6);
    border-color: rgba(255, 107, 53, 0.15);
}

.success-step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.25);
}

.success-step-number {
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: white;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.success-step-number::before {
    counter-increment: step-counter;
    content: counter(step-counter);
}

.success-steps-grid {
    counter-reset: step-counter;
}

.success-step-content h5 {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
}

.success-step-content p {
    font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .consultation-success-message {
        border-radius: 16px;
    }

    .success-steps-grid {
        grid-template-columns: 1fr;
    }

    .success-step-item {
        padding: clamp(0.875rem, 2vw, 1.25rem);
    }
}

/* ================================================
   フッター
================================================ */
.footer {
    background: var(--color-gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 122, 89, 0.15);
}

[data-theme="dark"] .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 122, 89, 0.4) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: var(--spacing-lg);
    height: 40px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    line-height: 1.7;
    font-size: clamp(0.85rem, 2vw, 0.9375rem);
    color: rgba(255, 255, 255, 0.7);
}

.footer-tagline-line {
    display: block;
}

.footer-section h3 {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    font-size: clamp(0.85rem, 2vw, 0.9375rem);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 122, 89, 0.1);
}

/* ================================================
   レスポンシブ
================================================ */
/* デスクトップ (1025px以上) */
@media (min-width: 1025px) {
    .hero {
        min-height: 100vh;
        padding: clamp(6rem, 10vw, 8rem) 0;
    }
    
    /* PCサイズでのナビゲーション設定 */
    .nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 clamp(2rem, 6vw, 4rem);
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 中型ノートPC (1200px-1440px) */
/* タブレット・デスクトップ共通（シンプル版） */
@media (min-width: 769px) {
    /* ナビゲーション */
    .nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    /* グリッドレイアウト：タブレットは2列 */
    .problems-grid,
    .features-grid,
    .reviews-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .problems-grid,
    .features-grid,
    .reviews-grid,
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* タブレット・モバイル共通調整 (1023px以下) */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .hero-content {
        align-items: center;
        padding: 0;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    /* カード表示の最適化 */
    .case-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .case-avatar {
        width: 44px;
        height: 44px;
    }

    .case-name {
        font-size: 0.875rem;
    }

    .case-change {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.875rem;
        margin-top: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .change-item {
        text-align: center;
    }

    .change-arrow {
        transform: rotate(90deg);
        font-size: 1rem;
    }

    .change-job {
        font-size: 0.6875rem;
    }

    .change-salary {
        font-size: 0.9375rem;
    }

    .case-highlight {
        width: 100%;
        justify-content: center;
    }

    .case-points li {
        font-size: 0.75rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .job-card {
        padding: 0;
    }

    .job-image-wrapper {
        height: 180px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 1.25rem 0;
    }

    .job-content {
        padding: 0 1.25rem 1.25rem;
    }

    .job-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .job-info-value {
        text-align: left;
    }

    .cases-cta-section {
        padding: var(--spacing-2xl) 0;
    }

    .cases-cta-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }

    .cases-cta-icon svg {
        width: 32px;
        height: 32px;
    }

    .cases-cta-title {
        margin-bottom: 0.75rem;
    }

    .cases-cta-description {
        margin-bottom: 1.5rem;
    }

    .cases-cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
    }

    .review-card {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        z-index: 1 !important;
        height: auto !important;
        min-height: 280px !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* スマホ (768px以下) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
        --spacing-4xl: 5rem;
        --container-padding: clamp(1rem, 5vw, 1.5rem);
    }

    /* モバイルパフォーマンス最適化：すべてのアニメーションとエフェクトを無効化 */

    /* fade-inアニメーションを完全に無効化 */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
        transition: none !important;
        animation: none !important;
    }

    .fade-in.visible {
        opacity: 1 !important;
        transform: none !important;
    }

    /* スクロールベースのアニメーションを無効化 */
    .scroll-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* すべてのカードとエフェクトでbackdrop-filterを無効化 */
    .problem-card,
    .feature-item,
    .case-card,
    .review-card,
    .header-container,
    .theme-toggle,
    .mobile-menu-btn,
    .hero-label,
    .custom-options,
    .mobile-nav-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* セクションタイトルのアニメーションを無効化 */
    .section-title {
        animation: none !important;
    }

    /* ヒーローセクションのアニメーションを無効化 */
    .hero-title-word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-label {
        animation: none !important;
        opacity: 1 !important;
    }

    .hero-subtitle,
    .hero-description {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-cta .btn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* will-changeを全体的に無効化 */
    * {
        will-change: auto !important;
    }

    /* カード内の文字アニメーションを無効化 */
    .problem-title span,
    .feature-title span,
    .case-name span,
    .review-text span {
        animation: none !important;
    }

    /* トランジションを無効化してスムーズなスクロールを確保 */
    .problem-card,
    .feature-item,
    .case-card,
    .review-card {
        transition: none !important;
    }

    /* ホバーエフェクトを完全に無効化 */
    .problem-card:hover,
    .feature-item:hover,
    .case-card:hover,
    .review-card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }












    /* 成功事例セクションのスマホ対応 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: var(--spacing-xl);
    }

    .case-card {
        margin-bottom: 1rem;
    }

    .case-person {
        height: auto;
        min-height: 100px;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        position: relative;
        z-index: 1;
    }

    .case-avatar {
        width: 48px;
        height: 48px;
        align-self: center;
    }

    .case-info {
        align-items: center;
        text-align: center;
    }

    .case-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 1rem;
        color: var(--color-primary);
        background: linear-gradient(135deg, rgba(255, 107, 74, 0.1), rgba(255, 145, 102, 0.1));
        border: 1px solid rgba(255, 107, 74, 0.2);
        border-radius: 8px;
        font-weight: 600;
        text-align: center;
        display: inline-block;
        white-space: nowrap;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        z-index: 2;
    }

    .case-name {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .case-company {
        font-size: 0.75rem;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: flex;
    }


    .mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.92) 100%);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9500;
    }

    body.nav-open .mobile-nav-overlay {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    [data-theme="dark"] .mobile-nav-overlay {
        background: linear-gradient(135deg, rgba(10, 10, 15, 0.96) 0%, rgba(15, 15, 20, 0.94) 100%);
    }

    .mobile-nav-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        height: 100%;
        padding: clamp(2rem, 6vw, 2.5rem);
        padding-top: calc(clamp(2rem, 6vw, 2.5rem) + env(safe-area-inset-top));
        padding-bottom: calc(clamp(2rem, 6vw, 2.5rem) + env(safe-area-inset-bottom));
        position: relative;
    }

    .mobile-nav-container::before {
        content: '';
        position: absolute;
        top: 5%;
        right: -5%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 107, 74, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .mobile-nav-container::after {
        content: '';
        position: absolute;
        bottom: 20%;
        left: -5%;
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(255, 149, 0, 0.12) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    [data-theme="dark"] .mobile-nav-container::before {
        background: radial-gradient(circle, rgba(255, 107, 74, 0.2) 0%, transparent 70%);
    }

    [data-theme="dark"] .mobile-nav-container::after {
        background: radial-gradient(circle, rgba(255, 149, 0, 0.15) 0%, transparent 70%);
    }

    .mobile-nav-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: clamp(2rem, 6vw, 2.5rem);
        position: relative;
        z-index: 2;
    }

    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(255, 107, 74, 0.2);
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-close:hover {
        transform: scale(1.05) rotate(90deg);
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 107, 74, 0.4);
        box-shadow: 0 6px 16px rgba(255, 107, 74, 0.2);
    }

    .mobile-nav-close svg {
        width: 16px;
        height: 16px;
        stroke: rgba(255, 107, 74, 0.9);
        stroke-width: 2.5;
        transition: stroke 0.3s ease;
    }

    .mobile-nav-close:hover svg {
        stroke: var(--color-primary);
    }

    [data-theme="dark"] .mobile-nav-close {
        background: rgba(30, 30, 35, 0.8);
        border-color: rgba(255, 107, 74, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .mobile-nav-close:hover {
        background: rgba(40, 40, 45, 0.9);
        border-color: rgba(255, 107, 74, 0.5);
    }

    [data-theme="dark"] .mobile-nav-close svg {
        stroke: rgba(255, 255, 255, 0.85);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
        position: relative;
        z-index: 2;
    }

    .mobile-nav-link {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        font-weight: 600;
        letter-spacing: -0.01em;
        line-height: 1.3;
        color: rgba(30, 30, 35, 0.9);
        text-decoration: none;
        padding: clamp(0.6rem, 2vw, 0.8rem) 0;
        transition: color 0.2s ease, transform 0.2s ease;
        position: relative;
    }

    .mobile-nav-link:hover {
        color: var(--color-primary);
        transform: translateX(4px);
    }

    [data-theme="dark"] .mobile-nav-link {
        color: rgba(255, 255, 255, 0.9);
    }

    .mobile-nav-footer {
        margin-top: auto;
        position: relative;
        z-index: 2;
        padding-top: clamp(2rem, 6vw, 3rem);
    }

    .mobile-nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: clamp(1rem, 3vw, 1.2rem) clamp(1.5rem, 4vw, 2rem);
        background: linear-gradient(140deg, #FF6B4A 0%, #FF8B6D 50%, #FFB08A 100%);
        color: #ffffff;
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
        font-weight: 600;
        text-decoration: none;
        border-radius: 12px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 16px rgba(255, 107, 74, 0.3);
    }

    .mobile-nav-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .flow-step {
        padding: 1.4rem 1.6rem;
    }

    .flow-step-head {
        flex-direction: column;
        gap: 0.5rem;
    }



    .hero {
        min-height: 100vh;
        padding: calc(var(--header-height) + 1rem) 1.5rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-content {
        align-items: center;
        padding: 0;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .case-content {
        padding: 1.5rem;
    }

    .case-avatar {
        width: 48px;
        height: 48px;
    }

    .case-title {
        font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
    }

    .case-salary {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
    }

    .case-comparison {
        padding: 1rem;
    }

    .header-cta {
        width: auto;
        justify-content: flex-end;
        padding: 0;
        margin-left: auto;
    }


    .floating-consult-cta {
        right: 1.25rem;
        bottom: 1.25rem;
        width: 52px;
        height: 52px;
    }

    .floating-consult-icon {
        width: 26px;
        height: 26px;
    }

    .mobile-menu-btn {
        display: flex !important;
    }


    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.25rem, 3vw, 1.5rem);
        font-size: clamp(0.85rem, 2vw, 0.9375rem);
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    /* スマホでホバー3D効果を無効化 */
    .problem-card.is-hovering,
    .problem-card:hover {
        transform: none !important;
    }

    .feature-item.is-hovering {
        transform: none !important;
    }

    .case-card:hover,
    .case-card.is-hovering {
        transform: none !important;
    }
    
    /* スマホでの3D効果を完全に無効化 */
    .problem-card,
    .feature-item,
    .case-card,
    .review-card {
        perspective: none !important;
        transform-style: flat !important;
    }
    
    .problem-card:hover,
    .feature-item:hover,
    .case-card:hover,
    .review-card:hover {
        transform: none !important;
    }

    .case-person {
        padding: 1.25rem;
    }

    .case-avatar {
        width: 48px;
        height: 48px;
    }

    .case-change {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
        margin-top: 0.75rem;
        position: relative;
        z-index: 1;
    }

    .change-before {
        border-right: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 0.75rem;
    }

    [data-theme="dark"] .change-before {
        border-color: rgba(255, 255, 255, 0.06);
    }

    .change-arrow {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .case-points {
        padding: 1.25rem;
    }

    .case-person {
        height: 90px;
    }

    .case-change {
        height: auto;
        min-height: 140px;
    }

    .case-highlight {
        height: 52px;
    }

    .change-arrow {
        width: 36px;
        height: 36px;
    }

    /* CTAセクションのモバイル版修正 */
    .cta-section {
        background: linear-gradient(135deg,
            rgba(255, 107, 74, 0.95) 0%,
            rgba(255, 145, 102, 0.93) 50%,
            rgba(255, 176, 138, 0.91) 100%);
        padding: 3rem 1rem;
    }

    .cta-title {
        white-space: normal;
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .cta-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-cta-white,
    .btn-cta-outline {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-cta-white {
        background: rgba(255, 255, 255, 0.95);
        color: var(--color-primary);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .btn-cta-outline {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-content {
        padding: 0 1rem;
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .register-form {
        padding: clamp(1.5rem, 4vw, 2rem);
        gap: clamp(1.25rem, 3vw, 1.5rem);
        border-radius: 20px;
    }

    .form-field {
        gap: 0.5rem;
    }

    .form-input-wrapper.has-leading-icon input,
    .form-input-wrapper.has-leading-icon select,
    .form-input-wrapper.has-leading-icon textarea {
        padding-left: clamp(2.5rem, 8vw, 3.5rem);
    }

    .form-field-icon {
        left: clamp(0.75rem, 2vw, 1rem);
        width: clamp(16px, 4vw, 18px);
        height: clamp(16px, 4vw, 18px);
    }

    .hero-label {
        margin-bottom: 1rem;
        padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1rem, 2.5vw, 1.25rem);
        font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-cta {
        gap: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* 小型スマホ (480px以下) */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
        --container-padding: clamp(0.75rem, 3vw, 1rem);
    }

    .section {
        padding: clamp(2.5rem, 8vw, 3rem) 0;
    }


    /* カードの表示を改善 */
    .card {
        background: rgba(255, 255, 255, 0.99) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    [data-theme="dark"] .card {
        background: rgba(20, 20, 20, 0.99) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    }

    /* スマホサイズでのテキストレイアウト改善 */
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        line-height: 1.2;
        word-break: keep-all;
    }

    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        line-height: 1.3;
        word-break: keep-all;
    }

    .card-title, .problem-title, .feature-title {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.4;
        word-break: keep-all;
    }

    /* コンテナの幅制限とオーバーフロー修正 */
    /* 全体のオーバーフロー修正 - モバイル対応 */
    body {
        width: 100%;
        max-width: 100vw;
        overscroll-behavior-y: none;
    }

    /* セクションのオーバーフロー修正 - モバイル対応 */
    .section {
        width: 100%;
        max-width: 100vw;
    }

    /* グリッドレイアウトの改善 */
    .problems-grid, .features-grid, .cases-grid, .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        align-items: stretch;
    }
    
    /* 小型スマホでもカードが確実に表示されるようにする */
    .problem-card, .feature-item, .case-card, .review-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        z-index: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    [data-theme="dark"] .problem-card,
    [data-theme="dark"] .feature-item,
    [data-theme="dark"] .case-card,
    [data-theme="dark"] .review-card {
        background: rgba(20, 20, 20, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
    }

    .review-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding: 1.5rem !important;
    }
    
    [data-theme="dark"] .review-card {
        background: rgba(20, 20, 20, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
    }

    /* フローセクションのカード間隔を調整 */
    .features-grid {
        gap: 3rem;
    }

    /* フローセクションのカードにマージンを追加 */
    .feature-item {
        margin-bottom: 1rem;
    }

    /* ボタンとCTAの改善 */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
        min-width: auto;
    }

    .btn-cta-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* フォームの改善 */
    .register-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    /* フローティングCTAの改善 */
    .floating-consult-cta {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
        z-index: 1000;
    }

    /* ボタン内の矢印をスマホサイズで適切に表示 */
    .btn-arrow {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .btn:hover .btn-arrow {
        transform: translateX(2px);
    }

    /* フローセクションの矢印と棒線のスマホ表示を最適化 - 重複削除 */

    /* セクション間のスペーシング改善 */
    .section {
        padding: 2rem 0;
    }

    .hero {
        padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    }

    .floating-consult-cta {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
    }

    .floating-consult-icon {
        width: 24px;
        height: 24px;
    }

    .floating-consult-cta.show:hover {
        transform: translate3d(var(--cta-base-translateX), -3px, 0) scale(1.02);
    }

    .flow-step {
        padding: 1.2rem;
    }

    .hero-label {
        margin-bottom: 0.75rem;
        padding: clamp(0.35rem, 0.8vw, 0.4rem) clamp(0.8rem, 2vw, 1rem);
        font-size: clamp(0.6rem, 1.4vw, 0.7rem);
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
        margin-bottom: 1.75rem;
    }

    .hero-subtitle {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        margin-bottom: 1.25rem;
    }

    .hero-cta {
        gap: 0.625rem;
    }

    .btn {
        padding: clamp(0.65rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.25rem);
        font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    }

    .register-form {
        padding: clamp(1rem, 3vw, 1.5rem);
        gap: clamp(1rem, 2.5vw, 1.25rem);
        border-radius: 16px;
    }

    .form-radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .form-radio-group label {
        width: calc(50% - 0.25rem);
        justify-content: center;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        text-align: center;
    }

    .case-person {
        padding: 1rem;
        height: 85px;
    }

    .case-avatar {
        width: 44px;
        height: 44px;
    }

    .case-name {
        font-size: 0.875rem;
    }

    .case-change {
        padding: 1rem;
        height: auto;
        min-height: 130px;
        margin-top: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .change-item {
        padding: 0.5rem;
    }

    .change-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }

    .case-highlight {
        padding: 0.75rem 1rem;
        height: 48px;
    }

    .case-points {
        padding: 1rem;
        gap: 0.625rem;
    }

    .cases-grid {
        gap: 1rem;
    }
}

/* ================================================
   画面高さに基づくレスポンシブ調整
================================================ */
/* 小さい画面高さ (700px以下) */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding: clamp(calc(var(--header-height) + 1rem), 5vh, calc(var(--header-height) + 2rem)) 2rem clamp(1rem, 3vh, 2rem);
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: clamp(0.75rem, 2vh, 1rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem);
    }

    .hero-description {
        font-size: clamp(0.875rem, 2vw, 1rem);
        margin-bottom: clamp(1rem, 2vh, 1.5rem);
    }

    .hero-label {
        font-size: clamp(0.75rem, 1.5vw, 0.875rem);
        padding: clamp(0.375rem, 1vh, 0.5rem) clamp(0.75rem, 2vw, 1rem);
        margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
    }

    .hero-cta {
        margin-top: clamp(1rem, 2vh, 1.5rem);
    }

    .hero-cta .btn {
        padding: clamp(0.75rem, 2vh, 1rem) clamp(1.5rem, 3vw, 2rem);
        font-size: clamp(0.875rem, 2vw, 1rem);
    }
}

/* 非常に小さい画面高さ (550px以下) */
@media (max-height: 550px) {
    .hero {
        min-height: auto;
        padding: clamp(calc(var(--header-height) + 0.5rem), 3vh, calc(var(--header-height) + 1rem)) 1.5rem clamp(0.5rem, 2vh, 1rem);
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 2vw, 1rem);
        margin-bottom: clamp(0.375rem, 1vh, 0.5rem);
    }

    .hero-description {
        font-size: clamp(0.75rem, 1.5vw, 0.875rem);
        margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
        line-height: 1.4;
    }

    .hero-label {
        font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
        padding: clamp(0.25rem, 0.5vh, 0.375rem) clamp(0.5rem, 1.5vw, 0.75rem);
        margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    }

    .hero-cta {
        margin-top: clamp(0.75rem, 1.5vh, 1rem);
    }

    .hero-cta .btn {
        padding: clamp(0.625rem, 1.5vh, 0.875rem) clamp(1.25rem, 2.5vw, 1.75rem);
        font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
    }
}

/* 横向き小型デバイス（landscape） */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 0.5rem) 1.5rem 0.5rem;
    }

    .hero-container {
        padding: 0;
    }

    .hero-title {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
        margin-bottom: 0.375rem;
    }

    .hero-description {
        font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-label {
        font-size: clamp(0.625rem, 1vw, 0.6875rem);
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.375rem;
    }

    .hero-cta {
        margin-top: 0.5rem;
    }

    .hero-cta .btn {
        padding: 0.5rem 1.25rem;
        font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    }

    .section {
        padding: clamp(2rem, 5vh, 3rem) 0;
    }
}

/* ================================================
   アクセシビリティ
================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* 問題カードの画像を統一比率に */
.problem-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.problem-card-content {
    flex: 1 1 auto;
}

/* Flow セクションのコネクタ用余白（スマホ） */
@media (max-width: 768px) {
    #FLOW .features-grid { gap: 3.5rem !important; }
}

/* モバイル最適化の追加微調整 */
@media (max-width: 480px) {
    html { font-size: 16px; }

    /* ヘッダーの余白を詰め、はみ出し防止 */
    .header .container.header-container {
        margin: 0 !important;
        padding: 0 1rem !important;
    }
    .logo img { max-height: 28px; }

    /* ヒーローの縦余白を少し詰め、フォントを縮小 */
    .hero { padding: calc(var(--header-height) + 0.5rem) 1rem 1rem; min-height: 100svh; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-description { max-width: 90vw; }

    /* ボタンの折返し許可（はみ出し防止） */
    .btn { white-space: normal; }
}

/* ----------------------------------------------------------------------------
   カードのモバイル最適化（Problems / Features / Flow）
---------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Problems */
    .problem-card { padding: 0; overflow: hidden; }
    .problem-image { width: 100%; height: auto; display: block; }
    .problem-card-content { padding: 1rem 1.125rem; }

    /* Features / Flow 共通のグリッドカード（PCと同じ構造を維持） */
    .feature-item { position: relative; display: block; background: transparent; }
    .feature-item::after { display: block; }
    .feature-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .feature-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    /* テキストは下部のオーバーレイでPCと同様に */
    .feature-content { position: absolute; bottom: 0; left: 0; right: 0; padding: clamp(1.25rem, 4vw, 2rem); }

    /* Flow のコネクタはモバイルでも表示（縦方向にCSSで最適化済み） */
}

/* ----------------------------------------------------------------------------
   最終モバイルオーバーライド（1カラム強制）
---------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .problems-grid, .features-grid, .reviews-grid, .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .problems-grid .problem-card, .features-grid .feature-item, .reviews-grid .review-card, .cases-grid .case-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}
