/* constant */
: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: 1.3rem;
	padding: 20px;
	color: #fff;
	width: 100%;
	box-sizing: border-box;
	opacity: 0.7;
	transition: all 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: 2.4rem;
	font-weight: bold;
	line-height: 150%;
	opacity: 0.7;
}
input#browsercaution[type="checkbox"] {
	display: none;
	&:checked + label[for="browsercaution"] {
		padding: 0;
		max-height: 0;
	}
}
/* movepagetop */
section.movepagetop {
	user-select: none;
	position: fixed;
	right: 0px;
	bottom: -90px;
	z-index: 500;
	opacity: 0.4;
	transition: 0.3s;
	cursor: pointer;
	@media print {
		display: none;
	}
	&:hover {
		opacity: 1;
	}
	&.on {
		bottom: -1px;
	}
	> a {
		> img {
			@media (width < 900px) {
				width: 50px;
			}
		}
	}
}
