.p-history {
	display: block;
	padding-bottom: 96px;
	padding-top: 96px;
}

.p-history__lead {
	color: #222222;
	font-family: "IBM Plex Sans JP", sans-serif;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.8;
	margin: 0 auto 64px;
	text-align: center;
}

.c-history {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
}

.c-history {
	background: #FFFFFF;
	border: 1px solid #ED1C24;
	border-radius: 24px;
	box-shadow: 6px 8px 0 0 #ED1C24;
	overflow: clip;
	padding: 64px 96px;
	position: relative;
}

.c-history::before {
	background: url(../images/about/history/bg_heart-pattern.png) top left/107px 95px;
	content: "";
	height: 140%;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-15.2deg);
	width: 500%;
}

.c-history__years-nav {
	align-self: flex-start;
	flex-shrink: 0;
	position: sticky;
	top: 20px;
	width: 180px;
}

.c-history__years {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 24px 16px 0;
	position: relative;
}

.c-history__year-item {
	align-items: center;
	color: #BABABA;
	display: flex;
	font-family: "Shrikhand", cursive;
	font-size: 24px;
	font-style: italic;
	font-weight: 400;
	justify-content: center;
	line-height: 1.5;
	min-height: 60px;
	transition: color 0.2s ease;
}

.c-history__year-item.is-current {
	color: #ED1C24;
	font-size: 40px;
}

.c-history__year-link {
	-webkit-text-decoration: none;
	align-items: center;
	color: inherit;
	display: flex;
	gap: 8px;
	text-decoration: none;
}

.c-history__year-link:hover,
.c-history__year-link:focus-visible {
	color: #ED1C24;
}

.c-history__year-dot {
	background: currentcolor;
	border-radius: 9999px;
	flex-shrink: 0;
	height: 12px;
	opacity: 0;
	transition: opacity 0.2s ease;
	width: 12px;
}

.c-history__year-item.is-current .c-history__year-dot {
	opacity: 1;
}

.c-history__year-item.is-current .c-history__year-label {
	background: #FFEEEE;
	border-radius: 4px;
	padding-left: 4px;
	padding-right: 4px;
}

.c-history__list {
	grid-gap: 16px 80px;
	display: grid;
	flex: 1;
	gap: 16px 80px;
	grid-template-columns: 1fr 1fr;
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 0;
	position: relative;
}

.c-history__list::before {
	background: #ED1C24;
	bottom: 0;
	content: "";
	left: 50%;
	position: absolute;
	top: 0;
	width: 1px;
}

.c-history__item {
	align-items: flex-start;
	display: flex;
	scroll-margin-top: 160px;
}

.c-history__item:nth-child(odd) {
	justify-content: flex-end;
}

.c-history__item:nth-child(even) {
	margin-top: 40px;
}

.c-history__card {
	align-items: flex-start;
	background: #FFFFFF;
	border: 1px solid #ED1C24;
	border-radius: 12px;
	display: flex;
	gap: 16px;
	max-width: 280px;
	padding: 16px;
	position: relative;
	width: 100%;
}

.c-history__card::before {
	background: #ED1C24;
	content: "";
	height: 1px;
	position: absolute;
	top: 50%;
	width: 40px;
}

.c-history__item:nth-child(odd) .c-history__card::before {
	left: calc(100% + 1px);
}

.c-history__item:nth-child(even) .c-history__card::before {
	right: 100%;
}

.c-history__card:has(.c-history__note) {
	align-items: center;
	flex-direction: column;
}

.c-history__card:has(.c-history__note) .c-history__body {
	width: 100%;
}

.c-history__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.c-history__year {
	align-items: center;
	color: #ED1C24;
	display: flex;
	font-family: "Shrikhand", cursive;
	font-size: 24px;
	font-style: italic;
	font-weight: 400;
	gap: 8px;
	line-height: 1.5;
	margin: 0;
	white-space: nowrap;
}

.c-history__dot {
	background: #ED1C24;
	border-radius: 9999px;
	flex-shrink: 0;
	height: 6px;
	width: 6px;
}

.c-history__texts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.c-history__label {
	font-feature-settings: "palt" 1;
	color: #222222;
	font-family: "IBM Plex Sans JP", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.c-history__note {
	color: #222222;
	font-family: "IBM Plex Sans JP", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.4;
	margin: 0;
}

.c-history__media {
	flex-shrink: 0;
	height: 80px;
	width: 80px;
}

.c-history__photo {
	-o-object-fit: contain;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

@media (max-width: 1264px) {

.c-history {
	margin-left: 20px;
	margin-right: 20px;
}

}

@media (max-width: 1023px) {

.c-history {
	align-items: stretch;
	flex-direction: column;
	gap: 24px;
	padding: 40px 20px;
}

.c-history__years-nav {
	position: static;
	width: 100%;
}

.c-history__years {
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 16px;
	justify-content: flex-start;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 0;
	scrollbar-width: none;
}

.c-history__years::-webkit-scrollbar {
	display: none;
}

.c-history__year-item {
	flex-shrink: 0;
	min-height: 0;
}

.c-history__list {
	gap: 16px;
	grid-template-columns: 1fr;
	padding-left: 16px;
}

.c-history__list::before {
	left: 0;
}

.c-history__item:nth-child(odd) {
	justify-content: flex-start;
}

.c-history__item:nth-child(even) {
	margin-top: 0;
}

.c-history__card {
	max-width: none;
}

.c-history__card::before {
	width: 16px;
}

.c-history__item:nth-child(odd) .c-history__card::before,
.c-history__item:nth-child(even) .c-history__card::before {
	left: auto;
	right: 100%;
}

.c-history__card:has(.c-history__note) {
	align-items: flex-start;
	flex-direction: row;
}

.c-history__card:has(.c-history__note) .c-history__body {
	width: auto;
}

}

@media (max-width: 767px) {

.p-history {
	padding-bottom: 64px;
	padding-top: 48px;
}

.p-history__lead {
	font-size: 16px;
	margin-bottom: 40px;
}

.c-history__card {
	gap: 10px;
	padding: 16px 10px;
}

}

