/* ------------------------------------------------------------
 * ヘッダー
 * ------------------------------------------------------------ */

.site-header {
	position: fixed;
	top: 20px;
	left: 50%;
	z-index: 100;
	transform: translateX(-50%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 68px;
	padding: 0 15px 0 30px;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(4px) saturate(180%) contrast(105%);
	-webkit-backdrop-filter: blur(4px) saturate(180%) contrast(105%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
	border-radius: 9999px;
}

/* ロゴ */
.site-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.site-header__logo .custom-logo {
	display: block;
	width: auto;
	height: 40px;
	max-height: 40px;
}

.site-header__logo-text {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: var(--color-text);
	letter-spacing: 0.04em;
	text-decoration: none;
}

/* 右側ラッパー */
.site-header__right {
	display: flex;
	align-items: center;
	gap: 40px;
}

/* メインメニュー */
.site-header__nav {
	display: flex;
	align-items: center;
}

.site-header__menu {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__menu a {
	display: inline-block;
	padding: 8px 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--color-text);
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
	opacity: 0.6;
}

/* CTA / ハンバーガー ラッパー */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* CTA */
.site-header__cta {
	flex-shrink: 0;
}

.site-header__cta-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ハンバーガーボタン */
.site-header__hamburger {
	display: none;
	position: relative;
	width: 50px;
	height: 50px;
	padding: 0;
	background: linear-gradient(135deg, #009cd1 0%, #80c9d3 100%);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.site-header__hamburger:hover,
.site-header__hamburger:focus-visible {
	opacity: 0.85;
}

.site-header__hamburger-bar {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 1px;
	background: var(--color-white);
	transform: translateX(-50%);
}

.site-header__hamburger-bar:nth-child(1) {
	top: 18px;
}

.site-header__hamburger-bar:nth-child(2) {
	top: 25px;
}

.site-header__hamburger-bar:nth-child(3) {
	top: 32px;
}

/* ------------------------------------------------------------
 * ドロワーメニュー
 * ------------------------------------------------------------ */

.site-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.site-drawer.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.site-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 156, 209, 0.8);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.site-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: 390px;
	max-width: 100%;
	height: 100%;
	padding: 100px 40px 40px;
	background: linear-gradient(135deg, #009cd1 0%, #80c9d3 100%);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
	overflow-y: auto;
}

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

.site-drawer__close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.site-drawer__close-bar {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 1px;
	background: var(--color-white);
}

.site-drawer__close-bar:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

.site-drawer__close-bar:nth-child(2) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.site-drawer__body {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin: auto 0;
}

.site-drawer__menu {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-drawer__menu li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.site-drawer__menu a {
	display: block;
	padding: 32px 0;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
	color: var(--color-white);
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.site-drawer__menu a:hover,
.site-drawer__menu a:focus-visible {
	opacity: 0.75;
}

.site-drawer__cta {
	display: flex;
	justify-content: center;
}

.site-drawer__cta-menu {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-drawer__cta-menu li {
	display: flex;
	justify-content: center;
}

.site-drawer__cta-menu .btn {
	width: 100%;
}


/* ------------------------------------------------------------
 * レスポンシブ
 * ------------------------------------------------------------ */

/* タブレット以下: ハンバーガー表示 */
@media (max-width: 1024px) {
	.site-header__nav {
		display: none;
	}

	.site-header__hamburger {
		display: block;
	}
}

/* SP */
@media (max-width: 767px) {
	.site-drawer__panel {
		width: 100%;
		padding: 100px 24px 40px;
	}
}

/* SP: ヘッダー内のCTAのみ非表示（はみ出し回避）。ドロワー内のCTAはそのまま表示 */
@media (max-width: 767px) {
	.site-header__cta {
		display: none;
	}
}
