/*
font
*/
@font-face {
	font-family: "Sofia Sans Semi Condensed";
	src: url("../font/SofiaSansSemiCondensed-VariableFont_wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Libre Barcode 128 Text";
	src: url("../font/LibreBarcode128Text-Regular.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Share Tech Mono";
	src: url("../font/ShareTechMono-Regular.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/*
config
*/
:root {
	--font-serif: serif;
	--font-sans: "Sofia Sans Semi Condensed",sans-serif;
	--font-tech: "Share Tech Mono",sans-serif;
	--font-barcode: "Libre Barcode 128 Text",sans-serif;

	--color-background: #555558;
	--color-accent: #32246a;
}
/*
html body
*/
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;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 980px) {
			display: none;
		}
		> div {
			background-color: #363636;
			padding-inline: 5%;
			display: flex;
			justify-content: space-between;
			height: 60px;
			transition: height 0.2s;
			> div:nth-of-type(1) {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 350px;
						transition: width 0.2s;
					}
				}
			}
			> div:nth-of-type(2) {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> div {
					margin-left: 20px;
					&.language {
						display: flex;
						align-items: center;
						> a {
							display: inline-block;
							text-decoration: none;
							font-size: 1rem;
							line-height: 1;
							color: #fff;
							&[href] {
								color: #aaa;
								&:hover {
									color: #fff;
								}
							}
						}
						> div {
							font-size: 1rem;
							height: 1rem;
							border-left: solid 1px rgba(255,255,255,0.3);
							margin-left: 10px;
							margin-right: 10px;
						}
					}
					&.corporate {
						> a {
							display: inline-block;
							text-decoration: none;
							font-size: 0.9rem;
							line-height: 1;
							color: #fff;
							background-color: #e01;
							padding: 5px 20px 5px 7px;
							border-radius: 3px;
							background-image: url(../image/mark_external_fff.svg);
							background-repeat: no-repeat;
							background-position: right 5px top 50%;
							&:hover {
								opacity: 0.7;
							}
						}
					}
				}
			}
		}
		> nav {
			padding-inline: 5%;
			background-color: #363636;
			> ul {
				display: grid;
				grid-template-columns: repeat(4,1fr);
				> li {
					border-right: solid 1px rgba(255,255,255,0.3);
					&:first-child {
						border-left: solid 1px rgba(255,255,255,0.3);
					}
					> a {
						text-decoration: none;
						height: 40px;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						> div:nth-of-type(1) {
							font-size: 1rem;
							color: #fff;
							font-weight: 600;
							&.hassubmenu {
								padding-right: 12px;
								background-image: url(../../common/image/submenu_arrow_fff.svg);
								background-repeat: no-repeat;
								background-position: 100% 60%;
							}
						}
						> div:nth-of-type(2) {
							border-top: solid 2px transparent;
							width: 2rem;
							margin-top: 2px;
							&.on {
								border-color: #fff;
							}
						}
						&:hover {
							opacity: 0.7;
						}
					}
					&:nth-of-type(2) > div {	/*プログラミング*/
						padding-left: 17%;
					}
					&:nth-of-type(7) > div > dl {	/*ご案内*/
						justify-content: right;
					}
					> div {
						position: absolute;
						display: none;
						left: 0;
						top: 100%;
						width: 100%;
						padding: 20px;
						white-space: nowrap;
						background-image: linear-gradient(#444,#888);
						> dl {
							display: flex;
							> dd {
								> a {
									text-decoration: none;
									display: flex;
									align-items: flex-end;
									font-size: 0.9rem;
									padding: 8px 60px 8px 8px;
									&:hover {
										background-color: #000;
									}
									> div:nth-of-type(1) {
										order: 2;
										font-size: inherit;
										line-height: 1;
										color: #fff;
									}
									> div:nth-of-type(2) {
										order: 1;
										border-left: solid 3px transparent;
										font-size: inherit;
										height: 0.9em;
										margin-right: 5px;
										&.on {
											border-color: #fff;
										}
									}
								}
							}
						}
					}
					&:hover {
						background-color: #444;
						> a {
							> div:nth-of-type(1) {
								color: #fff;
								&.hassubmenu {
									background-image: url(../../common/image/submenu_arrow_fff.svg);
									animation-name: submenuArrowMove;
									animation-duration: 0.5s;
									animation-timing-function: ease;
									animation-iteration-count: infinite;
								}
							}
							> div:nth-of-type(2) {
								&.on {
									border-color: #fff;
								}
							}
						}
						> div {
							display: block;
						}
					}
				}
			}
		}
		&.close {
			opacity: 0.9;
			background-color: rgba(255,255,255,0.3);
			> div {
				height: 35px;
				> div:nth-of-type(1) {
					> a {
						> img {
							width: 250px;
						}
					}
				}
				> div:nth-of-type(2) {
				}
			}
			> nav {
				> ul {
					> li {
						> a {
							height: 35px;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		background-color: #363636;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 980px) {
			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-left: 5%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 60px;
			> div {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						width: 230px;
					}
				}
				> p {
					font-size: 0.8rem;
					line-height: 1;
					color: #fff;
					@media (width < 350px) {
						display: none;
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				background-color: #000;
				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 {
				margin: 0;
				list-style: none;
				background-color: rgba(255,255,255,0.8);
				> li {
					display: flex;
					width: 100%;
					> a {
						text-decoration: none;
						font-size: 0.8rem;
						line-height: 2;
						color: #000;
						border-bottom: solid 1px #fff;
						white-space: nowrap;
						display: flex;
						flex-grow: 1;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						padding-block: 10px;
						&: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: 2em;
							&.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: 1rem;
				line-height: 2;
				color: #000;
				border-bottom: solid 1px #777;
				white-space: nowrap;
				background-color: #444;
				padding: 5px 0;
			}
		}
		&.close {
			opacity: 0.9;
		}
	}
	> div.spacer {
		background-color: #363636;
		padding-top: 100px;
		@media (width < 980px) {
			padding-top: 60px;
		}
	}
}
@keyframes submenuArrowMove {
	0% {
		background-position: 100% 58%;
	}
	25% {
		background-position: 100% 70%;
	}
	50% {
		background-position: 100% 58%;
	}
	75% {
		background-position: 100% 46%;
	}
	100% {
		background-position: 100% 58%;
	}
}
@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.footer01 {
	background-color: #3e50b4;
	background-image: url(../image/mosaic_238.svg);
	background-size: cover;
	background-attachment: fixed;
	> div {
		margin-inline: auto;
		padding: 70px 30px 80px 30px;
		max-width: 1000px;
		display: flex;
		justify-content: space-between;
		@media (width < 600px) {
			flex-direction: column;
			text-align: center;
		}
		> dl {
			> dt,
			> dd {
				margin-top: 15px;
				> a {
					display: block;
					font-size: 0.9rem;
					line-height: 1;
					color: #aaa;
					text-decoration: none;
					&[href] {
						color: #eee;
						&:hover {
							opacity: 0.7;
						}
					}
					padding-left: 9px;
				}
			}
		}
	}
}
footer.footer02 {
	padding: 70px 0;
	background-color: #3e50b4;
	background-image: url(../image/mosaic_222.svg);
	background-size: cover;
	background-attachment: fixed;
	> div {
		display: flex;
		justify-content: center;
		align-items: center;
		row-gap: 10px;
		@media (width < 600px) {
			flex-direction: column;
			text-align: center;
		}
		> figure {
			margin-right: 20px;
			> img {
				max-width: 100%;
			}
		}
		> div {
			font-size: 0.8rem;
			line-height: 1.2;
			color: #fff;
		}
	}
}
