@charset "utf-8";

body {
	background-color: rgb(64, 32, 64);
	color: #FFFFFF;
	margin: 0;
}

table {
	margin: 20px auto;
	border-collapse: collapse;
	font-size: 20px;
	display: none;
}

.group-name {
	text-align: center;
	font-size: clamp(40px, 2.75vw, 5.0rem);
	padding: 0.25em 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

table.active {
	display: table;
}

table.table-ranking {
	width: clamp(600px, 98vw, 1200px);
	max-width: 100%;
	overflow-x: auto;
}

th, td {
	border: 2px solid #222;
	padding: clamp(4px, 1vw, 12px);
	text-align: center;
}

th {
	background-color: #D3D3D3;
	color: #000000;
}

th.header-place {
	font-size: calc(0.5vw + 1rem);
	font-family: 'Roboto', sans-serif;
}

th.header-face {
	font-size: calc(0.5vw + 1rem);
	font-family: 'Roboto', sans-serif;
}

th.header-name {
	font-size: calc(0.5vw + 1rem);
	font-family: 'Roboto', sans-serif;
}

th.header-total {
	font-size: calc(0.5vw + 1rem);
	font-family: 'Roboto', sans-serif;
}

td.face-column {
	width: clamp(85px, 6vw, 105px);
	height: clamp(75px, 12vw, 85px);
	min-width: 80px;
	min-height: 80px;
	max-width: 100px;
	max-height: 100px;
	border-left: 0px;
	border-right: 0px;
}

td.name-column {
	font-weight: 900;
	font-size: clamp(40px, 2.75vw, 5.0rem);
	font-family: 'Oswald', sans-serif;
	letter-spacing: 1px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	text-align: left;
	white-space: nowrap;
	padding-left: 1vw;
	border-left: 0px;
	border-right: 0px;
}

td.rank-column {
	font-weight: 700;
	font-size: clamp(40px, 3vw, 2.5rem);
	width: clamp(60px, 8vw, 120px);
	max-width: 120px;
	font-family: 'Roboto', sans-serif;
	color: #FFCC00; /* デフォルトは黄色 */
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-right: 0px;
}

.top-8 td.rank-column {
	color: #FFCC00 !important;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.low-rank td.rank-column {
	color: #000000;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.blind td.rank-column {
	color: #000000;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.seed td.rank-column {
	color: #000000;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

img.banner {
	max-width: 1200px;
	width: 100%;
	height: auto;
}

img.banner-link {
	width: 80vw; 
	height: auto;
}

img.face {
	width: 100%;
	height: 100%;
	object-view-box: inset(0px 0px 67px 0px);
	object-fit: cover;
  border-radius:50%;
}

.top-8 td {
	background: linear-gradient(to bottom, #0066CC, #003399) !important; /* 水色 */
	color: #FFFFFF !important; /* 白文字 */
}

.mid-rank td {
	background: linear-gradient(to bottom, #008888, #004444) !important; /* 水色 */
	color: #FFFFFF !important; /* 白文字 */
}

.seed td {
	background: linear-gradient(to bottom, #00aa22, #006600) !important; /* 紺色 */
	color: #FFFFFF !important; /* 白文字 */
}

.low-rank td {
	background: linear-gradient(to bottom, #d0d8df, #a0a8a8) !important; /* 薄い青 */
	color: #202020 !important; /* 白文字 */
}

.blind td {
	background: linear-gradient(to bottom, #808888, #404848) !important; /* 薄い青 */
	color: #202020 !important; /* 白文字 */
}

.small-name {
	font-size: clamp(30px, 2vw, 4rem);
}

td.total-column {
	font-size: calc(3.5vw + 0.5rem);
	font-family: 'Roboto', sans-serif;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
	border-left: 0px;
}

.small-text {
	font-size: 70%;
}

.diff-text {
	font-size: 50%;
	color: #FFC800;
	display: block;
	margin: 1px;
	margin-left: 5vw;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.top-8 td .diff-text {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.mid-diff-text {
	font-size: 45%;
	color: #FFEECC !important;
	display: block;
	margin-top: 1px;
	margin-left: 1vw;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.semi-diff-text {
	font-size: 40%;
	color: #444 !important;
	display: block;
	margin-top: 1px;
	margin-left: 1vw;
	text-shadow: none;
	text-align: center;
}

.shift-text {
	font-size: 70%;
	margin-left: 4px;
}
/* 追加: 準決勝に進めない順位のシフト文字色を黒に */
.low-rank.below-semi .shift-text {
	color: #000000 !important;
}

.plus-minus {
	font-size: 60%;
	border: 1px solid #333;
	padding: 2px 4px;
	margin-left: 12px;
	display: inline-block;
}

.top-8 td .plus-minus {
	border: 1px solid #FFFFFF; /* 1～8位の枠線を白に */
}

.seed td .plus-minus {
	border: 1px solid #FFFFFF; /* 1～8位の枠線を白に */
}

.game-row {
	background-color : #201810;
	color: #f0f0f0;
	font-size: 2.5vw;
	font-weight:500;
	display: none;
	text-align: left;
}

.game-row.active {
	display: table-row;
	height: auto;
	animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
	from { height:0;
		opacity: 0;
	}

	to {
		height: auto;
		opacity: 1;
	}
}

.inner-table {
	width: 100%;
	min-width: 560px;
	overflow-x: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: fit-content;
}

.inner-table td {
	padding: clamp(4px, 1vw, 8px);
	border: 1px solid #999;
	font-size: clamp(12px, 2vw, 20px);
	box-sizing: border-box;
	min-width: 40px;
}

.inner-table .game-label {
	font-size: clamp(8px, 1.2vw, 12px);
	background-color: #E6E6FA;
}

.high-low-diff {
	color: #0033FF;
	font-weight: bold;
}

.banner {
	background-color: rgb(128, 64, 128);
	color: #FFFFFF;
	padding: 20px 0;
	text-align: center;
	width: 100%;
	margin-bottom: 20px;
}

.game-status {
	font-size: clamp(20px, 3.5vw, 3rem);
	font-family: 'Oswald', sans-serif;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	margin: 10px 0;
	white-space: nowrap;
}

.game-status-pre {
	color: #CCCCCC;
}

.game-status-now {
	color: #EEEE00; /* 黄色文字 */
}

.game-status-fin {
	color: #FF8800; /* 黄色文字 */
}

#game-status-header {
  position: fixed;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transition: all 0.3s;
}

#game-status-header.active {
  opacity: 1;
  transition: all 0.3s;
}

h2 {
	font-size: clamp(20px, 4vw, 3rem);
	font-family: 'Oswald', sans-serif;
	margin: 10px 0;
	white-space: nowrap;
}

h3 {
	font-size: clamp(16px, 2vw, 1.5rem);
	font-family: 'Oswald', sans-serif;
	margin: 5px 0;
}

.tab-buttons {
	text-align: center;
	margin: 10px 0;
}

.tab-button {
	background-color: #E6E6FA;
	color: #000000;
	border: 1px solid #999;
	padding: 8px 16px;
	margin: 20px 5px;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-size: clamp(12px, 3.0vw, 2.5rem);
	border-radius: 5px;
}

.tab-button.active {
	background-color: #87CEEB;
	border-color: #FFCC00;
	color: #000000;
}

.tab-buttons a {
	color: #222;
	text-decoration: none;
}

.category-button {
	background-color: #E6E6FA;
	color: #000000;
	border: 1px solid #999;
	padding: 8px 16px;
	margin: 0 5px;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-size: clamp(12px, 3.0vw, 2.5rem);
	border-radius: 5px;
}

.category-button.active {
	background-color: #87CEEB;
	border-color: #FFCC00;
	color: #000000;
}

.score-low {
	color: #c0c0c0;
}

.score-normal {
	color: #ffff88;
}

.score-perfect {
	color: #FF4500;
}

.final-buttons {
	text-align: center;
	margin: 10px 0;
	white-space: nowrap;
}

.final-buttons a {
	color: #222;
	text-decoration: none;
}

.footer {
	text-align: center;
	margin-top: 20px;
	font-size: 12px;
	color: #666; /* 目立たないグレー */
}

.footer a {
	color: #666;
	text-decoration: none;
}

.footer a:hover {
	text-decoration: underline;
}

.youtube-link {
	text-align: center;
	margin: 10px 0;
	font-size: clamp(12px, 3.0vw, 2.5rem);
	color: #FFFFFF; /* バナーに合わせて白 */
}

.youtube-link a {
	color: #FF0000; /* YouTubeっぽい赤 */
	text-decoration: none;
	background-color: #FFFF00; /* 黄色の背景 */
	border: 2px solid #FFFFFF; /* 白い縁取り */
	padding: 4px 8px; /* 余白 */
	display: inline-block; /* ボックス形状 */
	border-radius: 5px;
}

.youtube-link a:hover {
	text-decoration: underline;
}