.flow__items{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.flow__item{
    width: calc(20% - 15px * 4 / 5);
    border: 2px solid #1B1E49;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.flow__item::before{
    position: absolute;
    content: "";
    height: 22px;
    width: 16px;
    background-image: url(../img/pc/recruitment/sec3_ic_arrow.svg);
    background-size: cover;
    background-repeat: no-repeat;
    right: 0;
    top: 50%;
    transform: translate(100%,-50%);
    }

.flow__item:nth-last-of-type(1){
    border-color: #B81C22;
    background: #B81C22;
    color: #fff;
}

.flow__item:nth-last-of-type(1)::before{
    display: none;
}

.flow__number{
    font-weight: 700;
    font-size: 34px;
    line-height: 100%;
    letter-spacing: 0.05em;
    text-align: center;

}

.flow__title{
font-weight: 700;
font-size: 22px;
line-height: 100%;
letter-spacing: 0.05em;
text-align: center;
margin-top: 5px;

}

.flow__text{
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0.01em;
    text-align: center;
    margin-top: 15px;
}

@media screen and (max-width: 768px) {
    .flow__items{
        gap: 45px;
        margin-top: 30px;
    }
    
    .flow__item{
        width: 100%;
        padding: 30px 16px;
    }
    
    .flow__item::before{
        position: absolute;
        content: "";
        height: 26px;
        width: 36px;
        background-image: url(../img/sp/recruitment/sec3_ic_arrow_sp.svg);
        left: 50%;
        right: auto;
        bottom: -26px;
        top: auto;
        transform: translate(-50%,0);
        }
    
    .flow__item:nth-last-of-type(1){
        border-color: #B81C22;
        background: #B81C22;
        color: #fff;
    }
    
    .flow__item:nth-last-of-type(1)::before{
        display: none;
    }
    
    .flow__number{
        font-weight: 700;
        font-size: 26px;
    
    }
    
    .flow__title{
    font-size: 20px;
    margin-top: 5px;
    
    }
    
    .flow__text{
        font-size: 14px;
        margin-top: 10px;
    }
}