/*==============================
        header
==============================*/
@charset "utf-8";

/**
HEADER
**/

#header {
	position:sticky;
	left:0;
	top:0;
	width:100%;
	z-index: 99;
	background-color:#FFFFFF;
	box-shadow: 0 2px 4px rgba(0,0,0,.15);
	.header {
		height:110px;
		.header_contact,
		.header_inner {
			margin:0 auto;
			display:grid;
		}
		.header_contact {
			grid-template-columns:1fr auto;
			align-items:center;
			grid-column-gap:30px;
			h1 {
				font-size:1.4rem;
				line-height:1.2;
				font-weight:400;
				margin-left:30px;
			}
			.contact {
				display:grid;
				grid-template-columns:repeat(2,auto);
				grid-column-gap:20px;
				.tel {
					display:grid;
					justify-items:center;
					align-content:end;
					grid-row-gap:5px;
					a {
						font-size:2.8rem;
						display:grid;
						grid-template-columns:repeat(2,auto);
						align-items:center;
						justify-content:center;
						grid-column-gap:.33em;
						pointer-events:none;
						span {
							font-family:'Oswald', sans-serif;
							font-size:inherit;
							letter-spacing:.05em;
							font-weight:400;
						}
						img {
							width:.8em;
						}
					}
					& > span {
						font-size:1.2rem;
						line-height:1;
						font-weight:600;
						letter-spacing:-.05em;
						margin-right:-1em;
					}
				}
				.mail {
					background-color:var(--color_sub);
					display:grid;
					font-size:2.0rem;
					color:#FFFFFF;
					font-weight:500;
					height:2.6em;
					display:grid;
					grid-template-columns:repeat(2,auto);
					align-items:center;
					justify-content:center;
					grid-column-gap:.5em;
					padding:0 2em;
					img {
						width:1em;
					}
				}
			}
		}
		.header_inner {
			width:calc(100% - 60px);
			grid-template-columns:250px 1fr 300px;
			grid-column-gap:30px;
			align-items:end;
			.logo {
				max-width:250px;
			}
			.menu-gmenu-container {
				ul {
					display:flex;
					align-items:center;
					justify-content:center;
					column-gap:2em;
					li {
						a {
							font-size:1.6rem;
							position:relative;
							background: linear-gradient(90deg, #000000 0%, #000000 33%, #ffcc00 60%, #ff6600 100%);
							background-size:300% auto;
							background-position:0 0;
							-webkit-background-clip: text;
							-webkit-text-fill-color: transparent;
							&::after {
								content:'';
								display:block;
								width:0;
								height:2px;
								background: linear-gradient(90deg, #ffcc00 0%, #ff6600 100%);
								position:absolute;
								left:50%;
								transform:translateX(-50%);
								bottom:-3px;
							}
						}
						&.current-menu-item {
							&:not(.menu-item-type-custom) {
								a {
									background-position:100% 0;
									&::after {
										width:110%;
									}
								}
							}
						}
					}
				}
			}
			& > a {
				font-size:1.6rem;
				justify-self:end;
			}
		}
	}
}

@media (hover:hover) {

	#header {
		.header {
			.header_contact {
				.mail {
					&:hover {
						filter:brightness(1.1);
					}
				}
			}
			.header_inner {
				.menu-gmenu-container {
					ul {
						li {
							a {
								&:hover {
									background-position:100% 0;
									&::after {
										width:110%;
									}
								}
								&::after {
									transition-duration:.3s;
								}
							}
						}
					}
				}
				& > a {
					&:hover {
						color:var(--color_sub5);
					}
				}
			}
		}
	}
	
}

@media screen and (max-width:1450px) {

	#header {
		.header {
			.header_inner {
				grid-template-columns:250px 1fr auto;
				margin-top:0;
			}
		}
	}

}

@media screen and (max-width:1200px) {

	#header {
		.header {
			.header_inner {
				grid-template-columns:250px 1fr;
				margin-top:0;
				& > a {
					display:none;
				}
			}
		}
	}
	
}

@media screen and (max-width:1024px) {

	#header {
		.header {
			height:100px;
			.header_contact {
				h1 {
					font-size:1.3rem;
					margin-left:25px;
				}
			}
			.header_inner {
				width:100%;
				grid-template-columns:200px 1fr;
				justify-content:space-between;
				padding-left:25px;
				grid-column-gap:20px;
				.menu-gmenu-container {
					padding-top:15px;
					ul {
						column-gap:1em;
						li {
							a {
								font-size:1.6rem;
							}
						}
					}
				}
			}
		}
	}
}

@media screen and (max-width:768px) {

	#header {
		.header {
			height:80px;
			.header_contact {
				grid-template-columns:1fr 100px 50px;
				grid-column-gap:0;
				align-items:start;
				h1 {
					font-size:1.1rem;
					padding:5px 10px 0;
					margin-left:0;
				}
				.contact {
					grid-template-columns:repeat(2,1fr);
					grid-column-gap:0;
					.tel {
						a {
							grid-template-columns:1fr;
							align-content:center;
							justify-items:center;
							width:50px;
							height:50px;
							pointer-events: all;
						}
						span {
							display:none;
						}
					}
					.mail {
						height:50px;
						padding:0;
						grid-template-columns:1fr;
						justify-items:center;
						span {
							display:none;
						}
					}
				}
				.spbtn {
					cursor:pointer;
					height:50px;
					position:relative;
					display:grid;
					align-content:center;
					justify-items:center;
					grid-row-gap:6px;
					background-color:#000000;
					&::before,&::after {
						content:'';
						width:40%;
						height:2px;
						background-color:#ffffff;
						transition:.3s;
					}
					span {
						width:40%;
						height:2px;
						background-color:#ffffff;
						transition:.3s;
					}
				}
			}
			.header_inner {
				grid-template-columns:1fr;
				justify-content:start;
				margin-top:-10px;
				padding-bottom:0;
				padding-left:15px;
				.logo {
					max-width:200px;
				}
				.menu-gmenu-container {
					position:fixed;
					z-index:99;
					top:80px;
					left:0;
					width:100vw;
					height:calc(100vh - 80px);
					height:calc(100dvh - 80px);
					background-color:#efefef;
					padding:50px;
					overflow:auto;
					pointer-events:none;
					opacity:0;
					transition-duration:.3s;
					.menu {
						display:grid;
						grid-template-columns:1fr;
						max-width:300px;
						margin:0 auto;
						li {
							border-bottom:2px solid #FFFFFF;
							a {
								font-size:2.0rem;
								height:2.4em;
								display:grid;
								align-content:center;
								padding:0 1em;
							}
						}
					}
				}
			}
		}
	}

	body {
		&.menuopen {
			overflow:hidden;
			#header {
				.header {
					.header_contact {
						.spbtn {
							&::before {
								transform:translateY(8px) rotate(45deg);
							}
							&::after {
								transform:translateY(-8px) rotate(-45deg);
							}
							span {
								opacity:0;
							}
						}
					}
					.header_inner {
						.menu-gmenu-container {
							pointer-events:all;
							opacity:1;
						}
					}
				}
			}
		}
	}
}