@charset "utf-8";

body {
	background-image: url(lightning.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: 95vw;
	overflow-x: auto;
}

th, td {
	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;
}

.total-column-info {
	font-size: 33%;
	font-family: 'Roboto', sans-serif;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
	color : #eeeeee;
	background-color : #000000;
	border-left: 0px;
}

.subtotal-column-info {
	font-size: 72%;
	font-family: 'Roboto', sans-serif;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
	color : #88ffff;
	margin-top: 0.35em;
	margin-left : 0;
	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%;
}

img.ball {
	width: 90%;
	height: 90%;
	object-fit: cover;
	object-position: center center;
	border-radius:50%;
    border: 3px solid #ccc;
}

img.ball-thumb {
	width: 90%;
	height: 90%;
	object-fit: cover;
	object-position: center center;
	border-radius:50%;
    border: 1px solid #ccc;
}

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; /* 白文字 */
}

tr.player-row {
      position: relative;
      padding: 16px 24px;
      color: #fff;
      transform: skewX(9deg); /* 本体を傾ける */
      border-radius: 12px;
      isolation: isolate;
}

    /* 背景だけを平行四辺形にするための疑似要素 */
tr.player-row::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 12px;
      z-index: -1;
}

/* 中身は逆向きに skew して水平に見せる */
.player-inner {
      transform: skewX(-9deg);
}

/* TODO 現在使用中のボールエリア */
.player-ball-now {
	display : flex;
	flex-wrap: nowrap;
	gap: 0.25vw 0.45vw;
	margin-top: 0.2em;
	margin-bottom: 0.45em;
	margin-left : 1vw;
	max-width: 52vw;
	min-height: 58px;
	align-items: center;
	white-space: normal;
	overflow-x: auto;
	overflow-y: visible;
	padding-bottom: 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.player-ball-now::-webkit-scrollbar {
	display: none;
}

.player-ball-stage {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.2vw;
	padding: 3px 0.45vw 3px 0.35vw;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.22);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.player-ball-stage.current {
	box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.75);
}

.player-ball-stage-label {
	font-size: clamp(10px, 0.75vw, 13px);
	line-height: 1;
	font-family: 'Roboto', sans-serif;
	color: #ffcc00;
}

.player-ball-stage-thumbs {
	display: flex;
	align-items: center;
	gap: 2px;
}

.player-ball-thumb {
	width: clamp(35px, 6vw, 50px);
	aspect-ratio: 1 / 1;
	height: clamp(35px, 6vw, 50px);
	min-width: 35px;
	min-height: 35px;
	max-width: 50px;
	max-height: 50px;
	border-left: 0px;
	border-right: 0px;
	margin-left : -0.6vw;
	
}

.player-ball-thumb:first-child {
	margin-left: 0;
}

.player-info-row {
	color: #f0f0f0;
	font-size: clamp(30px, 2vw, 4rem);
	font-weight:500;
	display: none;
	text-align: left;
	
      position: relative;
      padding: 16px 24px;
      transform: skewX(9deg); /* 本体を傾ける */
      border-radius: 12px;
      isolation: isolate;
	
}

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

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

    /* 背景だけを平行四辺形にするための疑似要素 */
.player-info-row::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 12px;
      z-index: -1;
}

.player-info-inner {
      transform: skewX(-9deg);	
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
	padding-top: 6px;
	padding-bottom: 5px;
}

.stage-detail {
	display: flex;
	align-items: flex-start;
	border-top: 0;
	box-shadow: none;
	gap: 1vw;
}

.stage-info {
	text-align: left;
	margin-right: auto;
	margin-left: 2vw;
	min-width: 0;
	flex: 1 1 42%;
}

.stage-title {
	font-family: "Arial Narrow", Arial, sans-serif;
	font-stretch: condensed;
	font-weight: bolder;
	color: #ffcc00;
	margin-top: 1vw;
	margin-bottom: 1.5vw;	
}

.stage-title-main {
	color: #ffcc00;
	display: inline;
}

.stage-pattern {
	color: #ffffff;
	display: inline;
	margin-left: 0.45em;
	font-size: 88%;
}

.stage-notice {
	display: inline-block;
	margin-left: 0.55em;
	padding: 0.12em 0.45em;
	border: 1px solid rgba(255, 204, 0, 0.75);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.32);
	color: #ffe680;
	font-size: 58%;
	vertical-align: middle;
	letter-spacing: 0;
}

.stage-score {
	font-size: 90%;
	margin-left: 0;
	white-space: nowrap;
	overflow-x: auto;
	max-width: 100%;
	line-height: 1.45;
}

/* TODO 現在のステージエリア */
.player-stage-pre {
	background-color : #201810D0;
}

.player-stage-now {
	background-color : #ffdf00F2;
	box-shadow: none;
}

.player-stage-now .stage-title-main {
	color: #ff2020;
	text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.28);
}

.player-stage-now .stage-pattern {
	color: #000000;
	text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.22);
}

.player-stage-now .stage-pattern::after {
	content: "NOW PLAYING";
	display: inline-block;
	margin-left: 0.65em;
	padding: 0.12em 0.5em;
	border-radius: 999px;
	background: #000000;
	color: #ffdf00;
	font-size: 72%;
	line-height: 1;
	vertical-align: middle;
	text-shadow: none;
}

.player-stage-now .stage-score span {
	display: inline-block;
	background: #050505;
	padding: 0.02em 0.22em;
	border-radius: 4px;
	line-height: 1.15;
}

.player-stage-now .subtotal-column-info {
	display: block;
	width: fit-content;
	background: #050505;
	color: #ffffff;
	padding: 0.12em 0.45em;
	border-radius: 5px;
	text-shadow: none;
}

.player-stage-now .player-ball-name {
	display: inline-block;
	margin-top: 0.18em;
	padding: 0.12em 0.35em;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.72);
	color: #ffffff;
	text-shadow: none;
}

.player-stage-post {
	background-color : #084444D0;
}


.player-balls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	gap: 0.6vw;
	width: 100%;
}

.player-balls-wrap {
	flex: 1 1 48%;
	width: auto;
	max-width: min(760px, 52vw);
	margin-left: 0;
	margin-right: 1vw;
	padding-top: 8px;
	min-width: 0;
}

.player-ball {
	width : clamp(86px, 7.4vw, 136px);
	text-align: center;
	flex: 0 1 clamp(86px, 7.4vw, 136px);
}

.player-ball-name {
	font-size : 0.42em;
	overflow-wrap: break-word;
	word-break: keep-all;
	line-height: 1.1;
	width: 100%;
}

.player-ball-img {
	width: clamp(86px, 6.8vw, 136px);
	aspect-ratio: 1 / 1;
	height: clamp(86px, 6.8vw, 136px);
	min-width: 86px;
	min-height: 86px;
	max-width: 136px;
	max-height: 136px;
	border-left: 0px;
	border-right: 0px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 640px) {
	.stage-detail {
		display: block;
	}

	.stage-info {
		margin-left: 0;
		margin-right: 2vw;
	}

	.stage-score {
		font-size: clamp(16px, 4.4vw, 21px);
	}

	.player-balls-wrap {
		width: auto;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		margin-top: 0.7em;
		padding-top: 10px;
	}

	.player-balls {
		justify-content: center;
	}
}

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(140px, 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: hidden;
	text-overflow: ellipsis;
	border-right: 0px;
	line-height: 1.02;
}

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

.smaller-text {
	font-size: 36%;
	line-height: 1.02;
	white-space: normal;
	overflow-wrap: anywhere;
}

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

.usage-note {
	width: clamp(600px, 92vw, 1500px);
	margin: 0 auto 8px;
	padding: 0.45em 0.75em;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.48);
	border: 1px solid rgba(255, 204, 0, 0.65);
	color: #ffffff;
	font-family: 'Oswald', sans-serif;
	font-size: clamp(16px, 1.6vw, 1.6rem);
	text-align: center;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.65);
}

.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;
  top: 0;
  left: 0;
  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 {
	  text-shadow: 0 0 10px #333,
               0 0 10px #333,
               0 0 10px #333,
               0 0 10px #333,
               0 0 10px #333;
}

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