/*
font
*/
@font-face {
	font-family: "Noto Sans JP";
	src: url("../font/NotoSansJP-VariableFont_wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Noto Serif JP";
	src: url("../font/NotoSerifJP-VariableFont_wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bebas Neue";
	src: url("../font/BebasNeue-Regular.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/*
root
*/
:root {
	--font-sans: "Noto Sans JP",sans-serif;
	--font-serif: "Noto Serif JP",serif;
	--font-alphabet: "Bebas Neue",sans-serif;

	--color-accent: #e50012;
}
/*
html
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #fff;
	font-size: 62.5%;
	> body {
		margin: 0;
		font-family: var(--font-sans);
		line-break: strict;
		overflow-x: hidden;
		background-color: #fff;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
*,*::before,*::after {
	box-sizing: border-box;
}
a {
	outline: 0;
	transition: opacity 0.1s;
	text-decoration-skip-ink: auto;
}
img {
	border: 0;
	vertical-align: bottom;
}
ul,ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
h1,h2,h3,h4,h5,h6,p,li,figure,figcaption,blockquote,dl,dd {
	margin: 0;
}
h1,h2,h3,h4,h5,h6 {
	font-weight: 500;
}
/*
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;
}
/*
headerfix01
*/
section.headerfix01 {
	user-select: none;
	position: fixed;
	padding: 0 5%;
	width: 100%;
	z-index: 4;
	opacity: 1;
	transition: 0.3s;
	background-color: #fff;
	&.close {
		opacity: 0.9;
		transform: translateY(-90px);
	}
	@media print {
		display: none;
	}
	@media (width < 1010px) {
		display: none;
	}
	> header {
		height: 90px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		> a {
			text-decoration: none;
			&:hover {
				opacity: 0.7;
			}
			> img {
				width: 176px;
			}
			> p {
				margin-top: 5px;
				font-size: 1.4rem;
				line-height: 1;
				color: #222;
			}
		}
		> div {
			display: flex;
			align-items: center;
			column-gap: 20px;
			> div {
				&:nth-of-type(1) {
					> a {
					 > img {
						width: 300px;
					 }
					}
				}
				&:nth-of-type(2) {
					> a {
					 > img {
						width: 300px;
					 }
					}
				}
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
				}
			}
		}
	}
	> nav {
		max-width: 1920px;
		margin: 0 auto;
		padding: 0 5%;
		> ul {
			margin: 0;
			display: flex;
			justify-content: space-between;
			> li {
				padding: 0 20px;
				@media (max-width:1249px) {
					padding: 0 10px;
				}
				&:first-child {
				}
				&:last-child {
				}
				> 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:nth-of-type(1) {
						font-size: 1.6rem;
						color: #000;
						white-space: nowrap;
						@media (max-width:1249px) {
							font-size: 1.5rem;
						}
					}
					> div:nth-of-type(2) {
						border-bottom: solid 2px transparent;
						width: 100%;
						padding-bottom: 2px;
						margin-bottom: 3px;
						&.on {
							border-color: var(--color-accent);
						}
					}
					> img {
						transition: 0.2s;
						&:hover {
							opacity: 0.7;
						}
					}
				}
				&:hover {
					> a {
						> div:nth-of-type(2) {
							border-color: #ccc;
						}
					}
				}
			}
		}
	}
}
/*
headerfix02
*/
section.headerfix02 {
	user-select: none;
	position: fixed;
	width: 100%;
	background-color: #fff;
	z-index: 4;
	transition: 0.3s;
	opacity: 1;
	display: none;
	@media (width < 1010px) {
		display: block;
		opacity: 0.9;
	}
	> 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;
				}
				> p {
					margin-top: 5px;
					font-size: 1.2rem;
					line-height: 1;
					color: #222;
				}
			}
		}
		> 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: 1.6rem;
					line-height: 2;
					color: #fff;
					border-bottom: solid 1px #ff636f;
					white-space: nowrap;
					display: flex;
					flex-grow: 1;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					padding: 5px 0;
					&:nth-of-type(2),&:nth-of-type(3) {
						border-left: solid 1px #ff636f;
					}
					&[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: 2;
			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);	}
}
/*
headerfixmargin
*/
section.headerfixmargin {
	height: 140px;
	background-color: #fff;
	@media (width < 1010px) {
		height: 60px;
		background-color: #fff;
	}
}
/*
footer
*/
footer {
	padding: 40px 0 40px 0;
	background-color: #eee;
	> div {
		margin: 0 auto;
		max-width: 1200px;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		column-gap: 80px;
		row-gap: 30px;
		@media (max-width:1129px) {
			flex-direction: column-reverse;
		}
		> div {
			display: flex;
			column-gap: 20px;
			row-gap: 20px;
			@media (max-width:1129px) {
				width: 100%;
				flex-direction: column;
				align-items: center;
				padding: 0 5%;
			}
			> figure {
				> img {}
			}
			> div {
				> h1 {
					font-size: 2.0rem;
					line-height: 1.5;
					color: #222;
				}
				> h2 {
					font-size: 1.5rem;
					line-height: 1.5;
					color: #222;
				}
				> p {
					font-size: 1.5rem;
					line-height: 1.5;
					color: #222;
				}
				> small {
					display: inline-block;
					margin-top: 5px;
					font-size: 1.3rem;
					line-height: 1.3;
					color: #888;
					font-weight: 300;
				}
			}
		}
		> dl {
			display: flex;
			column-gap: 30px;
			@media (max-width:1129px) {
				flex-direction: column;
				border-top: solid 1px #aaa;
			}
			> div {
				> dd {
					> a {
						display: inline-block;
						padding: 5px 0;
						text-decoration: none;
						font-size: 1.5rem;
						line-height: 1.5;
						color: #222;
						&:hover {
							text-decoration: underline;
						}
						@media (max-width:1129px) {
							display: block;
							width: 100vw;
							border-bottom: solid 1px #aaa;
							padding: 20px;
						}
					}
				}
			}
		}
	}
}
