/* ==========================================================================
   Signal Theme - main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-accent-2);
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.4;
	color: var(--color-text);
}

h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h4 { font-size: 1.1rem; }

p {
	margin: 0 0 1.2em;
}

ul, ol {
	padding-left: 1.5em;
	margin: 0 0 1.2em;
}

blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 4px solid var(--color-accent);
	background: rgba(0, 201, 167, 0.05);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--color-text-muted);
	font-style: italic;
}

hr {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 2em 0;
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: -9999px;
	left: 0;
	z-index: 9999;
	padding: 0.5em 1em;
	background: var(--color-bg-dark);
	color: #fff;
}

.skip-link:focus {
	top: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.25rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.container {
		grid-template-columns: 1fr var(--sidebar-width);
		padding: 0 2rem;
	}
}

@media (min-width: 1280px) {
	.container {
		padding: 0 2.5rem;
	}
}

.container--single {
	/* 本文エリア約68% / サイドバー約28% */
}

@media (min-width: 1024px) {
	.container--single {
		grid-template-columns: 1fr 280px;
	}
}

.content-area {
	min-width: 0;
}

.site-main {
	padding: 2rem 0 4rem;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(248, 249, 250, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	grid-template-columns: none;
	gap: 0;
}

/* ブランド */
.site-branding {
	flex-shrink: 0;
}

.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0.02em;
}

.site-branding .custom-logo {
	height: 40px;
	width: auto;
}

/* ヘッダー右側 */
.site-header__right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* ナビゲーション */
.site-nav {
	display: none;
}

@media (min-width: 768px) {
	.site-nav {
		display: block;
	}
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
}

.nav-menu a {
	display: block;
	padding: 0.4em 0.75em;
	color: var(--color-text);
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: var(--radius-sm);
	transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	background: rgba(0, 201, 167, 0.1);
	color: var(--color-accent);
}

/* 検索トグルボタン */
.search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	border-radius: var(--radius-sm);
	color: var(--color-text);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.search-toggle:hover {
	background: rgba(0, 201, 167, 0.1);
	color: var(--color-accent);
}

/* ハンバーガーメニュー */
.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 40px;
	height: 40px;
	padding: 10px 8px;
	background: none;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background 0.2s ease;
}

.hamburger:hover {
	background: rgba(0, 201, 167, 0.1);
}

.hamburger__line {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-text);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
	opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
	.hamburger {
		display: none;
	}
}

/* モバイルナビ展開 */
.site-nav.is-open {
	display: block;
	position: absolute;
	top: 64px;
	left: 0;
	right: 0;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-md);
	padding: 1rem;
	z-index: 99;
}

.site-nav.is-open .nav-menu {
	flex-direction: column;
}

/* 検索ドロワー */
.search-drawer {
	display: none;
	padding: 1rem 0;
	border-top: 1px solid var(--color-border);
	background: var(--color-bg);
}

.search-drawer.is-open {
	display: block;
}

.search-drawer__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	grid-template-columns: none;
	grid-column: 1 / -1;
}

.search-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	color: var(--color-text-muted);
	cursor: pointer;
	border-radius: var(--radius-sm);
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.search-drawer__close:hover {
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   6. 検索フォーム
   -------------------------------------------------------------------------- */
.search-form {
	flex: 1;
}

.search-form__inner {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form__inner:focus-within {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

.search-form__input {
	flex: 1;
	padding: 0.6em 1em;
	border: none;
	background: transparent;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	color: var(--color-text);
	outline: none;
}

.search-form__input::placeholder {
	color: var(--color-text-muted);
}

.search-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.75em;
	height: 100%;
	background: none;
	border: none;
	color: var(--color-text-muted);
	cursor: pointer;
	transition: color 0.2s ease;
}

.search-form__submit:hover {
	color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   7. 記事一覧
   -------------------------------------------------------------------------- */
.post-list {
	border-top: 1px solid var(--color-border);
}

.post-list-item {
	border-bottom: 1px solid var(--color-border);
	transition: background 0.2s ease;
}

.post-list-item:hover {
	background: rgba(0, 201, 167, 0.04);
}

.post-list-link {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 0.5rem;
}

.post-list-thumb {
	flex: 0 0 120px;
	height: 80px;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--color-border);
	display: block;
	text-decoration: none;
}

.post-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-list-item:hover .post-list-thumb img {
	transform: scale(1.04);
}

.post-list-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.post-list-body {
	flex: 1;
	min-width: 0;
}

.post-list-meta {
	margin-bottom: 0.25rem;
}

.post-list-title {
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--color-text);
	transition: color 0.2s ease;
}

.post-list-title a {
	color: inherit;
	text-decoration: none;
}

.post-list-item:hover .post-list-title,
.post-list-item:hover .post-list-title a {
	color: var(--color-accent);
}

.post-list-date {
	display: block;
	color: var(--color-text-muted);
	font-size: 0.75rem;
}

.post-cat-badge {
	display: inline-block;
	font-size: 0.7rem;
	padding: 0.1em 0.5em;
	border-radius: var(--radius-sm);
	background: rgba(0, 201, 167, 0.12);
	color: var(--color-accent);
	margin-right: 0.25rem;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.2s ease;
}

.post-cat-badge:hover {
	background: rgba(0, 201, 167, 0.25);
	color: var(--color-accent);
}

.post-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

@media (max-width: 375px) {
	.post-list-thumb {
		flex: 0 0 80px;
		height: 56px;
	}
}

/* --------------------------------------------------------------------------
   8. ページヘッダー（アーカイブ・検索等）
   -------------------------------------------------------------------------- */
.page-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--color-accent);
}

.page-title {
	font-size: clamp(1.3rem, 3.5vw, 1.8rem);
	margin: 0;
}

.archive-description {
	margin-top: 0.5rem;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.search-count {
	margin: 0.5rem 0 0;
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.search-form-wrap {
	margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   9. 記事個別ページ
   -------------------------------------------------------------------------- */
.single-article {
	max-width: var(--content-width);
}

/* パンくずリスト */
.breadcrumb {
	margin-bottom: 1.25rem;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.breadcrumb-item a {
	color: var(--color-text-muted);
	transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
	color: var(--color-accent);
}

.breadcrumb-sep {
	color: var(--color-border);
	user-select: none;
}

.breadcrumb-current {
	color: var(--color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 20em;
}

/* 記事ヘッダー */
.entry-header {
	margin-bottom: 1.5rem;
}

.entry-header__meta {
	margin-bottom: 0.5rem;
}

.entry-title {
	font-size: clamp(1.4rem, 4vw, 2rem);
	line-height: 1.35;
	margin: 0.5rem 0;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	color: var(--color-text-muted);
	font-size: 0.8rem;
	margin-top: 0.5rem;
}

.entry-date,
.entry-modified {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* アイキャッチ画像 */
.entry-featured-image {
	margin: 1.5rem 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.entry-featured-image img {
	width: 100%;
	height: auto;
}

/* 記事本文 */
.entry-content {
}

.entry-content h2 {
	margin: 2em 0 0.75em;
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--color-border);
	position: relative;
}

.entry-content h2::before {
	content: '';
	display: block;
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 3em;
	height: 2px;
	background: var(--color-accent);
}

.entry-content h3 {
	margin: 1.75em 0 0.5em;
	padding-left: 0.75em;
	border-left: 3px solid var(--color-accent);
}

.entry-content h4 {
	margin: 1.5em 0 0.5em;
}

.entry-content img {
	border-radius: var(--radius-sm);
	margin: 1em 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
	padding: 0.6em 0.9em;
	border: 1px solid var(--color-border);
	text-align: left;
}

.entry-content th {
	background: rgba(0, 201, 167, 0.08);
	font-weight: 600;
}

.entry-content tr:nth-child(even) td {
	background: rgba(0, 0, 0, 0.02);
}

/* 記事フッター */
.entry-footer {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.tag-link {
	display: inline-block;
	padding: 0.2em 0.75em;
	border: 1px solid var(--color-border);
	border-radius: 100px;
	font-size: 0.8rem;
	color: var(--color-text-muted);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag-link:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	background: rgba(0, 201, 167, 0.05);
}

/* --------------------------------------------------------------------------
   10. SNSシェアボタン
   -------------------------------------------------------------------------- */
.share-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.share-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.share-btn-group {
	display: flex;
	gap: 0.5rem;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: 0.85rem;
	font-family: var(--font-sans);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.share-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.share-btn--twitter {
	background: #fff;
	color: #0F0F0F;
	border-color: #E5E7EB;
}

.share-btn--twitter:hover {
	background: #0F0F0F;
	color: #fff;
	border-color: #0F0F0F;
}

.share-btn--hatena {
	background: #fff;
	color: #00A4DE;
	border-color: #E5E7EB;
}

.share-btn--hatena:hover {
	background: #00A4DE;
	color: #fff;
	border-color: #00A4DE;
}

.share-btn--copy {
	background: #fff;
	color: var(--color-text-muted);
	border-color: var(--color-border);
}

.share-btn--copy:hover {
	background: var(--color-bg);
	color: var(--color-accent);
	border-color: var(--color-accent);
}

.share-btn--copy.copied {
	background: var(--color-accent);
	color: #fff;
	border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   11. 前後記事ナビ
   -------------------------------------------------------------------------- */
.post-nav {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}

.post-nav__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-nav__link:hover {
	border-color: var(--color-accent);
	box-shadow: var(--shadow-sm);
}

.post-nav__link--next {
	text-align: right;
}

.post-nav__label {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	font-weight: 500;
}

.post-nav__title {
	font-size: 0.9rem;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   12. TOC（目次）
   -------------------------------------------------------------------------- */
.toc-container {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.toc-title {
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--color-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.toc-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text-muted);
	font-size: 0.75rem;
	padding: 0;
}

.toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc-list li {
	margin-bottom: 0.3rem;
}

.toc-list a {
	color: var(--color-text-muted);
	font-size: 0.85rem;
	text-decoration: none;
	display: block;
	padding: 0.15em 0;
	transition: color 0.2s ease;
}

.toc-list a:hover,
.toc-list a.is-active {
	color: var(--color-accent);
}

.toc-list .toc-h3 > a {
	padding-left: 1em;
	font-size: 0.8rem;
}

/* モバイルTOC（折りたたみ） */
.toc-mobile {
	margin: 1rem 0 1.5rem;
}

.toc-mobile .toc-container {
	border-color: var(--color-accent);
}

.toc-mobile .toc-list {
	display: none;
}

.toc-mobile .toc-list.is-open {
	display: block;
}

/* --------------------------------------------------------------------------
   13. サイドバー
   -------------------------------------------------------------------------- */
.sidebar {
	align-self: start;
}

.sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.widget {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	box-shadow: var(--shadow-sm);
}

.widget-title {
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--color-border);
}

/* プロフィールウィジェット */
.profile-widget {
	text-align: center;
}

.profile-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 0.75rem;
}

.profile-avatar-placeholder {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
	margin: 0 auto 0.75rem;
}

.profile-name {
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 0.5rem;
}

.profile-bio {
	font-size: 0.82rem;
	color: var(--color-text-muted);
	line-height: 1.6;
	margin: 0 0 0.75rem;
}

.profile-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.profile-link {
	display: inline-block;
	padding: 0.25em 0.75em;
	border: 1px solid var(--color-border);
	border-radius: 100px;
	font-size: 0.78rem;
	color: var(--color-text-muted);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.profile-link:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* 最新記事リスト */
.recent-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.recent-post-item {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 0.75rem;
}

.recent-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.recent-post-link {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	color: var(--color-text);
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.recent-post-link:hover {
	color: var(--color-accent);
}

.recent-post-thumb {
	flex: 0 0 60px;
	height: 40px;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.recent-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.recent-post-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

/* カテゴリリスト */
.category-list,
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-list li,
.widget ul li {
	border-bottom: 1px solid var(--color-border);
	padding: 0.4em 0;
}

.category-list li:last-child,
.widget ul li:last-child {
	border-bottom: none;
}

.category-list a,
.widget ul a {
	color: var(--color-text);
	font-size: 0.9rem;
	text-decoration: none;
	display: flex;
	justify-content: space-between;
	transition: color 0.2s ease;
}

.category-list a:hover,
.widget ul a:hover {
	color: var(--color-accent);
}

/* タグクラウド */
.tag-cloud,
.widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tag-cloud a,
.widget .tagcloud a {
	display: inline-block;
	padding: 0.2em 0.6em;
	border: 1px solid var(--color-border);
	border-radius: 100px;
	font-size: 0.78rem !important;
	color: var(--color-text-muted);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag-cloud a:hover,
.widget .tagcloud a:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	background: rgba(0, 201, 167, 0.05);
}

/* --------------------------------------------------------------------------
   14. ページネーション
   -------------------------------------------------------------------------- */
.pagination {
	margin-top: 2.5rem;
}

.pagination-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination-item a,
.pagination-item span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	color: var(--color-text);
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-item a:hover {
	background: rgba(0, 201, 167, 0.1);
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.pagination-item .current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

/* --------------------------------------------------------------------------
   15. フッター
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-bg-dark);
	color: rgba(255, 255, 255, 0.7);
	padding: 3rem 0 1.5rem;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.site-footer .container {
	display: block;
}

.footer-top {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.footer-top {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}
}

.footer-logo-text {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	display: block;
	margin-bottom: 0.5rem;
}

.footer-tagline {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

.footer-nav .footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.footer-nav .footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	padding: 0.3em 0.6em;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav .footer-menu a:hover {
	color: var(--color-accent);
	background: rgba(0, 201, 167, 0.1);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
}

.footer-copyright {
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
}

/* --------------------------------------------------------------------------
   16. 404ページ
   -------------------------------------------------------------------------- */
.error-404 {
	padding: 4rem 0;
}

.error-404__inner {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.error-404__code {
	font-size: clamp(5rem, 15vw, 9rem);
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--color-border);
	line-height: 1;
	margin: 0 0 0.25rem;
}

.error-404__title {
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	margin-bottom: 1rem;
}

.error-404__message {
	color: var(--color-text-muted);
	margin-bottom: 2rem;
}

.error-404__actions {
	margin-bottom: 2rem;
}

.error-404__search {
	text-align: left;
	max-width: 400px;
	margin: 0 auto 2rem;
}

.error-404__categories {
	text-align: left;
}

.error-404__categories h2 {
	font-size: 1rem;
	margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   17. ボタン
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	padding: 0.65em 1.5em;
	border-radius: var(--radius-md);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--primary {
	background: var(--color-accent);
	color: #fff;
}

.btn--primary:hover {
	background: color-mix(in srgb, var(--color-accent) 85%, #000);
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 201, 167, 0.3);
}

/* --------------------------------------------------------------------------
   18. コメント
   -------------------------------------------------------------------------- */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid var(--color-border);
}

.comments-title {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-item {
	margin-bottom: 1.5rem;
}

.comment-body {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
}

.comment-meta {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.comment-author-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.comment-author-name {
	font-weight: 600;
	font-size: 0.9rem;
}

.comment-time {
	display: block;
	font-size: 0.78rem;
	color: var(--color-text-muted);
}

.comment-content {
	font-size: 0.95rem;
}

.comment-awaiting-moderation {
	font-size: 0.85rem;
	color: var(--color-text-muted);
	font-style: italic;
}

.children {
	list-style: none;
	padding-left: 2rem;
	margin-top: 1rem;
}

/* コメントフォーム */
.comment-form {
	margin-top: 2rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.6em 0.9em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	color: var(--color-text);
	background: #fff;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

.comment-form .submit {
	padding: 0.65em 2em;
	background: var(--color-accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.comment-form .submit:hover {
	background: color-mix(in srgb, var(--color-accent) 85%, #000);
}

/* --------------------------------------------------------------------------
   19. ページリンク（ページ分割コンテンツ）
   -------------------------------------------------------------------------- */
.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 1.5rem 0;
	font-size: 0.9rem;
}

.page-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-sm);
	color: var(--color-accent);
	padding: 0 0.5rem;
}

/* --------------------------------------------------------------------------
   20. コードブロック（PrismJSなし時のフォールバック）
   -------------------------------------------------------------------------- */
pre {
	background: var(--color-code-bg);
	color: var(--color-code-text);
	border-radius: var(--radius-md);
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	margin: 1.5em 0;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	line-height: 1.7;
}

code {
	font-family: var(--font-mono);
	font-size: 0.875em;
}

:not(pre) > code {
	background: rgba(0, 0, 0, 0.06);
	padding: 0.15em 0.4em;
	border-radius: var(--radius-sm);
	color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   21. ユーティリティ
   -------------------------------------------------------------------------- */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   22. コンテンツボックス（注意・コラム・ポイント・まとめ）
   使い方: class="box-note" / "box-column" / "box-point" / "box-summary"
   またはショートコード: [box type="point"]内容[/box]
   -------------------------------------------------------------------------- */
.box-note,
.box-column,
.box-point,
.box-summary {
	margin: 2em 0;
	padding: 0.85em 1.25em 1em;
	border-left: 4px solid;
	border-radius: var(--radius-md);
	font-size: 0.95rem;
	line-height: 1.75;
}

.box-note > *:last-child,
.box-column > *:last-child,
.box-point > *:last-child,
.box-summary > *:last-child {
	margin-bottom: 0;
}

.box-note::before,
.box-column::before,
.box-point::before,
.box-summary::before {
	display: block;
	width: fit-content;
	margin-bottom: 0.6em;
	padding: 0.15em 0.6em;
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

/* 注意 */
.box-note {
	background: rgba(245, 158, 11, 0.06);
	border-left-color: #F59E0B;
}

.box-note::before {
	content: '注意';
	background: rgba(245, 158, 11, 0.18);
	color: #92400E;
}

/* コラム */
.box-column {
	background: rgba(59, 130, 246, 0.06);
	border-left-color: var(--color-accent-2);
}

.box-column::before {
	content: 'コラム';
	background: rgba(59, 130, 246, 0.14);
	color: #1E40AF;
}

/* ポイント */
.box-point {
	background: rgba(0, 201, 167, 0.06);
	border-left-color: var(--color-accent);
}

.box-point::before {
	content: 'ポイント';
	background: rgba(0, 201, 167, 0.18);
	color: #065F46;
}

/* まとめ */
.box-summary {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-left: 4px solid #64748B;
}

.box-summary::before {
	content: 'まとめ';
	background: #E2E8F0;
	color: #334155;
}
