@charset "UTF-8";

html,
body {
    height: 100%;
    min-height: 100%;
    position: relative;
}

#flow {
    position: relative;
    width: 100%;
    z-index: 1;
}

#flow .innerBox {
    position: relative;
    max-width: calc(1100px + calc(15px * 2));
    z-index: 2;
    padding-top: 130px;
}
@media screen and (max-width: 767px) {
    #flow .innerBox {
        max-width: 70%;
        padding-top: 80px;
    }
}
@media screen and (max-width: 400px) {
    #flow .innerBox {
        max-width: 100%;
    }
}

#flow .innerBox .contents_title {
    margin-bottom: 100px;
}

.large_background_text_cover {
    position: absolute;
    z-index: 1;
    font-size: 350px;
    font-weight: 500;
    top: 830px;
    left: -190px;
}

/* フッターが表示されるように明示的に設定 */
footer {
    position: relative;
    z-index: 3;
}

#flow .top_flow_step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 68px;
}

.flow_step_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 55px auto;
}

#flow .top_flow_step_num {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(356px - 20px);
    margin: 0 auto 7px;
    height: 70px;
    background-color: rgba(233, 186, 42, 0.8);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2em;
    letter-spacing: 0.036em;
}

#flow .top_flow_step .contents-card_cover {
    height: 261px;
    display: flex;
    align-items: center;
    column-gap: 14px;
}

#flow .top_flow_step .contents-flow_period {
    height: 80px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2em;
}

#flow
    .top_flow_step
    :where(.contents-card_1, .contents-card_2, .contents-card_3, .contents-card_4, .contents-card_5, .contents-card_6) {
    position: relative;
    width: 171px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    text-align: center;
    background-color: rgba(173, 187, 198, 0.25);
}
#flow .top_flow_step :where(.contents-card_1, .contents-card_2, .contents-card_5) {
    padding-bottom: 37px;
}
#flow .top_flow_step :where(.contents-card_3, .contents-card_4, .contents-card_6) {
    padding-bottom: 25px;
}

#flow :where(.contents-flow_period_1, .contents-flow_period_2) {
    background: url(../image/flow_item_1.svg) no-repeat center center / contain;
}
#flow :where(.contents-flow_period_3, .contents-flow_period_4) {
    background: url(../image/flow_item_2.svg) no-repeat center center / contain;
}
#flow .flex_box .contents_box [class*="text_box_"]:not(:last-child) {
    margin-bottom: 60px;
}

#flow .top_flow_step .contents-card_cover .arrow {
    width: 13px;
    height: 13px;
    border-top: 2px solid #0e1424;
    border-right: 2px solid #0e1424;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(85%, -50%) rotate(45deg);
}

.top_flow_step .contents-text {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.75em;
    letter-spacing: -0.016em;
}

#flow .innerBox.flow .text_box {
    background: rgba(236, 236, 236, 0.5);
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1em;
    padding: 48px 0;
    margin-bottom: 24px;
}

@media screen and (max-width: 1250px) {
    #flow .top_flow_step {
        margin-bottom: 10.667vw;
    }
    #flow .top_flow_step > div {
        width: 70%;
        margin: 0 auto;
        flex-direction: column;
        row-gap: 5.333vw;
    }
    #flow .top_flow_step .contents-card_cover {
        width: 100%;
        height: fit-content;
        flex-direction: column;
        align-items: end;
    }
    #flow .top_flow_step .contents-card_cover .arrow {
        top: initial;
        right: initial;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 100%) rotate(135deg);
    }
    #flow .top_flow_step .contents-flow_period {
        height: auto;
        font-size: 20px;
        width: 45%;
    }

    #flow .contents-flow_cover {
        display: flex;
        justify-content: space-between;
    }
    #flow .top_flow_step {
        margin-bottom: 10.667vw;
    }
    #flow .top_flow_step > div {
        width: 70%;
        margin: 0 auto;
        flex-direction: column;
        row-gap: 5.333vw;
    }
    #flow .top_flow_step .contents-card_cover {
        width: 100%;
        height: fit-content;
        flex-direction: column;
        align-items: end;
    }
    #flow .top_flow_step .contents-card_cover .arrow {
        top: initial;
        right: initial;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 100%) rotate(135deg);
    }
    #flow .top_flow_step .contents-flow_period {
        height: auto;
        font-size: 20px;
        width: 45%;
    }

    #flow :where(.contents-flow_period_1, .contents-flow_period_2) {
        background: url(../image/flow_item_1_vertical.svg) no-repeat center center / 300% 100%;
    }
    #flow :where(.contents-flow_period_3, .contents-flow_period_4) {
        background: url(../image/flow_item_2_vertical.svg) no-repeat center center / 300% 100%;
    }
    #flow
        :where(
            .contents-card_1,
            .contents-card_2,
            .contents-card_3,
            .contents-card_4,
            .contents-card_5,
            .contents-card_6
        ) {
        width: 100%;
    }
    #flow
        :is(.contents-card_1, .contents-card_2, .contents-card_3, .contents-card_4, .contents-card_5, .contents-card_6)
        img.contents-icon {
        margin-bottom: 5.333vw;
    }
    #flow .innerBox.flow::after {
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 10%);
        width: 100%;
        height: 100%;
    }
    #flow
        .top_flow_step
        :is(
            .contents-card_1,
            .contents-card_2,
            .contents-card_3,
            .contents-card_4,
            .contents-card_5,
            .contents-card_6
        ) {
        width: calc(100% - 2.667vw);
        height: 300px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    #flow .top_flow_step :is(.contents-card_1, .contents-card_3) {
        margin-bottom: 5.333vw;
    }
    #flow .contents-card_1 img.contents-icon {
        width: 140px;
        margin-bottom: 15px;
    }
    #flow .contents-card_2 img.contents-icon {
        width: 200px;
        margin-bottom: 15px;
    }
    #flow .contents-card_3 img.contents-icon {
        width: 160px;
        margin-bottom: 15px;
    }
    #flow .contents-card_4 img.contents-icon {
        width: 120px;
        margin-bottom: 15px;
    }
    #flow .contents-card_5 img.contents-icon {
        width: 140px;
        margin-bottom: 15px;
    }
    #flow .contents-card_6 img.contents-icon {
        width: 140px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 767px) {
    #flow .top_flow_step {
        margin-bottom: 10.667vw;
    }
    #flow .top_flow_step > div {
        width: 100%;
        flex-direction: column;
        row-gap: 5.333vw;
    }
    #flow .top_flow_step .contents-card_cover {
        width: 100%;
        height: fit-content;
        flex-direction: column;
        align-items: end;
    }
    #flow .top_flow_step .contents-card_cover .arrow {
        top: initial;
        right: initial;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 100%) rotate(135deg);
    }
    #flow .top_flow_step .contents-flow_period {
        height: auto;
        font-size: 4.267vw;
        width: 45%;
    }
    #flow :where(.contents-flow_period_1, .contents-flow_period_2) {
        background: url(../image/flow_item_1_vertical.svg) no-repeat center center / 300% 100%;
    }
    #flow :where(.contents-flow_period_3, .contents-flow_period_4) {
        background: url(../image/flow_item_2_vertical.svg) no-repeat center center / 300% 100%;
    }
    #flow
        :where(
            .contents-card_1,
            .contents-card_2,
            .contents-card_3,
            .contents-card_4,
            .contents-card_5,
            .contents-card_6
        ) {
        width: 100%;
    }
    #flow
        :is(.contents-card_1, .contents-card_2, .contents-card_3, .contents-card_4, .contents-card_5, .contents-card_6)
        img.contents-icon {
        margin-bottom: 5.333vw;
    }
    #flow .innerBox.flow::after {
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 10%);
        width: 100%;
        height: 100%;
    }
    #flow
        .top_flow_step
        :is(
            .contents-card_1,
            .contents-card_2,
            .contents-card_3,
            .contents-card_4,
            .contents-card_5,
            .contents-card_6
        ) {
        width: calc(100% - 2.667vw);
        height: 70vw;
        padding-top: 6.667vw;
        padding-bottom: 6.667vw;
    }
    #flow .top_flow_step :is(.contents-card_1, .contents-card_3) {
        margin-bottom: 5.333vw;
    }
    #flow .contents-card_1 img.contents-icon {
        width: 26.4vw;
        margin-bottom: 15.2vw;
    }
    #flow .contents-card_2 img.contents-icon {
        width: 36.267vw;
        margin-bottom: 10.667vw;
    }
    #flow .contents-card_3 img.contents-icon {
        width: 31.2vw;
        margin-bottom: 5.333vw;
    }
    #flow .contents-card_4 img.contents-icon {
        width: 23.467vw;
        margin-bottom: 4.533vw;
    }
    #flow .contents-card_5 img.contents-icon {
        width: 23.733vw;
        margin-bottom: 10.667vw;
    }
    #flow .contents-card_6 img.contents-icon {
        width: 27.733vw;
        margin-bottom: 5.333vw;
    }
    #flow .top_flow_step .contents-card_cover .arrow {
        width: 3vw;
        height: 3vw;
    }
    .top_flow_step .contents-text {
        font-size: 6vw;
    }
}

#flow .flow_step_1 .flow-step-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 2.2em;
    letter-spacing: 0.018em;
    margin-bottom: 45px;
}

#flow .flow_step_1 .contact-buttons-container {
    display: flex;
    justify-content: center;
    column-gap: 24px;
}
@media screen and (max-width: 1250px) {
    #flow .flow_step_1 .contact-buttons-container {
        flex-direction: column;
        row-gap: 20px;
        width: fit-content;
        height: fit-content;
        margin: 0 auto;
    }
}

#flow .flow_step_1 .flow_step_arrow img {
    width: 16.4px;
    height: 36.4px;
}

@media screen and (max-width: 1250px) {
    #flow .flow_step_1 {
        width: 70%;
        margin: 0 auto;
    }
}
@media screen and (max-width: 767px) {
    #flow .flow_step_1 {
        width: 100%;
    }
}

