@charset "utf-8";

:root {
    --font-size: 2.564vw;
    --black: #1e1e1e;
    --gray: #b3b3b3;
    --white: #ffffff;
    --blue: #001e82;
    --red: #e61446;
    --pink: #fde5e3;
    --contentsWrapper: calc(100% - 4rem);
    --barlowCondensed: 'Barlow Condensed', sans-serif;
}

html {
    line-height: 1;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: var(--font-size);
    color: var(--black);
}

.wrapper {
    width: var(--contentsWrapper);
    margin: 5rem auto;
    line-height: 1.5;
    font-size: 1.6rem;
}

.redText {
    color: var(--red);
}

.formDl {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 0.1rem solid var(--gray);
}

.formDl:last-of-type {
    margin-bottom: initial;
    border-bottom: initial;
}

.formDl dt,
.selectWrapTitle {
    margin-bottom: 2rem;
    line-height: 1.25;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--blue);
}

.formDl dt.requiredIcon,
.selectWrapTitle {
    display: flex;
    align-items: center;
}

.formDl dt.requiredIcon:after,
.selectWrapTitle:after {
    content: '必須';
    margin-left: 1rem;
    padding: 0 0.5em;
    border-radius: 0.3rem;
    background-color: var(--red);
    font-weight: normal;
    color: var(--white);
}

.formDl dd .errorComment {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--red);
}

.formDl dd label {
    width: fit-content;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.formDl dd input[type='checkbox'],
.formDl dd input[type='radio'] {
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    position: relative;
    border: 0.1rem solid var(--gray);
}

.formDl dd input[type='radio'] {
    border-radius: 50%;
}

.formDl dd .error input[type='checkbox'],
.formDl dd .error input[type='radio'] {
    border: 0.1rem solid var(--red);
}

.formDl dd input[type='checkbox']:before,
.formDl dd input[type='radio']:before {
    content: '';
    margin: auto;
    display: block;
    position: absolute;
    inset: 0;
    transition: opacity 0.5s;
    opacity: 0;
}

.formDl dd input[type='checkbox']:before,
.formDl dd input[type='radio']:before {
    width: 0.5em;
    height: 0.5em;
    background: var(--blue);
}

.formDl dd input[type='radio']:before {
    border-radius: 50%;
}

.formDl dd input[type='checkbox']:checked:before,
.formDl dd input[type='radio']:checked:before {
    opacity: 1;
}

.formDl dd #treatment label {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
    border: 0.1rem solid var(--gray);
    line-height: 1.25;
}

.formDl dd #treatment label:last-of-type {
    margin-bottom: initial;
}

.formDl dd.isError #treatment label {
    border: 0.1rem solid var(--red);
}

.formDl dd #treatment label .text {
    width: calc(100% - 2.4rem);
    font-size: 1.4rem;
}

.formDl dd #treatment label .detailText {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.4rem;
}

.formDl dd #seeingDoctor,
.formDl dd #clinic,
.formDl dd #diagnosticItems,
.formDl dd #consultationDetails {
    padding: 2rem 1rem;
    flex-wrap: wrap;
    border: 0.1rem solid var(--gray);
    line-height: 1.25;
}

.formDl dd #seeingDoctor:has(.error),
.formDl dd #clinic:has(.error),
.formDl dd #diagnosticItems:has(.error),
.formDl dd #consultationDetails:has(.error) {
    border: 0.1rem solid var(--red);
}

.formDl dd #seeingDoctor label,
.formDl dd #clinic label,
.formDl dd #diagnosticItems label,
.formDl dd #consultationDetails label {
    margin-bottom: 1rem;
}

.formDl dd #seeingDoctor label:last-of-type,
.formDl dd #clinic label:last-of-type,
.formDl dd #diagnosticItems label:last-of-type,
.formDl dd #consultationDetails label:last-of-type {
    margin-bottom: initial;
}

.formDl dd input:not([type='checkbox']):not([type='radio']),
.formDl dd select,
.formDl dd textarea {
    width: 100%;
    padding: 1em;
    border: 0.1rem solid var(--gray);
    background-color: var(--white);
    line-height: 1.5;
    cursor: pointer;
}

.formDl dd input:not([type='checkbox']):not([type='radio'])::placeholder,
.formDl dd textarea::placeholder {
    color: var(--gray);
}

.formDl dd input:not([type='checkbox']):not([type='radio']):focus,
.formDl dd select:focus,
.formDl dd textarea:focus {
    border: 0.1rem solid var(--blue);
}

.formDl dd input:not([type='checkbox']):not([type='radio']).error,
.formDl dd select.error,
.formDl dd textarea.error {
    border: 0.1rem solid var(--red);
}

.formDl dd input#desiredDate {
    min-height: 5.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.formDl dd input#desiredDate::-webkit-datetime-edit-fields-wrapper {
    color: transparent;
}

.formDl dd input#desiredDate.valid::-webkit-datetime-edit-fields-wrapper {
    color: initial;
}

.formDl dd input#desiredDate::-webkit-calendar-picker-indicator {
    width: 100%;
    height: 100%;
    margin: auto;
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    cursor: inherit;
}

.formDl dd input#desiredDate:before,
.formDl dd input#desiredDate:after {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.formDl dd input#desiredDate:before {
    content: '年/月/日';
    left: 1em;
    color: var(--gray);
}

.formDl dd input#desiredDate:focus:before,
.formDl dd input#desiredDate.valid:before {
    content: none;
}

.formDl dd input#desiredDate:after {
    content: '';
    width: 1em;
    height: 1em;
    right: 1em;
    background: url(../img/icon_calendar.svg) no-repeat center / auto 100%;
}

.formDl dd input#age {
    width: 5em;
    margin-right: 0.5em;
    text-align: right;
}

.formDl dd select {
    background: var(--white) url(../img/icon_select.svg) no-repeat center right 1em / 1em auto;
}

.formDl dd textarea {
    min-height: 15em;
}

.formDl dd .noticeText {
    margin-top: 1rem;
    padding-left: 1em;
    font-size: 1.2rem;
    text-indent: -1em;
}

.formBtn {
    width: 100%;
    max-width: 23rem;
    height: 5rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100vh;
    position: relative;
    background-color: var(--red);
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--white);
}

.formBtn:after {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 100vh;
    position: absolute;
    right: -0.3rem;
    bottom: -0.3rem;
    z-index: -1;
    background-color: var(--pink);
}

/* --------------------
	transmitStatus
-------------------- */
#transmitStatus {
    width: 100%;
    height: 100%;
    margin: auto;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
}

#transmitStatus.sending,
#transmitStatus.error {
    display: flex;
    justify-content: center;
    align-items: center;
}

#transmitStatus .transmitStatusBox {
    width: 80%;
    max-width: 48rem;
    padding: 5rem 2rem;
    display: none;
    border-radius: 3rem;
    background-color: var(--white);
}

#transmitStatus.sending .transmitStatusBox.send,
#transmitStatus.error .transmitStatusBox.error {
    display: block;
}

#transmitStatus .transmitStatusBox .title {
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--blue);
    text-align: center;
}

#transmitStatus .transmitStatusBox .icon {
    width: 10rem;
    margin: 0 auto;
}

#transmitStatus .transmitStatusBox.send .icon {
    animation: sending 5s linear infinite;
}

@keyframes sending {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

#transmitStatus .transmitStatusBox.error .icon {
    animation: error 1.5s ease alternate infinite;
}

@keyframes error {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#transmitStatus .transmitStatusBox .text {
    margin-top: 3rem;
    line-height: 1.5;
    text-align: center;
}

/* --------------------
	index
-------------------- */
#index .formHeading {
    margin-bottom: 3rem;
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--blue);
    text-align: center;
}

#index .formHeading .enText {
    display: block;
    font-family: var(--barlowCondensed);
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
}

#index .selectWrap {
    margin-bottom: 3rem;
}

#index .selectWrap .selectForm {
    width: 65%;
    margin: 0 auto;
}

#index .selectWrap .selectForm .selectFormBtn {
    margin-bottom: 2rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    border: 0.1rem solid var(--red);
    background-color: var(--pink);
    font-size: 2rem;
    font-weight: bold;
}

#index .selectWrap .selectForm .selectFormBtn:last-of-type {
    margin-bottom: initial;
}

#index .selectWrap .selectForm .selectFormBtn:before {
    content: '';
    width: 2rem;
    height: 2rem;
    margin-right: 0.5em;
    border: 0.1rem solid var(--gray);
    border-radius: 50%;
    background-color: var(--white);
}

#index .telContents .text {
    margin-bottom: 2rem;
    line-height: 1.25;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
}

#index .telContents .text .redText {
    font-size: 1.6rem;
}

#index .telContents .formBtn {
    font-family: var(--barlowCondensed);
    font-size: 3.2rem;
    font-weight: normal;
    letter-spacing: 0.1rem;
}

#index .telContents .formBtn:before {
    content: '';
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 1rem;
    background: url(../img/icon_tel.svg) no-repeat center / auto 100%;
}

/* --------------------
	stepTwo
-------------------- */
#stepTwo #transitionStepOne {
    margin-bottom: 5rem;
    border-bottom: 0.1rem solid var(--blue);
    font-weight: bold;
    color: var(--blue);
}

#stepTwo #transitionStepOne:before {
    content: '\0ab';
    margin-right: 0.5em;
    text-decoration: none;
}

/* --------------------
	consultation
-------------------- */
#consultation .consultationText {
    margin-bottom: 1rem;
}

#consultation .consultationText:last-of-type {
    margin-bottom: 3rem;
}

/* --------------------
	thanks
-------------------- */
#thanks .thanksHeading {
    margin-bottom: 3rem;
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--blue);
    text-align: center;
}

#thanks .thanksText {
    margin-bottom: 1rem;
}

#thanks .thanksText:last-of-type {
    margin-bottom: 3rem;
}

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	PC
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
@media screen and (min-width: 781px) {
    :root {
        --font-size: 10px;
    }

    .wrapper {
        width: 58.5rem;
        font-size: 1.8rem;
    }

    .formDl dt,
    .selectWrapTitle {
        font-size: 1.8rem;
    }

    .formDl dd .errorComment,
    .formDl dd .noticeText {
        font-size: 1.4rem;
    }

    .formDl dd #treatment label .text {
        width: calc(100% - 2.7rem);
        font-size: 2rem;
    }

    .formBtn {
        max-width: 40rem;
        height: 7.5rem;
    }

    /* --------------------
        index
    -------------------- */
    #index .formHeading {
        font-size: 4.2rem;
    }

    #index .formHeading .enText {
        font-size: 2.8rem;
    }

    #index .selectWrap .selectForm {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #index .selectWrap .selectForm {
        width: 100%;
    }

    #index .selectWrap .selectForm .selectFormBtn {
        width: 28rem;
        margin-bottom: initial;
        font-size: 2.8rem;
    }

    #index .telContents .text {
        font-size: 1.8rem;
    }

    #index .telContents .text .redText {
        font-size: 2rem;
    }

    #index .telContents .formBtn {
        font-size: 4.8rem;
    }
}
