/* ==========================================================================
   お問い合わせページ共通・入力画面（contact.php）のデザイン
   ========================================================================== */
.contact-main {
    padding: 60px 0 100px;
}

.center-heading {
    max-width: 650px;
    margin: 40px auto 0;
}

.contact-lead {
    margin-top: 15px;
    font-size: 14px;
    color: #75685d;
    line-height: 1.8;
}

/* フォームを囲む白枠の箱 */
.contact-form-container {
    max-width: 650px;
    margin: 40px auto 0;
    background-color: #ffffff;
    border: 1px solid #e5ddd2;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(60, 40, 20, 0.02);
    text-align: left; /* 文字を左詰めに統一 */
}

/* 各入力欄のグループ */
.contact-form-container .form-group {
    margin-bottom: 25px;
}

/* ラベルの設定 */
.contact-form-container label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #3b2a20;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

/* 必須マークのバッジ */
.badge-required {
    background-color: #70421f;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 入力欄（input / textarea）の共通デザイン */
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5ddd2;
    border-radius: 8px;
    background-color: #fcfaf6;
    font-family: inherit;
    font-size: 14px;
    color: #332820;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.3s;
}

/* 入力欄にカーソルが当たったときの変化 */
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: #c87932;
    background-color: #ffffff;
}

/* プレースホルダー（薄い文字）の色 */
.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
    color: #bbb;
}

/* テキストエリアの高さ */
.contact-form-container textarea {
    height: 180px;
    resize: vertical;
    line-height: 1.7;
}

/* 送信ボタンのコンテナとボタン本体（入力画面用） */
.submit-button-container {
    text-align: center;
    margin-top: 35px;
}

.form-submit-btn {
    border: none;
    padding: 14px 40px;
    font-size: 14px;
    cursor: pointer;
    min-width: 220px;
    justify-content: center;
}










/* ==========================================================================
   お問い合わせ確認ページ（contact_confirm.php）のデザイン
   ========================================================================== */
.contact-confirm-lead {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #75685d;
}

/* 確認画面の各入力項目のまとまり */
.confirm-group {
    margin-bottom: 25px;
    border-bottom: 1px dashed #e5ddd2;
    padding-bottom: 15px;
}

/* 最後の項目だけ下線を消す */
.confirm-group:last-of-type {
    border-bottom: none;
    margin-bottom: 35px;
}

.confirm-label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #75685d;
    margin-bottom: 6px;
}

.confirm-value {
    font-size: 15px;
    color: #332820;
    font-weight: bold;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* 💡 確認画面のボタンを横並びにするコンテナ（ここをシンプルかつ強力にしました） */
.confirm-btn-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 40px !important;
}

.btn-back {
    background-color: #9a8e82 !important;
    padding: 14px 30px;
    min-width: 140px;
    text-align: center;
}

.confirm-btn-container form {
    margin: 0 !important;
    display: inline-block !important;
}

/* ==========================================================================
   エラーメッセージ用のデザイン
   ========================================================================== */
.contact-error-box {
    background-color: #fce8e6; 
    color: #c5221f;            
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.contact-error-box ul {
    margin: 0;
    padding-left: 20px;
}

.contact-error-box li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.contact-error-box li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   📱 スマホ画面用の調整（画面幅 600px 以下）
   ========================================================================== */
@media screen and (max-width: 600px) {
    /* 全体の白枠の余白を少しスリムに */
    .contact-form-container {
        padding: 25px 20px !important;
    }
    
    .contact-lead br {
        display: none; 
    }

    /* 💡 スマホの時は、確認画面のボタンを確実に「上下縦並び（幅100%）」に強制上書きします */
    .confirm-btn-container {
        flex-direction: column !important; /* 縦並びに切り替え */
        gap: 12px !important;              /* ボタン同士の上下の隙間 */
        width: 100% !important;
    }

    /* ボタンとフォームの横幅制限をすべて解除して、画面いっぱいに広げます */
    .confirm-btn-container .btn-back,
    .confirm-btn-container .form-submit-btn,
    .confirm-btn-container form {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .confirm-btn-container form {
        display: block !important;
    }

    /* ボタン内の文字の配置と高さをスマホ用に最終微調整 */
    .confirm-btn-container .header-button {
        padding: 12px 20px !important;
        font-size: 14px !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
    }
}

