:root {
	--primary-red: #9c1c1f;
	--primary-blue: #253a73;
	--primary-gold: #9c8654;
	--secondary-color: #656565;
	--color-gray-100: #000;
	--color-gray-90: #1e2124;
	--color-gray-80: #33363d;
	--color-gray-70: #464c53;
	--color-gray-60: #58616a;
	--color-gray-50: #6d7882;
	--color-gray-40: #8a949e;
	--color-gray-30: #b1b8be;
	--color-gray-20: #cdd1d5;
	--color-gray-10: #e6e8ea;
	--color-gray-5: #f4f5f6;
	--color-red: #ff3b30;
	--color-blue: #007aff;

	--shadow1: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

body.no-scroll {
  overflow: hidden;
}
.allmenu_bg {
  width: 100%;
  height: 100%;
  background: rgba(1, 1, 1, 0.6);
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.bg-gray10 {
	background: #f3f4f6;
}
.text-left {
	text-align: left !important;
}
.text-center {
	text-align: center !important;
}
.text-right {
	text-align: right !important;
}
.color-gold {
	color: var(--primary-gold) !important;
}

.inner {
	width: min(1200px, 100%);
	margin: 0 auto;
}
@media (max-width: 1280px) {
	.inner {
		padding-left: 40px;
		padding-right: 40px;
	}
}
@media (max-width: 1024px) {
	.inner {
		padding-left: 20px;
		padding-right: 20px;
	}
}
.header-container {
	/* --header-h: 120px; */
	--header-h: 100px;
	background: rgba(6, 30, 71, 0.95);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
}
.subpage .header-container {
	position: relative;
}
#wrap.subpage {
	overflow: visible;
}
/* 내용이 적어도 푸터가 브라우저 하단에 오도록 (sticky footer)
   서브페이지는 header(#wrap), 본문, footer 가 body 의 직계 자식이라 body 를 세로 flex 로 구성 */
body:has(> #wrap.subpage) {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
body:has(> #wrap.subpage) > * {
	flex-shrink: 0;
	width: 100%; /* flex 세로 배치에서 margin:0 auto 요소(.inner)가 줄어들지 않도록 */
}
body:has(> #wrap.subpage) > .footer {
	margin-top: auto;
}

.logo {
	flex: none;
}
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1200px, 100%);
	height: var(--header-h);
	margin: 0 auto;
}
.gnb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
}
.gnb li {
	flex: 1;
}
.gnb li a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--header-h);
	padding: 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}

.btn-menu {
    position: relative;
    width: 20px;
    height: 16px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.btn-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.btn-menu span:nth-of-type(1) {
    top: 0;
    transform-origin: left center;
}

.btn-menu span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.btn-menu span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.btn-menu.open span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0;
    left: 4px;
}

.btn-menu.open span:nth-of-type(2) {
    width: 0;
    opacity: 0;
}

.btn-menu.open span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 14px;
    left: 4px;
}

@media (max-width: 1280px) {
	.header {
		padding-left: 40px;
		padding-right: 40px;
	}
	.gnb {
		gap: 30px;
	}
}
@media (max-width: 1024px) {
	.header-container {
		--header-h: 100px;
	}
	.header {
		padding-left: 20px;
		padding-right: 20px;
		gap: 40px;
	}
	.btn-menu {
		display: block;
	}

	.nav {
		position: absolute;
		top: var(--header-h);
		left: 0;
		width: 100%;
		background: #fff;
		display: none;
	}
	.gnb {
		flex-direction: column;
		gap: 0;
	}
	.gnb li {
		width: 100%;
	}
	.gnb li a {
		width: 100%;
		height: auto;
		color: #111;
		padding: 20px 0;
		border-bottom: 1px solid #D9DDE8;
	}
}
@media (max-width: 768px) {
}
@media (max-width: 480px) {
}
@media (max-width: 380px) {
}

.footer {
	background: #262626;
	border-top: 1px solid #262626;
	padding: 43px 0;
}
.footer__row {
	display: flex;
	align-items: center;
	gap: 80px;
}
.footer__logo {
	flex: none;
}
.footer__logo img {
	display: block;
	max-width: 160px;
	height: auto;
	/* filter: brightness(0) invert(1); */ /* (제거) 어두운 배경에서 로고를 흰색으로 만들던 필터 */
}
.footer__content {
	flex: 1;
}
.footer__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}
.footer__info li {
	font-weight: 500;
	color: #a6a6a6;
}
.footer__info li >* {
	display: inline-block;
}
/* reset.css에서 strong 굵기가 풀려 있어 푸터 라벨(주소/이메일 등)은 직접 지정 */
.footer__info strong {
	font-weight: 700;
}
.footer__copy {
	margin-top: 1em;
	font-weight: 500;
	text-align: left;
	color: #a6a6a6;
}

/* 한글/영문 사이트 이동 링크 (pbf 방식: 둥근 테두리 버튼) */
.header .language {
	flex: none;
	margin-left: 24px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	border: 1px solid #fff;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.header .language:hover {
	background: #fff;
	color: #243b65;
}
@media (max-width: 1024px) {
	.header .language {
		margin-left: auto; /* 모바일: 메뉴 버튼 왼쪽 끝에 붙임 */
		margin-right: 12px;
	}
}

/* PC: 상단 메뉴를 오른쪽(ENG/KOR 버튼 옆)으로 붙임 */
@media (min-width: 1025px) {
	.header .nav {
		margin-left: auto;
	}
}

/* 모바일: 헤더의 언어 링크는 숨기고, 열린 메뉴 맨 위(오른쪽)에 큰 터치 영역의 버튼 + 구분선 표시 */
.nav-lang {
	display: none;
}
@media (max-width: 1024px) {
	.header .language {
		display: none;
	}
	.nav-lang {
		display: flex;
		justify-content: flex-end;
		padding: 14px 20px;
		border-bottom: 1px solid #D9DDE8;
	}
	.nav-lang__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 72px;
		height: 44px; /* 터치하기 쉬운 크기 */
		padding: 0 22px;
		font-size: 15px;
		font-weight: 700;
		color: #243b65;
		border: 1px solid #243b65;
		border-radius: 22px;
		text-decoration: none;
	}
	.nav-lang__btn:hover {
		background: #243b65;
		color: #fff;
	}
	/* 메뉴 버튼(X)이 헤더 폭이 모자라도 찌그러지지 않게 고정하고, 대신 로고가 줄어들게 함 */
	.btn-menu {
		flex: none;
	}
	.header .logo {
		min-width: 0;
		flex: 0 1 auto;
	}
	.header .logo img {
		max-width: 100%;
		height: auto;
	}
	.header:has(.btn-menu.open) {
		gap: 12px;
	}
}
