/* ==========================================================================
   after_evaluation.css - 評価後タスク（アンケート・事業者コメント）専用スタイル
   ========================================================================== */

/* 共通 style.css のカラー定義をベースに、UIの視認性と品質を高める拡張設定 */
:root {
    /* 共通変数をリスペクトしつつ、文字の可読性（アクセシビリティ）を強化したディープトーンをブレンド */
    --local-primary-dark: #1a73e8;
    /* 信頼感のあるブルー */
    --local-secondary-dark: #2e7d32;
    /* 安心感のあるグリーン */
    --local-bg-light-blue: #f1f6fe;
    --local-bg-light-green: #f2f8f3;
    --local-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- メインコンテナレイアウト --- */
.tasks-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.task-section {
    margin-bottom: 48px;
}

/* --- カードUI設計（セクションの明確な分離） --- */
.task-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--local-transition);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

/* カード上部の太いアクセントライン（共通カラーを使用） */
.task-card-survey {
    border-top: 8px solid var(--secondary-color);
}

.task-card-comment {
    border-top: 8px solid var(--primary-color);
}

@media (max-width: 600px) {
    .task-card {
        padding: 24px;
    }
}

/* --- 見出し & カテゴリバッジ --- */
.section-title {
    font-size: 24px;
    color: var(--text-color-dark);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 24px 0;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.task-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.badge-survey {
    background-color: var(--local-bg-light-green);
    color: var(--local-secondary-dark);
}

.badge-comment {
    background-color: var(--local-bg-light-blue);
    color: var(--local-primary-dark);
}

.task-description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0 0 32px 0;
}

/* --- コールトゥアクション（CTA）ボックス --- */
.cta-banner-box {
    background-color: var(--background-color);
    border-radius: 16px;
    padding: 36px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.cta-instruction {
    font-size: 15px;
    color: var(--text-color-dark);
    margin: 0 0 24px 0;
    font-weight: 500;
}

.cta-instruction i {
    color: var(--local-secondary-dark);
    margin-right: 4px;
}

.cta-action-area {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* --- アクションボタン設計 --- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--local-transition);
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* アンケートボタン（安全なコントラストのグリーン） */
.btn-survey {
    background-color: #34a853;
    color: var(--white);
}

.btn-survey:hover {
    background-color: var(--local-secondary-dark);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.25);
}

/* ログイン画面導線用（アウトライン仕様） */
.btn-login-link {
    background-color: transparent;
    color: var(--local-primary-dark);
    border: 2px solid var(--local-primary-dark);
    padding: 12px 28px;
    font-size: 16px;
    box-shadow: none;
}

.btn-login-link:hover {
    background-color: var(--local-bg-light-blue);
    border-color: var(--local-primary-dark);
}

.btn-action .icon-sub {
    font-size: 14px;
    opacity: 0.8;
}

/* --- 事業者コメント案内ボックス一式 --- */
.intro-text-box {
    margin-bottom: 36px;
}

.intro-text-box p {
    font-size: 15px;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.intro-text-box strong {
    color: var(--text-color-dark);
}

/* 警告・注記ボックス */
.alert-notice-box {
    background-color: #fdf3f4;
    border-left: 4px solid var(--accent-color);
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.alert-notice-box i {
    color: #d93025;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-notice-box p {
    font-size: 14px;
    color: var(--text-color-dark);
    margin: 0;
}

/* --- タイムライン（ステップ案内）UI --- */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    margin-top: 36px;
}

/* ガイドラインの縦線表示 */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--border-color) 100%);
    z-index: 1;
}

@media (max-width: 600px) {
    .timeline-container::before {
        left: 18px;
    }
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .timeline-item {
        gap: 16px;
    }
}

.timeline-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .timeline-badge {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

.timeline-content {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 32px;
    width: 100%;
    transition: var(--local-transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
    .timeline-content {
        padding: 20px;
    }
}

.timeline-content h3 {
    margin: 0 0 12px 0;
    color: var(--text-color-dark);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--background-color);
    padding-bottom: 12px;
}

.timeline-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
}

.timeline-action {
    margin-top: 16px;
}

/* 一時保存等の補足ヒントボックス */
.hint-info-box {
    background-color: #fffaf0;
    border-left: 4px solid #f6c23e;
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.hint-info-box i {
    color: #f6c23e;
    font-size: 16px;
    margin-top: 3px;
}

/* --- お問い合わせ窓口カード --- */
.support-contact-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.support-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.support-header i {
    color: var(--local-primary-dark);
    font-size: 22px;
}

.support-header h3 {
    font-size: 20px;
    color: var(--text-color-dark);
    margin: 0;
    font-weight: 700;
}

.support-text {
    color: var(--text-color);
    font-size: 15px;
    margin: 0 0 24px 0;
}

.support-tel-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgb(221, 221, 221);
    color: black;
    padding: 12px 36px;
    border-radius: 100px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: var(--local-transition);
}

.support-tel-link:hover {
    transform: scale(1.02);
}

.support-tel-link a {
    color: inherit;
    text-decoration: none;
}

.support-footer-text {
    color: var(--text-color);
    font-size: 13px;
    margin: 0;
}

/* ==========================================================================
   事業者コメント タイムライン＆PC最適化2カラム拡張スタイル
   ========================================================================== */

/* --- タイムライン全体構造 --- */
.timeline-container {
    margin-top: 32px;
    position: relative;
    padding-left: 24px;
}

/* タイムラインの左側を縦に通る細いデザイン線 */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 43px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* --- ステップ数字バッジ --- */
.timeline-badge {
    position: absolute;
    left: -4px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--local-primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

/* --- コンテンツエリアの基本設定 --- */
.timeline-content {
    padding-left: 56px;
    padding-top: 6px;
}

.timeline-text-block h3 {
    font-size: 18px;
    color: var(--text-color-dark);
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.4;
}

.timeline-text-block p {
    font-size: 15px;
    color: var(--text-color);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* テキスト内の重要な操作部分のハイライト */
.step-highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #856404;
}

.timeline-action {
    margin-top: 16px;
}

.btn-login-link {
    background-color: var(--local-primary-dark) !important;
    color: var(--white) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--local-transition);
}

.btn-login-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- 画像コンテナとホバー演出 --- */
.timeline-image-block {
    margin-top: 16px;
}

.timeline-image-container {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: zoom-in;
    transition: var(--local-transition);
}

.timeline-image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: var(--local-transition);
}

/* マウスを乗せたときに拡大を促すオーバーレイ */
.zoom-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: var(--local-transition);
}

.timeline-image-container:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--local-primary-dark);
}

.timeline-image-container:hover img {
    transform: scale(1.02);
}

.timeline-image-container:hover .zoom-overlay {
    opacity: 1;
}

/* --- プロ仕様：画面幅が広いPC環境（768px以上）での2カラム並列レイアウト --- */
@media screen and (min-width: 768px) {
    .timeline-content {
        display: flex;
        gap: 40px;
        /* 説明と画像の間の余白 */
        align-items: flex-start;
    }

    /* 左側のテキスト幅 */
    .timeline-text-block {
        flex: 1.2;
        min-width: 0;
    }

    /* 右側の画像幅（大きくなりすぎず見やすいサイズに制限） */
    .timeline-image-block {
        flex: 1;
        margin-top: 0;
        /* 横並びになるため上部マージンをリセット */
        max-width: 420px;
    }

    .timeline-content.no-image .timeline-text-block {
        flex: 1;
        max-width: 100%;
    }
}

/* --- 画像拡大ライトボックス（モーダル） --- */
.image-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal-btn {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s;
}

.close-modal-btn:hover {
    transform: scale(1.1);
}

/* 今回の赤字ステータス解説用にデザイナーが追加したマイクロスタイル */
.step-highlight-red {
    background-color: #fdf3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #d93025;
    border: 1px solid #fadbd8;
}

.hint-lock-box {
    background-color: #fdf3f4;
    border-left: 4px solid #d93025;
    padding: 16px 20px;
    margin-top: 16px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    gap: 12px;
    line-height: 1.6;
}

.hint-lock-box i {
    color: #d93025;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.card-integrated-support {
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 40px;
    border: none !important;
    box-shadow: none !important;
}

/* アンケートセクション用のシームレスな淡い緑 */
.support-survey-theme {
    background-color: var(--local-bg-light-green, #f2f8f3) !important;
}

.support-survey-theme .support-header i {
    color: var(--local-secondary-dark, #2e7d32);
}

/* 事業者コメントセクション用のシームレスな淡い青 */
.support-comment-theme {
    background-color: var(--local-bg-light-blue, #f1f6fe) !important;
}

.support-comment-theme .support-header i {
    color: var(--local-primary-dark, #1a73e8);
}

/* スマートフォン閲覧時（親指でのタップ範囲「Thumb Zone」）の最適化 */
@media (max-width: 600px) {
    .card-integrated-support {
        padding: 24px 16px;
        margin-top: 32px;
    }

    .support-tel-link {
        font-size: 20px !important;
        padding: 10px 24px !important;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}
/* ==========================================================================
   比類なき情報設計：Web/Excel 2ルート分岐 & メールアドレス巨大化（視覚的ナッジ）
   ========================================================================== */

.survey-route-container {
    display: flex;
    gap: 24px;
    margin: 32px 0 40px 0;
    width: 100%;
}

/* タブレット・スマホ環境（1024px未満）では流動的に縦並びへスイッチ */
@media screen and (max-width: 1023px) {
    .survey-route-container {
        flex-direction: column;
    }
}

.survey-route-card {
    flex: 1;
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    transition: var(--local-transition);
}

.survey-route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

/* 【ナッジ設計】ルートA：Webフォーム（淡いブルー背景＋プライマリカラー枠線で無意識に誘導） */
.survey-route-card.route-web-highlight {
    background-color: var(--local-bg-light-blue);
    border: 2px solid var(--local-primary-dark);
}

/* ルートB：Excelメール添付（ニュートラルなホワイトトーン） */
.survey-route-card.route-excel-neutral {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

.route-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* justify-content: space-between; */
    align-items: center;
}

.route-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 0 0 28px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* アイコンカラーのコントロール */
.route-web-highlight .route-card-title i {
    color: var(--local-primary-dark);
}
.route-excel-neutral .route-card-title i {
    color: var(--local-secondary-dark);
}

.route-action-area {
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ボタンの拡張 */
.btn-survey-primary {
    background-color: var(--local-primary-dark) !important;
    color: var(--white) !important;
}
.btn-survey-primary:hover {
    background-color: #1557b0 !important;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3) !important;
}

.btn-excel-download {
    background-color: var(--local-secondary-dark) !important;
    color: var(--white) !important;
}
.btn-excel-download:hover {
    background-color: #1b5e20 !important;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3) !important;
}

.route-sub-text {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}
.route-sub-text a {
    color: var(--local-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   メガ提出先＆お問い合わせメールアドレス（アクセシビリティ最大化）
   ========================================================================== */

/* Excel提出先メガボックス */
.mega-submission-box {
    width: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.submission-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.submission-email-link {
    font-size: 18px;
    font-weight: 700;
    color: black !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--local-transition);
}
.submission-email-link i {
    color: var(--local-primary-dark);
    font-size: 16px;
}
.submission-email-link:hover {
    opacity: 0.7;
    transform: scale(1.01);
}

/* お問い合わせ窓口のマルチメガリンク化 */
.support-contact-mega-group {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 16px 0 24px 0;
    width: 100%;
}

@media screen and (max-width: 767px) {
    .support-contact-mega-group {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

.mega-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    /* モバイルでの親指のタップ精度を上げるため、横幅を最適化 */
    min-width: 280px; 
}

.contact-badge {
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(0,0,0,0.06);
    color: var(--text-color-dark);
    padding: 2px 10px;
    border-radius: 100px;
}

/* お問い合わせメールアドレスの巨大化スタイル（既存の電話番号デザインと完全調和） */
.support-mail-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgb(221, 221, 221);
    color: black;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 20px; /* メールアドレスの長さを考慮し、視認性を維持できる最大サイズ */
    font-weight: 700;
    transition: var(--local-transition);
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}

.support-mail-link:hover {
    transform: scale(1.02);
}

.support-mail-link a {
    color: inherit;
    text-decoration: none;
}

.support-mail-link i {
    color: var(--local-primary-dark);
    font-size: 20px;
}
        /* ==========================================================================
           UI/UX コンポーネント: 回答ルート分岐（Web / Excel）
           ========================================================================== */
        .answer-route-container {
            display: flex;
            gap: 24px;
            margin: 24px 0 32px 0;
        }

        @media (max-width: 768px) {
            .answer-route-container {
                flex-direction: column;
            }
        }

        .answer-route-card {
            flex: 1;
            background-color: var(--background-color);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 36px 28px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: var(--local-transition);
        }

        .answer-route-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
        }

        .answer-route-card.web-route {
            border-top: 6px solid #34a853;
        }

        .answer-route-card.excel-route {
            border-top: 6px solid var(--local-primary-dark);
        }

        .route-title {
            font-size: 18px;
            color: var(--text-color-dark);
            margin: 0 0 12px 0;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .answer-route-card.web-route .route-title i {
            color: #34a853;
        }

        .answer-route-card.excel-route .route-title i {
            color: var(--local-primary-dark);
        }

        .route-intro {
            font-size: 14px;
            color: var(--text-color);
            margin: 0 0 24px 0;
            line-height: 1.6;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-excel-download {
            background-color: var(--local-primary-dark);
            color: var(--white);
        }

        .btn-excel-download:hover {
            background-color: #1557b0;
            transform: scale(1.02);
            box-shadow: 0 6px 20px rgba(26, 115, 232, 0.25);
        }

        .route-sub-link {
            font-size: 13px;
            color: var(--text-color);
            margin: 24px 0 0 0;
            line-height: 1.6;
            border-top: 1px dashed var(--border-color);
            padding-top: 16px;
        }

        .route-sub-link a {
            color: var(--local-primary-dark);
            text-decoration: underline;
            word-break: break-all;
        }

        /* --- Webフォームプライマリヒーローエリア --- */
.survey-primary-hero {
    background: linear-gradient(135deg, #eef5ff 0%, #f4f8ff 100%);
    border: 2px solid var(--local-primary-dark);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.08);
}

.hero-badge-container {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-recommend-badge {
    background-color: #34a853;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.hero-time-badge {
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--local-primary-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.hero-title {
    font-size: 22px;
    color: var(--text-color-dark);
    margin: 0 0 12px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-title i {
    color: var(--local-primary-dark);
}

.hero-description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.btn-survey-primary-hero {
    background-color: var(--local-primary-dark);
    color: var(--white);
    padding: 16px 40px;
    font-size: 18px;
    width: 100%;
    max-width: 480px;
}

.btn-survey-primary-hero:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

/* --- Excel回答（セカンダリオプション） --- */
.survey-secondary-option {
    margin-bottom: 32px;
}

.excel-fallback-accordion {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    background-color: #fafafa;
    transition: var(--local-transition);
}

.excel-fallback-accordion[open] {
    background-color: var(--white);
    border-style: solid;
}

.accordion-header {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header .header-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.accordion-header .header-text i {
    color: #107c41; /* Excelカラー */
}

.accordion-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--light-gray);
    margin-top: 8px;
}

.excel-instruction {
    font-size: 14px;
    color: var(--text-color);
    margin: 16px 0;
}

.btn-excel-download-sub {
    background-color: #f1f3f4;
    color: var(--text-color-dark);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-size: 14px;
    box-shadow: none;
}

.btn-excel-download-sub:hover {
    background-color: #e8eaed;
    color: var(--text-color-dark);
}

/* ==========================================================================
   モバイル・レスポンシブ最適化（表示崩れ補正）
   ========================================================================== */

/* タブレット・スマートフォン共通補正 (768px以下) */
@media screen and (max-width: 768px) {
    /* 1. 全体カード・コンテナのパディング調整 */
    .tasks-wrapper {
        padding: 0 16px 40px;
    }

    .task-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    /* 2. Web回答ヒーローエリアのスマホ最適化 */
    .survey-primary-hero {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .hero-badge-container {
        flex-wrap: wrap;
        gap: 6px;
    }

    .hero-title {
        font-size: 18px;
        flex-direction: row;
        align-items: flex-start;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-survey-primary-hero {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* 3. アコーディオン（Excel回答）の折り返し調整 */
    .accordion-header {
        padding: 14px 12px;
    }

    .accordion-header .header-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .accordion-content {
        padding: 0 12px 16px 12px;
    }

    .btn-excel-download-sub {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        font-size: 13px;
        padding: 12px 16px;
    }

    /* 4. サポート・お問い合わせメガグループの崩れ防止 */
    .card-integrated-support {
        padding: 20px 16px;
    }

    .support-contact-mega-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mega-contact-item {
        width: 100%;
        box-sizing: border-box;
    }

    .support-tel-link,
    .support-mail-link {
        font-size: 16px;
        word-break: break-all; /* 長いメールアドレスの溢れを自動改行 */
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .support-tel-link a,
    .support-mail-link a {
        font-size: 15px;
    }

    /* 5. タイムライン（ステップ案内）のレイアウト修正 */
    .timeline-container {
        padding-left: 0;
    }

    .timeline-container::before {
        left: 18px; /* 縦ガイド線の位置をバッジの中心に調整 */
    }

    .timeline-item {
        position: relative;
        padding-left: 48px; /* 数字バッジの右側にスペースを確保 */
        margin-bottom: 28px;
    }

    .timeline-badge {
        position: absolute;
        left: 0;
        top: 0;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .timeline-content {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-text-block h3 {
        font-size: 16px;
    }

    .timeline-text-block p {
        font-size: 13px;
    }

    .btn-login-link {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* 超小型スマホ環境 (360px以下) の微調整 */
@media screen and (max-width: 360px) {
    .section-title .title-text {
        font-size: 18px;
    }

    .hero-title {
        font-size: 16px;
    }

    .btn-survey-primary-hero {
        font-size: 15px;
    }
}