/* sub_head5 */
.sub_head5 {
    background-image: url(../img/sub_img/sub_head5_bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: #fff;
    padding-top: 82px;
    padding-bottom: 52px;
    animation: bg 20s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
}
@keyframes bg {
    0% {
        background-size: 150%;
    }
    100% {
        background-size: 100%;
    }
}
.sub_head5 > p {
    font-size: 18px;
    font-weight: 200;
}
.sub_head5 > p > span {
    font-weight: 500;
}
.sub_head5 > h2 {
    font-size: 38px;
    font-weight: 500;
    margin: 0px;
    color: #fff;
}
.sub_head5 > ul {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.sub_head5 > ul > li > a {
    color: #fff;
    font-size: 18px;
    font-weight: 200;
    padding: 8px 88px;
    border-bottom: 1px solid #fff;
    position: relative;
}

/* sub_active nth-child(1) 수정*/
/* .sub_head2 > ul > li:nth-child(1) > a::after {
    content: '';
    display: block;
    background-color: #fff;
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: 0px;
    left: 0px;
} */

.sub_head5 > ul > li > a::after {
    content: '';
    display: block;
    background-color: #fff;
    width: 100%;
    height: 0px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    transition: all 0.2s;
}
.sub_head5 > ul > li > a:hover:after {
    height: 3px;
}

/*tablet sub_head5*/
@media screen and (max-width: 1023px) {
    .sub_head5 > ul > li > a {
        padding: 8px 30px;
    }
}
@media screen and (max-width: 767px) {
    .sub_head5 > p {
        font-size: 14px;
    }
    .sub_head5 > h2 {
        font-size: 30px;
    }
    .sub_head5 > ul > li > a {
        font-size: 14px;
        padding: 8px 8px;
    }
    .sub_head5 {
        animation: none;
    }
}
