/* ==========================================================================
   Myoujyou — base styles
   ========================================================================== */

:root {
	--color-base: #0b0b0d;
	--color-surface: #121217;
	--color-text: #f3f3f6;
	--color-muted: #b8b8c2;
	--color-accent: #be2720;
	--color-accent-light: #7a2b24;
	--color-border: #2a2a33;

	--font-sans: "Zen Old Mincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Hiragino Mincho ProN", "游明朝", YuMincho, "Yu Mincho", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", "MS Mincho", serif;
	--font-display: "Zen Old Mincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Hiragino Mincho ProN", "游明朝", YuMincho, "Yu Mincho", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", "MS Mincho", serif;
	--font-hero: "Zen Old Mincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Hiragino Mincho ProN", "游明朝", YuMincho, "Yu Mincho", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", "MS Mincho", serif;
	--font-terabasu-display: "Zen Old Mincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Hiragino Mincho ProN", "游明朝", YuMincho, "Yu Mincho", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", "MS Mincho", serif;

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;

	--content-width: 720px;
	--site-width: 1100px;
	--header-height: 4rem;

	/* HERO — shared by home + opening finale */
	--hp-hero-copy-max-width: 42rem;
	--hp-hero-visual-max-height: min(60vh, 42rem);
	--hp-hero-figure-y: 100%;
	--hp-hero-visual-offset-y: clamp(5.5rem, 13.5vw, 9.5rem);
	--hp-hero-visual-inset-x: clamp(1rem, 3vw, 2rem);
	--hp-gallery-frame-inset-x: clamp(1rem, 3vw, 2rem);
	--hp-gallery-frame-inset-y: clamp(0.75rem, 2vw, 1.25rem);
	--hp-hero-gallery-gap: clamp(6.5rem, 16vh, 12rem);
	--hp-hero-copy-lift: clamp(0.9rem, 2.2vw, 1.6rem);
	--opening-hero-visual-nudge-y: 2.55rem;
	--hp-hero-frame-gap: 0;
	--ease-gentle: cubic-bezier(0.18, 0, 0.08, 1);

	--radius: 4px;
	--shadow: 0 2px 12px rgb(0 0 0 / 6%);
}

@media (max-width: 767px) {
	:root {
		--hp-hero-visual-offset-y: clamp(2.25rem, 6.5vw, 3.5rem);
		--hp-hero-copy-lift: clamp(0.65rem, 2.5vw, 1.05rem);
		--opening-hero-visual-nudge-y: 1.15rem;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Always reserve classic scrollbar width to avoid HERO jump after opening. */
	scrollbar-gutter: stable;
	overflow-x: clip;
	overflow-y: scroll;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.8;
	color: var(--color-text);
	background: var(--color-base);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	opacity: 0.85;
}

/* Layout
   -------------------------------------------------------------------------- */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site__inner,
.site-main__inner {
	width: min(100% - var(--space-md) * 2, var(--site-width));
	margin-inline: auto;
}

.site-main {
	flex: 1;
	padding-top: calc(var(--header-height) + var(--space-lg));
	padding-bottom: var(--space-lg);
}

.site-main.has-sidebar .site-main__inner {
	display: grid;
	gap: var(--space-lg);
}

@media (min-width: 768px) {
	.site-main.has-sidebar .site-main__inner {
		grid-template-columns: 1fr 280px;
		align-items: start;
	}
}

/* Header
   -------------------------------------------------------------------------- */

.site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	width: 100%;
	z-index: 100;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
	pointer-events: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: var(--header-height);
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: var(--space-md);
	pointer-events: none;
}

.site-branding {
	position: fixed;
	top: 0;
	left: var(--space-md);
	z-index: 210;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.12rem;
	min-height: var(--header-height);
	height: auto;
	padding-block: 0.55rem 0.35rem;
	flex-shrink: 0;
	pointer-events: auto;
}

.site-affiliation {
	margin: 0.15rem 0 0;
	font-family: var(--font-display);
	font-size: clamp(0.72rem, 1.65vw, 0.9rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: #fff;
	white-space: nowrap;
}

.home .site-header:not(.is-on-dark) .site-affiliation {
	color: #0b0b0d;
}

.home .site-header.is-on-dark .site-affiliation {
	color: #fff;
}

.site-branding__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.3;
}

.site-branding__title a {
	color: var(--color-text);
	text-decoration: none;
}

.site-branding__title a:hover {
	opacity: 1;
	color: var(--color-accent);
}

.site-logo__link,
.custom-logo-link {
	display: block;
	line-height: 0;
}

.site-logo__image,
.custom-logo-link img {
	width: auto;
	height: auto;
	max-height: 3.5rem;
	max-width: min(15.5rem, 64vw);
}

.home .site-header .site-branding .site-logo__image,
.home .site-header .site-branding .custom-logo-link img {
	max-height: clamp(3.125rem, 8.5vw, 3.75rem);
	max-width: min(21.5rem, 84vw);
}

.home .site-header.is-on-dark .nav-toggle__bar {
	background: #fff;
}

.hero__brand {
	margin: 0 0 var(--space-sm);
}

/* Navigation — drawer
   -------------------------------------------------------------------------- */

.nav-toggle {
	position: fixed;
	top: calc((var(--header-height) - 2.75rem) / 2);
	right: var(--space-md);
	z-index: 210;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
}

.nav-toggle__bar {
	display: block;
	width: 1.5rem;
	height: 2px;
	margin-inline: auto;
	background: var(--color-text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgb(0 0 0 / 0.55);
	pointer-events: auto;
	cursor: pointer;
}

.primary-nav {
	position: fixed;
	top: 50%;
	right: 0;
	bottom: auto;
	z-index: 200;
	width: min(23rem, 54vw);
	height: 118vh;
	height: 118dvh;
	padding: clamp(5.25rem, 13vh, 7rem) clamp(0.85rem, 1.8vw, 1.35rem) clamp(1.75rem, 4vh, 2.5rem) clamp(6.5rem, 15vw, 9rem);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-right: 0;
	clip-path: ellipse(100% 50% at 100% 50%);
	box-shadow: 0 0 36px rgb(0 0 0 / 0.35), inset 1px 0 0 rgb(255 255 255 / 0.08);
	transform: translate(100%, -50%);
	transition: transform 0.28s ease;
	pointer-events: auto;
}

body.nav-open .primary-nav {
	transform: translate(0, -50%);
}

body.nav-open {
	overflow: hidden;
}

.primary-nav__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.1rem, 2.8vh, 1.75rem);
	width: 100%;
	margin: auto 0;
	transform: translateY(clamp(-4.75rem, -8.5vh, -3.25rem));
}

.primary-nav__brand {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.primary-nav__logo {
	display: block;
	width: auto;
	height: auto;
	max-height: clamp(2rem, 4.5vh, 2.6rem);
	max-width: min(12.5rem, 100%);
}

.primary-nav .menu {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__social {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.85rem;
	margin-top: clamp(0.15rem, 0.8vh, 0.45rem);
}

.primary-nav__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgb(198 198 206 / 0.92);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.primary-nav__social-link:hover {
	color: #fff;
}

.primary-nav__social-icon {
	display: block;
}

.primary-nav .menu a {
	display: block;
	padding: 0.9em 0;
	color: rgb(198 198 206 / 0.92);
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.12vw, 1.125rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a {
	color: var(--color-accent);
}

/* Mobile: compact semicircle menu (width only; no height gate) */
@media (max-width: 767px) {
	.primary-nav {
		width: min(19.5rem, 84vw);
		height: 118vh;
		height: 118dvh;
		top: 50%;
		padding-top: clamp(5.5rem, 14vh, 7rem);
		padding-right: clamp(0.7rem, 3vw, 1rem);
		padding-left: clamp(6.25rem, 24vw, 8.25rem);
		padding-bottom: clamp(5rem, 12vh, 6.5rem);
		justify-content: center;
		clip-path: ellipse(100% 50% at 100% 50%);
		transform: translate(100%, -50%);
	}

	body.nav-open .primary-nav {
		transform: translate(0, -50%);
	}

	.primary-nav__body {
		gap: 0.45rem;
		margin: 0;
		transform: none;
	}

	.primary-nav__brand {
		display: none;
	}

	.primary-nav .menu {
		gap: 0;
	}

	.primary-nav .menu a {
		padding: 0.38em 0;
		font-size: clamp(1rem, 4.2vw, 1.1rem);
		line-height: 1.4;
		letter-spacing: 0.01em;
	}

	.primary-nav__social {
		display: flex;
		gap: 0.65rem;
		margin-top: 0.5rem;
	}

	.primary-nav__social-icon {
		width: 1.25rem;
		height: 1.25rem;
	}
}

/* Hero (front page)
   -------------------------------------------------------------------------- */

.hero {
	padding-block: var(--space-xl);
	text-align: center;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
}

.hero--home {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: clamp(22rem, 72vh, 44rem);
	padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-xl);
	margin-top: calc(-1 * var(--header-height));
	background-color: var(--color-base);
	background-image:
		linear-gradient(
			to bottom,
			rgb(11 11 13 / 0.35) 0%,
			rgb(11 11 13 / 0.15) 45%,
			rgb(11 11 13 / 0.82) 100%
		),
		var(--hero-image);
	background-size: cover;
	background-position: center 35%;
	border-bottom: none;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgb(11 11 13 / 0.2) 0%,
		transparent 35%,
		rgb(11 11 13 / 0.55) 100%
	);
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: center;
}

.home .site-header {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

.home .site-main--home {
	padding-block: 0;
}

.hero__title {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 900;
	line-height: 1.4;
}

.hero__lead {
	margin: 0 auto;
	max-width: var(--content-width);
	font-size: 1.0625rem;
	color: var(--color-muted);
}

.hero--home .hero__lead {
	margin: 0;
	max-width: none;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 4vw, 1.875rem);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--color-text);
	text-shadow: 0 2px 16px rgb(0 0 0 / 65%);
}

/* Content
   -------------------------------------------------------------------------- */

.entry-header {
	margin-bottom: var(--space-md);
}

.entry-title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.4;
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.entry-meta a {
	color: inherit;
}

.entry-content {
	max-width: var(--content-width);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-thumbnail {
	margin-bottom: var(--space-md);
	border-radius: var(--radius);
	overflow: hidden;
}

/* Post list
   -------------------------------------------------------------------------- */

.post-list {
	display: grid;
	gap: var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card {
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.post-card__title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-display);
	font-size: 1.25rem;
}

.post-card__title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--color-accent);
}

.post-card__excerpt {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

.post-card__more {
	margin-top: var(--space-sm);
	font-size: 0.875rem;
}

/* News / お知らせ
   -------------------------------------------------------------------------- */

.news-page,
.news-single {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.news-page__body,
.news-single__head,
.news-single__body,
.news-single__back {
	box-sizing: border-box;
	width: 100%;
	max-width: 42rem;
}

.news-page__body {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-xl);
}

.news-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgb(255 255 255 / 0.14);
}

.news-list__item {
	border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.news-list__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.85rem 1.25rem;
	align-items: center;
	padding: 1.15rem 0.15rem;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.news-list__thumb {
	display: block;
	width: clamp(4.5rem, 14vw, 6.5rem);
	aspect-ratio: 1;
	overflow: hidden;
	background: rgb(255 255 255 / 0.06);
}

.news-list__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-list__text {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.news-list__date {
	font-variant-numeric: tabular-nums;
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.55);
}

.news-list__title {
	font-family: var(--font-display);
	font-size: clamp(0.95rem, 1.8vw, 1.1rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.7;
	color: rgb(243 243 246 / 0.92);
}

.news-list__link:hover .news-list__title,
.news-list__link:focus-visible .news-list__title {
	color: #fff;
}

.news-single__figure {
	margin: 0 0 1.75rem;
	overflow: hidden;
}

.news-single__figure img {
	display: block;
	width: 100%;
	height: auto;
}

.news-page__pagination {
	margin-top: clamp(2rem, 5vw, 3rem);
}

.news-page__pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.news-page__pagination a,
.news-page__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.55rem;
	color: rgb(255 255 255 / 0.75);
	text-decoration: none;
	border: 1px solid rgb(255 255 255 / 0.18);
}

.news-page__pagination .current {
	color: #0b0b0d;
	background: #fff;
	border-color: #fff;
}

.news-page__empty {
	margin: 0;
	text-align: center;
	color: rgb(255 255 255 / 0.65);
	letter-spacing: 0.06em;
}

.news-single__head {
	padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 3vw, 2rem);
	text-align: left;
}

.news-single__date {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	color: rgb(255 255 255 / 0.55);
}

.news-single__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.55;
	color: #fff;
}

.news-single__body {
	padding-bottom: clamp(2rem, 5vw, 3rem);
	font-size: clamp(0.9375rem, 1.6vw, 1.05rem);
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(243 243 246 / 0.88);
}

.news-single__body > *:first-child {
	margin-top: 0;
}

.news-single__body a {
	color: #fff;
}

.news-single__body img {
	max-width: 100%;
	height: auto;
	cursor: zoom-in;
}

/* News body image lightbox */
.news-lightbox-open {
	overflow: hidden;
}

.news-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgb(0 0 0 / 0.88);
	cursor: zoom-out;
}

.news-lightbox[hidden] {
	display: none;
}

.news-lightbox__figure {
	margin: 0;
	max-width: min(96vw, 1200px);
	max-height: 90vh;
}

.news-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	cursor: default;
}

.news-lightbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.12);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.news-lightbox__close:hover,
.news-lightbox__close:focus-visible {
	background: rgb(255 255 255 / 0.22);
	outline: none;
}

.news-single__body .alignleft {
	float: left;
	margin: 0.35em 1.25em 1em 0;
	max-width: min(100%, 18rem);
}

.news-single__body .alignright {
	float: right;
	margin: 0.35em 0 1em 1.25em;
	max-width: min(100%, 18rem);
}

.news-single__body .aligncenter {
	display: block;
	float: none;
	margin: 1.25em auto;
}

.news-single__body .alignnone {
	margin: 1em 0;
}

.news-single__body::after {
	content: "";
	display: table;
	clear: both;
}

.news-single__body ul,
.news-single__body ol {
	padding-left: 1.35em;
}

.news-single__body blockquote {
	margin: 1.25em 0;
	padding: 0.35em 0 0.35em 1em;
	border-left: 2px solid rgb(255 255 255 / 0.35);
	color: rgb(255 255 255 / 0.78);
}

.news-single__back {
	padding-bottom: clamp(3rem, 8vw, 5rem);
}

.news-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: rgb(255 255 255 / 0.78);
	text-decoration: none;
	letter-spacing: 0.08em;
	border-bottom: 1px solid rgb(255 255 255 / 0.35);
	padding-bottom: 0.15em;
}

.news-single__back-link::before {
	content: "←";
}

.news-single__back-link:hover {
	color: #fff;
	border-bottom-color: #fff;
}

@media (max-width: 599px) {
	.news-list__link {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}
}

/* Pagination
   -------------------------------------------------------------------------- */

.navigation.pagination {
	margin-top: var(--space-lg);
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span {
	display: inline-block;
	padding: 0.5em 0.75em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	text-decoration: none;
}

.navigation.pagination .current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

/* Sidebar
   -------------------------------------------------------------------------- */

.sidebar .widget {
	margin-bottom: var(--space-md);
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.widget__title {
	margin: 0 0 var(--space-sm);
	font-size: 1rem;
}

/* Footer
   -------------------------------------------------------------------------- */

.site-footer,
.site-footer--home {
	margin-top: auto;
	padding-block: 0;
	background: #0b0b0d;
	border-top: none;
	color: #fff;
	font-family: var(--font-hero);
}

.hp-footer__to-top {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.25rem, 3vw, 2rem) var(--space-md) 0;
	color: rgb(255 255 255 / 0.72);
	text-decoration: none;
	line-height: 0;
}

.hp-footer__to-top:hover {
	color: #fff;
}

.hp-footer__to-top-icon {
	display: block;
	width: clamp(1.75rem, 5vw, 2.75rem);
	height: auto;
}

.hp-footer__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-lg);
	padding-block: var(--space-xl) var(--space-md);
}

.hp-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-md);
	min-width: 0;
}

.hp-footer__affiliation {
	margin: 0 0 calc(-1 * var(--space-md) + 0.25rem);
	font-family: var(--font-display);
	font-size: clamp(0.65rem, 1.4vw, 0.82rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: rgb(255 255 255 / 0.88);
	white-space: nowrap;
}

.hp-footer__logo-link {
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.hp-footer__logo {
	display: block;
	width: auto;
	max-width: min(100%, 18rem);
	height: auto;
	max-height: 3.25rem;
}

.hp-footer__name {
	margin: 0;
	font-weight: 900;
}

.hp-footer__name a {
	color: #fff;
	text-decoration: none;
}

.hp-footer__info {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.9;
	color: rgb(255 255 255 / 0.72);
}

.hp-footer__info p {
	margin: 0;
}

.hp-footer__info a {
	color: inherit;
	text-decoration: none;
}

.hp-footer__info a:hover {
	color: #fff;
}

.hp-footer__nav {
	display: flex;
	align-items: flex-start;
	gap: clamp(0.85rem, 2.2vw, 1.5rem);
	margin-left: auto;
}

.hp-footer__nav .menu {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: clamp(0.85rem, 2.2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-footer__nav .menu a {
	display: inline-block;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	color: rgb(255 255 255 / 0.72);
	text-decoration: none;
	white-space: nowrap;
}

.hp-footer__nav .menu a:hover {
	color: #fff;
}

.hp-footer__social {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	flex-shrink: 0;
}

.hp-footer__social-link {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	color: rgb(255 255 255 / 0.72);
	text-decoration: none;
	line-height: 0;
	transition: color 0.2s ease;
}

.hp-footer__social-link:hover {
	color: #fff;
}

.hp-footer__social-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

@media (max-width: 767px) {
	.hp-footer__main {
		flex-direction: column;
		align-items: flex-start;
	}

	.hp-footer__nav {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
		gap: 0;
	}

	.hp-footer__nav .menu {
		display: contents;
	}

	.hp-footer__nav .menu li,
	.hp-footer__social {
		flex: 1 1 0;
		display: flex;
		justify-content: center;
	}

	.hp-footer__social {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
	}

	.hp-footer__logo {
		max-width: min(100%, 14rem);
		max-height: 2.75rem;
	}
}

.hp-footer__bar {
	padding-block: var(--space-sm);
	border-top: none;
}

.hp-footer__copy {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	color: rgb(255 255 255 / 0.45);
	text-align: center;
}

/* 404 & empty
   -------------------------------------------------------------------------- */

.not-found,
.no-results {
	padding: var(--space-lg);
	text-align: center;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.not-found .search-form,
.no-results .search-form {
	max-width: 24rem;
	margin-inline: auto;
}

/* Comments
   -------------------------------------------------------------------------- */

.comments-area {
	margin-top: var(--space-lg);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-border);
}

/* Home page sections
   -------------------------------------------------------------------------- */

.home-sections {
	max-width: var(--site-width);
}

.home-section {
	margin-bottom: var(--space-xl);
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.home-section__title {
	margin: 0 0 var(--space-md);
	padding-bottom: var(--space-sm);
	font-family: var(--font-display);
	font-size: 1.375rem;
	border-bottom: 2px solid var(--color-accent-light);
}

.home-cards {
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.home-card {
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.home-card h3 {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-display);
	font-size: 1.125rem;
}

.home-news-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-news-item {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: baseline;
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--color-border);
}

.home-news-item:last-child {
	border-bottom: none;
}

.home-news-item__date {
	flex-shrink: 0;
	font-size: 0.875rem;
	color: var(--color-muted);
}

.home-news-item__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.home-news-item__title a {
	color: var(--color-text);
	text-decoration: none;
}

.home-news-item__title a:hover {
	color: var(--color-accent);
}

.map-placeholder,
.contact-placeholder {
	padding: var(--space-lg);
	text-align: center;
	background: var(--color-accent-light);
	border: 1px dashed var(--color-border);
	border-radius: var(--radius);
	color: var(--color-muted);
}

.entry-content .lead {
	font-size: 1.125rem;
	color: var(--color-muted);
}

.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
	padding: 0.75em 1em;
	border: 1px solid var(--color-border);
	text-align: left;
}

.entry-content .wp-block-table th {
	background: var(--color-accent-light);
	font-weight: 600;
}

/* Buttons
   -------------------------------------------------------------------------- */

.button {
	display: inline-block;
	padding: 0.65em 1.25em;
	margin: 0.25em 0.25em 0.25em 0;
	font-size: 0.9375rem;
	color: #fff;
	background: var(--color-accent);
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	text-decoration: none;
}

.button:hover {
	opacity: 0.9;
	color: #fff;
}

.button--outline {
	color: var(--color-accent);
	background: transparent;
}

.button--outline:hover {
	background: var(--color-accent-light);
}

.home-section__link {
	font-weight: 600;
}

.home-section__more {
	margin-top: var(--space-md);
	text-align: center;
}

/* Sub pages (mbp-theme 同様、テンプレート直書き)
   -------------------------------------------------------------------------- */

.site-main--home .hero__title,
.site-main--home .hero__brand {
	margin: 0;
}

.sub-hero {
	padding: var(--space-lg) var(--space-md) var(--space-md);
	text-align: center;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
}

.sub-hero__crumb {
	margin: 0 0 var(--space-sm);
	font-size: 0.875rem;
	color: var(--color-muted);
}

.sub-hero__crumb a {
	color: inherit;
	text-decoration: none;
}

.sub-hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.4;
}

.sub-hero__title-sub {
	display: block;
	margin-top: 0.25em;
	font-size: 0.875rem;
	font-weight: 900;
	color: var(--color-muted);
}

.sub-hero__lead {
	margin: var(--space-sm) auto 0;
	max-width: var(--content-width);
	color: var(--color-muted);
}

.sub-page__body {
	padding-block: var(--space-lg);
}

.sub-page__lead {
	font-size: 1.0625rem;
	color: var(--color-muted);
}

.sub-page__heading {
	margin: var(--space-lg) 0 var(--space-sm);
	font-family: var(--font-display);
	font-size: 1.25rem;
}

.contact-page__lead {
	margin: 0 0 var(--space-md);
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.82);
}

.contact-page__phone {
	margin: 0 0 var(--space-md);
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.88);
}

.contact-page__phone a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.contact-page__rule {
	margin: 0 0 var(--space-lg);
	border: 0;
	border-top: 1px solid rgb(255 255 255 / 0.22);
}

.contact-page__info {
	margin: 0 0 var(--space-lg);
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.88);
}

.contact-page__info p {
	margin: 0;
}

.contact-page__name {
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
}

.contact-page__tel {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 2.5rem;
	margin-top: 0.35em;
}

.contact-page__tel a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.contact-page__note {
	margin-top: 0.35em;
	font-size: 0.8125em;
	letter-spacing: 0.03em;
	color: rgb(255 255 255 / 0.72);
}

.contact-page__form {
	margin: 0 0 var(--space-lg);
}

.contact-form {
	display: grid;
	gap: 1rem;
	max-width: 40rem;
}

.contact-form__row {
	margin: 0;
	display: grid;
	gap: 0.45rem;
}

.contact-form__row label {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.9);
}

.contact-form__req {
	margin-left: 0.45em;
	padding: 0.12em 0.45em;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #0b0b0d;
	background: #c9a24d;
	vertical-align: 0.1em;
}

.contact-form__row input,
.contact-form__row textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.85em 1em;
	border: 1px solid rgb(255 255 255 / 0.22);
	border-radius: 2px;
	background: rgb(255 255 255 / 0.06);
	color: #fff;
	font: inherit;
	line-height: 1.5;
}

.contact-form__row input:focus,
.contact-form__row textarea:focus {
	outline: 1px solid rgb(201 162 77 / 0.85);
	outline-offset: 1px;
}

.contact-form__privacy {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.7;
	color: rgb(255 255 255 / 0.72);
}

.contact-form__privacy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.contact-form__actions {
	margin: 0.35rem 0 0;
}

.contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.9em 1.6em;
	border: 1px solid #c9a24d;
	background: #c9a24d;
	color: #0b0b0d;
	font-size: 0.8125rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.contact-form__submit:hover {
	opacity: 0.92;
}

.contact-form__notice {
	margin: 0 0 1rem;
	padding: 0.9em 1em;
	border: 1px solid rgb(255 255 255 / 0.22);
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgb(255 255 255 / 0.92);
}

.contact-form__notice--success {
	border-color: #c9a24d;
	background: rgb(201 162 77 / 0.1);
}

.contact-form__notice--error,
.contact-form__notice--invalid {
	border-color: rgb(220 120 120 / 0.7);
}

.contact-form__complete {
	margin: 0;
	padding: 1.25rem 0 0.5rem;
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	font-weight: 700;
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.92);
}

/* Contact Form 7 */
.contact-page__form .wpcf7 {
	max-width: 40rem;
}

.contact-page__form .wpcf7-form > p,
.contact-page__form .contact-form__row {
	margin: 0 0 1rem;
}

.contact-page__form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.45rem;
}

.contact-page__form .wpcf7-form input[type="text"],
.contact-page__form .wpcf7-form input[type="email"],
.contact-page__form .wpcf7-form input[type="tel"],
.contact-page__form .wpcf7-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.85em 1em;
	border: 1px solid rgb(255 255 255 / 0.22);
	border-radius: 2px;
	background: rgb(255 255 255 / 0.06);
	color: #fff;
	font: inherit;
	line-height: 1.5;
}

.contact-page__form .wpcf7-form input:focus,
.contact-page__form .wpcf7-form textarea:focus {
	outline: 1px solid rgb(201 162 77 / 0.85);
	outline-offset: 1px;
}

.contact-page__form .wpcf7-submit,
.contact-page__form input.contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.9em 1.6em;
	border: 1px solid #c9a24d;
	background: #c9a24d;
	color: #0b0b0d;
	font-size: 0.8125rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.contact-page__form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 1em 1.1em;
	border: 1px solid #c9a24d;
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	font-weight: 700;
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.92);
	background: rgb(201 162 77 / 0.1);
}

.contact-page__form .wpcf7-form.sent .wpcf7-response-output {
	border-color: #c9a24d;
	color: rgb(255 255 255 / 0.92);
	background: rgb(201 162 77 / 0.1);
}

.contact-page__form .wpcf7-form.failed .wpcf7-response-output,
.contact-page__form .wpcf7-form.aborted .wpcf7-response-output,
.contact-page__form .wpcf7-form.spam .wpcf7-response-output,
.contact-page__form .wpcf7-form.invalid .wpcf7-response-output {
	border-color: rgb(220 120 120 / 0.85);
	background: rgb(220 120 120 / 0.08);
}

.contact-page__form .wpcf7-form.sent > *:not(.wpcf7-response-output) {
	display: none !important;
}

.contact-page__form .wpcf7-not-valid-tip {
	color: #f0a0a0;
	font-size: 0.8rem;
}

.access-page {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.access-page__body {
	box-sizing: border-box;
	padding-block: clamp(2.5rem, 6vw, 4rem) var(--space-xl);
}

.access-map {
	margin: 0 0 clamp(2rem, 5vw, 3.25rem);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background: #0f0f12;
}

.access-map__frame {
	display: block;
	width: 100%;
	height: clamp(16rem, 48vw, 26rem);
	border: 0;
}

.access-info {
	margin: 0;
	border-top: 1px solid rgb(255 255 255 / 0.22);
}

.access-info__row {
	display: grid;
	gap: 0.75rem 1.5rem;
	padding-block: clamp(1.35rem, 3.5vw, 2rem);
	border-bottom: 1px solid rgb(255 255 255 / 0.22);
	text-align: left;
}

@media (min-width: 720px) {
	.access-info__row {
		grid-template-columns: 7.5rem minmax(0, 1fr);
		align-items: start;
	}
}

.access-info__label {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.7;
	color: #fff;
}

.access-info__value {
	margin: 0;
	min-width: 0;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.88);
}

.access-info__value p {
	margin: 0;
}

.access-info__name {
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
}

.access-info__tel {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 2.5rem;
}

.access-info__tel a,
.access-info__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.access-info__note {
	margin-top: 0.35em;
	font-size: 0.8125em;
	letter-spacing: 0.03em;
	color: rgb(255 255 255 / 0.72);
}

.access-info__value--split {
	display: grid;
	gap: 1.25rem;
}

.access-info__subhead {
	margin-bottom: 0.2em;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
}

.access-info__col p + p {
	margin-top: 0.15em;
}

.sub-page__heading-sub {
	margin: 0 0 var(--space-xs);
	font-size: 1.0625rem;
}

.sub-page__list {
	margin: 0 0 var(--space-md);
	padding-left: 1.25em;
}

.sub-page__columns {
	display: grid;
	gap: var(--space-md);
}

@media (min-width: 768px) {
	.sub-page__columns {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sub-page__table {
	width: 100%;
	margin-bottom: var(--space-md);
	border-collapse: collapse;
}

.sub-page__table th,
.sub-page__table td {
	padding: 0.75em 1em;
	border: 1px solid var(--color-border);
	text-align: left;
}

.sub-page__table th {
	background: var(--color-accent-light);
	font-weight: 600;
}

.sub-page__note {
	margin-top: var(--space-lg);
	font-size: 0.875rem;
	color: var(--color-muted);
}

.pagination-wrap {
	margin-top: var(--space-lg);
}

/* About page
   -------------------------------------------------------------------------- */

.about-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Shared tall page hero
   -------------------------------------------------------------------------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: clamp(22rem, 68vh, 46rem);
	height: clamp(22rem, 68svh, 46rem);
	margin: 0;
	overflow: hidden;
	background: #0b0b0d;
}

/* Mobile: size from width so URL-bar show/hide does not resize (and zoom) the image. */
@media (max-width: 767px) {
	.page-hero:not(.page-hero--terabasu) {
		height: auto;
		aspect-ratio: 2 / 3;
		min-height: 18rem;
		max-height: none;
	}
}

.page-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--page-hero-object-position, center center);
	transform: none;
}

/* Mobile: nudge crop per page (lower % = show more left, higher % = show more right). */
@media (max-width: 767px) {
	.page-hero--about .page-hero__image {
		--page-hero-object-position: 48% 42%;
	}

	.page-hero--events .page-hero__image {
		--page-hero-object-position: 58% 45%;
	}

	.page-hero--news .page-hero__image,
	.page-hero--oshirase .page-hero__image {
		--page-hero-object-position: 42% 48%;
	}

	.page-hero--funeral .page-hero__image {
		--page-hero-object-position: 50% 40%;
	}

	.page-hero--access .page-hero__image {
		--page-hero-object-position: 70% 50%;
	}

	.page-hero--contact .page-hero__image,
	.page-hero--inqury .page-hero__image {
		--page-hero-object-position: 50% 55%;
	}
}

/* Dark / faint loop video (terabasu black-music mood) */
.page-hero--video {
	background: #050505;
}

.page-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.page-hero__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 0.28;
	filter: grayscale(0.15) contrast(1.08) brightness(0.92);
	transform: scale(1.03);
}

.page-hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 72% 58% at 50% 40%, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.48) 78%),
		linear-gradient(180deg, rgb(0 0 0 / 0.32) 0%, rgb(0 0 0 / 0.14) 45%, rgb(0 0 0 / 0.52) 100%);
}

.page-hero__grain {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0.24;
	background-image:
		repeating-linear-gradient(
			0deg,
			rgb(255 255 255 / 0.035) 0,
			rgb(255 255 255 / 0.035) 1px,
			transparent 1px,
			transparent 3px
		);
	mix-blend-mode: soft-light;
}

.page-hero--terabasu {
	height: clamp(24rem, 78vh, 52rem);
}

.page-hero--terabasu .page-hero__video {
	object-position: center top;
}

.page-hero--terabasu .page-hero__title {
	text-shadow:
		0 0.1em 0.4em rgb(0 0 0 / 0.75),
		0 0.02em 0.12em rgb(0 0 0 / 0.55);
}

.page-hero--terabasu .page-hero__en {
	letter-spacing: 0.28em;
	opacity: 0.88;
}

.page-hero__title {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	padding: 1rem;
	color: #fff;
	text-align: center;
	text-shadow:
		0 0.08em 0.28em rgb(0 0 0 / 0.55),
		0 0.02em 0.08em rgb(0 0 0 / 0.4);
	clip-path: inset(0 0 100% 0);
	transition: clip-path 1.45s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.page-hero__title.is-visible {
	clip-path: inset(0 0 0 0);
}

.page-hero__en {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.7rem, 1.4vw, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: none;
}

.page-hero__ja {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.85;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	white-space: nowrap;
}

.about-hero,
.events-hero,
.funeral-hero,
.terabasu-hero {
	display: none;
}

.about-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 2.5vw, 1.5rem);
	text-align: center;
	box-sizing: border-box;
}

.about-intro__crest {
	display: block;
	width: clamp(1.75rem, 5vw, 2.75rem);
	height: auto;
}

.about-intro__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.6vw, 1.625rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: #fff;
}

/* About soft reveal */
.js-about-reveal {
	opacity: 0;
	filter: blur(12px);
	transform: translate3d(0, 1rem, 0);
	will-change: opacity, filter, transform;
}

.js-about-reveal.is-inview {
	animation: about-soft-in 1.35s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.about-chronology__visual.js-about-reveal.is-inview,
.about-abbot.js-about-reveal.is-inview,
.about-intro__crest.js-about-reveal.is-inview,
.about-activities__visual.js-about-reveal.is-inview {
	animation-duration: 1.55s;
}

@keyframes about-soft-in {
	from {
		opacity: 0;
		filter: blur(12px);
		transform: translate3d(0, 1rem, 0);
	}

	to {
		opacity: 1;
		filter: blur(0);
		transform: translate3d(0, 0, 0);
	}
}

.about-chronology {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	box-sizing: border-box;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-xl);
	text-align: center;
}

.about-chronology__body {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
	width: min(100%, 52rem);
	margin: 0;
	text-align: left;
}

@media (min-width: 900px) {
	.about-chronology__body {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: clamp(1.5rem, 3vw, 2.5rem);
	}
}

.about-chronology__lead {
	width: 100%;
	margin: 0;
	text-align: left;
}

.about-chronology__lead p {
	margin: 0;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	line-height: 2;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.82);
}

.about-chronology__lead p + p {
	margin-top: 1em;
}

.about-chronology__visual {
	margin: 0;
	min-width: 0;
	overflow: hidden;
}

.about-chronology__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 40%;
}

.about-chronology__list {
	display: grid;
	gap: 0.85em;
	width: min(100%, 42rem);
	margin: clamp(0.5rem, 2vw, 1rem) 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.about-chronology__item {
	display: grid;
	grid-template-columns: 6.5em 1fr;
	gap: 0.75em 1.25em;
	align-items: baseline;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	line-height: 1.85;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.82);
}

.about-chronology__year {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}

.about-chronology__detail {
	min-width: 0;
}

.about-abbot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	width: min(100%, 18rem);
	margin: clamp(1.5rem, 4vw, 2.75rem) 0 0;
	padding: 0;
}

.about-abbot__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

.about-abbot__caption {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.5;
	color: #fff;
}

.about-events {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	box-sizing: border-box;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-xl);
	text-align: center;
}

.about-events__list {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	width: min(100%, 42rem);
	margin: clamp(0.5rem, 2vw, 1rem) 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.about-events__item {
	display: grid;
	gap: 0.55rem;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	line-height: 1.85;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.82);
}

.about-events__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1rem;
	color: #fff;
}

.about-events__month {
	flex: 0 0 auto;
	font-weight: 700;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.about-events__name {
	flex: 1 1 12rem;
	min-width: 0;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.about-events__detail {
	min-width: 0;
}

.about-events__detail p {
	margin: 0;
}

.about-events__detail p + p {
	margin-top: 0.65em;
}

.about-activities {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	box-sizing: border-box;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-xl);
	text-align: center;
}

.about-activities__list {
	display: grid;
	gap: clamp(2.75rem, 7vw, 4.5rem);
	width: min(100%, 56rem);
	margin: 0;
}

.about-activities__body {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
	width: 100%;
	margin: 0;
	text-align: left;
}

@media (min-width: 900px) {
	.about-activities__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(1.5rem, 3.5vw, 2.75rem);
	}

	.about-activities__body--flip .about-activities__lead {
		order: 2;
	}

	.about-activities__body--flip .about-activities__visual {
		order: 1;
	}
}

.about-activities__lead {
	width: 100%;
	margin: 0;
	text-align: left;
}

.about-activities__subtitle {
	margin: 0 0 1em;
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	color: #fff;
}

.about-activities__lead p {
	margin: 0;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	line-height: 2;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.82);
}

.about-activities__lead p + p {
	margin-top: 1em;
}

.about-activities__more {
	margin-top: 1.35em !important;
}

.about-activities__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgb(255 255 255 / 0.45);
	padding-bottom: 0.15em;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.about-activities__link::after {
	content: "→";
	font-weight: 400;
	letter-spacing: 0;
}

.about-activities__link:hover,
.about-activities__link:focus-visible {
	color: #fff;
	border-bottom-color: #fff;
}

.about-activities__visual {
	margin: 0;
	min-width: 0;
	overflow: hidden;
}

.about-activities__visual-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.about-activities__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center;
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-activities__visual-link:hover .about-activities__image,
.about-activities__visual-link:focus-visible .about-activities__image {
	transform: scale(1.03);
}

/* Events page
   -------------------------------------------------------------------------- */

.events-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	overflow-x: clip;
}

.events-intro {
	box-sizing: border-box;
	width: 100%;
	padding-block: clamp(3.25rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
	text-align: center;
}

.events-intro__lead {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.7;
	color: #fff;
}

.events-list {
	display: grid;
	gap: clamp(6.5rem, 18vh, 11rem);
	box-sizing: border-box;
	padding: clamp(3.5rem, 10vh, 6.5rem) 0 var(--space-xl);
	text-align: left;
}

.events-item {
	--events-scale: 0.9;
	--events-shift: 88px;
	--events-peak: 0;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
	transform: translate3d(var(--events-shift), 0, 0) scale(var(--events-scale));
	transform-origin: left center;
	will-change: transform;
}

@media (min-width: 900px) {
	.events-item {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: clamp(1.75rem, 3.5vw, 3rem);
	}
}

.events-item__visual {
	margin: 0;
	min-width: 0;
	overflow: hidden;
	border-radius: 0.85rem;
	line-height: 0;
	background: #1a1510;
}

.events-item__image,
.events-item__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.events-item__placeholder {
	background: linear-gradient(135deg, #2a241c, #15110e);
}

.events-item__copy {
	min-width: 0;
}

.events-item__marker {
	position: relative;
	width: 2.1rem;
	height: 2.1rem;
	margin: 0 0 0.75rem;
}

.events-item__crest,
.events-item__num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	transition: opacity 0.05s linear;
}

.events-item__crest {
	object-fit: contain;
	opacity: 1;
	transform-origin: center center;
	will-change: transform, opacity;
}

.events-item__crest--fallback {
	border-radius: 50%;
	background: #c9a24d;
}

.events-item__num {
	color: #c9a24d;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1;
	opacity: 0;
	transform: scale(0.7);
	will-change: transform, opacity;
}

.events-item__title {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.2vw, 1.5rem);
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.45;
	color: #c9a24d;
}

.events-item__body p {
	margin: 0;
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.82);
}

.events-note {
	box-sizing: border-box;
	padding-block: clamp(1.5rem, 4vw, 3rem) var(--space-xl);
	text-align: center;
}

.events-note p {
	margin: 0;
	font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
	font-weight: 400;
	line-height: 2.1;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.82);
}

/* Funeral page
   -------------------------------------------------------------------------- */

.funeral-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.funeral-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 2.5vw, 1.75rem);
	text-align: center;
}

.funeral-intro__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.6vw, 1.625rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: #fff;
}

.funeral-list {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4.5rem);
	box-sizing: border-box;
	padding: clamp(2.75rem, 7vw, 5rem) var(--space-md) var(--space-xl);
	text-align: left;
}

.funeral-item {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	align-items: start;
}

@media (min-width: 900px) {
	.funeral-item {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.funeral-item--reverse .funeral-item__copy {
		order: 2;
	}

	.funeral-item--reverse .funeral-item__visual {
		order: 1;
	}
}

.funeral-item__copy {
	min-width: 0;
}

.funeral-item__title {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.2vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.45;
	color: #fff;
}

.funeral-item__body p {
	margin: 0;
	font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.82);
}

.funeral-item__visual {
	margin: 0;
	min-width: 0;
	overflow: hidden;
}

.funeral-item__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

/* Funeral scroll reveal — text wipe from left, soft image fade */
.funeral-item__title,
.funeral-item__body p {
	opacity: 0;
	transform: translate3d(-1.75rem, 0, 0);
	clip-path: inset(0 100% 0 0);
	will-change: opacity, transform, clip-path;
}

.funeral-item__image {
	opacity: 0;
	filter: blur(18px);
	transform: scale(1.04);
	will-change: opacity, filter, transform;
}

.funeral-item.is-inview .funeral-item__title {
	animation: funeral-copy-in 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.funeral-item.is-inview .funeral-item__body p:nth-child(1) {
	animation: funeral-copy-in 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s forwards;
}

.funeral-item.is-inview .funeral-item__body p:nth-child(2) {
	animation: funeral-copy-in 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s forwards;
}

.funeral-item.is-inview .funeral-item__body p:nth-child(3) {
	animation: funeral-copy-in 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) 0.44s forwards;
}

.funeral-item.is-inview .funeral-item__image {
	animation: funeral-image-in 1.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s forwards;
}

@keyframes funeral-copy-in {
	from {
		opacity: 0;
		transform: translate3d(-1.75rem, 0, 0);
		clip-path: inset(0 100% 0 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		clip-path: inset(0 0 0 0);
	}
}

@keyframes funeral-image-in {
	from {
		opacity: 0;
		filter: blur(18px);
		transform: scale(1.04);
	}

	to {
		opacity: 1;
		filter: blur(0);
		transform: scale(1);
	}
}

.funeral-note {
	box-sizing: border-box;
	padding-block: clamp(1.5rem, 4vw, 3rem) var(--space-xl);
	text-align: center;
}

.funeral-note p {
	margin: 0;
	font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
	font-weight: 400;
	line-height: 2.1;
	letter-spacing: 0.06em;
	color: rgb(255 255 255 / 0.82);
}

.funeral-note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.funeral-note a:hover {
	opacity: 0.85;
}

/* Terabasu page
   -------------------------------------------------------------------------- */

.terabasu-page {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	background: #050505;
	color: rgb(236 236 240 / 0.92);
}

.terabasu-lead {
	width: 100%;
	padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
	background: #050505;
	text-align: center;
}

.terabasu-lead__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 3.5vw, 2.25rem);
	margin-inline: auto;
	text-align: center;
}

.terabasu-lead__title {
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.75rem, 2.5vw, 1.35rem);
	width: 100%;
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.6vw, 1.625rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: #fff;
	text-align: center;
}

.terabasu-lead__crest {
	display: block;
	width: clamp(1.75rem, 5vw, 2.75rem);
	height: auto;
	flex: 0 0 auto;
}

.terabasu-lead__title-text {
	display: inline-block;
}

.terabasu-lead__body {
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
}

@media (min-width: 900px) {
	.terabasu-lead__body {
		max-width: 48rem;
	}
}

.terabasu-lead__body p {
	margin: 0 0 1em;
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	line-height: 1.95;
	letter-spacing: 0.04em;
	color: rgb(220 220 226 / 0.78);
	text-align: center;
	text-wrap: pretty;
}

.terabasu-lead__body p:last-child {
	margin-bottom: 0;
}

/* Terabasu rules */

.terabasu-rules {
	width: 100%;
	padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5.5rem);
	background: #050505;
	overflow: visible;
}

.terabasu-rules__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.5rem, 4vw, 2.25rem);
	text-align: left;
	overflow: visible;
}

.terabasu-rules__title {
	margin: 0;
	width: 100%;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.8vw, 1.625rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #fff;
	text-align: center;
}

.terabasu-rules__list {
	display: grid;
	gap: 0.85rem;
	width: 100%;
	max-width: 30rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	overflow: visible;
}

.terabasu-rules__item {
	display: grid;
	grid-template-columns: 1.55rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	margin: 0;
	overflow: visible;
}

.terabasu-rules__ball {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.28rem;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
	background: none;
	box-shadow: none;
	opacity: 0;
	transform: rotate(-120deg) scale(0.55);
}

.terabasu-rules__text {
	display: block;
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	line-height: 1.95;
	letter-spacing: 0.04em;
	color: rgb(220 220 226 / 0.78);
	opacity: 0;
	transform: translate3d(8rem, 0, 0);
}

/* One line every 0.5s once section is active */
.terabasu-rules.is-active .terabasu-rules__text {
	animation-name: terabasu-rules-fly-rtl;
	animation-duration: 0.55s;
	animation-timing-function: cubic-bezier(0.16, 0.84, 0.24, 1);
	animation-fill-mode: both;
	animation-delay: calc(var(--rules-i, 0) * 0.5s);
}

.terabasu-rules.is-active .terabasu-rules__ball {
	animation-name: terabasu-rules-spin;
	animation-duration: 0.7s;
	animation-timing-function: cubic-bezier(0.22, 0.9, 0.3, 1);
	animation-fill-mode: both;
	animation-delay: calc(var(--rules-i, 0) * 0.5s);
}

@keyframes terabasu-rules-fly-rtl {
	0% {
		opacity: 0;
		transform: translate3d(8rem, 0, 0);
	}

	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes terabasu-rules-spin {
	0% {
		opacity: 0;
		transform: rotate(-120deg) scale(0.55);
	}

	55% {
		opacity: 1;
		transform: rotate(220deg) scale(1.08);
	}

	100% {
		opacity: 1;
		transform: rotate(360deg) scale(1);
	}
}

.page-hero__title--blackletter {
	flex-direction: column;
	gap: 0.85rem;
	clip-path: none;
	opacity: 1;
	transform: none;
	filter: none;
	padding-inline: 1rem;
	width: min(100%, 48rem);
}

.page-hero__title--blackletter.is-visible {
	opacity: 1;
	transform: none;
	filter: none;
}

.page-hero__blackletter {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.12em;
	font-family: var(--font-terabasu-display, var(--font-display));
	font-size: clamp(2.1rem, 6.2vw, 4rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.02em;
	color: #fff;
	text-shadow:
		0 0.08em 0.35em rgb(0 0 0 / 0.8),
		0 0.02em 0.1em rgb(0 0 0 / 0.55);
}

.page-hero__blackletter-line {
	display: block;
	white-space: nowrap;
}

.page-hero__char {
	display: inline-block;
	opacity: 0;
}

.page-hero__char.is-shown {
	opacity: 1;
}

.page-hero__caret {
	display: inline-block;
	width: 0.08em;
	height: 0.9em;
	margin-left: 0.06em;
	vertical-align: -0.05em;
	background: #fff;
	animation: page-hero-caret-blink 0.7s steps(1) infinite;
}

.page-hero__caret[hidden] {
	display: none;
}

@keyframes page-hero-caret-blink {
	50% {
		opacity: 0;
	}
}

.page-hero__title-sub--pending {
	opacity: 0;
}

.page-hero__title-sub.is-shown {
	opacity: 1;
	transition: opacity 0.35s ease;
}

.page-hero__title--image {
	clip-path: none;
	opacity: 0;
	transform: translateY(0.6rem);
	filter: blur(8px);
	transition:
		opacity 1.2s cubic-bezier(0.33, 0, 0.2, 1),
		transform 1.2s cubic-bezier(0.33, 0, 0.2, 1),
		filter 1.2s cubic-bezier(0.33, 0, 0.2, 1);
	padding-inline: 1rem;
	width: min(100%, 48rem);
	flex-direction: column;
	gap: 0.55rem;
}

.page-hero__title--image.is-visible {
	opacity: 1;
	transform: none;
	filter: none;
}

.page-hero__title-heading {
	margin: 0;
	display: flex;
	justify-content: center;
	width: 100%;
}

.page-hero__title-img {
	display: block;
	width: min(92vw, 40rem);
	max-width: 100%;
	height: auto;
	/* bl.png is white on black — drop the black plate on dark hero */
	mix-blend-mode: screen;
}

.page-hero__title-sub {
	margin: 0.35rem 0 0;
	font-family: var(--font-display);
	font-size: clamp(0.72rem, 1.5vw, 0.95rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.18em;
	color: rgb(255 255 255 / 0.88);
	text-align: center;
	text-shadow: 0 0.08em 0.28em rgb(0 0 0 / 0.65);
}

.terabasu-block {
	width: 100%;
	padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.terabasu-block__inner {
	width: min(100% - 2rem, var(--site-width));
	margin-inline: auto;
}

.terabasu-kicker {
	margin: 0 0 0.85rem;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgb(230 230 236 / 0.55);
}

.terabasu-heading {
	margin: 0 0 1.25rem;
	font-family: var(--font-display);
	font-size: clamp(1.55rem, 3.4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.06em;
	color: #fff;
}

.terabasu-body {
	max-width: 36rem;
}

.terabasu-body p {
	margin: 0 0 1em;
	font-size: clamp(0.98rem, 1.5vw, 1.08rem);
	line-height: 1.95;
	color: rgb(220 220 226 / 0.78);
}

.terabasu-body p:last-child {
	margin-bottom: 0;
}

.terabasu-intro__copy {
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.terabasu-intro__visual {
	margin: 0;
	overflow: hidden;
}

.terabasu-intro__visual img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	filter: grayscale(0.2) contrast(1.05);
}

.terabasu-after__head {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.terabasu-rail {
	display: flex;
	gap: 0.55rem;
	padding-inline: max(1rem, calc((100% - var(--site-width)) / 2));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.terabasu-rail__item {
	flex: 0 0 min(78vw, 28rem);
	margin: 0;
	scroll-snap-align: start;
	overflow: hidden;
}

.terabasu-rail__item img {
	width: 100%;
	height: min(58vw, 20rem);
	object-fit: cover;
	filter: grayscale(0.18) contrast(1.06);
}

.terabasu-place {
	padding-top: 0;
}

.terabasu-place__bleed {
	margin: 0;
	width: 100%;
	overflow: hidden;
}

.terabasu-place__bleed img {
	width: 100%;
	height: clamp(18rem, 62vh, 34rem);
	object-fit: cover;
	filter: grayscale(0.25) brightness(0.82) contrast(1.08);
}

.terabasu-place__caption {
	padding-top: clamp(1.5rem, 4vw, 2.25rem);
}

.terabasu-place__text {
	margin: 0;
	max-width: 28rem;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.85;
	letter-spacing: 0.04em;
	color: rgb(236 236 240 / 0.88);
}

.terabasu-alumni__head {
	margin-bottom: clamp(2rem, 5vw, 3rem);
}

.terabasu-alumni__layout {
	display: grid;
	gap: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 900px) {
	.terabasu-alumni__layout {
		grid-template-columns: 1.05fr 0.95fr;
		align-items: start;
	}
}

.terabasu-alumni__photo {
	margin: 0;
	overflow: hidden;
}

.terabasu-alumni__photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(0.15) contrast(1.08);
}

.terabasu-alumni__years {
	display: flex;
	flex-direction: column;
	gap: clamp(1.35rem, 3vw, 2rem);
}

.terabasu-alumni__year-label {
	margin: 0 0 0.55rem;
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: rgb(230 230 236 / 0.5);
}

.terabasu-alumni__names {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
}

.terabasu-alumni__name {
	font-family: var(--font-terabasu-display, var(--font-display));
	font-size: clamp(1.05rem, 2.1vw, 1.35rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.08em;
	color: #fff;
}

.terabasu-gift__copy {
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.terabasu-gift__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
}

.terabasu-gift__item {
	margin: 0;
	overflow: hidden;
	background: #0b0b0d;
}

.terabasu-gift__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	padding: 0.75rem;
}

@media (max-width: 640px) {
	.terabasu-gift__grid {
		grid-template-columns: 1fr;
	}
}

.terabasu-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem;
	margin-top: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 768px) {
	.terabasu-gallery__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.terabasu-gallery__item {
	margin: 0;
	overflow: hidden;
}

.terabasu-gallery__item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	filter: grayscale(0.2) contrast(1.05);
}

.terabasu-gallery__item:nth-child(3n) img {
	aspect-ratio: 4 / 5;
}

.terabasu-cta {
	padding-block: clamp(4rem, 10vw, 7rem);
	text-align: center;
	border-top: 1px solid rgb(255 255 255 / 0.08);
}

.terabasu-cta__text {
	margin: 0 0 1.25rem;
	font-size: clamp(1rem, 2vw, 1.2rem);
	letter-spacing: 0.08em;
	color: rgb(230 230 236 / 0.78);
}

.terabasu-cta__link {
	display: inline-block;
	color: #fff;
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-decoration: none;
	border-bottom: 1px solid rgb(255 255 255 / 0.45);
	padding-bottom: 0.2rem;
}

.terabasu-cta__link:hover {
	opacity: 1;
	border-bottom-color: #fff;
}

/* Terabasu orbital alumni gallery
   -------------------------------------------------------------------------- */

.terabasu-orbit {
	--orbit-count: 16;
	--scroll-steps: 48;
	position: relative;
	width: 100%;
	/* Scroll length follows alumni list; images keep cycling for that duration. */
	height: calc(100vh + (var(--scroll-steps) * 55vh));
	background: #050505;
	color: #fff;
}

.terabasu-orbit__sticky {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(0.85rem, 2.5vh, 1.5rem);
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background: #050505;
	padding-block: clamp(0.75rem, 2vh, 1.25rem);
	box-sizing: border-box;
}

.terabasu-orbit__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-align: center;
	flex: 0 0 auto;
	z-index: 2;
}

.terabasu-orbit__heading-en {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.6vw, 1.625rem);
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: none;
	color: #fff;
}

.terabasu-orbit__stage {
	/*
	 * Center-led sizing: larger center, thumbs still touch
	 * center and neighbors. --orbit-count comes from registered images (max 30).
	 */
	--center-size: min(68vw, 30rem);
	--thumb-size: calc(var(--center-size) / (1 / sin(pi / var(--orbit-count)) - 1));
	--orbit-radius: calc((var(--center-size) + var(--thumb-size)) / 2);
	position: relative;
	width: calc(var(--orbit-radius) * 2 + var(--thumb-size));
	height: calc(var(--orbit-radius) * 2 + var(--thumb-size));
	max-width: 96vw;
	max-height: calc(100dvh - 6.5rem);
	flex: 0 1 auto;
}

.terabasu-orbit__ring {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.terabasu-orbit__thumb {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--thumb-size);
	height: var(--thumb-size);
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	transform:
		translate(-50%, -50%)
		rotate(calc((var(--orbit-index) / var(--orbit-count)) * 360deg))
		translateY(calc(-1 * var(--orbit-radius)))
		rotate(calc((var(--orbit-index) / var(--orbit-count)) * -360deg));
	opacity: 0.45;
	filter: grayscale(0.3) brightness(0.78);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
	transition:
		opacity 0.3s ease,
		filter 0.3s ease,
		box-shadow 0.3s ease;
}

.terabasu-orbit__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.terabasu-orbit__thumb.is-active {
	opacity: 1;
	filter: none;
	box-shadow:
		0 0 0 2px #fff,
		0 0 1.5rem rgb(255 255 255 / 0.18);
	z-index: 2;
}

.terabasu-orbit__center {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--center-size);
	height: var(--center-size);
	transform: translate(-50%, -50%);
	border-radius: 50%;
	overflow: hidden;
	background: #0b0b0d;
	box-shadow:
		0 0 0 1px rgb(255 255 255 / 0.16),
		0 1.5rem 3rem rgb(0 0 0 / 0.55);
	z-index: 3;
}

.terabasu-orbit__center-media {
	position: absolute;
	inset: 0;
}

.terabasu-orbit__center-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.06);
	filter: grayscale(0.2) brightness(0.55);
	transition:
		opacity 0.45s ease,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.terabasu-orbit__center-img.is-active {
	opacity: 1;
	transform: scale(1);
}

.terabasu-orbit__names {
	position: absolute;
	inset: 18% 12%;
	z-index: 2;
	overflow: hidden;
	mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
	display: block;
	text-align: center;
	pointer-events: none;
}

.terabasu-orbit__names-track {
	will-change: transform;
	padding-top: 42%;
	padding-bottom: 42%;
	box-sizing: border-box;
}

.terabasu-orbit__year-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15em;
	padding: 0.85em 0 1.15em;
	text-align: center;
}

.terabasu-orbit__year {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	margin: 0 0 0.35em;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 3.2vw, 2rem);
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.2;
	color: rgb(255 255 255 / 0.78);
}

.terabasu-orbit__year-num {
	font-variant-numeric: tabular-nums;
}

.terabasu-orbit__year-crest {
	display: block;
	width: 0.72em;
	height: 0.72em;
	flex-shrink: 0;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.78;
}

.terabasu-orbit__name {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0.12em;
	margin: 0;
	padding: 0.4em 0;
	line-height: 1.15;
	white-space: nowrap;
}

.terabasu-orbit__name-en {
	font-family: "Zen Old Mincho", "游明朝", YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
	font-size: clamp(1.35rem, 3.4vw, 2.35rem);
	font-weight: 500;
	letter-spacing: 0.1em;
	color: #fff;
	text-shadow:
		0 0.08em 0.35em rgb(0 0 0 / 0.85),
		0 0.02em 0.1em rgb(0 0 0 / 0.6);
}

.terabasu-orbit__name-ja {
	font-family: var(--font-terabasu-display, var(--font-display));
	font-size: clamp(0.72rem, 1.7vw, 1.05rem);
	font-weight: 400;
	letter-spacing: 0.08em;
	color: rgb(170 170 176 / 0.78);
	text-shadow: 0 0.06em 0.25em rgb(0 0 0 / 0.65);
}

@media (max-width: 640px) {
	.terabasu-orbit__stage {
		--center-size: min(72vw, 20rem);
		max-height: calc(100dvh - 6.5rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.terabasu-orbit__thumb,
	.terabasu-orbit__center-img {
		transition: none;
	}

	.page-hero__caret {
		animation: none;
	}
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}
