@charset "utf-8";
body {
	word-break: keep-all;
	overflow-wrap: break-word;
}
#wrap {
	overflow-x: hidden;
}

/* main_visual */
.main_visual {
	background-color: #0054a3;
	aspect-ratio: 1 / 0.544;
	border-radius: 30px;
	position: relative;
	text-align: center;
}

/* sec01 — 행복 캔버스 (카드 그리드) */
.sec2_wrapper {
	display: grid;
	grid-template-columns: calc(66.2% - 10px) 1fr;
	gap: 20px;
}

.sec2_main_card {
	display: block;
	position: relative;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 927 / 693;
}

.sec2_main_card > img,
.sec2_sub_card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.sec2_main_card:hover > img,
.sec2_sub_card:hover > img {
	transform: scale(1.04);
}

.sec2_overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(102, 102, 102, 0) 35%, rgba(0, 0, 0, 0.5) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.sec2_main_text {
	position: absolute;
	bottom: 50px;
	left: 40px;
	right: 40px;
	z-index: 1;
}

.sec2_cat {
	font-size: clamp(14px, calc(8px + 1vw), 18px);
	font-weight: 600;
	color: #eee;
	margin-bottom: 12px;
}

.sec2_main_text .tit {
	font-size: clamp(22px, calc(6px + 2.8vw), 40px);
	font-weight: 700;
	color: #fff;
}

/* 서브 카드 그룹 */
.sec2_sub_group {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.sec2_sub_card {
	display: block;
	position: relative;
	flex: 1;
	border-radius: 20px;
	overflow: hidden;
	min-height: 0;
}

.sec2_sub_text {
	position: absolute;
	bottom: 30px;
	left: 30px;
	right: 30px;
	z-index: 1;
}

.sec2_sub_text .tit {
	font-size: clamp(20px, calc(14px + 1vw), 26px);
	font-weight: 600;
	color: #fff;
}

/* 태블릿 — 메인 전체 폭 + 서브 2열 */
@media all and (max-width: 999px) {
	.sec2_wrapper {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.sec2_main_card {
		aspect-ratio: 21 / 9;
	}

	.sec2_sub_group {
		flex-direction: row;
	}

	.sec2_sub_card {
		flex: 1;
		aspect-ratio: 16 / 9;
	}
}

/* 모바일 — 전체 세로 스택 */
@media all and (max-width: 768px) {
	.sec2_wrapper {
		gap: 12px;
	}
	.sec2_main_card {
		border-radius: 20px;
	}

	.sec2_main_text {
		bottom: 25px;
		left: 25px;
		right: 25px;
	}

	.sec2_sub_text {
		bottom: 15px;
		left: 15px;
		right: 15px;
	}
}

/* 소형 폰 — 카드 높이 축소 */
@media all and (max-width: 549px) {
	.sec2_sub_group {
		flex-direction: column;
	}
	.sec2_main_card {
		aspect-ratio: 21 / 9;
	}
	.sec2_sub_card {
		aspect-ratio: 21 / 9;
	}
	.sec2_sub_card {
		flex: none;
		width: 100%;
	}
}

/* sec02 — nhappy (탭 + Swiper 리뉴얼) */
.section02.nhappy {
	position: relative;
	padding-top: 60px;
	padding-bottom: 60px;
}
.section02.nhappy::before {
	content: "";
	position: absolute;
	inset: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	background: #ddefff;
	z-index: 0;
}
.section02.nhappy > * {
	position: relative;
	z-index: 1;
}

/* 탭 */
.nh_tabs {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-bottom: 40px;
}
.nh_tab {
	font-size: clamp(22px, calc(10px + 2.5vw), 44px);
	font-weight: 700;
	color: #ccc;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding-bottom: 6px;
	cursor: pointer;
	transition: color 0.2s ease;
}
.nh_tab.is-active {
	color: #0054a3;
	border-bottom-color: #0054a3;
}

/* 패널 */
.nh_panel {
	display: none;
	align-items: flex-start;
	gap: 20px;
}
.nh_panel.is-active {
	display: flex;
}

/* 카드 */
.nh_panel > a {
	display: block;
	width: calc(50% - 10px);
}
.nh_panel > a:hover .nh_card_img img {
	transform: scale(1.04);
}
.nh_card_img {
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 512 / 382;
	margin-bottom: 16px;
}
.nh_card_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.nh_card_cat {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 400;
	color: #222;
	margin-bottom: 10px;
}
.nh_panel .tit {
	font-size: clamp(20px, calc(17px + 0.5vw), 24px);
	font-weight: 600;
	color: #222;
}

/* 반응형 */
@media all and (max-width: 999px) {
	.section02.nhappy {
		padding: 50px 0;
	}
	.nh_tabs {
		gap: 30px;
		margin-bottom: 30px;
	}
}
@media all and (max-width: 768px) {
	.section02.nhappy {
		padding: 30px 0;
	}
	.nh_tabs {
		gap: 20px;
	}
	.nh_card_img {
		border-radius: 10px;
		margin-bottom: 10px;
	}
	.nh_card_cat {
		margin-bottom: 4px;
	}
}
@media all and (max-width: 499px) {
	.nh_panel.is-active {
		flex-direction: column;
		gap: 12px;
	}
	.nh_panel > a {
		width: auto;
	}
}

/* 화살표 — 항상 숨김 */
.nh2_nav,
.nh2_card_arrow {
	display: none;
}

/* sec02 — PC 레이아웃 */
@media all and (min-width: 1000px) {
	.nh2_wrapper {
		display: flex;
		gap: 20px;
		align-items: flex-start;
	}

	.nh2_left {
		flex: 0 0 calc(25% - 10px);
		display: flex;
		flex-direction: column;
		gap: 40px;
	}

	.nh_tabs {
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 4px;
		margin-bottom: 0;
	}

	.nh_tab {
		font-size: clamp(28px, calc(14px + 2.5vw), 44px);
		color: #bbb;
		border-bottom: 3px solid transparent;
		padding: 4px 0;
	}

	.nh_tab.is-active {
		color: #0054a3;
		border-bottom-color: #0054a3;
	}

	.nh2_panels {
		flex: 1;
		min-width: 0;
	}

	.nh_panel > a {
		width: calc(50% - 10px);
	}
}

.con {
	position: relative;
	padding: 100px 0;
}

@media all and (max-width: 1459px) {
	.con {
		padding: 50px 0;
	}
}

@media all and (max-width: 768px) {
	.con {
		padding: 30px 0;
	}
}

.main_visual .mv_slide {
	width: 100%;
	height: 100%;
}
.main_visual .mv_slide .swiper-pagination {
	bottom: 60px;
	left: 90px;
	width: auto;
	text-align: left;
}
.main_visual .mv_slide .swiper-pagination-bullet {
	width: 44px;
	height: 7px;
	background-color: rgba(255, 255, 255, 0.3);
	opacity: 1;
	border-radius: unset;
}
.main_visual .mv_slide .swiper-pagination-bullet-active {
	background-color: rgba(255, 255, 255, 0.3);
	position: relative;
	overflow: hidden;
}
.main_visual .mv_slide .swiper-pagination-bullet-active::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background-color: #d9d9d9;
	animation: mvBulletProgress 4s linear forwards;
}
@keyframes mvBulletProgress {
	to {
		width: 100%;
	}
}

@media all and (max-width: 1024px) {
	.main_visual .mv_slide .swiper-pagination {
		bottom: 50px;
		left: 60px;
	}
	.main_visual .mv_slide .swiper-pagination-bullet {
		width: 30px;
		height: 5px;
	}
}

@media all and (max-width: 700px) {
	.main_visual .mv_slide .swiper-pagination-bullet {
		width: 20px;
		height: 5px;
	}
	.main_visual .mv_slide .swiper-pagination {
		bottom: 8%;
		left: 4.4%;
	}
	.mobile_only {
		display: block;
	}
}
@media all and (max-width: 1023px) {
	body {
		word-break: normal;
		overflow-wrap: normal;
	}
}
/* sec03 — HF PLAY + HF CARE (카드 그리드) */
.fage3_blocks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.fage3_title {
	font-size: clamp(28px, calc(14px + 2.5vw), 44px);
	font-weight: 700;
	color: #0054a3;
	margin-bottom: 20px;
}

.fage3_grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fage3_main_card {
	display: block;
	position: relative;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 690 / 388;
}

.fage3_main_card > img,
.fage3_sub_card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.fage3_main_card:hover > img,
.fage3_sub_card:hover > img {
	transform: scale(1.04);
}

.fage3_overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(102, 102, 102, 0) 28%, rgba(0, 0, 0, 0.8) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.fage3_text {
	position: absolute;
	bottom: 30px;
	left: 30px;
	right: 30px;
	z-index: 1;
	transform: translateY(6px);
	transition: transform 0.3s ease;
}
.fage3_main_card:hover .fage3_text,
.fage3_sub_card:hover .fage3_text {
	transform: translateY(0);
}

.fage3_cat {
	font-size: clamp(14px, calc(8px + 1vw), 18px);
	font-weight: 400;
	color: #eee;
	margin-bottom: 10px;
}

.fage3_text .tit {
	font-size: clamp(20px, calc(14px + 1vw), 24px);
	font-weight: 600;
	color: #fff;
}

.fage3_sub_group {
	display: flex;
	gap: 20px;
}

.fage3_sub_card {
	display: block;
	position: relative;
	flex: 1;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

/* 태블릿 — 세로 스택 */
@media all and (max-width: 999px) {
	.fage3_blocks {
		grid-template-columns: 1fr;
	}

	.fage3_main_card {
		aspect-ratio: 720 / 405;
	}
}

/* 모바일 — 1열 */
@media all and (max-width: 768px) {
	.fage3_title {
		margin-bottom: 8px;
	}
	.fage3_grid {
		gap: 12px;
	}
	.fage3_main_card {
		aspect-ratio: 16 / 9;
		border-radius: 20px;
	}

	.fage3_sub_card {
		aspect-ratio: 16 / 9;
		border-radius: 20px;
	}

	.fage3_text {
		bottom: 15px;
		left: 15px;
		right: 15px;
	}
	.fage3_cat {
		margin-bottom: 4px;
	}
}
@media all and (max-width: 499px) {
	.fage3_sub_group {
		flex-direction: column;
	}
}
/* sec04 — HF 소식 (세로형 카드 2열) */
.section04.hfnews {
	padding-bottom: 0;
}
.section04 .fage3_title {
	text-align: center;
}
.hfnews_grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	position: relative;
	padding-bottom: 100px;
	max-width: 926px;
	margin: 0 auto;
}

.hfnews_grid::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 75%;
	background-color: #0054a3;
	z-index: 0;
}

.hfnews_card {
	display: block;
	position: relative;
	z-index: 1;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}

.hfnews_card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hfnews_card:hover > img {
	transform: scale(1.04);
}

.hfnews_overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(102, 102, 102, 0) 48%, rgba(0, 0, 0, 0.5) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hfnews_text {
	position: absolute;
	bottom: 30px;
	left: 30px;
	right: 30px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hfnews_badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 22px;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	color: #fff;
	width: fit-content;
}

.hfnews_text .tit {
	font-size: clamp(18px, calc(12px + 1vw), 24px);
	font-weight: 600;
	color: #fff;
}
@media all and (max-width: 1459px) {
	.hfnews_grid {
		padding-bottom: 50px;
	}
}

@media all and (max-width: 768px) {
	.hfnews_grid {
		gap: 12px;
		padding-bottom: 30px;
	}
	.hfnews_text {
		bottom: 15px;
		left: 15px;
		right: 15px;
		gap: 8px;
	}
	.hfnews_badge {
		padding: 5px 7px;
	}
}

@media all and (max-width: 399px) {
	.hfnews_grid {
		grid-template-columns: 1fr;
	}
}

/* ─── 애니메이션 ──────────────────────────────── */

/* 스크롤 페이드인 */
.fade-up {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.65s ease,
		transform 0.65s ease;
}
.fade-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* 탭 카드 stagger */
@keyframes nhCardFade {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 섹션 제목 */
.nh2_section_tit {
	font-size: clamp(28px, calc(14px + 2.5vw), 44px);
	font-weight: 700;
	color: #0054a3;
	margin-bottom: 40px;
	text-align: center;
}
@media all and (min-width: 1000px) {
	.nh2_section_tit {
		text-align: left;
		margin-bottom: 30px;
	}
}

/* ── 메인 비주얼 Ken Burns ── */
@keyframes mvKenBurns {
	from {
		transform: scale(1.08);
	}
	to {
		transform: scale(1);
	}
}

/* ── 모바일 메인 비주얼 높이 ── */
@media all and (max-width: 768px) {
	.main_visual {
		aspect-ratio: 1 / 0.75;
	}
}

/* ── sec2 카드 텍스트 lift ── */
.sec2_main_text,
.sec2_sub_text {
	transform: translateY(6px);
	transition: transform 0.3s ease;
}
.sec2_main_card:hover .sec2_main_text,
.sec2_sub_card:hover .sec2_sub_text {
	transform: translateY(0);
}

/* ── HF 소식 텍스트 lift ── */
.hfnews_text {
	transition: transform 0.3s ease;
}
.hfnews_card:hover .hfnews_text {
	transform: translateY(-6px);
}


