/* ---- 右下追従ブックマークボタン（全ページ共通） ---- */
.floating-bookmark {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--btn-text, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: background 0.2s, transform 0.15s ease;
}
.floating-bookmark:hover,
.floating-bookmark:focus,
.floating-bookmark:active {
	color: var(--btn-text, #fff);
	transform: scale(1.08);
}
.floating-bookmark svg { display: block; }
.floating-bookmark__count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: #fff;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	border-radius: 999px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
	.floating-bookmark {
		right: 16px;
		bottom: 16px;
		width: 48px;
		height: 48px;
	}
}

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.section-title {
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: var(--text-primary);
	margin: 0;
	padding-bottom: 0.625rem;
	border-bottom: 2.5px solid var(--accent);
	display: inline-block;
}

/* Posts navigation */
.posts-navigation {
	margin-top: 2.5rem;
	text-align: center;
}

.posts-navigation .nav-links {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.posts-navigation .nav-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.6rem 1.5rem;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	border: 1px solid var(--border-color);
	border-radius: 100px;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.posts-navigation .nav-links a:hover {
	border-color: var(--accent);
	color: var(--accent);
}


/* ---- Common: Section Header ---- */
.section-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}
.section-hd__title {
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}
.section-hd__more {
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}
.section-hd__more:hover { text-decoration: underline; }

/* ---- Button: Primary ---- */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background: var(--accent);
	color: var(--btn-text, #fff);
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease;
}
.btn-primary:hover {
	background: var(--accent-hover);
	color: var(--btn-text, #fff);
}

/* =====================================================
   共通ページレイアウト
   サイドバーあり/なしの2カラム構成
   ===================================================== */

.page-layout {
	background: #fff;
}

.page-layout__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 24px;
	display: flex;
	gap: 40px;
	align-items: flex-start;
	box-sizing: border-box;
}

/* サイドバーあり: メイン 840px + gap 40px + sidebar 320px = 1200px */
.page-layout.has-sidebar .page-main {
	flex: 1 1 520px;
	max-width: 840px;
	min-width: 0;
}

/* サイドバーなし: メイン 960px 中央寄せ */
.page-layout.no-sidebar .page-layout__inner {
	justify-content: center;
}
.page-layout.no-sidebar .page-main {
	flex: 1 1 0;
	max-width: 960px;
}

.page-main {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

/* ---- 固定ページ本文 ---- */
.entry-content {
	font-size: 16px;
	line-height: 1.9;
	color: #333;
}
.entry-content h2 { font-size: 22px; font-weight: 700; margin: 2em 0 0.75em; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 1.75em 0 0.6em; }
.entry-content p  { margin: 0 0 1.25em; }
.entry-content a  { color: var(--accent); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.entry-content li { margin-bottom: 0.4em; }

/* ---- Mobile global ---- */
@media (max-width: 640px) {
	.container { padding: 0 16px; }
}

@media (max-width: 768px) {
	.section-hd { margin-bottom: 16px; }
	.section-hd__title { font-size: 18px; }
	.section-hd__more { font-size: 13px; }

	/* ページレイアウト: 1カラム */
	.page-layout__inner {
		flex-direction: column;
		padding: 32px 16px;
	}
	.page-layout.has-sidebar .page-main,
	.page-layout.no-sidebar .page-main {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}
}
