.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-height);
	background: var(--color-bg);
	border-bottom: 1px solid rgb(25 30 43 / 8%);
}

body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 28px;
	height: 100%;
	width: min(100% - 48px, var(--inner-width));
	margin-inline: auto;
}

.site-header__logo {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-header__logo img {
	display: block;
	width: auto;
	height: 44px;
	max-width: min(240px, 42vw);
}

.site-nav {
	justify-self: center;
	min-width: 0;
}

.site-nav__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 4px 2px;
}

.site-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 12px;
	color: var(--color-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.25s ease;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 6px;
	height: 1px;
	background: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.28s var(--ease);
	pointer-events: none;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.current-menu-item > a,
.current_page_item > a,
.home .site-nav__list > li:first-child > a {
	color: var(--color-primary);
}

.site-nav__list a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.current-menu-item > a::after,
.current_page_item > a::after,
.home .site-nav__list > li:first-child > a::after {
	transform: scaleX(1);
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 10px;
	flex-shrink: 0;
}

.site-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	white-space: nowrap;
	line-height: 1;
	border-radius: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-cta__icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.site-header__cta--recruit {
	color: #fff;
	background: var(--color-recruit-cta);
	border: 1px solid var(--color-recruit-cta);
}

.site-header__cta--recruit:hover,
.site-header__cta--recruit:focus-visible {
	background: var(--color-recruit-cta-hover);
	border-color: var(--color-recruit-cta-hover);
	color: #fff;
}

.site-header__cta--contact {
	color: #fff;
	background: var(--color-primary);
	border: 1px solid var(--color-primary);
}

.site-header__cta--contact:hover,
.site-header__cta--contact:focus-visible {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
}

.site-header__action--sns {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	transition: opacity 0.2s ease;
}

.site-header__action--sns img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-header__action--sns:hover,
.site-header__action--sns:focus-visible {
	opacity: 0.72;
}

.menu-toggle {
	display: none;
}

.site-drawer {
	display: none;
}

.nav-overlay {
	display: none;
}

.sr-only {
	position: absolute;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}

@media (max-width: 1080px) {
	.site-header__inner {
		width: min(100% - 32px, var(--inner-width));
		column-gap: 16px;
	}

	.site-nav__list a {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 12px;
	}

	.site-header__logo img {
		height: 38px;
		max-width: min(200px, 34vw);
	}

	.site-header__cta {
		padding: 8px 12px;
		font-size: 11px;
	}

	.site-header__actions {
		gap: 6px 8px;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		padding-left: 12px;
		padding-right: calc(var(--header-height) + 4px);
		column-gap: 8px;
	}

	.site-header__logo img {
		height: 36px;
		max-width: min(200px, 58vw);
	}

	.site-nav,
	.site-header__actions {
		display: none;
	}

	.menu-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		position: fixed;
		z-index: 130;
		top: 0;
		right: 0;
		box-sizing: border-box;
		width: var(--header-height);
		height: var(--header-height);
		padding: 0;
		border: 0;
		outline: 0;
		background: var(--color-primary);
		color: #fff;
		transform: translate3d(0, 0, 0);
		transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
	}

	.menu-toggle__icon {
		position: relative;
		display: block;
		width: 30px;
		height: 18px;
		margin: 0;
		background-color: transparent;
		background-image: linear-gradient(#fff, #fff);
		background-repeat: no-repeat;
		background-position: center;
		background-size: 100% 2px;
		transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
	}

	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 2px;
		background: #fff;
		transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
	}

	.menu-toggle__icon::after {
		top: auto;
		bottom: 0;
	}

	.menu-toggle__label {
		display: block;
		margin: 0;
		color: #fff;
		font-family: var(--font-en);
		font-size: 16px;
		font-weight: 400;
		letter-spacing: 0.2em;
		line-height: 1;
		text-align: center;
	}

	body.nav-open .menu-toggle__icon {
		background-image: none;
	}

	body.nav-open .menu-toggle__icon::before,
	body.nav-open .menu-toggle__icon::after {
		top: 8px;
		bottom: auto;
	}

	body.nav-open .menu-toggle__icon::before {
		transform: rotate(45deg);
	}

	body.nav-open .menu-toggle__icon::after {
		transform: rotate(-45deg);
	}

	.site-drawer {
		display: block;
		position: fixed;
		z-index: 120;
		top: 0;
		right: -80%;
		width: 80%;
		height: 100%;
		overflow: hidden;
		color: #000;
		background: #fff;
		transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
	}

	body.nav-open .site-drawer {
		right: 0;
	}

	.site-drawer__inner {
		height: 100%;
		padding: 20px calc(var(--header-height) + 8px) 20px 40px;
		overflow-y: auto;
	}

	.site-drawer__heading {
		position: relative;
		margin: 0;
		color: var(--color-primary);
		font-family: var(--font-en);
		font-size: 22px;
		font-weight: 400;
		line-height: 1.2;
	}

	.site-drawer__heading::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: -40px;
		width: 30px;
		height: 1px;
		margin: auto;
		background: #191e2b;
	}

	.site-drawer__list {
		margin: 0 0 20px;
		padding: 0;
	}

	.site-drawer__list li {
		display: block;
		margin: 0;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.6em;
		text-align: left;
	}

	.site-drawer__list a {
		display: block;
		padding: 3px 0;
		color: #000;
	}

	.site-drawer__ctas {
		display: grid;
		gap: 10px;
		margin: 8px 0 24px;
	}

	.site-drawer__cta {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 14px 16px;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0.1em;
		line-height: 1;
		text-align: center;
	}

	.site-drawer__cta .site-cta__icon {
		width: 20px;
		height: 20px;
	}

	.site-drawer__cta--recruit {
		color: #fff;
		background: var(--color-recruit-cta);
		border: 1px solid var(--color-recruit-cta);
	}

	.site-drawer__cta--recruit:hover,
	.site-drawer__cta--recruit:focus-visible {
		background: var(--color-recruit-cta-hover);
		border-color: var(--color-recruit-cta-hover);
		color: #fff;
	}

	.site-drawer__cta--contact {
		color: #fff;
		background: var(--color-primary);
		border: 1px solid var(--color-primary);
	}

	.site-drawer__sns {
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 0 0 24px;
	}

	.site-drawer__sns-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 8px;
		overflow: hidden;
	}

	.site-drawer__sns-link img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.site-drawer__contact {
		padding: 15px;
		background: var(--color-primary);
		color: #fff;
		text-align: center;
		container-type: inline-size;
		container-name: drawer-contact;
	}

	.site-drawer__tel {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		width: 100%;
		max-width: 100%;
		color: #fff;
		font-family: var(--font-en);
		/* ドロワー幅に収まるよう縮小（はみ出し防止） */
		font-size: clamp(16px, 10cqi, 28px);
		line-height: 1;
		text-align: center;
	}

	.site-drawer__tel span {
		display: block;
		max-width: 100%;
		overflow: hidden;
		white-space: nowrap;
	}

	.site-drawer__tel .btn-tel__icon {
		width: 30px;
		height: 30px;
		color: #fff;
	}

	.site-drawer__contact p {
		margin: 8px 0 0;
		font-size: 12px;
		line-height: 1.8em;
		text-align: center;
	}

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgb(60 51 127 / 50%);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	body.nav-open .nav-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	body.nav-open {
		overflow: hidden;
	}

	body.admin-bar .menu-toggle,
	body.admin-bar .site-drawer {
		top: var(--wp-admin--admin-bar--height, 46px);
	}

	body.admin-bar .site-drawer {
		height: calc(100% - var(--wp-admin--admin-bar--height, 46px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-nav__list a::after,
	.menu-toggle,
	.menu-toggle__icon,
	.menu-toggle__icon::before,
	.menu-toggle__icon::after,
	.site-drawer,
	.nav-overlay {
		transition: none;
	}
}
