.contact-section .section-inner {
    padding-top: 82px;
}

.contact-top-text {
    text-align: center;
    line-height: 2.5;
    padding: 1em 0;
    background: url(../images/contact/text-bg.png) no-repeat;
    background-position: center;
    background-size: contain;
}

.contact-form {
    background: #F0EDE8;
    padding: min(7.81vw, 112px) min(7.81vw, 172px);
    margin-top: 62px;
    font-size: min(2.08vw, 18px);
}

.contact-form label {
    display: inline-block;
    width: 12em;
    font-weight: bold;
    flex-shrink: 0;
}

.contact-form .radio-btn-wrap span.mwform-radio-field.horizontal-item label {
    width: 7em;
}

input,
textarea {
    padding: 0.2em;
    border: 1px solid #DADEE2;
}

.radio-btn-wrap .form-radio {
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #dadee2;
    border-radius: 9999px;
    background-color: #ffffff;
    cursor: pointer;
}

.radio-btn-wrap .form-radio:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 14px;
    height: 14px;
    margin: auto;
    border-radius: 9999px;
    background-color: #e08814;
}

.text-form-wrap {
    margin-top: min(3.91vw, 40px);
    display: flex;
    align-items: center;
    position: relative;
}

.text-form-wrap.required label::after {
    content: "必須";
    font-size: min(1.56vw, 14px);
    padding: 0.2em 0.5em;
    color: #ffffff;
    background-image: linear-gradient(90deg, #e08814, #ea6d06);
    border-radius: 2px;
    margin-left: 1em;
}

.text-form-wrap.message {
    align-items: flex-start;
}

.text-form-wrap input {
    height: 2.5em;
    width: calc(100% - 12em);
}

textarea {
    width: calc(100% - 12em);
    height: 15em;
}

.privacy-agreement {
    text-align: center;
    margin-top: 2em;
}

.privacy-agreement p {
    font-weight: bold;
}

.privacy-agreement label {
    width: 100%;
    margin-top: 1em;
}

.privacy-agreement label span.mwform-checkbox-field-text {
    color: #E08814;
    padding-bottom: 2px;
    border-bottom: 1px solid;
    transition: all .3s;
}

@media (any-hover: hover) {
    .privacy-agreement label span.mwform-checkbox-field-text:hover {
        opacity: 0.6;
    }
}

.privacy-agreement label input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid #dadee2;
    border-radius: 2px;
    background-color: #ffffff;
    cursor: pointer;
}

.privacy-agreement label input[type="checkbox"]:checked {
    background-color: #e08814;
}

.privacy-agreement label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 3px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
}

.mw_wp_form .error {
    position: absolute;
    bottom: 0;
    left: 0;
    translate: 0 100%;
    padding-top: 0.5em;
    font-size: 12px !important;
}


.contact-form .flex-btn {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 70px;
}

.contact-form .grad-btn input {
    width: 280px;
}

.contact-form p {
    text-align: center;
    line-height: 2;
}

.contact-form .mw_wp_form_complete p:first-of-type {
    font-size: 24px;
    margin-bottom: 40px;
}

.contact-form .mw_wp_form_complete p:nth-of-type(3) {
    margin-top: 2em;
    font-size: 16px;
}

.contact-complete .grad-btn a {
    width: 280px;
    text-align: center;
    margin-top: 30px;
}

@media screen and (max-width:768px) {
    .contact-section .section-inner {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .contact-form {
        margin-top: 40px;
        width: 100vw;
        translate: -4vw;
        font-size: min(4.1vw, 16px);
        padding: 40px 4vw;
    }

    .radio-btn-wrap {
        margin-bottom: 30px;
    }

    .radio-btn-wrap label {
        width: 100%;
        margin-bottom: 1em;
    }

    .text-form-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-form-wrap input {
        margin-top: 1em;
        width: 100%;
        height: 3em;
    }

    textarea {
        width: 100%;
        margin-top: 1em;
    }

    .text-form-wrap.required label::after {
        font-size: min(3.08vw, 14px);
    }

    .contact-form .flex-btn {
        margin-top: 30px;
    }

    .mw_wp_form .error {
        position: relative;
        translate: 0;
    }

    .mw_wp_form_preview .text-form-wrap {
        gap: 10px;
    }

    .mw_wp_form_preview .privacy-agreement {
        display: none;
    }

    .mw_wp_form_preview .text-form-wrap.required label::after {
        display: none;
    }

    .mw_wp_form_preview .radio-btn-wrap {
        margin-bottom: 0;
    }

    .contact-form .flex-btn {
        flex-direction: column-reverse;
    }

    .contact-form .grad-btn input {
        max-width: 280px;
        width: 100%;
    }

    .contact-form .mw_wp_form_complete p:first-of-type {
        font-size: min(4.8vw, 24px);
        margin-bottom: 26px;
    }

    .contact-form .mw_wp_form_complete p:nth-of-type(3) {
        font-size: min(3.73vw, 16px);
    }

}