@charset "UTF-8";

/*######################################################
例会スケジュール一覧（2026リニューアル）
Figma：開催予定 430:6287「デザイン_例会スケジュール（開催予定）」
　　　 過去の例会 429:5059「例会スケジュール（過去の例会・月別アコーディオン案）」

・例会スケジュールページと、例会の詳細ページ下部の一覧で共通
・開催予定：月ごとのブロック（直近の月だけ見出しの縦罫をゴールド）
・過去の例会：年度ごとに月別アコーディオン（開いている月の縦罫をゴールド）
　閉じた月は hidden="until-found"（開閉は page-schedules.js）
・SP（〜767px）のカンプはないため、トップページ「例会について」の行のSPレイアウトに合わせた
######################################################*/

.schedules-archive {
	padding-block: 100px 120px;
	background-image: linear-gradient(160deg, var(--c-white) 0%, var(--c-navy-50) 100%);
	scroll-margin-top: 72px;
}

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

.schedules-tab__panel {
	display: flex;
	flex-direction: column;
	gap: 40px;
}


/*######################################################
タブ
######################################################*/
.schedules-tab {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: start;
}

.schedules-tab__btn {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--c-navy-100);
	font-family: var(--f-serif);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.55;
	text-align: center;
	text-decoration: none;
	color: var(--c-navy-300);
	transition: color 0.3s ease;
}

.schedules-tab__btn.is-active {
	border-bottom: 3px solid var(--c-gold-500);
	color: var(--c-navy-900);
}

@media (any-hover: hover) {
	.schedules-tab__btn:not(.is-active):hover {
		color: var(--c-navy-700);
	}
}


/*######################################################
過去の例会：年度セレクト／すべて開く
######################################################*/
.schedules-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.schedules-year {
	display: flex;
	align-items: center;
	gap: 16px;
}

.schedules-year__label {
	font-size: 13px;
	line-height: 1.8;
	color: var(--c-ink-muted);
}

.schedules-year__field {
	position: relative;
}

/* ▼ */
.schedules-year__field::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 9px;
	height: 6px;
	background-color: var(--c-ink-muted);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform: translateY(-50%);
	pointer-events: none;
}

.schedules-year__select {
	appearance: none;
	height: 45px;
	padding: 0 46px 0 20px;
	border: 1px solid var(--c-navy-300);
	border-radius: 6px;
	background-color: var(--c-white);
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-navy-900);
	cursor: pointer;
}

.schedules-year__select:focus-visible,
.schedules-toolbar__toggle:focus-visible,
.schedules-month__toggle:focus-visible {
	outline: 2px solid var(--c-navy-500);
	outline-offset: 2px;
}

.schedules-year__submit {
	height: 45px;
	padding-inline: 18px;
	border: 1px solid var(--c-navy-300);
	border-radius: 6px;
	background-color: var(--c-white);
	font-family: var(--f-sans);
	font-size: 13px;
	color: var(--c-navy-700);
	cursor: pointer;
}

.schedules-toolbar__toggle {
	margin-left: auto;
	height: 40px;
	padding-inline: 38px;
	border: 1px solid var(--c-navy-300);
	border-radius: 28px;
	background-color: var(--c-white);
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-navy-700);
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.schedules-toolbar__toggle[hidden] {
	display: none;
}

@media (any-hover: hover) {
	.schedules-toolbar__toggle:hover {
		background-color: var(--c-navy-50);
		border-color: var(--c-navy-700);
	}
}


/*######################################################
月ブロック
######################################################*/
.schedules-months {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.schedules-month {
	scroll-margin-top: 96px;
}

.schedules-month__heading {
	margin: 0;
	font: inherit;
}

.schedules-month__header {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 22px 12px 22px 8px;
	border-bottom: 1px solid var(--c-navy-100);
}

/* 過去の例会：見出し全体が開閉ボタン */
.schedules-month__toggle {
	border-top: 0;
	border-inline: 0;
	background-color: transparent;
	font-family: var(--f-sans);
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.schedules-month__bar {
	flex: none;
	width: 3px;
	height: 26px;
	border-radius: 2px;
	background-color: var(--c-line);
	transition: background-color 0.3s ease;
}

/* 開催予定は直近の月、過去の例会は開いている月をゴールドに */
.schedules-month.is-current .schedules-month__bar,
.schedules-month.js-schedules-month.is-open .schedules-month__bar {
	background-color: var(--c-gold-500);
}

.schedules-month__title {
	margin: 0;
	font-family: var(--f-serif);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.5;
	color: var(--c-navy-900);
}

/* 回数バッジ */
.schedules-month__count {
	flex: none;
	padding: 4px 12px;
	border-radius: 11px;
	background-color: var(--c-navy-100);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--c-navy-700);
}

/* ＋（閉）／−（開） */
.schedules-month__icon {
	position: relative;
	flex: none;
	width: 20px;
	height: 24px;
	margin-left: auto;
}

.schedules-month__icon::before,
.schedules-month__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 1.5px;
	background-color: var(--c-ink-muted);
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

.schedules-month__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.schedules-month.is-open .schedules-month__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

@media (any-hover: hover) {
	.schedules-month__toggle:hover .schedules-month__title {
		color: var(--c-navy-700);
	}
}

.schedules-month__body {
	padding-block: 20px 12px;
}

/* until-found は箱を残して中身だけ隠すため、余白も消す */
.schedules-month__body[hidden] {
	padding-block: 0;
}

.schedules-month__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding-left: 0;
	list-style: none;
}


/*######################################################
行（1回分の例会）
######################################################*/
.schedules-row {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 24px 28px;
	border-radius: 12px;
	background-image: linear-gradient(160deg, var(--c-white) 0%, #FBFDFF 100%);
	box-shadow: var(--shadow-card-s);
	word-break: break-all;
}

/* 休会の回：地色と影を落とす */
.schedules-row.is-closed {
	background-image: none;
	background-color: var(--c-navy-50);
	border: 1px solid var(--c-navy-100);
	box-shadow: none;
}

.schedules-row__date {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: none;
	width: 132px;
}

.schedules-row__year {
	font-family: var(--f-en);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: var(--c-navy-300);
}

.schedules-row__day {
	font-family: var(--f-en);
	font-weight: 500;
	font-size: 36px;
	line-height: 1.15;
	color: var(--c-ink-muted);
}

.is-closed .schedules-row__day {
	color: var(--c-navy-300);
}

.schedules-row__badge {
	flex: none;
	padding: 5px 14px;
	border-radius: 13px;
	background-color: var(--c-navy-100);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--c-ink-muted);
}

.is-closed .schedules-row__badge {
	padding-block: 4px;
	border: 1px solid var(--c-navy-300);
	background-color: transparent;
}

.schedules-row__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.schedules-row__info p {
	margin: 0;
}

.schedules-row__position {
	font-size: 12px;
	line-height: 1.7;
	color: var(--c-navy-300);
}

.schedules-row__name {
	font-family: var(--f-serif);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-ink-muted);
}

.schedules-row__subject {
	font-size: 13px;
	line-height: 1.8;
	color: var(--c-navy-300);
}

.schedules-row__tbd {
	font-size: 14px;
	line-height: 1.7;
	color: var(--c-navy-300);
}

/* 会場（ACF「会場」。空欄なら既定の会場名）2026-10-19 */
.schedules-row__venue {
	font-size: 13px;
	line-height: 1.8;
	color: var(--c-navy-300);
}


/* ==============================
ボタン類
============================== */
.schedules-row__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: none;
	width: 212px;
}

.schedules-row__actions--past {
	width: 160px;
	align-items: center;
}

/* 詳細を見る（開催予定） */
.schedules-row__detail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding-inline: 16px;
	border: 1.2px solid var(--c-navy-700);
	border-radius: 22px;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5;
	text-decoration: none;
	color: var(--c-navy-700);
	transition: background-color 0.3s ease;
}

.schedules-row__detail::after {
	content: "";
	flex: none;
	width: 5px;
	height: 9px;
	background-color: #C79A4B;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* 本文・資料がまだない回 */
.schedules-row__detail.is-disabled {
	border-color: #E9EEF5;
	color: #B6C3D4;
	cursor: default;
}

.schedules-row__detail.is-disabled::after {
	content: none;
}

.schedules-row__gcal {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border: 1px solid var(--c-navy-300);
	border-radius: 22px;
	background-color: var(--c-white);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
	color: var(--c-navy-700);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (any-hover: hover) {
	a.schedules-row__detail:hover {
		background-color: var(--c-navy-50);
	}

	.schedules-row__gcal:hover {
		background-color: var(--c-navy-50);
		border-color: var(--c-navy-700);
	}
}

/* 詳細を見る（過去の例会：テキストリンク） */
.schedules-row__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-block: 10px;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5;
	text-decoration: none;
	color: var(--c-navy-700);
}

.schedules-row__more::after {
	content: "";
	flex: none;
	width: 4px;
	height: 10px;
	background-color: var(--c-navy-700);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transition: transform 0.3s ease;
}

@media (any-hover: hover) {
	.schedules-row__more:hover {
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.schedules-row__more:hover::after {
		transform: translateX(3px);
	}
}


/*######################################################
注記・前後の年度・データなし
######################################################*/
.schedules-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	color: var(--c-navy-300);
}

.schedules-fy-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 8px 8px;
	border-top: 1px solid var(--c-navy-100);
}

.schedules-fy-pager__link {
	position: relative;
	display: grid;
	gap: 2px;
	text-decoration: none;
}

.schedules-fy-pager__link--prev {
	padding-left: 17px;
}

.schedules-fy-pager__link--next {
	padding-right: 17px;
	text-align: right;
}

/* ◀ ▶ */
.schedules-fy-pager__link::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 3px;
	height: 10px;
	margin-top: 3px;
	background-color: var(--c-navy-700);
	transition: transform 0.3s ease;
}

.schedules-fy-pager__link--prev::before {
	left: 0;
	clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.schedules-fy-pager__link--next::before {
	right: 0;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.schedules-fy-pager__link.is-disabled {
	opacity: 0.35;
}

.schedules-fy-pager__label {
	font-size: 12px;
	line-height: 1.7;
	color: var(--c-navy-300);
}

.schedules-fy-pager__year {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.7;
	color: var(--c-navy-700);
}

.is-disabled .schedules-fy-pager__year {
	color: var(--c-navy-300);
}

@media (any-hover: hover) {
	a.schedules-fy-pager__link--prev:hover::before {
		transform: translateX(-3px);
	}

	a.schedules-fy-pager__link--next:hover::before {
		transform: translateX(3px);
	}
}

.schedules-empty {
	margin: 0;
	padding-block: 40px;
	text-align: center;
	color: var(--c-ink-muted);
}


/* ==============================
タブレット
============================== */
@media (max-width: 1024px) {
	.schedules-row {
		gap: 20px;
		padding: 24px;
	}

	.schedules-row__date {
		width: 96px;
	}

	.schedules-row__day {
		font-size: 30px;
	}

	.schedules-row__actions {
		width: 180px;
	}

	.schedules-row__actions--past {
		width: 120px;
	}
}


/* ==============================
SP
============================== */
@media (max-width: 767px) {
	.schedules-archive {
		padding-block: 56px 72px;
		scroll-margin-top: 59px;
	}

	.schedules-archive__inner {
		gap: 32px;
		width: 100%;
		padding-inline: 20px;
	}

	.schedules-tab__panel,
	.schedules-months {
		gap: 32px;
	}

	.schedules-tab__btn {
		padding-bottom: 10px;
		font-size: 18px;
	}

	.schedules-year {
		gap: 12px;
	}

	.schedules-toolbar__toggle {
		padding-inline: 20px;
	}

	.schedules-month__header {
		gap: 12px;
		padding: 18px 8px 18px 4px;
	}

	.schedules-month__title {
		font-size: 19px;
	}

	.schedules-month__body {
		padding-block: 16px 8px;
	}

	/*
	┌──────────────┬───────┐
	│ 年 日付       │ 回数  │
	├──────────────┴───────┤
	│ 肩書き・氏名・演題    │
	├──────────────────────┤
	│ ボタン                │
	└──────────────────────┘
	*/
	.schedules-row {
		display: grid;
		grid-template-areas:
			"date badge"
			"info info"
			"actions actions";
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 10px 14px;
		padding: 20px;
	}

	.schedules-row__date {
		grid-area: date;
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		width: auto;
	}

	.schedules-row__year {
		font-size: 14px;
	}

	.schedules-row__day {
		font-size: 30px;
	}

	.schedules-row__badge {
		grid-area: badge;
		justify-self: start;
		font-size: 12px;
	}

	.schedules-row__info {
		grid-area: info;
	}

	.schedules-row__position,
	.schedules-row__subject,
	.schedules-row__tbd,
	.schedules-row__venue {
		font-size: 14px;
	}

	.schedules-row__name {
		font-size: 18px;
	}

	.schedules-row__actions {
		grid-area: actions;
		width: 100%;
	}

	.schedules-row__actions--past {
		align-items: flex-end;
	}

	.schedules-row__actions:not(:has(*)) {
		display: none;
	}

	.schedules-row__detail,
	.schedules-row__gcal {
		height: 42px;
		font-size: 14px;
	}

	.schedules-row__more {
		padding-block: 0;
		font-size: 14px;
	}

	.schedules-note {
		font-size: 13px;
	}

	.schedules-fy-pager {
		padding: 24px 0 0;
	}

	.schedules-fy-pager__year {
		font-size: 15px;
	}
}
