@charset "UTF-8";

.c-mailform .c-mailform__grid.namebox input[type=text] {
    width: 37%;
    height: 41px;
    margin-right: 20px;
    padding: 10px;
}

.c-mailform .c-mailform__grid.yearbox input[type=text] {
    width: 71%;
    padding: 10px;

}

.c-mailform .c-mailform__grid.yearbox {
    height: 41px;
    display: flex;
    margin-bottom: 42px;

}

.c-mailform input[type=text],
.c-mailform input[type=tel],
.c-mailform input[type=mail],
.c-mailform select {
    padding: 10px;
}

.c-mailform textarea {
    padding: 10px;
}

.year_wrap.seireki {
    margin-right: 20px;
}

/* 送信ボタン */
.policy {
    margin: 20px auto;
    text-align: center;
}

.btn_mail {
    width: 100%;
    padding: 1.5rem 0;
    background-color: var(--l-main-color);
    color: #fff;
}

.btn_mail:hover {
    border: 1px solid var(--l-main-color);
    background: #fff;
    color: var(--l-main-color);
}

button[type="submit"][disabled] {
    background-color: #fff;
    color: #ccc;
    border-color: #ccc;
    cursor: default;
    border: 1px solid;
}

button[type="submit"][disabled]:hover {
    opacity: 1;
    border-color: #ccc;
}

.confirm-text {
    text-align: center;
    margin-bottom: 40px;
}


.c-mailform__submit.wh input {
    width: 100%;
    padding: 1.5rem 0;
    background-color: #fff;
    color: var(--l-main-color);
}

.c-mailform__submit.wh input:hover {
    width: 100%;
    padding: 1.5rem 0;
    background-color: var(--l-main-color);
    color: #fff;
}

.c-mailform__submit.wh input:hover::after {
    background: #fff;
}

.c-mailform__submit.wh::after {
    position: absolute;
    content: "";
    transform: translateY(-50%);
    top: 50%;
    top: 50%;
    transform: translate(0, -50%);
    left: 0px;
    height: 1px;
    width: 32px;
    background: var(--l-main-color);
    transition: all 0.3s ease-out;
}

.conf_btn_box {
    display: flex;
    width: 58%;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
}

.namebox_conf,
.birthbox_conf {
    display: flex;
}

.c-mailform table.formTable.confpage th {
    font-weight: normal;
    text-align: left;
    font-size: 1.125rem;
    width: 30%;
}

.c-mailform table.formTable.confpage {
    width: 73%;
    margin: 2.5rem auto;
    border-collapse: collapse;
}

.p-lower_contact {
    padding: 5.9375rem 0 0 0;
    margin-top: 6.5rem;
}

.error {
    font-size: small;
    color: #ff0000;
    margin-top: 4px;
}

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

    .c-mailform .c-mailform__grid.namebox input[type=text] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .c-mailform .c-mailform__grid.yearbox input[type=text] {
        width: 71%;

    }

    .c-mailform .c-mailform__grid.yearbox {
        height: auto;
        display: block;
        margin-bottom: 0;

    }

    .c-mailform table.formTable th {
        font-size: 1rem;
        padding: 0;
    }

    .year_wrap.seireki {
        margin-right: 20px;
    }

    /* 送信ボタン */
    .policy {
        margin: 20px auto;
        text-align: center;
    }

    .btn_mail {
        width: 100%;
        padding: 1.5rem 0;
        background-color: var(--l-main-color);
        color: #fff;
    }

    .btn_mail:hover {
        border: 1px solid var(--l-main-color);
        background: #fff;
        color: var(--l-main-color);
    }

    button[type="submit"][disabled] {
        background-color: #fff;
        color: #ccc;
        border-color: #ccc;
        cursor: default;
        border: 1px solid;
    }

    button[type="submit"][disabled]:hover {
        opacity: 1;
        border-color: #ccc;
    }

    .confirm-text {
        text-align: center;
        margin-bottom: 40px;
    }


    .c-mailform__submit.wh input {
        width: 100%;
        padding: 1.5rem 0;
        background-color: #fff;
        color: var(--l-main-color);
    }

    .c-mailform__submit.wh input:hover {
        width: 100%;
        padding: 1.5rem 0;
        background-color: var(--l-main-color);
        color: #fff;
    }

    .conf_btn_box {
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    .namebox_conf,
    .birthbox_conf {
        display: flex !important;
    }

    .c-mailform table.formTable.confpage th {
        font-weight: normal;
        text-align: left;
        font-size: 1rem;
        width: 100%;
        display: block;
    }

    .c-mailform table.formTable.confpage {
        width: 73%;
        margin: 2.5rem auto;
        border-collapse: collapse;
    }

    .c-mailform__submit {
        margin: 2rem auto 0 auto;
    }

}