@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap');

:root{
	--space-select-background: 255,0,0;
	--space-select-color: 255,255,255;
	}


body{
	background: rgb(var(--floor-bg));
}
.floorPlan{
	display: grid;
	grid-template-columns: 2em auto 2em;
	grid-template-rows: 2em auto 2em;
	grid-gap: 0.5em;
	background: rgb(var(--floor-bg));
	color: rgb(var(--floor-fg));
	fill: currentColor;
	font-size: min(2vw, 16px);
	font-family: 'Noto Sans JP', sans-serif;
	text-align: justify;
	overflow-wrap: break-word;
	word-wrap: break-word;
	line-height: 1em;
	user-select :none;
	}

body.rotate90{
	transform: rotate(90deg)!important;
}

body.rotate180{
	transform: rotate(180deg)!important;
	transform-origin:center center!important;
}

body.rotate270{
	transform: rotate(270deg)!important;
	transform-origin:center center!important;
}


.floorPlan .wall{
	display: flex;
	align-items: center;
	justify-content: center;
	grid-gap: 1em;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	}

.floorPlan .top{
	grid-column: 2;
	grid-row: 1;
	}
.floorPlan .right{
	grid-column: 3;
	grid-row: 2;
	}
.floorPlan .left{
	grid-column: 1;
	grid-row: 2;
	}
.floorPlan .bottom{
	grid-column: 2;
	grid-row: 3;
	}

.floorPlan .wall{
	border-radius: 1em;
	}
	.floorPlan .wall:before,
	.floorPlan .wall:after{
		content: "";
		border-radius: 0.2em;
		z-index: -1;
		}
.floorPlan .horizontal{}
	.floorPlan .horizontal:before,
	.floorPlan .horizontal:after{
		width: 50%;
		height: 0.4em;
		}
.floorPlan .vertical{
	-webkit-writing-mode: vertical-rl;
	writing-mode: vertical-rl;
	}
	.floorPlan .vertical:before,
	.floorPlan .vertical:after{
		width: 0.4em;
		height: 50%;
		}
.floorPlan .wallMirror{
	color: rgb(var(--mirror-fg));
	}
	.floorPlan .wallMirror:before,
	.floorPlan .wallMirror:after{
		background: rgb(var(--mirror-bg));
		background-size: 200% 200%;
		animation: gradient 15s ease infinite;
		}
.floorPlan .wallWindow{
	color: rgb(var(--window-fg));
	}
	.floorPlan .wallWindow:before,
	.floorPlan .wallWindow:after{
		background: rgba(var(--window-bg));
		background-size: 200% 200%;
		animation: gradient 15s ease infinite;
		}
.floorPlan .wallScreen{
	color: rgba(var(--screen-fg));
	}
	.floorPlan .wallScreen:before,
	.floorPlan .wallScreen:after{
		background: rgba(var(--screen-bg));
		background-size: 200% 200%;
		animation: gradient 10s ease infinite;
		}
.floorPlan .wallBoard{
	color: rgba(var(--board-fg));
	}
	.floorPlan .wallBoard:before,
	.floorPlan .wallBoard:after{
		background: rgba(var(--board-bg));
		}

	@keyframes gradient {
		0% {
			background-position: 0% 50%;
		}
		50% {
			background-position: 100% 50%;
		}
		100% {
			background-position: 0% 50%;
		}
	}


#floor{
	display: grid;
	grid-column: 2;
	grid-row: 2;
	grid-gap: 0.5em;
	padding: 0.75em;
	}
	#floor ul{
		display: flex;
		justify-content: center;
		align-items: flex-start;
		flex-wrap: nowrap;
		grid-gap: 1em;
		list-style: none;
		}
	#floor li{
		position: relative;
		}
	#floor input{
		display: none;
		}
		#floor input:checked+label{
			background: rgb(var(--space-select-background));
			color: rgb(var(--space-select-color));
			pointer-events: none;
			}
	#floor label{
		display: block;
		min-width: 2.75em;
		padding: 1em 0.5em;
		background: rgb(var(--space-bg));
		border-radius: 4px;
		color: rgb(var(--space-fg));
		text-align: center;
		opacity: 1;
		}
		#floor label:after{
			content: ""
			}
	#floor .seatRes{
		pointer-events: none;
		}
		#floor .seatRes label{
			background: rgb(var(--space-res-bg));
			color: rgb(var(--space-res-fg));
			}
		#floor .seatRes label:after{
			content: '';
			}

		#floor .seatWasRes label,
		#floor .seatRes label{
			background: rgb(var(--space-res-bg));
			color: rgb(var(--space-res-fg));
			}
		
	#floor .ins{
		pointer-events: none;
		}
		#floor .ins label{
			background: rgb(var(--ins-bg));
			color: rgb(var(--ins-fg));
			}
	#floor .pillar{
		pointer-events: none;
		}
		#floor .pillar label{
			background: rgba(var(--pillar-bg));
			color: rgba(var(--pillar-fg));
			}
	#floor .reserved{
		pointer-events: none;
		}
		#floor .reserved label{
			background: rgb(var(--res-bg));
			color: rgb(var(--res-fg));
			}
		#floor .reserved .myBkg+label{
			background: red!important;
			color:lightYellow!important;
			border: 1px solid white!important;
			}
		#floor .reserved .myWtg+label{
			border:solid 1px red!important;
			background: darkRed!important;
			color:white!important;
			animation: flash 1.5s linear infinite;
			}
			@keyframes flash {
			  0%,100% {
				opacity: 1;
			  }

			  50% {
				opacity: 0.5;
			  }
			}

	#floor .colVoid{
		visibility: hidden;
		}
	#floor .bar{
		display: flex;
		align-items: center;
		justify-content: center;
		grid-gap: 1em;
		margin: 0.5em 0;
		padding: 0.5em;
		color: rgb(var(--row-bar-fg));
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
		}
		#floor .bar:before,
		#floor .bar:after{
			content: "";
			width: 50%;
			height: 0.4em;
			background: rgb(var(--row-bar-bg));
			border-radius: 0.2em;
			}

	/* 予約済み */
	#floor .space.seat.done{}
		#floor .space.seat.done label{
			color: var(--res-fg);
			background-color: var(--res-bg);
			pointer-events: none;
			}


