@charset "UTF-8";

/*----------------------------------------
  c-mail
----------------------------------------*/
.c-mail {
    padding-block: 170px 145px;
    text-align: left;
}

.c-mail h1 {
    font-size: 2.7rem;
    font-weight: 600;
    margin-bottom: 75px;
}

.c-mail__form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.c-mail__form table {
    width: 100%;
    margin-bottom: 30px;
}

.c-mail__form table th {
    text-align: left;
    width: 25%;
    padding: 10px 10px 10px 0;
    vertical-align: middle;
}

.c-mail__form table th.--radio {
    text-align: left;
    width: 25%;
    padding: 20px 10px 15px 0;
    vertical-align: top;
}

.c-mail__form table th label {
    font-size: 1.6rem;
    font-weight: 500;
    margin-right: 8px;
}

.c-mail__form table th label span {
    vertical-align: middle;
    position: relative;
    top: 1.5px;
    line-height: 1;
}

.c-mail__form table td {
    padding: 10px 0 10px 10px;
    text-align: left;
}

.c-mail__form table td.--radio {
    padding: 20px 0 15px 10px;
    text-align: left;
}

.c-mail__form table td p {
    font-size: 1.3rem;
    font-weight: 500;
    text-align: left;
    margin-top: 5px;
}

.c-mail__form table td label {
    display: inline-block;
    width: 190px;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 500;
    vertical-align: top;
}

.c-mail__form table tr:last-child th {
    vertical-align: top;
    padding-top: 30px;
}

.c-mail__form table tr:last-child td {
    vertical-align: top;
    padding: 10px 0 0 10px;
}

.c-mail__form table td input:not([type=radio]),
.c-mail__form table td textarea {
    background-color: #eeeeec;
    width: 100%;
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 17px 10px;
}

.c-mail__form table td input:not([type=radio])::placeholder,
.c-mail__form table td textarea::placeholder {
    color: #a2a2a2;
    font-size: 1.6rem;
    line-height: 1;
}

.c-mail__form table td input[type=radio] {
    width: 20px;
    height: 20px;
    background-color: #eeeeec;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.c-mail__form table td input[type=radio]:checked::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.c-mail__form .policy-agree {
    font-size: 1.6rem;
}

.c-mail__form .policy-agree input[type=checkbox] {
    border: 1px solid #231815;
    border-radius: 3px;
    background-color: #fff;
    width: 13px;
    height: 13px;
    margin-right: 5px;
    position: relative;
    vertical-align: middle;
}

.c-mail__form .policy-agree input[type=checkbox]:checked::after {
    content: "";
    display: block;
    width: 4px;
    height: 10px;
    border-right: 2px solid #231815;
    border-bottom: 2px solid #231815;
    transform: rotate(50deg);
    position: absolute;
    top: 0;
    left: 4px;
}

.c-mail__form .policy-agree a {
    font-size: 1.6rem;
    color: #231815;
    text-decoration: underline;
}

.c-mail__form #form_submit {
    width: 255px;
    height: 63px;
    margin: 35px auto 0;
    position: relative;
}

.c-mail__form #form_submit_button,
.c-mail__form #contact_submit_button {
    width: 100%;
    height: 100%;
    border: 1px solid #231815;
    border-radius: 32px;
    background-color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    color: #231815;
    text-align: center;
    cursor: pointer;
}

.c-mail__form #form_submit_button:hover,
.c-mail__form #contact_submit_button:hover {
    background-color: #231815;
    color: #fff;
}

.error_blank,
.error_format,
.error_match,
.error_blank_policy {
    display: none;
    color: red;
    font-size: 1.2rem;
    margin-top: 5px;
}

@media screen and (max-width: 767px) {
    .c-mail {
        padding-block: 30vw 15vw;
    }

    .c-mail h1 {
        font-size: 5.5vw;
        margin-bottom: 5vw;
    }

    .c-mail__form {
        max-width: none;
        margin: 0;
    }

    .c-mail__form table tr {
        display: block;
    }

    .c-mail__form table tr:last-child th {
        padding: 0;
    }

    .c-mail__form table th {
        display: block;
        width: 100%;
    }

    .c-mail__form table th.--radio {
        width: 100%;
    }

    .c-mail__form table td {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .c-mail__form table tr:last-child td {
        vertical-align: top;
        padding: 10px 0;
    }

    .c-mail__form table td label {
        width: 100%;
        display: block;
    }

    .c-mail__form #form_submit {
        width: 42.5vw;
        height: 11vw;
        margin: 10vw auto 0;
    }

    .c-mail__form #form_submit_button,
    .c-mail__form #contact_submit_button {
        border-radius: 5.333vw;
        font-size: 3vw;
    }


}