@charset "UTF-8";

:root {
	--primary-color: #2b6cb0;
	--primary-light: #4299e1;
	--line-color: #cbd5e0;
	--text-dark: #2d3748;
	--text-muted: #718096;
	--bg-color: #ffffff;
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
}

.page-title {
	text-align: center;
	font-size: 2rem;
	color: var(--primary-color);
	margin-bottom: 50px;
	font-weight: 700;
	position: relative;
}

.page-title::after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background-color: var(--primary-light);
	margin: 10px auto 0;
	border-radius: 2px;
}

.timeline {
	position: relative;
	padding-left: 0;
	width: fit-content;
	margin: 0 auto;
}

.timeline-year-group {
	display: grid;
	grid-template-columns: 100px 40px 1fr;
	margin-bottom: 40px;
	position: relative;
}

.timeline-year-group:last-child {
	margin-bottom: 0;
}

/* 縦線のレイアウト */
.timeline-year-group::before {
	content: '';
	position: absolute;
	left: 120px;
	top: 10px;
	bottom: -40px;
	width: 2px;
	background-color: #ccc;
	transform: translateX(-50%);
	z-index: 1;
}

.timeline-year-group:last-child::before {
	display: none; /* 最後の要素には下への縦線を出さない */
}

.year-label {
	font-size: 1.35rem;
	font-weight: 700;
	text-align: right;
	padding-right: 15px;
	white-space: nowrap;
}

.dot-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 6px;
	position: relative;
	z-index: 2;
}

.timeline-dot {
	width: 12px;
	height: 12px;
	background-color: #282828;
	border-radius: 50%;
}

.events-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-left: 10px;
}

.event-item {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 10px;
	font-size: 0.95rem;
}

.month-label {
	font-weight: 700;
	white-space: nowrap;
}

.event-details {
	display: flex;
	flex-direction: column;
}

.event-title {
	color: var(--text-dark);
	font-weight: 500;
}

/* 補足・注釈用テキスト（グレー） */
.event-sub {
	font-size: 0.88rem;
	margin-top: 2px;
	line-height: 1.5;
}

section.section_history .wrap {
	position: relative;
}

section.section_history .picture {
	position: absolute;
    filter: grayscale(1);
    clip-path: inset(50% 50% 50% 50%);
    transition: clip-path .9s cubic-bezier(.16, 1, .3, 1);
	z-index: 2;
	width: 170px;
	height: 170px;
	opacity: .4;
}

section.section_history .picture.is-show {
    clip-path: inset(0 0 0 0);
}

section.section_history .picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

section.section_history .picture_1 {
	width: 230px;
	height: 230px;
	left: 0;
	top: 100px;
}

section.section_history .picture_2 {
	left: 90px;
	top: 410px;
}

section.section_history .picture_3 {
	left: 20px;
	top: 650px;
}

section.section_history .picture_4 {
	right: 0;
	top: 100px;
}

section.section_history .picture_5 {
	right: 200px;
	top: 300px;
}

section.section_history .picture_6 {
	right: 100px;
	top: 520px;
}

section.section_history .picture_7 {
	right: 220px;
	top: 750px;
}

.section_history .common_head_title {
	margin-bottom: 90px;
}

@media (max-width: 640px) {
	.timeline-year-group {
		grid-template-columns: 80px 30px 1fr;
	}

	.timeline-year-group::before {
		left: 95px;
	}

	.year-label {
		font-size: 1.1rem;
		padding-right: 8px;
	}

	.event-item {
		grid-template-columns: 48px 1fr;
		gap: 6px;
	}

	.container {
		padding: 10px;
	}

	.section_history .common_head_title {
		margin-bottom: 15vw;
	}

	section.section_history .picture {
		width: 27vw;
		height: 27vw;
		z-index: -1;
		opacity: .1;
	}

	section.section_history .picture_1 {
		width: 20vw;
		height: 20vw;
		left: 0;
		top: 10vw;
	}
	
	section.section_history .picture_2 {
		left: 5vw;
		top: 60vw;
	}
	
	section.section_history .picture_3 {
		left: 3vw;
		top: 140vw;
	}
	
	section.section_history .picture_4 {
		top: 15vw;
	}
	
	section.section_history .picture_5 {
		right: 11vw;
		top: 60vw;
	}
	
	section.section_history .picture_6 {
		right: 0;
		top: 130vw;
	}
	
	section.section_history .picture_7 {
		right: 0;
		top: auto;
		bottom: 5vw;
	}
	
}