/* 안내 메시지 */
#introBox {
	position: fixed;
	left: 50%;
	bottom: -100px;
	transform: translate(-50%, 100%);
	opacity: 0;
	background: #e6efff;
	color: #000;
	padding: 1.5rem;
	width: 90%;
	max-width: 120rem;
	font-size: 1.6rem;
	text-align: center;
	border-radius: 10px 10px 0 0;
	transition: all 0.3s ease;
	z-index: 1000;
}

#introBox.show {
	transform: translate(-50%, 0);
	bottom: 0;
	opacity: 0.95;
}

#introBox .intro-text-box{
	display: flex;
	align-items: center;
	margin: 0 auto;
	width: 90%;
	gap: 2rem;
	justify-content: space-between;
	font-size: 1.5rem;
}

#introBox button {
	padding: 1rem 2rem;
	font-size: 1.5rem;
	background: #1f2937;
	color: #ffffff;
	border: 0;
	border-radius: 1rem;
	cursor: pointer;
}

/* ==== 전역변수 ==== */
:root{
	/* 프레임 원본 비율 */
	--mag-aspect-w: 654px;
	--mag-aspect-y: 681px;
	
	/* 프레임 너비 */
	--mag-width: 520px;
	--mag-ar: 0.96035;
	
	/* 원 지름 및 중심 좌표 */
	--glass-d: 60%;
	--glass-cx: 62%;
	--glass-cy: 48%;
	
	/* 타이포/여백 스케일 */
	--title-size: 48px;
	--sub-size: 20px;
	--button-size: 22px;
	--grid-gap: 28px;
}

/* ==== 메인 영역 ==== */
.nav-fin-main {
	position: relative;
	background: linear-gradient(to bottom, #0072ce, #005ea2);
	color: #fff;
	height: 650px;
	overflow: hidden;
}

.nav-main-background {
	position: absolute;
	width: 741px;
	height: 703px;
	top: 10px;
	left: 90px;
	z-index: 0;
	background-image: url('../../img/navi/img-index-bg-01.png');
	background-size: 90%;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
}

/* 메인 콘텐츠 영역 */
.nav-main-wrapper {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	justify-items: center;
	width: min(100%, 1200px);
	height: 100%;
	margin: 0 auto;
	padding: 60px;
	box-sizing: border-box;
}

/* 왼쪽 이미지 영역 */
.nav-main-image-box {
	position: relative;
	width: 100%;
	min-height: calc(min(100%, var(--mag-width)) * var(--mag-ar));
	padding-top: 13%;
	padding-left: 27%;
}

.nav-main-image-box::before{
	content: "";
	display: block;
	padding-top: calc(var(--mag-ar) * 100%);
}

@supports (aspect-ratio: 1 / 1){
	.nav-main-image-box {
		aspect-ratio: var(--mag-ar);
	}
	.nav-main-image-box::before{ content: none; padding-top: 0; }
}

.nav-main-image-line{
	position: absolute;
	z-index: 2;
	width: 100%;
	height: 100%;
	overflow: hidden;
	transition: all 1s ease;
}

.nav-main-image-line.animate-image{
	opacity: 1;
	transform: translateY(0);
}

.nav-main-image-line img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.nav-main-image{
	position: absolute;
	left: var(--glass-cx);
	top: var(--glass-cy);
	transform: translate(-50%, -50%);
	width: var(--glass-d);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	z-index: 1;
}

.nav-main-image.animate-image{
	opacity: 1;
	translate: 0 0;
}

/* 슬라이드 */
.nav-main-image .mySwiper,
.nav-main-image .swiper-wrapper,
.nav-main-image .swiper-slide{
	width: 100%;
	height: 100%;
}

.mySwiper .swiper-slide {
	border-radius: 50%;
}

.mySwiper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* 오른쪽 텍스트  영역 */
.nav-main-text {
	max-width: 520px;
	display: grid;
	grid-auto-rows: max-content;
	align-content: center;
	justify-items: center;
	gap: 10px;
	text-align: center;
}

.nav-main-highlight {
	position: relative;
	font-size: 2.4rem;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 4px;
	line-height: 1.5;
}

.nav-main-highlight::before {
	content: '';
	display: block;
	position: absolute;
	width: 37rem;
	background: #003f7f;
	height: 3rem;
	z-index: -1;
	top: 2rem;
}

.nav-main-highlight.text-01::before {
	width: 36.5rem;
	left: 0;
}

.nav-main-highlight.text-02::before {
	width: 28.8rem;
	left: 0;
}

.nav-main-title {
	font-size: clamp(28px, 4.2vw, var(--title-size));
	font-weight: 700;
	margin: 8px 0 4px;
	line-height: 1.2;
}

.nav-main-subtext {
	font-size: clamp(14px, 2.2vw, var(--sub-size));
	font-weight: 400;
	margin-bottom: 6rem;
	line-height: 1.45;
}

.nav-main-button {
	background-color: #06319f;
	color: white;
	border: none;
	font-size: 3rem;
	padding: 1.3rem 8rem;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	margin: 0 auto;
	transition: background-color 0.3s ease;
}

.nav-main-button:hover {
	background-color: #001f4d;
}

.swiper-controls {
	display: none !important;
	visibility: hidden !important;
	width: 0;
	height: 0;
	overflow: hidden;
	position: absolute;
}

/* 텍스트 애니메이션 */
.nav-main-highlight,
.nav-main-title,
.nav-main-subtext,
.nav-main-button {
	opacity: 0;
	transform: translateX(-24px);
	transition: all 0.6s ease;
}

.animate-highlight {
	opacity: 1;
	transform: translateX(0);
	transition-delay: 0.6s;
}

.animate-title {
	opacity: 1;
	transform: translateX(0);
	transition-delay: 1.2s;
}

.animate-subtext {
	opacity: 1;
	transform: translateX(0);
	transition-delay: 1.8s;
}

.animate-button {
	opacity: 1;
	transform: translateX(0);
}

/* ===== Responsive ===== */

@media only screen and (max-width: 600px) {
	.nav-main-wrapper{
		grid-template-columns: 1fr;
		grid-auto-rows: max-content;
		align-content: center;
		justify-items: center;
	}
	
	:root{
		--glass-d: 46%;
		--glass-cx: 51%;
		--glass-cy: 51%;
		--title-size: 30px;
		--sub-size: 16px;
		--button-size: 18px;
	}
	
	.nav-main-image-box {
		padding: 0;
		height: 300px;
	}
	
	.nav-main-highlight {
		font-size: 16px;
		line-height: 1.6;
		margin-bottom: 0;
		font-weight: 500;
		color: #ffffff;
		background: none;
		padding: 6px 12px;
		border-radius: 6px;
		display: inline-block;
	}

	.nav-main-highlight.text-01::before {
		width: 24.5rem;
	}
	
	.nav-main-highlight.text-02::before {
		width: 19.8rem;
	}
	
	.nav-main-button {
		width: 100%;
		max-width: 240px;
		font-size: 16px;
		padding: 12px 0;
		border-radius: 8px;
		background-color: #06319f;
		color: white;
		border: none;
		cursor: pointer;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	}

	.nav-fin-main {
		height: 100%;
		padding: 0;
	}
	
	.nav-main-highlight::before {
		height: 2rem;
	}
	
	.nav-main-background {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
	}
	
	.nav-main-wrapper{
		padding: 0 0 220px;
	}
	.nav-main-image-line{
		margin-left: 60px;
		margin-top: 15px;
	}
	
	.nav-main-image-line img {
		height: 400px;
	}
	
	.nav-main-subtext {
		margin-bottom: 2rem;
	}
}
