/* ==========================================================================
   TEYLL — 全画面のメニュー（l-menu-teyll。Figma l-menu-teyll-sp 1369:6437。template-parts/teyll/menu.php）
   - ヘッダーの ☰（1023px 以下）で開く。地は Gradient/Action、右下にロゴの形（白 14%）。白い文字は 4.5:1 以上
   - 開くとき ☰ から丸く広がる（clip-path・0.4秒。動きを減らす設定では foundation.css が止める）
   - 開閉・Esc・フォーカスは common.js（data-menu）。高さが画面より長いときはメニューの中でスクロール
   ========================================================================== */
.l-menu-teyll {
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--teyll-gradient-action);
	color: var(--teyll-text-on-dark);
	--focus-color: var(--teyll-text-on-dark);
}

.l-menu-teyll:not([hidden]) {
	animation: teyll-menu-open 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes teyll-menu-open {
	from {
		clip-path: circle(0 at calc(100% - 42px) 42px);
	}

	to {
		clip-path: circle(150% at calc(100% - 42px) 42px);
	}
}

.l-menu-teyll__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 100%;
	max-width: 560px;
	margin-inline: auto;
	padding: calc(12px + var(--admin-bar-offset, 0px)) 0 48px;
	overflow: hidden;
}

/* ---------- 上の段（ヘッダーと同じ位置：ロゴ x28・閉じる x311） ---------- */
.l-menu-teyll__bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	padding: 0 20px 0 28px;
}

.l-menu-teyll__logo img {
	width: auto;
	height: 24px;
}

.l-menu-teyll__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--teyll-bg-canvas);
	color: var(--teyll-text-primary);
}

/* ---------- ナビ（英字 TEYLL/SP/EN-Step 24＋日本語 13・1行 68・線は白 24%） ---------- */
.l-menu-teyll__nav,
.l-menu-teyll__actions,
.l-menu-teyll__links {
	position: relative;
	z-index: 1;
	padding-inline: 20px;
}

.l-menu-teyll__item {
	border-bottom: 1px solid rgb(255 255 255 / 24%);
}

.l-menu-teyll__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	padding-block: 12px;
	color: inherit;
	text-decoration: none;
}

.l-menu-teyll__label {
	display: flex;
	flex-direction: column;
}

.l-menu-teyll__en {
	font: var(--text-teyll-en-step);
	letter-spacing: 0;
}

.l-menu-teyll__ja {
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
}

.l-menu-teyll__link[aria-current="page"] .l-menu-teyll__ja {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.l-menu-teyll__icon {
	flex: none;
	transition: transform 0.3s ease;
}

.l-menu-teyll__link:hover .l-menu-teyll__icon {
	transform: translateX(4px);
}

/* サービス5つ（2列） */
.l-menu-teyll__sub {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 8px;
	padding-bottom: 12px;
}

.l-menu-teyll__sub-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font: var(--text-teyll-body-s);
	color: inherit;
	text-decoration: none;
}

.l-menu-teyll__sub-link:hover span,
.l-menu-teyll__sub-link[aria-current="page"] span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 無料で相談する・電話 ---------- */
.l-menu-teyll__actions {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 8px;
}

.l-menu-teyll__contact.c-teyll-button--l {
	display: flex;
	width: 100%;
}

.l-menu-teyll__tel-title {
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
}

.l-menu-teyll__tel-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	color: inherit;
	text-decoration: none;
}

.l-menu-teyll__tel-number {
	font: var(--text-teyll-en-step);
}

.l-menu-teyll__tel-note {
	font: var(--text-teyll-body-s);
}

/* ---------- Instagram・運営会社 ---------- */
.l-menu-teyll__links {
	display: flex;
	flex-direction: column;
}

.l-menu-teyll__instagram,
.l-menu-teyll__corporate {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.l-menu-teyll__instagram {
	font: var(--text-teyll-en-label);
	letter-spacing: var(--ls-teyll-en-label);
}

.l-menu-teyll__corporate {
	gap: 6px;
	font: var(--text-teyll-body-s);
}

.l-menu-teyll__instagram:hover,
.l-menu-teyll__corporate:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 右下のロゴの形（白 14%） ---------- */
.l-menu-teyll__mark {
	position: absolute;
	left: 130px;
	top: 690px;
	width: 407px;
	height: auto;
	pointer-events: none;
}

/* PC の幅ではメニューを出さない（ナビがある） */
@media (min-width: 1024px) {
	.l-menu-teyll {
		display: none !important;
	}
}
