/*
 * CIS Base — utilities.css
 * 補助ユーティリティと単一記事まわりの回遊 UI。
 */

/* シェアボタン */
.c-share__list {
	display: flex;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.c-share__item a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem 1.2rem;
	border-radius: var(--wp--custom--radius--full, 9999px);
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s var(--cis-ease);
}
.c-share__item a:hover { opacity: 0.85; }
.c-share__item--x a { background: #000; }
.c-share__item--facebook a { background: #1877f2; }
.c-share__item--line a { background: #06c755; }
.c-share__item--hatena a { background: #00a4de; }

/* 著者ボックス */
.c-author {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--md, 14px);
	margin-block: 2rem;
}
.c-author__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
}
.c-author__name {
	font-weight: 800;
	margin: 0 0 0.35rem;
}
.c-author__bio {
	font-size: 0.85rem;
	color: var(--wp--preset--color--contrast-2);
	margin: 0;
}

/* 前後ナビ */
.c-postNav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-block: 2rem;
	flex-wrap: wrap;
}

/* 記事メタ */
.c-postMeta {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-wrap: wrap;
	font-size: 0.82rem;
	color: var(--wp--preset--color--contrast-3);
}

/* 汎用スペーシング */
.u-mt-0 { margin-top: 0 !important; }
.u-center { text-align: center; }
.u-mint { color: var(--wp--preset--color--accent); }

/* ページネーション */
.wp-block-query-pagination {
	justify-content: center;
	gap: 0.4rem;
	margin-top: var(--wp--preset--spacing--50);
}
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.5rem;
	border-radius: var(--wp--custom--radius--sm, 8px);
	border: 1px solid var(--wp--preset--color--border);
	font-weight: 700;
	text-decoration: none;
}
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-color: var(--wp--preset--color--accent);
}

/* ===== 単一記事（single / page） ===== */
.c-single__head .wp-block-post-title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	line-height: 1.5;
	margin: 0.5rem 0;
}
/* カテゴリーチップ（記事上部） */
.c-postCats {
	font-size: 0;
}
.c-postCats a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.45em 1em;
	margin-right: 0.4rem;
	border-radius: var(--wp--custom--radius--full, 9999px);
	background: var(--wp--preset--color--accent);
	color: #fff;
	text-decoration: none;
}
/* 本文タイポグラフィ */
.c-single__inner .wp-block-post-content {
	font-size: 1rem;
	line-height: 2;
}
.c-single__inner .wp-block-post-content > * {
	margin-block: 1.5em;
}
.c-single__inner .wp-block-post-content h2 {
	margin-top: 2.5em;
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--wp--preset--color--border);
}
.c-single__inner .wp-block-post-content h3 {
	margin-top: 2em;
	padding-left: 0.7rem;
	border-left: 5px solid var(--wp--preset--color--accent);
	line-height: 1.5;
}
/* 記事末尾のタグ */
.c-postTags a {
	display: inline-block;
	margin: 0.2rem 0.4rem 0.2rem 0;
	padding: 0.4rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--full, 9999px);
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
}
.c-postTags a::before {
	content: "#";
	color: var(--wp--preset--color--accent);
}
.c-postTags a:hover {
	background: var(--wp--preset--color--accent);
	color: #fff;
}
.c-postTags a:hover::before {
	color: #fff;
}

/* 前後ナビのリンク */
.c-postNav .wp-block-post-navigation-link {
	max-width: 48%;
	font-weight: 700;
	font-size: 0.85rem;
}
.c-postNav .wp-block-post-navigation-link a {
	text-decoration: none;
}

/* 関連記事ラッパー（動的ブロック） */
.c-related-wrap {
	max-width: var(--cis-inner-max);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
	margin-top: var(--wp--preset--spacing--60);
}

/* アーカイブ見出し */
.c-archiveHead__title {
	font-size: clamp(1.5rem, 3.5vw, 2.2rem);
	font-weight: 800;
}

/* 検索フォーム（一覧・404） */
.c-searchForm .wp-block-search__inside-wrapper {
	max-width: 480px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--full, 9999px);
	overflow: hidden;
	padding: 0.25rem 0.25rem 0.25rem 0;
}
.c-searchForm .wp-block-search__input {
	border: 0;
	padding: 0.75rem 1.25rem;
	background: transparent;
}
.c-searchForm .wp-block-search__button {
	border: 0;
	border-radius: var(--wp--custom--radius--full, 9999px);
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-weight: 700;
	margin: 0;
	padding-inline: 1.5rem;
}
.c-searchForm.aligncenter {
	display: flex;
	justify-content: center;
}

/* お知らせバー */
.p-noticeBar {
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--contrast);
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	padding: 0.6rem 1rem;
}
.p-noticeBar a { text-decoration: underline; }
