/* --------------------------------------------------- */
/* common */
/* --------------------------------------------------- */
.layout_single--small {
    margin-bottom: 6.25rem;
}
.sml-d {
    display: none;
}
@media screen and (max-width: 959px) {
    .layout_single--small {
        margin-bottom: 5rem;
    }
}
@media screen and (max-width: 767px) {
    .lower_top__title-text {
        font-size: 2.5rem;
    }
    .lower_top__title-caption {
        font-size: 1.125rem;
        margin-top: 0.625rem;
    }
    .layout_single--small {
        margin-bottom: 3.5rem;
    }
    .sml-d {
        display: block;
    }
}

.wpcf7-spinner {
    display: none !important;
}

/* --------------------------------------------------- */
/* contact */
/* --------------------------------------------------- */
.contact__top {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 3.5rem 0;
}
.contact__top-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 100%; /* 1rem */
    margin-bottom: 0.875rem;
}
.contact__top-caption {
    color: var(--dark_gray);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 200%; /* 1.75rem */
}
#contact .footer__contact-link--tel {
    background-color: var(--black);
    color: #fff;
}
#contact .footer__contact-link--tel .footer__contact-address,
#contact .footer__contact-link--tel .footer__contact-caption {
    color: #fff;
}
#contact .footer__contact-link--tel .footer__contact-path {
    stroke: #fff;
}
@media screen and (max-width: 1279px) {
    .contact__top-desc {
        width: 26.25rem;
    }
}
@media screen and (max-width: 959px) {
    .contact__top {
        gap: 2rem;
        margin: 3rem 0;
    }
    .contact__top-desc {
        width: 21.75rem;
    }
    .contact__top-text {
        line-height: 175%;
        gap: 0.625rem;
    }
    .contact__top-caption {
        line-height: 175%;
    }
}
@media screen and (max-width: 767px) {
    .contact__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin: 2.5rem 0 3rem;
    }
    .contact__top-text {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }
    #contact .footer__contact-link--tel {
        width: 100%;
    }
}

/* --------------------------------------------------- */
/* form */
/* --------------------------------------------------- */
.contact__form {
    border-radius: 0.5rem;
    background: var(--white);
    padding: 2.5rem;
}
input:-webkit-autofill {
    box-shadow: 0 0 0px 999px #efefef inset;
}
.wpcf7 input:-webkit-autofill {
    box-shadow: 0 0 0px 999px #fff inset;
}
.form__container {
    margin-bottom: 1.5rem;
}
.form__container--has_radio {
    padding-top: 1rem;
    margin-bottom: 0;
}
.form__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}
.form__title {
    width: 9rem;
}
.form-title__text {
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    line-height: 100%; /* 1rem */
}
.form-title__caption {
    color: var(--dark_gray);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 150%; /* 1.3125rem */
    margin-top: 0.625rem;
}
.form__label .wpcf7-form-control-wrap {
    flex: 1;
}
.form__input {
    border-radius: 0.25rem;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 1.25rem;
    color: var(--black);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.02rem;
    width: 100%;
}
.form__input--textarea {
    line-height: 150%;
    padding: 1rem 1.25rem;
}
.address__wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.address__number {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.address__number .form__input {
    width: 20rem;
}
.form__radio {
    display: flex;
    flex-direction: column;
}
.form__radio .wpcf7-list-item {
    margin: 0;
}
.form__radio .wpcf7-list-item:not(:last-of-type) {
    margin-bottom: 1.25rem;
}
.form__label .wpcf7-not-valid-tip {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
.form__acceptance {
    margin-top: 2.625rem;
}
.form-acceptance__text {
    text-align: center;
    margin-bottom: 1.75rem;
}
.form-acceptance__text--link {
    color: var(--primary-color);
    text-decoration: underline;
    display: inline;
    transition: opacity 0.3s;
}
.form-acceptance__text--link:hover {
    opacity: 0.5;
}
.form__acceptance .wpcf7-form-control-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.form__acceptance .wpcf7-list-item {
    margin: 0;
}
.form__acceptance .wpcf7-list-item-label {
    line-height: 1;
    font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--black);
    font-weight: 500;
}
.form__btn {
    margin-top: 2.625rem;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}
.form-btn__container {
    flex: 1;
    position: relative;
    line-height: 1;
}
.form__submit {
    padding: 1.75rem 0;
    border: none;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-family: "Noto Sans JP", sans-serif;
    background-color: var(--black);
    transition: 0.3s;
    font-size: 1rem;
    color: var(--white);
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
}
.form-btn__svg {
    position: absolute;
    top: 50%;
    right: 1.625rem;
    transform: translateY(-50%);
    transition: 0.3s;
    width: 1.25rem;
    height: auto;
}
.form-btn__path {
    fill: none;
    stroke: #fff;
    transition: 0.3s;
}
.form__submit:disabled {
    opacity: 0.5;
}
.form-btn__container:hover .form__submit:not(:disabled) {
    opacity: 0.5;
}
.form-btn__container:hover .form__submit:not(:disabled) ~ .form-btn__svg {
    opacity: 0.5;
}
.form-acceptance__text--link .sml-d {
    display: none;
}

@media screen and (max-width: 959px) {
    .contact__form {
        padding: 1.75rem;
    }
    .form__container {
        margin-bottom: 1.75rem;
    }
    .form__label {
        gap: 1.75rem;
    }
    .form__container--has_radio {
        margin-bottom: 1rem;
    }
}
@media screen and (max-width: 767px) {
    .contact__form {
        padding: 1.5rem 1.25rem;
    }
    .form__container {
        margin-bottom: 1.5rem;
    }
    .form__label {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .form__title {
        width: auto;
    }
    .form-title__text {
        font-size: 0.9375rem;
    }
    .form__input {
        padding: 1.125rem;
        font-size: 0.9375rem;
    }
    .address__number {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .address__number .form__input {
        width: 100%;
        flex: 1;
    }
    .form__acceptance {
        margin-top: 2rem;
    }
    .form-acceptance__text {
        line-height: 150%;
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    .form-acceptance__text--link .sml-d {
        display: block !important;
    }
    .form__acceptance .wpcf7-list-item-label {
        font-size: 0.9375rem;
    }
    .form__btn {
        margin-top: 2rem;
    }
    .form__submit {
        padding: 1.5rem 0;
        font-size: 0.9375rem;
    }
    .form-btn__svg {
        right: 1.5rem;
    }
}

/* --------------------------------------------------- */
/* confirmation */
/* --------------------------------------------------- */
.confirmation__wrapper {
    border-top: 1px solid var(--line);
    margin-top: 5rem;
}
#confirmation .form__container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
}
#confirmation .form-title__text {
    width: 9rem;
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    line-height: 150%; /* 1.5rem */
}
#confirmation .form__text {
    color: var(--black);
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%; /* 1.5rem */
}
#confirmation .confirmation__address .form__text:first-of-type {
    margin-bottom: 0.5rem;
}

.form__submit--prev {
    background-color: var(--base-on_color);
    color: var(--black);
}
.form__submit--prev + .form-btn__svg .form-btn__path {
    stroke: var(--black);
}
.form__submit--prev ~ .form-btn__svg {
    left: 1.625rem;
    right: unset;
}
@media screen and (max-width: 959px) {
    .confirmation__wrapper {
        margin-top: 3.5rem;
    }
    #confirmation .form__container {
        padding: 1.5rem 0;
        gap: 2rem;
    }
}
@media screen and (max-width: 767px) {
    .confirmation__wrapper {
        margin-top: 3rem;
    }
    #confirmation .form__container {
        padding: 1.25rem 0;
        gap: 0.625rem;
        flex-direction: column;
        align-items: flex-start;
    }
    #confirmation .form-title__text,
    #confirmation .form__text {
        font-size: 0.9375rem;
    }
    #confirmation .form__btn {
        flex-direction: column;
    }
    .form__submit--prev ~ .form-btn__svg {
        left: 1.5rem;
    }
}

/* --------------------------------------------------- */
/* thanks */
/* --------------------------------------------------- */
.thank_you__desc {
    margin-top: 4rem;
}
.thank_you__text {
    color: var(--black);
    font-size: 1rem;
    font-weight: 400;
    line-height: 200%; /* 2rem */
}
.thank_you__text:not(:last-of-type) {
    margin-bottom: 2rem;
}
#thank_you .pagelink {
    margin: 4rem auto 0;
}
@media screen and (max-width: 959px) {
    .thank_you__desc {
        margin-top: 3rem;
    }
    .thank_you__text:not(:last-of-type) {
        margin-bottom: 1rem;
    }
    #thank_you .pagelink {
        margin: 3rem auto 0;
    }
}
@media screen and (max-width: 767px) {
    .thank_you__desc {
        margin-top: 2.5rem;
    }
    .thank_you__text {
        font-size: 0.9375rem;
    }
    #thank_you .pagelink {
        margin: 2.25rem auto 0;
    }
}
