.page_contact .under_bg{
    background: url(../images/contact/contact_kv.jpg) center top / cover no-repeat;
}

.contact{
    padding-bottom: 10rem;
}

.contact .wrapper{
    max-width: 80rem;
}

.contact_top{
    margin: 6rem 0 8rem;
    text-align: center;
}

.form_content{
    display: flex;
    flex-flow: column;
    gap: 3rem;
}

.form_item{
    display: flex;
    flex-flow: column;
    gap: 2rem;
}

.form_item label{
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    line-height: 1;
}

.required{
    color: #fff;
    background: var(--black);
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]), 
textarea{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: solid 0.1rem #C4C4C4;
    border-radius: 0;
    padding: 1.5rem;
    width: 100%;
}

textarea{
    height: 20rem;
}

::placeholder{
    color: #BABABA;
    font-family: "Hiragino Kaku Gothic Pro","Yu Gothic","Meiryo",sans-serif;
}

.policy{
    font-size: 1.4rem;
    line-height: 1.5;
    padding: 2rem;
    background: #fff;
    border: solid 0.1rem #C4C4C4;
    height: 20rem;
    overflow-y: scroll;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: solid 0.1rem #C4C4C4;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    display: inline-block;
    border-radius: 0.2rem;
    vertical-align: sub;
}

input[type="checkbox"]:checked {
    background-color: var(--black);
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0.1rem;
    left: 0.5rem;
    width: 0.8rem;
    height: 1.2rem;
    border: solid #fff;
    border-width: 0 0.3rem 0.3rem 0;
    transform: rotate(45deg);
}

.wpcf7-acceptance{
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.wpcf7-acceptance span{
    margin: 0;
}

input[type="submit"]{
    color: #fff;
    background: var(--black);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    width: 20rem;
    height: 5rem;
    border: solid 0.1rem var(--black);
    border-radius: 0.4rem;
    margin: 2rem auto 0;
    transition: 0.3s;
}

input[type="submit"]:hover{
    color: var(--black);
    background: #00000000;
}

.wpcf7-spinner{
    display: none;
}


@media (max-width: 1024px) {
    .contact .wrapper{
        max-width: 90rem;
    }
}


@media (max-width: 767px) {
    .page_contact .under_bg{
        background: url(../images/contact/sp/contact_kv.jpg) center top / cover no-repeat;
    }

    .contact{
        padding-bottom: 8rem;
    }

    .contact .wrapper{
        max-width: 35rem;
    }

    .contact_top{
        text-align: left;
        font-size: 1.4rem;
    }


}