  

@media screen and (min-width: 768px) {

    #contents_header article{
        background-image: url(/recruit/workstyle/img/welfare_main.webp);
        background-size: cover;
        background-position: center center ;
    }

}



.welfarebox h2{
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    letter-spacing: 2px;
    padding: 0px 0px 0px;
    margin-bottom: 30px;
}


.welfarebox h2::before{
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: 0;
    background: linear-gradient( 90deg, rgb(53, 181, 151) 20%, rgb(0, 160, 233) 80% );
}

.welfarebox h2 figure{
    width: 60px;
    padding-top: 5px;
}

.welfarebox h2 div{
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-content: center;
    padding-left: 15px;
    width : calc(100% - 60px) ;
    font-size: 30px;
}

.welfarebox > div:nth-of-type(n+2){
    padding-top: 50px;
}

.welfarebox aside{
    position: relative;
    display: flex;
    padding: 20px;
    line-height: 1;
    margin-bottom: 25px;
}

.welfarebox aside::before{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 1;
    background: linear-gradient( 90deg, rgb(53, 181, 151) 20%, rgb(0, 160, 233) 80% );
    opacity: .1;
    
}

.welfarebox aside strong{
    position: relative;
    display: flex;
    align-items: center;
    font-size: 24px;
    line-height: 1;
    padding-right: 15px;
    border-right: #000 solid 1px;
    white-space: nowrap;
}

.welfarebox aside p{
    display: flex;
    align-items: center;
    padding-left: 15px;
    line-height: 1.6;
}


.welfarebox ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 20px;
}

.welfarebox ul li{
    width: 100%;
    padding-bottom: 10px;
    padding-left: 20px;
}

.welfarebox ul li p{
    line-height: 1.6;
    padding: 10px 0px 30px;
}

.welfarebox h3{
    position: relative;
    display: inline-block;
    padding: 5px 15px 5px 30px;
    line-height: 1.4;
    background-color: #f5f5f5;
}

.welfarebox h3::after{
    content: "";
    position: absolute;
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: 10px;
    top: 13px;
    background-color: #22aeba;
}

.welfarebox h3 span{
    font-size: 20px;
}



.welfare_photobox .welfare_photo figure{
    width: 47%;
}


#qualifybox{
    position: relative;
    padding: 30px 10px 30px 30px;
    border: #ccc solid 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}

#qualifybox h4{
    position: absolute;
    display: inline-block;
    padding: 0px 8px;
    font-size: 18px;
    top: -22px;
    left: 22px;
    z-index: 10;
    background-color: #FFF;
}

#qualifybox div{
    display: inline-block;
    padding: 7px 15px;
    border: #000 solid 1px;
    margin: 0px 20px 10px 0px;
    line-height: 1;
}


@media screen and (max-width:767px) {

    #contents_header article{
        background-image: url(/recruit/workstyle/img/welfare_main_sp.webp);
        background-size: cover;
        background-position: center center ;
    }
    

    .welfarebox{
        padding-bottom: 0vw;
    }

    .welfarebox > div:nth-of-type(n+2){
        padding-top: 20px;
    }

    .welfarebox ul li{
        width: 100%;
        padding-bottom: 10px;
        padding-left: 0px;
    }
  
    .welfarebox h2{
        letter-spacing: 2px;
        padding: 0px 0px 0px;
        margin-bottom: 20px;
    }
    
    .welfarebox h2 div {
        width: calc(100% - 45px);
        padding-left: 10px;
        font-size: 24px;
    }

    .welfarebox h2 figure{
        width: 45px;
        padding-top: 5px;
    }


    .welfarebox aside{
        padding: 15px;
        margin-bottom: 15px;
    }

    .welfarebox aside strong{
        font-size: 20px;
        line-height: 1;
        padding-right: 10px;
    }

    .welfarebox aside p{
        padding-left: 10px;
    }


    .welfarebox h3{
        padding: 5px 15px 5px 25px;
        line-height: 1.4;
        background-color: #f5f5f5;
    }
    
    .welfarebox h3::after{
        width: 11px;
        height: 11px;
        left: 8px;
        top: 13px;
    }
    
    .welfarebox h3 span{
        font-size: 18px;
    }
    
    .welfarebox ul li p {
        padding: 10px 0px 2vw;
    }


    #qualifybox{
        position: relative;
        padding: 20px 10px 20px 20px;
        border: #ccc solid 1px;
    }
    
    #qualifybox h4{
        position: absolute;
        display: inline-block;
        padding: 0px 8px;
        font-size: 16px;
        top: -17px;
        left: 12px;
        z-index: 10;
        background-color: #FFF;
        margin-top: 10px;
    }
    
    #qualifybox div{
        display: inline-block;
        padding: 5px 15px;
        border: #000 solid 1px;
        margin: 0px 10px 10px 0px;
        line-height: 1;
    }
}


@media screen and (max-width: 540px) {

    .welfarebox aside{
        display: block;
        padding: 15px;
        margin-bottom: 15px;
    }

    .welfarebox aside strong{
        font-size: 20px;
        line-height: 1;
        padding-right: 0px;
        padding-bottom: 10px;
        border-right: none;
        border-bottom: #888 solid 1px;
    }

    .welfarebox aside p{
        padding-left: 0px;
        padding-top: 10px;
    }
}



@media screen and (max-width: 480px) {

    .welfarebox h2{
        letter-spacing: 2px;
        padding: 0px 0px 5px;
        margin-bottom: 20px;
    }
    
    .welfarebox h2 div {
        display: flex;
        align-items: center;
        width: calc(100% - 40px);
        padding-left: 10px;
        font-size: 20px;
        line-height: 1.1;
    }

    .welfarebox h2 figure{
        width: 40px;
        padding-top: 0px;
    }

    
}
