@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;
}

.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;
}

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

.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 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;
}

@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;
	}
}
