@charset "utf-8";

/* 講座・説明会の共通UI（アコーディオン + 詳細表 + 日程表） */

.event-block {
	margin-bottom: 80px;
}

.koza_banner {
	margin-top: 2rem;
}

.koza_banner img {
	cursor: pointer;
	width: 100%;
}

.accordion-btn {
	width: 100%;
	display: inline-block;
	background: #337ab7;
	color: #fff;
	padding: 0.6em 1.3em;
	border: none;
	border-radius: 0 0 0.5em 0.5em;
	cursor: pointer;
	font-size: 1em;
	font-weight: bold;
	margin: 0;
	transition: background 0.2s;
}

.accordion-btn:hover,
.accordion-btn:focus {
	background: #23527c;
}

.details {
	display: none;
	overflow: hidden;
	transition: all 0.5s ease;
}

.details.open {
	display: block;
	animation: detailsFadeIn 0.5s;
}

@keyframes detailsFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* 詳細エリアの項目表（内容・対象・日程など） */
.days table {
	width: 100%;
	border-collapse: collapse;
}

/* 外側表が日程表の実幅で膨らまないようにし、中の table-window で横スクロールさせる */
.days > table {
	table-layout: fixed;
}

.days th {
	border-bottom: solid 1px #999999;
	color: #444444;
	background-color: #e9eef7;
	line-height: 22px;
	vertical-align: middle;
	text-align: center;
	font-size: 0.8rem;
}

.days td {
	border: solid 1px #999999;
	color: #444444;
	background-color: #ffffff;
	padding: 8px 10px;
	vertical-align: middle;
}

.event-detail-table {
	table-layout: fixed;
	width: 100%;
}

.event-detail-table > tr > th,
.event-detail-table > tbody > tr > th {
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	padding: 8px 2px;
	line-height: 1.2;
	font-size: 0.75rem;
	white-space: normal;
	text-align: center;
}

/* 校舎別日程表（体験講座 tetai_days / 説明会 schooltime_table を統合） */
.nittei-table-wrap {
	display: block;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 10px 0;
}

.nittei-table-wrap .scroll-hint-icon-wrap {
	overflow: hidden;
}

.nittei-table,
.tetai_days,
table.schooltime_table {
	width: max-content;
	max-width: none;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.8rem;
}

.nittei-table th,
.tetai_days th,
table.schooltime_table th {
	border: solid 1px #999999;
	color: #444444;
	background-color: #ececec;
	line-height: 16px;
	vertical-align: middle;
	padding: 4px 10px;
	white-space: nowrap;
	text-align: center;
}

.nittei-table td,
.tetai_days td,
table.schooltime_table td {
	border: solid 1px #999999;
	color: #444444;
	background-color: #ffffff;
	padding: 4px 10px;
	line-height: 18px;
	vertical-align: middle;
	white-space: nowrap;
}

.nittei-table tbody th,
.tetai_days tbody th,
table.schooltime_table tbody th {
	width: 1%;
	text-align: center;
}

.nittei-table thead th:first-child,
.nittei-table tbody th.nittei-area {
	padding-left: 4px;
	padding-right: 4px;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	line-height: 1.2;
	font-size: 0.75rem;
}

.nittei-table td a,
.tetai_days td a,
table.schooltime_table td a,
a.kousya-page-link {
	text-decoration: none;
	color: inherit;
	font-weight: bold;
	transition: all 0.3s ease;
	border-bottom: 2px dotted #5f5f5f;
	white-space: nowrap;
}

.nittei-table td a:after,
.tetai_days td a:after,
table.schooltime_table td a:after,
a.kousya-page-link:after {
	font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
	content: '\f35d';
	font-size: 0.9em;
	margin: 0 3px;
	font-weight: 900;
}

.nittei-time-cell {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	white-space: nowrap;
	vertical-align: middle;
}

.nittei-table:has(.nittei-reserve-btn) th,
.nittei-table:has(.nittei-reserve-btn) td {
	padding-top: 5.2px;
	padding-bottom: 5.2px;
	vertical-align: middle;
}

.nittei-table:has(.nittei-reserve-btn) td {
	line-height: 23.4px;
}

.nittei-table:has(.nittei-reserve-btn) th {
	line-height: 20.8px;
}

.nittei-table td a.nittei-reserve-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 3.4em;
	padding: 0.216em 0.72em 0.24em;
	border: none;
	border-bottom: none;
	border-radius: 999px;
	background: #1d5fa3;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.62;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(16, 42, 74, 0.18);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nittei-table td a.nittei-reserve-btn:visited {
	color: #fff;
}

.nittei-table td a.nittei-reserve-btn:hover,
.nittei-table td a.nittei-reserve-btn:focus {
	background: #15487c;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(16, 42, 74, 0.22);
}

.nittei-table td a.nittei-reserve-btn:after {
	content: none;
	margin: 0;
	display: none;
}

@media (max-width: 600px) {
	.nittei-table,
	.tetai_days,
	table.schooltime_table {
		font-size: 0.75rem;
	}

	.nittei-table th,
	.nittei-table td,
	.tetai_days th,
	.tetai_days td,
	table.schooltime_table th,
	table.schooltime_table td {
		padding: 4px 8px;
	}

	.nittei-table thead th:first-child,
	.nittei-table tbody th.nittei-area {
		padding-left: 1px;
		padding-right: 1px;
		width: 2em;
		min-width: 2em;
		max-width: 2em;
	}

	.event-detail-table > tr > th,
	.event-detail-table > tbody > tr > th {
		width: 2em;
		min-width: 2em;
		max-width: 2em;
		padding: 8px 1px;
	}
}
