/*
 * afflatus メインスタイル
 *
 * デザイン方針は「デザイン憲法」+ 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;
}

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

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

/* ==========================================================================
   ブログカード [afflatus_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 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等のiframe埋め込みのレスポンシブ対応(inc/features.phpでラップ) */
.responsive-embed {
	aspect-ratio: 16 / 9;
}

.responsive-embed iframe {
	width: 100%;
	height: 100%;
	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 の afflatus_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 の afflatus_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);
}

.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.7s ease-out, transform 0.7s 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 img {
	border-radius: 50%;
}

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