/*
 * トップページ
 */

/* ============ 1画面目 ============ */
.ns-hero {
	position: relative;
	isolation: isolate;
	height: clamp(540px, calc(100svh - 76px), 860px);
	overflow: hidden;
	background: var(--wp--preset--color--deep);
}

.ns-hero__media,
.ns-hero__media picture {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ns-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 42%;
}

.ns-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(18, 12, 40, 0.62) 0%, rgba(18, 12, 40, 0.16) 42%, rgba(18, 12, 40, 0) 64%),
		linear-gradient(270deg, rgba(18, 12, 40, 0.38) 0%, rgba(18, 12, 40, 0) 55%);
}

.ns-hero__body {
	position: absolute;
	right: max(clamp(20px, 4vw, 40px), calc((100% - 1160px) / 2 + 40px));
	bottom: clamp(40px, 6vh, 72px);
	display: grid;
	justify-items: start;
	gap: 24px;
	max-width: 720px;
	color: #ffffff;
}

.ns-hero__title {
	display: grid;
	gap: 14px;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	color: #ffffff;
	text-shadow: 0 1px 18px rgba(18, 12, 40, 0.35);
}

.ns-hero__school {
	font-size: 17px;
	letter-spacing: 0.2em;
}

.ns-hero__catch {
	font-size: clamp(40px, 4.6vw, 66px);
	line-height: 1.25;
	letter-spacing: 0.06em;
}

.ns-hero__cta {
	min-width: 280px;
	min-height: 58px;
	font-size: 17px;
}

/* ============ 区画の共通 ============ */
.ns-philosophy,
.ns-schedule,
.ns-guide,
.ns-front-news,
.ns-links {
	padding-block: clamp(56px, 7vw, 104px);
}

.ns-join,
.ns-schedule,
.ns-guide,
.ns-front-news,
.ns-links {
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ============ 理念と活動方針 ============ */
.ns-philosophy__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px clamp(40px, 6vw, 96px);
	align-items: start;
}

.ns-philosophy__head {
	position: sticky;
	top: 112px;
}

.ns-philosophy__head .ns-h2 {
	font-size: clamp(30px, 3.4vw, 46px);
	letter-spacing: 0.02em;
}

.ns-philosophy__lead {
	margin-top: 28px;
	font-size: 17px;
	line-height: 2;
	color: var(--wp--preset--color--text);
}

.ns-policies {
	border-top: 1px solid var(--wp--preset--color--line);
}

.ns-policies__row {
	padding: 26px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ns-policies dt {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(21px, 2vw, 25px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--accent);
}

.ns-policies dd {
	margin-top: 8px;
	font-size: 16px;
	line-height: 1.9;
}

.ns-philosophy__close {
	margin-top: 28px;
	font-size: 16px;
	line-height: 2;
}

/* ============ 集合写真 ============ */
.ns-team img {
	width: 100%;
	height: clamp(220px, 36vw, 560px);
	object-fit: cover;
	object-position: 50% 45%;
}

/* ============ 入会のご案内 ============ */
.ns-join {
	padding-block: clamp(48px, 6vw, 80px);
	border-top: 0;
}

.ns-join__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px clamp(32px, 5vw, 72px);
	align-items: start;
}

.ns-join__steps {
	display: grid;
	justify-items: start;
	gap: 24px;
}

.ns-join__steps .ns-btn {
	min-width: 300px;
}

.ns-join__text {
	max-width: 36em;
	font-size: 16px;
	line-height: 1.95;
}

.ns-join__notice {
	padding: 24px 28px;
	border: 1px solid var(--wp--preset--color--line);
	font-size: 15px;
	line-height: 1.9;
}

.ns-join__notice-title {
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

/* ============ 今後の予定 ============ */
.ns-schedule__note {
	margin-top: 12px;
	font-size: 14px;
	color: var(--wp--preset--color--sub);
}

.ns-calendar {
	margin-top: 28px;
	border: 1px solid var(--wp--preset--color--line);
}

.ns-calendar iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	border: 0;
}

/* ============ 私達の活動や仲間募集について ============ */
.ns-guide__list {
	margin-top: 32px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ns-guide__list li {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ns-guide__link {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto;
	gap: 8px 32px;
	align-items: center;
	padding: 28px 4px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ns-guide__name {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--ink);
	transition: color 0.2s ease;
}

.ns-guide__text {
	font-size: 16px;
}

.ns-guide__link .ns-arrow {
	width: 22px;
	height: 22px;
	color: var(--wp--preset--color--accent);
}

.ns-guide__link:hover .ns-guide__name {
	color: var(--wp--preset--color--accent);
}

.ns-guide__link:hover .ns-arrow {
	transform: translateX(4px);
}

/* ============ お知らせ ============ */
.ns-front-news__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 24px clamp(32px, 5vw, 72px);
	align-items: start;
}

/* ============ 理事長挨拶と各種リンク ============ */
.ns-links__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px clamp(32px, 5vw, 72px);
	margin-top: 36px;
	align-items: start;
}

.ns-chair {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 28px 36px;
	align-items: end;
}

.ns-chair__photo img {
	width: 100%;
	height: auto;
}

.ns-chair__role {
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--sub);
}

.ns-chair__name {
	margin-top: 4px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.ns-chair__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ns-chair__name a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

.ns-chair__titles {
	display: grid;
	gap: 4px;
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--wp--preset--color--sub);
}

.ns-links__list {
	display: grid;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ns-links__list li {
	padding: 24px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ns-links__label {
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--sub);
}

.ns-links__name {
	margin-top: 2px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--ink);
}

.ns-links__text {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.8;
}

.ns-links__go {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.ns-links__go:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ns-front + .ns-footer {
	margin-top: 0;
}

@supports (word-break: auto-phrase) {
	.ns-front :is(p, dd) {
		word-break: auto-phrase;
	}
}

/* ============ タブレット・SP ============ */
@media (max-width: 1099px) {
	.ns-hero {
		height: clamp(520px, calc(100svh - 64px), 760px);
	}
}

@media (max-width: 899px) {
	.ns-hero {
		height: auto;
		overflow: visible;
		background: none;
	}

	.ns-hero__media {
		position: relative;
		inset: auto;
		z-index: 0;
		aspect-ratio: 5 / 4;
		max-height: 56svh;
		width: 100%;
		overflow: hidden;
	}

	.ns-hero__scrim {
		display: none;
	}

	.ns-hero__img {
		object-position: 36% 50%;
	}

	.ns-hero__body {
		position: static;
		max-width: none;
		gap: 20px;
		padding: 24px clamp(20px, 4vw, 40px) 8px;
		color: var(--wp--preset--color--ink);
	}

	.ns-hero__title {
		gap: 6px;
		color: var(--wp--preset--color--ink);
		text-shadow: none;
	}

	.ns-hero__school {
		font-size: 14px;
		letter-spacing: 0.14em;
		color: var(--wp--preset--color--sub);
	}

	.ns-hero__catch {
		font-size: clamp(32px, 9vw, 44px);
	}

	.ns-hero__cta {
		width: 100%;
		min-width: 0;
	}

	.ns-philosophy__grid,
	.ns-join__grid,
	.ns-front-news__grid,
	.ns-links__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ns-philosophy__head {
		position: static;
	}

	.ns-philosophy__lead {
		margin-top: 18px;
	}

	.ns-join__steps {
		justify-items: stretch;
	}

	.ns-join__steps .ns-btn {
		min-width: 0;
	}

	.ns-guide__link {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "name arrow" "text arrow";
		padding-block: 22px;
	}

	.ns-guide__name {
		grid-area: name;
	}

	.ns-guide__text {
		grid-area: text;
		font-size: 15px;
	}

	.ns-guide__link .ns-arrow {
		grid-area: arrow;
	}

	.ns-calendar iframe {
		aspect-ratio: 4 / 5;
	}
}

@media (max-width: 560px) {
	.ns-chair {
		grid-template-columns: minmax(0, 1fr);
	}

	.ns-chair__photo {
		max-width: 240px;
	}
}
