@charset "UTF-8";

section#contact_main {
    width: 800px;
    margin: 0 auto;
}

p.contact_title {
    color: #333;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

span.mwform-radio-field {
    margin-top: 0 !important;
    margin-bottom: 20px;
}

span.mwform-radio-field label {
    padding-left: 10px;
    width: 100%;
    max-width: 100%;
}

input[type="radio"] {
    height: 15px;
    margin: 0px 10px 0px 0px;
    width: 15px;
    max-width: calc(100% - 10px);
}

span.mwform-radio-field-text,
span.mwform-checkbox-field-text {
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.hissu {
    padding-left: 5px;
    color: #f23a3c;
}

.d_contact_category,
.d_your_namesub,
.d_your_hurigana,
.d_your_mail,
.d_your_mail_confirm,
.d_your_tel,
.d_your_comment,
.d_your_agreement,
.d_your_gender,
.d_your_birthday,
.d_your_post_num,
.d_your_address {
    margin-bottom: 40px;
}

input[type="text"],
input[type="email"] {
    background: #FFFFFF;
    border-radius: 4px;
    border: 1px solid #000000;
    color: #333;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 400;
    height: 28px;
    line-height: 1.4;
    padding: 10px 10px 10px 10px;
    width: 778px;
}

textarea {
    background: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 4px;
    color: #333;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 400;
    height: 160px;
    line-height: 1.4;
    padding: 10px 10px 10px 10px;
    width: 778px;
}

span.mwform-checkbox-field-text a {
    color: #006bb8;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-right: 5px;
    transition: 0.3s ease;
    border-bottom: 2px #00000000 solid;

}

span.mwform-checkbox-field-text a:hover {
    border-bottom: 2px #006bb8 solid;
}

input[type="submit"] {
    border: none;
    background: #00000000;
    color: #006bb8;
    font-family: var(--s-font-f5ab3b3a);
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

form {
    margin-bottom: 80px;
}

#your_birthday_year,
#your_birthday_month,
#your_birthday_day {
    background: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 4px;
    color: #333;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 400;
    height: 28px;
    letter-spacing: 0em;
    line-height: 1.4;
    padding: 10px;
    text-align: left;
    width: 138px;
    margin-right: 10px;
}

#your_birthday_month,
#your_birthday_day {
    margin-left: 10px;
}

.d_your_birthday p:not(.contact_title) {
    color: #333;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 13px;


}

#your_post_num {
    background: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 4px;
    color: #333;
    font-family: var(--s-font-f5ab3b3a);
    font-size: 15px;
    font-weight: 400;
    height: 28px;
    line-height: 1.4;
    padding: 10px;
    width: 178px;
}

input[type="submit"] {
    border: none;
    background: #00000000;
    color: #006bb8;
    font-family: var(--s-font-f5ab3b3a);
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.button_upper_layer.close {
    color: #006bb8;
    font-family: var(--s-font-f5ab3b3a);
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

@media screen and (max-width:840px) {
    main#contact section#contact_main {
        padding: 0 0 80px 0;
        width: 96%;
        /* margin: 0; */
    }

    input[type="text"],
    input[type="email"],
    textarea {
        width: calc(100% - 20px);
    }
}

@media screen and (max-width:768px) {

    #your_birthday_year,
    #your_birthday_month,
    #your_birthday_day {
        width: 55px;

    }
}