@charset "UTF-8";

/* ヘッダー */
#header {
	--logo-width: clamp(200px, 21vw, 285px);
	background: #f7f5ef;
}

#header h1 {
	padding: 5px 4%;
	background: transparent;
	color: #817d70;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .02em;
}

.header-container {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	min-height: 100px;
	gap: 30px;
}

.site {
	display: block;
	justify-self: start;
}

.site-logo {
	display: block;
	width: var(--logo-width);
	height: auto;
}

.company {
	display: grid;
	justify-items: end;
	gap: 2px;
}

.company-address {
	display: block;
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--sub-text);
}

.company-tel {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-mincho);
	font-size: 21px;
	letter-spacing: .04em;
	line-height: 1.2;
}

.tel-label {
	font-family: sans-serif;
	font-size: 12px;
	color: #fff;
	background-color: #353a32;
	margin-top: 3px;
	padding: 2px 5px;
}

/* ナビゲーション */
.nav_container {
	padding-bottom: 5px;
}

.nav > ul {
	display: grid;
	grid-template-columns: repeat(6, auto);
	align-items: center;
	gap: clamp(15px, 2.1vw, 35px);
}

.nav a {
	display: grid;
	justify-items: center;
	gap: 7px;
	padding: 8px 0 0;
	font-family: var(--font-mincho);
	font-size: clamp(14px,1.6vw,16px);
	line-height: 1.7;
	letter-spacing: .07em;
	white-space: nowrap;
}

.nav a::after {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	background: var(--accent-color2);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s;
}

.nav a:hover::after,
.nav a:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left;
}

#navbtn {
	display: none;
}

/* PC：左にロゴ、右上に電話、右下にメニュー */
@media print, screen and (min-width: 1000px) {
	#header {
		display: grid;
		grid-template-columns:
			minmax(4%, 1fr)
			var(--logo-width)
			minmax(0, calc(1228px - var(--logo-width)))
			minmax(4%, 1fr);
		grid-template-rows: auto auto auto;
		align-items: center;
	}

	#header h1 {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.header-container {
		display: contents;
	}

	.header-container > .site {
		grid-column: 2;
		grid-row: 2 / 4;
		align-self: center;
		padding-block: 15px;
	}

	.company {
		grid-column: 3;
		grid-row: 2;
		justify-self: end;
		padding-top: 8px;
	}

	.company-tel {
		font-size: 30px;
	}

	.nav_container {
		grid-column: 3;
		grid-row: 3;
		justify-self: stretch;
		padding: 8px 0 20px 30px;
	}

	.nav.w-container {
		width: 100%;
		margin: 0;
	}

	.nav > ul {
		justify-content: end;
	}
}

/* タブレット：上段にロゴと電話、下段にメニュー */
@media only screen and (min-width: 768px) and (max-width: 999px) {
	.nav > ul {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 10px;
	}

	.nav a {
		text-align: center;
		white-space: normal;
	}
}

/* スマートフォンメニュー */
@media only screen and (max-width: 767px) {
	#header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.header-container {
		grid-template-columns: 1fr auto;
		min-height: var(--header-margin);
		gap: 15px;
	}

	.site-logo {
		width: clamp(200px, 54vw, 260px);
	}

	.company {
		display: none;
	}

	#navbtn {
		display: grid;
		align-content: center;
		justify-items: center;
		gap: 9px;
		width: 56px;
		height: 56px;
		padding: 5px;
		border: 0;
		background: transparent;
		color: var(--main-color);
		cursor: pointer;
	}

	.menu-lines {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: repeat(3, 1fr);
		width: 26px;
		height: 15px;
		background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
	}

	.menu-lines::before,
	.menu-lines::after {
		content: "";
		display: block;
		grid-column: 1;
		width: 26px;
		height: 1px;
		background: currentColor;
		transition: transform .3s;
	}

	.menu-lines::before {
		grid-row: 1;
		align-self: start;
	}

	.menu-lines::after {
		grid-row: 3;
		align-self: end;
	}

	.open .menu-lines {
		background: none;
	}

	.open .menu-lines::before,
	.open .menu-lines::after {
		grid-row: 1 / -1;
		align-self: center;
	}

	.open .menu-lines::before {
		transform: rotate(45deg);
	}

	.open .menu-lines::after {
		transform: rotate(-45deg);
	}

	.nav_container {
		padding: 0;
	}

	.nav.w-container {
		position: fixed;
		top: var(--header-margin);
		left: 0;
		width: 100%;
		height: calc(100dvh - var(--header-margin));
		padding: 30px 9% 60px;
		box-sizing: border-box;
		overflow-y: auto;
		background: linear-gradient(#f1ede3ec, #f1ede3ec), url("../img/lotus.svg") no-repeat right -50px bottom 40px / 240px, #f1ede3;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-10px);
		transition: opacity .3s, visibility .3s, transform .3s;
	}

	.nav > ul {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.nav a {
		display: block;
		padding: 24px 0;
		border-bottom: 1px solid #cec4ae;
		font-size: 16px;
		white-space: normal;
	}

	.nav a::after {
		display: none;
	}

	body.open {
		overflow: hidden;
	}

	.open .nav {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
}

/* 印刷 */
@media print {
	#header {
		position: static;
	}

	#header h1 {
		display: block;
	}

	#navbtn {
		display: none;
	}
}