:root {
	--font-serif: "Noto Serif JP",serif;
	--font-sans: "Noto Sans JP",sans-serif;

	--color-base: #026;
	--color-accent: #3180fe;
}

/*
html body
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #fff;
	> body {
		margin: 0;
		font-family: var(--font-sans);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		background-color: #fff;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
/*
selection
*/
::selection {
	color: #fe9131;
	background-color: #222;
}
/*
<wbr><span>...</span> は改行させない
*/
wbr {
	&:after {
		content: "\00200B";		/*ゼロ幅スペース*/
	}
	+ span {
		white-space: nowrap;
	}
}
/*
browsercaution jscaution preview
*/
input#browsercaution[type="checkbox"] {
	display: none;
}
label[for="browsercaution"],#jscaution,#preview {
	@media print {
		display: none;
	}
	position: fixed;
	text-align: center;
	font-size: 1.3rem;
	padding: 20px;
	color: #fff;
	width: 100%;
	box-sizing: border-box;
	opacity: 0.7;
	transition: all 0.5s;
	max-height: 100px;
	overflow: hidden;
	&:hover {
		opacity: 1;
	}
}
label[for="browsercaution"] {
	bottom: 0;
	z-index: 500;
	background-color: #f00;
	cursor: pointer;
}
#jscaution {
	bottom: 0;
	z-index: 502;
	background-color: #ff0;
	color: #111;
}
#preview {
	top: 0;
	z-index: 499;
	background-color: #f00;
	font-size: 2.4rem;
	font-weight: bold;
	line-height: 1.5;
	opacity: 0.7;
}
input#browsercaution[type="checkbox"]:checked + label[for="browsercaution"] {
	padding: 0;
	max-height: 0;
}
/*
headerfix01
*/
section.headerfix01 {
	background-color: var(--color-base);
	width: 100%;
	display: flex;
	justify-content: center;
	@media (max-width:789px) {
		display: none;
	}
	> header {
		height: 60px;
		padding: 10px;
		background-color: #026;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 10px;
		row-gap: 5px;
		> a {
			text-decoration: none;
			font-size: 1.4rem;
			line-height: 1;
			color: #fff;
			&:hover {
				opacity: 0.7;
			}
			@media (max-width:1099px) {
				font-size: 1rem;
			}
		}
		> nav {
			display: flex;
			flex-wrap: wrap;
			column-gap: 3px;
			row-gap: 2px;
			> .date {
				display: flex;
				input[type="date"] {
					color-scheme: dark;
					appearance: none;
					height: 40px;
					border: solid 1px #af00ff;
					padding-left: 3px;
					font-size: 1rem;
					line-height: 1;
					background-color: transparent;
					color: #fff;
					border-radius: 3px;
					@media (max-width:1099px) {
						height: 30px;
						padding: 0 5px;
						font-size: 0.8rem;
					}
					&:focus {
						outline: 0;
						background-color: #000;
					}
				}
				> div {
					height: 40px;
					font-size: 1rem;
					line-height: 35px;
					color: #af00ff;
					font-weight: 700;
					@media (max-width:1099px) {
						height: 30px;
						line-height: 24px;
					}
				}
				> button {
					margin-left: 3px;
					user-select: none;
					appearance: none;
					white-space: nowrap;
					cursor: pointer;
					height: 40px;
					padding-inline: 18px;
					border: solid 1px #af00ff;
					border-radius: 3px;
					font-size: 1rem;
					line-height: 1;
					background-color: transparent;
					color: #fff;
					margin-left: 3px;
					@media (max-width:1099px) {
						height: 30px;
						padding: 0 5px;
						font-size: 0.8rem;
					}
					&:hover {
						opacity: 0.7;
					}
				}
			}
			> .button {
				display: flex;
				column-gap: 3px;
				> button {
					user-select: none;
					appearance: none;
					white-space: nowrap;
					cursor: pointer;
					height: 40px;
					padding-inline: 18px;
					border: solid 1px #09e;
					border-radius: 3px;
					font-size: 1rem;
					line-height: 1;
					background-color: transparent;
					color: #fff;
					@media (max-width:1099px) {
						height: 30px;
						padding: 0 5px;
						font-size: 0.8rem;
					}
					&:hover {
						opacity: 0.7;
					}
				}
			}
			> .link {
				display: flex;
				column-gap: 3px;
				> a {
					display: flex;
					align-items: center;
					user-select: none;
					appearance: none;
					text-decoration: none;
					white-space: nowrap;
					height: 40px;
					padding-inline: 18px;
					border: solid 1px #666;
					border-radius: 3px;
					font-size: 1rem;
					line-height: 1;
					background-color: transparent;
					color: #fff;
					@media (max-width:1099px) {
						height: 30px;
						padding: 0 5px;
						font-size: 0.8rem;
					}
					&:hover {
						opacity: 0.7;
					}
				}
			}
		}
	}
}
/*
headerfix02
*/
section.headerfix02 {
	user-select: none;
	width: 100%;
	background-color: var(--color-base);
	transition: 0.3s;
	opacity: 1;
	display: none;
	@media (max-width: 789px) {
		display: block;
	}
	> input[type="checkbox"] {
		display: none;
		&:checked {
			& + header > label {
				> div {
					&:nth-of-type(1) {
						animation-name: toggleHamburgerMenuClose1;
					}
					&:nth-of-type(2) {
						animation-name: toggleHamburgerMenuClose2;
					}
					&:nth-of-type(3) {
						animation-name: toggleHamburgerMenuClose3;
					}
				}
			}
			& + header + nav {
				max-height: 100vh;
			}
		}
	}
	> header {
		padding-left: 5%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 60px;
		> a {
			text-decoration: none;
			font-size: 1rem;
			line-height: 1.2;
			color: #fff;
			white-space: nowrap;
			@media (max-width:349px) {
				font-size: 0.7rem;
			}
		}
		> div {
			text-align: center;
			> div {
				font-size: 0.9rem;
				line-height: 1.1;
				color: #fff;
			}
			> button {
				margin-top: 4px;
				user-select: none;
				appearance: none;
				white-space: nowrap;
				cursor: pointer;
				height: 26px;
				padding: 0 10px;
				border: solid 1px #00ee30;
				border-radius: 3px;
				font-size: 0.8rem;
				line-height: 1;
				background-color: transparent;
				color: #fff;
			}
		}
		> label {
			width: 60px;
			height: 60px;
			background-color: var(--color-accent);
			cursor: pointer;
			padding: 15px;
			display: grid;
			grid-template-rows: 30px;
			grid-template-columns: 30px;
			> div {
				grid-column: 1/2;
				grid-row: 1/2;
				width: 100%;
				border-top: solid 4px #fff;
				align-self: center;
				animation-duration: 0.2s;
				animation-fill-mode: forwards;
				&:nth-of-type(1) {
					animation-name: toggleHamburgerMenuOpen1;
				}
				&:nth-of-type(2) {
					animation-name: toggleHamburgerMenuOpen2;
				}
				&:nth-of-type(3) {
					animation-name: toggleHamburgerMenuOpen3;
				}
			}
		}
	}
	> nav {
		text-align: center;
		overflow: hidden;
		transition: 0.3s;
		max-height: 0;
		> ul {
			background-color: #2e428e;
			> li {
				list-style: none;
				display: flex;
				width: 100%;
				> div.date {
					width: 100%;
					padding: 20px 10px;
					border-bottom: solid 1px var(--color-base);
					display: flex;
					align-items: center;
					justify-content: center;
					input[type="date"] {
						color-scheme: dark;
						appearance: none;
						height: 40px;
						border: solid 1px #af00ff;
						padding-left: 3px;
						font-size: 1rem;
						line-height: 1;
						background-color: transparent;
						color: #fff;
						border-radius: 3px;
						@media (max-width:369px) {
							height: 30px;
							padding: 0 5px;
							font-size: 0.8rem;
						}
						&:focus {
							outline: 0;
							background-color: #000;
						}
					}
					> div {
						height: 40px;
						font-size: 1rem;
						line-height: 35px;
						color: #af00ff;
						font-weight: 700;
						@media (max-width:369px) {
							height: 30px;
							line-height: 24px;
						}
					}
					> button {
						margin-left: 3px;
						user-select: none;
						appearance: none;
						white-space: nowrap;
						cursor: pointer;
						height: 40px;
						padding-inline: 18px;
						border: solid 1px #af00ff;
						border-radius: 3px;
						font-size: 1rem;
						line-height: 1;
						background-color: transparent;
						color: #fff;
						margin-left: 3px;
						@media (max-width:369px) {
							height: 30px;
							padding: 0 5px;
							font-size: 0.8rem;
						}
					}
				}
				> div.button {
					width: 100%;
					padding: 20px 10px;
					border-bottom: solid 1px var(--color-base);
					display: flex;
					align-items: center;
					justify-content: center;
					column-gap: 3px;
					> button {
						user-select: none;
						appearance: none;
						white-space: nowrap;
						cursor: pointer;
						height: 40px;
						padding-inline: 10px;
						border: solid 1px #09e;
						border-radius: 3px;
						font-size: 1rem;
						line-height: 1;
						background-color: transparent;
						color: #fff;
						@media (max-width:369px) {
							height: 30px;
							padding: 0 5px;
							font-size: 0.8rem;
						}
					}
				}
				> a {
					text-decoration: none;
					font-size: 0.9rem;
					line-height: 200%;
					color: #fff;
					border-bottom: solid 1px var(--color-base);
					white-space: nowrap;
					display: flex;
					flex-grow: 1;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					padding: 20px 10px;
					width: 50%;
					&:nth-of-type(2),&:nth-of-type(3) {
						border-left: solid 1px var(--color-base);
					}
					&[target="_blank"] {
						background-image: url(../image/mark_external_fff.svg);
						background-repeat: no-repeat;
						background-position: right 20px top 50%;
					}
				}
			}
		}
		> input[type="radio"] {
			display: none;
			& + ul {
				overflow: hidden;
				transition: 0.5s;
				max-height: 0;
			}
			&:checked + ul {
				max-height: 300px;
			}
		}
		> label {
			display: block;
			font-size: 1.6rem;
			line-height: 200%;
			color: #fff;
			border-bottom: solid 1px #777;
			white-space: nowrap;
			background-color: #444;
			padding: 5px 0;
			background-image: url(../image/submenu_arrow_fff.svg);
			background-repeat: no-repeat;
			background-position: right 15px top 50%;
		}
	}
}
@keyframes toggleHamburgerMenuClose1 {
	0% {	transform: translateY(-13px) rotate(0deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(0px) rotate(45deg);	}
}
@keyframes toggleHamburgerMenuClose2 {
	0% {	opacity: 1;	}
	50% {	opacity: 1;	}
	50.1% {	opacity: 0;	}
	100% {	opacity: 0;	}
}
@keyframes toggleHamburgerMenuClose3 {
	0% {	transform: translateY(13px) rotate(0deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(0px) rotate(-45deg);	}
}
@keyframes toggleHamburgerMenuOpen1 {
	0% {	transform: translateY(0px) rotate(45deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(-13px) rotate(0deg);	}
}
@keyframes toggleHamburgerMenuOpen2 {
	0% {	opacity: 0;	}
	50% {	opacity: 0;	}
	50.1% {	opacity: 1;	}
	100% {	opacity: 1;	}
}
@keyframes toggleHamburgerMenuOpen3 {
	0% {	transform: translateY(0px) rotate(-45deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(13px) rotate(0deg);	}
}
/*
footer
*/
footer {
	text-align: center;
	background-color: #eee;
	font-size: 0.7rem;
	line-height: 1.3;
	color: #ccc;
	padding: 10px;
}
/*
top of page
*/
section.movepagetop {
	@media print {
		display: none;
	}
	user-select: none;
	position: fixed;
	right: 0px;
	bottom: -90px;
	z-index: 500;
	opacity: 0.4;
	transition: bottom 0.3s, opacity 0.3s;
	&:hover {
		opacity: 1;
	}
	&.on {
		bottom: 0px;
	}
	> a {
		> img {
			cursor: pointer;
			@media (max-width: 899px) {
				width: 50px;
			}
		}
	}
}
