@charset "UTF-8";

/********************************************************
■ Sub Menu : 서브 메뉴 (서브비주얼 하단 오버레이 스타일)
********************************************************/

/* #sub-menu: 서브비주얼 하단에 절대위치, 배경 투명 */
#sub-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* 바: 중앙 정렬, .c 클래스와 동일한 max-width */
.smenu-bar {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 60px;
    max-width: var(--main-width, 1400px);
    margin: 0 auto;
    padding: 0;
}

/* 우측으로 뷰포트 끝까지 흰색 배경 확장 */
.smenu-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: calc(-50vw + 50%);
    background: #fff;
    z-index: -1;
}

/* ── 홈 버튼 ── */
.smenu-home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    background: #666;
    color: #fff;
    font-size: 1rem;
    transition: background 200ms, color 200ms;
}

a.smenu-home {
	color: #fff !important;
}
.smenu-home:hover { background: #666; color: #fff; }

/* ── 메뉴 아이템 공통 ── */
.smenu-item {
    position: relative;
    width: 300px;
}

/* ── 버튼 공통 ── */
.smenu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 60px;
    padding: 0 22px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 200ms, background 200ms;
}
.smenu-btn i { font-size: 0.7rem; margin-left: auto; transition: transform 250ms; }
.smenu-item:hover > .smenu-btn i { transform: rotate(180deg); }

/* ── 1차 메뉴 (흰색 배경, 어두운 텍스트) ── */
.smenu-item:first-of-type > .smenu-btn {
    background: #fff;
    color: #333;
    font-weight: 500;
    border-right: 1px solid #e0e0e0;
}
.smenu-item:first-of-type > .smenu-btn i { color: #999; }
.smenu-item:first-of-type:hover > .smenu-btn,
.smenu-item:first-of-type.open > .smenu-btn { background: #fff; }

/* ── 2차 메뉴 (어두운 배경, 밝은 텍스트) ── */
.smenu-item:nth-of-type(2) > .smenu-btn {
    background: #333;
    color: #fff;
    font-weight: 400;
}
.smenu-item:nth-of-type(2) > .smenu-btn i { color: #aaa; }
.smenu-item:nth-of-type(2):hover > .smenu-btn,
.smenu-item:nth-of-type(2).open > .smenu-btn { background: #282828; }

/* ── 드롭다운 공통 ── */
.smenu-drop {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms, visibility 200ms, transform 200ms;
}
.smenu-item.open .smenu-drop,
.smenu-item:hover .smenu-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 1차 드롭다운 (흰색 계열) */
.smenu-item:first-of-type .smenu-drop {
    background: #fff;
}
.smenu-item:first-of-type .smenu-drop li a {
    display: block;
    padding: 11px 20px;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    transition: color 150ms, background 150ms;
}
.smenu-item:first-of-type .smenu-drop li:last-child a { border-bottom: none; }
.smenu-item:first-of-type .smenu-drop li a:hover { color: #111; background: #f5f5f5; }
.smenu-item:first-of-type .smenu-drop li.on a { color: var(--main-color1); font-weight: 500; }

/* 2차 드롭다운 (어두운 계열) */
.smenu-item:nth-of-type(2) .smenu-drop {
    background: #3d3d3d;
}
.smenu-item:nth-of-type(2) .smenu-drop li a {
    display: block;
    padding: 11px 20px;
    color: #aaa;
    font-size: 0.925rem;
    border-bottom: 1px solid #4e4e4e;
    white-space: nowrap;
    transition: color 150ms, background 150ms;
}
.smenu-item:nth-of-type(2) .smenu-drop li:last-child a { border-bottom: none; }
.smenu-item:nth-of-type(2) .smenu-drop li a:hover { color: #fff; background: rgba(255,255,255,.08); }
.smenu-item:nth-of-type(2) .smenu-drop li.on a { color: #fff; font-weight: 500; }


/* ── 반응형 ── */
@media (max-width: 1024px) {
    .smenu-bar { height: 48px; }
    .smenu-home { width: 48px; font-size: 0.9rem; }
    .smenu-btn { height: 48px; padding: 0 16px; font-size: 1.125rem; gap: 8px; }
}

@media (max-width: 768px) {
    .smenu-bar { height: 50px; }
    .smenu-home { width: auto; flex: 0 0 50px; }
    .smenu-btn { height: 50px; }
    /* 홈+1차+2차 전체 너비 균등 분할 */
    .smenu-item { width: auto; flex: 1; }
    .smenu-drop { width: 100%; }
}

@media (max-width: 480px) {
    .smenu-btn { padding: 0 10px; font-size: 0.85rem; gap: 5px; }
    .smenu-drop li a { padding: 10px 14px; font-size: 0.875rem; }
	.smenu-item:first-of-type .smenu-drop li a {
		font-size: 0.875rem;
	}
}
