/* ==========================================================================
   Design System & CSS Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-base: #ffffff;
    --color-main: #0866FF;
    --color-accent-1: #000000;
    --color-accent-2: #E5E8EB;
    
    --color-text-muted: #555555;
    --color-text-light: #888888;
    
    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-num: 'Noto Sans JP', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--color-accent-1);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-main);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.15);
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 102, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-main);
    color: var(--color-main);
}

.btn-outline:hover {
    background-color: var(--color-main);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.2);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.en-title {
    font-family: var(--font-num);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-main);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    position: relative;
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 900;
    padding: 8px 25px 8px 35px;
    transform: skewX(-15deg);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    z-index: 2;
}

.section-title-text {
    display: block;
    transform: skewX(15deg);
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--color-main);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-top: 15px;
}

/* Scroll Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   Header Styles
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-accent-2);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: var(--font-num);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-x {
    color: var(--color-main);
    font-style: italic;
    font-size: 1.7rem;
}

.logo-gym {
    color: var(--color-accent-1);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-light);
    border-left: 1px solid var(--color-accent-2);
    padding-left: 8px;
    margin-left: 4px;
    letter-spacing: 0.05em;
}

.header-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Hero Section (FB GYM Premium First View)
   ========================================================================== */
/* --- FB GYM プレミアム ヒーローセクション --- */
.hero-fbgym {
    min-height: clamp(550px, 46vw, 700px); /* 縦幅をコンパクトに抑える */
    padding: clamp(30px, 3.5vw, 55px) 0; /* 上下の余白を縮小 */
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-fbgym-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* 左右の縦幅を完全に合わせるため stretch に変更 */
    justify-content: center; /* 中央揃えにして真ん中の余白の広がりを防ぐ */
    gap: clamp(20px, 3.5vw, 45px); /* テキストとカードの間の隙間を適切に保つ */
}

.hero-fbgym-wide-container {
    width: 100%;
    padding: 0 25px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-fbgym-content {
    flex: 1.1;
    max-width: 630px; /* テキスト領域の最大幅を拡張 */
    position: relative;
    z-index: 2;
}

/* 右側実績数値エリア */
.hero-fbgym-metrics {
    flex: 0.9;
    max-width: 510px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上寄せにし、上端を左側エリアに揃える */
    gap: 16px; /* カード同士の間隔を適度に詰めて上部に引き上げる */
    z-index: 2;
}

.hero-metric-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* 縦の引き延ばしを解除した上で、上下を20px相当スリムにしたパディングに調整 */
    padding: 25px clamp(20px, 2.5vw, 30px);
    color: #ffffff;
    border: none;
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦幅を完璧に合わせるため上下中央寄せ */
    align-items: center; /* 左右中央寄せ */
    text-align: center;
    /* flex: 1 による強制ストレッチを解除し、適正な高さを維持 */
    
    /* 斜めのカッティングとグラデーション */
    background: linear-gradient(135deg, #0052e6 0%, #0066ff 60%, #003db3 100%);
    clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
    filter: drop-shadow(0 12px 24px rgba(0, 82, 230, 0.3));
    
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.hero-metric-card:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 18px 32px rgba(0, 82, 230, 0.4));
}

.hero-metric-label {
    display: block;
    font-size: clamp(14px, 1.4vw, 18px); /* 最大サイズを18pxに抑えて高さを削減 */
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 4px; /* 縦幅削減のためマージンを小さく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-metric-number-wrap {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 4px; /* 縦幅削減のためマージンを小さく */
}

/* Noto Sans JP の最も太いウェイト(900)を使用 */
.hero-fbgym-metrics .metric-num {
    font-family: var(--font-sans) !important; /* Noto Sans JPに固定 */
    font-size: clamp(54px, 6vw, 76px); /* 最大サイズを76pxにし、全体の高さを抑えて左側とカチッと合わせる */
    font-weight: 900;  /* 圧倒的な肉厚感 */
    line-height: 0.95;
    letter-spacing: -0.05em; /* タイトに詰めて塊感を演出 */
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-fbgym-metrics .hero-metric-unit {
    font-family: var(--font-sans) !important; /* Noto Sans JPに固定 */
    font-size: clamp(20px, 2vw, 26px); /* 最大サイズを26pxに微調整 */
    font-weight: 900;
    color: #ffffff !important;
    margin-left: 2px; /* 数字と％が被らないように適切な余白を確保 */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-metric-desc {
    font-size: clamp(11px, 1.1vw, 13px); /* 画面幅に応じて滑らかに伸縮 */
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.hero-metric-desc.small {
    font-size: clamp(10px, 1vw, 11px); /* 画面幅に応じて滑らかに伸縮 */
    font-weight: 500;
    opacity: 0.9;
}

/* 経営者利用が多いFacebook活用の... */
.hero-fbgym-eyecatch {
    margin-bottom: 8px; /* スマートな間隔に縮小 */
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.hero-fbgym-eyecatch-sub {
    display: block;
    font-size: clamp(1.0rem, 1.8vw, 2.1rem);
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
}

.hero-fbgym-eyecatch-sub .text-blue {
    color: var(--color-main);
}

.hero-fbgym-eyecatch-main {
    display: block;
    font-size: clamp(2.0rem, 4.0vw, 5.0rem); /* 文字サイズをスマートに縮小し上品に */
    font-weight: 900;
    color: #000000;
    margin-top: 4px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* タイトルとバッジのグループ（幅を揃えるためのコンテナ） */
.hero-fbgym-title-group {
    width: fit-content;
    display: flex;
    flex-direction: column;
}
/* FB GYM タイトルロゴ */
.hero-fbgym-title {
    font-family: sans-serif;
    font-size: clamp(4.0rem, 11vw, 13.5rem); /* タイトルロゴのサイズを縮小し、圧迫感をなくす */
    font-weight: 900;
    font-style: italic;
    color: var(--color-main);
    line-height: 0.9;
    margin-bottom: clamp(10px, 1.4vw, 18px); /* マージンを詰めて上品にする */
    letter-spacing: -0.04em;
    width: fit-content;
    white-space: nowrap;
}

/* つながりを、資産に変える。バッジ */
.hero-fbgym-badge-wrap {
    margin-bottom: clamp(10px, 1.4vw, 18px); /* マージンを詰めて上品にする */
    width: 100%;
}

.hero-fbgym-badge {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #0866FF 0%, #004ecc 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.0rem, 2.0vw, 2.3rem); /* バッジサイズをスマートに縮小 */
    padding: clamp(6px, 1.0vw, 10px) clamp(12px, 2.0vw, 28px); /* パディングをスマートに縮小 */
    transform: skewX(-15deg);
    border-radius: 4px;
    box-sizing: border-box;
}


/* 導入説明文の2列グリッド */
.hero-fbgym-desc-wrap {
    margin-bottom: clamp(10px, 1.4vw, 18px); /* マージンを詰めて上品にする */
    border-bottom: none; /* 下部のグレー境界線を削除 */
    padding-bottom: 0; /* 下部パディングを調整 */
}

.hero-fbgym-desc {
    font-size: clamp(1.0rem, 1.2vw, 1.25rem); /* 説明文サイズをスマートに縮小 */
    font-weight: 700;
    color: #000000;
    line-height: 1.65; /* 行間をスマートに縮小 */
    max-width: 620px;
}

.text-bold-blue {
    color: var(--color-main);
    font-weight: 700;
}

/* 5つのステップフロー（サークルアイコン・角丸グレー枠線カード） */
.hero-fbgym-flow {
    --flow-icon-size: clamp(110px, 12vw, 150px); /* アイコンサイズ変数（最大150px、最小110px） */
    display: flex;
    align-items: stretch; /* 各カードの高さを揃える */
    justify-content: space-between;
    gap: 0; /* 隙間をなくして境界線で繋ぐ */
    margin: 25px 0 50px; /* カードを前回の位置から100px引き上げたマージン設定 */
    background-color: #ffffff; /* 白背景 */
    padding: 25px 15px; /* カードとしての内側余白（150pxに対応） */
    border-radius: 12px; /* 角丸 */
    border: 1px solid #e5e8eb; /* グレーの1pxの枠線 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); /* うっすら自然なシャドウ */
    overflow: visible; /* 矢印などがはみ出しても表示 */
    width: 100%;
    position: relative;
    z-index: 3;
}

.flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px; /* アイコンとテキストの間隔 */
    padding: 20px 10px; /* パディングを広げて150pxに対応 */
    background-color: transparent;
    border-right: none;
    transition: var(--transition-smooth);
    position: relative;
}

.flow-step:hover {
    background-color: rgba(8, 102, 255, 0.02); /* ホバー時のうっすら青 */
    border-radius: 8px;
}

/* PC表示時にステップの間に「＞」矢印を表示（サークルアイコンの真横に配置） */
.flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -6px; /* ステップの境界線上 */
    top: calc(20px + var(--flow-icon-size) / 2); /* サークルの上部パディング20px + サークルの半径 */
    transform: translateY(-50%) rotate(-45deg);
    width: 10px; /* 150pxに合わせて矢印も少しだけ大きく */
    height: 10px;
    border-right: 2px solid #0866ff; /* 青色の矢印 */
    border-bottom: 2px solid #0866ff;
    pointer-events: none;
    z-index: 10;
}

/* アイコン画像コンテナ */
.flow-icon {
    width: var(--flow-icon-size); /* 変数を適用 */
    height: var(--flow-icon-size);
    background-color: #E7EEFC; /* アイコン画像の背景色に合わせて統一（二重丸を防止） */
    border-radius: 50%; /* 円形 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* 余白なし */
    transition: var(--transition-smooth);
    box-sizing: border-box;
    overflow: hidden; /* 画像の円形クリッピング */
}

.flow-step:hover .flow-icon {
    transform: translateY(-3px);
}

/* アイコン画像そのもののスタイル */
.flow-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.flow-text {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem); /* 上品でコンパクトな文字サイズ */
    font-weight: 700;
    color: #222222; /* よりはっきりした黒に近いダークグレー */
    line-height: 1.5;
    width: 100%;
}

.flow-text-line {
    display: block;
    white-space: nowrap; /* 途中で勝手に改行させない */
    overflow: hidden;
    text-overflow: ellipsis; /* 万が一入り切らない場合は「...」にする */
}

/* 最下部メッセージバー */
.hero-fbgym-message-bar {
    width: 100%;
    background: linear-gradient(135deg, #0866FF 0%, #004ecc 100%);
    padding: 2px;
    transform: skewX(-15deg);
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(8, 102, 255, 0.2);
}

.message-bar-inner {
    background: linear-gradient(135deg, #0866FF 0%, #004ecc 100%);
    color: #ffffff;
    text-align: center;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- 小画面PC・タブレット向け調整（横並びのまま縮小） --- */
@media (max-width: 1099px) and (min-width: 768px) {
    .hero-fbgym {
        min-height: clamp(580px, 58vw, 680px);
        padding: 40px 0;
    }

    .hero-fbgym-container {
        min-height: clamp(450px, 42vw, 520px);
        gap: 30px;
    }
    
    .hero-fbgym-content {
        flex: 1.1;
        max-width: none;
    }

    .hero-fbgym-metrics {
        flex: 0.9;
        max-width: none;
    }
    .hero-fbgym-desc-wrap {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    .flow-text {
        font-size: clamp(0.8rem, 1vw, 0.95rem); /* タブレット幅で文字が省略されるのを防ぐために微調整 */
    }
}

/* --- スマホ・タブレット・小画面PC用レスポンシブ調整（縦並び切り替え） --- */
@media (max-width: 767px) {
    .hero-fbgym {
        height: auto; /* スマホでは固定高さを解除 */
        padding: 60px 0 80px;
    }
    .hero-fbgym-title {
        font-size: clamp(3.8rem, 14vw, 5.5rem); /* スマホサイズも少し大きく拡大 */
        line-height: 0.95;
        margin-bottom: 15px;
    }
    
    .hero-fbgym-eyecatch-main {
        font-size: clamp(2.2rem, 9vw, 3rem); /* スマホサイズも少し大きく拡大 */
        margin-top: 4px;
    }
    
    .hero-fbgym-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        min-height: auto; /* パソコン用の高さをクリア */
    }
    
    .hero-fbgym-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-fbgym-metrics {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-metric-card {
        padding: 14px 20px; /* スマホ表示時の縦幅も上下さらにスリムに調整 */
        clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%); /* 傾きを約15度に揃えるため 12% に変更 */
        flex: none; /* スマホでは高さを引き延ばさない */
    }
    
    .hero-metric-label {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .hero-metric-number-wrap {
        margin-bottom: 10px;
    }
    
    .hero-fbgym-metrics .metric-num {
        font-size: 76px;
    }
    
    .hero-fbgym-metrics .hero-metric-unit {
        font-size: 26px;
        margin-left: 2px; /* スマホでも数字と%が被らないように2pxの余白を設定 */
    }
    
    .hero-metric-desc {
        font-size: 12px;
    }
    
    .hero-metric-desc.small {
        font-size: 12px;
    }
    
    .hero-fbgym-flow {
        flex-direction: column; /* 縦並びに切り替え */
        gap: 25px; /* ステップ同士の間隔 */
        background-color: #ffffff; /* 白背景 */
        border: 1px solid #e5e8eb; /* グレーの1pxの枠線 */
        border-radius: 12px; /* 角丸 */
        padding: 30px 20px; /* カードとしての内側余白 */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    }
    
    .flow-step {
        flex: none; /* 固定幅を解除 */
        width: 100%;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        position: relative;
    }
    
    .flow-step::before {
        display: none !important; /* スマホでは縦仕切り線を非表示 */
    }
    
    .flow-step::after {
        display: none !important; /* スマホでは矢印を非表示 */
    }
    
    .flow-text {
        font-size: 1.05rem; /* スマホでも文字を大きく */
    }
    
    .flow-icon {
        width: 100px;
        height: 100px;
        padding: 0; /* 余白なし（画像自体に背景があるため） */
    }
}

@media (max-width: 480px) {
    .flow-step {
        flex: 0 0 100%; /* 1列表示 */
    }
}


/* ==========================================================================
   Problem Section (課題提起 - プレミアムデザイン刷新)
   ========================================================================== */
.problem {
    padding: 120px 0;
    background-color: #f3f7fd;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.problem-dots {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(rgba(8, 102, 255, 0.4) 1.5px, transparent 1.5px);
    background-size: 11px 11px;
    z-index: -1;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.problem-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 55px 30px 45px;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0, 82, 230, 0.03), 0 5px 15px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.problem-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(8, 102, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 82, 230, 0.12);
}

.problem-card-num {
    font-family: var(--font-sans);
    font-size: 4.8rem;
    font-weight: 900;
    color: rgba(8, 102, 255, 0.07);
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 25px;
    z-index: 1;
    user-select: none;
}

.problem-card-icon {
    width: 100%;
    height: 100px;
    color: var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.problem-card-icon svg {
    width: 88px;
    height: 88px;
    stroke-width: 1.8;
}

.problem-card-title {
    font-family: var(--font-sans);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
    color: #111111;
    margin-bottom: 12px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.problem-card-line {
    width: 32px;
    height: 3.5px;
    background-color: var(--color-main);
    margin-bottom: 22px;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.problem-card-text {
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.65;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Features Section (特徴・強み)
   ========================================================================== */
.features {
    padding: 120px 0;
    background-color: var(--bg-base);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

/* ユンケルプレミアム風の成分解説レイアウト */
.feature-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    background-color: var(--bg-base);
    border-left: 3px solid var(--color-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 0 8px 8px 0;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(8, 102, 255, 0.08);
}

.feature-num {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(8, 102, 255, 0.45); /* 0.15から0.45へ色を濃く変更 */
    line-height: 1;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-num {
    color: var(--color-main);
}

.feature-info {
    flex: 1;
}

.feature-item-title {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--color-accent-1);
}

.feature-item-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Metrics Section (圧倒的実績)
   ========================================================================== */
.metrics {
    padding: 100px 0;
    background-color: var(--color-accent-1); /* 黒背景 */
    color: #ffffff;
}

.metrics .section-title {
    background-color: #222222;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.metrics .section-desc {
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    color: #ffffff !important;
    font-family: var(--font-sans) !important;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    margin: 25px auto 0;
    max-width: 1050px;
}

.metrics .section-desc strong {
    color: #E70113;
}

.metrics-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.case-study-img-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

.case-study-img {
    max-width: 800px;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.metric-card {
    flex: 1;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    border-color: var(--color-main);
    background: rgba(8, 102, 255, 0.02);
}

.metric-label {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: #cccccc;
    display: block;
    margin-bottom: 15px;
}

.metric-number-wrap {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 15px;
}

/* 極太で超巨大な数字 */
.metric-num {
    font-family: var(--font-sans);
    font-size: clamp(3.8rem, 8vw, 5.8rem);
    font-weight: 900;
    color: var(--color-main);
    line-height: 1;
    letter-spacing: -0.03em;
}

.metric-unit {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-main);
    margin-left: 4px;
}

.metric-desc {
    font-size: 1rem;
    color: #888888;
    font-weight: 500;
}

/* ==========================================================================
   Pricing Section (料金プラン)
   ========================================================================== */
.pricing {
    padding: 120px 0;
    background-color: var(--color-accent-2);
}

.pricing-card-wrap {
    display: flex;
    justify-content: center;
}

.pricing-card {
    width: 100%;
    max-width: 680px;
    background-color: var(--bg-base);
    border-radius: 16px;
    border: 2px solid var(--color-main);
    box-shadow: 0 20px 50px rgba(8, 102, 255, 0.1);
    overflow: hidden;
}

.pricing-header {
    background-color: rgba(8, 102, 255, 0.02);
    padding: 50px 40px 35px;
    text-align: center;
    border-bottom: 1px solid var(--color-accent-2);
}

.plan-badge {
    display: inline-block;
    background-color: var(--color-main);
    color: #ffffff;
    padding: 6px 18px;
    font-family: var(--font-num);
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.plan-name {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.plan-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.price-val {
    font-family: var(--font-num);
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-main);
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-unit {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-1);
    margin-left: 5px;
}

.price-note {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e60000;
    margin-top: 10px;
}

.pricing-body {
    padding: 40px 50px 50px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 500;
}

.check-icon {
    width: 22px;
    height: 22px;
    color: var(--color-main);
    flex-shrink: 0;
}

.pricing-cta {
    text-align: center;
}

/* ==========================================================================
   Contact Section (お問い合わせフォーム)
   ========================================================================== */
.contact {
    padding: 120px 0;
    background-color: var(--bg-base);
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-base);
    border: 1px solid var(--color-accent-2);
    border-radius: 12px;
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.col-full {
    grid-column: span 2;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.required {
    background-color: #e60000;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--color-accent-2);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: #ffffff;
    color: var(--color-accent-1);
    outline: none;
}

/* フォーカス時にFacebookブルーに光る */
.form-control:focus {
    border-color: var(--color-main);
    box-shadow: 0 0 8px rgba(8, 102, 255, 0.15);
}

/* バリデーションエラーメッセージ */
.error-message {
    font-size: 0.8rem;
    color: #e60000;
    font-weight: 700;
    margin-top: 6px;
    display: none;
}

.form-control.invalid {
    border-color: #e60000;
    background-color: rgba(230, 0, 0, 0.01);
}

.form-control.invalid:focus {
    box-shadow: 0 0 8px rgba(230, 0, 0, 0.15);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    background-color: var(--color-accent-1);
    padding: 60px 0 140px; /* 下部に余白を設けて、追従する青いボタンと重ならないようにします */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: sans-serif; /* 標準のゴシック体フォント */
    font-weight: 900; /* 極太 */
    font-style: italic; /* 斜体 */
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 20px;
    display: block;
}

.footer .logo-x {
    font-size: 1.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #888888; /* 薄いグレーに変更 */
    font-family: var(--font-num);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-link {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-main);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive (レスポンシブ設計)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .metrics-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .metric-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 130px 0 70px;
    }
    
    .visual-card {
        width: 290px;
        height: 330px;
        padding: 30px 20px;
    }
    
    .visual-card-body .card-val {
        font-size: 1.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .feature-num {
        font-size: 2.2rem;
    }
    
    .pricing-body {
        padding: 30px 20px 40px;
    }
    
    .contact-box {
        padding: 40px 20px;
        border: none;
        background-color: transparent;
        box-shadow: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group.col-full {
        grid-column: span 1;
    }

    /* スマホ表示での余白とドット配置の調整 */
    .problem {
        padding: 80px 0;
    }
    
    .problem-dots {
        width: 100px;
        height: 100px;
        bottom: 15px;
        right: 15px;
    }
    
    .problem-card {
        padding: 45px 24px 35px;
    }
}

/* ==========================================================================
   Service Flow Section (サービスの流れ)
   ========================================================================== */
.service-flow {
    padding: 120px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.problem .section-desc,
.features .section-desc,
.service-flow .section-desc,
.pricing .section-desc,
.contact .section-desc {
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    color: #000000 !important;
    font-family: var(--font-sans) !important;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    margin: 25px auto 0;
    max-width: 1050px;
}


.service-flow-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Cards will match in height! */
    gap: 0;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.service-flow-card {
    position: relative;
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #E5E8EB;
    border-radius: 8px;
    padding: 55px 20px 30px; /* バッジが大きくなった分、上の余白を増やします */
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.service-flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8, 102, 255, 0.08);
    border-color: rgba(8, 102, 255, 0.25);
}

.service-flow-card-badge {
    position: absolute;
    top: -36px; /* 位置を上に調整 */
    left: 50%;
    transform: translateX(-50%);
    width: 72px; /* 大きさを2倍に変更 */
    height: 72px; /* 大きさを2倍に変更 */
    border-radius: 50%;
    background-color: var(--color-main);
    color: #ffffff;
    font-family: var(--font-num);
    font-weight: 700;
    font-size: 1.9rem; /* 文字の大きさを2倍に変更 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(8, 102, 255, 0.2);
    z-index: 2;
}

.service-flow-card-title {
    font-family: var(--font-sans);
    font-size: 0.95rem; /* 1行にするためフォントサイズを小さく調整 */
    font-weight: 800;
    color: #111111;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: nowrap; /* 1行で強制表示 */
}

.service-flow-card-line {
    width: 30px;
    height: 3px;
    background-color: var(--color-main);
    margin-bottom: 25px;
    border-radius: 1.5px;
}

.service-flow-card-icon-wrap {
    width: 100px;
    height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0;
    transition: var(--transition-smooth);
}

.service-flow-card-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-flow-card:hover .service-flow-card-icon-wrap {
    transform: scale(1.05);
}

.service-flow-card-desc {
    font-size: 0.9rem;
    color: #000000 !important; /* 黒文字に変更 */
    font-weight: 700; /* 黒の太字にする */
    line-height: 1.65;
    text-align: left;
    margin-top: auto;
    min-height: 6rem; /* 4行分の高さを確保し、開始位置を揃えます */
}

.service-flow-card-desc strong {
    color: #E70113; /* 重要な箇所は赤文字にする */
    font-weight: 700;
}

.service-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
    z-index: 2;
}

.service-flow-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--color-main);
}

/* Loopback U-shape Line (Desktop) */
.service-flow-loop {
    position: relative;
    width: 82%; /* Match center of Card 1 to Card 5 */
    margin: -25px auto 0; /* Overlaps the bottom of the grid */
    height: 65px;
    border-left: 2px solid var(--color-main);
    border-right: 2px solid var(--color-main);
    border-bottom: 2px solid var(--color-main);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-sizing: border-box;
    z-index: 1;
}

/* Arrow pointing UP at top-left of the U-shape */
.service-flow-loop::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid var(--color-main);
}

/* Pill Button */
.service-flow-loop-btn {
    background: linear-gradient(135deg, #0866FF 0%, #0052cc 100%);
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.25);
    transition: var(--transition-smooth);
    cursor: default;
    user-select: none;
}

.service-flow-loop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 102, 255, 0.35);
}

.service-flow-loop .service-flow-loop-btn {
    position: absolute;
    bottom: -22px; /* centered on the bottom border */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.loop-btn-icon {
    width: 20px;
    height: 20px;
}

.loop-btn-separator {
    opacity: 0.5;
    font-weight: 300;
}

/* Mobile Button Wrapper (hidden on desktop) */
.service-flow-mobile-btn-wrap {
    display: none;
    text-align: center;
    margin-top: 30px;
}

/* Responsive (Tablet/Mobile) */
@media (max-width: 992px) {
    .service-flow {
        padding: 80px 0;
    }
    
    .service-flow-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .service-flow-card {
        width: 100%;
        max-width: 480px;
        flex: none;
        padding: 40px 24px 30px;
    }
    
    .service-flow-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
        width: auto;
        height: 32px;
    }
    
    .service-flow-loop {
        display: none; /* Hide the U-shape path on mobile */
    }
    
    .service-flow-mobile-btn-wrap {
        display: block; /* Show standalone capsule button */
    }
}

/* ==========================================================================
   Floating Footer Bar & Scroll To Top
   ========================================================================== */
.floating-footer-bar {
    position: fixed;
    bottom: -100px; /* Start hidden */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 24px;
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-footer-bar.show {
    bottom: 0;
}

.floating-footer-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    text-align: center;
    color: #ffffff;
    background-color: #E70113; /* 指定された赤 */
    border-radius: 6px; /* 四角に近い角丸 */
    box-shadow: 0 4px 15px rgba(231, 1, 19, 0.2);
    transition: var(--transition-smooth);
    border: none;
}

.floating-btn:hover {
    background-color: #c20110; /* 少し暗い赤 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 1, 19, 0.3);
}

.floating-btn .btn-icon {
    width: 20px;
    height: 20px;
}

/* Page Top Button */
.page-top-btn {
    position: fixed;
    right: 24px;
    bottom: -80px; /* Start hidden */
    width: 48px;
    height: 48px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, transform 0.3s;
}

.page-top-btn.show {
    bottom: 95px; /* Floating footer bar が表示されるため、重ならないように少し上に配置 */
}

.page-top-btn:hover {
    background-color: #005DEE;
    transform: translateY(-3px);
}

.page-top-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .floating-footer-bar {
        padding: 12px 16px;
    }
    .page-top-btn {
        right: 16px;
    }
    .page-top-btn.show {
        bottom: 89px; /* Mobile bar height + spacing */
    }
}

