@charset "UTF-8";

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: #171717;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	z-index: 1000;
}

header .inner-wrap {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

header .header-logo {
	display: flex;
	align-items: center;
}

header .header-logo img {
	height: 32px;
	display: block;
}

/* GNB (Global Navigation) */
header .gnb {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

header .gnb > ul {
	display: flex;
	gap: 50px;
}

header .gnb > ul ~ li {
	display: none;
}

header .gnb > ul > li > a {
	font-size: 16px;
	font-weight: 500;
	color: var(--white);
	transition: color 0.3s;
}

header .gnb > ul > li > a:hover {
	color: #ED1C2B;
}

/* Depth2 menu */
.gnb > ul > li {
	position: relative;
}

.gnb > ul > li .depth2 {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 180px;
	background: #171717;
	border-radius: 8px;
	padding: 15px 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 100;
}

.gnb > ul > li .depth2::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 0;
	width: 100%;
	height: 20px;
	pointer-events: none;
}

.gnb > ul > li:hover .depth2 {
	display: block;
}

.gnb > ul > li .depth2 li a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	color: #aaa;
	text-align: center;
	transition: all 0.3s;
}

.gnb > ul > li .depth2 li a:hover {
	color: var(--white);
	background: rgba(255, 255, 255, 0.05);
}

/* Menu button (hamburger) */
.btn-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
}

.btn-menu img {
	width: 24px;
	height: auto;
}

/* Sidebar */
.sidebar {
	position: fixed;
	top: 0;
	right: -700px;
	width: 700px;
	height: 100vh;
	background: #1A1A1A;
	z-index: 2000;
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.sidebar.active {
	right: 0;
}

/* Sidebar Header (모바일 전용 - PC에서는 숨김) */
.sidebar-header {
	/* display: none; */
}

.sidebar-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 100px 90px;
}

.sidebar-content {
	display: flex;
	justify-content: space-between;
}

/* Sidebar Main Menu (Left) */
.sidebar-main-menu ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sidebar-main-menu li {
	cursor: pointer;
}

.sidebar-main-menu li a {
	display: block;
	font-size: 24px;
	font-weight: 400;
	color: rgba(255 255 255 / 50%);
	padding: 12px 0;
	transition: color 0.3s;
}

.sidebar-main-menu li:hover a,
.sidebar-main-menu li.active a {
	color: var(--white);
}

/* 모바일 아코디언 요소 - PC에서 숨김 */
.mob-arrow {
	display: none;
}

.mob-sub-list {
	display: none;
}

/* Sidebar Sub Menu (Right) */
.sidebar-sub-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sub-menu-group {
	display: none;
	flex-direction: column;
	gap: 12px;
}

.sub-menu-group.active {
	display: flex;
}

.sub-menu-btn {
	display: flex;
	width: 270px;
	height: 60px;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	background: transparent;
	border: 2px solid #AD4BFF;
	border-radius: 8px;
	font-size: 15px;
	color: #fff;
	transition: all 0.3s;
}

.sub-menu-arrow {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--white);
	border-radius: 6px;
	padding: 6px;
}

.sub-menu-arrow img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sub-menu-btn:hover {
	background: #AD4BFF;
	border-color: #AD4BFF;
	color: var(--white);
}

.sub-menu-btn:hover .sub-menu-arrow {
	display: flex;
}

.sub-menu-btn.active {
	background: #ED1C2B;
	border-color: #ED1C2B;
	color: var(--white);
}

.sub-menu-btn.active .sub-menu-arrow {
	display: flex;
}

/* Sidebar Footer */
.sidebar-footer {
	padding-top: 40px;
	margin-top: auto;
}

.sidebar-footer .sidebar-logo img {
	height: 28px;
	opacity: 0.8;
}

/* Close Button */
.btn-close {
	position: absolute;
	top: 34px;
	left: 34px;
	width: 22px;
	height: 22px;
	z-index: 10;
}

.btn-close span {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--white);
}

.btn-close span:first-child {
	transform: rotate(45deg);
}

.btn-close span:last-child {
	transform: rotate(-45deg);
}

/* Sidebar overlay */
.sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1999;
}

.sidebar-overlay.active {
	display: block;
}

/* Footer - 시안 기준 레이아웃 */
footer {
	position: relative;
	z-index: 1;
	padding: 50px 0 40px;
	color: #fff;
	/* background: #171717; */
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .f-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

footer .f-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

footer .f-logo {
	margin-bottom: 5px;
}

footer .f-logo img {
	height: 32px;
}

footer .f-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

footer .f-info p {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.5;
}

footer .f-info p b {
	color: #fff;
}

footer .f-info .divider {
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.3);
}

footer .f-company {
	color: rgba(255, 255, 255, 0.6);
}

footer .f-contact {
	color: rgba(255, 255, 255, 0.5);
}

footer .f-copy {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 5px;
}

footer .f-right {
	display: flex;
	align-items: flex-start;
}

footer .f-privacy {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 0.3s;
}

footer .f-privacy:hover {
	color: #fff;
}

/* Mobile styles */
@media screen and (max-width: 1024px) {
	header {
		height: 70px;
	}

	header .gnb {
		display: none;
	}

	footer .f-content {
		flex-direction: column;
		gap: 30px;
	}

	footer .f-right {
		align-self: flex-start;
	}
}

@media screen and (max-width: 767px) {
	header {
		height: 60px;
	}

	header .header-logo img {
		height: 26px;
	}

	/* 모바일 사이드바 */
	.sidebar {
		width: 100%;
		right: -100%;
		overflow: hidden;
		height: 100vh;
		height: 100dvh;
	}

	.sidebar-inner {
		padding: 30px 24px 100px;
		position: relative;
		height: 100%;
		box-sizing: border-box;
	}

	.sidebar-footer {
		position: absolute;
		bottom: 40px;
		left: 24px;
	}

	/* 모바일: 헤더(닫기+타이틀) 표시 */
	.sidebar-header {
		display: flex;
		align-items: center;
		gap: 16px;
		margin-bottom: 60px;
	}

	/* 모바일: 닫기버튼 위치 재정의 */
	.btn-close {
		position: relative;
		top: auto;
		left: auto;
		flex-shrink: 0;
	}

	/* 모바일: PC 2단 구조 숨김 */
	.sidebar-content {
		flex-direction: column;
	}

	.sidebar-sub-menu {
		display: none;
	}

	/* 모바일: 대메뉴 스타일 */
	.sidebar-main-menu ul {
		gap: 0;
	}

	.sidebar-main-menu li a,
	.sidebar-main-menu li {
		-webkit-tap-highlight-color: transparent;
	}

	.sidebar-main-menu li a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 16px;
		font-weight: 500;
		color: rgba(255,255,255,0.5);
		padding: 16px 4px;
	}

	.sidebar-main-menu li > a {
		font-size: 20px;
		font-weight: 400;
	}
	
	.sidebar-main-menu li.open > a {
		color: var(--white);
	}

	/* 모바일: 대메뉴 화살표 표시 */
	.mob-arrow {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		background: var(--white);
		border-radius: 6px;
		padding: 5px;
		flex-shrink: 0;
		transition: transform 0.3s;
	}

	.mob-arrow img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.sidebar-main-menu li.open > a .mob-arrow {
		transform: rotate(90deg);
	}

	/* 모바일: 아코디언 서브메뉴 */
	.mob-sub-list {
		display: none;
		flex-direction: column;
		gap: 12px;
		padding: 8px 0 20px;
	}

	.mob-sub-list .sub-menu-btn:not(:last-child) {
		margin-bottom: 10px;
	}

	.mob-sub-list .sub-menu-btn {
		width: 100%;
		height: 60px;
		padding: 0 20px;
		font-weight: 400;
	}

	/* 서브메뉴 비활성: 테두리만 */
	.mob-sub-list .sub-menu-btn {
		background: transparent;
		border: 2px solid #AD4BFF;
	}

	/* 서브메뉴 활성: 보라 배경 채움 */
	.mob-sub-list .sub-menu-btn.active {
		background: #AD4BFF;
		border-color: #AD4BFF;
	}

	.mob-sub-list .sub-menu-arrow {
		display: flex;
	}

	footer {
		padding: 30px 0 24px;
	}

	footer .f-info {
		gap: 4px;
	}

	footer .f-info p {
		font-size: 14px;
	}

	footer .f-info .divider {
		display: none;
	}

	footer .f-company {
		display: flex;
		flex-wrap: wrap;
		gap: 3px;
	}

	footer .f-contact .divider {
		display: inline;
	}

	footer .f-contact .divider-email {
		display: none;
	}

	footer .f-contact .f-email {
		display: block;
	}

	footer .f-content {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto;
		gap: 0;
		align-items: center;
	}

	footer .f-left {
		display: contents;
	}

	footer .f-logo {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 0;
	}

	footer .f-info {
		grid-column: 1 / -1;
		grid-row: 2;
		margin-top: 16px;
	}

	footer .f-right {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
	}

	footer .f-company .f-privacy {
		font-size: 14px;
		margin-left: 8px;
	}

	footer .f-privacy {
		font-size: 13px;
	}
}

/* 모바일 전용 줄바꿈 */
.mo-br { display: none; }

@media (max-width: 768px) {
	.mo-br { display: block; }
}
