@charset "utf-8";

/*######################################################
私たちの歩み（2026リニューアル・修正版）
Figma 411:2495「260924_デザイン_私たちの歩み_修正版（写真方針・アコーディオン）」

・年代ごとのアコーディオン（見出しと中身を1つの枠に収め、間に区切り線）
　閉じたパネルも HTML には出力し、display:none で隠す（仕様メモ：SEOのため）
・2011年度以前は一覧表、2012年度以降は写真付きカード
・PC：カードは中央の線を挟んで左右交互。上下を200pxずつ重ねて互い違いに見せる
　（DOMは年度順のまま。読み上げ順が崩れないよう、並べ替えずに余白で重ねている）
・タブレット／SP：左に線を置いた1列
######################################################*/

.history-intro {
	padding-block: 120px;
}

.history-intro .c-head {
	margin-bottom: 0;
}

.history-intro .c-head__lead {
	line-height: 2;
}

.history-intro .c-head {
	gap: 18px;
}

/* 本文との間は1行分あける（デザインは空行1つ） */
.history-intro .c-head__lead.history-intro__note {
	margin-top: 16px;
}


/* ==============================
年表の器
============================== */
.history {
	padding-block: 80px;
	background-image: linear-gradient(160deg, var(--c-warm-white) 0%, var(--c-navy-50) 100%);
}

.history__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: min(var(--w-container), 100% - 48px);
	margin-inline: auto;
}


/* ==============================
アコーディオンのパネル
============================== */
.history-panel {
	border: 1px solid var(--c-navy-100);
	border-radius: 18px;
	background-color: var(--c-white);
	box-shadow: 0 2px 10px rgba(35, 64, 101, 0.05);
	scroll-margin-top: 96px;
}

.history-panel__toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 22px 28px;
	border: 0;
	border-radius: 18px;
	background-color: transparent;
	font-family: var(--f-sans);
	text-align: left;
	cursor: pointer;
}

.history-panel__toggle:focus-visible {
	outline: 2px solid var(--c-navy-500);
	outline-offset: 2px;
}

.history-panel__pill {
	flex: none;
	padding: 6px 14px;
	border-radius: 20px;
	background-color: var(--c-navy-50);
	font-family: var(--f-en);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
	color: var(--c-navy-700);
}

.history-panel__text {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.history-panel__title {
	font-family: var(--f-serif);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.5;
	color: var(--c-navy-900);
}

.history-panel__meta {
	font-size: 13px;
	line-height: 1.6;
	color: var(--c-navy-300);
}

/* 開閉の山形（閉：下向き／開：上向き） */
.history-panel__chevron {
	position: relative;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--c-navy-50);
	transition: background-color 0.3s ease;
}

.history-panel__chevron::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 15px;
	width: 8px;
	height: 8px;
	border-right: 1.8px solid var(--c-navy-700);
	border-bottom: 1.8px solid var(--c-navy-700);
	transform: rotate(45deg);
	transition: transform 0.3s ease, top 0.3s ease;
}

.history-panel__toggle:hover .history-panel__chevron,
.history-panel.is-open .history-panel__chevron {
	background-color: #EAF0F8;
}

.history-panel.is-open .history-panel__chevron::before {
	top: 17px;
	transform: rotate(-135deg);
}

.history-panel__body {
	display: none;
	border-top: 1px solid #EDF1F7;
}

.history-panel.is-open .history-panel__body {
	display: block;
}


/* ==============================
創立〜2011年度：写真なしの一覧表
============================== */
#panel-roster {
	padding: 24px 32px;
}

.history-roster {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.history-roster thead th {
	padding: 0 0 12px;
	border-bottom: 1px solid var(--c-navy-100);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--c-navy-300);
}

.history-roster thead th:nth-child(1) {
	width: 150px;
}

.history-roster thead th:nth-child(2),
.history-roster thead th:nth-child(3) {
	width: 200px;
}

.history-roster tbody tr + tr {
	border-top: 1px solid #EFF3F8;
}

.history-roster tbody th,
.history-roster tbody td {
	padding: 11px 0;
	vertical-align: middle;
}

.history-roster__term {
	font-family: var(--f-en);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.6;
	color: #C79A4B;
}

.history-roster__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--c-ink);
}

.history-roster__event {
	font-size: 13px;
	line-height: 1.7;
	color: var(--c-ink-muted);
}

.history-roster__event.is-empty {
	color: var(--c-line);
}


/* ==============================
2012年度以降：写真付きカードの年表
============================== */
.history-panel__body .history__list {
	position: relative;
	margin: 0;
	padding: 28px 20px;
	list-style: none;
}

/* 中央の線（最初の点から始める） */
.history__list::before {
	content: "";
	position: absolute;
	top: 65px;
	bottom: 28px;
	left: 50%;
	width: 2px;
	border-radius: 1px;
	background-color: #DCE4EF;
	transform: translateX(-50%);
}

.history__item {
	position: relative;
	width: calc(50% - 39.5px);
}

/*
 前のカードの下端から200px重ねる。同じ側のカードとの間隔（40px以上）は
 カードの高さによって変わるため、page-history.js が margin-top を計算して上書きする。
 （以下はJSが動かない場合の控え）
*/
.history__item + .history__item {
	margin-top: -150px;
}

.history__item--left {
	margin-right: auto;
}

.history__item--right {
	margin-left: auto;
}

/* 線の上の点 */
.history__item::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 30px;
	width: 14px;
	height: 14px;
	border: 3px solid var(--c-white);
	border-radius: 50%;
	background-color: var(--c-gold-500);
	box-sizing: border-box;
}

.history__item--left::before {
	right: -46.5px;
}

.history__item--right::before {
	left: -46.5px;
}

/* 現年度の点は一回り大きく（18px） */
.history__item.is-current::before {
	top: 28px;
	width: 18px;
	height: 18px;
}

.history__item--left.is-current::before {
	right: -48.5px;
}

.history__item--right.is-current::before {
	left: -48.5px;
}

/* 最後の点より下の線を、パネルの地色で隠す */
.history__item:last-child::after {
	content: "";
	position: absolute;
	top: 44px;
	bottom: -28px;
	width: 8px;
	background-color: var(--c-white);
}

.history__item--left:last-child::after {
	right: -43.5px;
}

.history__item--right:last-child::after {
	left: -43.5px;
}


/* ==============================
年度のカード
============================== */
.history-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 26px;
	border-radius: 16px;
	background-color: var(--c-white);
	box-shadow: 0 2px 8px rgba(18, 35, 61, 0.06), 0 14px 32px rgba(18, 35, 61, 0.09);
}

.history-card__top {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* 現年度：ゴールドの枠＋バッジ */
.history__item.is-current .history-card {
	outline: 1.5px solid var(--c-gold-500);
	outline-offset: -1.5px;
}

.history-card__badge {
	padding: 4px 10px;
	border-radius: 4px;
	background-color: var(--c-gold-200);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--c-gold-ink);
}

.history-card__term {
	font-family: var(--f-en);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: 0.03em;
	color: var(--c-gold-500);
}

.history-card__theme {
	font-family: var(--f-serif);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.6;
	color: var(--c-navy-900);
}

.history-card__event {
	font-size: 15px;
	line-height: 2;
	color: var(--c-ink-muted);
}

/* 写真を出さない方がいても、肩書き・氏名は下端で揃える */
.history-card__people {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 14px;
	list-style: none;
	padding-left: 0;
}

.history-card__person {
	display: flex;
	flex-direction: column;
}

.history-card__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 206 / 217;
	margin-bottom: 8px;
	border-radius: 10px;
	object-fit: cover;
	background-image: linear-gradient(160deg, var(--c-navy-100) 0%, var(--c-navy-50) 100%);
}

/* 退会された方：写真の代わりにロータリーの歯車（Figma 411:2764。枠の約55%・不透明度20%） */
.history-card__photo--wheel {
	position: relative;
	display: block;
	background-color: var(--c-navy-50);
	overflow: hidden;
}

.history-card__photo--wheel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url(../img/common/rotary-wheel.svg) center / 55% auto no-repeat;
	opacity: 0.2;
}

.history-card__role {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--c-navy-300);
}

.history-card__name {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--c-ink);
}


/* ==============================
あわせてご覧ください
============================== */
.history-related {
	padding-top: 110px;
	background-color: var(--c-navy-50);
	background-image: none;
}


/* ==============================
タブレット・SP：左に線を置いた1列
============================== */
@media (max-width: 1024px) {
	/* 点の中心（左余白20px＋6px＋半径6px）に合わせる */
	.history__list::before {
		top: 58px;
		left: 31px;
		transform: none;
	}

	.history__item,
	.history__item--left,
	.history__item--right {
		width: auto;
		margin: 0;
		padding: 0 0 10px 34px;
	}

	.history__item + .history__item {
		margin-top: 0;
	}

	.history__item--left::before,
	.history__item--right::before {
		top: 26px;
		left: 6px;
		right: auto;
		width: 12px;
		height: 12px;
	}

	.history__item--left.is-current::before,
	.history__item--right.is-current::before {
		top: 26px;
		left: 4px;
		width: 16px;
		height: 16px;
	}

	.history__item--left:last-child::after,
	.history__item--right:last-child::after {
		top: 38px;
		left: 8px;
		right: auto;
	}
}

@media (max-width: 767px) {
	.history-intro {
		padding-block: 60px;
	}

	.history-intro .c-head {
		gap: 16px;
	}

	.history-intro .c-head__title {
		font-size: 25px;
	}

	.history-intro .c-head__lead.history-intro__note {
		margin-top: 15px;
	}

	.history-related {
		padding-top: 72px;
		background-image: linear-gradient(160deg, var(--c-navy-50) 0%, var(--c-warm-white) 100%);
	}

	.history-related .c-related__link {
		gap: 8px;
		padding: 24px 22px;
	}

	.history {
		padding: 12px 0 56px;
	}

	.history__inner {
		gap: 18px;
		width: 100%;
		padding-inline: 20px;
	}

	.history-panel {
		border-radius: 14px;
		scroll-margin-top: 76px;
	}

	.history-panel__toggle {
		padding: 16px;
		border-radius: 14px;
	}

	.history-panel__pill {
		padding: 6px 14px;
		font-size: 18px;
	}

	.history-panel__title {
		font-size: 16px;
	}

	.history-panel__meta {
		font-size: 12px;
	}

	.history-panel__chevron {
		width: 32px;
		height: 32px;
	}

	.history-panel__chevron::before {
		top: 10px;
		left: 12px;
	}

	.history-panel.is-open .history-panel__chevron::before {
		top: 14px;
	}

	/* 一覧表は年度ごとの積み上げ */
	#panel-roster {
		padding: 14px 18px;
	}

	.history-roster,
	.history-roster tbody,
	.history-roster tr,
	.history-roster th,
	.history-roster td {
		display: block;
	}

	.history-roster thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.history-roster tbody tr {
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding-block: 12px;
	}

	.history-roster tbody th,
	.history-roster tbody td {
		padding: 0;
	}

	.history-roster__term {
		font-size: 14px;
	}

	.history-roster__name {
		display: flex;
		gap: 8px;
		font-size: 14px;
	}

	.history-roster__name::before {
		content: attr(data-label);
		flex: none;
		width: 28px;
		font-size: 11px;
		font-weight: 400;
		line-height: 2;
		color: var(--c-navy-300);
	}

	.history-roster__event {
		font-size: 12px;
	}

	.history-roster__event.is-empty {
		display: none;
	}

	/* カード */
	.history-panel__body .history__list {
		padding: 16px 14px;
	}

	/* 点の中心（左余白14px＋6px＋半径6px）に合わせる */
	.history__list::before {
		top: 48px;
		bottom: 16px;
		left: 25px;
	}

	.history__item:last-child::after {
		bottom: -16px;
	}

	.history-card {
		gap: 10px;
		padding: 18px 20px;
	}

	.history-card__top {
		gap: 10px;
	}

	.history-card__term {
		font-size: 18px;
	}

	.history-card__theme {
		font-size: 20px;
	}

	.history-card__event {
		font-size: 16px;
		line-height: 1.95;
	}

	.history-card__people {
		gap: 12px;
	}

	.history-card__photo {
		aspect-ratio: 109 / 124;
		margin-bottom: 6px;
	}

	.history-card__name {
		font-size: 15px;
		line-height: 1.6;
	}
}
