/*-----------------
	root
------------------*/
:root {
	--font-serif: "Noto Serif JP",serif;
	--font-sans: "Noto Sans JP","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",メイリオ,Meiryo,sans-serif;
	--color-background: #fff;
	--color-base: #098;
	--color-accent: #0ed;
	--color-accent-text: #0dc;
}
/*-----------------
	reset
------------------*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: var(--color-background);
	> body {
		margin: 0;
		font-family: var(--font-sans);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		background-color: var(--color-background);
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
/*-----------------
	selection
------------------*/
::selection {
	color: #fff;
	background-color: #087;
}
/*-----------------
	margin
------------------*/
.margin5 {
	margin-top: 5px;
	line-height: 5px;
}
.margin10 {
	margin-top: 10px;
	line-height: 10px;
}
.margin15 {
	margin-top: 15px;
	line-height: 15px;
}
.margin20 {
	margin-top: 20px;
	line-height: 20px;
}
.margin25 {
	margin-top: 25px;
	line-height: 25px;
}
.margin30 {
	margin-top: 30px;
	line-height: 30px;
}
.margin40 {
	margin-top: 40px;
	line-height: 40px;
}
.margin50 {
	margin-top: 50px;
	line-height: 50px;
}
.margin60 {
	margin-top: 60px;
	line-height: 60px;
}
.margin70 {
	margin-top: 70px;
	line-height: 70px;
}
.margin80 {
	margin-top: 80px;
	line-height: 80px;
}
.margin90 {
	margin-top: 90px;
	line-height: 90px;
}
.margin100 {
	margin-top: 100px;
	line-height: 100px;
}
/*-----------------
	<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;
	}
}
/*-----------------
	headerfix01
------------------*/
section.headerfix01 {
	user-select: none;
	position: fixed;
	padding: 0 5%;
	width: 100%;
	z-index: 4;
	opacity: 1;
	background-color: rgba(0,0,0,0.2);
	@media (width < 700px) {
		display: none;
	}
	@media print {
		display: none;
	}
	> nav {
		max-width: 1920px;
		margin: 0 auto;
		padding: 0 5%;
		> ul {
			margin: 0;
			display: flex;
			justify-content: space-between;
			> li {
				padding: 0 20px;
				&:nth-of-type(1) {
				}
				&:nth-of-type(2) {
					width: 50vw;
				}
				&:nth-of-type(3) {
				}
				&:nth-of-type(4) {
				}
				&:nth-of-type(5) {
				}
				&:nth-of-type(6) {
				}
				&:nth-of-type(7) {
				}
				> a {
					text-decoration: none;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					height: 50px;
					&[target="_blank"] {
						padding-right: 15px;
						background-image: url(../image/mark_external.svg);
						background-repeat: no-repeat;
						background-position: 100% 45%;
					}
					> div {
						font-size: 1rem;
						color: #fff;
						white-space: nowrap;
						@media (width < 900px) {
							font-size: 0.8rem;
						}
					}
					> img {
						transition: 0.2s;
						&:hover {
							opacity: 0.7;
						}
					}
				}
				&:hover {
					> a {
						> div:nth-of-type(2) {
							border-color: #ccc;
						}
					}
				}
			}
		}
	}
}
/*-----------------
	headerfix02
------------------*/
section.headerfix02 {
	background-color: rgba(0,0,0,0.2);
	user-select: none;
	position: fixed;
	width: 100%;
	z-index: 4;
	transition: 0.3s;
	opacity: 1;
	display: none;
	@media (width < 700px) {
		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;
		> div {
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.7;
				}
				> img {
					width: 120px;
				}
			}
		}
		> 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: var(--color-accent);
			> li {
				list-style: none;
				display: flex;
				width: 100%;
				> a {
					text-decoration: none;
					font-size: 1rem;
					line-height: 200%;
					color: #fff;
					border-bottom: solid 1px #0fe;
					white-space: nowrap;
					display: flex;
					flex-grow: 1;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					padding: 20px 0;
					&:nth-of-type(2),&:nth-of-type(3) {
						border-left: solid 1px #fff;
					}
					&[target="_blank"] {
						background-image: url(../image/mark_external_fff.svg);
						background-repeat: no-repeat;
						background-position: right 20px top 50%;
					}
					> div:nth-of-type(2) {
						border-bottom: solid 2px transparent;
						width: 3em;
						&.on {
							border-color: var(--color-accent);
						}
					}
				}
			}
		}
		> 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);	}
}
/*-----------------
	breadcrumbs
------------------*/
section.breadcrumbs {
	overflow: hidden;
	padding: 10px 2% 12px 2%;
	background-color: #eee;
	@media print {
		display: none;
	}
	> div {
		margin: 0 auto;
		max-width: 1100px;
		display: flex;
		align-items: center;
		column-gap: 5px;
		> a {
			text-decoration: none;
			white-space: nowrap;
			will-change: opacity;	/*ちらつき防止*/
			font-size: 0.8rem;
			line-height: 100%;
			color: #888;
			&:hover {
				color: var(--color-accent);
			}
			&:not(:first-child)::before {
				content: ">";
				padding-right: 5px;
			}
		}
	}
}
/*-----------------
	footer
------------------*/
footer {
	padding: 40px 0 60px 0;
	background-color: var(--color-base);
	> div {
		margin: 0 auto;
		max-width: 1100px;
		> dl {
			display: flex;
			justify-content: center;
			column-gap: 50px;
			@media (width < 700px) {
				flex-direction: column;
				border-top: solid 1px rgba(255,255,255,0.2);
			}
			> div {
				> dd {
					> a {
						display: inline-block;
						padding: 5px 0;
						text-decoration: none;
						font-size: 1rem;
						line-height: 1.5;
						color: #fff;
						&:hover {
							text-decoration: underline;
						}
						&[target="_blank"] {
							background-image: url(../image/mark_external_fff.svg);
							background-repeat: no-repeat;
							background-position: calc(100% - 20px) 50%;
							padding-right: 37px;
						}
						@media (width < 700px) {
							display: block;
							width: 100%;
							border-bottom: solid 1px rgba(255,255,255,0.2);
							padding: 20px;
						}
					}
				}
			}
		}
		> div.copyright {
			margin-top: 50px;
			display: flex;
			justify-content: center;
			align-items: center;
			column-gap: 20px;
			row-gap: 10px;
			@media (width < 700px) {
				width: 100%;
				flex-direction: column;
				align-items: center;
				padding: 0 5%;
			}
			> figure {
				max-width: 120px;
				> img {
					max-width: 100%;
				}
			}
			> small {
				font-size: 0.9rem;
				line-height: 1.5;
				color: #eee;
			}
		}
	}
}
/*
top of page
*/
section.movepagetop {
	user-select: none;
	position: fixed;
	right: 0px;
	bottom: -90px;
	z-index: 500;
	opacity: 0.4;
	transition: bottom 0.3s, opacity 0.3s;
	@media print {
		display: none;
	}
	&:hover {
		opacity: 1;
	}
	&.on {
		bottom: 0px;
	}
	> img {
		cursor: pointer;
		@media (width < 900px) {
			width: 50px;
		}
	}
}
