@charset "utf-8";

body {
	background-image: url(bowlstar-2025final.jpg);
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	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, 1500px);
	max-width: 99vw;
	overflow-x: auto;
}

th, td {
	border: 2px solid #222;
	padding: clamp(2px, 0.5vw, 6px);
	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);
	aspect-ratio: 1 / 1;
	height: clamp(85px, 6vw, 105px);
	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, 4rem);
	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: visible;
	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);
}

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

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

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

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

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

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

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

div.tr-row {
	display : flex;
	align-items: center;
}

div.face-column {
	width: clamp(85px, 6vw, 105px);
	aspect-ratio: 1 / 1;
	height: clamp(85px, 6vw, 105px);
	min-width: 80px;
	min-height: 80px;
	max-width: 100px;
	max-height: 100px;
	border-left: 0px;
	border-right: 0px;
}

div.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;
	line-height : 1.2;
}

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

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

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

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

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

div.total-column {
	font-size: calc(3.5vw + 1rem);
	font-family: 'Roboto', sans-serif;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
	border-left: 0px;
	margin-left: auto;
	margin-right: 20px;
	width : 30vw;
}


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

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

.text-narrow {
    transform: scale(0.7, 1);
}

.diff-text {
	font-size: 40%;
	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: 60%;
	margin-left: 20px;
	font-weight : 500;
}

.seed .shift-text {
	background: linear-gradient(45deg, #F6BB43 0%, #FAEF43 45%, #FEE9A0 70%, #FACF43 85%, #F6CB43 90% 100%);
	-webkit-background-clip:text;
	-webkit-text-fill-color: transparent;	
}

.top-8 .shift-text {
  	background: linear-gradient(45deg, #B5B5B5 0%, #DEDEDE 45%, #FFFFFF 70%, #DEDEDE 85%, #B5B5B5 90% 100%);
	-webkit-background-clip:text;
	-webkit-text-fill-color: transparent;	
}

.low-rank .shift-text {
  	background: linear-gradient(45deg, #441188 0%, #552299 45%, #6633AA 70%, #552299 85%, #441188 90% 100%);
	-webkit-background-clip:text;
	-webkit-text-fill-color: transparent;	
}

.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 : #201810D0;
	color: #f0f0f0;
	font-size: clamp(30px, 2vw, 4rem);
	font-weight:500;
	display: none;
	text-align: left;
}

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

.game-row p {
	line-height : 75%;
}

@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: rgba(128, 128, 128, 0.5);
	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;
  z-index: 100;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000E0;
  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;
}

.title-link {
}

.title-link a {
	color: #FFFFEE;
	text-decoration: none;
	padding: 4px 8px; /* 余白 */
	display: inline-block; /* ボックス形状 */
	border-radius: 5px;
}

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