/* 모바일 메뉴 스타일 */
.header-mobile-menu {
    display: none; /* 기본적으로 PC 화면에서 숨김 */
    background-color: #fff;
    position: relative;
    z-index: 1000; /* 메뉴가 다른 요소 위에 표시되도록 */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.header-mobile-menu #mobile-menu-swap {
    font-size: 15px;
    color: #5a5858;
    font-weight: 700;
    background: url(../css/index/menu.png) no-repeat;
    background-position-x: 98%;
    background-position-y: 22px;
    padding: 20px;
    cursor: pointer;
}


#mobile-dropdown-menu {
    display: none;
    background-color: #fff;  
    border-top: 1px solid #ddd;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-dropdown-menu.open {
    display: block;
    max-height: 1000px;
    opacity: 1;
}
.mobile-menu-list,
.mobile-submenu,
.mobile-subsubmenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 1차 메뉴 스타일 */

.mobile-menu-list > :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-bottom: calc(0.625em* var(--tw-space-x-reverse));
    margin-top: calc(0.625rem* calc(1 - var(--tw-space-x-reverse)));
}


.mobile-menu-item > a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px;
    background: #eaeaea;
    cursor: pointer;
}

.mobile-menu-item > a:hover {
    background-color: #ddd;
}

/* 2차 메뉴 스타일 */
.mobile-submenu {
    display: none; /* 기본적으로 숨김 */
    padding-left: 15px;
    margin-top: 5px;
}

.mobile-menu-subitem > a {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 3px;
}

.mobile-menu-subitem > a:hover {
    background-color: #ddd;
}

/* 3차 메뉴 스타일 */
.mobile-subsubmenu {
    display: none; /* 기본적으로 숨김 */
    padding-left: 15px;
    margin-top: 5px;
}

.mobile-subsubmenu li a {
    color: #777;
    font-size: 12px;
    text-decoration: none;
    padding: 6px;
    display: block;
    border-radius: 2px;
}

.mobile-subsubmenu li a:hover {
    background-color: #ccc;
}

/* 메뉴 활성화 상태 스타일 */
.mobile-submenu.open,
.mobile-subsubmenu.open {
    display: block;
}
