/* ==================================================
 * ACJ イベント歴メーカー：フロント
 * ================================================== */

.acjeh-history,
.acjeh-history * {
	box-sizing: border-box;
}

.acjeh-history {
	--acjeh-navy: #07365e;
	--acjeh-navy-dark: #052946;
	--acjeh-blue: #287db2;
	--acjeh-gold: #c8a84e;
	--acjeh-cream: #f6f2e9;
	--acjeh-cream-light: #fbf9f4;
	--acjeh-line: #d9e0e6;
	--acjeh-text: #263543;
	--acjeh-muted: #6a7784;
	--acjeh-mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
	--acjeh-gothic: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

	position: relative;
	width: 100%;
	max-width: 1120px;
	margin: 32px auto;
	padding: clamp(36px, 5vw, 64px);
	border: 1px solid #e2ddd3;
	border-top: 5px solid var(--acjeh-navy);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
		var(--acjeh-cream);
	box-shadow: 0 20px 55px rgba(7, 54, 94, 0.08);
	overflow: hidden;
}

.acjeh-history::before {
	content: "1908";
	position: absolute;
	right: -22px;
	top: 10px;
	color: rgba(7, 54, 94, 0.035);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(130px, 20vw, 260px);
	font-weight: 700;
	line-height: 0.82;
	pointer-events: none;
}

.acjeh-history > * {
	position: relative;
	z-index: 1;
}

.acjeh-history-header {
	margin: 0 0 30px;
	padding: 0 0 25px;
	border-bottom: 1px solid #d8d3c9;
}

.acjeh-history-eyebrow {
	margin: 0 0 11px;
	color: var(--acjeh-blue);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.28em;
}

.acjeh-history-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--acjeh-navy);
	font-family: var(--acjeh-mincho);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.055em;
}

.acjeh-history-lead {
	max-width: 780px;
	margin: 18px 0 0;
	color: var(--acjeh-muted);
	font-family: var(--acjeh-gothic);
	font-size: 15px;
	line-height: 1.9;
}

.acjeh-year-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
}

.acjeh-year-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 7px 14px;
	border: 1px solid #cbd4dc;
	background: rgba(255, 255, 255, 0.8);
	color: var(--acjeh-navy);
	font-family: var(--acjeh-gothic);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.acjeh-year-nav a small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e8f1f7;
	color: var(--acjeh-blue);
	font-size: 10px;
}

.acjeh-year-nav a:hover {
	border-color: var(--acjeh-navy);
	background: var(--acjeh-navy);
	color: #fff;
	transform: translateY(-1px);
}

.acjeh-year-nav a:hover small {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.acjeh-year-list {
	display: grid;
	gap: 14px;
}

.acjeh-year-section {
	scroll-margin-top: 90px;
	border: 1px solid #d6dfe6;
	background: #fff;
	box-shadow: 0 8px 24px rgba(7, 54, 94, 0.05);
}

.acjeh-year-section summary {
	position: relative;
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) auto 36px;
	align-items: center;
	min-height: 78px;
	padding: 0 22px 0 0;
	background:
		linear-gradient(90deg, var(--acjeh-navy) 0, var(--acjeh-navy) 108px, #fff 108px);
	color: var(--acjeh-navy);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.acjeh-year-section summary::-webkit-details-marker {
	display: none;
}

.acjeh-year-number {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.acjeh-year-label {
	padding: 0 24px;
	font-family: var(--acjeh-mincho);
	font-size: clamp(19px, 2.4vw, 27px);
	font-weight: 600;
	letter-spacing: 0.045em;
}

.acjeh-year-count {
	color: var(--acjeh-blue);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	white-space: nowrap;
}

.acjeh-year-toggle {
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	margin-left: 12px;
	border: 1px solid #b8c6d2;
	border-radius: 50%;
}

.acjeh-year-toggle::before,
.acjeh-year-toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 1px;
	background: var(--acjeh-navy);
	transform: translate(-50%, -50%);
}

.acjeh-year-toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: transform 0.2s ease;
}

.acjeh-year-section[open] .acjeh-year-toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.acjeh-year-section[open] summary {
	border-bottom: 1px solid #d6dfe6;
}

.acjeh-event-list {
	padding: 0 28px 12px;
}

.acjeh-event-row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	align-items: start;
	gap: 28px;
	padding: 20px 0;
	border-bottom: 1px solid #e6e9ec;
}

.acjeh-event-row:last-child {
	border-bottom: 0;
}

.acjeh-event-date {
	position: relative;
	padding: 1px 0 0 15px;
	color: var(--acjeh-blue);
	font-family: Georgia, "Times New Roman", var(--acjeh-mincho);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.65;
	letter-spacing: 0.035em;
}

.acjeh-event-date::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 4px;
	height: 22px;
	background: var(--acjeh-gold);
}

.acjeh-event-description {
	color: var(--acjeh-text);
	font-family: var(--acjeh-gothic);
	font-size: 15px;
	line-height: 1.9;
	word-break: auto-phrase;
}

.acjeh-no-events {
	padding: 24px;
	border: 1px solid #d6dfe6;
	background: #fff;
	color: #65717c;
	text-align: center;
}

@media (max-width: 767px) {

	.acjeh-history {
		margin: 20px auto;
		padding: 34px 16px 40px;
	}

	.acjeh-history-title {
		font-size: 29px;
	}

	.acjeh-year-nav {
		flex-wrap: nowrap;
		margin-right: -16px;
		padding: 0 16px 8px 0;
		overflow-x: auto;
	}

	.acjeh-year-nav a {
		flex: 0 0 auto;
	}

	.acjeh-year-section summary {
		grid-template-columns: 78px minmax(0, 1fr) 31px;
		min-height: 68px;
		padding-right: 14px;
		background:
			linear-gradient(90deg, var(--acjeh-navy) 0, var(--acjeh-navy) 78px, #fff 78px);
	}

	.acjeh-year-number {
		font-size: 18px;
	}

	.acjeh-year-label {
		padding: 0 14px;
		font-size: 19px;
	}

	.acjeh-year-count {
		display: none;
	}

	.acjeh-year-toggle {
		width: 26px;
		height: 26px;
		margin-left: 0;
	}

	.acjeh-event-list {
		padding: 0 16px 7px;
	}

	.acjeh-event-row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 17px 0 19px;
	}

	.acjeh-event-date {
		font-size: 16px;
	}

	.acjeh-event-description {
		padding-left: 15px;
		font-size: 15px;
		line-height: 1.8;
	}
}
