/*
 * STEP7-② 確認用の仮設定
 * ロゴサイズ、CTA色、余白、切り替え幅は表示確認後に調整します。
 * ヘッダーはスクロール時も画面上部に追従させます。
 */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 0.75rem;
}

.site-header__logo {
	display: block;
	flex: 0 0 auto;
	width: 4rem;
}

.site-header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.site-header__navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(1rem, 2.5vw, 2.5rem);
	min-width: 0;
}

.site-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-block: 0.5rem;
	font-weight: 600;
	text-decoration: none;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible,
.site-header__menu .current-menu-item > a:not([href*="#"]) {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.site-header__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-shrink: 0;
	max-width: 100%;
	min-height: 48px;
	padding: 0.8rem 1.25rem;
	border: 2px solid transparent;
	border-radius: 0.5rem;
	background: #b9dc50;
	color: #181818;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.site-header__contact:hover {
	border-color: currentColor;
}

.site-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 44px;
	padding: 0.6rem 0.85rem;
	border: 1px solid #767676;
	border-radius: 0.35rem;
	background: #fff;
	color: #242424;
	cursor: pointer;
}

.site-header__toggle-icon::before {
	content: "+";
	font-size: 1.5rem;
	line-height: 1;
}

.site-header__toggle[aria-expanded="true"]
.site-header__toggle-icon::before {
	content: "−";
}

.site-header [hidden] {
	display: none;
}

/* 仮の切り替え幅。JavaScriptの条件と合わせて変更します。 */
@media (max-width: 64rem) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 0.75rem 1rem;
	}

	.site-header__logo {
		width: 5rem;
	}

	.site-header__navigation {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding-block: 0.5rem 1rem;
	}

	.site-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header__menu a {
		display: flex;
		padding: 0.8rem 0;
		border-bottom: 1px solid #e5e5e5;
	}
}

/* ページ遷移時のフェード演出 */
body {
	opacity: 1;
	transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	animation: page-fade-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-page-fading {
	opacity: 0;
	animation: none;
}

@keyframes page-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body {
		animation: none;
		transition: none;
	}

	body.is-page-fading {
		opacity: 1;
	}
}