/*====================
ヘッダー（PC基準・1280px〜）
css/common/header.css
ブレイクポイント: variables.css 参照
※ ドロワー全幅は max-width 900px（挙動維持）
====================*/
#site-header.site-header,
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	max-width: none;
	height: 100px;
	margin: 0;
	padding: 0;
	padding-top: 0 !important;
	background: #fff;
	isolation: isolate;
	transition:
		box-shadow 0.35s ease,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__sticky-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	margin: 0;
	pointer-events: none;
	visibility: hidden;
}

/* 管理バー：#site-header に padding-top は付けない（WP 標準の html margin で調整） */
body.admin-bar #site-header.site-header,
body.admin-bar .site-header {
	padding-top: 0 !important;
	top: 0;
}

body.admin-bar .site-header__inner {
	height: 100px;
}

/* wp_body_open / プラグインが挿入する空 div による押し下げを防ぐ */
body > div[aria-hidden="true"]:not([class]):not([id]),
#wpadminbar + div[aria-hidden="true"]:not([class]):not([id]),
#wpadminbar + div[aria-hidden="true"]:empty {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

@media screen and (max-width: 1279px) {
	body.admin-bar #site-header.site-header,
	body.admin-bar .site-header {
		height: 68px;
	}

	body.admin-bar .site-header__inner {
		height: 68px;
	}
}

.site-header.is-stuck {
	box-shadow:
		0 1px 0 rgba(0, 0, 0, 0.08),
		0 4px 20px rgba(0, 41, 125, 0.14);
}

.site-header.is-stuck::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	pointer-events: none;
}

@media screen and (max-width: 1279px) {
	#site-header.site-header,
	.site-header {
		height: 68px;
		z-index: 1003;
	}
}

@media screen and (max-width: 1279px) {
	body.is-drawer-open {
		overflow: hidden;
		overscroll-behavior: none;
		touch-action: none;
	}

	html:has(body.is-drawer-open) {
		overflow: hidden;
		overscroll-behavior: none;
	}
}

.site-header__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 0 0 0 40px;
	box-sizing: border-box;
}
@media screen and (max-width: 1279px) {
	.site-header__inner {
		position: relative;
		z-index: 1003;
		align-items: center;
		height: 68px;
		min-height: 68px;
		padding: 0 16px;
		box-sizing: border-box;
	}
}

.site-header__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	line-height: 0;
}

.site-header__logo a {
	display: block;
	line-height: 0;
}

.site-header__logo-img {
	display: block;
	width: 294px;
	height: 46px;
	object-fit: contain;
}

.site-header__logo-img--drawer {
	display: none;
}

@media screen and (max-width: 1279px) {
	.site-header__logo-img {
		width: 274px;
		max-width: calc(100vw - 72px);
		height: 50px;
		max-height: 50px;
		object-fit: contain;
	}

	.is-drawer-open .site-header__inner {
		background: transparent;
	}

	.is-drawer-open .site-header__logo-img--default {
		display: none;
	}

	.is-drawer-open .site-header__logo-img--drawer {
		display: block;
	}
}


/*====================
ハンバーガーボタン
====================*/
.site-header__burger {
	display: none;
	position: relative;
	z-index: 1002;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}
@media screen and (max-width: 1279px) {
	.site-header__burger {
		display: block;
	}
}
@media screen and (max-width: 600px) {
	.site-header__burger {
		width: 44px;
		height: 44px;
	}
}

@media screen and (max-width: 1279px) {
	.is-drawer-open .site-header__burger {
		position: fixed;
		top: 12px;
		right: 16px;
		z-index: 1003;
	}
}
@media screen and (max-width: 600px) {
	.is-drawer-open .site-header__burger {
		top: 10px;
		right: 12px;
	}
}

.site-header__burger-box {
	display: block;
	position: relative;
	width: 28px;
	height: 20px;
	margin: 0 auto;
}
@media screen and (max-width: 600px) {
	.site-header__burger-box {
		width: 24px;
		height: 18px;
	}
}
@media screen and (max-width: 600px) {
	.is-drawer-open .site-header__burger-box {
		width: 24px;
		height: 18px;
	}
}

.site-header__burger-line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--color-c-color);
	border-radius: 1px;
	transform-origin: left center;
	transition:
		transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
		width 0.4s cubic-bezier(0.65, 0, 0.35, 1),
		opacity 0.3s ease,
		top 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
@media screen and (max-width: 600px) {
	.site-header__burger-line {
		height: 2px;
	}
}

.site-header__burger-line--top {
	top: 0;
}
@media screen and (max-width: 1279px) {
	.is-drawer-open .site-header__burger-line {
		background: #fff;
	}
	.is-drawer-open .site-header__burger-line--top {
		top: 50%;
		width: 100%;
		transform: translateY(-50%) rotate(38deg);
		transform-origin: center center;
		transition-delay: 0.08s;
	}
}

.site-header__burger-line--mid {
	top: 50%;
	transform: translateY(-50%);
}
@media screen and (max-width: 1279px) {
	.is-drawer-open .site-header__burger-line--mid {
		width: 0;
		opacity: 0;
		transform: translateY(-50%) translateX(-4px);
		transition-delay: 0s;
	}
}

.site-header__burger-line--bot {
	top: auto;
	bottom: 0;
	transform-origin: left center;
}
@media screen and (max-width: 1279px) {
	.is-drawer-open .site-header__burger-line--bot {
		bottom: auto;
		top: 50%;
		width: 100%;
		transform: translateY(-50%) rotate(-38deg);
		transform-origin: center center;
		transition-delay: 0.16s;
	}
}


/*====================
ドロワー
====================*/
.site-drawer {
	visibility: visible;
	pointer-events: auto;
	position: static;
	flex: 1 1 auto;
	display: flex;
	align-items: stretch;
	min-width: 0;
	height: 100%;
}
@media screen and (max-width: 1279px) {
	.site-drawer {
		position: fixed;
		inset: 0;
		z-index: 1000;
		visibility: hidden;
		pointer-events: none;
		display: block;
		flex: none;
		width: 100%;
		height: 100%;
	}
}

.is-drawer-open .site-drawer {
	visibility: visible;
	pointer-events: auto;
}

.site-drawer__overlay {
	display: none;
}
@media screen and (max-width: 1279px) {
	.site-drawer__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1000;
		border: none;
		padding: 0;
		background: rgba(10, 20, 45, 0.45);
		opacity: 0;
		pointer-events: none;
		cursor: pointer;
		transition: opacity 0.4s ease;
	}
}

.is-drawer-open .site-drawer__overlay {
	opacity: 1;
	pointer-events: auto;
}

.site-drawer__panel {
	position: static;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	transform: none;
}
@media screen and (max-width: 1279px) {
	.site-drawer__panel {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 1001;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		box-sizing: border-box;
		width: min(100%, 400px);
		height: 100dvh;
		padding: 88px 32px 48px;
		background: var(--color-c-color);
		box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
		overflow: hidden;
		transform: translateX(100%);
		transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
	}
}
/* ドロワー全幅（900px以下・従来どおり） */
@media screen and (max-width: 900px) {
	.site-drawer__panel {
		width: 100%;
		padding: 80px 24px 40px;
	}
}

.is-drawer-open .site-drawer__panel {
	transform: translateX(0);
}

.site-drawer__panel::before {
	display: none;
}
@media screen and (max-width: 1279px) {
	.site-drawer__panel::before {
		display: block;
		content: "";
		position: absolute;
		inset: 0;
		background-image:
			linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
			linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
		background-size: 24px 24px;
		pointer-events: none;
	}
}


/*====================
ナビ
====================*/
.site-header__nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	min-width: 0;
	height: 100%;
}
@media screen and (max-width: 1279px) {
	.site-header__nav {
		display: block;
		flex: 0 1 auto;
		min-height: 0;
		max-height: 100%;
		height: auto;
		overflow-x: hidden;
		overflow-y: auto;
		padding-right: 8px;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
	}

	.site-header__nav::-webkit-scrollbar {
		width: 4px;
	}

	.site-header__nav::-webkit-scrollbar-track {
		background: transparent;
	}

	.site-header__nav::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.22);
		border-radius: 999px;
	}

	.site-header__nav::-webkit-scrollbar-thumb:hover {
		background: rgba(255, 255, 255, 0.32);
	}
}

.site-header__list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0 40px 0 0;
	list-style: none;
}
@media screen and (max-width: 1279px) {
	.site-header__list {
		display: block;
		padding: 0;
	}
}

.site-header__item {
	border-bottom: none;
	opacity: 1;
	transform: none;
}
@media screen and (max-width: 1279px) {
	.site-header__item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}
}

@media screen and (max-width: 1279px) {
	.site-drawer .site-header__item {
		opacity: 0;
		transform: translateY(16px);
		transition:
			opacity 0.4s ease,
			transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
	}
}

.is-drawer-open .site-drawer .site-header__item {
	opacity: 1;
	transform: translateY(0);
}

.is-drawer-open .site-drawer .site-header__item:nth-child(1) {
	transition-delay: 0.12s;
}

.is-drawer-open .site-drawer .site-header__item:nth-child(2) {
	transition-delay: 0.18s;
}

.is-drawer-open .site-drawer .site-header__item:nth-child(3) {
	transition-delay: 0.24s;
}

.is-drawer-open .site-drawer .site-header__item:nth-child(4) {
	transition-delay: 0.3s;
}

.is-drawer-open .site-drawer .site-header__item:nth-child(5) {
	transition-delay: 0.36s;
}

.site-header__item__link {
	position: relative;
	display: inline-block;
	padding: 0;
	color: var(--color-main);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
}
.site-header__item__link::before,
.site-header__item__link::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-main);
	transform: scaleX(0);
	transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.site-header__item__link::before {
	bottom: -8px;
	transform-origin: right center;
}
.site-header__item__link::after {
	bottom: -4px;
	transform-origin: left center;
}
.site-header__item__link:hover::before,
.site-header__item__link:hover::after {
	transform: scaleX(1);
}
@media screen and (max-width: 1279px) {
	.site-header__item__link {
		display: block;
		padding: 20px 0;
		color: #fff;
		font-size: 16px;
		text-align: center;
	}
	.site-header__item__link::before,
	.site-header__item__link::after {
		display: none;
	}
}

.site-header__imp-list {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	gap: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 1;
	transform: none;
}
@media screen and (max-width: 1279px) {
	.site-header__imp-list {
		display: block;
		flex: none;
		height: auto;
		margin: 40px 0 0;
	}
}

@media screen and (max-width: 1279px) {
	.site-drawer .site-header__imp-list {
		opacity: 0;
		transform: translateY(20px);
		transition:
			opacity 0.4s ease 0.35s,
			transform 0.45s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
	}
}

.is-drawer-open .site-drawer .site-header__imp-list {
	opacity: 1;
	transform: translateY(0);
}

.site-header__imp-item {
	display: flex;
	height: 100%;
}
@media screen and (max-width: 1279px) {
	.site-header__imp-item {
		display: block;
		height: auto;
	}
}

.site-header__imp-item + .site-header__imp-item {
	margin-top: 0;
}
@media screen and (max-width: 1279px) {
	.site-header__imp-item + .site-header__imp-item {
		margin-top: 16px;
	}
}

.site-header__imp-item__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 173px;
	height: 100%;
	padding: 0 40px;
	overflow: hidden;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.25s ease,
		color 0.25s ease;
}
.site-header__imp-item__link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 4px;
	transform: scaleX(0);
	transform-origin: center center;
	transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.site-header__imp-item__link:hover::after {
	transform: scaleX(1);
}
.site-header__imp-item__link:active {
	opacity: 0.92;
}
@media screen and (max-width: 1279px) {
	.site-header__imp-item__link {
		display: block;
		min-width: 0;
		height: auto;
		padding: 18px 24px;
		font-size: 16px;
	}
	.site-header__imp-item__link::after {
		display: none;
	}

	.site-header__imp-item__link--recruit {
		display: block;
		background-color: #e2f9ff;
		color: var(--color-c-color);
	}

	.site-header__imp-item__link--recruit:hover {
		background-color: #cceffb;
	}
}

.site-header__imp-item__link--recruit {
	background: #e2f9ff;
	color: var(--color-main);
}
.site-header__imp-item__link--recruit::after {
	background: rgba(51, 51, 51, 0.25);
}
.site-header__imp-item__link--recruit:hover {
	background: #cceffb;
}

.site-header__imp-item__link--contact {
	display: inline-flex;
	background: var(--color-c-color);
	color: #fff;
}
.site-header__imp-item__link--contact::after {
	background: rgba(255, 255, 255, 0.35);
}
.site-header__imp-item__link--contact:hover {
	background: #243a6e;
}
@media screen and (max-width: 1279px) {
	.site-header__imp-item__link--contact {
		display: block;
		background: #fff;
		color: var(--color-c-color);
	}
	.site-header__imp-item__link--contact:hover {
		background: #fff;
	}
}

/*====================
テーマ標準ブレイクポイント（追補・挙動は既存を維持）
====================*/

/* 1280px〜1400px — ナビがロゴに被らないよう余白を調整 */
@media screen and (max-width: 1400px) {
	.site-header__inner {
		padding-left: 28px;
	}

	.site-header__logo {
		flex-shrink: 0;
		margin-right: 8px;
	}

	.site-header__logo-img {
		width: 268px;
		height: 42px;
	}

	.site-header__nav {
		gap: 0;
		min-width: 0;
	}

	.site-header__list {
		gap: 18px;
		padding-right: 20px;
	}

	.site-header__item__link {
		font-size: 16px;
	}

	.site-header__imp-item__link {
		min-width: 136px;
		padding-inline: 26px;
		font-size: 16px;
	}
}

/* 1280px〜1365px — さらに詰める（variables: max-1365 帯） */
@media screen and (max-width: 1365px) {
	.site-header__inner {
		padding-left: 24px;
	}

	.site-header__logo-img {
		width: 254px;
		height: 40px;
	}

	.site-header__list {
		gap: 14px;
		padding-right: 14px;
	}

	.site-header__item__link {
		font-size: 15px;
	}

	.site-header__imp-item__link {
		min-width: 124px;
		padding-inline: 20px;
		font-size: 15px;
	}
}

/* max-1079 */
@media screen and (max-width: 1079px) {
	.site-header__inner {
		padding-inline: 20px;
	}
}

/* max-819 */
@media screen and (max-width: 819px) {
	.site-drawer__panel {
		padding: 76px 20px 36px;
	}
}

/* max-467 */
@media screen and (max-width: 467px) {
	.site-header__logo-img {
		max-width: calc(100vw - 68px);
	}
}

/* max-374 */
@media screen and (max-width: 374px) {
	.site-header__item__link {
		padding: 18px 0;
		font-size: 15px;
	}
}

/* max-360 */
@media screen and (max-width: 360px) {
	.site-header__inner {
		padding-inline: 12px;
	}

	.is-drawer-open .site-header__burger {
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header {
		transition: box-shadow 0.2s ease;
	}

	.site-header.is-stuck::after {
		animation: none;
	}

	.site-drawer .site-header__item,
	.site-drawer .site-header__imp-list {
		transition: none;
	}
}
