/* =========================================
   お問い合わせ・資料請求フォーム用スタイル
========================================= */

.form-wrapper {
    max-width: 850px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.form-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333333;
    font-size: 1.6em;
}

.form-section-title {
    background-color: #d4ecef; /* サイトテーマのライトブルー */
    padding: 12px 15px;
    margin: 40px 0 25px;
    font-size: 1.2em;
    border-left: 5px solid #ff8c00; /* アクセントのオレンジ */
    color: #333333;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    align-items: flex-start;
}

.form-group > label {
    width: 30%;
    font-weight: 500;
    padding-top: 10px;
    color: #333333;
}

.form-group .required {
    background-color: #dc143c; /* 既存CSSの赤 */
    color: #ffffff;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールドの共通スタイル */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 70%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    background-color: #fafafa;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ff8c00; /* フォーカス時にオレンジに */
    outline: none;
    background-color: #ffffff;
}

/* 住所欄など、縦に並ぶinputの調整 */
.form-group input + input,
.form-group select + input {
    margin-top: 10px;
    margin-left: 30%; /* PC時は左側のラベル幅（30%）分だけ空ける */
}

/* ラジオボタン・チェックボックス群 */
.radio-group,
.checkbox-group {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 10px;
}

.radio-group label,
.checkbox-group label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.radio-group input,
.checkbox-group input {
    margin-right: 6px;
    transform: scale(1.2);
}

.mt-2 {
    margin-top: 10px;
}

/* ----------------------------------
   同意・送信ボタンエリア
---------------------------------- */
.agreement-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #cccccc;
}

.agreement-section p {
    margin-bottom: 20px;
    font-weight: 500;
}

.agreement-section a {
    color: #0066cc;
    text-decoration: underline;
}

.agreement-section a:hover {
    text-decoration: none;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-submit {
    display: inline-block;
    background-color: darkorange; /* 既存のドキュメントボタン色 */
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    min-width: 240px;
    text-align: center;
}

.btn-submit:hover {
    background-color: #e67e22;
}

.btn-back {
    display: inline-block;
    background-color: #888888;
    color: #ffffff;
    font-size: 1em;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-back:hover {
    opacity: 0.8;
}

/* ----------------------------------
   確認画面用テーブル（dl/dt/dd）
---------------------------------- */
.confirm-table dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.confirm-table dt {
    width: 30%;
    padding: 18px 15px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    color: #333333;
    box-sizing: border-box;
}

.confirm-table dd {
    width: 70%;
    padding: 18px 15px;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    color: #111111;
    line-height: 1.6;
    box-sizing: border-box;
}

.confirm-table hr {
    border: none;
    height: 10px; /* セクション間の余白として機能 */
    background: transparent;
    margin: 0;
}

#app_area{

}

#app_area p.min{
    font-size: 0.9em;
    color: #777;
}

.facility-select-wrap {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px; /* プルダウンが増えた際の上下の余白 */
}

.facility-select-item {
    width: 100%;
}

.add-facility-wrap {
    margin-top: 5px;
}

.btn-add-facility {
    color: #0066cc;
    font-size: 0.9em;
    text-decoration: underline;
}

.btn-add-facility:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ----------------------------------
   レスポンシブ (スマホ向け)
---------------------------------- */
@media screen and (max-width: 768px) {
    .form-section-title{
        font-size: 1.1em;
    }

    .form-wrapper {
        padding: 20px 10px;
        margin: 20px 10px;
    }

    .form-group {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .form-group > label {
        width: 100%;
        margin-bottom: 8px;
    }

    /* 幅を100%に広げる */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group select,
    .radio-group,
    .checkbox-group {
        width: 100%;
    }

    /* 住所の2行目以降のインデントをリセット */
    .form-group input + input,
    .form-group select + input {
        margin-left: 0;
    }

    .actions {
        flex-direction: column-reverse; /* スマホでは「修正する(戻る)」ボタンを下にする */
        gap: 15px;
    }

    .btn-submit,
    .btn-back {
        width: 100%;
        min-width: auto;
    }

    /* 確認画面のテーブルを縦積みに */
    .confirm-table dt,
    .confirm-table dd {
        width: 100%;
    }

    .confirm-table dt {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .confirm-table dd {
        padding-top: 0;
        margin-bottom: 10px;
    }

    .facility-select-wrap {
        width: 100%;
    }
}