@charset "UTF-8";

.pagetop {
	padding-top: 3rem;
}

.pagetop h1 {
	position: fixed;
	z-index: 200;
	top: 0;
	left: 0;
	width: 100%;
	height: 3rem;
	padding: .5rem 0 .25rem;
	background-color: var(--main-color);
}

.scroll .pagetop h1 {
	background-color: var(--main-color);
}

.pagetop h1 img {
	width: auto;
	height: 100%;
	margin: 0 auto;
}

.pagetop h2 {
	margin-top: 0.5rem;
	margin-bottom: 0;
	line-height: 1.4;
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.25em;
}

.pagetop h2 span {
	flex:1;
}

.pagetop h2 em {
	display: inline-block;
	font-size: 70%;
	line-height: 1.7;
	padding: 0 0.5em;
	vertical-align: text-bottom;
	background-color: #fff;
	color: var(--main-color);
	font-weight: 700;
}

.pagetop h2::before {
	content: "";
	display: block;
	width: 2.6em;
	height: 2.6em;
	background-size: contain;
	background-position: center;
}

.pagetop h2::after {
	content: none;
}

.race_nav {
	background-color: #f0f0f0;
	position: sticky;
	top: 3rem;
	z-index: 100;
}

.race_nav ul {
	display: flex;
	flex-wrap: wrap;
}

.race_nav ul li {
	width: calc(100% / 12);
	border-right: 1px #fff solid;
	font-size:80%;
}

.race_nav ul li:nth-of-type(6n) {
	border-right: none;
}

.race_nav ul li:nth-of-type(n+6) {
	border-top: 1px #fff solid
}

.race_nav ul li a {
	display: block;
	text-align: center;
	line-height: 3;
}

.race_nav ul li.active a {
	background-color: var(--main-color);
	color: #fff;
	font-weight: 700;
}

.race_roundinfo {
	width: 100%;
	border-collapse: collapse;
}

.race_roundinfo dl {
}


.race_roundinfo th {
	line-height: 1;
	background-color: var(--main-color);
	color: #fff;
	padding: 0.5rem 0;
	text-align: center;
}

.race_roundinfo th:nth-of-type(1) {
	width: 3.5em;
}

.race_roundinfo th:nth-of-type(2) {
	width: 3.5rem;
	padding-right: .25rem;
}

.race_roundinfo th em {
	font-size: 1.5rem;
	color: inherit;
}

.race_roundinfo th i {
	display: block;
	font-style: normal;
	font-size: 90%;
	margin-top: .25em;
}

.race_roundinfo td{
	padding: 0 1em;
}

.race_roundinfo td h3{
	font-size: 1.1rem;
	line-height: 1;
	margin: 0;
	border: none;
	padding: 0;
}

.race_roundinfo td p {
	line-height: 1;
	font-size: 90%;
	margin: 0.25em 0 0;
	display: flex;
	align-items: center;
	gap: 0 0.25em;
}

.race_roundinfo td p span {
	letter-spacing: -.1em;
	display: inline-block;
	background-color: var(--main-color);
	color: #fff;
	padding: .25em .5em;
	margin: 0 .1em;
	font-size: 90%;
}
.race_roundinfo td:nth-of-type(2) {
	width: 5rem;
	text-align: center;
	padding: 0;
	color: var(--main-color);
	line-height: 1.2;
	font-size: 90%;
}

.race_roundinfo td:nth-of-type(2) span	{
	display: block;
	font-size: 90%;
	font-weight: normal;
}

.race_weather {
	display: flex;
	align-items: center;
	gap: 0 .5rem;
	background: #f0f0f0;
	font-size: 95%;
	padding: .5rem 0;
}

.race_weather > div {
	line-height: 1;
	background: #ccc;
	padding: .5em 1em .5em .5em;
	color: #fff;
	clip-path: polygon(0 0, calc(100% - .75em) 0, 100% 50%, calc(100% - .75em) 100%,0 100%);
}

.race_weather figure {
	width: 7rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: url(../img/turnmark.webp), url(../img/turnmark.webp), linear-gradient(to bottom, transparent 40% , #ccc 40%, #ccc 60% , transparent 60% );
	background-repeat: no-repeat;
	background-size: auto 1.5rem, auto 1.5rem, 70% auto;
	background-position: left center, right center, 1rem center;
}

.race_weather dl {
	display: flex;
	text-align: center;
	justify-content: space-evenly;
	flex: 1;
}

.race_weather dl > div {
}

.race_weather dl dt {
	color: var(--main-color);
	font-size: 90%;
	line-height: 1;
	margin-bottom: .25em;
}

.race_weather dd {
	line-height: 1;
}

.race_table h2 {
	margin-bottom: .5rem;
}

.race_table h2 ~ div {
	white-space: nowrap;
	overflow-x: scroll;
	position: relative;
}
.race_table table {
	white-space: nowrap;
	border-collapse: collapse;
}

.race_table table th,
.race_table table td	{
	border: 1px #ccc dotted;
}

.race_table thead th {
	color: var(--main-color);
	font-size: 85%;
	line-height: 1.5;
	font-weight: normal;
	padding: 0 .5em;
}

.race_table thead th.sticky {
	background-color: #fcfcfc;
	position: sticky;
	left: 0;
	z-index: 1;
}

.race_table tbody tr {
	border-top: 1px #ccc dotted;
	border-top: 1px #ccc dotted;
}

.race_table tbody th {
	position: sticky;
	left: 0;
	z-index: 1;
	padding: 0 .5rem;
}

.race_table tbody th dd {
	padding: .5em;
}

.race_table tbody th img {
	width: 4em;
	height: 4em;
	object-fit: cover;
	margin: 0 auto;
}


.race_table tbody th h3 {
	margin: 0.25em 0 0;
	padding: 0;
	border: none;
	font-weight: normal;
	font-size: 1em;
	line-height: 1;
	display: flex;
	gap:.25em;
	align-items: center;
	justify-content: center;
}

.race_table tbody th h3 span {
	display: block;
	width: 1rem;
	text-align: center;
	background-color: #fff;
	mix-blend-mode: luminosity;
	color: #000;
}



.race_table tbody td {
	padding: 0 .5em;
}

.race_table td p {
	margin: 0;
	line-height: 1.5;
	text-align: center;
}

.race_table .konsetsu {
	padding: 0;
	border-left: 1px #ccc dotted;
}

.race_table .konsetsu dl {
	display: flex;
	min-width: 6rem;
	align-items: stretch;
	justify-content: flex-start;
}

.race_table .konsetsu dl div {
	width: 50%;
}
.race_table .konsetsu dl div:nth-of-type(1) {
	border-right: 1px #ccc dotted;
}

.race_table .konsetsu dd {
	text-align: center;
	font-size: .85em;
}

.race_table .konsetsu .konsetsu_round {
	color: var(--main-color);
	line-height: 1;
}

.race_table .konsetsu dt {
	border-bottom: 1px #ccc dotted;
	text-align: center;
	margin-bottom: 0.5em;
	font-weight: bold;
}

.race_table .konsetsu .konsetsu_course span {
	display: inline-block;
	line-height: 1;
	padding: 0.2em 0.75em 0.2em 0.5em;
	clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%,0 100%);
}

.race_table h2~.race_table_course {
	display: flex;
	align-items: flex-start;
	overflow: hidden;
}

.race_table_course > div {
	overflow-x: scroll;
}

.race_table_course thead th {
	height: 4.5rem;
}

.race_table_course tbody th,
.race_table_course tbody td {
	height: 6rem;	
}


.race_table_course tbody th figure {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 0.5rem;
}

.race_table_course tbody th img {
	width: 3.5rem;
	height: 3.5rem;
}

.race_table h2~.race_table_before {
	overflow-x: scroll;
} 

.race_table_before td {
	text-align: center;
	min-width: 3rem;
}

.race_table_before thead th {
	height: auto;
}

.race_table_before thead th:first-of-type,
.race_table_before tbody th:first-of-type {
	position: sticky;
	left:0;
	z-index: 1;
}

*[class^="id-"] {
	display: none;
}

img[class^="wind"] {
	width: 1.5rem;
	transform-origin: center;
}
.wind1 {
	
}
.wind2 {
	rotate: 22.5deg;
}
.wind3 {
	rotate: 45deg;
}
.wind4 {
	rotate: 67.5deg;
}
.wind5 {
	rotate: 90deg;
}
.wind6 {
	rotate: 112.5deg;
}
.wind7 {
	rotate: 135deg;
}
.wind8 {
	rotate: 157.5deg;	
}
.wind9 {
	rotate: 180deg;	
}
.wind10 {
	rotate: 202.5deg;	
}
.wind11 {
	rotate: 225deg;	
}
.wind12 {
	rotate: 247.5deg;	
}
.wind13 {
	rotate: 270deg;	
}
.wind14 {
	rotate: 292.5deg;	
}
.wind15 {
	rotate: 315deg;	
}
.wind16 {
	rotate: 337.5deg;	
}
.wind17 {
	opacity: 0;
}

.race_table_repair {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25em;
}
.race_table_repair span {
	font-size: 85%;
	display: block;
	/* border: 1px #ccc solid; */
	line-height: 1.5;
	padding: 0 0.25em;
	background-color: #0090bd;
	color: #fff;
}


.race_odds {
	transition:left .3s;
	left: 100vw;
	padding-left: 20vw;
}
.race_odds.open {
	left:0;
}

.race_oddsbtn {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 3rem;
	height: 3rem;
	background-color: var(--main-color);
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.race_odds > div {
	width: 100%;
	height: 100%;
	margin: 0 auto;
	overflow: hidden;
	padding: 1rem;
	background-color: #fff;
}

.race_odds .modal_close {
	position: absolute;
	left: 0;
	bottom: 0;
	appearance: none;
	border: none;
	line-height: 1;
	width: 3rem;
	height: 3rem;
	font-family: inherit;
	padding: 0;
	margin: 0;
	background-color: var(--main-color);
	color: #fff;
}

.race_odds nav {
	display: table;
	width: 100%;
	position: sticky;
	top: 0;
	left: 0;
}

.race_odds nav input {
	display:none;
}

.race_odds nav label {
	display: table-cell;
	text-align: center;
	color: var(--main-color);
	padding: .5em 0;
	font-size: 90%;
	border-bottom: 2px var(--main-color) solid;
}

.race_odds nav input:checked + label {
	background-color: var(--main-color);
	color: #fff;
	font-weight: bold;
}

.race_odds ul {
	font-size: 95%;
}

.race_odds ul > li {
	display: none;
}

.race_odds dl  {

}

.race_odds dl > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .25em 0;
	border-bottom: 1px #999 solid;

}

.race_odds dl dt  {
	font-size: 90%;
}

.race_odds dl dt span {
	display: inline-block;
	width: 1.5em;
	line-height: 1.5;
	text-align: center;
}

.race_odds dl dd  {

}

.race_odds_3rt {
	overflow-x: scroll;
}

.race_odds_3rt dl {
	columns: 6;
	column-gap: 2rem;
	width: 60rem;
}

.race_odds_2rt dl {
	columns: 2;
	column-gap: 2rem;
}

.race_odds_3rf > div,
.race_odds_2rf > div {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}
.race_odds_3rf > div > dl,
.race_odds_2rf > div > dl {
	width: 10.5rem;
}

.race_table-result  thead th {
	line-height: 1.2;
	height: 3rem;
}

.race_table-result h2 ~ div {
	display: flex;
	align-items: stretch;
}

.race_table-result tbody th dd {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.race_table-result tbody th img {
	width: 2rem;
	height: 2rem;
	margin: 0 .5rem 0 0;
}

.race_start {
	flex: 1;
}

.race_start dl > div {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.race_start dt {
	border-right: 2px var(--sub-color) solid;
	padding: .5em 0;
	flex: 1;
}

.race_start span {
	position: relative;
	display: block;
	width: 2.75em;
	text-align: center;
	clip-path: polygon(0 0, 2em 0, 100% 50%, 2em 100%, 0 100%);
	padding-right: .75em;
	z-index: 1;
	margin-left: auto;
}
.race_start dd {
	padding-left: .5rem;
	text-align: right;
	width: 4rem;
}

.race_table_before tbody th img {
	width: 2rem;
	height: 2rem;
}

.race_divide {
	display: flex;
}

.race_divide table {
	width: 100%;
}
.race_divide  table.default tbody tr:nth-of-type(even) {
	background-color: #fff;
}

.race_divide table.default thead th,
.race_divide table.default tbody td {
	padding-left:1rem;
	padding-right:1rem;
}

.race_divide table td p {
	margin: 0;
}
.race_divide table td p span {
	display: inline-block;
	/* line-height: 1.6; */
	width: 1.5em;
	margin-right: .2em;
	font-size: 90%;
}
