@charset "UTF-8";

/* ------ お問い合わせページ本体 ------ */
.contact-page {
    max-width: 480px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.contact-intro {
    margin-bottom: 32px;
}

/* ------ セクション ------ */
.contact-section {
    margin-bottom: 32px;
}

.contact-section__title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
}

/* ------ フォーム ------ */
.contact-form {
    width: 100%;
}

/* グループ */
.form-group {
    margin-bottom: 24px;
}

/* ラベル */
.form-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.form-label__required {
    color: #d9534f;
    font-size: 11px;
    margin-left: 2px;
}

/* 入力エリアの共通ラッパー */
.form-control-wrap {
    position: relative;
}

/* テキスト入力（名前・メール） */
.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #777;
    padding: 8px 0;
    font-size: 15px;
    box-sizing: border-box;
    background-color: transparent;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #B67C29;
}

/* セレクトボックス */
.form-select {
    width: 100%;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 10px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 14px;
}

.form-select:focus {
    outline: none;
    border-color: #B67C29;
}

/* テキストエリア */
.form-textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #B67C29;
}

/* ------ エラーメッセージ ------ */
.form-global-error {
    background-color: #ffe4e4;
    color: #c62828;
    padding: 10px 12px;
    margin-bottom: 24px;
    font-size: 13px;
    border-radius: 3px;
}

.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
    border-color: #e53935;
    border-bottom-color: #e53935;
}

.form-error {
    margin-top: 4px;
    font-size: 12px;
    color: #e53935;
}

/* ------ プライバシー部分 ------ */
.contact-privacy__list {
    margin: 32px 0 0;
    padding: 12px 32px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.contact-privacy__agree {
    margin-top: 16px;
    text-align: center;
}

.checkbox-privacy {
    font-size: 13px;
    cursor: pointer;
}

.checkbox-privacy input[type="checkbox"] {
    margin-right: 4px;
}

.warning {
    margin-top: 4px;
    font-size: 12px;
    color: #e53935;
}

/* ------ 送信ボタン ------ */
.contact-submit {
    margin-top: 24px;
}

.contact-submit:not(.contact-submit--confirm, .contact-submit--complete) .contact-submit__button:not(.is-enabled) {
    color: #fff;
    background-color: #CCCCCC;
    border-color: #CCCCCC;
    pointer-events: none;
}

/* ------ スマホ調整 ------ */
@media screen and (max-width: 480px) {
    .page-header {
        padding-top: 32px;
        padding-bottom: 16px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .contact-section__title {
        font-size: 17px;
    }
}


/* ------ 確認画面レイアウト ------ */

.contact-page--confirm .contact-intro {
    margin-bottom: 24px;
}

.confirm-list {
    margin: 0;
    border-top: 1px solid #eee;
}

.confirm-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.confirm-row dt {
    width: 35%;
    color: #999;
    padding-right: 12px;
    box-sizing: border-box;
}

.confirm-row dd {
    width: 65%;
    box-sizing: border-box;
}

/* 複数行になる本文は折り返し表示 */
.confirm-row--textarea dd {
    white-space: pre-wrap;
}

/* 確認画面のボタンレイアウト */
/* .contact-submit--confirm {
    display: flex;
    justify-content: center;
    gap: 12px;
} */
/* 画面幅が狭いときはボタンを縦並びにする */
@media screen and (max-width: 445px) {
    /* .contact-submit--confirm {
        flex-direction: column;
        align-items: stretch;
    } */

    .contact-submit--confirm .contact-submit__button {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .contact-submit--confirm .contact-submit__button + .contact-submit__button {
        margin-top: 8px;        /* ボタン同士の上下余白 */
    }
}


/* ------ 完了ページ ------ */

.contact-page--complete {
    text-align: center;
}

.contact-complete__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-complete__message {
    margin-bottom: 20px;
    text-align: left;
}

.contact-complete__note {
    margin: 16px 0 32px;
    padding: 16px;
    background-color: #f7f7f7;
    border-radius: 5px;
    text-align: left;
    font-size: 13px;
    line-height: 1.7;
}

/* 完了ページのボタンは中央寄せで一つだけ */
.contact-submit--complete {
    justify-content: center;
}
