.specialist{
    margin-top: 60px;
}

.specialist__text{
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-weight: 500;
    font-size: 16px;
    line-height: 180%;
    letter-spacing: 0.01em;
    line-height: 180%;
    letter-spacing: 0.01em;
    margin-top: 40px;

}

.specialist__text strong{
    font-weight: 700;
    font-size: 18px;
}

.specialist__left{
    margin-right: 32px;
}

.specialist__center{
    max-width: 790px;
}

.specialist__content{
    display: flex;
    align-items: center;
    align-items: end;
    margin-top: 80px;
}

.specialist__img{
    text-align: center;
}

.specialist__items{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 10px;
}

.specialist__item{
    min-width: 150px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.05em;
    text-align: center;
    background: #fff;
    border: 1px solid #B81C22;
    border-radius: 5px;
    padding: 0 10px;
    color: #B81C22;
}

.specialist__right{
    margin-left: 14px;
}

.specialist__roadmap{
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.specialist__level{
    width: 255px;
    line-height: 50px;
    background: #FFF1E7;
    font-family: Noto Sans JP;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #B81C22;
    border-radius: 5px;
    position: relative;
}

.specialist__level::before{
    position: absolute;
    content: "";
    width: 19px;
    height: 100%;
    background: #B81C22;
    top: 0;
    left: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.specialist__goal{
    width: 255px;
    line-height: 50px;
    background: #B81C22;
    font-family: Noto Sans JP;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #fff;
    border-radius: 5px;
}

.specialist__flow{
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.specialist__flow-item{
font-weight: 700;
font-size: 20px;
line-height: 30px;
letter-spacing: 0.05em;
text-align: center;
color: #B81C22;
border-top: 3px solid #B81C22;
border-right: 3px solid #B81C22;
padding: 15px;
}

.specialist__flow-item:nth-of-type(1){
    border-left: 3px solid #B81C22;
    width: 15%;
}

.specialist__flow-item:nth-of-type(2){
    width: 25%;
}

.specialist__flow-item:nth-of-type(3){
    width: 60%;
}

.specialist__heading{
    font-weight: 700;
    font-size: 34px;
    line-height: 30px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #fff;
    background: #B81C22;
    padding: 30px 20px;
}

@media screen and (max-width: 768px) {
    .specialist{
        margin-top: 50px;
    }
    
    .specialist__text{
        font-size: 14px;
        line-height: 200%;
        margin-top: 30px;
    
    }
    
    .specialist__text strong{
        font-weight: 700;
        font-size: 17px;
    }
    
    .specialist__left{
        margin-right: 32px;
    }
    
    .specialist__center{
        max-width: 790px;
        margin-right: 40px;
    }
    
    .specialist__content{
        display: flex;
        align-items: center;
        align-items: end;
        margin-top: 30px;
    }
    
    .specialist__img{
        display: none;
    }
    
    .specialist__items{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 10px;
    }
    
    .specialist__item{
        min-width: 150px;
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 16px;
        line-height: 30px;
        letter-spacing: 0.05em;
        text-align: center;
        background: #fff;
        border: 1px solid #B81C22;
        border-radius: 5px;
        padding: 0 10px;
        color: #B81C22;
    }
    
    .specialist__right{
        margin-left: 14px;
        display: none;
    }
    
    .specialist__roadmap{
        display: none;
    }
    
    .specialist__level{
        width: 255px;
        line-height: 50px;
        background: #FFF1E7;
        font-family: Noto Sans JP;
        font-weight: 700;
        font-size: 20px;
        letter-spacing: 0.05em;
        text-align: center;
        color: #B81C22;
        border-radius: 5px;
        position: relative;
    }
    
    .specialist__level::before{
        position: absolute;
        content: "";
        width: 19px;
        height: 100%;
        background: #B81C22;
        top: 0;
        left: 0;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    
    .specialist__goal{
        width: 255px;
        line-height: 50px;
        background: #B81C22;
        font-family: Noto Sans JP;
        font-weight: 700;
        font-size: 20px;
        letter-spacing: 0.05em;
        text-align: center;
        color: #fff;
        border-radius: 5px;
    }
    
    .specialist__flow{
        display: flex;
        align-items: center;
        flex-direction: column;

        margin-top: 0;
        border-top: 3px solid #B81C22;
        border-left: 3px solid #B81C22;
        max-width: 44px;
    }
    
    .specialist__flow-item{
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #B81C22;
    border: 0;
    padding: 0;
    writing-mode: vertical-rl;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid #B81C22;
    }
    
    .specialist__flow-item:nth-of-type(1){
        width: 44px;
        height: 20%;
        border-right: 0;
        border-left: 0;
    }
    
    .specialist__flow-item:nth-of-type(2){
        width: 44px;
        height: 45%;
        border-right: 0;


    }
    
    .specialist__flow-item:nth-of-type(3){
        width: 44px;
        height: 45%;
        border-right: 0;


    }
    
    .specialist__heading{
        font-size: 20px;
    writing-mode: vertical-rl;
    letter-spacing: 10px;
    }

    .specialist__arrow{
        display: none;
    }

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