:root {
	--uk-header-ink: #171c1d;
	--uk-header-accent: #bfcd37;
	--uk-header-pad: clamp(24px, 5vw, 78px);
	--uk-header-height: 112px;
}

/* SWELL標準ヘッダーとスマホメニューを非表示 */
#header.l-header,
#fix_header,
#sp_menu {
	display: none !important;
}

/* 独自ヘッダー */
.uk-header {
	position: fixed;
	z-index: 1001;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--uk-header-height);
	color: #fff;
	background: var(--uk-header-ink);
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	transition:
		height 0.35s ease,
		background-color 0.35s ease,
		backdrop-filter 0.35s ease;
}

/* トップページでは背景を透明にする */
.uk-header.is-front:not(.is-scrolled):not(.is-menu-open) {
	background: transparent;
}

/* スクロール後 */
.uk-header.is-scrolled,
.uk-header.is-menu-open {
	height: 86px;
	background: rgba(23, 28, 29, 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* ログイン中の管理バー */
.uk-header.has-admin-bar {
	top: 32px;
}

.uk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 0 var(--uk-header-pad);
}

/* ロゴ */
.uk-header__logo {
	flex: 0 0 auto;
	width: 285px;
	height: 82px;
}

.uk-header__logo > a {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	color: #fff;
	text-decoration: none;
}

.uk-header__logo img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-height: 82px;
	object-fit: contain;
	object-position: left center;
	filter: brightness(0) invert(1);
}

/* SWELLが透過用と通常用のロゴを2枚出す場合 */
.uk-header__logo img.-common {
	display: none !important;
}

.uk-header__site-name {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

/* PCメニュー */
.uk-header__nav {
	display: block;
	height: 100%;
	margin-left: auto;
}

.uk-gnav {
	display: flex !important;
	align-items: center;
	gap: clamp(15px, 2vw, 34px);
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.uk-gnav > li {
	display: flex;
	align-items: center;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.uk-gnav > li > a {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.055em;
	text-decoration: none !important;
	white-space: nowrap;
}

.uk-gnav > li:not(.menu-contact) > a::after {
	position: absolute;
	bottom: 29px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--uk-header-accent);
	content: "";
	transition: width 0.25s ease;
}

.uk-gnav > li:not(.menu-contact) > a:hover::after,
.uk-gnav > .current-menu-item:not(.menu-contact) > a::after {
	width: 100%;
}

/* お問い合わせ */
.uk-gnav > .menu-contact > a {
	height: auto;
	padding: 12px 19px;
	color: var(--uk-header-ink) !important;
	background: var(--uk-header-accent);
}

/* ハンバーガーボタン */
.uk-menu-button {
	display: none;
}

/* スマホメニュー */
.uk-mobile-menu {
	position: fixed;
	z-index: 1000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 110px 24px 50px;
	background: var(--uk-header-ink);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.uk-mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.uk-mobile-menu__nav {
	width: min(100%, 360px);
}

.uk-mobile-menu__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.uk-mobile-menu__list > li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.uk-mobile-menu__list > li > a {
	display: block;
	padding: 14px 20px;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
}

.uk-mobile-menu__list > .menu-contact {
	margin-top: 16px !important;
}

.uk-mobile-menu__list > .menu-contact > a {
	color: var(--uk-header-ink) !important;
	background: var(--uk-header-accent);
}

/* メニュー表示中のスクロールを止める */
html.uk-menu-open {
	overflow: hidden;
}

/* 下層ページは固定ヘッダー分を空ける */
.uk-header:not(.is-front) ~ #body_wrap {
	padding-top: 86px;
}

/* タブレット横 */
@media (min-width: 960px) and (max-width: 1180px) {
	:root {
		--uk-header-height: 88px;
		--uk-header-pad: clamp(28px, 3vw, 40px);
	}

	.uk-header__logo {
		width: 205px;
		height: 66px;
	}

	.uk-gnav {
		gap: clamp(10px, 1.35vw, 18px);
	}

	.uk-gnav > li > a {
		font-size: 12px;
	}

	.uk-gnav > .menu-contact > a {
		padding: 11px 15px;
	}
}

/* スマホ・タブレット縦 */
@media (max-width: 959px) {
	:root {
		--uk-header-height: 82px;
		--uk-header-pad: 22px;
	}

	.uk-header,
	.uk-header.is-scrolled,
	.uk-header.is-menu-open {
		height: var(--uk-header-height);
	}

	.uk-header.has-admin-bar {
		top: 46px;
	}

	.uk-header__logo {
		width: min(58vw, 225px);
		height: 66px;
	}

	.uk-header__nav {
		display: none;
	}

	.uk-menu-button {
		position: relative;
		display: block;
		width: 46px;
		height: 46px;
		padding: 0;
		border: 0;
		background: var(--uk-header-accent);
		color: var(--uk-header-ink);
		cursor: pointer;
	}

	.uk-menu-button span {
		position: absolute;
		left: 11px;
		display: block;
		width: 24px;
		height: 1px;
		background: currentColor;
		transition:
			top 0.25s ease,
			transform 0.25s ease,
			opacity 0.2s ease;
	}

	.uk-menu-button span:nth-child(1) {
		top: 11px;
	}

	.uk-menu-button span:nth-child(2) {
		top: 18px;
	}

	.uk-menu-button span:nth-child(3) {
		top: 25px;
	}

	.uk-menu-button b {
		position: absolute;
		right: 0;
		bottom: 4px;
		left: 0;
		font: 700 6px/1 Arial, sans-serif;
		letter-spacing: 0.04em;
		text-align: center;
	}

	.uk-header.is-menu-open .uk-menu-button span:nth-child(1) {
		top: 17px;
		transform: rotate(45deg);
	}

	.uk-header.is-menu-open .uk-menu-button span:nth-child(2) {
		opacity: 0;
	}

	.uk-header.is-menu-open .uk-menu-button span:nth-child(3) {
		top: 17px;
		transform: rotate(-45deg);
	}
}