@charset "UTF-8";
/* ==========================================================================
   Object / Component / hamburger
   ========================================================================== */
.c-hamburger {
	position: fixed;
	top: 8px;
	right: 12px;
	z-index: var(--z-hamburger);
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
}

.c-hamburger__box {
	position: relative;
	width: 28px;
	height: 18px;
}

.c-hamburger__line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--color-navy);
	transition:
		top 0.3s var(--ease),
		transform 0.3s var(--ease),
		opacity 0.2s linear,
		background-color 0.3s var(--ease);
}
.c-hamburger__line:nth-child(1) { top: 0; }
.c-hamburger__line:nth-child(2) { top: 8px; }
.c-hamburger__line:nth-child(3) { top: 16px; }

/* ---- 展開時（× へ） ---- */
.c-hamburger.is-open .c-hamburger__line {
	background: #ffffff;
}
.c-hamburger.is-open .c-hamburger__line:nth-child(1) {
	top: 8px;
	transform: rotate(45deg);
}
.c-hamburger.is-open .c-hamburger__line:nth-child(2) {
	opacity: 0;
}
.c-hamburger.is-open .c-hamburger__line:nth-child(3) {
	top: 8px;
	transform: rotate(-45deg);
}

/* ---- 表示切り替え：タブレット(1024px)以下で表示 ---- */
@media (max-width: 1024px) {
	.c-hamburger {
		display: grid;
		top: 20px;
	}
}
@media (max-width: 767px) {
	.c-hamburger {
		top: 7px;
		right: 8px;
	}
}
