


/* Navigation */
nav {
	position: fixed;
	width: 100%;

	padding: 20px 50px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	animation: slideDown 0.8s ease;
	transition: all 0.3s ease;


    box-shadow: 0 5px 10px rgba(23, 80, 86, 0.18);

}

.header__start {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header_로고_small img {
	display: block;
	height: 60px;
	width: auto;
}

.header_로고 img {
	display: block;
	height: 40px;
	width: auto;
}
.header_로고_small{
    display: none;
}



nav.scrolled {
	padding: 15px 25px;
	background: rgba(242, 242, 242, 0.98);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	gap: 20px;
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s ease;
}

.logo-link:hover {
	transform: scale(1.05);
}

.logo-svg {
	width: 40px;
	height: 40px;
	margin-right: 10px;
	flex-shrink: 0;
}

.nav-links {
	display: flex;
	gap: 30px;
	list-style: none;
	align-items: center;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: var(--text-light);
	text-decoration: none;
	font-size: 15px;
	letter-spacing: 2px;
	text-transform: uppercase;
	position: relative;
	transition: all 0.3s ease;
	padding: 5px 10px;
	opacity: 0.7;
}

.nav-links a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--accent);
	opacity: 0;
	transform: skewX(-10deg);
	transition: all 0.3s ease;
	z-index: -1;
}

.nav-links a:hover {
	color: white;
	opacity: 1;
}

.nav-links a:hover::before {
	opacity: 1;
}

.nav-links a.active {
	color: rgb(0, 0, 0);
	opacity: 1;
}

.nav-links a.active::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 2px;
	background: var(--accent);
}


.nav-links > li {
    position: relative;
    padding: 20px 0;
}

.nav-item {
    list-style: none;
}

/* 드롭다운 패널 */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    width: 230px;
    background: rgba(8, 8, 8, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
}

/* 위쪽 작은 삼각형 */
.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);

    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(8, 8, 8, 0.95);
}

/* 패널 안 링크 */
.dropdown-panel a {
    display: block;
    padding: 13px 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
}

/* 기존 nav hover 배경 제거 */
.dropdown-panel a::before,
.dropdown-panel a::after {
    display: none;
}

.dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* 호버 시 열림 */
.has-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 1001;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	margin-right: 60px;
}

.menu-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: #3f3f3f;
	margin: 3px 0;
	border-radius: 2px;
	transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일-nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 0 46px;
    box-sizing: border-box;
}

.mobile-nav.active {
    right: 0;
}

/* 상단 헤더 */
.mobile-nav-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 가운데 제목 */
.mobile-nav-header strong {
    font-size: 22px;
    color: #000;
    font-weight: 800;
    text-align: center;
}

/* 뒤로가기 / 닫기 공통 */
.mobile-back,
.mobile-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: none;
    color: #111;
    cursor: pointer;
    z-index: 2001;
}

/* 뒤로가기 */
.mobile-back {
    left: 0;
    font-size: 38px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-back.active {
    opacity: 1;
    pointer-events: auto;
}

/* 닫기 */
.mobile-close {
    right: 0;
    font-size: 42px;
}

/* 메뉴 리스트 */
.mobile-nav-links,
.mobile-sub-menu {
    display: none;
    list-style: none;
    padding: 60px 0 0;
    margin: 0;
}

.mobile-nav-links.active,
.mobile-sub-menu.active {
    display: block;
}

/* 리스트 간격 */
.mobile-nav-links li,
.mobile-sub-menu li {
    margin-bottom: 42px;
}

/* 메뉴 텍스트 */
.mobile-nav-links a,
.mobile-sub-menu a,
.mobile-menu-btn {
    width: 100%;
    border: none;
    background: none;
    text-decoration: none;
    color: #000;
    font-size: 26px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

/* 오른쪽 화살표 있는 버튼 */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-btn span {
    font-size: 38px;
    font-weight: 300;
}




/* 모바일 햄버거 위치 고정 보정 */
#navbar {
    width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.nav-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    margin-left: auto;
    flex: 0 0 auto;
}

/* 모바일 */
@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .menu-toggle {
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0;
    }
}




/* Responsive - navbar only */
@media (max-width: 768px) {
    .header_로고{
        display: none;
    }

    .header_로고_small{
        display: block;
    }


	nav {
		padding: 15px 20px;
	}

	.nav-links {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.mobile-nav {
		display: block;
	}

	.nav-container {
		flex-wrap: nowrap;
	}
}