/* ==========================================================================
   TEYLL — 下層のページの見出し・パンくず（Figma c-teyll-page-header 1331:1383・-sp 1372:1537・c-teyll-breadcrumb 1330:1298。
   template-parts/teyll/page-header.php・helpers.php の truss_teyll_breadcrumb()）
   - 上の 128px（SP 96px）は浮いたヘッダーの分。パンくず → ラベル → 大きな英字（EN-Page 112・SP 56・Brand）→ h1（H1 44・SP 28）→ リード
   - --photo：丸い写真 400＋Ring の輪 440／--illust：淡いロゴの色の丸 400＋輪 440＋イラスト 420×315／--none：絵なし（本文の幅 840）
   - 後ろにロゴの形（22%・乗算）と淡い丸2つ。形はゆっくり漂う・写真と英字は読み込んだときに1回だけ出る（動きを減らす設定では止める）
   ========================================================================== */
.c-teyll-page-header {
	position: relative;
	padding: 128px 0 80px;
	isolation: isolate;
}

/* ---------- 後ろの形（飾り） ---------- */
.c-teyll-page-header__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.c-teyll-page-header__shape-a,
.c-teyll-page-header__shape-b {
	position: absolute;
	border-radius: 50%;
	animation: teyll-float 24s ease-in-out infinite alternate;
}

.c-teyll-page-header__shape-a {
	top: -140px;
	left: calc(50% + 100px);
	width: 680px;
	height: 680px;
	background: var(--teyll-bg-sky-pale);
}

.c-teyll-page-header__shape-b {
	top: 430px;
	left: -130px;
	width: 260px;
	height: 260px;
	background: var(--teyll-bg-green-pale);
	animation-duration: 20s;
	animation-direction: alternate-reverse;
}

.c-teyll-page-header__mark {
	position: absolute;
	top: 96px;
	left: calc(50% - 60px);
	width: 620px;
	height: auto;
	animation: teyll-drift 28s ease-in-out infinite alternate;
}

.c-teyll-page-header--none .c-teyll-page-header__shape-a {
	top: -180px;
	left: calc(50% + 280px);
	width: 560px;
	height: 560px;
}

.c-teyll-page-header--none .c-teyll-page-header__shape-b {
	top: 330px;
	left: -120px;
	width: 240px;
	height: 240px;
}

.c-teyll-page-header--none .c-teyll-page-header__mark {
	top: 40px;
	left: calc(50% + 160px);
	width: 520px;
}

/* ---------- 中身 ---------- */
.c-teyll-page-header__container {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.c-teyll-page-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	min-height: 440px;
}

.c-teyll-page-header--none .c-teyll-page-header__inner {
	min-height: 0;
}

.c-teyll-page-header__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 640px;
}

.c-teyll-page-header--none .c-teyll-page-header__body {
	max-width: 840px;
}

.c-teyll-page-header__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.c-teyll-page-header__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
}

.c-teyll-page-header__label::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--teyll-page-header-dot, var(--teyll-accent-green));
}

.c-teyll-page-header__label--purple {
	--teyll-page-header-dot: var(--teyll-accent-purple);
}

.c-teyll-page-header__label--sky {
	--teyll-page-header-dot: var(--teyll-accent-sky);
}

.c-teyll-page-header__label--yellow {
	--teyll-page-header-dot: var(--teyll-accent-yellow);
}

.c-teyll-page-header__en {
	width: fit-content;
	max-width: 100%;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
	font: var(--text-teyll-en-page);
	letter-spacing: var(--ls-teyll-en-hero);
	background: var(--teyll-gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: teyll-text-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}

.c-teyll-page-header__title {
	font: var(--text-teyll-h1);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-primary);
}

.c-teyll-page-header__lead {
	max-width: 640px;
	font: var(--text-teyll-body);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-secondary);
}

/* ---------- 右の絵 ---------- */
.c-teyll-page-header__visual {
	position: relative;
	flex: none;
	width: 440px;
	height: 440px;
}

.c-teyll-page-header__ring {
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: 50%;
	background: var(--teyll-gradient-ring);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.c-teyll-page-header__photo {
	position: absolute;
	inset: 20px;
	overflow: hidden;
	border-radius: 50%;
	animation: teyll-circle-in 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}

.c-teyll-page-header__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-teyll-page-header__blob {
	position: absolute;
	inset: 20px;
	border-radius: 50%;
	background: var(--teyll-page-header-tone, var(--teyll-bg-purple-pale));
}

.c-teyll-page-header__blob--yellow {
	--teyll-page-header-tone: var(--teyll-bg-yellow-pale);
}

.c-teyll-page-header__blob--green {
	--teyll-page-header-tone: var(--teyll-bg-green-pale);
}

.c-teyll-page-header__blob--sky {
	--teyll-page-header-tone: var(--teyll-bg-sky-pale);
}

.c-teyll-page-header__blob--indigo {
	--teyll-page-header-tone: var(--teyll-bg-indigo-pale);
}

.c-teyll-page-header__illust {
	position: absolute;
	top: 100px;
	left: 10px;
	width: 420px;
	height: 315px;
	object-fit: contain;
}

/* ---------- パンくず ---------- */
.c-teyll-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.c-teyll-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.c-teyll-breadcrumb__link {
	font: var(--text-teyll-body-s);
	letter-spacing: var(--ls-teyll);
	color: var(--teyll-text-secondary);
	text-decoration: none;
}

.c-teyll-breadcrumb__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.c-teyll-breadcrumb__sep {
	flex: none;
	color: var(--teyll-text-secondary);
}

.c-teyll-breadcrumb__current {
	font: var(--text-teyll-label);
	letter-spacing: var(--ls-teyll-label);
	color: var(--teyll-text-primary);
}

/* ---------- 狭い PC・タブレット（Figma にない幅）：大きな英字を幅に合わせて小さく（WEBSITE・SCHOOL・COMPANY が途中で折れないように） ---------- */
@media (min-width: 768px) and (max-width: 1279px) {
	.c-teyll-page-header__en {
		font-size: clamp(64px, 8vw, var(--fs-teyll-en-page));
	}
}

/* ---------- 1023px 以下：絵を下に ---------- */
@media (max-width: 1023px) {
	.c-teyll-page-header__inner {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.c-teyll-page-header__visual {
		align-self: flex-end;
	}
}

/* ---------- SP（Figma c-teyll-page-header-sp） ---------- */
@media (max-width: 767px) {
	.c-teyll-page-header {
		padding: 96px 0 48px;
	}

	/* 幅 320 で COMPANY・CONTACT が途中で折れないように（375 では 56 のまま） */
	.c-teyll-page-header__en {
		font-size: min(var(--fs-teyll-en-page), 16vw);
	}

	.c-teyll-page-header__container {
		gap: 24px;
	}

	.c-teyll-page-header__inner {
		gap: 24px;
	}

	.c-teyll-page-header__body {
		gap: 16px;
	}

	.c-teyll-page-header__heading {
		gap: 4px;
	}

	.c-teyll-page-header__label {
		gap: 8px;
	}

	.c-teyll-page-header__label::before {
		width: 8px;
		height: 8px;
	}

	.c-teyll-page-header__visual {
		width: 220px;
		height: 220px;
	}

	.c-teyll-page-header__ring {
		padding: 1px;
	}

	.c-teyll-page-header__photo,
	.c-teyll-page-header__blob {
		inset: 10px;
	}

	.c-teyll-page-header__illust {
		top: 50px;
		left: 5px;
		width: 210px;
		height: 158px;
	}

	.c-teyll-page-header__shape-a {
		top: auto;
		bottom: 18px;
		left: calc(100% - 230px);
		width: 320px;
		height: 320px;
	}

	.c-teyll-page-header__shape-b {
		top: auto;
		bottom: -70px;
		left: -70px;
		width: 140px;
		height: 140px;
	}

	.c-teyll-page-header__mark {
		top: auto;
		bottom: 40px;
		left: auto;
		right: -60px;
		width: 260px;
	}

	.c-teyll-page-header--none .c-teyll-page-header__shape-a {
		top: 20px;
		bottom: auto;
		left: calc(100% - 230px);
		width: 320px;
		height: 320px;
	}

	.c-teyll-page-header--none .c-teyll-page-header__shape-b {
		top: 260px;
		bottom: auto;
		left: -70px;
		width: 140px;
		height: 140px;
	}

	.c-teyll-page-header--none .c-teyll-page-header__mark {
		top: 70px;
		bottom: auto;
		left: auto;
		right: -40px;
		width: 200px;
	}
}
