@charset "UTF-8";

@import "ress.min.css";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300..800&display=swap');

/* @group INITIALIZE */
/*
 * 1. INITIALIZE
 * ===========================================
 */

:root {
	--black: #000;
	--gray: #666;
	--white: #fff;
    --blue: #104097;
	--green: #05554d;
    --red: #df0c0c;
	--light-green: #2caf93;
	--light-blue: #CCF1FF;
	--light-gray: #C8C8C8;

	--table-race-cat: #35A499;
	--table-header: #367979;
	--border-color: #C9C9C9;

	--base-text-color: #666;

	--error-input-bg: #FFE1E1;
	--error-input-bg2: #f2cdcd;
	--error-input-txt: #CC2F2F;
	--error_input-border: #CC2F2F;
}

* {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
}

html {
	font-size: 10px;
}

body {
	width: 100%;
	height: 100%;
	font-family: 'Noto Sans JP', 'メイリオ', 'Meiryo', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
	font-size: 1.6rem;
	color:  var(--base-text-color);
	line-height: 1.5;
	background: var(--white);
	font-weight: 400;

	/* font-feature-settings: 'palt' 1; */
	-webkit-text-size-adjust: 100%;

	&.hold-pos {
		overflow: hidden;
	}
}

.sp { display: block; }
.pc { display: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
	letter-spacing: 0.05em;
}

/* @group BUTTON */

.btn {
	display: flex;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1;

	width: 350px;
	height: 50px;

	align-items: center;
	justify-content: center;

	background-color: #666;
	border: 1px solid #999;
	border-radius: 6px;

	color: var(--white) !important;
	text-decoration: none !important;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;

	cursor: pointer;
}
.btn:not([data-state]) [data-state] 		 { display: none; }
.btn[data-state="close"] [data-state="open"] { display: none; }
.btn[data-state="open"] [data-state="close"] { display: none; }

.btn:hover {
	opacity: 1;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5);
	transition: box-shadow .3s ease-out 0s, background-color .25s ease-out 0s;
}
.btn[data-state="open"]:hover {
	text-shadow: 0px -1px 1px rgba(255, 255, 255, 0.5);
}

.btn.xl {
	width: 100%;
	height: 62px;
	font-size: 1.8rem;
}

.btn.l {
	width: 100%;
	height: 50px;
}

.btn.m {
	width: 100%;
	height: 50px;
}

.btn.s {
	width: 140px;
	height: 42px;
	font-size: 1.4rem;
}

.btn.xs {
	width: 60px;
	height: 32px;
	font-size: 1.3rem;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.btn.xs92 {
	width: 92px;
	height: 32px;
	font-size: 1.3rem;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.btn.w-auto {
	width: auto !important;
	padding-inline: 15px;	
}

.btn.w-110 {
	width: 110px !important;
	padding-inline: 15px;	
}

.btn.green {
	background-color: #23AC38;
	border-color: #40D056;
}
.btn:hover.green {
	background-color: #27c93f;
	border-color: #52de67;
}

.btn.gray {
	background-color: #777;
	border-color: #aaa;
}
.btn:hover.gray {
	background-color: #aaa;
	border-color: #cdcdcd;
}

.btn[data-state="open"].gray {
	color: #666 !important;
	background-color: #E9E9E9;
	border-color: #666;
}

@media (600px < width) {
	.btn {
		font-size: 1.8rem;
	}

	.btn.xl {
		width: 100%;
		height: 68px;
		font-size: 2rem;
	}

	.btn.l {
		width: 100%;
		height: 64px;
	}

	.btn.m {
		width: 280px;
		height: 64px;
	}

	.btn.s {
		width: 260px;
		height: 50px;
		font-size: 1.7rem;
	}

	.btn.xs {
		width: 70px;
		height: 32px;
		font-size: 1.3rem;
		text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
	}

}

/* @end BUTTON */


/* @group FORM ITEMS */

input[type="text"],
input[type="email"],
input[type="number"] {
	width: 100%;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 5px 10px 4px;
	box-shadow: inset 1px 3px 7px rgba(0, 0, 0, 0.11),
				inset 0px 1px 2px rgba(0, 0, 0, 0.07);

	-moz-appearance: textfield;

	::placeholder {
		color: var(--light-gray);
	}

	&.error,
	&.error:autofill {
		background-color: var(--error-input-bg);
		box-shadow: 0 0 0px 100px var(--error-input-bg) inset;
		color: var(--error-input-txt);
		-webkit-text-fill-color: var(--error-input-txt);
	}
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
    margin: 0;
}

.select-box {
	position: relative;
	display: inline-block;
	background-image: linear-gradient(to bottom, white 28%, #e8e8e8 100%);
	border: 1px solid var(--border-color);
	border-radius: 5px;
}

.select-box::after {
	content: '';
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	width: 34px;
	height: 32px;
	border-left: 1px solid var(--border-color);
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;;
	background-image: url(../images/select_arrow.jpg);
	background-origin: center;
	background-size: cover;
	pointer-events: none;
}

select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 32px;
	padding-inline: 12px 44px;
	font-size: 1.3rem;
	color: var(--black);

	&.error {
		background-image: linear-gradient(to bottom, var(--error-input-bg) 28%, var(--error-input-bg2) 100%);
		color: var(--error-input-txt);
	}
}


textarea {
	width: 100%;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 5px 10px;
	resize: vertical;
	box-shadow: inset 1px 3px 7px rgba(0, 0, 0, 0.11),
				inset 0px 1px 2px rgba(0, 0, 0, 0.07);

	&.error {
		background-color: var(--error-input-bg);
		color: var(--error-input-txt);
	}
}

@media (600px < width) {
	input[type="text"],
	input[type="email"],
	input[type="number"] {
		padding: 4px 10px 3px;
		font-size: 1.4rem;
	}

	select {
		font-size: 1.4rem;
	}
}

.from-btns {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

@media (600px < width) {
	.from-btns {
		flex-direction: row;
		justify-content: center;
		gap: 90px;
		padding-block: 2em 4em;
	}
}

.form-item-wrapper {
	flex: 1 1 auto;

	label {
		display: block;
		font-size: 1.3rem;
		margin-bottom: .35em
	}

	.select-box {
		width: 100%;
	}
}

.form-fieldset {
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;

	border-top: 1px solid var(--border-color);

	&:last-of-type {
		border-bottom: 1px solid var(--border-color);
	}

	dt {
		font-size: 1.3rem;
		line-height: 1.2;
		padding: 5px 12px;

		color: var(--black);

		background-color: var(--light-blue);

		.sub-txt {
			font-size: 0.84em;

			display: inline-block;
			margin-left: .3em;

		}

		.alert {
			top: 5px;
		}
	}

	dd {
		padding: 15px 0;

		.form_field {
			display: flex;
			justify-content: start;
			align-items: center;
			gap: 15px;

			.form-item-wrapper {
				display: flex;
				align-items: center;
				gap: 3px;

				max-width: 450px;

				label {
					display: block;
					font-size: 1.4rem;
					padding: 0;
					margin: 0;
				}
			}

			&.box-2 .form-item-wrapper {
				flex: 1 1 50%;

				max-width: 215px;

				label {
					flex: 0 0 3em;
					text-align: right;
				}
			}

			&.box-3 {
				gap: 10px;

				.form-item-wrapper {
					flex: 0 0 auto;
				}

				.form-item-wrapper:nth-of-type(1) { width: 60px; }
				.form-item-wrapper:nth-of-type(2) { width: 90px; }
				.form-item-wrapper:nth-of-type(3) { width: 90px; }
				.form-item-wrapper.zip_search { width: 150px; }
                
                .form-item-wrapper .zip_searcher_info {
                    visibility: hidden;
                    margin-left: 10px;
                    font-size: 0.84em;
                }
                .form-item-wrapper .zip_searcher_info.show {
                    visibility: visible;
                }

				.form-item-wrapper .zip_searcher_loading {
                    display: none;
                    margin-left: 10px;
                    width: 1.2em;
                    height: 1.2em;
                    border-radius: 50%;
                    border: 0.15em solid #f0f0f0;
                    border-top-color: #999;
                    animation: spinner 0.8s linear infinite;
                }
                .form-item-wrapper .zip_searcher_loading.show {
                    display: block;
                }
			}

			&.select {
				.form-item-wrapper { max-width: 270px; }
			}
		}
	}
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (width <= 600px) {
	.form-fieldset.confirm {
		dd {
			padding-inline: 10px;
		}
	}
}
@media (600px < width) {
	.form-fieldset {
		display: flex;
		justify-self: start;

		dt {
			flex: 0 0 230px;
			padding: 15px 15px;

			display: flex;
			align-items: center;

			font-size: 1.4rem;

			.alert {
				font-size: 1.25rem;
				left: 730px;
				right: unset;
				top: 22px;
			}
		}

		dd {
			flex: 1 0 730px;
			padding: 15px 20px;

			.form_field {
				&.box-3 {
                	.form-item-wrapper.zip_search { width: 250px; }
				}
			}
		}
	}
}


/* @end FORM ITEMS */


@media (600px < width) {
	body {
		font-size: 1.6rem;
		line-height: 1.66;
	}

	.sp { display: none; }
	.pc { display: block; }

	a:hover {
		text-decoration: none;
		color: #0066FF;
	}
}

/* @group LINK */

a,
a:visited {
	color: #003BB0;
	text-decoration: underline;
}

@media (600px < width) {
	a:hover {
		color: #0066FF;
		text-decoration: none;
	}
}

/* @end LINK */

/* @end INITIALIZE */



/* @group COMMON */
/*
 * 2: COMMON
 * ===========================================
 */

/* @group HEADER */
/* 2-1: Header
 * -----------------------------------------*/

#main_header {
	width: 100%;
	background: var(--black);
	min-width: 375px;

	div {
		width: 100%;
		padding: 10px 15px;
		z-index: 100;
	}
}

#logo {
	width: 100%;
	line-height: 0;

	img {
		width: 80px;
		height: 43px;
		margin: 0 auto;
	}
}

@media (600px < width) {
	#main_header {
		min-width: 1000px;

		div {
			padding: 15px 0;
		}
	}

	a {
		transition: opacity 0.6s ease;
	}


	a:hover {
		opacity: 0.7;
	}

	#logo img {
		width: 120px;
		height: 60px;
	}
}

/* @end HEADER */



/* @group FOOTER */
/* 2-2: Footer
 * -----------------------------------------*/

footer {
	width: 100%;
	min-width: 375px;

	background: var(--black);
	color: var(--white);
	text-align: center;
	line-height: 50px;

	margin-top: 60px;

	.footer-inner {
		padding: 10px 30px;

		p {
			word-break: keep-all;
        	overflow-wrap: anywhere;

			font-size: 1rem;
			line-height: 1.4;
		}
	}
}

@media (600px < width) {
	footer {
		min-width: 1000px;
		margin-top: 80px;

		.footer-inner {
			height:  170px;
			padding-top: 130px;

			p {
				font-size: 1.2rem;
			}
		}
	}
}

/* @end FOOTER */

/* @group MAIN */
/* 2-3: Main
 * -----------------------------------------*/

main {
	margin: 0 auto;
	min-width: 375px;
	max-width: 1000px;
	position: relative;
}
@media (600px < width) {
	main { width: 1000px; }
}

main .page-header {
	margin: 0;
	padding: 0;

	* {
		margin: 0;
		padding: 0;
	}

	h2 {
		font-size: 2.8rem;
		font-weight: 700;
		color: var(--green);
		width: 100%;
		text-align: center;
		margin-top: 45px;
	}
}
@media (600px < width) {
	main .page-header h2 {
		font-size: 3.2rem;
	}
}

main .sec {
	margin: 45px 0;
	padding: 0;

	h2 {
		padding: 7.5px 10px;
		font-size: 1.5rem;
		font-weight: 700;
		line-height: 1.666;
		color: var(--white);
		background-color: #888;

		margin-bottom: 25px;

		a { color: var(--white); }
	}

	h2.blue  { background-color: var(--blue); }
	h2.green { background-color: var(--green); }
	h2.red   { background-color: var(--red); }

	.list-title {
		font-size: 1.7rem;
		font-weight: 700;
		margin-bottom: .7em;
		color: var(--black);
	}

	.sec-inner {
		padding: 0 20px;
		margin: 20px 0 0 0; /* iida */

		p + p {
			margin-top: 1.2em;
		}

		.sec-reader {
			font-size: 1.5rem;
			font-weight: 700;
			color: var(--black);
		}

		.vote_deadline {
			color: var(--red);
			font-size: 2rem;
			font-weight: 700;
			text-align: center;
			line-height: 1.7;
		}

		ul {
			margin-bottom: 20px;
			padding-left: 16px;
			list-style-type: "● ";

			li + li {
				margin-top: 0.3em;
			}

			li::marker { color: #cdcdcd; }
			&.green li::marker { color: var(--light-green); }
			&.red   li::marker { color: var(--red); }
		}
	}

	.inside-sec {
		position: relative;
		margin-bottom: 35px;
	}
}
@media (600px < width) {
	main .sec {
		h2 {
			font-size: 1.8rem;

			a:hover { text-decoration: none; opacity: 1; }
		}

		.list-title {
			font-size: 1.8rem;
		}

		.sec-inner {
			.vote_deadline {
				font-size: 2.2rem;
			}
		}
	}
}

:not([data-page="index"]) .vote_deadline {
	padding-bottom: 2em;
}

.confirm-text {

	font-size: 1.6rem;
	line-height: 1.75;
	text-align: left;
}

.complate-text {
	font-size: 1.8rem;
	line-height: 1.75;
	text-align: center;
	color: var(--black);
	padding-bottom: 40px;
}

.complate-text-sub {
	font-size: 1.3rem;
	line-height: 1.75;
	text-align: left;
	padding-bottom: 20px;
}

@media (600px < width) {
	.confirm-text {
		font-size: 1.8rem;
		padding-block: 1em 0.5em;
		text-align: center;
	}

	.complate-text {
		font-size: 2.2rem;
	}

	.complate-text-sub {
		font-size: 1.4rem;
		line-height: 1.75;
		text-align: center;
	}
}

/* @end MAIN */

#back-to-top {
	position: fixed;
	right: 0;
	bottom: 48px;
	width: 50px;
	height: 50px;
	z-index: 999;

	display: none;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

#back-to-top.show {
	pointer-events: auto;
	opacity: .7;
	transition: opacity 0.75s ease-out;

	@starting-style {
    	opacity: 0;
	}
}

#back-to-top div{
	width: 100%;
	height: 100%;
	background: url(../images/btn_pagetop.png) no-repeat center center;
	background-size: cover;
}

@media (600px < width) {
	#back-to-top {
		bottom: 10px;
		right: 10px;
	}

	#back-to-top.show {
		opacity: 1;

		@starting-style {
	    	opacity: 0;
		}
	}
}

.alert {
	font-size: 1.2rem;
	color: var(--red);

	position: absolute;
	top: 3px;
	right: 5px;
}

/* @end COMMON */


/* @group TOP PAGE */
/*
 * 3: TOP PAGE
 * ===========================================
 */

main .hero,
main .present {
	margin: 0;
	padding: 0;

	* {
		margin: 0;
		padding: 0;
	}
}

[data-page="index"] main #race_list {
	display: none;
}
@media (600px < width) {
	[data-page="index"] main #race_list {
		display: block;

		.race-list-box {
			display: grid;
  			grid-template-rows: 0fr;
  			transition: 0.17s grid-template-rows ease-out;
			margin: 35px 0 0;
		}

		[data-state="open"] + .race-list-box {
			grid-template-rows: 1fr;
			transition: 0.35s grid-template-rows ease-in-out;
		}

		.race-list-box > div {
			overflow: hidden;
		}

		.race-list-box table {
			width: 100%;
			border-collapse: collapse;
			border-spacing: 0;

			border-top: 1px solid var(--border-color);
			border-left: 1px solid var(--border-color);

			line-height: 1;
			background-color: var(--white);

			th {
				font-size: 1.2rem;
				font-weight: 700;

				padding: 4px 10px;
				border-right: 1px solid var(--border-color);
				border-bottom: 1px solid var(--border-color);

				color: var(--white);
			}
			.group_label {
				background-color: var(--table-race-cat);

				th {
					padding: 8px 15px;
					font-size: 1.5rem;
					text-align: left;
				}
			}
			.header_label {
				background-color: var(--table-header);

				th:nth-of-type(1) { width: 90px; }
				th:nth-of-type(2) { width: 90px; }
				th:nth-of-type(3) { width: 400px; }
			}

			td {
				font-size: 1.3rem;

				padding: 6px 10px;
				border-right: 1px solid var(--border-color);
				border-bottom: 1px solid var(--border-color);
			}
			td:nth-of-type(1) { text-align: center; }
			td:nth-of-type(2) { text-align: center; }
			td:nth-of-type(3) { padding-inline: 15px }
			td:nth-of-type(4) { padding-inline: 15px }
		}
	}

}


main .os_info {
	display: flex;
	flex-direction: column;
	gap: 20px;

	h3 {
		font-size: 1.4rem;
		background-color: #ececec;
		padding: 5px 10px;
		margin-bottom: 10px;
	}

	h4 {
		font-size: 14px;
		padding-left: 1em;
		margin-top: .8em;
		margin-bottom: 0.2em;
	}

	p {
		padding: 0 0 .5em 1em;
	}

}
@media (600px < width) {
	main .os_info {
		flex-direction: row;
		gap: 40px;
		justify-content: space-between;

		> div {
			flex: 0 0 460px;
		}
	}
}

main .entry {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 100;

	width: 100vw;
	height: 160px;
	background-color: rgba(0, 0, 0, .9);

	display: none;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;

	.entry-inner {
		margin: 0 auto;
		max-width: 1000px;
		padding: 12px 20px;

		font-size: 1.2rem;
		color: var(--white);

		text-align: center;

		p {
			margin-bottom: 0.4em;
		}

		a {
			color: var(--white);
			text-decoration: underline;
		}

		.entry-buttons {
			margin-top: 14px;
			display: flex;
			justify-content: center;
			gap: 20px
		}
	}
}

main .entry.show {
	pointer-events: auto;
	opacity: 1;
	transition: opacity 0.75s ease-out;

	@starting-style {
    	opacity: 0;
	}
}

@media (600px < width) {
	main .entry {
		min-width: 1000px;

		.entry-inner {
			padding-top: 17px;

			font-size: 1.4rem;

			p {
				margin-bottom: 0.6em;
			}

			.entry-buttons {
				margin-top: 17px;
				gap: 40px;
			}
		}
	}
}

.p_mark {
	display: block;
	width: 80px;
	margin: 0 auto 160px;
}

[data-page="index"] #back-to-top {
	bottom: 160px;
}

@media (600px < width) {
	.p_mark {
		margin-bottom: 0;
	}

	[data-page="index"] #back-to-top {
		bottom: 10px;
	}
}


/* @end TOP PAGE */



/* @group VOTE RACES PAGE */
/*
 * 4: VOTE RACES PAGE
 * ===========================================
 */

[data-page="vote_races"] .vote-area {
	margin-top: 25px;
	display: block;

	& > div {
		margin-bottom: 25px;
	}

	@media (width <= 600px) {
		& > div + div {
			margin-top: 60px;
		}
	}

	@media (600px < width) {
		display: flex;
		justify-content: space-between;

		& > div {
			flex: 0 0 460px;

			.race_comment {
				margin-bottom: 0;
			}
		}
 	}

	h3 {
		font-size: 2rem;
		font-weight: 700;
		color: var(--blue);
		line-height: 1;
		padding-top: 4px;
		padding-bottom: 16px;
	}

	h4 {
		font-size: 1.7rem;
		font-weight: 700;
		color: var(--blue);
		line-height: 1;
		padding-top: 4px;
		padding-bottom: 16px;
	}

	@media (600px < width) {
		h3 {
			padding-bottom: 18px;
		}

		h4 {
			font-size: 1.8rem;
			font-weight: 400;
		}
 	}
}

[data-page="vote_races"] .entry_races {
	.race-list-box {
		position: relative;
		border-top: 1px solid var(--border-color);
	}

	.race-list-box table {
		width: 100%;
		border-collapse: collapse;
		border-spacing: 0;

		border-left: 1px solid var(--border-color);

		line-height: 1;
		background-color: var(--white);

		.header_label {
			position: sticky;
			top: 0;
			background-color: var(--table-header);

			th {
				font-size: 1.2rem;
				font-weight: 700;

				padding: 5px 2px;
				border-right: 1px solid var(--border-color);
				border-bottom: 1px solid var(--border-color);

				color: var(--white);
			}

			th:nth-of-type(1) { width: 55px; }
			th:nth-of-type(2) { width: 44px; }
			th:nth-of-type(3) { padding-inline: 8px; text-align: left; }
		}

		.race {
			td {
				font-size: 1.2rem;

				padding: 2px 2px;
				border-right: 1px solid var(--border-color);
				border-bottom: 1px solid var(--border-color);
			}
			td:nth-of-type(1) { padding-left: 7px; }
			td:nth-of-type(2) { text-align: center; }
			td:nth-of-type(3) { padding: 5px 2px 5px 8px; }

			.checkbox {
				display: inline-block;
				margin-right: 2px;
			}

			.number {
				display: inline-block;
				width: 22px;
				text-align: center;
			}

			.race_name {
				display: block;
				font-size: 1.4rem;
				margin-bottom: 6px;
			}

			.horse_name {
				display: block;
			}
		}
	}

	@media (600px < width) {
		.race-list-box {
			height: 940px;
			overflow-y: scroll;
			border-right: 1px solid var(--border-color);
			border-bottom: 1px solid var(--border-color);
		}

		.race-list-box table {
			.header_label th:last-of-type,
			.race td:last-of-type {
				border-right: none;
			}

			.race:last-of-type td {
				border-bottom: none;
			}
		}
	}

}

[data-page="vote_races"] .vote_races {
	position: relative;
	overflow: hidden;
}

[data-page="vote_races"] .selected_races {
	.selected-races-list-box {
		position: relative;
		border-top: 1px solid var(--border-color);
	}

	.selected-races-list-box table {
		width: 100%;
		border-collapse: collapse;
		border-spacing: 0;

		line-height: 1;

		.race {
			td {
				font-size: 1.2rem;

				padding: 2px 2px;
				border-bottom: 1px solid var(--border-color);
			}
			td:nth-of-type(1) { width: 30px; text-align: center; }
			td:nth-of-type(2) { width: 40px; text-align: center; }
			td:nth-of-type(3) { padding: 5px 2px 5px 12px; }
			td:nth-of-type(4) { width: 30px; }

			.number {
				display: block;
				text-align: center;
			}

			.race_name {
				display: block;
				font-size: 1.4rem;
				padding-block: 4px;
			}

			.horse_name,
			.horse_name:empty {
				display: none;
			}

			.delete {
				display: block;
				width: 17px;
				height: 17px;
				position: relative;
				cursor: pointer;
			}

			.delete::before {
				content: '';
				display: block;
				width: 100%;
				height: 2px;
				background-color: #BFBFBF;

				position: absolute;
				top: 50%;

				transform-origin: center;
				transform: rotate(45deg);
			}

			.delete::after {
				content: '';
				display: block;
				width: 100%;
				height: 2px;
				background-color: #BFBFBF;

				position: absolute;
				top: 50%;

				transform-origin: center;
				transform: rotate(-45deg);
			}
		}
	}

	@media (600px < width) {
		.selected-races-list-box table {
			.race {

				td:nth-of-type(3) { height: 43px }

				.race_name {
					display: block;
					font-size: 1.4rem;
					padding-block: 0;
					margin-bottom: 0;
				}

				.horse_name {
					display: block;
					margin-top: 6px;
				}
			}
		}
	}

}

[data-page="vote_races"] .edit_race {
	& > div {
		width: 100%;
		display: flex;
		align-items: flex-end;
		gap: 10px;
	}

	.form-item-wrapper {

		input {
			font-size: 1.4rem;
		}
	}

	.form-item-wrapper:nth-of-type(1) { flex:  0 0 80px; }
	.form-item-wrapper:nth-of-type(2) { flex:  1 1 200px; }
	.form-item-wrapper:nth-of-type(3) { flex:  0 0 60px; }

	@media (600px < width) {
		.form-item-wrapper:nth-of-type(1) { flex-basis: 90px; }
		.form-item-wrapper:nth-of-type(3) {  flex-basis: 70px }
	}
}

[data-page="vote_races"] .entry_user {
	& > div {
		display: flex;
		gap: 20px
	}

	@media (600px < width) {
		& > div {
			gap: 20px
		}
	}
}

@media (width <= 600px) {
	[data-page="vote_races"] .vote_races {
		height: 534px;

		.vote_races-innter {
			position: relative;
			width: 100%;

			transition: background-color .3s ease-out;

			.navi {
				display: none;

				width: 80px;
				height: 25px;

				border-top-left-radius: 6px;
				border-top-right-radius: 6px;

				background-image: url(../images/info_navi_arrow_open.svg);
				background-size: contain;
				background-color: var(--white);

				position: absolute;
				top: -25px;
				right: 10px;

				cursor: pointer;
			}
		}

		.vote_races-info {
			display: none;
			justify-content: space-between;
			align-items: center;

			margin-bottom: 20px;
			cursor: pointer;

			.info {
				display: flex;
				justify-content: flex-start;
				align-items: center;

				font-size: 1.6rem;
				color: var(--white);

				.count {
					display: inline-block;
					margin-right: .35em;
					font-size: 2.4rem;
					font-weight: 700;
				}
			}

			.btn.xs {
				width: 170px;
			}
		}

		&.fix .vote_races-innter {
			width: 100dvw;

			position: fixed;
			bottom: 0;
			left: 0;

			z-index: 1010;

			background-color: var(--white);
			transform: translateY(500px);

			border-top-left-radius: 6px;
			border-top-right-radius: 6px;

			padding-block: 25px 0;
			padding-inline: 20px;

			box-shadow:
				0 -3.1px 4.4px rgba(0, 0, 0, 0.05),
				0 -5.5px 11.1px rgba(0, 0, 0, 0.07),
				0 -8.9px 28.6px rgba(0, 0, 0, 0.12),
				0 -15px 80px rgba(0, 0, 0, 0.09);

			.navi {
				display: block;
			}
		}

		&.fix.close .vote_races-innter {
			position: fixed;
			bottom: 0;
			left: 0;

			padding-block: 20px 0;
			background-color: var(--green);

			transform: translateY(0);
			transition: background-color .3s ease-out;

			@starting-style {
				background-color: var(--white);
				transform: translateY(90px);
			}

			.navi {
				background-color: var(--green);

				transition: transform .45s ease-in-out, background-color .3s ease-out;

				@starting-style {
					background-color: var(--white);
					transform: translateY(10px);
				}
			}

			.vote_races-info {
				display: flex;
			}

			.selected_races,
			.edit_race {
				display: none;
			}

		}

		&.fix.open {
			.vote_races-innter {
				position: fixed;
				bottom: 0;
				left: 0;

				transform: translateY(0);
				transition: all .3s ease-out;

				.navi {
					background-image: url(../images/info_navi_arrow_close.svg);
					background-size: contain;
					background-color: var(--white);

					transition: background-color .3s ease-out;
				}

				.vote_races-info {
					display: none;
				}
			}

			&::before {
				content: '';

				display: block;

				position: fixed;
				top: 0;
				left: 0;

				width: 100dvw;
				height: 100dvh;

				background-color: #bbbbbbaa;
				backdrop-filter: blur(2.5px);
				z-index: 1000;

				transition: all .8s ease-out;
			}
		}
	}

	[data-page="vote_races"] #back-to-top {
		bottom: 200px;
	}
}

@media (600px < width) {
	[data-page="vote_races"] {
		.vote_races-innter {
			width: auto;
		}

		&.fix {
			position: inherit;
		}

		.navi,
		.vote_races-info {
			display: none;
		}
	}
}


/* @end VOTE RACES PAGE */




/* @group USER INPUT PAGE */
/*
 * 5: USER INPUT PAGE
 * ===========================================
 */

[data-page="user_input"] .input-area {
	padding-block: 25px;
	position: relative;

	@media (width <= 600px) {
		.alert {
			position: relative;
			top: -11px;
			left: 3px;
			padding-bottom: 3px;
		}
	}
}

@media (600px < width) {
	[data-page="user_input"] .input-area .alert {
		font-size: 1.3rem;
		top: -24px;
	}
}

/* @end USER INPUT PAGE */



/* @group INPUT COMFIRM PAGE */
/*
 * 6: INPUT COMFIRM PAGE
 * ===========================================
 */

[data-page="input_confirm"] .selected-races-list {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;

	border-top: 1px solid var(--border-color);
	border-left: 1px solid var(--border-color);

	line-height: 1;
	background-color: var(--white);

	th {
		font-size: 1.2rem;
		font-weight: 700;

		padding: 7px 10px;
		border-right: 1px solid var(--border-color);
		border-bottom: 1px solid var(--border-color);

		color: var(--white);
	}

	.header_label {
		background-color: var(--table-header);

		th:nth-of-type(1) { width: 90px; }
		th:nth-of-type(2) { width: 90px; }
		th:nth-of-type(3) { width: 400px; }
		th:nth-of-type(3),
		th:nth-of-type(4) { text-align: left; padding-inline: 15px; }
	}

	td {
		font-size: 1.4rem;

		padding: 10px 10px;
		border-right: 1px solid var(--border-color);
		border-bottom: 1px solid var(--border-color);
	}
	td:nth-of-type(1) { text-align: center; }
	td:nth-of-type(2) { text-align: center; }
	td:nth-of-type(3) { padding-inline: 15px }
	td:nth-of-type(4) { padding-inline: 15px }
}
@media (width <= 600px) {
	[data-page="input_confirm"] .selected-races-list {
		border: none;

		th:nth-of-type(4),
		td:nth-of-type(4) { display: none; }

		.header_label {
			th { padding: 7px 2px; }
			th:nth-of-type(1) { width: 47px; }
			th:nth-of-type(2) { width: 47px; }
			th:nth-of-type(3) { padding-left: 10px; border-right: none; }
		}

		.race {
			 td {
				padding: 10px 2px;
				border-right: none;
			}
			td:nth-of-type(3) { padding-left: 10px; }
		}
	}
}
/* @end INPUT COMFIRM PAGE */


































/* @group UNIVERSAL */

/*
 * 99: UNIVERSAL
 * ===========================================
 */

.fs9   { font-size: 0.9rem  !important; }
.fs10  { font-size: 1rem    !important; }
.fs11  { font-size: 1.1rem  !important; }
.fs12  { font-size: 1.2rem  !important; }
.fs13  { font-size: 1.3rem  !important; }
.fs14  { font-size: 1.4rem  !important; }
.fs15  { font-size: 1.5rem  !important; }
.fs16  { font-size: 1.6rem  !important; }
.fs17  { font-size: 1.7rem  !important; }
.fs18  { font-size: 1.8rem  !important; }
.fs19  { font-size: 1.9rem  !important; }
.fs20  { font-size: 2.0rem  !important; }
.fs21  { font-size: 2.1rem  !important; }
.fs22  { font-size: 2rem    !important; }
.fs-small { font-size: 0.86em  !important; }
.fs-large { font-size: 1.29em  !important; }

.fw-bold  { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-light { font-weight: 300 !important; }

.mt0   { margin-top:  0px !important; }
.mt5   { margin-top:  5px !important; }
.mt7   { margin-top:  7px !important; }
.mt10  { margin-top: 10px !important; }
.mt15  { margin-top: 15px !important; }
.mt20  { margin-top: 20px !important; }
.mt25  { margin-top: 25px !important; }
.mt30  { margin-top: 30px !important; }
.mt40  { margin-top: 40px !important; }
.mt50  { margin-top: 50px !important; }

.mb0   { margin-bottom:  0px  !important; }
.mb5   { margin-bottom:  5px  !important; }
.mb7   { margin-bottom:  7px  !important; }
.mb10  { margin-bottom: 10px  !important; }
.mb15  { margin-bottom: 15px  !important; }
.mb20  { margin-bottom: 20px  !important; }
.mb25  { margin-bottom: 25px  !important; }
.mb30  { margin-bottom: 30px  !important; }
.mb40  { margin-bottom: 40px  !important; }
.mb50  { margin-bottom: 50px  !important; }
.mb100 { margin-bottom: 100px !important; }
.mb150 { margin-bottom: 150px !important; }
.mb200 { margin-bottom: 200px !important; }

.ml0   { margin-left: 0px  !important; }
.ml1   { margin-left: 1px  !important; }
.ml2   { margin-left: 2px  !important; }
.ml5   { margin-left: 5px  !important; }
.ml7   { margin-left: 7px  !important; }
.ml10  { margin-left: 10px !important; }
.ml15  { margin-left: 15px !important; }
.ml20  { margin-left: 20px !important; }

.mr0   { margin-right: 0px  !important; }
.mr1   { margin-right: 1px  !important; }
.mr2   { margin-right: 2px  !important; }
.mr5   { margin-right: 5px  !important; }
.mr7   { margin-right: 7px  !important; }
.mr10  { margin-right: 10px !important; }
.mr15  { margin-right: 15px !important; }
.mr20  { margin-right: 20px !important; }

.fc-red { color: #f00 !important; }
.fc-black { color: #000 !important; }
.fc-gray { color: #555 !important; }
.fc-white { color: #fff !important; }
.fc-lightblue { color: #82ced8 !important; }
.fc-greenblue { color: #008484 !important; }
.fc-darkpink { color: #a73a51 !important; }

.lh10 { line-height: 1.0 !important; }
.lh12 { line-height: 1.2 !important; }
.lh13 { line-height: 1.3 !important; }
.lh14 { line-height: 1.4 !important; }
.lh15 { line-height: 1.5 !important; }
.lh16 { line-height: 1.6 !important; }
.lh17 { line-height: 1.7 !important; }
.lh18 { line-height: 1.8 !important; }
.lh19 { line-height: 1.9 !important; }
.lh20 { line-height: 2.0 !important; }

.flt-l { float: left; }
.flt-r { float: right; }

.ta-l { text-align: left; }
.ta-c { text-align: center; }
.ta-r { text-align: right; }

.hidden { visibility: hidden !important; }
.none	{ display: none !important; }

.pos-sta { position: static !important; }
.pos-rel { position: relative !important; }
.pos-abs { position: absolute !important; }

/* @end UNIVERSAL */