/*
define
*/
:root {
	--font-serif: "Noto Serif JP",serif;
	--font-sans: "Noto Sans JP",sans-serif;
}
/*
html body
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	> body {
		margin: 0;
		font-family: var(--font-sans);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
/*
selection
*/
::selection {
	color: #fff;
	background-color: #006;
}
/*
<wbr><span>...</span> は改行させない
*/
wbr {
	&:after {
		content: "\00200B";		/*ゼロ幅スペース*/
	}
	+ span {
		white-space: nowrap;
	}
}
/*
browsercaution,jscaution,preview
*/
label[for="browsercaution"],#jscaution,#preview {
	position: fixed;
	text-align: center;
	font-size: 1rem;
	padding-block: 20px;
	padding-inline: 10px;
	color: #fff;
	width: 100%;
	box-sizing: border-box;
	opacity: 0.7;
	transition: 0.5s;
	max-height: 100px;
	overflow: hidden;
	@media print {
		display: none;
	}
	&: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: 2rem;
	font-weight: bold;
	line-height: 1.5;
	opacity: 0.7;
}
input#browsercaution[type="checkbox"] {
	display: none;
	&:checked + label[for="browsercaution"] {
		padding: 0;
		max-height: 0;
	}
}
/*
movepagetop
*/
section.movepagetop {
	background-color: transparent;
	user-select: none;
	position: fixed;
	right: 0px;
	z-index: 500;
	bottom: -90px;
	@media print {
		display: none;
	}
	&.on {
		bottom: -1px;
	}
	> img {
		opacity: 0.15;
		transition: 0.5s;
		cursor: pointer;
		&:hover {
			opacity: 0.9;
		}
		@media (width < 900px) {
			width: 50px;
		}
	}
}

/*
footer
*/
footer {
	background-color: #4D4449;
	padding-block: 40px;
	padding-inline: min(38px,5vw);
	max-width: 750px;
	margin-inline: auto;
	> article {
		margin-top: 15px;
		> p {
			font-size: min(1.5rem,5vw);
			line-height: 1.3;
			color: #fff;
		}
		> h1 {
			font-size: min(2.0rem,8vw);
			line-height: 1.3;
			color: #fff;
		}
		> div {
			margin-top: 3px;
			letter-spacing: 1px;
			font-size: min(1.5rem,5vw);
			line-height: 1.3;
			color: #fff;
		}
	}
}
