:root {
    --observe-color: #1DB2D6;
    --contact-color: #10BA56;
    --request-documents-color: #E94E4E;
    --request-menu-color: #E57F1A;
}

* {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
}

a {
    text-decoration: none;
}

textarea {
    resize: none;
}

.observe {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 10px;
    position: relative;
    padding: 1rem;
}

.form__top {
    display: flex;
    flex-direction: column;
    color: #333333;
    font-size: 24px;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
}

.flow {
    display: flex;
    flex-wrap: nowrap;
    font-size: 17px;
    line-height: 54px;
}

.flow span {
    display: inline-block;
    width: 54px;
    height: 54px;
    line-height: 54px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-align: center;
    font-weight: normal;
    position: relative;
}

.flow span:not(:last-child) {
    margin-right: 104px;
}

@media screen and (max-width:769px) {
    .flow span:not(:last-child) {
        margin-right: 64px;
    }
}

.center {
    text-align: center;
}

.flow .current__flow {
    color: #ffffff;
    background-color: var(--primary-color);
}

.flow span:not(:last-child)::after {
    position: absolute;
    content: "";
    width: 100%;
    max-width: 104px;
    height: 1px;
    background-color: var(--primary-color);
    top: 50%;
    right: -150%;
}

@media screen and (max-width:769px) {
    .flow span:not(:last-child)::after {
        max-width: 100px;
        right: -110%;
    }
}

.required {
    color: #E94E4E;
}

.required.contact__alternative {
    display: none;
    line-height: 45px;
}

.form__field,
.confirm__field {
    padding: 40px 0;
}

.form__part {
    display: flex;
    flex-direction: row;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.form__part>div:first-child {
    flex-basis: 40%;
}

.form__part__profiles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.confirm__field .form__part__profiles {
    gap: 18px;
    margin-bottom: 36px;
}

.form__part__profiles>div {
    display: flex;
}

.confirm__field .form__part__profiles>div {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--primary-color);
}

@media screen and (max-width:769px) {
    .form__part__profiles>div {
        flex-direction: column;
    }

    .confirm__field .form__part__profiles>div {
        padding-bottom: 12px;
        border-bottom: none;
    }
}

.form__part__profiles>div>span:first-child {
    flex-basis: 40%;
}

.form__part__profiles input,
.form__part__profiles textarea {
    flex-basis: 60%;
    border: none;
    background-color: #E6E6E6;
    padding: 10px 17px;
}

.form__part__profiles input:hover,
.form__part__profiles textarea:hover {
    background-color: #E6E6E6bb;
    transition: background-color 0.3s ease;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

@media screen and (max-width:769px) {
    .options {
        font-size: 13px;
        gap: 12px;
    }
}

.options>* {
    line-height: 40px;
}

.radio__wrapper {
    display: block;
    line-height: 40px;
    padding-left: 40px;
    position: relative;
    width: fit-content;
    cursor: pointer;
}

.radio__wrapper::before,
.radio__wrapper::after {
    content: "";
    display: block;
    border-radius: 50%;
    position: absolute;
    transform: translateY(-50%);
    top: 24px;
}

.radio__wrapper::before {
    background-color: #fff;
    border: 1px solid #808080;
    height: 24px;
    width: 24px;
    left: 0;
}

.radio__wrapper::after {
    background-color: var(--primary-color);
    opacity: 0;
    height: 18px;
    width: 18px;
    left: 3px;
}

input[type="radio"] {
    /* コンテンツの流れから切り離す */
    position: absolute;
    /* 誤ったコードに対処するための回避策 */
    white-space: nowrap;
    /* 可能な限り文字サイズを小さくするための処理
     * (スクリーンリーダー中には height と width が 0 のものを無視するため)
     */
    width: 1px;
    height: 1px;
    /* オーバーフローしているコンテンツを隠す */
    overflow: hidden;
    /* 要素サイズを変更しうるプロパティのリセット */
    border: 0;
    padding: 0;
    /* 要素のどの部分が表示されるかを定義するもの */
    /* 古いブラウザでは使用できない */
    clip: rect(0 0 0 0);
    /* 最近のブラウザ用
     * コンテンツを非表示にする設定  */
    clip-path: inset(50%);
    /* 今現在なぜ-1pxがここで設定されるかは分かっていないそうです。
     * それに加えていくつか問題もあるそうです 
     * (参考: https://github.com/h5bp/html5-boilerplate/issues/1985)
     */
    margin: -1px;
}

label:has(input:checked)::after,
.checked-label::after {
    opacity: 1;
}

.date-field {
    width: 258px;
    min-width: fit-content;
    position: relative;
    align-items: baseline;
    height: fit-content;
    line-height: 40px;
    padding-left: 8px;
    cursor: pointer;
}


@media screen and (max-width:769px) {
    .date-field {
        width: 212px;
        line-height: 32px;
        font-size: 13px;
    }
}

/* .date-field::-webkit-calendar-picker-indicator {
    background: transparent;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-right: 8px;
} */
div:has(> .date-field) {
    position: relative;
    width: fit-content;
}
div:has(>.date-field)::after {
    font-size: 18px;
    position: absolute;
    right: 8px;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    content: "\f073";
    color: #8A8A8A;
    pointer-events: none;
}

.options.date>div {
    display: flex;
    gap: 24px;
    align-items: center;
    white-space: nowrap;
}

.confirm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

.form__head {
    display: flex;
    gap: 12px;
    line-height: 45px;
    align-items: center;
}

.form__body {
    flex-basis: 60%;
    line-break: anywhere;
}

.confirm__field .form__head {
    line-height: normal;
}

@media screen and (max-width:769px) {
    .confirm__field .form__head {
        flex-basis: 60%;
        border-bottom: 1px solid var(--primary-color);
        padding-bottom: 4px;
        margin-bottom: 6px;
    }
}

.part {
    padding: 40px 0;
    border-top: 1px solid var(--primary-color);
    overflow: hidden;
}

.part:last-of-type {
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 40px;
}

@media screen and (max-width:769px) {
    .part {
        flex-direction: column;
        gap: 8px;
    }
}

.btns {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width:769px) {
    .btns {
        flex-direction: column;
        gap: 24px;
        justify-content: center;
    }
}

.btn {
    display: block;
    border-radius: 6px;
    font-size: 16px;
    line-height: 48px;
    cursor: pointer;
    width: 180px;
    max-width: 180px;
    text-align: center;
}

.btn.small {
    width: 80px;
    line-height: 32px;
}

.btn.medium {
    width: 120px;
    line-height: 40px;
}

.btn.medium__large {
    width: 140px;
    line-height: 40px;
}

.btn:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.primary__btn {
    border: none;
    background-color: var(--primary-color);
    color: #ffffff;
}

.secondary__btn {
    background-color: #fff;
    color: #555;
    border: 1px solid var(--primary-color);
}

.centered {
    margin-left: auto;
    margin-right: auto;
}

.centered__text {
    text-align: center;
}

.form__field>* {
    display: none;
}

.form__field>.select__detail {
    display: flex;
}

.form__field>.select__detail.inactive {
    border-bottom: 1px solid var(--primary-color);
}

.error__texts {
    width: fit-content;
    margin: 0 auto;
    color: red;
}

.back::before {
    height: 100%;
    font-size: 14px;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    content: "\f060";
    color: var(--primary-color);
    margin-right: 8px;
}

.thanks {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 1rem;
}

.contact {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.contact .form__field>.form__part,
.contact .form__field>.btns,
.contact .form__field>.form__part__profiles {
    display: flex;
}

.contact .form__field>* {
    display: block;
}
.column {
    display: inline-flex;
    flex-direction: column;
}

.form__part__profiles .column {
    flex-basis: 60%;
}

.form__part__profiles .column > input {
    flex-basis: none;
}

.link,
.download {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: underline;
    margin: 16px 0;
}

.auto__break {
    display: inline-block;
}

.m__bottom {
    margin-bottom: 12px;
}

.schedule {
    font-size: 13px;
}

.annotation {
    display: inline-block;
    font-size: 12px;
    line-height: 2;
    padding-top: 8px;
    padding-right: 32px;
}

.hidden {
    display: none;
}