/*---------
CONTACT
----------*/

/*---- 共通ブロック ----*/


/*----コンテンツブロック ----*/

.form-block {
    padding: 40px 0 10px;
    border-bottom: 1px solid #D9D9D9;
}

.form-block:first-child {
    padding: 0 0 10px;
}

.form-block:last-of-type {
    border-bottom: none;
}

.form-block__head {
    display: flex;
    align-items: baseline;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.form-label {
    font-size: 16px;
    font-weight: bold;
    line-height: calc(16 / 16);
}

/* バッジ */

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(11 / 11);
}

.form-badge--required {
    background-color: #CE000E;
}

.form-badge--optional {
    background-color: #999999;
}

/* 入力系 */

.form-block__field {
    font-size: 16px;
}

.form-block__field.radio_field {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 11px 15px;
    border-radius: 2px;
    border: none;
    background-color: #D2D2D2;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    color: #362216;
    line-height: calc(16 / 16);
}

.form-control::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: var(--point-color);
    line-height: calc(16 / 16);
}


.form-control:focus {
    outline: 2px solid #362216;
    outline-offset: 0;
}

.form-control--textarea {
    min-height: 240px;
    resize: vertical;
    padding: 5px 15px;
}

/* ラジオ */

.form-radio {
    display: inline-flex;
    align-items: center;
}

.form-radio span {
    font-size: 16px;
    font-weight: 400;
    color: var(--sub-color);
    line-height: calc(16 / 16);
}

.form-radio input[type="radio"] {
    accent-color: #CE000E;
    margin: 3px 5px 0px 0px;
}

/* ファイル入力 */

.form-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.form-file input[type="file"] {
    display: none;
}

.form-file__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 11px;
    color: var(--sub-color);
    background-color: #ffffff;
    border: 1px solid #949494;
    cursor: pointer;
}

.form-file__text {
    font-size: 11px;
    font-weight: 400;
    color: var(--sub-color);
    line-height: calc(11 / 11);
}

/* チェックボックス */

.form-block--privacy {
    padding: 0;
    border-bottom: none;
    margin: 70px 0 30px;
    text-align: center;
}

.form-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.form-checkbox input[type="checkbox"] {
    display: none;
}

.form-checkbox__box {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid #D9D9D9;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked+.form-checkbox__box {
    background-color: #362216;
    border-color: #362216;
}

.form-checkbox input[type="checkbox"]:checked+.form-checkbox__box::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.form-checkbox__label {
    font-size: 16px;
    font-weight: 400;
    line-height: calc(28 / 16);
}

.important_text {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.form-submit {
    width: 300px;
    margin: 0 auto;
}

.contact-btn {
    width: 100%;
    height: 60px;
    border: 1px solid transparent;
    border-radius: 30px;
    background: var(--main-color);
    font-size: 16px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(28 / 16);
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.contact-btn::before {
    content: "";
    display: block;
    position: absolute;
    background: url(../images/contact/btn_icon.png) center / cover no-repeat;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 85%;
    transform: translate(-50%, -50%);
}

.contact__submit02 .contact-btn::before {
    top: 50%;
    left: inherit;
    transform: translate(50%, -50%) rotate(180deg);
}

.input__button-box {
    width: 300px;
    margin: 0 auto;
}

.btn_icon {
    position: absolute;
    background: url("../images/contact/btn_icon.png") center / cover no-repeat;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 85%;
    transform: translate(-50%, -50%);
}

.confirm__btn-box {
    text-align: center;
    width: 300px;
    margin: 0 auto;
}

.contact__submit02 {
    margin-bottom: 20px;
}

.contact_error {
    /* margin-top: 10px; */
}

.input__button-box {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-btn {
        width: 250px;
    }

    .confirm__btn-box {
        display: flex;
        justify-content: center;

    }

    .confirm__btn-box>div {
        /* width: 50%; */
    }

    .contact__submit02 {
        margin-bottom: 0;
        margin-right: 20px;
    }

    .contact-complete-wrap {
        margin-bottom: 60px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 200px;
        margin-bottom: 200px;

    }

    .finish-modoru {
        margin-top: 1em;
    }

    /* 共通ブロック */

    /* コンテンツブロック */

    .form__body {
        max-width: 785px;
        margin: 0 auto;
    }

    .note_text {
        max-width: 800px;
        margin: 0 auto 20px;
    }

    .faq_list {
        max-width: 800px;
        margin: 0 auto;
        gap: 50px;
    }

    .faq_item {
        padding-bottom: 25px;
    }

    .question_title {
        align-items: baseline;
    }

    .form-submit {
        width: 230px;
    }

    .contact-btn {
        height: 50px;
    }

    .contact-btn:hover {
        background: #fff;
        color: var(--main-color);
        border: 1px solid var(--main-color);

    }

    .contact-btn:hover .btn_icon {
        background: url("../images/contact/btn_icon_on.png") center / cover no-repeat;
    }

    .contact-btn:hover::before {
        background: url("../images/contact/btn_icon_on.png") center / cover no-repeat;
    }
}

/*--------------------------------------------------
RESET & CLEAN CUSTOM CHECKBOX
--------------------------------------------------*/

/* ラッパー：要素を横並びにし、相対配置の基準にする */
.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* 1. 本物のinputを「透明」にして「一番上」に重ねる */
/* これにより、どこをクリックしても本物のチェックボックスを叩けます */
.mwform-checkbox-field {
    position: absolute;
    inset: 0;
    /* ラッパー全体をクリック領域にする */
    z-index: 10;
    margin: 0;
}

.mwform-checkbox-field label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.mwform-checkbox-field input[type="checkbox"] {
    width: 100%;
    height: 100%;
    opacity: 0;
    /* 透明 */
    margin: 0;
    cursor: pointer;
}

/* プラグインのテキストとhiddenフィールドを隠す */
.mwform-checkbox-field-text,
input[type="hidden"][name*="__children"] {
    display: none;
}

/* 2. 見た目用のカスタムボックス（本物の下になる） */
.form-checkbox__box {
    width: 18px;
    height: 18px;
    border: 1px solid #D9D9D9;
    border-radius: 2px;
    background-color: #fff;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* 透明なinputの下 */
    flex-shrink: 0;
}

/* 3. チェックされた時のスタイル (:hasで親要素の状態を監視) */
.form-checkbox-wrapper:has(input:checked) .form-checkbox__box {
    background-color: #362216;
    border-color: #362216;
}

/* 4. レ点の描画 */
.form-checkbox-wrapper:has(input:checked) .form-checkbox__box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* 5. ラベルとリンクのスタイル */
.form-checkbox__label {
    font-size: 16px;
    color: #362216;
    z-index: 1;
}

.important_text {
    color: #362216;
    /* 必要に応じてメインカラーに */
    text-decoration: underline;
    position: relative;
    z-index: 20;
    /* リンクだけは透明なinputより上に置く（クリック可能にするため） */
}