/* ヘッダーナビゲーション */
.header-nav {
	position: fixed;
	width: 100%;
	z-index: 999;
}

.header-nav__container {
	display: flex;
	align-items: center;
	height: 80px;
	margin: 8px 8px 0;
	padding: 0 12px 0 24px;
	background: #ffffff;
	border-radius: 100px;
	box-shadow: 4px 4px 4px 0px rgba(0, 161, 94, 0.1);
	position: relative;
	z-index: 1001;
}

.header-nav__container.is-menu-open {
	box-shadow: none;
}

/* ロゴセクション */
.header-nav__logo {
	display: flex;
	align-items: center;
	gap: 24px;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.header-nav__logo:hover {
	opacity: 0.7;
}

.header-nav__logo-image {
	width: 172px;
	height: 42px;
	object-fit: contain;
}

.header-nav__subtitle {
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-weight: bold;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #000000;
}

.header-nav__subtitle p {
	margin: 0;
}

/* メインナビゲーション */
.header-nav__menu {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 24px 0 auto;
	padding: 0;
	list-style: none;
}

.header-nav__menu-item {
	margin: 0;
}

.header-nav__menu-item a {
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-weight: bold;
	font-size: 0.875rem;
	color: #000000;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.header-nav__menu-item a:hover {
	opacity: 0.7;
}

/* CTAボタン */
.header-nav__cta {
	display: flex;
	height: 56px;
	border-radius: 28px;
	overflow: hidden;
}

.header-nav__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 142px;
	height: 100%;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-weight: bold;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.header-nav__btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
	z-index: -1;
}

.header-nav__btn:hover::before {
	transform: scaleX(1);
}

/* 資料請求ボタン */
.header-nav__btn--document {
	background: #000000;
	color: #ffffff;
}

.header-nav__btn--document::before {
	background: #4A4A4A;
}

/* お問い合わせボタン */
.header-nav__btn--contact {
	background: #E2FF29;
	color: #000000;
}

.header-nav__btn--contact::before {
	background: #C5E000;
}


/* ハンバーガーメニューボタン */
.header-nav__hamburger {
	display: none;
	position: fixed;
	right: 16px;
	width: 48px;
	height: 48px;
	background: #000000;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	z-index: 1001;
}

.header-nav__hamburger span {
	display: block;
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: #ffffff;
	transform: translateX(-50%);
	transition: all 0.3s ease;
}

.header-nav__hamburger span:nth-child(1) {
	top: 14px;
}

.header-nav__hamburger span:nth-child(2) {
	top: 23px;
}

.header-nav__hamburger span:nth-child(3) {
	top: 32px;
}

/* ハンバーガーボタンが開いている状態 */
.header-nav__hamburger.is-active span:nth-child(1) {
	top: 23px;
	transform: translateX(-50%) rotate(45deg);
}

.header-nav__hamburger.is-active span:nth-child(2) {
	opacity: 0;
}

.header-nav__hamburger.is-active span:nth-child(3) {
	top: 23px;
	transform: translateX(-50%) rotate(-45deg);
}

/* オーバーレイメニュー */
.header-nav__overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-nav__overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* オーバーレイメニューコンテナ */
.header-nav__overlay-container {
	background: #ffffff;
	width: calc(100% - 16px);
	height: 520px;
	margin: 8px 8px 0;
	border-radius: 35px;
	box-shadow: 4px 4px 4px 0px rgba(0, 161, 94, 0.1);
	display: flex;
	flex-direction: column;
	transform: scaleY(0);
	transform-origin: top;
	opacity: 0;
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.header-nav__overlay.is-active .header-nav__overlay-container {
	transform: scaleY(1);
	opacity: 1;
}

/* オーバーレイメニュー */
.header-nav__overlay-menu {
	padding: 104px 16px 0;
}

.header-nav__overlay-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.header-nav__overlay-menu-item {
	position: relative;
	margin-bottom: 3rem;
}

.header-nav__overlay-menu-item::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1.5rem;
	height: 1px;
	background: #B5B5B5;
}

.header-nav__overlay-menu-item:last-child {
	margin-bottom: 0;
}

.header-nav__overlay-menu-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-weight: bold;
	font-size: 1.125rem;
	line-height: 1;
	color: #000000;
	text-decoration: none;
}

.header-nav__overlay-menu-item a::before {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid #13A92F;
	border-bottom: 2px solid #13A92F;
	transform: rotate(-45deg);
	flex-shrink: 0;
}

/* オーバーレイCTAボタン */
.header-nav__overlay-cta {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0 16px 24px;
	margin-top: 4rem;
}

.header-nav__overlay-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-weight: bold;
	font-size: 0.75rem;
	line-height: 22px;
	text-decoration: none;
	border-radius: 100px;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.header-nav__overlay-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
	z-index: -1;
}

.header-nav__overlay-btn:active::before {
	transform: scaleX(1);
}

.header-nav__overlay-btn--document {
	background: #000000;
	color: #ffffff;
}

.header-nav__overlay-btn--document::before {
	background: #4A4A4A;
}

.header-nav__overlay-btn--contact {
	background: #E2FF29;
	color: #000000;
}

.header-nav__overlay-btn--contact::before {
	background: #C5E000;
}

@media screen and (max-width: 1150px) {
	.header-nav__container {
		height: 70px;
		box-sizing: border-box;
		padding: 16px;
	}

	/* PC版のメニューとCTAボタンを非表示 */
	.header-nav__menu,
	.header-nav__cta {
		display: none;
	}

	/* ハンバーガーボタンを表示 */
	.header-nav__hamburger {
		display: block;
	}

	.header-nav__logo {
		flex-direction: column;
		gap: 6px;
	}

	.header-nav__subtitle {
		order: -1;
		font-size: 0.5rem;
		line-height: 1.5;
		display: flex;
		gap: 0;
	}

	.header-nav__subtitle p {
		display: inline;
	}

	.header-nav__logo-image {
		width: 140px;
		height: 34px;
	}
}
