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

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

:root {
	/* 芸人一覧の香盤表を基準に、サイト全体の左右端を揃える。 */
	--nd-content-width: 960px;
	--nd-reading-width: 760px;
	--nd-page-gutter: clamp(20px, 4vw, 28px);
}

*,
*::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;
}

/* 下線は本文などの通常テキストリンクに限定し、カードやボタンには付けない。 */
a {
	text-decoration: none;
}

/* 面全体が操作対象のボタン・カード型リンクには、テキストの下線を付けない */
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 {
	width: 100%;
	max-width: calc(var(--nd-content-width) + 56px);
	margin-inline: auto;
	padding-inline: var(--nd-page-gutter);
}

.site-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
	padding-block: 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: var(--nd-reading-width);
	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);
}

.site-branding__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
}

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

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

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

.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: none;
}

.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 {
	width: 100%;
	max-width: calc(var(--nd-content-width) + 56px);
	margin-inline: auto;
	padding-inline: var(--nd-page-gutter);
}

.fp-wrap--narrow {
	max-width: calc(var(--nd-reading-width) + 56px);
}

/* ヒーロー(全幅の帯) */
.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;
}

/* ==========================================================================
   ブログカード [netadana_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 {
	margin-bottom: var(--wp--preset--spacing--40);
	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 :is(
	.btn-primary,
	.btn-secondary,
	.btn-invert,
	.wp-block-button__link,
	.blogcard__link,
	.nd-button,
	.nd-card
) {
	text-decoration: none;
}

.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 の netadana_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 の netadana_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;
}

/* CF7 6.x が hidden 入力を包む fieldset。
   ブラウザ既定の枠線が空の入力欄のように見えてしまうため打ち消す。 */
.wpcf7 form .hidden-fields-container {
	display: contents;
	margin: 0;
	padding: 0;
	border: 0;
}

/* 送信結果のメッセージ欄。送信前は空なので、枠だけが帯状に残らないようにする。
   aria-hidden="true" は「まだ表示すべき内容がない」状態を指す。 */
.wpcf7 form .wpcf7-response-output[aria-hidden="true"]:empty {
	display: none;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5em 0 0;
	padding: 0.9em 1.1em;
	border: 2px solid var(--wp--preset--color--border);
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

/* 送信中・送信後の状態で色を変える */
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--primary);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--wp--preset--color--accent, #d33);
}

/* ラベル */
.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;
}

/* トップページも本文とフッターの間に余白を置く。
   ifukでは全幅のCTA帯とフッターを密着させるため0にしていたが、
   ネタダナのトップは白背景のカードで終わるので、間が詰まって見える。
   spacing--60(4rem)では足りなかったため、下層より広めに取る。 */
.home .site-footer {
	margin-top: clamp(72px, 9vw, 128px);
}

.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);
}

.site-footer__logo {
	margin: 0 0 0.75em;
	font-family: var(--wp--preset--font-family--en);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.3em;
	line-height: 1;
}

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

.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;
}

/* --- innomo型フッター(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) {
	.site-footer__main {
		grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
	}
}

.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;
}

.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;
	}
}

/* ==========================================================
   ネタダナ専用UI
   支給モックアップの「小さな棚」をそのままテーマ化する。
   ========================================================== */

.nd-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--nd-content-width) + 56px);
	margin-inline: auto;
	padding-inline: var(--nd-page-gutter);
}

.nd-header {
	padding: 36px 0 8px;
}

.nd-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
}

.nd-header .nd-logo {
	flex: 1 1 auto;
	min-width: 0;
}

.nd-header .global-nav {
	flex: 0 0 auto;
	margin-left: auto;
}

.nd-header .global-nav__list {
	gap: 10px;
}

.nd-header .global-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 7px 14px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 2px 0 color-mix(in srgb, var(--wp--preset--color--text) 20%, transparent);
	color: var(--wp--preset--color--text);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-decoration: none;
}

.nd-header .global-nav__list a:hover,
.nd-header .global-nav__list .current-menu-item > a,
.nd-header .global-nav__list .current_page_item > a {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.nd-header .global-nav__list a:focus-visible,
.nd-header .nav-toggle:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

.nd-logo,
.nd-logo a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.nd-logo {
	margin: 0;
	font-size: 34px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.06em;
}

.nd-logo a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.nd-logo a {
	transition: opacity 0.15s ease-out;
}

/* ホバーはうっすら透明化。マークと文字がまとめて薄くなるよう、色は変えない */
.nd-logo a:hover {
	color: var(--wp--preset--color--text);
	opacity: 0.65;
}

.nd-logo__mark {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	transform: translateY(2px);
}

.nd-logo__mark span {
	display: block;
	width: 26px;
	height: 5px;
	border-radius: 3px;
	background: var(--wp--preset--color--text);
}

.nd-logo__mark span:first-child {
	width: 18px;
	background: var(--wp--preset--color--primary);
}

.nd-logo__mark span:nth-child(2) {
	width: 22px;
	background: var(--wp--preset--color--accent);
}

/* フッターは墨色背景。ロゴの文字色を反転し、マークの黒い線も見えるようにする */
.site-footer .nd-logo {
	font-size: 27px;
}

.site-footer .nd-logo a,
.site-footer .nd-logo a:hover {
	color: var(--wp--preset--color--surface);
}

/* マークの1本目(primary)と2本目(accent)は墨背景でも視認できるのでそのまま。
   3本目だけが text色(墨)で背景に沈むため反転する。 */
.site-footer .nd-logo__mark span:last-child {
	background: var(--wp--preset--color--surface);
}

.nd-logo__tagline {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-light);
}

.nd-page {
	min-height: 50vh;
}

/* ==========================================================
   ネタダナ トップページ
   「小さな演芸資料室」を、検索・本棚・漫才の要素で表現する。
   ========================================================== */

.nd-home {
	padding-top: 26px;
}

.nd-home-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
	align-items: center;
	gap: clamp(28px, 5vw, 58px);
	overflow: hidden;
	padding: clamp(30px, 5vw, 54px);
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 24px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 0 color-mix(in srgb, var(--wp--preset--color--text) 18%, transparent);
}

.nd-home-hero::before {
	content: "";
	position: absolute;
	top: -15%;
	right: -8%;
	width: min(52%, 500px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft);
	opacity: 0.72;
}

.nd-home-hero__copy,
.nd-home-hero__art {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.nd-home-hero h1 {
	margin: 0;
	/* 「笑いの「気になる」を」の10文字が1行に収まる上限にする */
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.3;
	/* 改行位置は本文の<br>で指定している。均等割り(balance)は<br>と競合するので使わない。
	   nowrapにすると狭い画面で横スクロールが出るため、折り返しは許可する。 */
	text-box: trim-both cap alphabetic;
}

.nd-home-hero__nowrap {
	white-space: nowrap;
}

.nd-home-hero__lead {
	max-width: 34em;
	margin: 19px 0 0;
	color: var(--wp--preset--color--text-light);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.85;
}

.nd-hero-search {
	margin-top: 25px;
}

.nd-hero-search__field {
	position: relative;
}

.nd-hero-search input {
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 13px 58px 13px 18px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.nd-hero-search input::placeholder {
	color: var(--wp--preset--color--text-light);
	opacity: 1;
}

.nd-hero-search button {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.nd-hero-search button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.nd-hero-search input:focus-visible,
.nd-hero-search button:focus-visible,
.nd-entry-card:focus-visible,
.nd-data-card:focus-visible,
.nd-update-list a:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}


.nd-home-hero__art {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nd-hero-art {
	display: block;
	width: 100%;
	max-width: 470px;
	height: auto;
}

.nd-home-section {
	margin-top: clamp(58px, 8vw, 82px);
}

.nd-home-section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px 28px;
	margin-bottom: 22px;
}

.nd-home-section__header h2,
.nd-home-section__header p {
	margin: 0;
}

.nd-home-section__header h2 {
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-box: trim-both cap alphabetic;
}

.nd-home-section__header p {
	max-width: 34em;
	color: var(--wp--preset--color--text-light);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.65;
	text-align: right;
}

/* 同期チェッカー(feature)と用語集(wide)の2枚構成。
   芸人・コンビ一覧は「データからたどる」側に置いているのでここには並べない。 */
.nd-entry-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 15px;
	align-items: stretch;
}

.nd-entry-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 190px;
	padding: 23px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.nd-entry-card:hover,
.nd-data-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 5px 0 color-mix(in srgb, var(--wp--preset--color--text) 18%, transparent);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.nd-entry-card h3,
.nd-entry-card p,


.nd-entry-card h3 {
	font-size: 21px;
	font-weight: 900;
	letter-spacing: 0.035em;
	line-height: 1.4;
}

.nd-entry-card p {
	margin-top: 8px;
	color: var(--wp--preset--color--text-light);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.72;
}

.nd-entry-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 13px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 12px 12px 5px 5px;
	background: var(--wp--preset--color--primary-soft);
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	box-shadow: inset 6px 0 color-mix(in srgb, var(--wp--preset--color--primary) 42%, transparent);
}

.nd-entry-card__icon.is-blue {
	background: var(--wp--preset--color--accent-soft);
	box-shadow: inset 6px 0 color-mix(in srgb, var(--wp--preset--color--accent) 42%, transparent);
}

.nd-entry-card__link,
.nd-data-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 18px;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.3;
}

/* 2枚のツールカードは寸法と余白をそろえる。色だけを変えて対比させる */
.nd-entry-card--feature,
.nd-entry-card--wide {
	min-height: 395px;
	padding: 30px;
}

.nd-entry-card--feature {
	background: var(--wp--preset--color--primary-soft);
}

/* 2枚のカードは見出しの大きさをそろえる(高さが合うよう余白も共通) */
.nd-entry-card--feature h3,
.nd-entry-card--wide h3 {
	margin-top: 0;
	font-size: clamp(27px, 3.5vw, 34px);
}

.nd-entry-card--feature > p,
.nd-entry-card--wide > p {
	font-size: 13px;
}

.nd-entry-card__label {
	align-self: flex-start;
	padding: 5px 10px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.2;
}

/* カードの中に置く白い箱。同期チェッカーの判定例と用語集の用語一覧で共用する */
.nd-entry-card__box {
	display: grid;
	align-content: center;
	margin-top: 26px;
	padding: 20px 17px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
}

/* 用語集は同期チェッカーと配色を入れ替える。
   カード=白 / 箱=オレンジ / 用語=白 とすることで、同じ構造のまま対比がつく */
.nd-entry-card--wide .nd-entry-card__box {
	background: var(--wp--preset--color--primary-soft);
}

.nd-mini-result {
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	text-align: center;
}

/* 芸人名は判定例の主役なので大きく見せる */
.nd-mini-result span {
	font-size: clamp(19px, 2.2vw, 25px);
	font-weight: 900;
	letter-spacing: 0.02em;
}

.nd-mini-result b {
	color: var(--wp--preset--color--text-light);
	font-size: 14px;
}

.nd-mini-result strong {
	grid-column: 1 / -1;
	margin-top: 8px;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 900;
	line-height: 1.35;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--primary);
	text-decoration-thickness: 0.35em;
	text-underline-offset: -0.18em;
	text-decoration-skip-ink: none;
}

/* 用語集カード。同期チェッカー(feature)と同じ縦積みにして見た目をそろえる。
   高さは内容ぶんだけにし、上端をfeatureとそろえる。 */


/* 収録している用語の例。同期チェッカーの判定例と同じ役割で、中身を想像できるようにする */
.nd-term-samples {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nd-term-samples li {
	padding: 6px 13px;
	border-radius: 999px;
	/* オレンジの箱の中に置くので、白で抜いて区切る */
	background: var(--wp--preset--color--white);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.4;
}



.nd-data-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.nd-data-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: 27px 28px 26px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.nd-data-card::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 9px;
	background: var(--wp--preset--color--primary);
}

.nd-data-card.is-blue::before {
	background: var(--wp--preset--color--accent);
}

.nd-data-card h3,
.nd-data-card p {
	margin: 0;
}

.nd-data-card__eyebrow {
	margin-top: 18px !important;
	color: var(--wp--preset--color--text-light);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.3;
}

.nd-data-card h3 {
	margin-top: 7px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 900;
	letter-spacing: 0.035em;
	line-height: 1.4;
}

.nd-data-card h3 + p {
	margin-top: 10px;
	color: var(--wp--preset--color--text-light);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.75;
}

.nd-data-card__timeline {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 20px;
}

.nd-data-card__timeline::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 4px;
	right: 4px;
	height: 3px;
	border-radius: 999px;
	background: var(--wp--preset--color--border);
	transform: translateY(-50%);
}

.nd-data-card__timeline span {
	position: relative;
	z-index: 1;
	display: block;
	width: 14px;
	height: 14px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft);
}

.nd-data-card.is-blue .nd-data-card__timeline span {
	background: var(--wp--preset--color--accent-soft);
}

.nd-home-updates {
	margin-bottom: 14px;
}

.nd-update-list {
	margin: 0;
	padding: 0;
	border-top: 3px solid var(--wp--preset--color--text);
	list-style: none;
}

.nd-update-list li {
	display: grid;
	grid-template-columns: 90px 48px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.nd-update-list time {
	color: var(--wp--preset--color--text-light);
	font-size: 11px;
	font-weight: 700;
}

.nd-update-list__type {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	font-size: 9px;
	font-weight: 900;
	line-height: 1.2;
}

.nd-update-list a {
	color: var(--wp--preset--color--text);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.5;
}

.nd-search {
	margin: 20px 0 34px;
}

.nd-search input {
	width: 100%;
	margin: 0;
	padding: 15px 20px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 3px 0 color-mix(in srgb, var(--wp--preset--color--text) 25%, transparent);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.nd-search input::placeholder {
	color: var(--wp--preset--color--text-light);
	font-weight: 500;
	opacity: 1;
}

.nd-search input:focus-visible,
.nd-card:focus-visible,
.nd-button:focus-visible,
.nd-footer a:focus-visible,
.nd-logo a:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

.nd-shelf {
	margin: 0 0 44px;
}

.nd-shelf__label {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--wp--preset--color--text);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.nd-shelf__label span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--text-light);
}

.nd-shelf__items {
	display: flex;
	align-items: stretch;
	gap: 14px;
	overflow-x: auto;
	padding: 6px 4px 0;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
}

.nd-shelf__items::-webkit-scrollbar {
	display: none;
}

.nd-shelf__board {
	position: relative;
	height: 17px;
	margin-top: -1px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 4px 4px 8px 8px;
	background: var(--wp--preset--color--primary-soft);
	box-shadow: 0 5px 7px -3px color-mix(in srgb, var(--wp--preset--color--text) 30%, transparent);
}

.nd-shelf__board::before,
.nd-shelf__board::after {
	content: "";
	position: absolute;
	top: 100%;
	width: 19px;
	height: 9px;
	border: 3px solid var(--wp--preset--color--text);
	border-top: 0;
	border-radius: 0 0 5px 5px;
	background: var(--wp--preset--color--primary-soft);
}

.nd-shelf__board::before {
	left: 13%;
}

.nd-shelf__board::after {
	right: 13%;
}

.nd-shelf__more {
	margin: 10px 4px 0;
	text-align: right;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.nd-shelf__more a {
	color: var(--wp--preset--color--text-light);
	text-decoration-thickness: 0.12em;
	text-underline-offset: 4px;
}

.nd-shelf__more a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.nd-card {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 6px;
	width: 210px;
	min-height: 143px;
	padding: 16px 18px 14px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 14px 14px 6px 6px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: transform 0.15s ease;
}

a.nd-card:hover {
	transform: translateY(-5px);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.nd-card h3,
.nd-card p {
	margin: 0;
}

.nd-card h3 {
	font-size: 16px;
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0.03em;
}

.nd-card p {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--wp--preset--color--text-light);
}

.nd-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--wp--preset--color--primary-soft);
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

.nd-card--slot {
	align-items: center;
	justify-content: center;
	border-style: dashed;
	background: transparent;
	color: var(--wp--preset--color--text-light);
}

.nd-card--slot p {
	font-weight: 700;
}

.nd-card__plus {
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
}

.nd-card--word {
	width: 168px;
	min-height: 150px;
	padding: 14px 16px 12px;
}

.nd-card--word h3 {
	font-size: 17px;
}

.nd-card--word p {
	font-size: 11.5px;
}

.nd-card__yomi {
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--text-light);
}

.nd-card__category {
	align-self: flex-start;
	margin-top: auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	color: color-mix(in srgb, var(--wp--preset--color--accent) 65%, var(--wp--preset--color--text));
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
}

.nd-demo-note {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--text-light);
}

.nd-result {
	padding: 22px 22px 18px;
	border: 3px solid var(--wp--preset--color--text);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 4px 0 color-mix(in srgb, var(--wp--preset--color--text) 18%, transparent);
}

.nd-result__vs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 900;
}

.nd-result__name {
	padding: 6px 14px;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
}

.nd-result__cross {
	font-size: 12px;
	color: var(--wp--preset--color--text-light);
}

.nd-result__verdict {
	margin: 0 0 6px;
	text-align: center;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.nd-result__verdict mark {
	background: linear-gradient(transparent 62%, var(--wp--preset--color--primary) 62%);
	color: inherit;
}

.nd-result__detail {
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--wp--preset--color--text-light);
}

.nd-result__actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}

.nd-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 41px;
	padding: 8px 18px;
	border: 2.5px solid var(--wp--preset--color--text);
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
}

.nd-button--primary,
.nd-button--primary:hover {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.nd-button--secondary,
.nd-button--secondary:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.nd-news {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nd-news li {
	display: flex;
	gap: 14px;
	padding: 11px 4px;
	border-bottom: 2px dotted var(--wp--preset--color--border);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.6;
}

.nd-news time {
	flex: 0 0 auto;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--wp--preset--color--text-light);
}

.nd-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 40px;
	padding: 26px 0 46px;
	border-top: 3px solid var(--wp--preset--color--text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--wp--preset--color--text-light);
}

.nd-footer a,
.nd-footer a:hover {
	color: inherit;
}

@media (max-width: 840px) {
	.nd-home-hero {
		grid-template-columns: 1fr;
	}

	.nd-home-hero::before {
		top: auto;
		right: -15%;
		bottom: -8%;
		width: 76%;
	}

	.nd-home-hero__art {
		max-width: 430px;
		margin-inline: auto;
	}

	.nd-entry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nd-entry-card--feature {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 340px;
	}

	.nd-entry-card--wide {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.nd-home {
		padding-top: 18px;
	}

	.nd-home-hero {
		gap: 26px;
		padding: 25px 20px 22px;
		border-radius: 20px;
	}

	.nd-home-hero::before {
		right: -24%;
		bottom: -5%;
		width: 100%;
	}

	.nd-home-hero h1 {
		font-size: 27px;
		line-height: 1.35;
	}

	.nd-home-hero__lead {
		margin-top: 16px;
		font-size: 13px;
	}

	.nd-hero-search {
		margin-top: 20px;
	}

	.nd-home-hero__art {
		max-width: 315px;
	}

	.nd-home-section {
		margin-top: 54px;
	}

	.nd-home-section__header {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: 18px;
	}

	.nd-home-section__header h2 {
		font-size: 28px;
	}

	.nd-home-section__header p {
		text-align: left;
	}

	.nd-entry-grid,
	.nd-data-grid {
		grid-template-columns: 1fr;
	}

	.nd-entry-card,
	.nd-entry-card--feature {
		grid-column: auto;
		min-height: 0;
		padding: 22px 20px;
	}

	.nd-entry-card--feature {
		min-height: 345px;
	}

	.nd-entry-card--wide {
		display: flex;
		align-items: stretch;
	}

	.nd-entry-card--wide .nd-entry-card__icon {
		margin-bottom: 13px;
	}

	.nd-entry-card--wide .nd-entry-card__link {
		margin-top: auto;
		padding-top: 18px;
	}

	.nd-data-card {
		padding: 24px 22px 23px 26px;
	}

	.nd-update-list li {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 7px 10px;
		padding-block: 13px;
	}

	.nd-update-list__type {
		justify-self: start;
	}

	.nd-update-list a {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.nd-header__inner {
		align-items: flex-start;
	}

	.nd-logo {
		gap: 8px 12px;
		font-size: 30px;
	}

	.nd-logo__tagline {
		flex-basis: 100%;
		padding-left: 38px;
	}

	.nd-search input {
		padding-inline: 17px;
		font-size: 15px;
	}

	.nd-result {
		padding-inline: 16px;
	}

	.nd-result__actions {
		gap: 8px;
	}

	.nd-button {
		padding-inline: 14px;
	}

	.nd-news li {
		gap: 9px;
		font-size: 12.5px;
	}
}

@media (max-width: 959px) {
	.nd-header .global-nav {
		margin-left: 0;
	}

	.nd-header .global-nav__list {
		gap: 0;
	}

	.nd-header .global-nav__list a {
		display: block;
		padding: 1em 0.5em;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		font-size: var(--wp--preset--font-size--medium);
	}

	.nd-header .global-nav__list a:hover,
	.nd-header .global-nav__list .current-menu-item > a,
	.nd-header .global-nav__list .current_page_item > a {
		background: transparent;
		color: var(--wp--preset--color--accent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nd-card {
		transition: none;
	}

	a.nd-card:hover {
		transform: none;
	}

	.nd-entry-card,
	.nd-data-card {
		transition: none;
	}

	.nd-entry-card:hover,
	.nd-data-card:hover {
		transform: 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;
}
