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

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

.sub_head3 > 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_head3 > ul > li > a:hover:after {
    height: 3px;
}

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