/* ==========================================
   コンタクトページ全体レイアウト（参考サイトベース）
========================================== */
.contact-page {
    background-color: #f9f9f9; /* フォームを引き立たせる美しい薄グレー背景 */
    padding-top: 170px; /* 💡140pxから170pxへ広げ、カンパニーと同等のゆったりした余白に */
    padding-bottom: 100px;
}

/* 💡 他ページとの整合性をとるためのタイトルエリア装飾 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-subtitle {
    display: block;
    color: #bfa15f; /* コーポレートカラーのゴールド */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase; /* 自動で大文字の CONTACT になります */
    margin-bottom: 12px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: center;
    margin-bottom: 50px;
}

/* 💡 洗練されたステップバーのスタイル */
.form-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    position: relative;
    padding: 0 30px;
}

.step:not(:last-child)::after {
    content: "\f105"; /* FontAwesomeの矢印 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -5px;
    color: #ccc;
}

.step-num {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    font-style: italic;
    font-weight: bold;
    color: #ddd;
}

.step.active .step-num {
    color: #bfa15f; /* ゴールドアクセント */
}

.step-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.step.active .step-text {
    color: #1a1a1a;
}

/* 💡 フォーム本体の白ボックス */
.contact-form-container {
    background-color: #fff;
    padding: 60px 50px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* 💡 参考サイト風 2カラムレイアウト設定（PC用） */
.form-group {
    width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px; /* ラベルと入力欄の間の余白 */
}

.form-label-box {
    width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}

.form-label-box label {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.badge-required {
    background-color: #bfa15f; /* サイトの世界観に合わせたゴールド系必須バッジ */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.form-input-box {
    flex: 1;
}

/* 💡 すべての入力要素の横幅を100%均一化 & iOSズーム防止 */
.form-input-box input,
.form-input-box textarea,
.form-input-box select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    background-color: #fafafa;
    font-size: 16px; /* 💡 ここを15pxから16pxに変更（iOSの強制ズーム防止） */
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border-radius: 4px; /* 💡 スマホでタップしやすいよう、ほんの少しだけ角を丸くする */
}

.form-input-box input:focus,
.form-input-box textarea:focus,
.form-input-box select:focus {
    outline: none;
    border-color: #bfa15f;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.1);
}

/* ボタン関係のデザイン */
.form-submit-box {
    text-align: center;
    margin-top: 40px;
}

.btn-submit-action {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    padding: 16px 60px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-action:hover {
    background-color: #bfa15f;
    border-color: #bfa15f;
}

/* ==========================================
   確認画面用の美しいテーブルレイアウト
========================================== */
.confirm-notice {
    font-size: 15px;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

.confirm-wrapper {
    border-top: 1px solid #1a1a1a;
    margin-bottom: 40px;
}

.confirm-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.confirm-label {
    width: 250px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.confirm-value {
    flex: 1;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap; /* 改行を適切に反映 */
}

.confirm-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-back-action {
    background-color: #fff;
    color: #666;
    border: 1px solid #ccc;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-action:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

/* ==========================================
   完了画面用スタイル
========================================== */
#complete-fields {
    text-align: center;
    padding: 40px 0;
}

.complete-status-icon {
    font-size: 64px;
    color: #bfa15f;
    margin-bottom: 25px;
}

.complete-text {
    font-size: 15px;
    line-height: 2.0;
    color: #444;
    margin-bottom: 40px;
}

.text-decoration-none {
    text-decoration: none;
    display: inline-block;
}

/* ==========================================
   スマートフォン向けレスポンシブ（徹底最適化版）
========================================== */
@media screen and (max-width: 768px) {
    .contact-page {
        padding-top: 120px; /* 💡 スマホ時もヘッダーと被らない絶妙な広さに調整 */
        padding-bottom: 60px;
    }
    
    /* スマホ用のタイトルサイズ調整 */
    .page-header {
        margin-bottom: 25px;
    }
    .page-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .contact-container {
        padding: 0 10px; 
    }

    .contact-lead {
        font-size: 14px;
        text-align: left; /* スマホでは長文のセンター寄せより左寄せの方が見やすい */
        margin-bottom: 35px;
    }

    /* 💡 極小スマホ（横幅320px〜）でも絶対に崩れないステップバー */
    .form-steps {
        padding-bottom: 15px;
        margin-bottom: 35px;
        gap: 0;
    }
    .step {
        padding: 0 8px; /* 隙間を極限まで引き締めてはみ出し防止 */
        gap: 6px;
    }
    .step:not(:last-child)::after {
        font-size: 12px;
        right: -3px;
    }
    .step-num {
        font-size: 13px;
    }
    .step-text {
        font-size: 11px; /* 文字サイズをわずかに落として1行に収める */
        letter-spacing: 0;
    }

    /* 💡 白ボックスのパディングをスマホ用に調整 */
    .contact-form-container, 
    .contact-form {
        width: 100%;    /* ← ここを100%にすると長くなります！ */
        margin: 0 auto;
        max-width: none;
    }

    /* 💡 PCの2カラムからスマホ用の縦並びへスイッチ */
    .form-group, .confirm-row {
        flex-direction: column; 
        align-items: flex-start;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .form-label-box, .confirm-label {
        width: 100%;
        padding-top: 0;
        margin-bottom: 8px;
    }
    
    .confirm-label {
        color: #888; /* 確認画面の項目名は少し薄くすると視認性が劇的にUP */
        font-size: 13px;
    }

    /* 💡 【超重要】iOS Safariの「勝手に画面ズーム」を完全に防止 */
    .form-input-box input,
    .form-input-box textarea,
    .form-input-box select {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box; /* 💡余白を含めて幅を計算する */
    }

    /* 💡 長いメールアドレス等の確認画面での「右側はみ出し・横スクロール」を完全防御 */
    .confirm-value {
        width: 100%;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    .submit-btn-box {
        margin-top: 30px;
    }
    /* 💡 ボタンをスマホ画面いっぱいの押しやすいサイズに変更 */
    .confirm-btn-group {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .form-submit-box {
        margin-top: 30px;
    }

    .btn-submit-action,
    .btn-back-action {
        width: 100%;
        max-width: none;
        padding: 18px 20px;
        font-size: 15px;
        touch-action: manipulation;
    }
    .btn-submit-action:active,
    .btn-back-action:active {
        transform: scale(0.98);
    }
}
/* クラス名が違っても大丈夫なように、form要素自体を指定する */
form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* 💡 セレクトボックスの矢印をオリジナルに変更し、全端末でデザインを統一 */
.form-input-box select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23888888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px; /* 矢印と文字が被らないようにする */
    cursor: pointer;
}
