/* タブ関連のスタイル */
/* タブ関連のスタイル */
.area {
	display: flex;
	width: 100%;
	margin: auto;
	flex-wrap: wrap;
}

.tab_class {
	display: block;
	float: left;
	width: calc(100%/6);
	height: 50px;
	font-size: 18px;
	text-align: center;
	line-height: 50px;
	background: #ccc;
	order: -1;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 767px) {
	.tab_class {
		width:auto;
		border: 1px solid black;
		padding: 0 3px;
		font-size: 3vw;
	}
}

.tab_class:hover {
	color: #fff;
	background: #a0a0a0;
}

input[name="tab_name"] {
	display: none !important;
}

input:checked + .tab_class {
	color: aliceblue;
	background: cadetblue;
}

.content_class {
	display: none;
	width: 100%;
}

input:checked + .tab_class + .content_class {
	display: block;
}

/* リーグスケジュール表のスタイル */
.result_score {
	width: 100%;
	max-width: 100%;
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.result_score h3 {
	margin-bottom: 20px;
	padding-bottom: 10px;
	color: #c41e3a;
	font-size: 1.4em;
	border-bottom: 2px solid #ffebee;
}

.scrl_class {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* テーブルのベーススタイル */
.result_score table {
	width: 1160px;
	min-width: 1160px;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

/* ヘッダーのスタイル */
.result_score thead th {
	position: sticky;
	top: 0;
	width: 120px;
	padding: 15px;
	color: #f8f9fa;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	background: #2c3e50;
	border-bottom: 2px solid #e9ecef;
	white-space: nowrap;
	z-index: 1;
}

.result_score thead th:first-child {
	position: sticky;
	left: 0;
	width: 120px;
	text-align: left;
	z-index: 3;
}

.result_score thead th.point-header {
	width: 80px;
}

/* チーム名列のスタイル */
.result_score .team_nm {
	position: sticky;
	left: 0;
	width: 160px;
	padding: 15px;
	color: #f8f9fa;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	background: #2c3e50;
	border-right: 2px solid #e9ecef;
	z-index: 2;
}

/* セルのスタイル */
.result_score td {
	width: 130px;
	padding: 12px;
	font-size: 0.95em;
	text-align: center;
	line-height: 1.4;
	background: #fff;
	border: 1px solid #e9ecef;
}

.result_score td.get_point {
	width: 80px;
}

/* スコア表示のスタイル */
.result_score td .score {
	display: inline-block;
	padding: 4px 8px;
	font-weight: bold;
	border-radius: 4px;
}

.result_score td .score-red,
.result_score td span[style*="color: #f00"] {
	color: #ff0000;
	background: #fff1f1;
}

.result_score td .score-green,
.result_score td span[style*="color: #0a0"] {
	color: #00aa00;
	background: #f1fff1;
}

/* 試合日付のスタイル */
.result_score td .game-date {
	display: inline-block;
	margin-left: 4px;
	color: #4444ff;
	font-size: 14px;
}

/* 特殊セルのスタイル */
.result_score .no_game {
	color: #f8f9fa;
	background: #f8f9fa;
}

.result_score .get_point {
	color: #c41e3a;
	font-weight: 600;
	background: #fff1f1;
}

/* 店舗名とマーカーのスタイル */
.result_score .venue-name,
.result_score .header-venue-name {
	display: block;
	color: #ccc;
	font-size: 12px;
	line-height: 12px;
	word-break: break-word;
	white-space: normal;
}
.result_score .team-marker-label {
	width: 100%;
	text-align: right;
}
.result_score .home-marker {
	color: #00aa00;
}

.result_score .away-marker {
	color: #ff0000;
}

/* シーズンセレクター */
.league-season-label {
	display: block;
	margin-bottom: 8px;
	color: var(--primary-color);
	font-size: 1.1em;
	font-weight: bold;
}

.season-selector {
	width: 100%;
	max-width: 400px;
	margin-bottom: 30px;
}

.form-group {
	display: flex;
	margin-bottom: 15px;
	align-items: center;
}

.form-group label {
	margin-right: 10px;
	font-weight: bold;
}

.form-select {
	min-width: 180px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.result_score {
		margin: 0;
		padding: 10px;
		border-radius: 0;
	}

	.result_score h1 {
		margin-bottom: 15px;
		font-size: 1.2em;
	}

	.scrl_class {
		margin: 0;
		padding: 0;
	}

	.result_score table {
		width: 1200px;
		min-width: 1200px;
	}

	.result_score thead th,
	.result_score td {
		padding: 8px;
		font-size: 0.85em;
	}

	.result_score .venue-name,
	.result_score .header-venue-name {
		font-size: 10px;
		line-height: 1.2;
	}

	.form-group {
		flex-direction: column;
		align-items: flex-start;
	}

	.form-group label {
		margin-bottom: 5px;
	}

	.form-select {
		width: 100%;
	}

	.result_score thead th:first-child,
	.result_score .team_nm {
		width: 80px;
	}
	
	.result_score .team_nm {
		font-size: 14px;
		padding: 7px;
		overflow-wrap: break-word;
		white-space: normal;
	}
}

/* 印刷用スタイル */
@media print {
	.result_score {
		width: 100%;
		max-width: none;
		padding: 0;
		box-shadow: none;
		overflow: visible;
	}

	.scrl_class {
		width: 100%;
		overflow: visible;
	}

	.result_score table {
		width: 100%;
		min-width: 0;
	}
}
