/* ==========================================================
   課外教室専用レイアウト＆装飾（レイアウト維持版）
   ========================================================== */

#mv {
	background: url(../img/bg_mv.jpg) no-repeat 50% 50% / 100% auto;
	overflow: hidden;
}
#mv .inside {
	height: 400px;
	position: relative;
}
#mv p {
	background-color: rgba(118, 167, 108, 0.85); /* 課外教室用のグリーン半透明 */
	color: #fff;
	font-size: 150%;
	font-weight: bold;
	left: 50%;
	letter-spacing: 2px;
	padding: 6px 40px 4px;
	position: absolute;
	text-align: center;
	text-shadow: 2px 2px 4px rgba(0,0,0,.25);
	top: 60%;
	transform: translate(-50%, -50%);
	width: 100%;
}

section {
	padding: 60px 0;
}

/* 導入ボックスセクション */
#poster {
	background-color: #ebf7e7;
	padding: 60px 0;
}
#poster .inside {
	max-width: 800px;
	margin: 0 auto;
}

.intro-box-custom {
	background: #ffffff;
	border: 3px dashed #bce0b4;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 15px rgba(118, 167, 108, 0.08);
}
.intro-box-custom h3 {
	font-size: 130%;
	color: #4a7541;
	font-weight: bold;
	margin-bottom: 15px;
	text-align: center;
}
.intro-box-custom li strong {
	color: #d96b27;
}

/* スケジュールセクション */
#schedule {
	background-color: #fff;
	padding: 60px 0 80px;
}

.schedule-title {
	font-size: 148%;
	text-align: center;
	color: #528c47; /* グリーン */
	margin-bottom: 12px;
	letter-spacing: .08em;
}
.title-deco {
	color: #f5c53a;
	margin: 0 .4em;
}

.schedule-lead {
	text-align: center;
	font-size: 95%;
	color: #777;
	margin-bottom: 40px;
	letter-spacing: .03em;
}

.table-wrap {
	width: 80%;
	margin: 0 auto;
}

/* テーブルベース構造 */
.schedule-table {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 105%;
	margin: 0 auto;
	width: 100%;
	border: 3px solid #76a76c; /* グリーン */
	border-radius: 12px;
	overflow: hidden;
}

.schedule-table thead tr {
	border-bottom: none;
}
.schedule-table th {
	background-color: #76a76c; /* グリーン */
	border-left: none;
	color: #fff;
	font-weight: bold;
	letter-spacing: .06em;
	padding: 14px 20px;
	text-align: center;
}

.schedule-table tbody tr {
	border-bottom: none;
	transition: background-color .2s ease;
}
/* 行ごとの背景色の互い違い指定 */
.schedule-table tbody tr:nth-child(odd) td {
	background-color: #fcfdfe;
}
.schedule-table tbody tr:nth-child(even) td {
	background-color: #fff;
}
.schedule-table tbody tr:hover td {
	background-color: #f4faf2;
}
.schedule-table td {
	border-left: none;
	border-bottom: 1px dashed #c2dac0;
	padding: 20px;
	vertical-align: middle;
}
.schedule-table tbody tr:last-child td {
	border-bottom: none;
}

/* 課外教室用の装飾 */
.cell-sports { background-color: #fdf6f0 !important; color: #d96b27; font-weight: bold; }
.cell-english { background-color: #f2f7ff !important; color: #2b6cb0; font-weight: bold; }
.cell-piano { background-color: #fef0f5 !important; color: #b83280; font-weight: bold; }

.photo-frame {
	width: 100%;
	max-width: 400px;
	height: auto;
	border: 5px solid #f5f3ec;
	border-radius: 10px;
	box-shadow: 2px 2px 6px rgba(0,0,0,0.06);
}

.schedule-note {
	margin: 28px auto 0;
	width: 80%;
}
.schedule-note p {
	color: #888;
	font-size: 88%;
	line-height: 1.9;
	padding-left: 1em;
	text-indent: -1em;
}

/* レスポンシブ対応（1024px以下） */
@media screen and (max-width: 1024px) {
	#mv {
		background-position: 50% 0;
	}
	#mv p {
		font-size: 120%;
	}
	.schedule-table {
		width: 95%;
	}
	.schedule-note {
		width: 95%;
	}
}

/* レスポンシブ対応（スマホ版・829px以下） */
@media screen and (max-width: 829px) {
	#mv {
		background-size: auto 100%;
	}
	#poster .inside {
		padding: 0 16px;
	}
	.intro-box-custom {
		padding: 20px 16px;
	}
	.schedule-title {
		font-size: 120%;
	}
	.schedule-lead {
		font-size: 88%;
		padding: 0 16px;
	}

	.table-wrap {
		width: 92%;
	}
	.schedule-note {
		width: 92%;
	}

	/* テーブルをブロック化する指定 */
	.schedule-table thead {
		display: none;
	}
	.schedule-table{
		border: none;
	}
	.schedule-table,
	.schedule-table tbody,
	.schedule-table tr,
	.schedule-table td {
		display: block;
		width: 100%;
	}
	.schedule-table tbody tr {
		border: 3px solid #76a76c;
		border-radius: 12px;
		margin-bottom: 20px;
		overflow: hidden;
	}
	.schedule-table tbody tr:nth-child(odd) td,
	.schedule-table tbody tr:nth-child(even) td {
		background-color: #fff;
	}
	.schedule-table td {
		border-bottom: 1px dashed #c2dac0;
		border-left: none;
		box-sizing: border-box;
		padding: 16px;
		text-align: left;
		position: relative;
	}
	.schedule-table td:last-child {
		border-bottom: none;
	}
	
	/* スマホ用ラベルのスタイル追加 */
	.schedule-table td::before {
		content: attr(data-label);
		background-color: #76a76c;
		border-radius: 4px;
		color: #fff;
		display: inline-block;
		font-size: 80%;
		font-weight: bold;
		margin-bottom: 10px;
		padding: 2px 8px;
		white-space: nowrap;
	}
	
	.schedule-table td.cell-sports,
	.schedule-table td.cell-english,
	.schedule-table td.cell-piano {
		font-size: 110%;
		padding: 12px 16px;
		text-align: center;
	}
	.schedule-table td.cell-sports::before,
	.schedule-table td.cell-english::before,
	.schedule-table td.cell-piano::before {
		display: none; 
	}
}

/* レスポンシブ対応（小画面スマホ・539px以下） */
@media screen and (max-width: 539px) {
	#mv .inside {
		height: 300px;
	}
	#mv p {
		font-size: 110%;
	}
}