@charset "UTF-8";

#contact .hero_visual {
    background-image: url(../images/contact/contact_title.jpg);
    background-image: image-set(url(../images/contact/contact_title.webp) type("image/webp"),
            url(../images/contact/contact_title.jpg) type("image/jpeg"));
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
    height: 400px;
    max-width: initial;
    object-position: center;
    width: 68vw;
}


@media screen and (max-width: 767px) {

    #contact .hero_visual {
        background-image: url(../images/contact/contact_title_sp.jpg);
        background-image: image-set(url(../images/contact/contact_title_sp.webp) type("image/webp"),
                url(../images/contact/contact_title_sp.jpg) type("image/jpeg"));
        background-size: cover;
        background-position: center;
        position: relative;
        background-repeat: no-repeat;
        height: 180px;
        max-width: initial;
        object-position: center;
        width: 100%;
    }

}



#contact .maincontents02 {
    max-width: 888px;
    margin: 0 auto;
}


#contact .contact-lead-text {
    text-align: justify;
}


.contact-notice {
    border: 1px solid var(--gray02);
    padding: 30px;
    background: #fff;
}

.contact-notice span {
    font-weight: 500;
}

@media screen and (max-width:767px) {

    .contact-notice {
        padding: 15px;
    }

}


/***********************:contactform****************************/
.form-area {
    background: #fff;
}

form .form-field:first-child {
    border-top: 1px solid var(--gray02);
}

form .form-field {
    color: var(--black);
    font-weight: 700;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--gray02);
    align-items: center;
    justify-content: space-between;
}

form .form-field02 {
    color: var(--black);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray02);
    align-items: center;
    justify-content: space-between;
}

form .border-bold {
    border-bottom: 1px solid var(--gray02);
}

.row {
    display: flex;
    flex-wrap: wrap;
}

label {
    display: inline-block;
    background: var(--gray03);
    padding: 30px 0 30px 20px;
    color: var(--gray01);
    font-weight: 500;
}

form .form-field02 label {
    padding-bottom: 135px;
}

form .form-field input[type="text"],
form .form-field input[type="email"],
form .form-field02 textarea {
    font-size: 1.6rem;
    height: auto;
    padding-top: 11px;
    padding-bottom: 11px;
    border-radius: 0;
}


.form-control-area {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--black);
    background-color: #eee;
    background-clip: padding-box;
    border: 1px solid #eee;
    border-radius: 2.5px;
}

.form-control-area::placeholder {
    color: #999899;
}

form .form-field.align_start {
    align-items: flex-start;
}

form .form-field02.align_start {
    align-items: flex-start;
}

.form-field.check {
    border-bottom: none;
    background-color: var(--white);
    padding: 30px;
}

form .form-field.submit_btn {
    border-bottom: none;
    margin: 0 auto;
    text-align: center;
}


form .form-field02.check,
form .form-field02.submit_btn {
    border-bottom: none;
}

form .form-field input[type="text"],
form .form-field input[type="email"],
    {
    font-size: 16px;
    height: auto;
    padding-top: 11px;
    padding-bottom: 11px;
    border-radius: 0;
}

form .form-field02 textarea {
    font-size: 16px;
    height: 188px;
    padding-top: 11px;
    padding-bottom: 11px;
    border-radius: 0;
    background: #eee;
}

form .indent_note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-top: 12px;
    padding-right: 15px;
    text-indent: -1em;
    padding-left: 1em;
    line-height: 1.7;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
}

form .form-field02 .form-control {
    padding: 30px 20px;
}

.must_label {
    color: var(--red);
}


.form-check-inline {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
    margin-right: 47.5px;
}

.form-check-label {
    background: #fff;
    color: var(--black);
    padding: 0;
}

.form-check {
    position: relative;
}

.type_option {
    font-weight: 400;
}

.radio-btn01 {
    accent-color: #0866ff;
    inline-size: 15.4px;
    block-size: 15.4px;
}

.type_option .wpcf7-list-item input[type="radio"] {
    position: relative;
    top: -2px;
}

.type_option .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    background: none;
    padding: 0;
    color: inherit;
    font-weight: normal;
    gap: 0.5rem;
}

.d-inline-block {
    display: inline-block !important;
}

.personal_check {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.checkbox {
    cursor: pointer;
    padding: 0;
}

.checkbox input[type="checkbox"] {
    margin-bottom: 5px;
    display: none;
}

.checkbox input[type="checkbox"] + .checkbox-icon::before {
    content: "";
    display: block;
    position: absolute;
    top: 6px;
    left: 9px;
    width: 12px;
    height: 12px;
    border: 1px solid var(--black);
    background-color: #fff;
}

.checkbox input[type="checkbox"] + .checkbox-icon {
    padding-left: 28px;
    position: relative;
}

.checkbox input[type="checkbox"]:checked + .checkbox-icon::after {
    content: "";
    display: block;
    position: absolute;
    top: 4px;
    left: 13px;
    width: 5px;
    height: 11px;
    transform: rotate(40deg);
    border-bottom: 2px solid #00125e;
    border-right: 2px solid #00125e;
}

.personal_check_link {
    color: var(--black);
    font-weight: 400;
}

.link_under {
    text-decoration: underline !important;
    color: var(--black);
}

.form-field.check .must_label {
    font-weight: 400;
}


button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}


.submit_btn {
    text-align: center;
}

@media (min-width: 824px) {
    .form_br {
        display: none !important;
    }
}


@media (min-width: 768px) {
    .form-label {
        flex: 0 0 26.238738738%;
        max-width: 26.238738738%;
        line-height: 1;
    }

    .form-control {
        flex: 0 0 73.761261262%;
        max-width: 73.761261262%;
    }


    #contact form .form-check {
        margin-right: 25px;
    }

}

@media screen and (max-width:767px) {

    form .form-field input[type="text"],
    form .form-field input[type="email"],
    form .form-field02 textarea {
        font-size: 1.4rem;
    }

    .form-area {
        border-right: 1px solid #f0f0ed;
        border-left: 1px solid #f0f0ed;
    }

    .form-label {
        padding: 15px 0 15px 15px;
        font-size: 14px;
        width: 100%;
        line-height: 1;
    }

    .form-control {
        padding: 15px;
    }

    .form-check-inline {
        margin-right: 7.5px;
    }

    form .form-field02.align_start {
        align-items: flex-start;
    }

    form .form-field02 label {
        padding-bottom: 15px;
    }

    form .form-field02 .form-control {
        padding: 15px;
    }


    form .indent_note {
        margin-bottom: 8px;
        margin-top: 8px;
    }


    .form-field.check {
        padding: 15px;
    }

    .form-check-label {
        font-size: 1.4rem;
        margin-bottom: -2px;
    }

    .form_br {
        display: none !important;
    }


    .checkbox input[type="checkbox"] + .checkbox-icon::before {
        top: 4.5px;
    }

    .checkbox input[type="checkbox"]:checked + .checkbox-icon::after {
        top: 2.5px;
        13px;
    }

    .radio01 {
        inline-size: 1.8rem;
        block-size: 1.8rem;
        margin: 3px .8rem 0 5px
    }

    .check > p {
        font-size: 1.4rem;
    }

}


/* Contact Form 7の送信ボタンを元のデザインに合わせる */
.submit_btn .wpcf7-submit.btn01 {
    display: block;
    color: var(--gray01);
    border-radius: 5px;
    padding: 45px 80px 45px 30px;
    font-weight: 500;
    font-size: 2rem;
    width: 100%;
    max-width: 344px;
    background: #fff url(../images/common/arw_right_gr02.svg) no-repeat right 20px center;
    background-size: 50px 50px;
    box-sizing: border-box;
    border: 1px solid var(--main-color);
    cursor: pointer;
    margin: 0 auto;
    text-align: left;
}

.submit_btn .wpcf7-submit.btn01:hover {
    opacity: 0.7;
    transition: .2s;
}

.wpcf7-spinner {
    display: none !important;
}

@media (max-width: 767px) {
    .submit_btn .wpcf7-submit.btn01 {
        font-size: 1.4rem;
        max-width: 235px;
        padding: 30px 60px 30px 15px;
        background-size: 40px 40px;
        background-position: right 15px center;
    }
}

/* Contact Form 7のチェックボックスを元のデザインに */
.checkbox .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: contents;
}

.checkbox .wpcf7-acceptance label {
    padding: 0;
    background: none;
    color: inherit;
    font-weight: inherit;
    display: contents;
}

.checkbox .wpcf7-acceptance input[type="checkbox"] {
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
}

/* フォーム全体をflexにして順序を制御 */
.wpcf7-form {
    display: flex;
    flex-direction: column;
}

/* エラーメッセージを送信ボタンの上に移動 */
.wpcf7-response-output {
    order: -1;
    margin: 0 0 20px;
    padding: 15px;
    font-size: 1.4rem;
}

/* セクション（フォーム本体）の順序 */
.contact-form-section {
    order: 0;
}