/* ==========================================
   全般・リセット設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    /* ページ全体の横揺れ・スライドを強制的に完全シャットアウト */
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
    /* コンテナ内での予期せぬはみ出しも防止 */
}

/* ==========================================
   共通見出しコンポーネント
   ========================================== */
.section-title-en {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #d4af37;
    text-align: center;
    letter-spacing: 0.3em;
    margin-bottom: 6px;
    font-weight: 700;
}

.section-title {
    font-size: 1.5rem;
    /* スマホで見劣りせず収まるサイズに固定 */
    color: #002366;
    text-align: center;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    padding: 0 10px;
}

/* ==========================================
   1. メインビジュアル（完成画像をそのまま使用）
   ========================================== */
/* ==========================================
   1. メインビジュアル（スマホ時は中央を画面いっぱいに拡大）
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    /* お手本画像をそのまま使用 */
    background-image: url('../img/hero-bg.jpg');
    background-repeat: no-repeat;

    /* ▽ここが最大のポイント▽ */
    /* スマホ（縦長）の時は画像を縦めいっぱいに広げ、横方向は「中央（Center）」を基準にトリミングします */
    background-size: cover;
    background-position: center center;

    /* スマホ画面でパッと見て1画面に収まりが良く、文字が綺麗に見える高さを確保 */
    height: 100vw;
    /* 画面幅に応じた最適な縦長サイズ（不要な左右は自動でハミ出して消えます） */

    overflow-x: hidden;
}

/* ==========================================
   スマホの拡大表示に合わせた、LINEボタンの透明リンク
   ========================================== */
.hero-hidden-trigger {
    position: absolute;
    display: block;

    /* 画像が中央基準で拡大されるため、ボタンの位置もスマホ専用に％でジャスト配置 */
    bottom: 9.5%;
    /* 下からの位置 */
    left: 50%;
    transform: translateX(-50%);

    /* 画像が横に大きくはみ出している分、透明ボタンの横幅の％を大きくしてズレを防止 */
    width: 78%;
    /* スマホの画面幅に対してこれくらいのサイズになります */
    height: 9%;
    /* ボタンの縦幅 */

    background: transparent;
    /* 完全に透明 */
    border-radius: 40px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s ease;
}

.hero-hidden-trigger:active {
    transform: translateX(-50%) scale(0.96);
}

/* ==========================================
   PC・タブレット表示（元の横長画像を綺麗に見せる）
   ========================================== */
@media (min-width: 769px) {
    .hero-section {
        height: auto;
        aspect-ratio: 1000 / 562;
        /* PCでは元の画像の比率（左右の景色も見える状態）に戻す */
    }

    .hero-hidden-trigger {
        /* PC時のボタンの位置とサイズに自動切り替え */
        bottom: 6.5%;
        width: 33.5%;
        height: 12.5%;
    }
}

/* タップされたときのエフェクト */
.hero-hidden-trigger:active {
    transform: translateX(-50%) scale(0.96);
}

.hero-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #d4af37;
    /* 画像と同じゴールド */
    border: 1px solid #d4af37;
    display: inline-block;
    padding: 6px 16px;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    background-color: rgba(0, 21, 62, 0.6);
    /* バッジの背景を少し暗くして文字をクッキリさせる */
    border-radius: 4px;
}

.hero-title {
    font-size: 2rem;
    /* スマホで1行が破綻しない限界サイズに調整 */
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    padding: 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* 画像に負けない文字の影 */
}

.hero-title .highlight-text {
    color: #ffffff;
    /* 文字の下に敷くゴールドの座布団エフェクト */
    background: linear-gradient(transparent 60%, rgba(212, 175, 55, 0.8) 40%);
    display: inline-block;
}

.hero-note {
    font-size: 0.75rem;
    color: #e2e8f0;
    margin-top: 2px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 強み箇条書き（スマホでの中央バランス維持） */
.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 35px;
    max-width: 340px;
    text-align: left;
    display: block;
    /* スマホで縦にスッキリ並べる */
}

.hero-features-list li {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
    position: relative;
    padding-left: 22px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* 箇条書きの金色の丸ドット */
.hero-features-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #d4af37;
    border-radius: 50%;
}

/* ==========================================
   実際にタップできる、画像そっくりのLINEボタン
   ========================================== */
.btn-line {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06c755 0%, #05b04b 100%);
    color: #ffffff !important;
    text-decoration: none;
    width: 100%;
    max-width: 360px;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
    transition: transform 0.2s ease;
    margin: 0 auto;
}

/* ボタンを押したときのクリック感 */
.btn-line:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.btn-sub {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    opacity: 0.95;
}

.btn-main {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* PC閲覧時の見栄え補正（大画面でも綺麗に引き伸ばす） */
@media (min-width: 769px) {
    .hero-section {
        padding: 120px 0 140px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-features-list {
        max-width: 450px;
    }

    .hero-features-list li {
        font-size: 1.1rem;
    }

    .btn-main {
        font-size: 1.3rem;
    }
}

/* ==========================================
   コンバージョンボタン
   ========================================== */
.btn-line {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06c755 0%, #05b04b 100%);
    color: #ffffff;
    text-decoration: none;
    width: 100%;
    max-width: 400px;
    /* スマホで押しやすい適正幅 */
    padding: 14px 16px;
    /* 左右固定パディングを撤廃し、内側へ収める */
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.btn-sub {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    opacity: 0.9;
}

.btn-main {
    font-size: 1.2rem;
    /* 長いテキストでも1行に確実に収める */
    letter-spacing: 0.02em;
}

/* ==========================================
   2. こんなお悩みありませんか？
   ========================================== */
.problems-section {
    background-color: #f8fafc;
    padding: 60px 0;
}

.problems-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.problem-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.problem-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

.solution-box {
    background-color: #002366;
    color: #ffffff;
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.15);
}

.solution-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* ==========================================
   3. 福岡で、なぜバックアップが選ばれるのか？
   ========================================== */
.why-us {
    padding: 60px 0;
    background-color: #ffffff;
}

.features-story-flow {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-text-block {
    padding-top: 5px;
}

.feature-item-title {
    font-size: 1.2rem;
    color: #002366;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333333;
    padding-left: 0;
}

/* ==========================================
   テーブルコンポーネント
   ========================================== */
.comparison-table-wrap,
.table-container {
    width: 100%;
    overflow-x: auto;
    /* テーブル「だけ」を中でスライドさせ、全体の揺れを防ぐ */
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(0, 35, 102, 0.02);
    margin-bottom: 12px;
}

.comparison-table-wrap::before {
    content: "➔ 左右にスクロールして比較できます";
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 10px;
    border: 1px solid #edf2f7;
    text-align: center;
    font-size: 0.85rem;
    color: #4a5568;
    vertical-align: middle;
}

.comparison-table td:first-child,
.comparison-table .param {
    font-weight: 700;
    color: #2d3748;
    background-color: #f8fafc;
    text-align: left;
    padding-left: 12px;
    width: 25%;
}

.comparison-table th {
    background-color: #f1f5f9;
    color: #4a5568;
    font-weight: 700;
}

.rent-cost-table .col-backup {
    background-color: #e6fffa;
    color: #002366;
}

.rent-cost-table td:nth-child(3) {
    background-color: #fafdfc;
}

.rent-cost-table .total-row td {
    font-weight: 700;
    background-color: #f8fafc;
}

.rent-cost-table .savings-row td {
    background-color: #fffaf0 !important;
}

.target-companies-table .main-column {
    background-color: #f0f4fa;
    color: #002366;
    font-weight: 700;
}

.target-companies-table th.main-column {
    background-color: #002366;
    color: #ffffff;
}

.target-companies-table .cross {
    color: #a0aec0;
    font-size: 0.8rem;
}

.middle-cv {
    text-align: center;
    padding: 30px 0;
    background-color: #f8fafc;
    width: 100%;
}

/* ==========================================
   4. なぜ無料にできるのか（仕組み）
   ========================================== */
.mechanism-section {
    padding: 60px 0;
    background-color: #ffffff;
    width: 100%;
}

.mechanism-lead {
    text-align: center;
    font-size: 1rem;
    color: #4a5568;
    margin-top: -15px;
    margin-bottom: 35px;
    padding: 0 10px;
}

.mechanism-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.mechanism-info-card,
.mechanism-diagram-card {
    background-color: #f8fafc;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow: hidden;
}

.mechanism-info-card h4,
.mechanism-diagram-card h4 {
    color: #002366;
    font-size: 1.05rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.diagram-flow-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 15px 0;
}

.diagram-flow-wrap::before {
    content: "➔ 左右スクロールで全体の流れを確認";
    display: block;
    font-size: 0.7rem;
    color: #a0aec0;
    margin-bottom: 6px;
}

.diagram-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 480px;
}

.diagram-node {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
}

.diagram-node.highlight-node {
    background: #002366;
    color: #ffffff;
    border-color: #002366;
    font-weight: 700;
}

.diagram-arrow {
    font-size: 0.7rem;
    color: #718096;
    white-space: nowrap;
}

.diagram-caption {
    font-size: 0.85rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.6;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #002366;
    width: 100%;
}

.mechanism-desc-box {
    background-color: #fafbfc;
    border: 1px solid #edf2f7;
    padding: 20px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.7;
}

/* ==========================================
   5. よくわかる バックアップのお部屋探し
   ========================================== */
.steps-section {
    background-color: #f8fafc;
    padding: 60px 0;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.step-item {
    background-color: #ffffff;
    padding: 35px 20px 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    width: 100%;
}

.step-num {
    position: absolute;
    top: -18px;
    left: 20px;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    background-color: #f8fafc;
    padding: 0 8px;
    line-height: 1;
}

.step-item h4 {
    font-size: 1.1rem;
    color: #002366;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ==========================================
   6. よくあるご質問 Q&A（アコーディオン完全改修）
   ========================================== */
.faq-section {
    padding: 60px 0 110px;
    background-color: #ffffff;
    width: 100%;
}

.faq-accordion {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    overflow: hidden;
    /* 子要素の飛び出しによる横スクロールを防止 */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 18px 45px 18px 10px;
    /* 右側のアイコン領域を確保 */
    font-size: 0.95rem;
    color: #002366;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    display: block;
    line-height: 1.4;
    word-break: break-all;
    /* 長い単語や記号の突き抜けを防止 */
}

/* アコーディオン右側の「＋」「－」切り替え用の矢印記号 */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #cbd5e1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* 回答テキスト（はみ出し・初期位置の横揺れを完全シャットアウト） */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
    width: 100%;
}

.faq-answer p {
    padding: 16px 12px;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    word-break: break-all;
    /* 回答内のテキストも絶対に画面外へ出さない */
}

/* ==========================================
   ユーティリティクラス
   ========================================== */
.text-red,
.color-red {
    color: #d93838 !important;
}

.text-navy {
    color: #002366 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.table-note {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 8px;
    text-align: left;
    padding: 0 4px;
}

/* ==========================================
   フッター・固定追従コンバージョン
   ========================================== */
.footer-section {
    background-color: #00153e;
    color: #ffffff;
    text-align: center;
    padding: 40px 16px 140px;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #d4af37;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

/* 下部固定追従領域 */
.floating-cv {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 12px;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.floating-btn-layout {
    width: 100%;
    max-width: 430px;
}

.floating-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.float-sub {
    font-size: 0.7rem;
    margin-bottom: 1px;
}

.float-main {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

/* ==========================================
   PC・タブレット向けのインライン最適化
   ========================================== */
@media (min-width: 769px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-features {
        flex-direction: row;
        gap: 30px;
    }

    .hero-feature-item {
        max-width: none;
        width: auto;
    }

    .problems-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        display: grid;
    }

    .comparison-table-wrap::before,
    .diagram-flow-wrap::before {
        display: none;
    }

    .comparison-table {
        min-width: 100%;
    }

    .mechanism-grid {
        grid-template-columns: 1fr 1.8fr;
        display: grid;
    }

    .diagram-flow {
        min-width: 100%;
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        display: grid;
    }

    .float-main {
        font-size: 1.2rem;
    }
}