#headerwarp {
	font-family: "pretendard", sans-serif;
	width: 100%;
	height: 130px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	background: #fff;
	transition: transform 0.28s ease;
	will-change: transform;
}

#headerwarp.scroll {
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

#headerwarp.is-sub.scroll {
	background: rgba(17, 17, 17, 0.78);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#headerwarp.header-hide {
	transform: translateY(-100%);
}


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;
	gap: 16px;
}

header .header-inner .header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-shrink: 0;
}

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: 20px;
	font-weight: 400;
	color: #222;
	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: #2979FF;
}

header .header-inner .nav > li > a.activeMenu { 
	color: #000FFF;
	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 !important;
	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: none;
	visibility: hidden;
}

header .header-inner .nav > li:hover > ul,
header .header-inner .nav > li > ul:hover {
	display: none !important;
}

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);
}

/* 견적문의 버튼 (PC 네비 끝) - 캡슐형 */
header .header-inner .nav-quote {
	margin-left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
header .header-inner .btn-quote {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: auto;
	padding: 18px 50px;
	font-size: 20px;
	color: #fff;
	background: #222;
	border: none;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
header .header-inner .btn-quote:hover {
	background: #333;
	color: #fff;
}

header .header-inner .icon-box { 
	display: none;
	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: #000;
}
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: #000;
	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;
	min-width: 44px;
	min-height: 44px;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
header .header-inner .icon-box .gnb::before {
	font-family: "bootstrap-icons";
	content: "\f479";
	font-size: 1.5rem;
	color: #000;
	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: #000;
}

#headerBox {
	display: block;
	width: 100%;
	height: 130px;
	margin: 0;
	padding: 0;
}

.search-layer {
	display: none;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 300px;
	padding: 0 50px;
	background: #000;
	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 {
		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 .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;
	}
}

@media screen and (max-width: 1023px) {
	header .header-inner .nav > li > a {
		padding: 0 20px;
	}
	header .header-inner .icon-box .btn-global {
		display: none;
	}
	.language-wrap {
		display: none;
	}
	
	/* 모바일에서 하위 메뉴 숨김 */
	header .header-inner .nav > li > ul {
		display: none !important;
	}
}

/* 모바일 GNB 패널 */
html.gnb-open {
	overflow: hidden;
}

.gnb-layer-bg {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(15, 18, 28, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.32s ease, visibility 0.32s ease;
}

.gnb-layer-bg.on {
	opacity: 1;
	visibility: visible;
}

.gnb-layer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(100%, 380px);
	z-index: 9999999;
	transform: translateX(100%);
	transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
	pointer-events: none;
	overflow: hidden;
}

.gnb-layer.on {
	transform: translateX(0);
	pointer-events: auto;
}

.gnb-panel {
	height: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: none;
	border-left: none;
}

.gnb-layer.on .gnb-panel {
	border-left: 1px solid #eef1f6;
	box-shadow: -6px 0 24px rgba(15, 18, 28, 0.08);
}

.gnb-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid #eef1f6;
	flex-shrink: 0;
}

.gnb-panel-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.gnb-panel-logo img {
	height: 36px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.gnb-panel-close {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border: none;
	border-radius: 12px;
	background: #f3f5f9 url("/images/common/close.svg") no-repeat 50% 50%;
	background-size: 18px auto;
	cursor: pointer;
	transition: background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.gnb-panel-close:hover {
	background-color: #e8ecf3;
}

.gnb-panel-nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0;
}

.gnb-menu-list {
	list-style: none;
	margin: 0;
	padding: 0 12px;
}

.gnb-menu-list li {
	margin: 0;
}

.gnb-menu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 16px;
	margin-bottom: 4px;
	border-radius: 14px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1f2c;
	text-decoration: none;
	letter-spacing: -0.02em;
	transition: background 0.2s ease, color 0.2s ease;
}

.gnb-menu-item::after {
	font-family: "bootstrap-icons";
	content: "\f285";
	font-size: 14px;
	font-weight: 400;
	color: #b4bcc8;
	transition: color 0.2s ease, transform 0.2s ease;
}

.gnb-menu-item:hover {
	background: #f5f8ff;
	color: #2979FF;
}

.gnb-menu-item:hover::after {
	color: #2979FF;
	transform: translateX(2px);
}

.gnb-menu-item.active {
	background: #edf3ff;
	color: #2979FF;
}

.gnb-menu-item.active::after {
	color: #2979FF;
}

.gnb-panel-foot {
	flex-shrink: 0;
	padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #eef1f6;
	background: #fafbfc;
}

.gnb-panel-tagline {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 500;
	color: #7a8494;
	letter-spacing: -0.01em;
}

.gnb-panel-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #2979FF;
	border-radius: 14px;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.2s ease;
}

.gnb-panel-cta:hover {
	background: #1f67e8;
	color: #fff;
}

@media screen and (max-width: 1023px) {
	header .header-inner .nav {
		display: none;
	}
	header .header-inner .icon-box {
		display: flex;
	}
	header .header-inner .icon-box .gnb::before {
		font-size: 1.75rem;
	}
	header .header-inner .header-actions {
		gap: 10px;
	}
	header .header-inner .btn-quote {
		padding: 12px 22px;
		font-size: 15px;
		white-space: nowrap;
	}
	header .header-inner .logo {
		flex: 1;
		min-width: 0;
		max-width: calc(100% - 140px);
	}
	header .header-inner .logo img {
		max-height: 40px;
		width: auto;
		max-width: 100%;
		object-fit: contain;
		object-position: left center;
	}
}

/* ========== 768px 이하 (모바일) ========== */
@media screen and (max-width: 768px) {
	#headerwarp {
		height: 70px;
	}
	#headerBox {
		height: 70px;
	}
	header {
		padding: 0 16px;
	}
	header .header-inner {
		gap: 10px;
	}
	header .header-inner .logo {
		max-width: calc(100% - 128px);
	}
	header .header-inner .logo img {
		max-height: 38px;
		width: auto;
	}
	header .header-inner .btn-quote {
		padding: 10px 16px;
		font-size: 14px;
		border-radius: 999px;
	}
	header .header-inner .icon-box .gnb {
		width: 42px;
		height: 42px;
		min-width: 42px;
		min-height: 42px;
	}
	.search-layer {
		height: auto;
		min-height: 180px;
		padding: 72px 16px 32px;
		box-sizing: border-box;
	}
	.search-layer .header-inner {
		padding: 0;
	}
	.search-layer .input-box input[type="text"] {
		height: 52px;
		padding: 0 52px 0 12px;
		font-size: 18px;
	}
	.search-layer .input-box a {
		width: 40px;
		height: 40px;
		right: 4px;
	}
	.gnb-panel-head {
		padding: 16px 16px;
	}
	.gnb-panel-logo img {
		height: 32px;
	}
	.gnb-menu-item {
		font-size: 17px;
		padding: 16px 14px;
	}
}

/* ========== 480px 이하 (소형 모바일) ========== */
@media screen and (max-width: 480px) {
	#headerwarp {
		height: 64px;
	}
	#headerBox {
		height: 64px;
	}
	header {
		padding: 0 12px;
	}
	header .header-inner .logo {
		max-width: calc(100% - 112px);
	}
	header .header-inner .logo img {
		max-height: 32px;
	}
	header .header-inner .btn-quote {
		padding: 9px 14px;
		font-size: 13px;
	}
	header .header-inner .header-actions {
		gap: 8px;
	}
	header .header-inner .icon-box .gnb {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}
	header .header-inner .icon-box .gnb::before {
		font-size: 1.5rem;
	}
	.gnb-layer {
		width: 100%;
		max-width: 100%;
	}
}

/* ========== 380px 이하 (초소형 모바일) ========== */
@media screen and (max-width: 380px) {
	#headerwarp {
		height: 58px;
	}
	#headerBox {
		height: 58px;
	}
	header {
		padding: 0 10px;
	}
	header .header-inner .logo {
		max-width: calc(100% - 100px);
	}
	header .header-inner .logo img {
		max-height: 28px;
	}
	header .header-inner .btn-quote {
		padding: 8px 12px;
		font-size: 12px;
	}
	.gnb-menu-item {
		font-size: 16px;
	}
	.gnb-panel-foot {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* 서브 페이지: 헤더 컬러 반전 (다크 바 + 라이트 텍스트/아이콘) */
#headerwarp.is-sub {
	background: #111;
}
#headerwarp.is-sub header .header-inner .logo img {
	filter: brightness(0) invert(1);
}
#headerwarp.is-sub header .header-inner .nav > li > a {
	color: rgba(255, 255, 255, 0.88);
}
#headerwarp.is-sub header .header-inner .nav > li > a:hover,
#headerwarp.is-sub header .header-inner .nav > li > a.activeMenu {
	color: #fff;
}
#headerwarp.is-sub header .header-inner .icon-box .btn-global {
	border-color: rgba(255, 255, 255, 0.45);
}
#headerwarp.is-sub header .header-inner .icon-box .btn-global:hover {
	border-color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.08);
}
#headerwarp.is-sub header .header-inner .icon-box .btn-global svg {
	color: #fff;
}
#headerwarp.is-sub header .header-inner .icon-box .gnb::before {
	color: #fff;
}
#headerwarp.is-sub header .header-inner .btn-quote {
	background: #fff;
	color: #111;
}
#headerwarp.is-sub header .header-inner .btn-quote:hover {
	background: #f1f1f1;
	color: #111;
}

