#headerwarp {
	font-family: "pretendard", sans-serif;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 92px;
	/* background: linear-gradient(90deg, rgba(180, 160, 140, 0.12) 0%, rgba(60, 95, 55, 0.25) 18%, rgba(50, 85, 48, 0.35) 50%, rgba(0, 0, 0, 0.15) 100%); */
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 99;
}


header { 
	position: relative;
	width: min(1600px, 100%);
	height: 100%;
	margin: 0 auto;
	z-index: 9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
}

header .header-inner { 
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	position: relative;
	align-items: center;
}

header .header-inner .logo { 
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-decoration: none;
	width: auto;
	height: auto;
}


header .header-inner .nav { 
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 80px;
	height: 100%;
	flex: 1;
}

header .header-inner .nav > li { 
	height: 100%;
	position: relative;
	z-index: 1000;
}

header .header-inner .nav > li > a { 
	font-family: "pretendard", sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	position: relative;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.5;
	background: transparent;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

header .header-inner .nav > li > a:hover { 
	color: rgba(255, 255, 255, 1);
}

header .header-inner .nav > li > a.activeMenu { 
	color: #FFFFFF;
	font-weight: 600;
}

/* 하위 메뉴 스타일 */
header .header-inner .nav > li {
	position: relative;
	z-index: 1000;
}

header .header-inner .nav > li:hover {
	z-index: 10000;
}

/* 드롭다운: 메인/서브 동일 위치 (li 기준 중앙, 상단 간격 8px 고정) */
header .header-inner .nav > li > ul {
	display: none;
	position: absolute;
	top: 80%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-radius: 8px;
	min-width: 130px;
	width: max-content;
	z-index: 99999;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
}

header .header-inner .nav > li:hover > ul,
header .header-inner .nav > li > ul:hover {
	display: block;
}

header .header-inner .nav > li > ul:before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	width: 100%;
	height: 8px;
	background: transparent;
}


header .header-inner .nav > li > ul > li {
	display: block;
	width: 100%;
}

header .header-inner .nav > li > ul > li > a {
	display: block;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: auto;
	position: relative;
	z-index: 10002;
}

header .header-inner .nav > li > ul > li > a:hover {
	color: rgba(255, 255, 255, 1);
	background: rgba(255, 255, 255, 0.1);
}

header .header-inner .icon-box { 
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	height: 100%;
}
header .header-inner .icon-box .btn-global {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	transition: background 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}
header .header-inner .icon-box .btn-global:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}
header .header-inner .icon-box .btn-global svg {
	width: 22px;
	height: 22px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: #fff;
	transition: opacity 0.2s ease;
}
header .header-inner .icon-box .btn-global:hover svg {
	opacity: 0.95;
}
header .header-inner .icon-box .gnb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
}
header .header-inner .icon-box .gnb::before {
	font-family: "bootstrap-icons";
	content: "\f479";
	font-size: 1.5rem;
	color: #fff;
	display: block;
	transition: color 0.2s ease, opacity 0.2s ease;
}
header .header-inner .icon-box .gnb:hover::before {
	opacity: 0.9;
}

.language-wrap {
	display: block;
}

header .header-inner .icon-box .search { 
	display: none;
	width: 50px;
	height: 100%;
	background: url("/images/common/search.svg") no-repeat 50% 50%;
	background-size: 36px auto;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.language-wrap {
	position: relative;
}

.language-wrap .btn-global {
	width: 44px;
	height: 44px;
}


.language-wrap>ul, .language-wrap>ul:before {
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.language-wrap>ul {
	background-color: #474747;
	border-radius: 15px;
	display: none;
	top: calc(100% + 10px);
	width: 122px;
	padding: 12px 0;
	z-index: 10000;
	pointer-events: auto;
}

.language-wrap>ul:before {
	background: url(/skins/blockContent/images/charaplay_header.png) 50% no-repeat;
	background-size: 100% 100%;
	content: "";
	display: block;
	height: 7px;
	top: -7px;
	width: 15px;
	transition: all 0.1s ease;
}

.language-wrap>ul>li>a {
	color: #888;
	display: inline-block;
	font-size: 15px;
	padding: 6px 0;
	text-align: center;
	width: 100%;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	pointer-events: auto;
	position: relative;
	z-index: 10001;
}

.language-wrap>ul>li>a.active {
	color: #fff;
}

#headerBox {
	display: block;
	width: 100%;
	height: 92px;
	margin: 0;
	padding: 0;
	display: none;
}

.gnb-layer-bg {
	display: none;
}

.search-layer {
	display: none;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 300px;
	padding: 0 50px;
	background: #fff;
	position: fixed;
	z-index: 999999;
	overflow: hidden;
}

.search-layer .header-inner {
	width: 100%;
	padding: 0 28px;
}

.search-layer .input-box {
	position: relative;
}

.search-layer .input-box input[type="text"] {
	width: 100%;
	height: 80px;
	padding: 0 80px 0 20px;
	background: none;
	border-bottom: 2px solid #00BFFE;
	font-size: 40px;
	font-weight: 500;
	color: #333;
	appearance: none;
	outline: none;
}

.search-layer .input-box input[type="text"]:focus {
	background: #f5f5f5;
}

.search-layer .input-box input[type="text"]::placeholder {
	font-weight: 300;
	color: #999;
}

.search-layer .input-box a {
	width: 50px;
	height: 50px;
	background: #f0f0f0 url("/images/common/close.svg") no-repeat 50% 50%;
	background-size: 20px auto;
	border-radius: 999px;
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

/* 반응형: 1600 / 1400 / 768 / 480 / 380 */
@media screen and (max-width: 1600px) {
	header {
		width: 100%;
		padding: 0 24px;
		box-sizing: border-box;
	}
	header .header-inner .nav {
		gap: 56px;
	}
	header .header-inner .nav > li > a {
		font-size: 17px;
		padding: 0 8px;
	}
	header .header-inner .logo img {
		max-height: 48px;
		width: auto;
	}
}

@media screen and (max-width: 1400px) {
	#headerwarp {
		height: 84px;
	}
	#headerBox {
		height: 84px;
	}
	header {
		padding: 0 20px;
	}
	header .header-inner .nav {
		gap: 40px;
	}
	header .header-inner .nav > li > a {
		font-size: 16px;
	}
	header .header-inner .logo img {
		max-height: 44px;
	}
}

@media screen and (max-width: 1279px) {
	#headerwarp {
		height: 80px;
	}
	#headerBox {
		height: 80px;
	}
	header {
		width: 100%;
	}
	header .header-inner .nav > li > a {
		padding: 0 24px;
		font-size: 15px;
	}
}

@media screen and (max-width: 1023px) {
	header .header-inner .nav > li > a {
		padding: 0 20px;
		font-size: 14px;
	}
	header .header-inner .icon-box .btn-global {
		display: none;
	}
	.language-wrap {
		display: none;
	}
	
	/* 모바일에서 하위 메뉴 숨김 */
	header .header-inner .nav > li > ul {
		display: none !important;
	}
}

.gnb-layer-bg {
	display: none;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999;
}

/* 햄버거 메뉴: 화면 거의 채우는 둥근 박스 */
.gnb-layer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: fixed;
	left: 20px;
	right: 20px;
	top: 20px;
	bottom: 20px;
	width: auto;
	max-width: calc(100vw - 40px);
	height: calc(100vh - 40px);
	padding: 24px 28px 28px;
	background: #f8f8f8;
	border-radius: 24px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
	z-index: 9999999;
	overflow: hidden;
	transform: translateX(calc(100vw + 60px));
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gnb-layer.on {
	transform: translateX(0);
}

/* 그리드: 2행 3열, 6개 카드가 영역 꽉 채움 */
.gnb-layer .nav.gnb-grid {
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 20px;
	min-height: 0;
	padding-top: 56px;
}

.gnb-layer .nav li.gnb-card {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	min-height: 0;
	position: relative;
	background-color: #e8e8e8;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gnb-layer .nav li.gnb-card:hover {
	transform: scale(1.02);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.gnb-layer .nav li.gnb-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%);
	border-radius: 20px;
	z-index: 0;
	pointer-events: none;
}

.gnb-layer .nav li.gnb-card > a.gnb-card-title {
	display: block;
	flex-shrink: 0;
	padding: 50px 40px 0;
	text-decoration: none;
	position: relative;
	z-index: 1;
	margin-bottom: 20px;
}

.gnb-layer .nav li.gnb-card > a.gnb-card-title p {
	font-size: 38px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0;
}

.gnb-layer .nav li.gnb-card > ul.gnb-card-links {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 20px;
	list-style: none;
	padding: 0 40px;
	margin: 0;
	flex: 1;
	min-height: 0;
	position: relative;
	z-index: 1;
}

.gnb-layer .nav li.gnb-card > ul.gnb-card-links li {
	border: none;
	padding: 0;
}

.gnb-layer .nav li.gnb-card > ul.gnb-card-links a {
	display: inline-block;
	text-decoration: none;
	font-size: 20px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	transition: color 0.2s ease;
}

.gnb-layer .nav li.gnb-card > ul.gnb-card-links a:hover {
	color: #fff;
}

.gnb-layer .nav li.gnb-card > ul.gnb-card-links a p {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.gnb-layer .nav li.gnb-card > a.gnb-card-title.active p {
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.gnb-layer .close {
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.5) url("/images/common/close.svg") no-repeat 50% 50%;
	background-size: 22px auto;
	border-radius: 50%;
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s ease;
}

.gnb-layer .close:hover {
	background-color: rgba(0, 0, 0, 0.7);
}

/* ========== 햄버거 메뉴 반응형: 1023px 이하 (태블릿) ========== */
@media screen and (max-width: 1023px) {
	.gnb-layer .nav.gnb-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		padding-top: 52px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title {
		padding: 44px 32px 0;
		margin-bottom: 16px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title p {
		font-size: 32px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links {
		padding: 0 32px 20px;
		gap: 14px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links a {
		font-size: 17px;
	}
	.gnb-layer .nav li.gnb-card {
		min-height: 200px;
		border-radius: 16px;
	}
	.gnb-layer .nav li.gnb-card::before {
		border-radius: 16px;
	}
}

/* ========== 640px 이하 (1열, 스크롤로 전부 노출) ========== */
@media screen and (max-width: 640px) {
	.gnb-layer .nav.gnb-grid {
		flex: 1 1 0%;
		min-height: 0;
		height: auto;
		max-height: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		grid-template-columns: 1fr;
		grid-template-rows: none;
		gap: 12px;
		padding-top: 48px;
		padding-bottom: 24px;
		align-content: start;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title {
		padding: 36px 28px 0;
		margin-bottom: 14px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title p {
		font-size: 26px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links {
		padding: 0 28px 18px;
		gap: 12px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links a {
		font-size: 16px;
	}
	.gnb-layer .nav li.gnb-card {
		min-height: 180px;
	}
}

@media screen and (max-width: 1023px) {
	header .header-inner .nav {
		display: none;
	}
	header .header-inner .icon-box .gnb::before {
		font-size: 1.75rem;
	}
}

/* ========== 768px 이하 (모바일) ========== */
@media screen and (max-width: 768px) {
	#headerwarp {
		height: 70px;
	}
	#headerBox {
		height: 70px;
	}
	header {
		padding: 0 16px;
	}
	header .header-inner .logo img {
		max-height: 38px;
		width: auto;
	}
	.gnb-layer {
		left: 16px;
		right: 16px;
		top: 16px;
		bottom: 16px;
		padding: 20px 20px 24px;
		border-radius: 20px;
	}
	.gnb-layer .nav.gnb-grid {
		gap: 14px;
		padding-top: 50px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title {
		padding: 32px 24px 0;
		margin-bottom: 12px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title p {
		font-size: 26px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links {
		padding: 0 24px 16px;
		gap: 12px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links a,
	.gnb-layer .nav li a p {
		font-size: 15px;
	}
	.gnb-layer .nav li > ul li a {
		font-size: 14px;
	}
	.gnb-layer .nav li.gnb-card {
		min-height: 150px;
		border-radius: 14px;
	}
	.gnb-layer .nav li.gnb-card::before {
		border-radius: 14px;
	}
	.gnb-layer .close {
		top: 16px;
		right: 16px;
		width: 42px;
		height: 42px;
		background-size: 18px auto;
	}
}

/* ========== 480px 이하 (소형 모바일) ========== */
@media screen and (max-width: 480px) {
	#headerwarp {
		height: 64px;
	}
	#headerBox {
		height: 64px;
	}
	header {
		padding: 0 12px;
	}
	header .header-inner .logo img {
		max-height: 32px;
	}
	.gnb-layer {
		left: 12px;
		right: 12px;
		top: 12px;
		bottom: 12px;
		padding: 16px 16px 20px;
		border-radius: 16px;
	}
	.gnb-layer .nav.gnb-grid {
		gap: 12px;
		padding-top: 44px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title {
		padding: 28px 20px 0;
		margin-bottom: 10px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title p {
		font-size: 22px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links {
		padding: 0 20px 14px;
		gap: 10px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links a,
	.gnb-layer .nav li a p {
		font-size: 14px;
	}
	.gnb-layer .nav li > ul li a {
		font-size: 13px;
	}
	.gnb-layer .nav li.gnb-card {
		min-height: 120px;
		border-radius: 12px;
	}
	.gnb-layer .nav li.gnb-card::before {
		border-radius: 12px;
	}
	.gnb-layer .close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		background-size: 16px auto;
	}
}

/* ========== 380px 이하 (초소형 모바일) ========== */
@media screen and (max-width: 380px) {
	#headerwarp {
		height: 58px;
	}
	#headerBox {
		height: 58px;
	}
	header {
		padding: 0 10px;
	}
	header .header-inner .logo img {
		max-height: 28px;
	}
	.gnb-layer {
		left: 8px;
		right: 8px;
		top: 8px;
		bottom: 8px;
		padding: 12px 12px 16px;
		border-radius: 14px;
	}
	.gnb-layer .nav.gnb-grid {
		padding-top: 40px;
		gap: 10px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title {
		padding: 22px 16px 0;
		margin-bottom: 8px;
	}
	.gnb-layer .nav li.gnb-card > a.gnb-card-title p {
		font-size: 18px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links {
		padding: 0 16px 12px;
		gap: 8px;
	}
	.gnb-layer .nav li.gnb-card > ul.gnb-card-links a,
	.gnb-layer .nav li a p {
		font-size: 13px;
	}
	.gnb-layer .nav li > ul li a {
		font-size: 12px;
	}
	.gnb-layer .nav li.gnb-card {
		min-height: 150px;
		border-radius: 10px;
	}
	.gnb-layer .nav li.gnb-card::before {
		border-radius: 10px;
	}
	.gnb-layer .close {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
		background-size: 14px auto;
	}
}

/* 서브 페이지: 네비·글로벌 아이콘·햄버거 검정 (위치 동일 유지) */
#headerwarp.is-sub header .header-inner .nav > li > a {
	color: #222;
}
#headerwarp.is-sub header .header-inner .nav > li > a:hover,
#headerwarp.is-sub header .header-inner .nav > li > a.activeMenu {
	color: #222;
}
#headerwarp.is-sub header .header-inner .icon-box .btn-global {
	border-color: rgba(0, 0, 0, 0.5);
}
#headerwarp.is-sub header .header-inner .icon-box .btn-global:hover {
	border-color: #222;
}
#headerwarp.is-sub header .header-inner .icon-box .btn-global svg {
	color: #222;
}
#headerwarp.is-sub header .header-inner .icon-box .gnb::before {
	color: #222;
}
