/**
 * Blog Template — メインのスタイル
 *
 * 色はすべて CSS 変数（--bt-*）。値はカスタマイザーの設定から <style> で上書きされる。
 * 目次:
 *   1. 変数・リセット   2. 共通   3. ヘッダー・メインビジュアル・ナビ
 *   4. レイアウト       5. トップのタブ・記事カード・ページャー
 *   6. サイドバー       7. 記事ページ   8. 一覧の見出し・検索・404
 *   9. コメント        10. フッター    11. スマホ表示
 */

/* ---------- 1. 変数・リセット ---------- */
:root {
	--bt-main: #a5d85d;
	--bt-main-dark: #87b14c;
	--bt-main-light: #d6eeb6;
	--bt-main-pale: #f2faea;
	--bt-accent: #ff7e28;
	--bt-accent-dark: #d96b22;
	--bt-accent-pale: #fff0e5;
	--bt-text: #686357;
	--bt-text-light: #aca9a2;
	--bt-link: #3b8bc4;
	--bt-bg: #ffffff;
	--bt-on-main: #ffffff;
	--bt-on-accent: #ffffff;

	--bt-line: #ebe9e2;
	--bt-gray: #f6f5f1;
	--bt-radius: 6px;
	--bt-shadow: 0 1px 4px rgba(80, 70, 50, 0.14);
	--bt-shadow-hover: 0 6px 16px rgba(80, 70, 50, 0.18);
	--bt-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
	--bt-font-round: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
	--bt-container: 1120px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--bt-bg);
	color: var(--bt-text);
	font-family: var(--bt-font);
	font-size: 15px;
	line-height: 1.8;
	letter-spacing: 0.04em;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	vertical-align: middle;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--bt-font-round);
	line-height: 1.5;
}

ul,
ol {
	padding-left: 1.4em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--bt-accent);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

/* ---------- 2. 共通 ---------- */
.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;
}

.bt-skip:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 16px;
	clip: auto;
	background: #fff;
	border-radius: var(--bt-radius);
	box-shadow: var(--bt-shadow);
}

.bt-container {
	width: 100%;
	max-width: var(--bt-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.bt-icon {
	flex: none;
	vertical-align: -0.15em;
}

/* サムネイルが無いときのプレースホルダー */
.bt-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 8px;
	background: var(--bt-main-pale);
	color: var(--bt-main-dark);
	font-family: var(--bt-font-round);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	line-height: 1.4;
}

/* 検索フォーム */
.bt-searchform {
	display: flex;
	align-items: center;
	border: 2px solid var(--bt-line);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s;
}

.bt-searchform:focus-within {
	border-color: var(--bt-main);
}

.bt-searchform input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 4px 0 18px;
	border: 0;
	background: none;
	font-size: 14px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.bt-searchform button {
	display: grid;
	place-items: center;
	width: 46px;
	height: 42px;
	border: 0;
	background: none;
	color: var(--bt-main-dark);
}

/* 丸いボタン（もっと見る 等） */
.bt-more {
	margin: 28px 0 0;
	text-align: center;
}

.bt-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 240px;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
	font-family: var(--bt-font-round);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 3px 0 var(--bt-accent-dark);
	transition: transform 0.15s, box-shadow 0.15s;
}

.bt-more__btn:hover {
	transform: translateY(2px);
	box-shadow: 0 1px 0 var(--bt-accent-dark);
}

/* ---------- 3. ヘッダー・メインビジュアル・ナビ ---------- */
.bt-header {
	background: var(--bt-bg);
}

.bt-header__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-block: 26px 22px;
	text-align: center;
}

.bt-header__brand {
	margin: 0;
	font-family: var(--bt-font-round);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
}

.bt-header__brand img {
	width: auto;
	max-height: 64px;
}

.bt-header__title:hover {
	color: var(--bt-main-dark);
}

.bt-header__desc {
	margin: 4px 0 0;
	color: var(--bt-text-light);
	font-size: 12px;
}

.bt-menu-btn {
	display: none;
}

/* メインビジュアル */
.bt-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 380px;
	overflow: hidden;
	background: var(--bt-main-pale);
}

.bt-hero--small {
	height: 260px;
}

.bt-hero--large {
	height: 500px;
}

.bt-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bt-hero__text {
	position: relative;
	max-width: min(680px, calc(100% - 40px));
	padding: 30px 44px;
	text-align: center;
}

.bt-hero--card .bt-hero__text {
	background: rgba(255, 255, 255, 0.88);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(80, 70, 50, 0.12);
}

.bt-hero--light .bt-hero__text {
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.bt-hero__title {
	margin: 0;
	font-family: var(--bt-font-round);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.08em;
}

.bt-hero__subtitle {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.8;
}

.bt-hero--card .bt-hero__title::after {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin: 12px auto 0;
	border-radius: 2px;
	background: var(--bt-main);
}

/* グローバルナビ（PC） */
.bt-gnav {
	background: var(--bt-main);
	color: var(--bt-on-main);
}

.bt-gnav__close,
.bt-gnav__search {
	display: none;
}

.bt-gnav__list,
.bt-gnav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-gnav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: var(--bt-container);
	margin-inline: auto;
	padding-inline: 20px;
	font-family: var(--bt-font-round);
	font-size: 13px;
	font-weight: 700;
}

.bt-gnav__list > li {
	position: relative;
	flex: 1 1 0;
	max-width: 240px;
	border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.bt-gnav__list > li:last-child {
	border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.bt-gnav__list a {
	display: block;
	padding: 13px 10px;
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.bt-gnav__list a:hover,
.bt-gnav__list .current-menu-item > a {
	background: rgba(255, 255, 255, 0.22);
}

.bt-gnav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 100%;
	background: var(--bt-main);
	box-shadow: var(--bt-shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.bt-gnav__list li:hover > .sub-menu,
.bt-gnav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.bt-gnav__list .sub-menu a {
	border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.bt-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(60, 55, 45, 0.45);
}

/* ---------- 4. レイアウト ---------- */
.bt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	padding-block: 36px 64px;
}

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

/* ---------- 5. トップのタブ・記事カード・ページャー ---------- */
.bt-tabnav {
	display: flex;
	gap: 4px;
	margin-bottom: 26px;
}

.bt-tabnav__btn {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	padding: 11px 6px;
	border: 0;
	border-radius: 3px;
	background: var(--bt-gray);
	font-family: var(--bt-font-round);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.2s, color 0.2s;
}

.bt-tabnav__btn:hover {
	background: var(--bt-main-light);
}

.bt-tabnav__btn.is-active {
	overflow: visible;
	background: var(--bt-main);
	color: var(--bt-on-main);
}

.bt-tabnav__btn.is-active::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -8px;
	border: 8px solid transparent;
	border-top-color: var(--bt-main);
}

/* JS が有効なときだけタブとして畳む（無効なら全部縦に並ぶ） */
.js .bt-top--tabs .bt-section:not(.is-active) {
	display: none;
}

.js .bt-top--tabs .bt-section__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.bt-section + .bt-section {
	margin-top: 52px;
}

.bt-section__title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	font-size: 19px;
	letter-spacing: 0.1em;
}

.bt-section__title::after,
.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: repeating-linear-gradient(-45deg, var(--bt-main) 0 2px, transparent 2px 5px);
}

.bt-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 20px;
}

.bt-card {
	display: flex;
	background: #fff;
	border-radius: var(--bt-radius);
	box-shadow: var(--bt-shadow);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.bt-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bt-shadow-hover);
}

.bt-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.bt-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bt-gray);
}

.bt-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.bt-card:hover .bt-card__thumb img {
	transform: scale(1.05);
}

.bt-card__cat {
	position: absolute;
	top: 10px;
	left: 10px;
	max-width: calc(100% - 20px);
	padding: 2px 11px;
	border-radius: 999px;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
	font-family: var(--bt-font-round);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bt-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px 16px 12px;
}

.bt-card__title {
	display: -webkit-box;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.bt-card__date {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin: auto 0 0;
	padding-top: 12px;
	color: var(--bt-text-light);
	font-size: 11px;
	line-height: 1;
}

/* ページャー */
.bt-pager {
	margin-top: 40px;
}

.bt-pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-pager .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--bt-shadow);
	font-family: var(--bt-font-round);
	font-size: 13px;
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}

.bt-pager a.page-numbers:hover,
.bt-pager .page-numbers.current {
	background: var(--bt-main);
	color: var(--bt-on-main);
}

.bt-pager .page-numbers.dots {
	min-width: 16px;
	background: none;
	box-shadow: none;
}

/* ---------- 6. サイドバー ---------- */
.bt-sidebar {
	min-width: 0;
	font-size: 14px;
}

.bt-sidebar .widget + .widget,
.bt-sidebar__sticky {
	margin-top: 44px;
}

.bt-sidebar__sticky {
	position: sticky;
	top: 20px;
}

.widget-title {
	position: relative;
	margin: 0 0 16px;
	padding: 0 2px 12px;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.12em;
}

.widget ul,
.widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* リスト系ウィジェット（カテゴリ・アーカイブ・固定ページ・メニュー等） */
.widget_categories li a,
.widget_archive li a,
.widget_pages li a,
.widget_nav_menu li a,
.widget_meta li a,
.widget_recent_entries li a,
.widget_recent_comments li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 4px 12px 26px;
	border-bottom: 1px dashed var(--bt-line);
	font-weight: 700;
	line-height: 1.5;
	transition: color 0.2s;
}

.widget_categories li a::before,
.widget_archive li a::before,
.widget_pages li a::before,
.widget_nav_menu li a::before,
.widget_meta li a::before,
.widget_recent_entries li a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 4px;
	width: 15px;
	height: 15px;
	margin-top: -7.5px;
	border-radius: 50%;
	background: var(--bt-main);
}

.widget_categories li a::after,
.widget_archive li a::after,
.widget_pages li a::after,
.widget_nav_menu li a::after,
.widget_meta li a::after,
.widget_recent_entries li a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 8px;
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: rotate(45deg);
}

.widget_categories li a:hover,
.widget_archive li a:hover,
.widget_pages li a:hover,
.widget_nav_menu li a:hover,
.widget_meta li a:hover,
.widget_recent_entries li a:hover {
	color: var(--bt-main-dark);
}

/* 子カテゴリ */
.widget_categories .children a,
.widget_pages .children a,
.widget_nav_menu .sub-menu a {
	padding-left: 44px;
	font-weight: 500;
	font-size: 13px;
}

.widget_categories .children a::before,
.widget_pages .children a::before,
.widget_nav_menu .sub-menu a::before {
	left: 28px;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	background: var(--bt-main-light);
}

.widget_categories .children a::after,
.widget_pages .children a::after,
.widget_nav_menu .sub-menu a::after {
	content: none;
}

.bt-count {
	flex: none;
	min-width: 30px;
	margin-left: auto;
	padding: 1px 6px;
	border: 1px solid var(--bt-line);
	border-radius: 3px;
	color: var(--bt-text-light);
	font-size: 11px;
	font-weight: 500;
	text-align: center;
	line-height: 1.5;
}

.widget select {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 2px solid var(--bt-line);
	border-radius: var(--bt-radius);
	background: #fff;
}

/* タグクラウド */
.tagcloud,
.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tagcloud a,
.wp-block-tag-cloud a {
	padding: 4px 12px;
	border: 1px solid var(--bt-line);
	border-radius: 999px;
	background: #fff;
	font-size: 12px !important;
	line-height: 1.6;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tagcloud a::before,
.wp-block-tag-cloud a::before {
	content: "#";
	margin-right: 2px;
	color: var(--bt-main-dark);
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
	border-color: var(--bt-main);
	background: var(--bt-main-pale);
}

/* プロフィール */
.widget_bt_profile {
	padding: 26px 20px 20px;
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	background: #fff;
	box-shadow: 0 1px 3px rgba(80, 70, 50, 0.06);
}

.bt-profile__head {
	text-align: center;
}

.bt-profile__img {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bt-main-pale);
}

.bt-profile__name {
	margin: 12px 0 0;
	font-family: var(--bt-font-round);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

.bt-profile__title {
	margin: 2px 0 0;
	color: var(--bt-text-light);
	font-size: 11px;
}

.bt-profile__bio {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.85;
}

.bt-profile__bio p {
	margin: 0 0 0.6em;
}

.bt-profile__bio p:last-child {
	margin-bottom: 0;
}

.bt-follow {
	margin-top: 18px;
	padding: 14px 12px 16px;
	border-radius: 4px;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
	text-align: center;
}

.bt-follow__label {
	margin: 0 0 10px;
	font-family: var(--bt-font-round);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
}

.bt-follow__label::before {
	content: "＼ ";
}

.bt-follow__label::after {
	content: " ／";
}

.bt-follow .bt-follow__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-follow__list a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.28);
	transition: background-color 0.2s, color 0.2s;
}

.bt-follow__list a:hover {
	background: #fff;
	color: var(--bt-accent);
}

/* サムネ付き記事リスト（新着・おすすめ） */
.bt-postlist {
	counter-reset: bt-rank;
}

.bt-postlist li + li {
	margin-top: 14px;
}

.bt-postlist a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bt-postlist__thumb {
	position: relative;
	flex: none;
	width: 108px;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	background: var(--bt-gray);
	overflow: hidden;
}

.bt-postlist__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bt-postlist__thumb .bt-noimage {
	font-size: 9px;
}

.bt-postlist--ranked li {
	counter-increment: bt-rank;
}

.bt-postlist--ranked .bt-postlist__thumb {
	overflow: visible;
}

.bt-postlist--ranked .bt-postlist__thumb img,
.bt-postlist--ranked .bt-postlist__thumb .bt-noimage {
	border-radius: 4px;
}

.bt-postlist--ranked .bt-postlist__thumb::before {
	content: counter(bt-rank);
	position: absolute;
	top: -6px;
	left: -6px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
	font-family: var(--bt-font-round);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.bt-postlist__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.bt-postlist__title {
	display: -webkit-box;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	transition: color 0.2s;
}

.bt-postlist a:hover .bt-postlist__title {
	color: var(--bt-main-dark);
}

.bt-postlist__date {
	margin-top: 4px;
	color: var(--bt-text-light);
	font-size: 11px;
	line-height: 1.4;
}

/* ---------- 7. 記事ページ ---------- */
.bt-article {
	padding: 30px 34px 34px;
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	background: #fff;
}

.bt-article__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.bt-article__cats a {
	display: block;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
	font-family: var(--bt-font-round);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
}

.bt-article__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: 0.05em;
}

.bt-article__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 14px;
	margin: 10px 0 0;
	color: var(--bt-text-light);
	font-size: 12px;
}

.bt-article__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.bt-article__eyecatch {
	margin: 16px 0 0;
}

.bt-article__eyecatch img {
	width: 100%;
	border-radius: 4px;
}

.bt-article--page .bt-article__title {
	padding-bottom: 14px;
	border-bottom: 3px solid var(--bt-main);
}

/* 本文 */
.bt-content {
	margin-top: 28px;
	font-size: 16px;
	line-height: 1.95;
}

.bt-content::after {
	content: "";
	display: block;
	clear: both;
}

.bt-content > * {
	margin-block: 0 1.7em;
}

.bt-content > *:last-child {
	margin-bottom: 0;
}

.bt-content a {
	color: var(--bt-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bt-content a:hover {
	text-decoration: none;
}

.bt-content h2 {
	margin: 2.8em 0 1.2em;
	padding: 14px 18px;
	border-radius: 4px;
	background: var(--bt-main);
	box-shadow: inset 0 0 0 2px var(--bt-main), inset 0 0 0 3px rgba(255, 255, 255, 0.55);
	color: var(--bt-on-main);
	font-size: 21px;
	font-weight: 700;
}

.bt-content h3 {
	margin: 2.4em 0 1em;
	padding: 6px 0 8px 14px;
	border-left: 6px solid var(--bt-main);
	border-bottom: 2px dashed var(--bt-main-light);
	font-size: 19px;
	font-weight: 700;
}

.bt-content h4 {
	position: relative;
	margin: 2em 0 0.8em;
	padding-left: 22px;
	font-size: 17px;
	font-weight: 700;
}

.bt-content h4::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bt-accent);
}

.bt-content h5,
.bt-content h6 {
	margin: 1.8em 0 0.6em;
	font-size: 16px;
}

.bt-content ul:not([class*="is-style-"]):not(.bt-toc__list):not(.blocks-gallery-grid) > li::marker {
	color: var(--bt-main-dark);
}

.bt-content li + li,
.bt-content li > ul,
.bt-content li > ol {
	margin-top: 0.4em;
}

.bt-content img {
	border-radius: 4px;
}

.bt-content figcaption {
	margin-top: 8px;
	color: var(--bt-text-light);
	font-size: 12px;
	text-align: center;
}

.bt-content blockquote,
.bt-content .wp-block-quote {
	position: relative;
	margin-inline: 0;
	padding: 34px 22px 18px 26px;
	border: 0;
	border-radius: var(--bt-radius);
	background: var(--bt-gray);
	font-size: 15px;
}

.bt-content blockquote::before {
	content: "“";
	position: absolute;
	top: 2px;
	left: 14px;
	color: var(--bt-main);
	font-family: Georgia, serif;
	font-size: 54px;
	line-height: 1;
}

.bt-content blockquote p {
	margin: 0 0 0.8em;
}

.bt-content blockquote > :last-child {
	margin-bottom: 0;
}

.bt-content blockquote cite {
	display: block;
	color: var(--bt-text-light);
	font-size: 12px;
	font-style: normal;
	text-align: right;
}

.bt-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.7;
}

.bt-content th,
.bt-content td,
.bt-content .wp-block-table th,
.bt-content .wp-block-table td {
	padding: 10px 14px;
	border: 1px solid var(--bt-line);
	text-align: left;
}

.bt-content th,
.bt-content .wp-block-table thead th {
	background: var(--bt-main-pale);
	font-weight: 700;
}

.bt-content .wp-block-table thead {
	border-bottom: 0;
}

.bt-content .wp-block-table {
	overflow-x: auto;
}

.bt-content pre {
	padding: 16px 18px;
	border-radius: var(--bt-radius);
	background: #4a463c;
	color: #f6f5f1;
	font-size: 13px;
	line-height: 1.7;
	overflow-x: auto;
}

.bt-content :not(pre) > code {
	padding: 2px 6px;
	border-radius: 3px;
	background: var(--bt-gray);
	font-size: 0.9em;
}

.bt-content hr {
	height: 5px;
	border: 0;
	background: repeating-linear-gradient(-45deg, var(--bt-main-light) 0 2px, transparent 2px 5px);
}

.bt-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.bt-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.bt-content .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.bt-content .wp-block-embed iframe,
.bt-content > iframe {
	width: 100%;
}

.bt-pagelinks {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	font-weight: 700;
}

.bt-pagelinks > * {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bt-gray);
}

.bt-pagelinks > .current {
	background: var(--bt-main);
	color: var(--bt-on-main);
}

/* タグ */
.bt-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.bt-article__tags a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 12px;
	border: 1px solid var(--bt-line);
	border-radius: 999px;
	font-size: 12px;
	transition: background-color 0.2s, border-color 0.2s;
}

.bt-article__tags a:hover {
	border-color: var(--bt-main);
	background: var(--bt-main-pale);
}

.bt-article__tags .bt-icon {
	color: var(--bt-main-dark);
}

/* シェアボタン */
.bt-share {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.bt-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 40px;
	padding: 0 4px;
	border: 0;
	border-radius: 4px;
	background: #8a8473;
	color: #fff;
	font-family: var(--bt-font-round);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	transition: opacity 0.2s, transform 0.2s;
}

.bt-share__btn:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

.bt-share__btn--x {
	background: #222;
}

.bt-share__btn--facebook {
	background: #3b5998;
}

.bt-share__btn--hatena {
	background: #2c7fd1;
}

.bt-share__btn--line {
	background: #06b84f;
}

/* 著者ボックス */
.bt-author {
	margin-top: 36px;
	padding: 0 24px 24px;
	border: 2px solid var(--bt-main-light);
	border-radius: var(--bt-radius);
	background: #fff;
}

.bt-author__label {
	display: table;
	margin: -14px auto 16px;
	padding: 3px 18px;
	border-radius: 999px;
	background: var(--bt-main);
	color: var(--bt-on-main);
	font-size: 12px;
	letter-spacing: 0.1em;
}

.bt-profile--author {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 4px 22px;
	align-items: start;
}

.bt-profile--author .bt-profile__head {
	grid-row: span 2;
}

.bt-profile--author .bt-profile__img {
	width: 90px;
	height: 90px;
}

.bt-profile--author .bt-profile__name {
	margin-top: 8px;
	font-size: 14px;
}

.bt-profile--author .bt-profile__bio {
	margin-top: 4px;
}

.bt-profile--author .bt-follow {
	margin-top: 10px;
	padding: 0;
	background: none;
	color: inherit;
	text-align: left;
}

.bt-profile--author .bt-follow__label {
	display: none;
}

.bt-profile--author .bt-follow__list {
	justify-content: flex-start;
}

.bt-profile--author .bt-follow__list a {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
}

.bt-profile--author .bt-follow__list a:hover {
	background: var(--bt-accent-dark);
	color: var(--bt-on-accent);
}

/* 前後の記事 */
.bt-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 32px;
}

.bt-postnav__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: var(--bt-radius);
	background: var(--bt-gray);
	transition: background-color 0.2s;
}

.bt-postnav__item:hover {
	background: var(--bt-main-pale);
}

.bt-postnav__item--next {
	grid-column: 2;
	text-align: right;
}

.bt-postnav__label {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--bt-main-dark);
	font-family: var(--bt-font-round);
	font-size: 11px;
	font-weight: 700;
}

.bt-postnav__item--next .bt-postnav__label {
	justify-content: flex-end;
}

.bt-postnav__title {
	display: -webkit-box;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.bt-related {
	margin-top: 52px;
}

/* ---------- 8. 一覧の見出し・検索・404 ---------- */
.bt-archive-head {
	margin-bottom: 28px;
	padding: 22px 24px;
	border-radius: var(--bt-radius);
	background: var(--bt-main-pale);
	text-align: center;
}

.bt-archive-head__label {
	display: inline-block;
	margin: 0 0 6px;
	padding: 1px 14px;
	border-radius: 999px;
	background: var(--bt-main);
	color: var(--bt-on-main);
	font-family: var(--bt-font-round);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.bt-archive-head__title {
	margin: 0;
	font-size: 23px;
	letter-spacing: 0.08em;
}

.bt-archive-head__desc,
.bt-archive-head__count {
	margin: 8px 0 0;
	font-size: 13px;
}

.bt-archive-head__desc p {
	margin: 0;
}

.bt-subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -8px 0 26px;
	padding: 0;
	list-style: none;
}

.bt-subcats a {
	display: block;
	padding: 5px 16px;
	border: 2px solid var(--bt-main-light);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	transition: background-color 0.2s;
}

.bt-subcats a:hover {
	background: var(--bt-main-pale);
}

.bt-none,
.bt-404 {
	padding: 40px 24px;
	border-radius: var(--bt-radius);
	background: var(--bt-gray);
	text-align: center;
}

.bt-none .bt-searchform,
.bt-404 .bt-searchform {
	max-width: 420px;
	margin: 20px auto 0;
}

.bt-404 {
	margin-bottom: 52px;
}

.bt-404__code {
	margin: 0;
	color: var(--bt-main);
	font-family: var(--bt-font-round);
	font-size: 72px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.1em;
}

.bt-404__title {
	margin: 4px 0 14px;
	font-size: 21px;
}

.bt-404 .bt-more__btn {
	margin-top: 8px;
}

/* パンくず */
.bt-breadcrumb {
	padding-block: 12px;
	border-top: 1px solid var(--bt-line);
	color: var(--bt-text-light);
	font-size: 12px;
}

.bt-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	margin-block: 0;
	list-style: none;
}

.bt-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.bt-breadcrumb li + li::before {
	content: "›";
	margin-inline: 8px;
}

.bt-breadcrumb a:hover {
	color: var(--bt-text);
	text-decoration: underline;
}

/* ---------- 9. コメント ---------- */
.bt-comments {
	margin-top: 52px;
}

.bt-comments__list,
.bt-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-comments__list .children {
	margin-left: 24px;
}

.bt-comments .comment-body {
	margin-bottom: 14px;
	padding: 16px 18px;
	border-radius: var(--bt-radius);
	background: var(--bt-gray);
	font-size: 14px;
}

.bt-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.bt-comments .comment-author .avatar {
	border-radius: 50%;
}

.bt-comments .comment-metadata {
	color: var(--bt-text-light);
	font-size: 11px;
}

.bt-comments .reply a {
	color: var(--bt-main-dark);
	font-size: 12px;
	font-weight: 700;
}

.comment-respond {
	padding: 24px;
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
}

.comment-reply-title {
	margin: 0 0 6px;
	font-size: 17px;
}

.comment-form p {
	margin: 0 0 14px;
	font-size: 13px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid var(--bt-line);
	border-radius: var(--bt-radius);
	background: #fff;
	font-size: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--bt-main);
	outline: none;
}

.comment-form .submit {
	padding: 11px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--bt-accent);
	color: var(--bt-on-accent);
	font-family: var(--bt-font-round);
	font-weight: 700;
	box-shadow: 0 3px 0 var(--bt-accent-dark);
}

/* ---------- 10. フッター ---------- */
.bt-footer {
	background: var(--bt-gray);
}

.bt-footer__widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	padding-block: 44px;
	font-size: 14px;
}

.bt-footer__bottom {
	padding-block: 26px 22px;
	background: var(--bt-main);
	color: var(--bt-on-main);
	text-align: center;
}

.bt-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 22px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: 12px;
	font-weight: 700;
}

.bt-footer__nav a:hover {
	text-decoration: underline;
}

.bt-footer__title {
	margin: 0;
	font-family: var(--bt-font-round);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.bt-footer__copy {
	margin: 4px 0 0;
	font-size: 11px;
	opacity: 0.95;
}

.bt-pagetop {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--bt-main);
	color: var(--bt-on-main);
	box-shadow: var(--bt-shadow-hover);
	transition: transform 0.2s, background-color 0.2s;
}

.bt-pagetop:hover {
	background: var(--bt-main-dark);
	transform: translateY(-3px);
}

/* ---------- 11. スマホ・タブレット ---------- */
@media (max-width: 1000px) {
	.bt-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 32px;
	}
}

@media (max-width: 860px) {
	/* 1カラムにして、サイドバーは本文の下へ */
	.bt-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px;
		padding-block: 24px 48px;
	}

	.bt-container {
		padding-inline: 16px;
	}

	.bt-sidebar {
		max-width: 520px;
		width: 100%;
		margin-inline: auto;
	}

	.bt-sidebar__sticky {
		position: static;
	}

	/* ヘッダー: 左にサイト名、右にメニューボタン */
	.bt-header__inner {
		align-items: flex-start;
		padding-block: 12px;
		padding-right: 76px;
		min-height: 60px;
		justify-content: center;
		text-align: left;
	}

	.bt-header__brand {
		font-size: 19px;
	}

	.bt-header__brand img {
		max-height: 40px;
	}

	.bt-header__desc {
		display: none;
	}

	.bt-menu-btn {
		position: absolute;
		top: 50%;
		right: 10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0;
		width: 48px;
		height: 48px;
		margin-top: -24px;
		padding: 0;
		border: 0;
		border-radius: var(--bt-radius);
		background: none;
		color: var(--bt-main-dark);
	}

	.bt-menu-btn span {
		font-family: var(--bt-font-round);
		font-size: 9px;
		font-weight: 700;
		letter-spacing: 0.08em;
		line-height: 1.2;
	}

	/* ドロワーメニュー */
	.bt-gnav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 100;
		width: min(84vw, 320px);
		background: #fff;
		color: var(--bt-text);
		box-shadow: -4px 0 20px rgba(60, 55, 45, 0.18);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		transform: translateX(100%);
		transition: transform 0.25s, visibility 0.25s;
	}

	.bt-gnav.is-open {
		visibility: visible;
		transform: none;
	}

	.bt-menu-open {
		overflow: hidden;
	}

	.bt-gnav__panel {
		padding: 12px 18px 32px;
	}

	.bt-gnav__close {
		display: flex;
		align-items: center;
		gap: 4px;
		min-height: 44px;
		margin-left: auto;
		padding: 0 6px;
		border: 0;
		background: none;
		font-size: 12px;
		font-weight: 700;
	}

	.bt-gnav__search {
		display: block;
		margin: 6px 0 14px;
	}

	.bt-gnav__list {
		display: block;
		padding: 0;
		font-size: 14px;
	}

	.bt-gnav__list > li,
	.bt-gnav__list > li:last-child {
		max-width: none;
		border: 0;
		border-bottom: 1px dashed var(--bt-line);
	}

	.bt-gnav__list a {
		padding: 14px 6px;
		text-align: left;
		white-space: normal;
	}

	.bt-gnav__list a:hover,
	.bt-gnav__list .current-menu-item > a {
		background: var(--bt-main-pale);
	}

	.bt-gnav__list .sub-menu {
		position: static;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: inherit;
		transform: none;
	}

	.bt-gnav__list .sub-menu a {
		padding-left: 22px;
		border-top: 1px dashed var(--bt-line);
		font-weight: 500;
	}

	.bt-hero {
		height: 230px;
	}

	.bt-hero--small {
		height: 180px;
	}

	.bt-hero--large {
		height: 300px;
	}

	.bt-hero__text {
		padding: 18px 22px;
	}

	.bt-hero__subtitle {
		margin-top: 6px;
		font-size: 12px;
	}

	.bt-footer__widgets {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	body {
		font-size: 14px;
	}

	.bt-tabnav {
		flex-wrap: wrap;
		gap: 6px;
		margin-bottom: 18px;
	}

	.bt-tabnav__btn {
		flex: 1 1 calc(50% - 3px);
		padding: 10px 6px;
	}

	.bt-tabnav__btn.is-active::after {
		content: none;
	}

	.bt-cards {
		gap: 14px 12px;
	}

	.bt-card__cat {
		top: 6px;
		left: 6px;
		padding: 1px 8px;
		font-size: 10px;
	}

	.bt-card__body {
		padding: 10px 10px 9px;
	}

	.bt-card__title {
		font-size: 13px;
		line-height: 1.5;
	}

	.bt-card__date {
		padding-top: 8px;
		font-size: 10px;
	}

	.bt-more__btn {
		min-width: 0;
		width: 100%;
	}

	/* 記事は枠を外して横幅いっぱいに */
	.bt-article {
		padding: 0;
		border: 0;
		border-radius: 0;
	}

	.bt-article__title {
		font-size: 21px;
	}

	.bt-content {
		margin-top: 22px;
		font-size: 15px;
		line-height: 1.9;
	}

	.bt-content h2 {
		padding: 12px 14px;
		font-size: 18px;
	}

	.bt-content h3 {
		font-size: 17px;
	}

	.bt-content h4 {
		font-size: 16px;
	}

	.bt-share {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.bt-share__btn span {
		display: none;
	}

	.bt-author {
		padding: 0 16px 20px;
	}

	.bt-profile--author {
		display: block;
	}

	.bt-profile--author .bt-follow,
	.bt-profile--author .bt-follow__list {
		justify-content: center;
		text-align: center;
	}

	.bt-postnav {
		grid-template-columns: minmax(0, 1fr);
	}

	.bt-postnav__item--next {
		grid-column: auto;
	}

	.bt-archive-head {
		padding: 18px 16px;
	}

	.bt-archive-head__title {
		font-size: 19px;
	}

	.bt-comments__list .children {
		margin-left: 12px;
	}

	.comment-respond {
		padding: 18px 16px;
	}
}

/* ---------- 補足: ブロックウィジェット（ウィジェット画面でブロックを置いた場合） ---------- */
.widget .wp-block-heading,
.widget .wp-block-search__label {
	position: relative;
	display: block;
	margin: 0 0 16px;
	padding: 0 2px 12px;
	font-family: var(--bt-font-round);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.5;
	background: repeating-linear-gradient(-45deg, var(--bt-main) 0 2px, transparent 2px 5px) left bottom / 100% 5px no-repeat;
}

.widget .wp-block-search__inside-wrapper {
	border: 2px solid var(--bt-line);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.widget .wp-block-search__input {
	height: 42px;
	padding: 0 4px 0 18px;
	border: 0;
	background: none;
	outline: none;
}

.widget .wp-block-search__button {
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var(--bt-main);
	color: var(--bt-on-main);
	font-size: 13px;
	font-weight: 700;
}

.widget .wp-block-latest-posts li,
.widget .wp-block-archives li,
.widget .wp-block-categories li,
.widget .wp-block-page-list li,
.widget .wp-block-latest-comments li {
	padding: 10px 4px;
	border-bottom: 1px dashed var(--bt-line);
	font-weight: 700;
	line-height: 1.5;
}

.widget .wp-block-latest-posts a:hover,
.widget .wp-block-archives a:hover,
.widget .wp-block-categories a:hover {
	color: var(--bt-main-dark);
}

/* 関連記事は小さめの3列（スマホは2列） */
.bt-related .bt-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 14px;
}

.bt-related .bt-card__title {
	font-size: 13px;
}

.bt-related .bt-card__body {
	padding: 10px 12px 10px;
}

@media (max-width: 600px) {
	.bt-related .bt-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
