#site_header {
	width: 1200px;
	background: var(--color_bg_white);
	padding: 10px;
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translate(-50%, 0);
	border-radius: 100px;
	z-index: 1051;
}
#site_header .header_i {
	align-items: center;
	justify-content: space-between;
}
#site_header .site_logo {
	padding: 5px 10px;
}
#site_header .h_r {
	align-items: center;
	gap: 10px;
}
#site_header .h_r .h_nav .flex {
	gap: 15px;
}
#site_header .h_r .h_nav li a {
	font-weight: 600;
	font-size: 1.4rem;
}
#site_header .h_r .btn_w {
	margin-left: 10px;
	gap: 10px;
}
#site_header .h_r .btn_w .btn {
	width: 220px;
}
.hamburger {
	display: none;
}

/* ========== メガドロップダウン（PC） ========== */
#site_header .h_nav li.has_mega {
	position: static;
}
#site_header .mega_menu {
	display: none;
	position: fixed;
	top: 70px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	background: var(--color_bg_white);
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
	z-index: 999;
	padding: 30px;
}
#site_header .h_nav li.has_mega.is_mega_open .mega_menu {
	display: block;
	animation: megaFadeIn 0.2s ease;
}
@keyframes megaFadeIn {
	from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mega_list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
.mega_list li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	font-weight: normal !important;
	font-size: 1.4rem !important;
	transition: background 0.2s;
	text-decoration: none;
}
.mega_list li a:hover {
	background: #f5f5f5;
}
.mega_icon {
	font-size: 2rem;
	flex-shrink: 0;
}
.mega_text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mega_text strong {
	font-size: 1.4rem;
	font-weight: 600;
}
.mega_text small {
	font-size: 1.1rem;
	color: #888;
}
.mega_cta {
	text-align: center;
	padding-top: 16px;
	border-top: 1px solid #eee;
}
.mega_cta .btn {
	width: 240px;
}

/* ========== レスポンシブ（1024px以下） ========== */
@media screen and (max-width: 1024px) {

	#site_header {
		width: calc(100% - 24px);
		border-radius: 50px;
		padding: 8px 15px;
		top: 20px;
	}
	.hamburger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		width: 40px;
		height: 40px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 5px;
		z-index: 1100;
		flex-shrink: 0;
	}
	.hamburger span {
		display: block;
		width: 100%;
		height: 2px;
		background: var(--color_text, #333);
		border-radius: 2px;
		transition: transform 0.3s, opacity 0.3s;
	}
	.hamburger.is_open span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.hamburger.is_open span:nth-child(2) {
		opacity: 0;
	}
	.hamburger.is_open span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* ドロワー */
	#site_header .h_r {
		position: fixed;
		top: 0;
		right: 0;
		width: 300px;
		height: 100dvh;
		background: var(--color_bg_white);
		flex-direction: column;
		align-items: flex-start;
		padding: 80px 24px 40px;
		gap: 24px;
		transform: translateX(110%);
		transition: transform 0.35s ease;
		overflow-y: auto;
		z-index: 1050;
		border-radius: 0;
		box-sizing: border-box;
	}
	#site_header .h_r.is_open {
		transform: translateX(10%);
        top: -10px;
	}
	#drawer_overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 1051;
	}
	#drawer_overlay.is_open {
		display: block;
	}
	#site_header .h_nav {
		width: 100%;
	}
	#site_header .h_r .h_nav .flex {
		flex-direction: column;
		gap: 0;
	}
	#site_header .h_r .h_nav li {
		border-bottom: 1px solid #eee;
	}
	#site_header .h_r .h_nav li a {
		display: block;
		padding: 14px 4px;
	}
	#site_header .h_nav li.has_mega > a {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	#site_header .h_nav li.has_mega > a::after {
		content: '';
		display: inline-block;
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.3s;
		margin-right: 6px;
	}
	#site_header .h_nav li.has_mega.is_open > a::after {
		transform: rotate(-135deg);
	}
	#site_header .mega_menu {
		display: block;
		position: static;
		transform: none;
		width: 100%;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
		background: transparent;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
		animation: none;
	}
	#site_header .h_nav li.has_mega.is_open .mega_menu {
		max-height: 600px;
	}

	/* SP：グリッド→縦並び */
	.mega_list {
		grid-template-columns: 1fr;
		gap: 0;
		margin-bottom: 10px;
	}
	.mega_list li {
		border-bottom: none;
	}
	.mega_list li a {
		padding: 10px 8px;
		font-size: 1.3rem !important;
	}
	.mega_cta {
		padding: 12px 0;
	}
	.mega_cta .btn {
		width: 100%;
	}
	#site_header .h_r .btn_w {
		flex-direction: column;
		width: 100%;
		margin-left: 0;
		gap: 10px;
	}
	#site_header .h_r .btn_w .btn {
		width: 100%;
	}
}