/* ====================================================
   Site Header — new hamburger-first layout
==================================================== */

/* Override z-index so header sits above fullmenu overlay */
header.header {
	z-index: 250;
	background-color: transparent;
}

header.header .header_inner {
	padding: 22px 36px;
}

/* Shrink logo to fit alongside hamburger */
header.header .header_inner #logo {
	width: auto;
}

header.header .header_inner #logo a img {
	width: 88px;
	height: auto;
	display: block;
}

/* Hide the old PC / SP nav blocks */
#pc_navi,
#sp_navi {
	display: none !important;
}

/* ── Hamburger button ───────────────────────── */

.hbg-btn {
	position: relative;
	width: 44px;
	height: 30px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	outline: none;
	color: #fff;
	flex-shrink: 0;
}

.hbg-btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, .6);
	outline-offset: 4px;
	border-radius: 2px;
}

.hbg-btn__bar {
	display: block;
	position: absolute;
	width: 32px;
	height: 1.5px;
	left: 50%;
	transform: translateX(-50%);
	background-color: currentColor;
	/* Fast close, slow staggered open — handled per state below */
	transition:
		top  0.28s ease,
		transform  0.28s ease 0s,
		opacity  0.18s ease 0s;
}

.hbg-btn__bar:nth-child(1) { top: 4px; }
.hbg-btn__bar:nth-child(2) { top: 14px; }
.hbg-btn__bar:nth-child(3) { top: 24px; }

/* X state (menu open) */
body.is-menu-open .hbg-btn__bar:nth-child(1) {
	top: 14px;
	transform: translateX(-50%) rotate(45deg);
	transition:
		top  0.28s ease,
		transform  0.32s ease 0.14s;
}

body.is-menu-open .hbg-btn__bar:nth-child(2) {
	opacity: 0;
}

body.is-menu-open .hbg-btn__bar:nth-child(3) {
	top: 14px;
	transform: translateX(-50%) rotate(-45deg);
	transition:
		top  0.28s ease,
		transform  0.32s ease 0.14s;
}

/* ====================================================
   Fullscreen Menu Overlay
==================================================== */

.fullmenu {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: #111;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: translateY(-100%);
	transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1);
	overflow: hidden;
}

body.is-menu-open .fullmenu {
	transform: translateY(0);
}

/* Scroll lock while menu is open */
body.is-menu-open {
	overflow: hidden;
}

/* ── Nav list ── */

.fullmenu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2.6vh, 34px);
}

/* ── Stagger: items appear on open, disappear instantly on close ── */

.fullmenu__item {
	opacity: 0;
	transform: translateY(22px);
	/* Quick out */
	transition:
		opacity  0.22s ease 0s,
		transform  0.22s ease 0s;
}

body.is-menu-open .fullmenu__item {
	opacity: 1;
	transform: translateY(0);
	/* Staggered in */
	transition:
		opacity  0.52s ease calc(var(--i) * 0.072s + 0.28s),
		transform  0.52s ease calc(var(--i) * 0.072s + 0.28s);
}

/* ── Nav link ── */

.fullmenu__link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: #fff;
}

.fullmenu__en {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: clamp(30px, 4vw, 58px);
	font-weight: 300;
	letter-spacing: .13em;
	line-height: 1;
	text-transform: uppercase;
	display: block;
	position: relative;
	transition: color 0.3s ease;
}

/* Orange underline on hover */
.fullmenu__en::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 1.5px;
	background: #ff8a00;
	transition: width 0.38s ease;
}

.fullmenu__link:hover .fullmenu__en {
	color: #ff8a00;
}

.fullmenu__link:hover .fullmenu__en::after {
	width: 100%;
}

.fullmenu__ja {
	display: block;
	font-size: clamp(11px, 0.82vw, 13px);
	letter-spacing: .26em;
	color: rgba(255, 255, 255, .42);
	line-height: 1;
}

/* ── SNS row — pinned to bottom ── */

.fullmenu__sns {
	position: absolute;
	bottom: clamp(28px, 5vh, 54px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 26px;
	align-items: center;
}

.fullmenu__sns-link {
	color: rgba(255, 255, 255, .44);
	display: flex;
	align-items: center;
	transition: color 0.3s ease, transform 0.3s ease;
}

.fullmenu__sns-link:hover {
	color: #fff;
	transform: scale(1.18);
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 767px) {
	header.header .header_inner {
		padding: 18px 20px;
	}

	header.header .header_inner #logo a img {
		width: 74px;
	}

	.hbg-btn {
		width: 40px;
		height: 27px;
	}

	.hbg-btn__bar:nth-child(1) { top: 3px; }
	.hbg-btn__bar:nth-child(2) { top: 12px; }
	.hbg-btn__bar:nth-child(3) { top: 21px; }

	body.is-menu-open .hbg-btn__bar:nth-child(1) { top: 12px; }
	body.is-menu-open .hbg-btn__bar:nth-child(3) { top: 12px; }

	.fullmenu__list {
		gap: clamp(16px, 3.2vh, 26px);
	}

	.fullmenu__en {
		font-size: clamp(26px, 8vw, 40px);
	}

	.fullmenu__ja {
		font-size: 11px;
	}
}
