/*
config
*/
:root {
	--font-sans: "Noto Sans JP",sans-serif;
	--font-serif: "Noto Serif JP",serif;
	--font-en: Roboto,sans-serif;

	--color-accent: #a72126;
	--color-umber: #3e3a39;			/*ロゴの茶色*/
}
/*
html
*/
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;
		background-repeat: repeat-x;
		background-position: 30% 0;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 7;
		transition: transform 0.2s;
		@media (width < 650px) {
			display: none;
		}
		> div {
			margin-top: 15px;
			padding-inline: 40px;
			transition: height 0.2s;
			display: flex;
			justify-content: space-between;
			align-items: center;
			transition: margin 0.3s;
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.8;
				}
				> img {
					width: 210px;
					transition: width 0.2s;
				}
			}
			> div {
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> div {
						border-radius: 10px;
						padding: 15px 20px;
						background-color: #fff;
						display: flex;
						align-items: center;
						column-gap: 10px;
						> img {
							width: 40px;
						}
						> p {
							font-size: min(1.1rem,5.5vw);
							line-height: 1.3;
							color: #a72126;
							font-weight: 600;
							letter-spacing: 0.1em;
						}
					}
				}
			}
		}
		> nav {
			margin-top: 15px;
			border-radius: 40px;
			background-color: #fff;
			padding-block: 10px;
			padding-inline: 10px;
			max-width: 1000px;
			margin-inline: auto;
			transition: margin 0.3s;
			> ul {
				display: grid;
				grid-template-columns: repeat(7,auto);
				> li {
					> a {
						text-decoration: none;
						height: 40px;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						border-bottom: dotted 2px transparent;
						transition: height 0.3s;
						> div {
							font-size: 1.0rem;
							color: var(--color-umber);
							font-weight: 600;
							@media (width < 800px) {
								font-size: 0.9rem;
							}
							&.on {
								color: var(--color-accent);
							}
						}
					}
					&:hover {
						border-radius: 40px;
						background-color: #0b88e3;
						> a {
							> div {
								color: #fff;
							}
						}
					}
				}
			}
		}
		&.close {
			> div {
				margin-top: 5px;
			}
			> nav {
				margin-top: 5px;
				background-color: rgba(255,255,255,0.8);
				> ul {
					> li {
						> a {
							height: 20px;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 7;
		background-color: transparent;
		@media (width < 650px) {
			display: block;
		}
		@media print {
			display: none;
		}
		> input[type="checkbox"] {
			display: none;
			&:checked {
				& + div > label {
					> div {
						&:nth-of-type(1) {
							animation-name: toggleHamburgerMenuClose1;
						}
						&:nth-of-type(2) {
							animation-name: toggleHamburgerMenuClose2;
						}
						&:nth-of-type(3) {
							animation-name: toggleHamburgerMenuClose3;
						}
					}
				}
				& + div + nav {
					max-height: 100vh;
				}
			}
		}
		> div {
			padding-inline: 5% 2%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 70px;
			> div {
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						display: block;
						width: 130px;
						margin-top: 10px;
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				background-color: var(--color-accent);
				border-radius: 10px;
				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;
			padding-inline: 2%;
			> ul {
				margin: 0;
				list-style: none;
				background-color: var(--color-accent);
				border-radius: 10px;
				> li {
					display: flex;
					width: 100%;
					> a {
						text-decoration: none;
						border-bottom: solid 1px rgba(255,255,255,0.2);
						white-space: nowrap;
						display: flex;
						flex-grow: 1;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						padding-block: 15px;
						width: 50%;
						&:nth-of-type(2),&:nth-of-type(3) {
							border-left: solid 1px rgba(255,255,255,0.3);
						}
						&[target="_blank"] {
							background-image: url(../../image/mark_external_fff.svg);
							background-repeat: no-repeat;
							background-position: right 20px top 50%;
						}
						> div {
							font-size: 1rem;
							line-height: 1.2;
							color: #fff;
								&.on {
								color: #ff0;
							}
						}
					}
				}
			}
			> 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: #000;
				border-bottom: solid 1px #777;
				white-space: nowrap;
				background-color: #444;
				padding: 5px 0;
			}
		}
		&.close {
		}
	}
	> div.spacer {
	}
}
@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.link {
	position: relative;
	z-index: 2;
	padding: 90px 5% 40px 5%;
	background-color: #efeff1;
	> div {
		max-width: 800px;
		margin-inline: auto;
		display: flex;
		justify-content: center;
		align-items: center;
		column-gap: 40px;
		@media (width < 550px) {
			column-gap: 20px;
		}
		> div {
			> a {
				text-decoration: none;
				> div {
					display: flex;
					align-items: center;
					column-gap: 10px;
					> p {
						font-size: 2rem;
						color: #a72126;
						font-weight: 700;
						white-space: nowrap;
						cursor: pointer;
						@media (width < 550px) {
							font-size: 1.2rem;
						}
					}
				}
				&:hover {
					opacity: 0.8;
				}
			}
			&:nth-of-type(1) {
				> a {
					> div {
						> img {
							cursor: pointer;
							width: min(200px,40vw);
						}
					}
				}
			}
			&:nth-of-type(2) {
				> a {
					> div {
						> img {
							width: min(50px,6vw);
						}
					}
				}
			}
		}
	}
}
footer.nav {
	padding: 40px 5% 0px 5%;
	background-color: #fff;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> dl {
			> div {
				display: grid;
				grid-template-columns: repeat(7, auto);
				column-gap: 30px;
				@media (width < 890px) {
					grid-template-columns: repeat(3, 1fr);
					column-gap: 10px;
				}
				> dt {
					> a {
						display: inline-block;
						text-decoration: none;
						font-size: min(1rem,4.5vw);
						color: #222;
						padding-block: 12px;
						white-space: nowrap;
						@media (width < 700px) {
							display: block;
							text-align: center;
						}
						@media (width < 890px) {
							font-size: min(1rem,3vw);
						}
						&:hover {
							text-decoration: underline;
						}
						&.on {
							color: var(--color-accent);
						}
					}
				}
			}
		}
		> div {
			margin-top: min(50px,5vw);
			max-width: 1000px;
			margin-inline: auto;
			display: flex;
			justify-content: center;
			align-items: center;
			column-gap: 20px;
			@media (width < 580px) {
				justify-content: left;
			}
			> div {
				> a {
					text-decoration: none;
					font-size: min(1rem,4.5vw);
					color: #222;
					padding-block: 12px;
					white-space: nowrap;
					cursor: pointer;
					background-image: url(../image/mark_external_a22.svg);
					background-repeat: no-repeat;
					background-position: 100% 50%;
					padding-right: 13px;
					@media (width < 580px) {
						font-size: min(1rem,3vw);
					}
					&:hover {
						text-decoration: underline;
						opacity: 0.8;
					}
				}
			}
		}
	}
}
footer.copyright {
	padding: min(30px,6vw) 5% min(30px,6vw) 5%;
	background-color: #fff;
	> div {
		padding-top: min(25px,4vw);
		border-top: 1px solid #000;
		max-width: 1000px;
		margin-inline: auto;
		text-align: center;
		> small {
			display: inline-block;
			font-size: min(0.9rem,4.5vw);
			line-height: 1.3;
			color: #666;
			@media (width < 580px) {
				font-size: 3vw;
			}
		}
	}
}
