@charset "utf-8";

/* ==================================================
	공통틀
================================================== */

#main-wrap {
	position: relative;
	margin: 0 auto;
	width: 100%;
	font-family: 'NanumSquareRound';
}

#main-wrap section {
	position: relative;
}

#main-wrap section > div {
	position: relative;
	max-width: var(--px-base);
	margin: 0 auto;

}

.vs_area {
	margin-top: 18rem;
	background: url("../images/main/vs_bg.gif") repeat-x bottom / 13% #c2e8f9;
}

.vs_area > div {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main_visual {
	position: relative;
	top: -5rem;
	max-width: 1025px;
	min-width: 70%;
	aspect-ratio: 1 / 0.55;
	/* min-height: 420px; */
	border-radius: 10rem;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 3.2rem 2.5rem;
	font-size: clamp(2.4rem, 6vw, 6rem);
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 0 0.7rem #00000066;
	background-image: var(--bg-current);
	z-index: 0;
}

/* ::before에 다음 이미지 세팅 → opacity로 크로스페이드 */
.main_visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	background-image: var(--bg-next);
	pointer-events:none;
}

.main_visual.crossfade::before {
	opacity: 1;
}

.main_copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: url("../images/main/sun.svg") no-repeat top center / 70%;
	width: 100%;
	height: 50rem;
}


.main_copy ul {

	position: relative;
	min-height: 3.2rem;
	width: 100%;
	/* height: 3.2rem; */
	/* overflow: hidden; */
}

.main_copy ul li {
	
  position: absolute;    
  top: 0;                 
  left: 0; 
  height: 100px;               
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity .6s ease;
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #333;
}

.main_copy ul li:first-child {
	opacity: 1;
}

.vsnum {
	display: flex;
	gap: 0.6rem;
	margin: 2rem;
	align-items: center;
	z-index:3;
}

.vsnum button {
	display: grid;
	place-items: center;
	width: 4rem;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	text-decoration: none;
	color: #333;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.3s;
}

.vsnum a:focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.vsnum .vsnum_on {
	background: #fff;
}

/* 반응형 */
@media (max-width: 1600px) {

	#main-wrap section > div {
		padding: 0 5%;
	}
}

@media (max-width: 900px) {

	.vs_area{
		margin-top: 10rem;
	}
	
	.vs_area > div {
		flex-direction: column;
		gap: 0;
	}
	
	.main_visual {
		top: 2rem;
		min-width: 100%;
		border-radius: 6rem;
	}

	.main_copy {
		height: 20rem;
		background: url("../images/main/sun_m.svg") no-repeat bottom center / 80%;
	}


}

@media (max-width: 550px) {

	.vs_area{
		margin-top: 8rem;
	}

	.main_visual {
		border-radius: 3rem;
	}

	.main_copy {
		height: 16rem;
		background: url("../images/main/sun_m.svg") no-repeat bottom center / 100%;
	}
	
	.vsnum {
		margin: 1rem;
	}
	
}


/*h2 애니메이션*/
@keyframes floatText {
	0%, 100%   { transform: translateY(0); }
	50%        { transform: translateY(-4px); }
}


.main_copy h2 {
	padding-top: 2rem;
    font-size: var(--rem-24);
    font-weight: var(--font-bd);
    line-height: 2;
    transition-delay: 0.3s;
	animation: floatText 5s ease-in-out infinite;
	transform-origin: center;
	color: #333333;
}

.main_copy h2 p {
	font-size: var(--rem-14);
}

/*---------------------------------------------------------*/

.main_btn {
	display: flex;
	justify-content: space-evenly;
}

.main_btn a{
	display: flex;
	text-align: center;
	justify-content: center;
	align-items:flex-end;
	flex-basis: 13%;
	background-color: #c2e8f9;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	line-height: 2.5rem;
	font-weight: var(--font-sb);
	margin: 0;
	container-type: inline-size; /*cqw 기준*/
	transition: transform 0.25s ease;
	will-change: transform; /* 성능 향상 */
	transform: translateZ(0);
	backface-visibility: hidden;
}

.main_btn a:hover {
	transform: scale(1.05);
}

.main_btn a:nth-child(1) {
	background: url("../images/main/main_btn01.svg") no-repeat #e4f5fc  top / 85%;
}

.main_btn a:nth-child(2) {
	background: url("../images/main/main_btn02.svg") no-repeat #e4f5fc top / 85%;
}

.main_btn a:nth-child(3) {
	background: url("../images/main/main_btn03.svg") no-repeat #e4f5fc top / 85%;
}

.main_btn a:nth-child(4) {
	background: url("../images/main/main_btn04.svg") no-repeat #e4f5fc top / 85%;
}

.main_btn a:nth-child(5) {
	background: url("../images/main/main_btn05.svg") no-repeat #e4f5fc top / 85%;
}

.main_btn a:nth-child(6) {
	background: url("../images/main/main_btn06.svg") no-repeat #e4f5fc top / 85%;
}


.main_btn a P {
	display: flex;
	align-items: center;
	/* font-size: clamp(1.4rem, 1.2vw, 2.2rem); */
	height: 40%;
	font-size: 10cqw;
	line-height: 13cqw;
}

@media (max-width: 900px) {
	.main_btn {
		flex-wrap: wrap;
		justify-content: space-between;
		column-gap: 5rem;
		padding: 0 5%;
	}

	.main_btn a {
		flex-basis: 25%;
		margin: 2rem 0;
	}
}

@media (max-width: 550px) {
	.main_btn {
		flex-wrap: wrap;
		justify-content: space-between;
		column-gap: 5rem;
		padding: 0 5%;
	}

	.main_btn a {
		flex-basis: 25%;
		margin: 1rem 0;
	}
}

@media (max-width: 330px) {

	.main_btn a {
		flex-basis: 23%;
		margin: 1rem 0;
	}
}







.main_board {
	/* display: grid;
	grid-template-columns: repeat(5, 1fr); */
	gap: 2rem;
	margin-bottom: 3.6rem;
	/* padding: 0 2rem; */
}

.main_board > div {
	background: var(--color-white);
	border-radius: var(--rem-15);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
	padding: 2rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main_board > div:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.15);
}

/* 게시판 영역 첫 번째 섹션 (공지사항/보도자료) */
.main_board:first-of-type {
	background: var(--color-white);
	border-radius: var(--rem-15);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
	padding: 0;
	overflow: hidden;
}

.main_board:first-of-type .board_nav {
	padding: 2rem 2rem 0 2rem;
	margin-bottom: 0;
}

.main_board:first-of-type .board_sec {
	padding: 0 2rem 2rem 2rem;
}

.board_nav {
	align-items: center;
	padding-bottom: 1rem;
}

.board_nav > div {
	gap: 0.5rem;
}

.board_nav img{
	width: 5rem;
	height: auto;
	aspect-ratio: 1/1;
	cursor:pointer;
	object-fit: contain;
	object-position: center;
}

.board_nav h3 {
	font-size: var(--rem-24);
	font-weight: var(--font-bd);
	color: var(--color-black);
	margin: 0;
	padding: 0;
	line-height: 5rem;
	font-family: 'NanumSquareRound';

}

.board_nav>.flex_between>a {
	border-radius: 2rem 2rem 0 0;
	padding: 0.8rem 3rem 0;
	background-color: var(--color-white);
}

.board_nav a {
		/*font-size: var(--rem-22);*/
	font-weight: var(--font-sb);
	transition: opacity 0.3s ease;
}

.board_nav a:hover {
	opacity: 0.7;
}

.more a {
	display: flex;
	justify-content: right;
	align-items: center;
	font-size: var(--rem-16);
}

.more img {
	height: 70%;
}

.board_list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-height: 100%;
}

.board_list > div {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: 2rem;
	background-color: var(--color-gray5);
	/* border: 1px solid var(--color-gray2); */
	padding: 1.5rem;
	font-weight: var(--font-md);
	line-height: 2.6rem;
	transition: all 0.3s ease;
}

/* .board_list > div:hover {
	background-color: #f8f9fa;
	transform: translateY(-2px);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
} */

.board_list > div > a {
  display: -webkit-box;            /* WebKit 전용 박스 레이아웃 */
  -webkit-box-orient: vertical;    /* 세로 방향으로 쌓기 */
  -webkit-line-clamp: 2;           /* 최대 2줄까지 표시 */
  line-clamp: 2;                   /* 표준 line-clamp 속성 */
  overflow: hidden;                /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis;         /* 말줄임표 */
  white-space: normal;             /* 줄바꿈 허용 */
  word-break: break-word;
  color: var(--color-black);
  text-decoration: none;
  font-size: var(--rem-16);
  font-weight: var(--font-lg);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.board_list > div > a:hover {
  color: var(--color-primary);
}

.board_list p {
	font-size: var(--rem-14);
	font-weight: var(--font-rg);
	color: var(--grayText01);
	margin: 0;
	text-align: right;
	white-space: nowrap;
	margin-left: 2rem;
}

/*===========================================================*/
/* 2025-10-15: 메인 게시판 3섹션 UI 맞춤 - 탭/리스트/그리드 스타일 */
/* 섹션1: 공지/보도자료 탭 스타일 */
/*===========================================================*/
/* 공지사항 게시판 영역 */

.notice_board {
	margin: 4rem 0;
	padding: 2rem 0;
	background-color: var(--color-gray5);
}

.notice_board .flex_left {
	gap: 2rem;
}

.notice_board .board_nav {
	width: 50%;
}

.notice_board .board_nav .flex_between {
	align-items: center;
}

.notice_board .board_sec {
	padding: 0 2rem 2rem 2rem;
}

.notice_board .board_nav > .flex_left > a[data-target] {
	min-width: 200px;
	padding: 0 1rem;
	height: 50px;
	line-height: 50px;
	text-align: center;
	border: 1px solid #d9d9d9;
	border-bottom: none;
	background: #fff;
	color: #333;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	font-size: var(--rem-16);
	font-weight: var(--font-md);
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
}


/* 탭 아래 리스트 박스 */
.notice_board .board_list.tab1 {
	background: #fff;
	border-radius: 0 2rem 2rem 2rem;
	padding: 2.2rem;
	position: relative;
	z-index: 1;
}

/* 공지/보도자료 항목 스타일 */
.notice_board .board-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.notice_board .board-list > li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.4rem;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s ease;
}

.notice_board .board-list > li:last-child { 
	border-bottom: none; 
}

.notice_board .board-list > li:hover {
	background-color: #f8f9fa;
}

.notice_board .board-list > li::before {
	content: "•";
	color: #888;
	font-size: 0.9rem;
	line-height: 1;
	flex-shrink: 0;
	width: 0.4rem;
}

.notice_board .board-list > li > a {
	flex: 1 1 auto;
	min-width: 0;
	color: #222;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: var(--rem-14);
	font-weight: var(--font-md);
	line-height: 1.4;
	transition: color 0.2s ease;
}

.notice_board .board-list > li > a:hover {
	color: var(--color-primary);
}

.notice_board .board-list > li > span {
	flex: 0 0 auto;
	color: #666;
	font-size: var(--rem-14);
	white-space: nowrap;
	font-weight: var(--font-rg);
}

/* 더보기 버튼 */
.more_link {
	color: #666;
	text-decoration: none;
	font-weight: var(--font-md);
	transition: color 0.2s ease;
	/* line-height: 50px; */
}

.more_link:hover {
	color: var(--color-primary);
	opacity: 1;
}


/* 섹션2: 행사요모조모 4열 그리드 및 카드 테두리 */

/* 행사요모조모 게시판 영역 */
.event_board {
	/* background: var(--color-white);
	border-radius: var(--rem-15);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
	padding: 0;
	overflow: hidden;*/
	margin-bottom: 3.6rem; 
}

.event_board .board_nav {
	margin-bottom: 0;
}

.event_board .board_list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.8rem;
}

.event_board .board_list ul {
	display: contents;
}

.event_board .board_list li {
	border: 1px solid #d9d9d9;
	background: #fff;
	border-radius: 2rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.event_board .board_list li a{
	overflow: hidden;
}

.event_board .board_list li img {
	display: block;
	width: 100%;
	height: 20rem;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.event_board .board_list li p {
	padding: 0.8rem;
	margin: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.event_board .board_list li p a {
	font-size: var(--rem-14);
	font-weight: var(--font-md);
	color: #222;
	text-decoration: none;
	margin-bottom: 0.5rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.event_board .board_list li img:hover {
	transform: scale(1.05);
}

.event_board .board_list li p a:hover {
	color: var(--color-primary);
}

.event_board .board_list li p span {
	font-size: var(--rem-12);
	color: #666;
	text-align: right;
}

/* 섹션3: 아름다운 사람들 - 배너 가로 정렬 */
/* 아름다운 사람들 게시판 영역 */

.badge_board {
	/* background: var(--color-white);
	border-radius: var(--rem-15);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
	padding: 0;
	overflow: hidden; */
	margin-bottom: 5rem;
}

.badge_board .board_nav {
	margin-bottom: 0;
}

.badge_board .board_list {
	width: 100%;
}


/* 2025-10-15: 메인 게시판 3섹션 UI 맞춤 - 탭/리스트/그리드 스타일 */
/*===========================================================여기까지*/

.area-box {
	width: 100%;
	max-width: var(--px-base);
	margin: 0px auto;
}

.fullpage-html {
	overflow: hidden;
	height: 100%;
}

.fullpage-html #wrap {
	position: static;
}

/* 모바일CSS */
@media screen and (max-width:1441px) {


	.main_board {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
		/* padding: 0 1rem; */
	}

	.main_board > div {
		width: 100%;
		margin-bottom: 2rem;
		padding: 1.5rem;
	}
}

@media screen and (max-width:1200px) {


}


@media screen and (max-width:1070px) {

	.main-wrap {
		margin-top: var(--sub-menu-height);
	}

}


@media screen and (max-width:900px) {

	.main_board {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
		/* padding: 0 1rem; */
	}

	.board_nav img{
		width: 4rem;
	}

	.notice_board .flex_left {
		display: block;
	}

	.notice_board .board_nav {
		width: 100%;
		margin: 1rem auto 3rem;
	}

}

@media screen and (max-width:800px) {



	.main_board {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: unset;
	}

	.main_board > div {
        margin-bottom: 2rem;
    }
	

	.board_nav > div {
		padding-bottom: 0;
	}

	.board_list{
		height: auto;
	}

	.board_list > div {
		flex-direction: row;
	}

	.board_list div:nth-child(3), .board_list div:nth-child(4)  {
		display: none;
	}

	.area-box {
		width: 92%;
	}

	.event_board .board_list {
		grid-template-columns: repeat(2, 1fr);
	}

}

@media screen and (max-width:500px) {

	.notice_board {
		margin: 3rem 0;
	}

	.event_board .board_list li img {
		width: 100%;
		height: auto;
		aspect-ratio: 1/0.7;
	}
}



@media screen and (max-width:450px) {


	.board_nav > div > a {
		line-height: var(--rem-44);
		font-size: var(--rem-16);
	}
	.board_nav > div > img {
		width: var(--rem-44);
	}
}

@media screen and (max-width:360px) {


}

@media screen and (max-width:360px) {

}


/* 
    -ms-grid-columns: (1fr) [3];
    grid-template-columns: repeat(3, 1fr); */