/*
 * ifuk メインスタイル
 *
 * デザイン方針は「デザイン憲法」+ demos(森の音系)準拠。
 * - 色は theme.json のプリセット(--wp--preset--color--*)のみ使用(5〜6色縛り)
 * - 生成り背景 × 墨色テキスト × デニム藍アクセント(+テラコッタ差し色)
 * - 英字キッカー + 日本語見出しの2段構成、広めの字間・行間(1.9)
 * - ボタンは primary / secondary の2種のみ
 * - フェードイン: opacity + translateY(24px) / 0.7s ease-out / 0.12sスタガー
 */

/* ==========================================================================
   ベース
   ========================================================================== */

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

/* ページ内リンク(目次など)はスムーススクロール */
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* 装飾下線はborderでなくtext-decorationで(折返し時の被り防止) */
a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.25em;
}

/* 面全体が操作対象のボタン・カード型リンクには、テキストの下線を付けない */
a:is(
	[class*="btn"],
	[class*="button"],
	[class*="card"],
	[role="button"]
):hover,
.entry-row__link:hover {
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.5em 1em;
	clip: auto;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* 英字キッカー(見出し上の小ラベル)。line-height:1でハーフレディングを持たせない */
.kicker {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.35em;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   ボタン(primary / secondary の2種のみ)
   ========================================================================== */

.btn-primary,
.search-form__submit,
.wp-block-search__button,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-block;
	padding: 0.9em 2.5em;
	background: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1.4;
	cursor: pointer;
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.btn-primary:hover,
.search-form__submit:hover,
.wp-block-search__button:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgb(43 39 34 / 0.2);
	text-decoration: none;
	color: var(--wp--preset--color--base);
}

.btn-secondary {
	display: inline-block;
	padding: 0.9em 2.5em;
	background: transparent;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1.4;
	transition: background 0.25s ease-out, color 0.25s ease-out;
}

.btn-secondary:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* 藍の帯の上で使う反転ボタン(ヒーロー・CTA用) */
.btn-invert {
	display: inline-block;
	padding: 0.9em 2.75em;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--base);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1.4;
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.btn-invert:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgb(43 39 34 / 0.2);
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   レイアウト
   ========================================================================== */

.site-header__inner,
.site-content,
.site-footer__inner {
	max-width: var(--wp--style--global--wide-size, 1080px);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 28px);
}

.site-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
	/* 上はパンくずをヘッダー寄りに置きたいので詰める。下は従来どおり。 */
	padding-block: 20px var(--wp--preset--spacing--50);
}

@media (min-width: 960px) {
	.site-content--has-sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.site-main {
	min-width: 0;
}

/* --- シングルカラム(サイドバーなし/下部)時の記事ページ ---
   本文まわりを読みやすい幅に収めて中央寄せする */
.site-content--no-sidebar.site-content--singular .site-main > *,
.site-content--sidebar-bottom.site-content--singular .site-main > * {
	max-width: 760px;
	margin-inline: auto;
}

/* --- サイドバーを下部に表示 ---
   コンテンツの後に罫線で区切り、ウィジェットを複数カラムで並べる */
.site-sidebar--bottom {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--border);
}

@media (min-width: 720px) {
	.site-sidebar--bottom {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	}

	.site-sidebar--bottom .widget {
		margin-bottom: 0;
	}
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--30);
}

/* ロゴ。画像を持たず、サイト名(blogname)をそのまま組む。
   名前を変えれば追従し、拡大しても劣化せず、代替テキストの問題も起きない。 */
.site-branding__title {
	margin: 0;
	font-size: 34px; /* 姉妹サイトのロゴと同寸。プリセットのclamp(18〜20px)では小さい。 */
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.3;
}

/* 黄のマーカー帯を文字の下半分に敷く。姉妹サイトのマーカー表現と揃える。
   疑似要素ではなく背景グラデーションで描くのは、文字を必ず帯の上に出すため
   (z-index:-1 だとヘッダーの背景に潜ることがある)。 */
.site-branding__title a {
	display: inline-block;
	padding: 0 0.12em;
	color: var(--wp--preset--color--text);
	background-image: linear-gradient(
		transparent 58%,
		var(--wp--preset--color--primary) 58%,
		var(--wp--preset--color--primary) 92%,
		transparent 92%
	);
	transition: transform 0.15s ease-out;
}

.site-branding__logo {
	display: block;
	height: 30px;
	width: auto;
}

/* ホバーは色を変えず2px沈める。ボタンと同じ挙動にして、サイト内の物理法則を揃える。
   色を黄に変えるとマーカー帯と同色になって文字が消える。 */
.site-branding__title a:hover {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transform: translateY(2px);
}

@media ( prefers-reduced-motion: reduce ) {
	.site-branding__title a {
		transition: none;
	}

	.site-branding__title a:hover {
		transform: none;
	}
}

.site-branding__description {
	margin: 0.5em 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	line-height: 1;
	color: var(--wp--preset--color--text-light);
}

/* ヘッダー右側のツール(検索アイコン・ハンバーガー) */

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.25em;
}

.header-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	border-radius: 6px;
	color: var(--wp--preset--color--text);
	cursor: pointer;
	transition: opacity 0.25s ease-out;
}

.header-search-toggle:hover {
	opacity: 0.6;
}

/* デスクトップではナビの右側に検索アイコンが来るよう並び替える */
@media (min-width: 960px) {
	.site-header__inner {
		justify-content: flex-start;
	}

	.site-branding {
		order: 1;
	}

	.global-nav {
		order: 2;
		margin-left: auto;
	}

	.site-header__tools {
		order: 3;
	}
}

/* グローバルナビ */

.nav-toggle {
	display: none;
}

.global-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.global-nav__list a {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.1em;
}

.global-nav__list a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.4em;
	text-decoration-color: var(--wp--preset--color--primary);
}

.global-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 10;
	min-width: 200px;
	margin: 0;
	padding: 0.5em 0;
	list-style: none;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	box-shadow: 0 14px 34px rgb(43 39 34 / 0.1);
}

.global-nav .menu-item-has-children {
	position: relative;
}

.global-nav .menu-item-has-children:hover > .sub-menu,
.global-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.global-nav .sub-menu a {
	display: block;
	padding: 0.5em 1em;
}

@media (max-width: 959px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		background: none;
		border: none;
		cursor: pointer;
	}

	.nav-toggle__bar,
	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--wp--preset--color--text);
		transition: transform 0.2s;
	}

	.nav-toggle__bar {
		position: relative;
	}

	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bar::before {
		top: -6px;
	}

	.nav-toggle__bar::after {
		top: 6px;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
		background: transparent;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
		top: 0;
		transform: rotate(45deg);
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* ドロワー(全画面オーバーレイ)。開閉のJSは assets/js/main.js */
	.global-nav {
		position: fixed;
		inset: 0;
		z-index: 200;
		visibility: hidden;
		opacity: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		background: var(--wp--preset--color--base);
		padding: calc(44px + var(--wp--preset--spacing--50)) var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
		transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
	}

	.global-nav.is-open {
		visibility: visible;
		opacity: 1;
		transition: opacity 0.3s ease-out;
	}

	/* メニューが開いている間は背景ページのスクロールを止める(JSがbodyに付与) */
	body.nav-is-open {
		overflow: hidden;
	}

	/* 開いている間はトグル(×)を最前面に固定し、スクロールしてもいつでも閉じられるように */
	.nav-toggle[aria-expanded="true"] {
		position: fixed;
		top: var(--wp--preset--spacing--30);
		right: var(--wp--preset--spacing--30);
		z-index: 210;
		background: var(--wp--preset--color--base);
	}

	.global-nav__list {
		flex-direction: column;
		gap: 0;
		max-width: 480px;
		margin-inline: auto;
		border-top: 1px solid var(--wp--preset--color--border);
		transform: translateY(16px);
		transition: transform 0.3s ease-out;
	}

	.global-nav.is-open .global-nav__list {
		transform: translateY(0);
	}

	.global-nav__list > li {
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	.global-nav__list a {
		display: block;
		padding: 1em 0.5em;
		font-size: var(--wp--preset--font-size--medium);
	}

	.global-nav .sub-menu {
		display: block;
		position: static;
		border: none;
		box-shadow: none;
		padding: 0 0 0 1em;
	}

	@media (prefers-reduced-motion: reduce) {
		.global-nav,
		.global-nav__list {
			transition: none;
		}
	}
}

/* ==========================================================================
   トップページモジュール(inc/front-page-modules.php)
   ========================================================================== */

.fp-wrap {
	max-width: var(--wp--style--global--wide-size, 1080px);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 28px);
}

.fp-wrap--narrow {
	max-width: 760px;
}

/* ヒーロー(全幅の帯) */
.fp-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56vh;
	padding: var(--wp--preset--spacing--60) clamp(20px, 4vw, 28px);
	overflow: hidden;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-align: center;
}

.fp-hero--image {
	background-size: cover;
	background-position: center;
}

/* 画像上の可読性確保(デザイン憲法5: オーバーレイ必須) */
.fp-hero__veil {
	position: absolute;
	inset: 0;
	background: rgb(43 39 34 / 0.45);
}

.fp-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.fp-hero__kicker {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.5em;
	line-height: 1;
	opacity: 0.85;
}

.fp-hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: 0.14em;
	line-height: 1.5;
}

.fp-hero__text {
	margin: 1.25em 0 0;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.15em;
	opacity: 0.95;
}

.fp-hero__action {
	margin: 2em 0 0;
}

/* 汎用セクション */
.fp-section {
	padding-block: var(--wp--preset--spacing--60);
}

.fp-section--surface {
	background: var(--wp--preset--color--surface);
}

.fp-section__header {
	margin-bottom: var(--wp--preset--spacing--50);
	text-align: center;
}

.fp-section__header .kicker {
	margin-bottom: 12px;
}

.fp-section__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.12em;
	line-height: 1.6;
}

.fp-more {
	margin: var(--wp--preset--spacing--50) 0 0;
	text-align: center;
}

/* CTA帯 */
.fp-cta {
	padding-block: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-align: center;
}

.fp-cta__kicker {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.35em;
	line-height: 1;
	opacity: 0.85;
}

.fp-cta__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.12em;
	line-height: 1.6;
}

.fp-cta__text {
	margin: 1em 0 0;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.12em;
	opacity: 0.92;
}

.fp-cta__action {
	margin: 2em 0 0;
}

/* 明るいCTA帯('background' => 'surface') */
.fp-cta--light {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

.fp-cta--light .fp-cta__kicker {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

.fp-cta--light .fp-cta__text {
	color: var(--wp--preset--color--text-light);
	opacity: 1;
}

/* SVG背景のヒーロー('svg' => true。イラストはtemplate-parts/hero-svg.php) */
.fp-hero--svg {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--text);
}

.fp-hero__bg {
	position: absolute;
	inset: 0;
}

.fp-hero__bg svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fp-hero--svg .fp-hero__kicker {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

.fp-hero--svg .fp-hero__text {
	color: var(--wp--preset--color--text-light);
	opacity: 1;
}

/* ==========================================================================
   カテゴリー一覧のボタン群(fp categoriesモジュール)
   ========================================================================== */

.fp-categories__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75em;
}

.fp-categories__item {
	display: inline-block;
	padding: 0.6em 1.6em;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.08em;
	transition: border-color 0.25s ease-out;
}

.fp-categories__item:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
	text-decoration: none;
}

.fp-categories__count {
	margin-left: 0.6em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-light);
}

/* RSSカード(note等)のサムネイルは比率がまちまちなのでcoverでフィットさせる。
   note標準の1280×670(1.91:1)なら左右が数%切れるだけで上下に余白が出ない */
.fp-rss .entry-card__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   吹き出し(voice)コンポーネント — 受講者の声など
   人物アイコン+吹き出しで「喋っているふう」に見せる
   ========================================================================== */

.voices {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
	margin: 0 0 1.75em;
}

.voice {
	display: flex;
	align-items: flex-start;
	gap: 1em;
}

.voice__avatar {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
}

.voice__avatar svg {
	display: block;
	width: 100%;
	height: 100%;
}

.voice__bubble {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 1em 1.4em;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.9;
}

/* しっぽ(ボーダー用と塗り用の三角を重ねる) */
.voice__bubble::before,
.voice__bubble::after {
	content: "";
	position: absolute;
	top: 22px;
	border: 8px solid transparent;
}

.voice__bubble::before {
	left: -16px;
	border-right-color: var(--wp--preset--color--border);
}

.voice__bubble::after {
	left: -14px;
	border-right-color: var(--wp--preset--color--white);
}

.voice__bubble p {
	margin: 0;
}

.voice__bubble p + p {
	margin-top: 0.75em;
}

/* ショートコード[voice]用: 名前ラベル付きの人物カラム */
.voice__figure {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	width: 64px;
}

.voice__name {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-light);
	line-height: 1.4;
	text-align: center;
	word-break: break-all;
}

/* align="right" で人物を右側に */
.voice--right {
	flex-direction: row-reverse;
}

.voice--right .voice__bubble::before {
	left: auto;
	right: -16px;
	border-right-color: transparent;
	border-left-color: var(--wp--preset--color--border);
}

.voice--right .voice__bubble::after {
	left: auto;
	right: -14px;
	border-right-color: transparent;
	border-left-color: var(--wp--preset--color--white);
}

/* 記事本文内で使うときの余白 */
.entry__content .voice {
	margin: 1.5em 0;
}

/* fp-more内にボタンを複数並べるときの間隔 */
.fp-more a + a {
	margin-left: 0.75em;
}

/* fp-htmlセクション内の画像は中央寄せ */
.fp-html .entry__content img {
	display: block;
	margin-inline: auto;
}

/* ==========================================================================
   ブログカード [ifuk_card](inc/content.php)
   ========================================================================== */

.blogcard {
	margin: 1.75em 0;
}

/* 外部サイトの埋め込み(iframe)は中身を変えられないため外側だけ整える */
.entry__content .wp-block-embed {
	margin: 1.75em 0;
}

.entry__content .wp-embedded-content {
	max-width: 100%;
	border-radius: 8px;
}

.blogcard__link {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	/* 生成りの背景に馴染みすぎないよう白にする */
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--text);
	transition: border-color 0.25s ease-out;
}

.blogcard__link:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
	text-decoration: none;
}

.blogcard__thumb {
	flex-shrink: 0;
	width: clamp(110px, 24vw, 180px);
	background: var(--wp--preset--color--surface);
}

.blogcard__thumb img,
.blogcard__thumb .no-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blogcard__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.4em;
	padding: 1em 1.25em;
	min-width: 0;
}

.blogcard__label {
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.3em;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 外部カードはドメイン名ラベル(字間を詰めて表示) */
.blogcard--external .blogcard__label {
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--text-light);
}

.blogcard__title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.6;
}

.blogcard__more {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--text-light);
}

/* ==========================================================================
   SNSリンク(フッター)
   ========================================================================== */

.social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75em;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--wp--preset--color--surface);
	transition: opacity 0.25s ease-out;
}

.social-links a:hover {
	opacity: 0.6;
	text-decoration: none;
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */

.breadcrumbs {
	/* パンくずとページ見出しの間隔。ページ枠側の padding-top は 0 にして二重に足さない。 */
	margin-bottom: 50px;
	overflow-x: auto;
}

.breadcrumbs__list {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	line-height: 1.4;
	color: var(--wp--preset--color--text-light);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "\203A"; /* › */
	margin: 0 0.75em;
	color: var(--wp--preset--color--border);
}

.breadcrumbs__item a {
	color: var(--wp--preset--color--text-light);
	transition: opacity 0.25s ease-out;
}

.breadcrumbs__item a:hover {
	opacity: 0.6;
	text-decoration: none;
}

/* ==========================================================================
   記事一覧(entry-card)
   ========================================================================== */

.archive-header {
	margin-bottom: var(--wp--preset--spacing--50);
}

.archive-header__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.12em;
	line-height: 1.6;
}

.archive-header__description {
	margin-top: 0.75em;
	color: var(--wp--preset--color--text-light);
	font-size: var(--wp--preset--font-size--small);
}

.entry-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--wp--preset--spacing--40);
}

/* フラットなカード: 白背景+細ボーダー(シャドウ・浮き上がりなし) */
.entry-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	overflow: hidden;
	transition: border-color 0.25s ease-out;
}

.entry-card:hover {
	/* プライマリ100%は強いのでボーダー色と混ぜて弱める */
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
}

.entry-card__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.entry-card__link:hover {
	text-decoration: none;
}

/* サムネイルは16:9の枠に幅基準でフィットさせる。
   幅いっぱいに広げ、比率的に上下が余る(縦にはみ出す)分は
   上下中央で切り取って見せる。画像ファイル自体はトリミングしない */
.entry-card__thumbnail {
	display: flex;
	align-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.entry-card__thumbnail img {
	width: 100%;
	height: auto;
}

/* アイキャッチ未設定でも空枠に見せない(デザイン憲法4) */
.entry-card__no-image {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--surface);
}

.entry-card__no-image::before {
	content: "";
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--border);
	background: radial-gradient(circle at 35% 35%, var(--wp--preset--color--base) 0 30%, transparent 31%);
}

.entry-card__body {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0;
	flex: 1;
}

.entry-card__title {
	margin: 0 0 0.6em;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.6;
}

.entry-card__link:hover .entry-card__title {
	color: var(--wp--preset--color--primary);
}

.entry-card__excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.8;
	color: var(--wp--preset--color--text-light);
	/* 末尾のハーフレディング相殺 */
	margin-bottom: -0.4em;
}

.entry-card .post-meta {
	padding: var(--wp--preset--spacing--30);
}

/* ==========================================================================
   記事一覧(entry-row / リスト形式)
   公開日+カテゴリー+タイトルの1行。ニュース・お知らせ向き
   ========================================================================== */

.entry-rows {
	border-top: 1px solid var(--wp--preset--color--border);
}

.entry-row {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.entry-row__link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	padding: 1.1em 0.25em;
	color: var(--wp--preset--color--text);
	transition: opacity 0.25s ease-out;
}

.entry-row__link:hover {
	opacity: 0.6;
	text-decoration: none;
}

.entry-row__date {
	flex-shrink: 0;
	min-width: 7em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	line-height: 1.4;
	color: var(--wp--preset--color--text-light);
}

.entry-row__category {
	flex-shrink: 0;
	min-width: 6em;
	padding: 0.25em 1em;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.4;
	text-align: center;
	color: var(--wp--preset--color--primary);
}

.entry-row__title {
	flex: 1;
	min-width: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.7;
}

/* モバイルではタイトルを2行目に落とす */
@media (max-width: 599px) {
	.entry-row__title {
		flex-basis: 100%;
	}
}

/* ==========================================================================
   メタ情報
   ========================================================================== */

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	line-height: 1.4;
	color: var(--wp--preset--color--text-light);
}

.post-meta__category {
	padding: 0.25em 1em;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--base);
	font-weight: 500;
	letter-spacing: 0.05em;
}

.post-meta__category:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* ==========================================================================
   個別記事
   ========================================================================== */

.entry__header {
	margin-bottom: var(--wp--preset--spacing--50);
}

.entry__title {
	margin: 0 0 0.6em;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: 0.08em;
	line-height: 1.3;
}

.entry__thumbnail {
	margin-top: var(--wp--preset--spacing--40);
}

.entry__thumbnail img {
	border-radius: 6px;
}

.entry__content {
	font-size: var(--wp--preset--font-size--medium);
	/* 行長を全角40〜45字以内に(デザイン憲法3) */
	max-width: 45em;
}

.entry__content > * + * {
	margin-block-start: 1.5em;
}

.entry__content h2 {
	margin-block-start: 2.5em;
	margin-block-end: 1em;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.1em;
	line-height: 1.6;
}

/* 見出し下線は全セクション同一ルール: 藍の短い線 */
.entry__content h2::after {
	content: "";
	display: block;
	width: 2.5em;
	height: 2px;
	margin-top: 0.45em;
	background: var(--wp--preset--color--primary);
}

.entry__content h3 {
	margin-block-start: 2em;
	margin-block-end: 0.75em;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.08em;
	line-height: 1.6;
}

.entry__content a {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.25em;
}

.entry__content blockquote {
	margin-inline: 0;
	padding: 1.25em 1.75em;
	background: var(--wp--preset--color--surface);
	border-radius: 6px;
	color: var(--wp--preset--color--text-light);
}

.entry__content code {
	padding: 0.15em 0.4em;
	background: var(--wp--preset--color--surface);
	border-radius: 4px;
	font-size: 0.9em;
}

.entry__content pre {
	padding: 1.25em;
	overflow-x: auto;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--base);
	border-radius: 6px;
}

.entry__content pre code {
	padding: 0;
	background: none;
}

/* YouTube/Vimeoの直書きiframeを16:9で表示する。
   埋め込みブロックはWordPress標準の比率制御に任せ、二重適用を防ぐ。 */
.entry__content :not(.wp-block-embed__wrapper) > iframe:is(
	[src*="youtube.com"],
	[src*="youtube-nocookie.com"],
	[src*="youtu.be"],
	[src*="vimeo.com"]
) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.entry__content table {
	width: 100%;
	border-collapse: collapse;
}

.entry__content th,
.entry__content td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--wp--preset--color--border);
}

.entry__content th {
	background: var(--wp--preset--color--surface);
}

.entry__footer {
	margin-top: var(--wp--preset--spacing--50);
}

.entry__tags a {
	display: inline-block;
	margin: 0 0.4em 0.4em 0;
	padding: 0.25em 1em;
	background: var(--wp--preset--color--surface);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-light);
}

.entry__tags a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* ==========================================================================
   目次(inc/content.phpで自動挿入)
   ========================================================================== */

.toc {
	margin: var(--wp--preset--spacing--40) 0;
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface);
	border-radius: 6px;
}

.toc__title {
	margin: 0 0 0.75em;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

.toc__list {
	margin: 0;
	padding-left: 1.4em;
}

.toc__list li {
	padding: 0.25em 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

.toc__list a {
	color: var(--wp--preset--color--text);
}

.toc__list a:hover {
	color: var(--wp--preset--color--primary);
}

.toc__sub {
	margin: 0.25em 0 0;
	padding-left: 1.4em;
	list-style: none;
}

.toc__sub li::before {
	content: "—";
	margin-right: 0.5em;
	color: var(--wp--preset--color--text-light);
}

/* ==========================================================================
   シェアボタン
   ========================================================================== */

.share {
	margin-top: var(--wp--preset--spacing--40);
}

.share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.55em 1.2em;
	background: transparent;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.25s ease-out, color 0.25s ease-out;
}

.share__button:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.share__copy.is-copied {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   関連記事
   ========================================================================== */

.related-posts {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
}

.related-posts__title {
	margin: 0 0 1em;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.12em;
	line-height: 1.6;
}

/* ==========================================================================
   サイドバー用記事リスト(最近の投稿・人気記事で共用)
   inc/sidebar-modules.php の ifuk_post_list_html が出力
   ========================================================================== */

.side-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.side-posts__item {
	padding: 0.7em 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* .site-sidebar li > a のdisplay:blockに勝つため2クラスで指定 */
.side-posts__link,
.site-sidebar .side-posts__link {
	display: flex;
	align-items: center;
	gap: 0.75em;
	color: var(--wp--preset--color--text);
	transition: opacity 0.25s ease-out;
}

.side-posts__link:hover {
	opacity: 0.6;
	text-decoration: none;
}

.side-posts__rank {
	flex-shrink: 0;
	min-width: 1.5em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	text-align: center;
}

.side-posts__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.side-posts__thumb img,
.side-posts__thumb .no-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* サムネイル代替SVG(inc/sidebar-modules.php の ifuk_no_image_svg) */
.no-image__bg {
	fill: var(--wp--preset--color--surface);
}

.no-image__shape {
	fill: var(--wp--preset--color--border);
}

.side-posts__body {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	min-width: 0;
}

.side-posts__title {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.side-posts__date {
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	line-height: 1.4;
	color: var(--wp--preset--color--text-light);
}

/* 前後記事ナビ */

.post-navigation {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--30);
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation__label {
	display: block;
	margin-bottom: 0.6em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.25em;
	line-height: 1;
	color: var(--wp--preset--color--text-light);
}

.post-navigation__title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.6;
}

/* ==========================================================================
   ページネーション
   ========================================================================== */

.pagination {
	margin-top: var(--wp--preset--spacing--50);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75em;
	height: 2.75em;
	padding-inline: 0.75em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
	transition: background 0.25s ease-out;
}

.pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.pagination .page-numbers:hover:not(.current) {
	background: var(--wp--preset--color--surface);
	text-decoration: none;
}

/* ==========================================================================
   サイドバー・ウィジェット
   クラシックウィジェット(.widget__title)とブロックウィジェット
   (h2見出し・各種一覧ブロック)の両方でトーンが揃うようにする
   ========================================================================== */

.site-sidebar .widget {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* ウィジェットタイトル(見出し下線は本文h2と同一ルール: 藍の短線) */
.widget__title,
.site-sidebar h2,
.site-sidebar h3,
.site-sidebar .wp-block-search__label {
	display: block;
	margin: 0 0 1em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	color: var(--wp--preset--color--text);
}

.widget__title::after,
.site-sidebar h2::after,
.site-sidebar h3::after,
.site-sidebar .wp-block-search__label::after {
	content: "";
	display: block;
	width: 2.5em;
	height: 2px;
	margin-top: 0.6em;
	background: var(--wp--preset--color--primary);
}

/* 一覧(最近の投稿・コメント・アーカイブ・カテゴリー等) */
.site-sidebar ul,
.site-sidebar ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-sidebar li {
	margin: 0;
	padding: 0.7em 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

.site-sidebar li:first-child {
	padding-top: 0;
}

/* リスト直下のリンクは幅いっぱいを当たり判定にする
   (コメント一覧などテキスト内のインラインリンクは除く) */
.site-sidebar li > a {
	display: block;
}

/* ホバーは下線ではなくopacityで薄くする */
.site-sidebar a {
	color: var(--wp--preset--color--text);
	transition: opacity 0.25s ease-out;
}

.site-sidebar a:hover {
	opacity: 0.6;
	text-decoration: none;
}

/* 一覧ブロックの日付・件数などの補足表示 */
.site-sidebar .wp-block-latest-posts__post-date,
.site-sidebar .wp-block-latest-comments__comment-date {
	display: block;
	margin-top: 0.25em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--text-light);
}

.site-sidebar .wp-block-latest-comments__comment-meta {
	color: var(--wp--preset--color--text-light);
}

.site-sidebar .wp-block-latest-comments__comment-meta a {
	color: var(--wp--preset--color--text);
}

/* ==========================================================================
   検索フォーム
   ========================================================================== */

.search-form,
.wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.5em;
	border: none;
	padding: 0;
}

.search-form__input,
.wp-block-search .wp-block-search__input {
	flex: 1;
	min-width: 0;
	padding: 0.6em 1.1em;
	/* 入力欄であることがわかるよう背景は白にする */
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
}

.search-form__input:focus,
.wp-block-search .wp-block-search__input:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: -1px;
}

.search-form__submit,
.wp-block-search .wp-block-search__button {
	margin: 0;
	padding: 0.6em 1.5em;
}

/* ==========================================================================
   検索モーダル(dialog要素)
   ========================================================================== */

.search-modal {
	width: min(90vw, 520px);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base);
	border: none;
	border-radius: 8px;
	box-shadow: 0 18px 40px rgb(43 39 34 / 0.25);
	color: var(--wp--preset--color--text);
}

.search-modal::backdrop {
	background: rgb(43 39 34 / 0.5);
}

.search-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	border-radius: 6px;
	color: var(--wp--preset--color--text-light);
	cursor: pointer;
	transition: opacity 0.25s ease-out;
}

.search-modal__close:hover {
	opacity: 0.6;
}

.search-modal__title {
	margin: 0 0 1em;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */

/* フォーム全体(標準の p 区切りマークアップ) */
.wpcf7 form {
	max-width: 640px;
}

.wpcf7 form p {
	margin: 0 0 1.25em;
}

/* ラベル */
.wpcf7 form label {
	display: block;
	margin-bottom: 0.4em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text);
}

/* 入力欄(.search-form__input と同じ作法。角丸は 6px で統一) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	max-width: 640px;
	padding: 0.7em 1em;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--text);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: -1px;
}

.wpcf7 textarea {
	min-height: 200px;
	resize: vertical;
}

/* 入力エラーの入力欄はアクセントで縁取る */
.wpcf7 .wpcf7-not-valid {
	border-color: var(--wp--preset--color--accent);
}

/* 送信ボタンはテーマの primary ボタン(pill 型)を継承(.btn-primary グループに
   .wpcf7-submit を追加済み)。ここでは配置の微調整のみ */
.wpcf7-submit {
	margin: 0;
}

/* バリデーションエラーの吹き出し */
.wpcf7-not-valid-tip {
	margin-top: 0.4em;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
}

/* 送信結果メッセージ(CF7 デフォルトの 2px border を上書き) */
.wpcf7-response-output {
	margin: 1.5em 0 0;
	padding: 1em 1.5em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
}

/* エラー時・送信失敗時は左辺アクセントで区別 */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-left: 4px solid var(--wp--preset--color--accent);
}

/* 送信中スピナー(.wpcf7-spinner)はデフォルトのまま */

/* ==========================================================================
   コメント
   ========================================================================== */

.comments {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
}

.comments__title {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.1em;
}

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

.comment-list .comment {
	padding: var(--wp--preset--spacing--30) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.comment-list .avatar {
	border-radius: 50%;
}

/* ==========================================================================
   フッター(墨色の帯 + ロゴ風サイト名)
   ========================================================================== */

.site-footer {
	margin-top: var(--wp--preset--spacing--60);
	padding-block: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--text);
	/* 墨背景上はコントラスト4.5:1確保のためsurface色を使う */
	color: var(--wp--preset--color--surface);
	text-align: center;
}

/* トップページのみフッター上の余白をゼロに
   (ヒーローやCTA帯などの全幅セクションとフッターを密着させる) */
.home .site-footer {
	margin-top: 0;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
}

.footer-nav__list a {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--surface);
}

/* フッターは墨地。ヘッダーと同じ黄のマーカー帯を敷くと生成りの文字が読めなくなるので、
   帯はやめて文字自体を黄にする(7.6:1)。ウェイトと字間はヘッダーのロゴに揃える。 */
.site-footer__logo {
	margin: 0 0 0.75em;
	font-family: var(--wp--preset--font-family--en);
	font-size: 34px; /* ヘッダーのロゴと同寸に揃える。 */
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1;
}

.site-footer__logo a {
	color: var(--wp--preset--color--primary);
}

/* フッター内の他のリンクと同じ扱いにする。下線ではなく透過。
   ヘッダーのロゴは2px沈むが、あちらは黄の帯があるので沈みが見える。
   フッターは帯がなく地も墨なので、沈ませても分からない。 */
.site-footer__logo a:hover {
	opacity: 0.6;
	text-decoration: none;
}

.site-footer__copyright {
	margin: 0;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	line-height: 1.6;
}

/* --- カラム型フッター(footer_columns) --- */

.site-footer--columns {
	text-align: left;
}

.site-footer__main {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

@media (min-width: 820px) {
	/* ブランド列はロゴとキャッチだけなので幅を譲り、リンク列側を広く取る。
	   1:2 だとリンク列が560pxしか取れず、3列(150px×3+64pxギャップ×2=578px)に18px足りずに
	   「運営」列が下段へ折り返していた。 */
	.site-footer__main {
		grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
	}
}

.site-footer--columns .site-footer__logo {
	margin: 0 0 1em;
}

.site-footer__brand-logo {
	display: inline-block;
	margin-bottom: 1em;
}

.site-footer__brand-logo img {
	max-width: 180px;
	height: auto;
}

.site-footer__brand-text {
	margin: 0 0 1.5em;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.12em;
	line-height: 2;
	opacity: 0.85;
}

.site-footer--columns .social-links {
	justify-content: flex-start;
	margin: 0;
}

.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	align-content: start;
}

/* 列数を内容量まかせにすると、ラベルの長い「さがす」列に押されて「運営」が下段へ落ちる。
   横幅が足りる820px以上では3列で固定し、ブランド列と合わせて4列に揃える。 */
@media (min-width: 820px) {
	.site-footer__columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.site-footer__heading {
	margin: 0 0 1.1em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.3em;
	line-height: 1;
	opacity: 0.55;
}

.site-footer__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__column li {
	padding: 0.35em 0;
	font-size: var(--wp--preset--font-size--small);
}

.site-footer__column a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--wp--preset--color--surface);
	letter-spacing: 0.05em;
	transition: opacity 0.25s ease-out;
}

.site-footer__column a:hover {
	opacity: 0.6;
	text-decoration: none;
}

.site-footer__column svg {
	flex-shrink: 0;
}

.site-footer__bottom {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--surface) 18%, transparent);
}

.site-footer--columns .site-footer__copyright {
	text-align: left;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-404__title {
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.1em;
}

.no-results {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* ==========================================================================
   スクロールフェードイン(デザイン憲法7)
   JSが .js-fade を対象要素に付与し、表示領域に入ったら .is-visible を付ける
   ========================================================================== */

.js-fade {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transition-delay: var(--fade-delay, 0s);
}

.js-fade.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js-fade {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.entry-card,
	.btn-primary,
	.search-form__submit,
	.wp-block-button__link {
		transition: none;
	}
}

/* ==========================================================================
   トップへ戻るボタン(config: show_back_to_top)
   ========================================================================== */

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	color: var(--wp--preset--color--text);
	cursor: pointer;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease-out, visibility 0s linear 0.25s;
}

.back-to-top.is-visible {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.25s ease-out;
}

.back-to-top:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
}

/* ==========================================================================
   著者紹介ボックス(記事末・config: show_author_box)
   ========================================================================== */

.author-box {
	margin-top: var(--wp--preset--spacing--40);
	padding: 1.25em 1.5em;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.author-box__label {
	margin: 0 0 0.75em;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--text-light);
}

.author-box__body {
	display: flex;
	gap: 1.25em;
	align-items: flex-start;
}

.author-box__avatar {
	flex: 0 0 auto;
}

.author-box__avatar-image,
.author-box__avatar-placeholder {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.author-box__avatar-image {
	object-fit: cover;
}

.author-box__avatar-placeholder {
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--text-light);
	background: var(--wp--preset--color--background);
}

.author-box__avatar-placeholder svg {
	width: 36px;
	height: 36px;
	fill: currentColor;
}

.author-box__info {
	min-width: 0;
}

.author-box__name {
	margin: 0 0 0.4em;
	font-weight: 700;
}

.author-box__description {
	margin: 0 0 0.75em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-light);
	line-height: 1.7;
}

.author-box__follow {
	margin: 0;
}

.author-box__follow a {
	display: inline-block;
	padding: 0.4em 1.2em;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.author-box__follow a:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* ==========================================================================
   メンバー一覧(hp-roster) と 円形アイコン(hp-avatar)
   円は「色は情報」の担い手。地は無彩色に徹し、色はここだけに出す。
   ========================================================================== */

.hp-wrap {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 0 24px;
}

/* --- 円形アイコン --- */

.hp-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	/* 白のメンバーが8人いるため枠線は必須。太いほうが可愛らしさが出る。 */
	border: 3px solid var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-align: center;
	flex-shrink: 0;
}

.hp-avatar--sm {
	width: 64px;
	height: 64px;
	font-size: 0.8125rem;
}

.hp-avatar--lg {
	width: 116px;
	height: 116px;
	font-size: 1.375rem;
}

/* 苗字は1〜6文字。文字数でサイズを落として円からはみ出させない。 */
.hp-avatar--sm.hp-avatar--len4 { font-size: 0.75rem; }
.hp-avatar--sm.hp-avatar--len5 { font-size: 0.6875rem; letter-spacing: 0; }
.hp-avatar--sm.hp-avatar--len6 { font-size: 0.625rem; letter-spacing: -0.02em; }
.hp-avatar--lg.hp-avatar--len4 { font-size: 1.25rem; }
.hp-avatar--lg.hp-avatar--len5 { font-size: 1.125rem; letter-spacing: 0; }
.hp-avatar--lg.hp-avatar--len6 { font-size: 1rem; letter-spacing: -0.02em; }

/* メンバーカラーが無かった世代。黒で塗る(メンバーカラーに黒の人はいないので専用に使える)。
   ここに装飾色(primary)を使うと実在のメンバーカラーと誤認されるので、必ず text を使う。 */
.hp-avatar--no_color {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--base);
}

/* 未デビューの研修生。破線の輪で区別する。 */
.hp-avatar--kenshusei {
	background: transparent;
	color: var(--wp--preset--color--text-light);
	border-style: dashed;
	border-color: color-mix( in srgb, var(--wp--preset--color--text) 45%, transparent );
}

/* --- 一覧 --- */

.hp-roster {
	padding: 0 0 clamp( 3rem, 8vw, 5rem );
}

.hp-roster__header {
	margin-bottom: 28px;
}

.hp-roster__title {
	font-size: clamp( 1.5rem, 4vw, 2rem );
	margin: 0 0 8px;
}

.hp-roster__lede {
	margin: 0 0 20px;
	color: var(--wp--preset--color--text-light);
	font-size: 0.9375rem;
}

.hp-roster__switcher {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hp-roster__switcher-label {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-light);
	margin-right: 4px;
}

.hp-roster__switch {
	display: inline-block;
	padding: 8px 18px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font-size: 0.875rem;
	text-decoration: none;
}

.hp-roster__switch:hover {
	border-color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.hp-roster__switch.is-current {
	background: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--text);
	color: var(--wp--preset--color--base);
}

/* --- 検索 --- */

.hp-roster__search {
	margin-bottom: 16px;
}

.hp-roster__search-control {
	display: flex;
	gap: 8px;
}

.hp-roster__search-control input {
	flex: 1;
	min-width: 0;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 1rem; /* iOSで自動ズームさせない。 */
}

.hp-roster__search-control input:focus {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

.hp-roster__search-clear {
	padding: 0 20px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.hp-roster__search-result {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-light);
}

/* --- 表示ツール --- */

.hp-roster__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding-bottom: 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.hp-roster__bulk {
	display: flex;
	gap: 8px;
}

.hp-roster__bulk button {
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}

.hp-roster__bulk button:hover {
	border-color: var(--wp--preset--color--accent);
}

.hp-roster__note {
	margin: 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--text-light);
}

/* --- 区切り --- */

.hp-roster__group {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.hp-roster__group-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 0 14px;
}

.hp-roster__group-title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.4;
	background: var(--wp--preset--color--primary-soft);
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	padding: 6px 20px;
}

.hp-roster__count {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-light);
	margin-right: auto;
}

.hp-roster__toggle {
	width: 32px;
	height: 32px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.hp-roster__toggle:hover {
	border-color: var(--wp--preset--color--accent);
}

.hp-roster__list {
	list-style: none;
	margin: 0;
	padding: 0 0 22px;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 92px, 1fr ) );
	gap: 20px 10px;
}

.hp-roster__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.hp-roster__link:hover {
	text-decoration: none;
}

.hp-roster__link:hover .hp-roster__name {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.hp-roster__name {
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
}

.hp-roster__color {
	font-size: 0.6875rem;
	color: var(--wp--preset--color--text-light);
	text-align: center;
	line-height: 1.4;
}

@media ( max-width: 600px ) {
	.hp-wrap { padding: 0 18px; }
	.hp-roster__list {
		grid-template-columns: repeat( auto-fill, minmax( 78px, 1fr ) );
		gap: 18px 8px;
	}
	.hp-avatar--sm { width: 58px; height: 58px; }
}

/* ==========================================================================
   メンバー詳細(hp-member)
   ========================================================================== */

.hp-wrap--narrow {
	max-width: var(--wp--style--global--content-size);
}

.hp-member {
	padding: 0 0 clamp( 3rem, 8vw, 5rem );
}

.hp-member__head {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-bottom: 28px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.hp-member__name {
	font-size: clamp( 1.5rem, 4vw, 2rem );
	margin: 0 0 4px;
	line-height: 1.3;
}

.hp-member__kana {
	margin: 0 0 10px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-light);
}

.hp-member__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.hp-badge {
	display: inline-block;
	padding: 4px 14px;
	border: 2px solid var(--wp--preset--color--text);
	background: var(--wp--preset--color--accent-soft);
	border-radius: 999px;
	font-size: 0.75rem;
	line-height: 1.6;
}

.hp-badge--plain {
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-light);
}

/* --- ブロック --- */

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

.hp-block__title {
	font-size: 1.0625rem;
	margin: 0 0 14px;
}

.hp-block__lede {
	margin: -8px 0 18px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-light);
}

/* --- 基本情報 --- */

.hp-facts {
	display: grid;
	grid-template-columns: 10em 1fr;
	gap: 0;
	margin: 0;
}

.hp-facts dt,
.hp-facts dd {
	margin: 0;
	padding: 11px 0;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.hp-facts dt {
	color: var(--wp--preset--color--text-light);
	font-size: 0.8125rem;
	padding-right: 12px;
}

.hp-facts dt:first-of-type,
.hp-facts dt:first-of-type + dd {
	border-top: 0;
}

/* 推測で埋めない。分からないことは分かると書く。 */
.hp-unknown {
	color: var(--wp--preset--color--text-light);
	font-size: 0.875rem;
}

/* --- 所属歴 --- */

.hp-units {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hp-units__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 12px 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.hp-units__item:first-child {
	border-top: 0;
}

.hp-units__group {
	font-weight: 700;
	font-size: 0.9375rem;
}

.hp-units__gen,
.hp-units__term {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-light);
}

.hp-units__term {
	margin-left: auto;
}

.hp-units__tag {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	font-size: 0.6875rem;
	color: var(--wp--preset--color--text-light);
}

/* --- 同期 --- */

.hp-peers + .hp-peers {
	margin-top: 26px;
}

.hp-peers__axis {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	font-size: 0.9375rem;
	margin: 0 0 14px;
}

.hp-peers__key {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wp--preset--color--text-light);
	padding: 3px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
}

.hp-peers__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 92px, 1fr ) );
	gap: 18px 10px;
}

.hp-peers__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.hp-peers__link:hover {
	text-decoration: none;
}

.hp-peers__link:hover .hp-peers__name {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.hp-peers__name {
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
}

.hp-empty {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-light);
}

.hp-note-small {
	margin: 14px 0 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--text-light);
	line-height: 1.8;
}

/* --- 準備中の枠 --- */

.hp-soon {
	border: 1px dashed color-mix( in srgb, var(--wp--preset--color--text) 30%, transparent );
	border-radius: 16px;
	padding: 20px 22px;
}

.hp-soon__title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 0.9375rem;
}

.hp-soon__body {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-light);
}

@media ( max-width: 600px ) {
	.hp-member__head { gap: 16px; }
	.hp-facts { grid-template-columns: 1fr; }
	.hp-facts dt { padding-bottom: 0; border-top: 1px solid var(--wp--preset--color--border); }
	.hp-facts dd { padding-top: 2px; border-top: 0; }
	.hp-facts dt:first-of-type + dd { border-top: 0; }
	.hp-units__term { margin-left: 0; width: 100%; }
	.hp-peers__list { grid-template-columns: repeat( auto-fill, minmax( 78px, 1fr ) ); }
}

/* ==========================================================================
   同期チェッカー(hp-douki / hp-verdict / hp-picker)
   ========================================================================== */

.hp-douki { padding: 0 0 clamp( 3rem, 8vw, 5rem ); }
.hp-douki__title { font-size: clamp( 1.5rem, 4vw, 2rem ); margin: 0 0 10px; }
.hp-douki__lede { margin: 0 0 28px; font-size: 0.9375rem; color: var(--wp--preset--color--text-light); }

/* --- 判定結果 --- */

.hp-verdict {
	background: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 6px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
	border-radius: 20px;
	padding: clamp( 22px, 5vw, 36px );
	margin-bottom: 32px;
}

.hp-verdict__pair {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp( 12px, 4vw, 28px );
	margin-bottom: 22px;
}

.hp-verdict__who { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.hp-verdict__who:hover { text-decoration: none; }
.hp-verdict__who:hover .hp-verdict__name { text-decoration: underline; text-underline-offset: 0.25em; }
.hp-verdict__name { font-size: 0.9375rem; text-align: center; }
.hp-verdict__and { align-self: center; color: var(--wp--preset--color--text-light); font-size: 0.9375rem; }

.hp-verdict__headline {
	text-align: center;
	font-size: clamp( 1.375rem, 5vw, 2rem );
	margin: 0 0 6px;
	line-height: 1.4;
}

.hp-verdict__sub {
	text-align: center;
	margin: 0 0 24px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-light);
}

/* --- 3軸の内訳。見出しのすぐ下に置く(資料としての正確さを優先) --- */

/* 軸ごとの文が長い(「ハロプロエッグ4期とハロプロエッグ10期」など)ので、
   横並びにせず1列で積む。上から強い順に読める並びがそのまま活きる。 */
.hp-axes { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }

.hp-axis {
	border: 2px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 14px 16px;
	background: var(--wp--preset--color--white);
}

.hp-axis--match { border-color: var(--wp--preset--color--text); border-width: 3px; background: var(--wp--preset--color--primary-soft); }

.hp-axis__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-light);
}

.hp-axis__mark { font-size: 0.6875rem; }
.hp-axis--match .hp-axis__mark {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text);
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	padding: 1px 12px;
	font-weight: 700;
}

.hp-axis__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.hp-axis__detail { margin: 4px 0 0; font-size: 0.75rem; color: var(--wp--preset--color--text-light); }

/* --- 共通点 --- */

.hp-points { border-top: 1px solid var(--wp--preset--color--border); padding-top: 20px; }
.hp-points__title { font-size: 0.9375rem; margin: 0 0 10px; }
.hp-points__list { list-style: none; margin: 0; padding: 0; }
.hp-points__list li {
	padding: 10px 0 10px 20px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 0.9375rem;
	position: relative;
}
.hp-points__list li:first-child { border-top: 0; }
.hp-points__list li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 1.05em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	border: 2px solid var(--wp--preset--color--text);
}

.hp-verdict__again { margin: 26px 0 0; text-align: center; }

/* --- ボタン --- */

.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 34px;
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 4px 0 color-mix( in srgb, var(--wp--preset--color--text) 22%, transparent );
	border-radius: 999px;
	font-size: 0.9375rem;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s;
}

.hp-btn--primary { background: var(--wp--preset--color--text); color: var(--wp--preset--color--base); }
.hp-btn--secondary { background: var(--wp--preset--color--white); color: var(--wp--preset--color--text); }
.hp-btn:hover { text-decoration: none; transform: translateY( 2px ); box-shadow: 0 2px 0 color-mix( in srgb, var(--wp--preset--color--text) 22%, transparent ); }
.hp-btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: 0 4px 0 color-mix( in srgb, var(--wp--preset--color--text) 22%, transparent ); }

/* --- 選択UI --- */

.hp-picker__slots { display: flex; align-items: flex-start; justify-content: center; gap: 16px; margin-bottom: 24px; }
.hp-picker__and { align-self: center; color: var(--wp--preset--color--text-light); }

.hp-picker__slot { text-align: center; width: 132px; }

.hp-picker__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin: 0 auto 10px;
	border-radius: 50%;
	border: 3px dashed color-mix( in srgb, var(--wp--preset--color--text) 35%, transparent );
	color: var(--wp--preset--color--text-light);
	font-size: 0.8125rem;
}

/* 選択済みの枠は円形アイコンと同じ見た目にする(苗字+メンバーカラー)。
   .hp-avatar のクラスをJSが付けるので、寸法だけここで上書きする。 */
.hp-picker__slot.is-filled .hp-picker__ph {
	border-style: solid;
	width: 96px;
	height: 96px;
	border-width: 3px;
}

/* 未デビュー研修生は破線の輪が識別子なので、選択枠でも破線のままにする。 */
.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--kenshusei {
	border-style: dashed;
}

.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--len1,
.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--len2,
.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--len3 { font-size: 1.125rem; }
.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--len4 { font-size: 1rem; }
.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--len5 { font-size: 0.875rem; letter-spacing: 0; }
.hp-picker__slot.is-filled .hp-picker__ph.hp-avatar--len6 { font-size: 0.8125rem; letter-spacing: -0.02em; }

.hp-picker__slot-name { margin: 0 0 4px; font-size: 0.875rem; line-height: 1.5; }
.hp-picker__clear {
	border: 0;
	background: none;
	color: var(--wp--preset--color--text-light);
	font: inherit;
	font-size: 0.75rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.hp-picker__search input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 1rem;
}

.hp-picker__search input:focus { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 1px; }

.hp-picker__status { margin: 8px 0 0; font-size: 0.8125rem; color: var(--wp--preset--color--text-light); min-height: 1.4em; }

.hp-picker__results { list-style: none; margin: 6px 0 0; padding: 0; }

.hp-picker__result {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	width: 100%;
	text-align: left;
	padding: 12px 14px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	background: none;
	font: inherit;
	cursor: pointer;
}

.hp-picker__result:hover { background: var(--wp--preset--color--surface); }
.hp-picker__result-name { font-size: 0.9375rem; }
.hp-picker__result-kana,
.hp-picker__result-extra { font-size: 0.75rem; color: var(--wp--preset--color--text-light); }
.hp-picker__result-extra { margin-left: auto; }

.hp-picker__submit { margin: 24px 0 0; text-align: center; }

@media ( max-width: 600px ) {
	.hp-picker__slot { width: 108px; }
	.hp-picker__ph,
	.hp-picker__slot.is-filled .hp-picker__ph { width: 80px; height: 80px; }
	.hp-picker__result-extra { margin-left: 0; width: 100%; }
}

/* --- ツール入口(hp-tools) --- */

.hp-tools { padding: 0 0 clamp( 3rem, 8vw, 5rem ); }
.hp-tools__title { font-size: clamp( 1.5rem, 4vw, 2rem ); margin: 0 0 24px; }
.hp-tools__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.hp-tools__card {
	display: block;
	padding: 20px 22px;
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 5px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	color: inherit;
}

.hp-tools__card:hover { border-color: var(--wp--preset--color--accent); text-decoration: none; }
.hp-tools__name { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.hp-tools__desc { display: block; font-size: 0.875rem; color: var(--wp--preset--color--text-light); line-height: 1.8; }

/* ==========================================================================
   グループ詳細 / グループ一覧
   ========================================================================== */

.hp-group,
.hp-grouplist { padding: 0 0 clamp( 3rem, 8vw, 5rem ); }

.hp-group__head { padding-bottom: 22px; border-bottom: 1px solid var(--wp--preset--color--border); }
.hp-group__name { font-size: clamp( 1.5rem, 4vw, 2rem ); margin: 0 0 10px; line-height: 1.3; }
.hp-group__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* --- 期ごとの歴代メンバー --- */

.hp-gen + .hp-gen { margin-top: 24px; }

.hp-gen__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9375rem;
	margin: 0 0 14px;
}

.hp-gen__title > :first-child,
.hp-gen__title::before {
	content: none;
}

.hp-gen__count { font-size: 0.75rem; font-weight: 400; color: var(--wp--preset--color--text-light); }

.hp-gen__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 92px, 1fr ) );
	gap: 18px 10px;
}

.hp-gen__link { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.hp-gen__link:hover { text-decoration: none; }
.hp-gen__link:hover .hp-gen__name { text-decoration: underline; text-underline-offset: 0.25em; }
.hp-gen__name { font-size: 0.8125rem; line-height: 1.5; text-align: center; margin-top: 2px; }
.hp-gen__term { font-size: 0.6875rem; color: var(--wp--preset--color--text-light); }

.hp-gen__tag {
	font-size: 0.625rem;
	color: var(--wp--preset--color--text-light);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: 1px 8px;
}

/* --- 公式リンク。サムネイルは出さずテキストで並べる --- */

.hp-official { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.hp-official__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 4px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	color: inherit;
}

.hp-official__link:hover { border-color: var(--wp--preset--color--accent); text-decoration: none; }
.hp-official__label { font-size: 0.9375rem; font-weight: 700; flex-shrink: 0; }
.hp-official__note { font-size: 0.75rem; color: var(--wp--preset--color--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-official__arrow { margin-left: auto; color: var(--wp--preset--color--text-light); font-size: 0.875rem; flex-shrink: 0; }

/* --- グループ一覧 --- */

.hp-grouplist__title { font-size: clamp( 1.5rem, 4vw, 2rem ); margin: 0 0 8px; }
.hp-grouplist__lede { margin: 0 0 8px; font-size: 0.9375rem; color: var(--wp--preset--color--text-light); }

.hp-grouplist__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 10px;
}

.hp-grouplist__card {
	display: block;
	padding: 16px 20px;
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 5px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	color: inherit;
}

.hp-grouplist__card:hover { border-color: var(--wp--preset--color--accent); text-decoration: none; }
.hp-grouplist__name { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.hp-grouplist__meta { display: flex; gap: 8px; font-size: 0.75rem; color: var(--wp--preset--color--text-light); }

@media ( max-width: 600px ) {
	.hp-gen__list { grid-template-columns: repeat( auto-fill, minmax( 78px, 1fr ) ); }
	/* 同じラベルのリンクが複数並ぶ(公式ブログが期ごとに4件など)ので、
	   狭い画面でも区別できるように隠さず2行目へ折り返す。 */
	.hp-official__link { flex-wrap: wrap; border-radius: 16px; }
	.hp-official__note { white-space: normal; width: 100%; order: 3; }
	.hp-official__arrow { order: 2; }
}

/* ==========================================================================
   トップページ(hp-home)
   ========================================================================== */

.hp-hero { padding: clamp( 1.5rem, 4vw, 2.5rem ) 0 clamp( 2rem, 5vw, 3rem ); }

/* ヒーローは1枚の大きなカード。左に見出しと選択UI、右にイラスト。 */
.hp-hero__card {
	display: grid;
	grid-template-columns: minmax( 0, 1.05fr ) minmax( 0, 0.95fr );
	align-items: center;
	gap: clamp( 16px, 4vw, 40px );
	padding: clamp( 24px, 4vw, 44px );
	background: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 28px;
	box-shadow: 0 8px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
}

.hp-hero__body { min-width: 0; }

.hp-hero__title {
	font-size: clamp( 1.625rem, 8vw, 2.75rem );
	margin: 0 0 12px;
	line-height: 1.25;
	white-space: nowrap;
}

.hp-hero__lede {
	margin: 0 0 26px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-light);
	line-height: 1.9;
}

.hp-hero__figure { min-width: 0; }

.hp-hero__art {
	display: block;
	width: 100%;
	height: auto;
}

/* カード内では選択UIを左寄せにする(中央寄せだと横並びで間延びする)。 */
.hp-hero__body .hp-picker__slots { justify-content: flex-start; }
.hp-hero__body .hp-picker__submit { text-align: left; }
.hp-hero__body .hp-picker__status { text-align: left; }

@media ( max-width: 820px ) {
	.hp-hero__card { grid-template-columns: 1fr; }
	/* 狭い画面ではイラストを先に出す(何のサイトか先に伝わる)。 */
	.hp-hero__figure { order: -1; max-width: 340px; margin: 0 auto; }
	.hp-hero__title { text-align: center; }
	.hp-hero__lede { text-align: center; }
	.hp-hero__body .hp-picker__slots { justify-content: center; }
	.hp-hero__body .hp-picker__submit { text-align: center; }
	.hp-hero__body .hp-picker__status { text-align: center; }
}

.hp-home__block { padding: clamp( 2.5rem, 6vw, 3.5rem ) 0; border-top: 1px solid var(--wp--preset--color--border); }
.hp-home__block--surface { background: var(--wp--preset--color--surface); border-top: 0; }

.hp-home__title { font-size: 1.25rem; margin: 0 0 8px; }
.hp-home__lede { margin: 0 0 20px; font-size: 0.875rem; color: var(--wp--preset--color--text-light); }
.hp-home__text { margin: 0 0 12px; font-size: 0.9375rem; }
.hp-home__text--muted { color: var(--wp--preset--color--text-light); font-size: 0.875rem; margin-bottom: 0; }

/* 各ページへの導線。狭い画面では折り返す。 */
.hp-home__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 22px 0 0;
	font-size: 0.9375rem;
	font-weight: 700;
}

/* --- 判定例 --- */

.hp-samples { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.hp-samples__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 5px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	color: inherit;
}

.hp-samples__link:hover { border-color: var(--wp--preset--color--accent); text-decoration: none; }

/* 2つの円を少し重ねて「2人の組」に見せる。 */
.hp-samples__pair { display: flex; flex-shrink: 0; }
.hp-samples__pair .hp-avatar { width: 48px; height: 48px; font-size: 0.6875rem; }
.hp-samples__pair .hp-avatar:last-child { margin-left: -12px; }

.hp-samples__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-samples__names { font-size: 0.9375rem; font-weight: 700; }
.hp-samples__label { font-size: 0.8125rem; color: var(--wp--preset--color--text-light); line-height: 1.6; }

/* --- データからたどる --- */

.hp-entries {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) );
	gap: 10px;
}

.hp-entries__card {
	display: block;
	height: 100%;
	padding: 18px 20px;
	border: 3px solid var(--wp--preset--color--text);
	box-shadow: 0 5px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	color: inherit;
}

.hp-entries__card:hover { border-color: var(--wp--preset--color--accent); text-decoration: none; }
.hp-entries__name { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 4px; }
.hp-entries__desc { display: block; font-size: 0.8125rem; color: var(--wp--preset--color--text-light); line-height: 1.7; }

@media ( max-width: 600px ) {
	.hp-samples__link { gap: 12px; padding: 12px 14px; }
	.hp-samples__pair .hp-avatar { width: 42px; height: 42px; font-size: 0.625rem; }
}

/* --- 判定結果に出す「ほかの同期」 --- */

.hp-peers--verdict {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 20px;
	margin-top: 20px;
}

.hp-peers__num {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wp--preset--color--text-light);
}

.hp-peers--verdict .hp-peers__axis { font-size: 0.9375rem; font-weight: 700; }

/* --- 現役だけに絞るトグル --- */

.hp-peers__filter { margin: -6px 0 14px; }

.hp-toggle {
	padding: 6px 16px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}

.hp-toggle:hover { border-color: var(--wp--preset--color--accent); }

.hp-toggle[aria-pressed="true"] {
	background: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--text);
	color: var(--wp--preset--color--base);
}

/* 絞る余地がないときの状態表示。ボタンと同じ位置に置くが押せないことが分かる見た目にする。 */
.hp-toggle--static {
	display: inline-block;
	background: transparent;
	border-style: dashed;
	color: var(--wp--preset--color--text-light);
	cursor: default;
}

/* ==========================================================================
   年代チェッカー(hp-nendai)
   ========================================================================== */

.hp-nendai {
	padding: 0 0 clamp( 3rem, 8vw, 5rem );
}

.hp-nendai__head {
	max-width: 680px;
	margin: 0 0 24px;
}

.hp-nendai__eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--primary-soft);
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.hp-nendai__title {
	margin: 0 0 12px;
	font-size: clamp( 1.75rem, 5vw, 2.5rem );
	line-height: 1.25;
}

.hp-nendai__lede {
	margin: 0;
	color: var(--wp--preset--color--text-light);
	font-size: 0.9375rem;
	line-height: 1.9;
}

.hp-nendai-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 14px;
	padding: 18px 20px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 18px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
}

.hp-nendai-filter__copy {
	flex-shrink: 0;
}

.hp-nendai-filter__title {
	margin: 0 0 2px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.hp-nendai-filter__count {
	margin: 0;
	color: var(--wp--preset--color--text-light);
	font-size: 0.75rem;
}

.hp-nendai-filter__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.hp-nendai-filter .hp-toggle {
	min-height: 40px;
}

.hp-nendai-filter .hp-toggle:focus-visible,
.hp-nendai-member__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.hp-nendai__note,
.hp-nendai__missing {
	margin: 0;
	color: var(--wp--preset--color--text-light);
	font-size: 0.75rem;
	line-height: 1.8;
}

.hp-nendai__note {
	padding: 0 4px;
}

.hp-nendai__groups {
	display: grid;
	gap: 20px;
	margin-top: 28px;
}

.hp-nendai-group {
	overflow: hidden;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 20px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 0 color-mix( in srgb, var(--wp--preset--color--text) 18%, transparent );
}

.hp-nendai-group__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 20px 16px;
	border-bottom: 2px solid var(--wp--preset--color--text);
	background: var(--wp--preset--color--primary-soft);
}

.hp-nendai-group__title {
	margin: 0 0 2px;
	font-size: 1.125rem;
	line-height: 1.4;
}

.hp-nendai-group__title-note {
	display: inline-block;
	font-size: 0.875rem;
}

.hp-nendai-group__range {
	margin: 0;
	color: var(--wp--preset--color--text-light);
	font-size: 0.75rem;
	line-height: 1.6;
}

.hp-nendai-group__count {
	flex-shrink: 0;
	margin: 0;
	padding: 4px 11px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 700;
}

.hp-nendai-group__list {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 0;
	margin: 0;
	padding: 8px;
	list-style: none;
}

.hp-nendai-member {
	min-width: 0;
}

.hp-nendai-member__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	height: 100%;
	padding: 12px;
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
}

.hp-nendai-member__link:hover {
	background: var(--wp--preset--color--surface);
	text-decoration: none;
}

.hp-nendai-member__link:hover .hp-nendai-member__name {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.25em;
}

.hp-nendai-member .hp-avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	font-size: 0.6875rem;
}

.hp-nendai-member__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hp-nendai-member__topline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 7px;
}

.hp-nendai-member__name {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.45;
}

.hp-nendai-member__status {
	display: inline-block;
	padding: 1px 7px;
	border: 1px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.6;
}

.hp-nendai-member__status--trainee {
	background: var(--wp--preset--color--accent-soft);
}

.hp-nendai-member__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	min-width: 0;
	color: var(--wp--preset--color--text-light);
	font-size: 0.6875rem;
	line-height: 1.6;
}

.hp-nendai__empty,
.hp-nendai__missing {
	margin-top: 24px;
}

@media ( max-width: 720px ) {
	.hp-nendai-filter {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.hp-nendai-filter__buttons {
		justify-content: flex-start;
	}

	.hp-nendai-group__list {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 420px ) {
	.hp-nendai-filter {
		padding: 16px;
	}

	.hp-nendai-filter__buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.hp-nendai-filter .hp-toggle {
		width: 100%;
	}

	.hp-nendai-group__head {
		align-items: flex-start;
		padding: 15px 16px;
	}

	.hp-nendai-group__title-note {
		display: block;
		margin-top: 2px;
		font-size: 0.8125rem;
	}

	.hp-nendai-group__list {
		padding: 6px;
	}

	.hp-nendai-member__link {
		padding: 10px;
	}
}

/* ==========================================================================
   フッターの免責表示(全ページ固定)
   ========================================================================== */

.site-footer__disclaimer {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid color-mix( in srgb, currentColor 18%, transparent );
}

.site-footer__disclaimer p {
	margin: 0 0 6px;
	font-size: 0.75rem;
	line-height: 1.9;
	opacity: 0.72;
}

.site-footer__disclaimer p:last-child { margin-bottom: 0; }

/* メンバー詳細末尾のCTA。 */
.hp-block--cta { border-bottom: 0; }

/* ==========================================================================
   導入文(hp-prose) — 構造化データから組み立てた説明文
   ========================================================================== */

.hp-prose {
	padding: 22px 0 4px;
}

.hp-prose p {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	line-height: 2;
}

.hp-prose p:last-child {
	margin-bottom: 0;
}

/* 一覧ページでは末尾に置く。検索欄を押し下げてしまうと、探しに来た人の邪魔になる。 */
.hp-prose--foot {
	margin-top: 40px;
	padding: 26px 0 0;
	border-top: 2px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-light);
}
