/* ==========================================================================
   TEYLL（assets/css/teyll/）— Layout（l-: 本文の基本・ヘッダー・SP メニュー・フッター・お問い合わせの帯）
   - このフォルダの CSS は TEYLL のページだけで読み込む（inc/setup.php）
   - SP は同じファイルの中で @media (max-width: 767px) に書く
   - Figma: l-header-teyll 56:90・l-header-teyll-sp 157:154・l-menu-sp Site=TEYLL 158:299・l-footer-teyll 56:109・l-footer-teyll-sp 162:296・l-cta-teyll-sp 236:1784
   ========================================================================== */

/* ---------- TEYLL だけで使う値 ----------
   tokens.css にまだない値（Figma のテキストスタイル TEYLL/PC/Hero・セクションの上下の余白など）。tokens.css に足したら置き換える */
:root {
	--fs-teyll-hero: 56px; /* TEYLL/PC/Hero（トップのキャッチ）。SP は 30px */
	--fs-teyll-number: 40px; /* 手順の番号（Sora Bold）。SP は 32px */
	--fs-teyll-service-name: 36px; /* サービスのカードの英字。SP は 29px */
	--fs-teyll-faq-q: 18px; /* よくある質問の問い。SP は 16px */
	--fs-teyll-faq-mark: 24px; /* Q・A の英字。SP は 20px */
	--fs-teyll-tel: 44px; /* お問い合わせの帯の電話番号。SP は 36px */
	--teyll-section-py: 140px; /* トップのセクションの上下。SP は 56px */
	--teyll-head-gap: 56px; /* 見出しから中身まで。SP は 28px */
	--radius-teyll-card: 12px; /* できることの札 */
	--radius-teyll-visual: 20px; /* 図の角丸 */
	--shadow-teyll-float: 0 16px 40px rgba(20, 38, 64, 0.14); /* Figma Shadow/Float */
	--focus-color: var(--teyll-accent-indigo);
	--header-height: 94px; /* ヘッダーの高さ（画面の上に固定するので、ページ内リンクはこの下に止める。foundation.css の scroll-padding-top）。1023px 以下は 64px */
}

@media (max-width: 1023px) {
	:root {
		--header-height: 64px;
	}
}

@media (max-width: 767px) {
	:root {
		--fs-teyll-hero: 30px;
		--fs-teyll-number: 32px;
		--fs-teyll-service-name: 29px;
		--fs-teyll-faq-q: 16px;
		--fs-teyll-faq-mark: 20px;
		--fs-teyll-tel: 36px;
		--fs-teyll-en-label: 13px; /* Figma TEYLL/SP/EN-Label は 13px（tokens.css は 12px。直すよう報告） */
		--teyll-section-py: 56px;
		--teyll-head-gap: 28px;
	}
}

/* ---------- 本文の基本 ---------- */
body {
	font: var(--text-teyll-body);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-primary);
	background: var(--teyll-bg-canvas);
}

.l-main-teyll {
	display: block;
}

/* 768〜1099px は本文の幅が PC より狭く、PC の改行の位置と自然な折り返しが重なって短い行ができる。
   PC だけの改行（<br class="u-pc-br">）は 1100px 以上で入れる。手順の文（keep-all で改行の位置を決めている）は除く */
@media (min-width: 768px) and (max-width: 1099px) {
	:not(.p-teyll-flow__text) > .u-pc-br {
		display: none;
	}
}

/* ==========================================================================
   ヘッダー（PC: ロゴ・ナビ・無料相談。1023px 以下: ロゴ・メニュー）
   画面の上に固定する（2026-10-06 ユーザー決定。ほかの事業と同じ sticky。固定していないと、iPhone の Safari が画面の上（時計の帯）をページの地の色にする）。
   SP のメニュー（l-menu-sp。z-index 100）はこの上に重なる
   ========================================================================== */
.l-header-teyll {
	position: sticky;
	top: var(--admin-bar-offset, 0px); /* ログイン中は管理バーの下（common/foundation.css） */
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs);
	padding: 20px 32px 20px 48px; /* Figma の値（左 48・右 32） */
	background: var(--teyll-bg-canvas);
	border-bottom: 1px solid var(--teyll-border-default);
}

.l-header-teyll__logo {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	min-height: 44px; /* 押せる範囲（ロゴの高さは PC 32・SP 24。ヘッダーの高さは変わらない） */
}

.l-header-teyll__logo img {
	width: 149px;
	height: 32px;
}

.l-header-teyll__right {
	display: flex;
	align-items: center;
	gap: 36px;
}

.l-header-teyll__nav-list {
	display: flex;
	align-items: center;
	gap: var(--space-xl);
}

.l-header-teyll__nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
	color: var(--teyll-text-primary);
	text-decoration: none;
	white-space: nowrap;
}

.l-header-teyll__nav-link:hover {
	color: var(--teyll-text-link);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.l-header-teyll .l-header-teyll__cta {
	padding-block: 16px; /* Figma の値（枠線は box-shadow で余白に重ねる） */
}

/* 「メニュー」ボタン（SP と 1023px 以下） */
.l-header-teyll__menu {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 61px;
	min-height: 44px;
	padding: 0;
	color: var(--teyll-text-primary);
	background: none;
	border: 0;
}

.l-header-teyll__menu-icon {
	width: 26px;
	height: 26px;
}

.l-header-teyll__menu-label {
	font: var(--text-teyll-body-s);
	font-size: 13px; /* TEYLL/SP/Body-S（PC 幅でも SP と同じ大きさ） */
	letter-spacing: var(--ls-teyll);
	white-space: nowrap;
}

/* ナビが入りきらない幅（1023px 以下）は SP と同じヘッダーにする */
@media (max-width: 1023px) {
	.l-header-teyll {
		height: 64px;
		padding: 0 12px 0 20px;
	}

	.l-header-teyll__logo img {
		width: 112px;
		height: 24px;
	}

	.l-header-teyll__right {
		display: none;
	}

	.l-header-teyll__menu {
		display: flex;
	}
}

/* ==========================================================================
   SP の全画面メニュー（紺の色面。開閉は common.js）
   ========================================================================== */
.l-menu-sp {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	padding-bottom: var(--space-2xl);
	overflow-y: auto;
	color: var(--teyll-text-on-dark);
	background: var(--teyll-bg-navy);
	--focus-color: var(--teyll-text-on-dark);
}

.l-menu-sp[hidden] {
	display: none;
}

.l-menu-sp__head {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding: 0 12px 0 20px;
}

.l-menu-sp__logo {
	display: flex;
	align-items: center;
	min-height: 44px; /* 押せる範囲（ロゴは 24px。メニューの頭の高さ 64px の中） */
}

.l-menu-sp__logo img {
	width: 112px;
	height: 24px;
}

.l-menu-sp__close {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 56px;
	min-height: 44px;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
}

.l-menu-sp__close-icon {
	width: 26px;
	height: 26px;
}

.l-menu-sp__close-label {
	font-size: 13px; /* TEYLL/SP/Body-S */
	line-height: 1.8;
	letter-spacing: var(--ls-teyll);
}

.l-menu-sp__body {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	max-width: 600px;
	padding: var(--space-xs) var(--space-lg) 0;
}

.l-menu-sp__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding-block: var(--space-md);
	font: 700 18px/1.6 var(--font-teyll-ja); /* TEYLL/SP/H3 */
	letter-spacing: var(--ls-teyll);
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgb(255 255 255 / 0.2); /* Figma は color/border/on-brand（TRUSS の青）。紺の面に合わせて白 20% にした（tokens.css に値がない） */
}

.l-menu-sp__item--sub {
	padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
	font: 700 13px/1.5 var(--font-teyll-ja); /* TEYLL/SP/Label */
	letter-spacing: var(--ls-teyll-label);
}

.l-menu-sp__chevron {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.l-menu-sp__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	min-height: 56px;
	padding-block: 18px;
	font: 700 13px/1.5 var(--font-teyll-ja);
	letter-spacing: var(--ls-teyll-label);
	color: var(--teyll-text-on-dark);
	text-decoration: none;
	background: var(--teyll-action-cta);
	border-radius: var(--radius-md);
}

.l-menu-sp__cta:hover {
	background: var(--teyll-action-cta-hover);
}

.l-menu-sp__cta-icon {
	width: 18px;
	height: 18px;
}

.l-menu-sp__corporate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 13px;
	line-height: 1.8;
	letter-spacing: var(--ls-teyll);
	color: inherit;
	text-decoration: none;
}

.l-menu-sp__corporate:hover {
	text-decoration: underline;
}

.l-menu-sp__external {
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.l-footer-teyll {
	padding: 72px 0 36px;
	background: var(--teyll-bg-subtle);
	border-top: 1px solid var(--teyll-border-default);
}

.l-footer-teyll > .l-container {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xl);
}

.l-footer-teyll__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xl);
}

.l-footer-teyll__group {
	display: flex;
	flex-shrink: 0; /* 住所を途中で折り返さない（狭い幅ではナビの列が縮む） */
	flex-direction: column;
	gap: var(--space-md);
}

.l-footer-teyll__logo {
	display: block;
	width: fit-content;
	padding-block: 8px; /* 押せる範囲（ロゴは PC 43・SP 29）。見た目の位置は margin で戻す */
	margin-block: -8px;
}

.l-footer-teyll__logo img {
	width: 201px;
	height: 43px;
}

.l-footer-teyll__address {
	font: var(--text-teyll-body-s);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-secondary);
}

.l-footer-teyll__address a {
	color: inherit;
	text-decoration: none;
}

.l-footer-teyll__hours {
	white-space: nowrap; /* 「受付 8:00〜17:00（日曜除く）」は途中で折り返さない */
}

/* Instagram（押せる大きさ 44px。アイコン 24px の見た目の位置は margin で戻す） */
.l-footer-teyll__sns {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -10px;
	color: var(--teyll-text-primary);
}

.l-footer-teyll__sns:hover {
	color: var(--teyll-text-link);
}

.l-footer-teyll__sns-icon {
	width: 24px;
	height: 24px;
}

/* 電話と受付時間：PC は「／」でつないで1行。SP と、3列が窮屈な 1024〜1199px は受付時間を次の行に */
.l-footer-teyll__br {
	display: none;
}

@media (max-width: 767px), (min-width: 1024px) and (max-width: 1199px) {
	.l-footer-teyll__sep {
		display: none;
	}

	.l-footer-teyll__br {
		display: inline;
	}
}

.l-footer-teyll__nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-xl);
}

.l-footer-teyll__nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
	color: var(--teyll-text-primary);
	text-decoration: none;
	white-space: nowrap;
}

.l-footer-teyll__nav-link:hover,
.l-footer-teyll__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.l-footer-teyll__body {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--space-sm);
}

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

.l-footer-teyll__corporate-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	padding: 16px 24px 16px 28px; /* Figma の余白（枠線は box-shadow で余白に重ねる。p-teyll-button と同じ） */
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
	color: var(--teyll-text-primary);
	text-decoration: none;
	white-space: nowrap;
	background: var(--teyll-bg-canvas);
	border-radius: var(--radius-md);
	box-shadow: inset 0 0 0 1.5px var(--teyll-text-primary);
}

@media (forced-colors: active) {
	.l-footer-teyll__corporate-link {
		border: 1px solid LinkText;
	}
}

.l-footer-teyll__corporate-link:hover {
	background: var(--teyll-bg-subtle);
}

.l-footer-teyll__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.l-footer-teyll__colors {
	display: flex;
	height: 4px;
}

.l-footer-teyll__shape {
	flex: 1;
}

.l-footer-teyll__shape--sky {
	background: var(--teyll-accent-sky);
}

.l-footer-teyll__shape--purple {
	background: var(--teyll-accent-purple);
}

.l-footer-teyll__shape--yellow {
	background: var(--teyll-accent-yellow);
}

.l-footer-teyll__shape--green {
	background: var(--teyll-accent-green);
}

.l-footer-teyll__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	font: var(--text-teyll-body-s);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-secondary);
}

.l-footer-teyll__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.l-footer-teyll__copyright small {
	font-size: inherit;
}

/* PC は行の高さ（約 25px）で並べ、押せる範囲だけ 44px に広げる */
@media (min-width: 768px) {
	.l-footer-teyll__link {
		margin-block: -9.5px;
	}
}

@media (max-width: 1023px) {
	.l-footer-teyll__top {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.l-footer-teyll {
		padding: 40px 0 36px; /* Figma l-footer-teyll-sp の値 */
	}

	.l-footer-teyll > .l-container {
		gap: var(--space-xl);
	}

	.l-footer-teyll__top {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-xl);
	}

	.l-footer-teyll__logo img {
		width: 135px;
		height: 29px;
	}

	.l-footer-teyll__nav-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0 13px;
	}

	.l-footer-teyll__body {
		align-items: stretch;
	}

	.l-footer-teyll__corporate-link {
		justify-content: space-between;
		min-height: 55px; /* Figma SP の高さ */
		padding: 0 20px;
	}

	.l-footer-teyll__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
}

/* ==========================================================================
   トップの下のお問い合わせの帯（PC p-teyll-cta 58:1414・SP l-cta-teyll-sp 236:1784）
   ========================================================================== */
.l-cta-teyll {
	position: relative;
	overflow: hidden;
	padding: 100px 0;
	background: var(--teyll-bg-subtle);
}

.l-cta-teyll__inner {
	position: relative;
	z-index: 1;
}

.l-cta-teyll__body {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 760px;
}

.l-cta-teyll__lead {
	color: var(--teyll-text-secondary);
}

.l-cta-teyll__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2xl);
}

.l-cta-teyll__tel {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.l-cta-teyll__tel-number {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding-block: 4px; /* 押せる範囲 44px 以上（SP の文字の行は 40）。見た目の位置は margin で戻す */
	margin-block: -4px;
	font: 700 var(--fs-teyll-tel)/1.1 var(--font-teyll-en);
	letter-spacing: var(--ls-teyll-en-h1);
	color: var(--teyll-text-primary);
	text-decoration: none;
	white-space: nowrap;
}

.l-cta-teyll__tel-icon {
	width: 28px;
	height: 28px;
}

.l-cta-teyll__tel-hours {
	font: var(--text-teyll-body-s);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-secondary);
}

/* 右のロゴの三角（下は帯で切れる） */
.l-cta-teyll__mark {
	position: absolute;
	top: 36px;
	left: calc(50% + 260px);
	width: 520px;
	height: auto;
}

@media (max-width: 1199px) {
	.l-cta-teyll__mark {
		left: auto;
		right: -120px;
		opacity: 0.35;
	}
}

@media (max-width: 767px) {
	.l-cta-teyll {
		padding: var(--space-5xl) 0;
	}

	.l-cta-teyll__body {
		gap: var(--space-xl);
	}

	.l-cta-teyll__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-md);
	}

	.l-cta-teyll__mark-sp {
		width: 94px;
		height: auto;
	}

	.l-cta-teyll__actions {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-xl);
	}

	.l-cta-teyll__tel-icon {
		width: 26px;
		height: 26px;
	}
}
