/* ここからご相談メニュー */
.menu_section {
    position: relative;
    margin-top: 105px;
}

.menu_container {
    display: flex;
    gap: 60px;
    background-color: #F5FAFD;
    padding: 50px 30px 20px 0;
    margin-bottom: 50px;
    border-radius: 50px 0 50px 0;
}

.menu_image img {
    width: 100%;
    max-width: 440px;
    height: auto;
}

.menu_text {
    flex: 1;
    min-width: 200px;
    max-width: 600px;
}

.menu_title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5;
}

.menu_title::after {
    display: block;
    width: 150px;
    margin: 15px 0;
    border-bottom: 5px dotted #6B7C8F;
    content: "";
}

.menu_subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #6B7C8F;
    margin-bottom: 10px;
}

.menu_wavyshape {
    position: absolute;
    bottom: -2.9%;
    right: 0;
    transform: rotate(20deg);
}

@media(max-width:1080px) {
    .menu_container {
        gap: 30px;
        padding-top: 40px;
    }
    .menu_title {
        font-size: 28px;
    }
    .menu_title::after {
        margin: 10px 0;
        border-bottom-width: 3px;
    }
    .menu_wavyshape {
        width: 15%;
        bottom: -1.5%;
    }
}

@media(max-width:768px) {
    .menu_section {
        margin-top: 50px;
    }
    .menu_container {
        gap: 20px;
        padding-right: 20px;
    }
    .menu_title {
        font-size: 20px;
    }
    .menu_subtitle {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 5px;
    }
}

@media(max-width:570px) {
    .menu_container {
        flex-direction: column;
        padding-top: 30px;
        padding-bottom: 30px;
        margin-bottom: 20px;
        border-radius: 0 50px 50px 0;
    }
    .menu_text {
        padding-left: 20px;
    }
    .menu_wavyshape {
        width: 20%;
        bottom: -0.8%;
    }
}
/* ここまでご相談メニュー */

/* ここからご相談の流れ*/
.flow_section {
    margin-top: 150px
}

.flow_wrap {
    position: relative;
    margin-top: 50px;
    padding: 70px 0;
    background-image: url(../img/flow_back.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.flow_body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.flow_step {
    position: relative;
    text-align: center;
}

.flow_step::after {
    position: absolute;
    top: 22.3%;
    left: 100%;
    width: 50px;
    height: 0;
    border-top: 5px dotted #6B7C8F;
    content: ""
}

.flow_step:nth-child(4n)::after {
    content: none;
}

.flow_number {
    position: absolute;
    top: -3.6%;
    left: -5.6%;
    font-size: 40px;
    font-weight: 700;
    line-height: 2em;
    color: #6B7C8F;
    background-color: #FAE2E2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all .3s;
    text-align: center;
}

.flow_icon {
    border: 5px solid #6B7C8F;
    border-radius: 20px;
    background: #fff;
    height: 188px;
}

.flow_icon img {
    object-fit: contain;
    height: 100%;
}

.flow_title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: #6B7C8F;
    margin: 10px 0 5px;
}

.flow_title::after {
    display: block;
    width: 100px;
    margin: 5px auto 25px;
    border-bottom: 5px solid #B9D7EE;
    content: "";
}

.flow_text {
    font-size: 16px;
    text-align: left;
}

.flow_text a {
    position: relative;
    display: inline-block;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    color: #6B7C8F;
    border-bottom: 1px solid #6B7C8F;
    transition: all .3s;
    width: fit-content;
}

.flow_number:hover,
.flow_text a:hover {
    color: #66b2ec;
    border-bottom-color: #66b2ec;
}

.flow_text a:hover .mail_icon {
    stroke: #66b2ec;
}

.flow_text a:hover .line_icon {
    fill: #66b2ec;
}

.flow_text a:nth-of-type(2) {
    letter-spacing: 1.5px;
}

@media (max-width: 1248px) {
    .flow_step::after {
        top: 20.8%;
    }
}

@media (max-width: 1200px) {
    .flow_body {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow_step::after {
        top: 25%;
        left: 100%;
    }
    .flow_step:nth-child(2n)::after {
        content: none;
    }
}

@media(max-width:768px) {
    .flow_section {
        margin-top: 80px
    }
    .flow_wrap {
        margin-top: 25px;
        padding: 50px 0;
    }
    .flow_step::after {
        top: 23%;
    }
    .flow_title {
        font-size: 20px;
    }
    .flow_text {
        font-size: 14px;
    }
    .flow_title::after {
        width: 80px;
        margin-bottom: 15px;
        border-bottom-width: 3px;
    }
    .flow_text a {
        font-size: 16px;
    }
    .flow_text a:nth-of-type(2) {
        letter-spacing: 1.2px;
    }
}

@media (max-width: 570px) {
    .flow_body {
        grid-template-columns: 1fr;
    }
    .flow_step::after {
        content: none;
    }
    .flow_number {
        left: -4.5%;
        font-size: 35px;
        width: 70px;
        height: 70px;
    }
}
/* ここかまでご相談の流れ*/