html {
	background-color: #ffffff;
	height: 100%;
	overflow: hidden;
}

body {
	user-select: none;
	-webkit-user-select: none;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	z-index: 0;
}

#canvas {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -1;
}

#logo {
	padding: 8px 0;
	display: flex;
	justify-content: center;
}

a {
	color: #a00000;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

header {
	margin: 0 auto;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.75);
}

.logo {
	width: 40px;
	height: 40px;
	z-index: 0;
}

.title {
	transform-origin: 50% 25%;
	font-family: "Encode Sans Condensed", sans-serif;
	font-size: 2.2em;
	margin-left: 16px;
	display: flex;
	align-items: center;
	animation: title-show 1s ease 0.6s both;
}

@keyframes title-show {
	0% {
		opacity: 0;
		transform: scaleY(0.1);
	}

	50% {
		transform: scaleY(1);
	}

	100% {
		opacity: 1;
	}
}

.menu {
	display: flex;
	flex-direction: row;
}

main {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	pointer-events: none;
	overflow-y: hidden;
	flex-grow: 1;
	flex-shrink: 1;
	font-family: "Noto Sans JP", Meiryo, Osaka, sans-serif;
	user-select: text;
	-webkit-user-select: text;
}

.band {
	padding: 0 max(32px, calc(0.5 * max(0px, calc(100% - 800px))));
}

.menu a {
	color: #000;
	position: relative;
	font-family: "Encode Sans Condensed", sans-serif;
	font-size: 1.5em;
	margin: 0 24px 8px 0;
	padding-left: 4px;
	height: calc(1.3em + 3px);
	padding-right: 32px;
	cursor: pointer;
	transition: color 0.2s ease-out;
	z-index: 1;
}

.menu a:hover {
	color: #fff;
	text-decoration: none;
}

.menu a::after {
	content: "";
	position: absolute;
	left: 0;
	top: 1.3em;
	width: 100%;
	height: 3px;
	background-color: #000;
	transition: height 0.2s ease-out, top 0.2s ease-out;
	z-index: -1;
}

.menu a:hover::after {
	transition: height 0.05s ease-out, top 0.05s ease-out;
	height: 100%;
	top: 0;
}

@media screen and (max-width: 650px) {
	.logo {
		width: 32px;
		height: 32px;
	}

	.title {
		font-size: 1.8em;
		margin-left: 16px;
	}

	.menu a {
		font-size: 1.2em;
		margin: 0 16px 4px 0;
		padding-right: 16px;
	}

	.band {
		padding: 0 max(24px, calc(0.5 * max(0px, calc(100% - 800px))));
	}
}

@media screen and (max-width: 400px) {
	body {
		font-size: 0.9em;
	}

	.title {
		margin-left: 12px;
	}

	.menu a {
		padding-right: 12px;
	}

	.band {
		padding: 0 max(16px, calc(0.5 * max(0px, calc(100% - 800px))));
	}
}
