/* =====================
   News Archive
   ===================== */

.news-archive {
	padding: min(88px, 6.11vw) 0 min(150px, 10.42vw);
	background: var(--background-white);
}

.news-archive__inner {
	width: min(100%, 1060px);
	margin: 0 auto;
	padding: 0 min(80px, 5.56vw);
}

.news-archive__list {
	display: grid;
	gap: 0;
}

.news-archive__item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 40px;
	grid-template-rows: auto auto;
	column-gap: 24px;
	min-height: 104px;
	padding: 0 0 24px;
	color: var(--main-navy);
	border-bottom: 1px solid var(--border-gray);
}

.news-archive__item + .news-archive__item {
	padding-top: 24px;
}

.news-archive__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.news-archive__date {
	color: var(--text-gray);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.05rem;
}

.news-archive__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 21px;
	padding: 2px 10px 3px;
	color: var(--main-navy);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.05rem;
	background: var(--background-gray);
	border-radius: 999px;
}

.news-archive__item-title {
	display: block;
	min-width: 0;
	margin-top: 20px;
	color: var(--main-navy);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.05rem;
}

.news-archive__item-arrow,
.news-detail__back-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--main-navy);
	border: 1px solid var(--main-navy);
	border-radius: 50%;
}

.news-archive__item-arrow {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	justify-self: end;
}

.news-archive__item-arrow::before,
.news-detail__back-icon::before {
	display: block;
	width: 12px;
	height: 10px;
	background: url("../images/common/arrow_navy.svg") center / contain no-repeat;
	content: "";
}

.news-archive__empty,
.news__empty {
	margin: 0;
	color: var(--main-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.05rem;
}

.news-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 56px;
}

.news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	color: var(--main-navy);
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--border-gray);
	border-radius: 999px;
}

.news-pagination .page-numbers.current {
	color: var(--background-white);
	background: var(--main-red);
	border-color: var(--main-red);
}

/* =====================
   News Detail
   ===================== */

.news-detail {
	padding: min(100px, 6.94vw) 0;
	background: var(--background-white);
}

.news-detail__inner {
	width: min(100%, 1060px);
	margin: 0 auto;
	padding: 0 min(80px, 5.56vw);
}

.news-detail__date {
	display: block;
	margin: 0 0 16px;
	color: var(--text-gray);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.05em;
}

.news-detail__title {
	margin: 0 0 min(70px, 4.86vw);
	color: var(--main-navy);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.4;
}

.news-detail__content {
	color: var(--main-navy);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
}

.news-detail__content > *:first-child {
	margin-top: 0;
}

.news-detail__content > *:last-child {
	margin-bottom: 0;
}

.news-detail__content p {
	margin: 0 0 22px;
}

.news-detail__content h2,
.news-detail__content h3 {
	margin: 54px 0 20px;
	color: var(--main-navy);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

.news-detail__content h2 {
	font-size: 22px;
}

.news-detail__content h3 {
	font-size: 18px;
}

.news-detail__content ul,
.news-detail__content ol {
	margin: 0 0 27px;
	padding-left: 1.4em;
}

.news-detail__content a {
	color: var(--main-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.news-contact {
	margin-top: min(68px, 4.72vw);
	color: var(--main-navy);
}

.news-contact__title {
	margin: 0 0 20px;
	color: var(--main-navy);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.news-contact__title::after {
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 13px;
	background: linear-gradient(
		90deg,
		var(--main-red) 0,
		var(--main-red) 70px,
		var(--border-gray) 70px,
		var(--border-gray) 100%
	);
	content: "";
}

.news-contact__body {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0;
}

.news-contact__body p {
	margin: 0;
}

.news-contact__department {
	margin-bottom: 8px;
}

.news-contact__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 40px;
	margin-bottom: 8px;
}

.news-contact a {
	color: inherit;
	text-decoration: none;
}

.news-detail__back {
	display: flex;
	justify-content: center;
	margin-top: min(56px, 3.88vw);
}

.news-detail__back-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--main-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.news-archive__item-arrow {
	--arrow-hover-image: url("../images/common/arrow_navy.svg");
	--arrow-hover-size: 12px 10px;
	position: relative;
	overflow: hidden;
	background-image: none !important;
}

.news-archive__item-arrow::before,
.news-archive__item-arrow::after {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	background: var(--arrow-hover-image) center / var(--arrow-hover-size) no-repeat;
	content: "";
	animation-duration: 0.6s;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
	pointer-events: none;
}

.news-archive__item-arrow::after {
	transform: translateX(-130%);
}

@media (hover: hover) and (pointer: fine) {
	.news-archive__item:hover .news-archive__item-arrow::before,
	.news-archive__item:focus-visible .news-archive__item-arrow::before {
		animation-name: arrowExitRight;
	}

	.news-archive__item:hover .news-archive__item-arrow::after,
	.news-archive__item:focus-visible .news-archive__item-arrow::after {
		animation-name: arrowEnterLeft;
		animation-delay: 0.18s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.news-archive__item-arrow::before,
	.news-archive__item-arrow::after {
		animation: none !important;
	}
}

@media (max-width: 820px) {
	.news-archive {
		padding: 10.26vw 0 20.51vw;
	}

	.news-archive__inner,
	.news-detail__inner {
		width: 100%;
		padding-right: min(20px, 5.13vw);
		padding-left: min(20px, 5.13vw);
	}

	.news-archive__item {
		grid-template-columns: 1fr 40px;
		column-gap: 4.1vw;
		min-height: 86px;
		padding-bottom: 4.1vw;
	}

	.news-archive__item + .news-archive__item {
		padding-top: 4.87vw;
	}

	.news-archive__item-title {
		margin-top: 13px;
		font-size: 14px;
		line-height: 1.45;
	}

	.news-pagination {
		margin-top: 42px;
	}

	.news-detail {
		padding: min(56px, 14.35vw) 0 min(80px, 20.51vw);
	}

	.news-detail__title {
		margin-bottom: min(40px, 8.2vw);
		font-size: 24px;
		line-height: 1.4;
		letter-spacing: 0;
	}

	.news-detail__content p,
	.news-detail__content ul,
	.news-detail__content ol {
		margin-bottom: min(24px, 5.64vw);
	}

	.news-contact {
		margin-top: min(60px, 10.25vw);
	}

	.news-contact__title {
		margin-bottom: 7.18vw;
		font-size: 28px;
	}

	.news-contact__title::after {
		margin-top: 3.59vw;
	}

	.news-contact__body {
		font-size: 16px;
		line-height: 1.8;
	}

	.news-contact__department,
	.news-contact__row {
		margin-bottom: 1.54vw;
	}

	.news-contact__row {
		display: grid;
		gap: 0;
	}

	.news-detail__back {
		margin-top: min(56px, 14.35vw);
	}
}
