@charset "UTF-8";

.hist_head {
	margin-bottom: var(--head-gap);
	text-align: center;
}

.hist_head .sec_h {
	word-break: keep-all;
}

.hist_banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(240px, 26vw, 500px);
	border-radius: var(--r-xl);
	overflow: hidden;
	background: var(--ph-dark-color);
	color: #fff;
	text-align: center;
}

.hist_banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hist_banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.hist_banner_txt {
	position: relative;
	z-index: 1;
	padding: 0 var(--side);
}

.hist_banner_txt strong {
	display: block;
	font-family: Montserrat, Pretendard, sans-serif;
	font-size: var(--fs-display);
	line-height: 1;
	font-weight: 400;
}

.hist_banner_txt p {
	margin-top: 24px;
	font-size: 20px;
	font-weight: 300;
	word-break: keep-all;
}

@media (max-width: 768px) {
	.hist_banner_txt p {
		margin-top: 16px;
		font-size: var(--fs-body);
	}
}

.hist_body_inner {
	display: flex;
}

.hist_nav {
	position: sticky;
	top: calc(var(--hd-h) + 40px);
	flex: none;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: calc((100% - var(--gutter) * 11) / 12 * 2 + var(--gutter));
}

.hist_nav_btn {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 32px;
	border-radius: 999px;
	font-family: Montserrat, Pretendard, sans-serif;
	font-size: var(--fs-h5);
	line-height: 1;
	font-weight: 700;
	color: var(--muted-color);
	white-space: nowrap;
	transition:
		background-color 0.3s,
		color 0.3s;
}

.hist_nav_btn:hover,
.hist_nav_btn:focus-visible {
	color: var(--title-color);
}

.hist_nav_btn.is-on {
	background: var(--theme-color);
	color: #fff;
}

.hist_rail {
	position: relative;
	flex: none;
	width: calc((100% - var(--gutter) * 11) / 12 * 2 + var(--gutter));
	margin-left: var(--gutter);
	overflow: clip;
}

.hist_dot {
	position: sticky;
	top: calc(var(--hd-h) + 40px + 12px);
	display: block;
	width: 24px;
	height: 24px;
	border: 4px solid var(--theme-color);
	border-radius: 50%;
	background: #fff;
}

.hist_dot::after {
	content: "";
	position: absolute;
	top: calc(100% + 4px);
	left: 50%;
	width: 2px;
	height: 200vh;
	background: var(--line-color);
	transform: translateX(-50%);
}

.hist_eras {
	flex: 1 1 auto;
	min-width: 0;
	margin-left: var(--gutter);
}

.hist_year + .hist_year,
.hist_era + .hist_era {
	margin-top: var(--sec);
}

.hist_era {
	scroll-margin-top: 40px;
}

.hist_year_num {
	font-size: var(--fs-display);
	line-height: 1;
	font-weight: 700;
	color: var(--title-color);
}

.hist_rows {
	margin-top: 40px;
}

.hist_row {
	display: flex;
	align-items: baseline;
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line-color);
}

.hist_row:last-child {
	border-bottom: 0;
}

.hist_month {
	flex: none;
	width: 64px;
	font-size: var(--fs-h5);
	line-height: 1;
	font-weight: 700;
	color: var(--title-color);
}

.hist_items {
	flex: 1 1 auto;
	min-width: 0;
}

.hist_items li {
	position: relative;
	padding-left: 16px;
	font-size: 20px;
	color: var(--sub-color);
	word-break: keep-all;
}

.hist_items li + li {
	margin-top: 8px;
}

.hist_items li::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--sub-color);
}

@media (max-width: 1024px) {
	.hist_body_inner {
		flex-direction: column;
	}

	.hist_nav {
		top: var(--hd-h);
		z-index: 5;
		flex-direction: row;
		width: calc(100% + var(--side) * 2);
		margin: 0 calc(var(--side) * -1);
		padding: 16px var(--side);
		background: #fff;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.hist_nav::-webkit-scrollbar {
		display: none;
	}

	.hist_nav_btn {
		flex: none;
		height: 40px;
		padding: 0 20px;
		font-size: var(--fs-body);
	}

	.hist_rail {
		display: none;
	}

	.hist_eras {
		margin: 40px 0 0;
	}

	.hist_era {
		scroll-margin-top: 96px;
	}

	.hist_items li {
		font-size: var(--fs-body);
	}

	.hist_items li::before {
		top: 10px;
	}

	.hist_month {
		width: 48px;
		font-size: var(--fs-body);
	}
}

@media (max-width: 560px) {
	.hist_row {
		flex-direction: column;
		gap: 8px;
		padding: 16px 0;
	}

	.hist_rows {
		margin-top: 24px;
	}
}
