@charset "UTF-8";

.contact {
    margin-top: 100px;
    margin-bottom: 100px;
}

/* .contact.bgBlack {
    background-color: #000;
    color: #fff;
} */

.contact__inner {
    margin: auto;
    padding: 0 20px;
    max-width: 680px;
    width: 100%;

    @media screen and (max-width: 750px) {
        padding: 0 25px;
        max-width: 1200px;
    }
}

.contact__form {
    position: relative;
}

.contact__title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

.form__wrap {
    display: flex;
    align-items: flex-start;

    @media screen and (max-width: 750px) {
        display: block;
    }
}

.form__wrap.form__wrap--center {
    align-items: center;
}

.form__wrap.form__wrap--textarea {
    align-items: flex-start;

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

.form__wrap+.form__wrap {
    margin-top: 30px;
}

.form__label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    width: 220px;

    @media screen and (max-width: 750px) {
        width: 100%;
    }
}

.form__wrap.form__wrap--textarea .form__label {
    @media screen and (max-width: 750px) {
        margin-top: 10px;
    }
}


.form__label span {
    padding: 5px;
    display: inline-block;
    font-size: 12px;
    color: #D00000;
}

.form__radio-span {
    padding: 5px;
    display: inline-block;
    font-size: 12px;
    color: #D00000;
    font-weight: 700;

    @media screen and (max-width: 350px) {
        padding: 2px;
    }
}

.form__label span.form__label-info {
    color: #000;
}

.form__label p {
    font-size: 12px;
}

.form__input,
.form__select,
.form__radio,
.form__checkbox,
.form__textarea {
    margin-top: 0;
    width: calc(100% - 220px);
    display: grid;
    gap: 10px;
    font-size: 12px;
    line-height: 1.6;

    @media screen and (max-width: 750px) {
        margin-top: 10px;
        width: 100%;
    }
}

.form__radio,
.form__radio-top {
    line-height: 1.5;
}

.form__radio-top > label:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.form__radio-top > label:nth-child(2) {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}


.form__radio-general {
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
}

.form__radio-general-text {
    line-height: 1.5;
}

.form__radio-general label {
    display: inline-flex;
    margin-right: 10px;
}

.mt-10 {
    margin-top: -10px;
}

.form__radio--grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;

    @media screen and (max-width: 750px) {
        width: 100%;
    }
}

.form__radio--grid>label {
    text-indent: -1em;
    padding-left: 1em;
}

.form__radio--flex {
    display: flex;

    @media screen and (max-width: 750px) {
        flex-direction: column;
    }
}

.form__radio--center {
    display: flex;
    align-items: center;
}

.form__input,
.form__textarea {
    flex-grow: 1;

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

.form__radio-textarea {
    width: 100%;
}

.form__submit {
    margin-top: 60px;
    text-align: center;
}

.form-textarea textarea {
    padding: 8px 15px;
    width: 100%;
    height: 150px;
    font-size: 15px;
    border-radius: 0;
    border: 1px solid #ccc;
    appearance: none;
    background-color: transparent;
    background-image: none;
}

.form-textarea textarea:focus {
    border: 1px solid #ccc;
    box-shadow: none;
    outline: none;
}

.form__label-span {
    font-size: 12px;
    color: #000;
    display: inline-block;
}


/* ラジオボタン */
.form__radio-box {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.form__radio-box--vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* 受診希望日選択 */
.form__radio-select {
    width: calc(100% - 220px);

    @media screen and (max-width: 750px) {
        width: 100%;
    }
}

.form__radio-select-container {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    @media screen and (max-width: 750px) {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 10px;
    }
}

.form-input input {
    padding: 8px 15px;
    width: 100%;
    font-size: 15px;
    line-height: 1;
    border-radius: 0;
    border: 1px solid #ccc;
    appearance: none;
    background-color: transparent;
    background-image: none;
}


input[type="date"] {
    font-size: 12px;
    padding: 16px 8px;
}

.form-input input:focus {
    border: 1px solid #ccc;
    box-shadow: none;
    outline: none;
}

.form__radio-select-text {
    margin-top: 8px;
    line-height: 1.2;
    color: #D00000;
}

.form__radio-select-text2 {
    margin-top: 4px;
    line-height: 1.2;
    color: #D00000;
}

/* 遷移ボタン */
.button__link1,
.button__link1:link,
.button__link1:hover,
.button__link1:focus,
.button__link2,
.button__link2:link,
.button__link2:hover,
.button__link2:focus {
    text-decoration: none;
}

.button__box {
    display: flex;
    flex-direction: column;
    gap: 150px;
    position: absolute;
    content: '';
    top: 70px;
    right: -30px;
    box-sizing: border-box;

    @media screen and (max-width: 750px) {
        right: 0px;
    }

    @media screen and (max-width: 500px) {
        right: 20px;
        position: static;
        flex-direction: row;
        justify-content: space-between;
        max-width: 300px;
        gap: 40px;
        width: 100%;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    @media screen and (max-width: 420px) {
        right: 20px;
    }
}

.button__box2 {
    top: 50px;
    right: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 56px;
    position: absolute;
    content: '';
    box-sizing: border-box;

    @media screen and (max-width: 750px) {
        top: 70px;
    }

    @media screen and (max-width: 500px) {
        position: static;
        margin: 40px auto 0 auto;
        max-width: 300px;
        width: 100%;
        justify-content: center;
        flex-direction: row;
    }

    @media screen and (max-width: 420px) {
        right: 20px;
    }
}

.button__link1,
.button__link2 {
    padding: 0 10px;
    width: 130px;
    height: 56px;
    display: inline-flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    border: 3px solid #5E7BB9;
    font-size: 12px;
    line-height: 1.3;
    transition: color 0.3s, background-color 0.3s;
}

.button__link1:hover,
.button__link2:hover {
    color: #fff;
    background-color: #5E7BB9;
}


/* 保険証番号 */
.form__input-container {
    display: flex;
    align-items: flex-start;
    align-items: center;
    gap: 10px;
}

.form__input-container>.form__radio-box {
    margin-top: 0;
}

.form-input-gap {
    display: grid;
    gap: 10px;
}

.form__radio-title {
    width: 110px;
}

.form__radio-box {
    width: calc(100% - 110px);
}

/* お客様情報入力のセレクトボックス */
.form__container {
    margin-top: 40px;
}

.form__container2 {
    width: fit-content;
    margin: 40px auto 0 auto;
}

.form__container2-title {
    text-align: center;
    font-size: 20px;
    
    @media screen and (max-width: 350px) {
        font-size: 18px;
    }
}

.form__container2-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;

    @media screen and (max-width: 750px) {
        font-size: 11px;
        margin-top: 16px;
    }

    @media screen and (max-width: 350px) {
        font-size: 10px;
        gap: 4px;
    }
}

.form__container2-box-input {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;

    @media screen and (max-width: 750px) {
        flex-direction: column;
        align-items: normal;
        font-size: 12px;
    }
}

.form__container2-box-input > label > input[type="radio"] {
    vertical-align: baseline;

    @media screen and (max-width: 750px) {
        vertical-align: middle;
    }
}

.form__container--center {
    display: flex;
    justify-content: center;
}

.form__container-title {
    font-size: 15px;
    line-height: 1.2em;
}

.contact__info {
    @media screen and (max-width: 750px) {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
}

.form__checkbox {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form__checkbox label {
    display: flex;
    gap: 10px;
}


/* キャンセルページ */
.contact__info {
    margin-top: 8px;
}


.contact__info-text {
    line-height: 1.4;
}

.contact__info-text-note {
    margin-top: 24px;
    color: red;
    line-height: 1.4;
}

.contact__info-text-note span {
    display: block;
}

.form__text {
    margin-top: 30px;
    margin-bottom: 30px;
}

.customer-information {
    display: none;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: auto;
    background: #EFEFEF;
    z-index: 2;
    padding-bottom: 100px;

    @media screen and (max-width: 750px) {
        background-color: #fff;
    }
}

.mt30 {
    margin-top: 30px;
}

.mt40 {
    margin-top: 40px;
}

.sp-mt40 {
    @media screen and (max-width: 750px) {
        margin-top: 40px;
    }
}

.ssp-mt40 {
    @media screen and (max-width: 500px) {
        margin-top: 40px;
    }
}

.mt10 {
    margin-top: 10px;
}

.mt20 {
    margin-top: 20px;
}

.selection__next2 {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-direction: row;

    @media screen and (max-width: 500px) {
        flex-direction: column;
        align-items: center;
    }
}

.return__button--margin {
    margin-left: 20px;

    @media screen and (max-width: 500px) {
        margin-left: 0;
        margin-top: 20px;
    }
}

input:invalid {
    background-color: lightpink;
}

.hdRTop ul {
    font-size: 0;
}

.bgBlack>main>.contact {
    color: #fff;
}

.fontLarge>body>.contact {
    font-size: 82.5%;
}

.thanks__text-box {
    max-width: 600px;
    width: 100%;
    margin: 40px auto 0 auto;
}

.thanks__text {
    font-size: 16px;
    line-height: 1.5;
}

.ssp-only {
    display: none;

    @media screen and (max-width: 370px) {
        display: block;
    }
}

.contactReserve__box {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 30px auto;
}

.contactReserve__box-text {
    text-indent: -1em;
    padding-left: 1em;
    line-height: 1.7;
    font-size: 16px;
    text-transform: uppercase;

    @media screen and (max-width: 750px) {
        font-size: 14px;
    }
}

.md-show {
    display: none;

    @media screen and (max-width: 750px) {
        display: block;
    }
}

.md-none {
    @media screen and (max-width: 750px) {
        display: none;
    }
}