@charset "utf-8";

span.required, span.optional{
    display: inline-block;
    font-size: 0.75em;
    text-align: center;
    border-radius: 0.25em;
    color: #fff;
    background-color: #9b0c0c;
    width: clamp(80px, 25%, 160px);
    margin-right: 0.5em;
}
span.optional{
    background-color: #0c189b;
}
input{
    line-height: 2!important;
}



#contact_main .contact_wrapper{
    padding-top: calc(100vh / 8);
}
#contact_main .contact_wrapper h4{
    margin: 3.2rem auto 4rem;
}
.contact_wrapper form,.contact_wrapper label,.contact_wrapper input,.contact_wrapper textarea,#form_submit input[type="button"]{
    margin: 0;
    padding: 0;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: 0;
}
.contact_wrapper form{
    width: 100%;
    padding: 2.5%;
    margin: 2.4rem auto;
    max-width: 32rem;
}
.contact_wrapper form dl{
    margin-bottom: 4rem;
}
.contact_wrapper form dl div{
    font-size: 1.4rem;
}
.contact_wrapper form dl div:not(:last-of-type){
    margin-bottom: 3.2rem;
}
.contact_wrapper form dl div dt{
    text-align: left;
    border-left: 4px solid;
    padding-left: .8rem;
    margin-bottom: .8rem;
    color: #c4a27c;
    letter-spacing: 0.05em;
}
.contact_wrapper form dl div dd input,.contact_wrapper form dl div dd textarea{
    width: 100%;
    line-height: 1.8;
    color: #4b4b4b;
    height: 4.4rem;
    font-size: 1.4rem;
    padding-left: .8rem;
    border: 1px solid;
    border-radius: 5px;
}
.contact_wrapper form dl div dd textarea{
    height: 16rem;
}
.contact_wrapper form dl div dd input[type="checkbox"]{
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    margin-right: 2%;
    position: relative;
}
.contact_wrapper form dl div dd input[type="checkbox"]::before{
    content: "";
    width: 1rem;
    height: 1rem;
    border: 1px solid #9b0c0c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
}
.contact_wrapper form dl div dd input[type="checkbox"]:checked:before{
    transition: .25s;
    opacity: 1;
}
.contact_wrapper form dl div dd input[type="checkbox"]:checked{
    transition: .25s;
    border-color: #9b0c0c;
}
.contact_wrapper form ul{
    list-style: none;
    display: flex;
    flex-flow: row wrap;
}
.contact_wrapper form ul li{
    width: 48%;
    margin-right: 4%;
    line-height: 1.5;
    text-align: left;
}
.contact_wrapper form ul li:last-of-type{
    margin: 0;
}
#form_submit input[type="button"]{
    width: 100%;
    line-height: 4.4rem;
    font-size: 1.6rem;
    background-color: #9b0c0c;
    border-bottom: 3px solid #570e0e;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}
#form_submit input[type="button"]:hover{
    transition: .25s;
    color: #c4a27c;
}
#form_submit input[type="button"]:active{
    border-bottom-color: transparent;
    transform: translateY(3px);
}
.contact_wrapper form dl div dt span{
    color: #fff;
    border-radius: 5px;
    margin-right: 2%;
    padding: .4rem;
    font-size: 1.2rem;
}
#contact_main .contact_wrapper .optional{
    background-color: #082b77;
}
#contact_main .contact_wrapper  span.required{
    background-color: #9b0c0c;
}
#contact_main .contact_wrapper .error_blank{
    display: block;
    width: 100%;
    color: #d61616;
}
.contact_thanks{
    padding: 0 0 calc(100vh / 8);
    width: calc(100vw / 1.2);
    margin: 0 auto;
}


@media screen and (min-width:720px) {
    #contact_main .contact_wrapper h4{
        margin: 32px auto 40px;
    }
    .contact_wrapper form{
        padding: 16px;
        margin: 24px auto;
        max-width: 100%;
    }
    .contact_wrapper form dl{
        margin-bottom: 40px;
        display: flex;
        flex-flow: row wrap;
    }
    .contact_wrapper form dl div{
        font-size: 14px;
        width: 48%;
        margin-right: 4%;
    }
    .contact_wrapper form dl div:nth-of-type(even){
        margin-right: 0;
    }
    .contact_wrapper form dl div:not(:last-of-type){
        margin-bottom: 32px;
    }
    .contact_wrapper form dl div dt{
        padding-left: 8px;
        margin-bottom: 8px;
    }
    .contact_wrapper form dl div dd input,.contact_wrapper form dl div dd textarea{
        height: 44px;
        font-size: 14px;
        padding-left: 8px;
    }
    .contact_wrapper form dl div dd textarea{
        height: 160px;
    }
    .contact_wrapper form dl div dd input[type="checkbox"]{
        width: 20px;
        height: 20px;
    }
    .contact_wrapper form dl div dd input[type="checkbox"]::before{
        content: "";
        width: 10px;
        height: 10px;
    }
    #form_submit input[type="button"]{
        line-height: 44px;
        font-size: 16px;
        max-width: 400px;
    }
    .contact_wrapper form dl div dt span{
        padding: 4px;
        font-size: 14px;
    }
}


@media screen and (min-width:960px) {
    .contact_thanks{
        padding: calc(100vh / 8) 0;
    }
    .contact_wrapper form{
        max-width: 960px;
    }
}