.contact {
    padding: 10rem 1.5rem 5rem;
}

.contact #formWrap {
    width: 700px;
    margin: 0 auto;
}

.contact .formTable {
    width: 100%;
    margin: 5rem auto 0;
    border-collapse: collapse;
}

.contact .formTable th {
    padding: 0px;
    width: 30%;
    font-weight: normal;
    text-align: left;
    padding-bottom: 1rem;
}

.contact .formTable th .required {
    background: #E53C3C;
    color: #fff;
    font-size: 1rem;
    padding: 2px 7px;
    margin-left: 1rem;
}

.contact .formTable td {
    padding-bottom: 3rem;
}

.contact .formTable td .text {
    color: #666666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact .formTable .radio-list {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.contact .formTable .form-age input {
    display: inline-block;
    width: 29%;
    margin-right: 1rem;
}

.contact .formTable .form-address .title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.contact .formTable .form-address .post-code input {
    width: 51%;
}

.contact .formTable .form-address .address {
    margin-top: 2rem;
}

.contact .formTable th,
.contact .formTable td {
    width: auto;
    display: block;
}

.contact .formTable th {
    border-bottom: 0;
}

.contact form input[type=text],
.contact form input[type=email],
.contact form textarea {
    width: 100%;
    padding: 5px 7px;
    font-size: 1.6rem;
    display: block;
    border: solid 1px #231815;
}

@media screen and (max-width: 767px) {
    .contact #formWrap {
        width: 95%;
        margin: 0 auto;
    }
}

.confirm {
    padding: 5rem 1.5rem 5rem;
}

.confirm #formWrap {
    width: 700px;
    margin: 0 auto;
    line-height: 120%;
    font-size: 90%;
}

.confirm .formTable {
    width: 100%;
    margin: 3rem auto;
    border-collapse: collapse;
}

.confirm .formTable td,
.confirm .formTable th {
    border: 1px solid #ccc;
    padding: 10px;
}

.confirm .formTable th {
    width: 30%;
    font-weight: normal;
    background: #efefef;
    text-align: left;
}

.confirm .error_messe {
    margin: 5px 0;
    color: red;
}

@media screen and (max-width: 767px) {
    .confirm #formWrap {
        width: 95%;
        margin: 0 auto;
    }

    .confirm .formTable th,
    .confirm .formTable td {
        width: auto;
        display: block;
    }

    .confirm .formTable th {
        margin-top: 1rem;
        border-bottom: 0;
    }
}

.contact-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
}

.contact-text {
    font-size: 1.4rem;
    margin-top: 3rem;
    line-height: 1.75;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .contact-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .contact-text--thanks {
        text-align: left;
    }
}

.contact__button {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact__button {
        flex-direction: row;
    }
}

form input[type=submit],
form input[type=reset],
form input[type=button] {
    display: block;
    width: 100%;
    height: 5rem;
    border: solid 2px #231815;
    border-radius: 1.1rem;
    box-shadow: 1.5px 2px 0px #231815;
}

input::-moz-placeholder {
    color: #B3B3B3;
    letter-spacing: 0.1em;
}

input::placeholder {
    color: #B3B3B3;
    letter-spacing: 0.1em;
}