@charset "utf-8";

*{
    margin: 0;
    padding: 0;
}
img{
    width: 100%;
    height: 100%;
}
.sub_top_bg {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* 그라데이션으로 어두운 색상 적용 */
        url(/img/sub/sub_top.webp) no-repeat center;
    width: 100%;
    height: 300px;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub_top_txt_box{
    color: #fff;
    text-align: center;
}
.sub_top_txt{
    margin-top: 20px;
}

/* tab_bar시작 */
a{
color: inherit;
text-decoration: none;
}
ul, li{
    list-style: none;
}
.top_bar{
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 20%;
}
.top_bar_home{
    width: 16px;
    height: 16px;
    margin-right: 30px;
}
#all_menu_box a,
#menu_box a{
    display: block;
    width: 212px;
    height: 52px;
    padding: 16px 16px 16px 30px;
    position: relative;
    box-sizing: border-box;
    z-index: 99;
    white-space: nowrap; /* 텍스트 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨기기 */
    text-overflow: ellipsis; /* 넘치는 텍스트에 ... 표시 */
}
#all_menu_box ul,
#menu_box ul {
    display: none;
    position: absolute;
    overflow: hidden;
}

#all_menu_box ul.active,
#menu_box ul.active {
    display: block;
    animation: slide 0.2s ease-in-out;
}

@keyframes slide {
    from {
        max-height: 0;
    }
    to {
        max-height: 500px;
    }
}
        
#all_menu_box > a,
#menu_box > a{
    transition: all 0.2s;
    color: #fff;
    font-weight: bold;
}
#all_menu_box > a.active,
#menu_box > a.active{
    background-color: #fff;
    border: 1px solid #eee;
    color: #000;
}

#all_menu_box ul li a,
#menu_box ul li a{
    background-color: #fff;
    border: 1px solid #eee;
}
#all_menu_box>a::after,
#menu_box>a::after{
    content: "\f054";
    font-size: 12px;
    position: absolute;
    right: 30px;
    top: 20px;
    transition: all 0.2s;
    font-family: 'Font Awesome 6 Free';
}
#all_menu_box > a.active::after,
#menu_box > a.active::after {
    transform: rotate(90deg);
}
.top_bar{
    transition: all 0.2s;
}
.top_bar.fixed {
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 90;
    background-color: rgb(75, 75, 75);
}
.tob_bar_height.plus {
    height: 36px;
}
.tob_bar_height.plus2 {
    height: 52px;
}

@media only screen and (max-width: 1024px){
    
    .sub_top_bg{
        height: 220px;
    }
    .sub_top_apt{
        width: 300px;
    }
}
@media only screen and (max-width: 810px){
.top_bar{
    padding: 0 10%;
}
}
@media only screen and (max-width: 767px){
    .sub_top_bg{
        height: 150px;
    }
    .sub_top_apt{
        width: 200px;
    }
    .top_bar{
        padding: 0;
        justify-content: start;
    }
    #all_menu_box{
        margin-left: 10px;
    }
    #all_menu_box a,
    #menu_box a{
        display: block;
        width: 120px;
        height: 36px;
        padding: 8px 8px 8px 15px;
        margin: 0 5px;
    }
    #all_menu_box>a::after,
    #menu_box>a::after{
        top: 15px;
        right: 15px;
    }
    .top_bar_home{
        display: none;
    }
    .sub_top_txt{
        font-size: 12px;
    }
}