.topBanner {
    position: relative;
    height: 100px;
}

.topBanner .topbanner-swiper{
    height: 100%;
}

.topBanner .close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
}

.topBanner .swiper-slide {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
}

.topBanner .swiper-slide.n-1{
    background-image: url("../images/common/top_banner.png");
}

.main-menu {
    width: 100%;
    margin: 0 auto;
}

.main-menu .menu-swiper {
    width: 100%;
    overflow: hidden;
}


.main-menu .menu-swiper li a {
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

.main-menu .menu-swiper li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.main-menu .menu-swiper li a:hover {
    color: var(--primary);
}

.main-menu .menu-swiper li a:hover::after {
    width: 100%;
}


.main-menu .swiper-slide {
    width: auto;
    flex-shrink: 0;
}

header {
    border: 1px solid var(--line);
}

header .logo img{
   width: 100%
}

header .top {
    padding: 20px 0;
}

header .top .myPage{
    width: auto !important;
}

header .top .flexBox {
    width: auto;
    gap: 0 20px;
}

header .top .log {
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 2px 15px;
    font-size: 16px;
    width: auto;
    text-align: center;
}

header .top .ctgr a{
    display: flex;
    align-items: center;
    gap: 10px;
}

header .bottom {
    border-top: 1px solid var(--line);
}

header .main-menu .swiper-slide.on {
    border-bottom: 1px solid var(--primary);
}

header .main-menu .swiper-slide.on a {
    color: var(--primary);
    font-weight: 600;
}


footer{
    border-top: 1px solid var(--line);
}

footer .inner{
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    gap: 0 100px;
}

footer .sns{
    display: flex;
    gap: 0 10px;
}

footer .mn{
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 20px 0;
}

footer .mn li a{
    color: #999;
}

footer .info{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
}

footer .info li{
    color: #999;
    font-size: 16px;
    word-break: keep-all;
}

.quickMn{
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 0 10px;
    z-index: 99;
    transition: all 0.3s ease;
}

.quickMn.closed .rbox,
.quickMn.closed .lbox {
    display: none;
}

.quickMn .toggleBtn {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quickMn.closed .toggleBtn {
    top: 30%;
    transform: translateY(-95%);
}

.quickMn .toggleBtn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.quickMn .toggleBtn .open {
    display: none;
}

.quickMn .toggleBtn .close {
    display: inline;
}

.quickMn.closed .toggleBtn .open {
    display: inline;
}

.quickMn.closed .toggleBtn .close {
    display: none;
}

.quickMn .lbox{
    display: flex;
    flex-direction: column;
    gap: 10px 0;
}

.quickMn .lbox .chat{
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    border-radius: 10px;
}

.quickMn .lbox .chat img{
    width: 20px;
}

.quickMn .lbox .chat p{
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.quickMn .book-list{
    width: 65px;
}

.quickMn .book-list img{
    width: 100%;
}

.quickMn .topBtn{
    border: 1px solid var(--line);
    width: 65px;
    height: 65px;
    border-radius: 65px;
    display: flex;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
}

.quickMn .topBtn img{
    margin-top: 10px;
}

.quickMn .topBtn p{
    font-size: 14px;
    color: var(--gray9);
    transform: translateY(-5px);
}

.quickMn .rbox b.tit{
    background: url("../images/common/ico-bk.svg") left center / auto no-repeat;
    padding-left: 20px;
    font-size: 14px;
}

.quickMn .rbox > div{
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    flex-direction: column;
    background-color: #fff;
}

.quickMn .rbox > div b{
    display: block;
    width: 100%;
    font-size: 14px;
}

.quickMn .rbox > div span{
    font-size: 12px;
    color: var(--gray9);
    padding-right: 20px;
    background: url("../images/common/arrw.svg") right center /  auto no-repeat;
}


/* 카테고리 메뉴 */
.category-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.category-menu.active {
    left: 0;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-header .close-btn {
    background: none;
    border: none;
    margin-right: 15px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.category-header .close-btn img {
    width: 15px;
    height: 15px;
}

.category-header .close-btn:hover {
    background-color: #f5f5f5;
    border-radius: 50%;
}

.category-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.category-list {
    padding: 0;
}

.category-item {
    border-bottom: 1px solid #f5f5f5;
}

.category-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.category-main:hover {
    background-color: #f8f8f8;
}

.category-main .chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.category-item.active .chevron {
    transform: rotate(180deg);
}

.sub-categories {
    max-height: 0;
    overflow: hidden;
    background-color: #f3f3f3;
    padding: 0 20px 0 40px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.sub-categories.show {
    max-height: 500px;
    padding: 0 20px 20px 40px;
}

.sub-categories a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--gray9);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.sub-categories.show a {
    opacity: 1;
    transform: translateY(0);
}

.sub-categories.show a:nth-child(1) { transition-delay: 0.05s; }
.sub-categories.show a:nth-child(2) { transition-delay: 0.1s; }
.sub-categories.show a:nth-child(3) { transition-delay: 0.15s; }
.sub-categories.show a:nth-child(4) { transition-delay: 0.2s; }
.sub-categories.show a:nth-child(5) { transition-delay: 0.25s; }
.sub-categories.show a:nth-child(6) { transition-delay: 0.3s; }
.sub-categories.show a:nth-child(7) { transition-delay: 0.35s; }
.sub-categories.show a:nth-child(8) { transition-delay: 0.4s; }

.sub-categories a:last-child {
    border-bottom: none;
}

.sub-categories a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {

    footer .inner{
        display: flex;
        flex-direction: column;
        gap: 50px 0;
    }

    .category-menu{
        width: 100%;
    }

}



@media (max-width: 640px) {

    
    .topBanner{
        height: 60px;
    }

    .topBanner img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    header .main-menu .swiper-slide a {
        font-size: 14px;
        padding: 10px ;
    }

    header .top .flexBox{
        display: block;
        position: relative;
    }

    header .top ul.flexBox{
        display: flex;
        margin-top: 30px;
    }

    header .top .rBox.flexBox{
        position: absolute;
        top: 0;
        right: 20px
    }

    header .top .ctgr{
        margin-left: auto;
    }

    header .top .log{
        width: auto;;
    }

    header .top .logo{
        width: 120px;
    }


}

@media (max-width: 380px) {
    header .logo{
        width: 120px;
    }

    header .top .ctgr span{
        display: none;
    }

    header .top .log{
        font-size: 14px;
    }
}