.sub-page.sub-page--thanks {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.sub-page__title.sub-page__title--thanks {
    position: relative;
    padding-top: 5.0375rem;
}

.sub-page__title.sub-page__title--thanks::after {
    content: "";
    position: absolute;
    display: block;
    width: 3.125rem;
    height: 3.125rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(/assets/images/contact/check.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
}

.contact-page {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.75;
    padding: 3rem 0;
    width: 100%;
}

.contact-page__message {
    margin-top: 1rem;
}

.contact-page__schedule {
    margin-top: 1rem;
}

.contact-page__form {
    margin-top: 1.25rem;
}

.contact-page__confirm-message {
    margin-top: 1.875rem;
}

.contact-page__confirm-date {
    font-size: 1.25rem;
    font-weight: 700;
    margin-inline: auto;
    margin-top: 1rem;
    padding: 1rem 0;
    background-color: #f5f6f9;
    max-width: 25rem;
}

.contact-page__confirm-box {
    margin-top: 1.875rem;
    margin-inline: auto;
    background-color: #f5f6f9;
    padding: 1.875rem 1rem;
    font-weight: 700;
}

.contact-page__confirm-list {
    background-color: #fff;
    padding: 1rem;
}

.contact-page__confirm-item {
    display: grid;
    grid-template-columns: 1.21fr 1.67fr;
    text-align: left;
    gap: 1.875rem;
    margin-inline: auto;
    max-width: 21.25rem;
}

.contact-page__confirm-item + .contact-page__confirm-item {
    margin-top: 1rem;
}

.contact-page__thanks-message {
    line-height: 1.75;
    margin-top: 1.875rem;
    text-align: center;
    font-size: 0.875rem;
}

.contact-page__btn {
    margin-top: 2.5rem;
    margin-inline: auto;
}

.contact-page .button a::after {
    display: none;
}

.contact__page-confirm__btns {
    margin-top: 1.875rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 0.875rem;
    max-width: 25rem;
}

/* ボタン */
.button.button--white a {
    background: #fff;
    border: 1px solid #001668;
    color: #001668;
    transition: 0.3s;
}

/* テーブル */
.schedule {
    color: #333333;
}

.schedule__navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    border: 2px solid #e9e9ed;
    border-width: 2px 2px 0 2px;
}

.schedule__button {
    background: -webkit-gradient(
        linear,
        left top,
        right top,
        from(#b5d1fb),
        color-stop(35%, #d7e1fc),
        color-stop(50%, #e6eafd),
        color-stop(65%, #d7e1fc),
        to(#b5d1fb)
    );
    background: linear-gradient(to right, #b5d1fb 0%, #d7e1fc 35%, #e6eafd 50%, #d7e1fc 65%, #b5d1fb 100%);
    background-position: 0 50%;
    background-size: 200% auto;
    position: relative;
}

.schedule__button::after {
    content: "";
    position: absolute;
    display: block;
    background-color: #333333;
    width: 0.8rem;
    height: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.schedule__button.schedule__button--prev {
    padding: 0.5rem 0.5rem 0.5rem 2.3125rem;
}

.schedule__button.schedule__button--prev::after {
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    left: 0.625rem;
}

.schedule__current-month {
    font-size: 1.125rem;
}

.schedule__button.schedule__button--next {
    padding: 0.5rem 2.3125rem 0.5rem 0.5rem;
}

.schedule__button.schedule__button--next::after {
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    right: 0.625rem;
}

.schedule__container {
    height: 20.7rem;
    overflow-y: scroll;
}

.schedule__table {
    width: 100%;
    table-layout: fixed;
    border: 1px solid #e9e9ed;
    border-spacing: 0;
}

.schedule__thead {
    background-color: #f5f6f9;
}

.schedule__cell {
    border: 1px solid #e9e9ed;
}

.schedule__cell--time {
    width: 20%;
}

/* フォーム */
.form {
    background-color: #f5f6f9;
    padding: 1rem;
}

.form__group {
    display: grid;
    gap: 0.3rem;
    text-align: left;
}

.form__box {
    display: grid;
    gap: 1rem;
}

.form__input {
    background-color: #fff;
    padding-left: 1rem;
}

.form__input::placeholder {
    color: #8282a8;
}

.form__date {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form__date-box {
    display: grid;
}

.form__date-box input {
    text-align: center;
    padding: 0;
}

.form__date-box.form__date-box--year {
    grid-template-columns: 2.5rem 3.5rem 2.5rem;
}

.form__date-box.form__date-box--date {
    grid-template-columns: 2.5rem 3.5rem 2.5rem 3.5rem;
}

.form__checkbox {
    margin-top: 1rem;
}

.form__checkbox-link {
    border-bottom: 1px solid #001668;
}

.form__checkbox-label {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

.form__checkbox-label input[type="checkbox"] {
    opacity: 0;
    appearance: none;
    position: absolute;
}

.form__checkbox-text::before {
    position: absolute;
    top: 0.1rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    border: 1px solid #001668;
    background: #fff;
    content: "";
    transition: all 0.3s;
}

.form__checkbox-text::after {
    position: absolute;
    top: 0.1rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    color: #ca353b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    content: "✔";
    opacity: 0;
    transition: all 0.3s;
}

.form__checkbox-label input:checked + span::after {
    opacity: 1;
}

.form__button {
    margin-inline: auto;
    margin-top: 1.25rem;
}

/* フッター調整 */
.footer.contact {
    width: 100%;
}

.footer.contact .sns-list__item {
    width: calc((100% - 3.4375rem)/6);
    max-width: 3.125rem;
}


@media screen and (min-width: 768px) {
    .contact-page {
        font-size: 1rem;
        padding: 5rem;
    }

    .contact-page__message {
        margin-top: 1.4375rem;
    }

    .contact-page__schedule {
        margin-top: 2.59375rem;
    }

    .contact-page__form {
        margin-top: 3.75rem;
    }

    .contact-page__confirm-message {
        margin-top: 2.74375rem;
    }

    .contact-page__confirm-date {
        margin-inline: auto;
        margin-top: 2rem;
        font-size: 1.5rem;
        padding: 1.1rem 0;
        width: 25rem;
    }

    .contact-page__confirm-box {
        margin-top: 2.5rem;
        padding: 2.1875rem 6.25rem;
        max-width: 100%;
    }

    .contact-page__confirm-list {
        background-color: #fff;
        padding: 2.4375rem;
    }

    .contact-page__confirm-item + .contact-page__confirm-item {
        margin-top: 1.875rem;
    }

    .contact__page-confirm__btns {
        margin-top: 3.81875rem;
        max-width: 41.8rem;
        grid-template-columns: 1fr 1fr;
        gap: 3.75rem;
    }

    .contact-page__thanks-message {
        font-size: 1rem;
        line-height: 1.75;
        margin-top: 1.875rem;
        text-align: center;
    }

    .contact-page__btn {
        margin-top: 4.3125rem;
    }

    /* テーブル */
    .schedule__navigation {
        gap: 5.25rem;
    }

    .schedule__button {
        font-size: 1.125rem;
    }

    .schedule__button::after {
        width: 1rem;
        height: 1.2rem;
    }

    .schedule__button.schedule__button--prev {
        padding: 0.5rem 1.5rem 0.5rem 3rem;
    }

    .schedule__button.schedule__button--prev::after {
        left: 1rem;
    }

    .schedule__current-month {
        font-size: 1.25rem;
    }

    .schedule__button.schedule__button--next {
        padding: 0.5rem 3rem 0.5rem 1.5rem;
    }

    .schedule__button.schedule__button--next::after {
        right: 1rem;
    }

    .schedule__container {
        height: 33rem;
        overflow-y: scroll;
    }

    .schedule__table {
        font-size: 1.25rem;
    }

    .schedule__cell--time {
        width: auto;
        font-size: 1.5rem;
    }


    /* フォーム */
    .form__group {
        grid-template-columns: 1fr 5fr;
    }

    .form__box {
        padding: 1.5rem 5rem;
        font-size: 1.125rem;
    }

    .form__label {
        font-weight: 700;
    }

    .form__date {
        display: flex;
    }

    .form__date-box {
        gap: 1rem;
    }

    .form__date-box.form__date-box--year {
        grid-template-columns: 3rem 6.25rem 3rem;
    }

    .form__date-box.form__date-box--date {
        grid-template-columns: 6.25rem 3rem 6.25rem 3rem;
    }

    .form__checkbox {
        margin-top: 4rem;
    }

    .form__checkbox-label {
        font-size: 0.875rem;
        padding-left: 3.5rem;
    }

    .form__checkbox-text::before {
        width: 1.875rem;
        height: 1.875rem;
        top: -0.1rem;
    }
    
    .form__checkbox-text::after {
        width: 1.875rem;
        height: 1.875rem;
        font-size: 1.5rem;
        top: -0.1rem;
    }

    .form__button {
        margin-top: 4.125rem;
    }
}
