/* ===================================================================
   blog.css — /blog/ 記事一覧・詳細・404・検索
   =================================================================== */

.blog {
	padding: 60px 24px 80px;
}
@media (max-width: 600px) {
	.blog { padding: 40px 16px 60px; }
}

.blog__container {
	max-width: 980px;
	margin: 0 auto;
}
.blog__container--narrow {
	max-width: 720px;
}

.blog__header {
	text-align: center;
	margin-bottom: 56px;
}
.blog__eyebrow {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .25em;
	color: var(--brand-teal);
	margin: 0 0 12px;
}
.blog__title {
	font-family: "Noto Serif JP", serif;
	font-weight: 700;
	font-size: 34px;
	color: #222;
	margin: 0 0 16px;
	letter-spacing: .02em;
}
.blog__lead {
	font-size: 15px;
	color: #555;
	margin: 0 auto;
	max-width: 580px;
	line-height: 1.9;
}

.blog__empty {
	text-align: center;
	color: #777;
	padding: 60px 0;
}

.blog__back-home {
	text-align: center;
	margin-top: 40px;
}
.blog__back-home a {
	color: var(--brand-teal);
	font-weight: 700;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

/* ---------- Post list (cards) ---------- */
.post-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 36px 28px;
	margin: 0 0 60px;
}
@media (max-width: 700px) {
	.post-list {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.post-card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(43, 84, 94, .08);
}

.post-card__link {
	display: block;
	color: inherit;
}

.post-card__thumb {
	aspect-ratio: 3 / 2;
	background: #eef2f3;
	overflow: hidden;
}
.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.post-card__thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2b545e 0%, #4a7a86 100%);
	color: rgba(255, 255, 255, .8);
	font-family: "Noto Serif JP", serif;
	font-weight: 700;
	font-size: 28px;
	letter-spacing: .15em;
}

.post-card__body {
	padding: 22px 4px 4px;
}
.post-card__date {
	font-family: "DM Sans", "Noto Sans JP", sans-serif;
	font-size: 13px;
	color: #888;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.post-card__cat {
	background: #f0f4f5;
	color: var(--brand-teal);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}
.post-card__title {
	font-family: "Noto Serif JP", serif;
	font-size: 19px;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px;
	line-height: 1.5;
}
.post-card__excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.85;
	margin: 0;
}

/* ---------- Single post ---------- */
.post {}

.post__header {
	margin-bottom: 36px;
	text-align: center;
}
.post__meta {
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	color: #888;
	margin: 0 0 14px;
	display: flex;
	gap: 14px;
	justify-content: center;
	align-items: center;
}
.post__cat {
	background: #f0f4f5;
	color: var(--brand-teal);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}
.post__title {
	font-family: "Noto Serif JP", serif;
	font-size: 30px;
	color: #222;
	line-height: 1.5;
	letter-spacing: .01em;
	margin: 0;
}
@media (max-width: 600px) {
	.post__title { font-size: 23px; }
}

.post__featured {
	margin: 0 0 40px;
	border-radius: 4px;
	overflow: hidden;
}
.post__featured img {
	width: 100%;
	height: auto;
	display: block;
}

.post__body {
	font-size: 16px;
	line-height: 2;
	color: #2c2c2c;
}
.post__body p { margin: 0 0 1.6em; }
.post__body h2 {
	font-family: "Noto Serif JP", serif;
	font-size: 24px;
	color: var(--brand-teal);
	margin: 2.4em 0 1em;
	padding-bottom: 12px;
	border-bottom: 2px solid #e6eced;
}
.post__body h3 {
	font-family: "Noto Serif JP", serif;
	font-size: 19px;
	color: #222;
	margin: 2em 0 .8em;
	padding-left: 14px;
	border-left: 4px solid var(--brand-teal);
}
.post__body img {
	border-radius: 4px;
	margin: 1.5em auto;
}
.post__body ul,
.post__body ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin-bottom: .4em; }
.post__body blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	background: #f7f9fa;
	border-left: 4px solid var(--brand-teal);
	color: #444;
	font-style: italic;
}
.post__body a {
	color: var(--brand-teal);
	text-decoration: underline;
}
.post__body code {
	background: #f4f6f7;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: .92em;
}
.post__body pre {
	background: #1d3c44;
	color: #f0f0f0;
	padding: 16px;
	border-radius: 4px;
	overflow-x: auto;
}
.post__body pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.post__footer {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}
.post__tags {
	margin: 0 0 24px;
	font-size: 13px;
}
.post__tags a {
	color: var(--brand-teal);
	margin-right: 12px;
}
.post__back {
	text-align: center;
	margin: 0;
}
.post__back a {
	color: var(--brand-teal);
	font-weight: 700;
}

.post__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}
@media (max-width: 600px) {
	.post__nav { grid-template-columns: 1fr; }
}
.post__nav a {
	display: block;
	padding: 18px 22px;
	background: #f7f9fa;
	border-radius: 4px;
	color: inherit;
	transition: background .2s;
}
.post__nav a:hover { background: #ebf0f1; }
.post__nav a span {
	display: block;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	color: var(--brand-teal);
	margin-bottom: 4px;
}
.post__nav a strong {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	line-height: 1.5;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.post__nav-next a { text-align: right; }

/* ---------- Pagination ---------- */
.nagahiro-pagination {
	margin: 40px 0 0;
	text-align: center;
}
.nagahiro-pagination ul {
	display: inline-flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.nagahiro-pagination a,
.nagahiro-pagination span {
	display: inline-block;
	min-width: 38px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #d8e0e2;
	color: #333;
	border-radius: 3px;
	transition: all .2s;
}
.nagahiro-pagination a:hover {
	background: var(--brand-teal);
	color: #fff;
	border-color: var(--brand-teal);
}
.nagahiro-pagination .current {
	background: var(--brand-teal);
	color: #fff;
	border-color: var(--brand-teal);
}

/* ---------- 404 ---------- */
.error-404 {
	text-align: center;
	padding: 60px 0;
}
.error-404__code {
	font-family: "DM Sans", sans-serif;
	font-size: 96px;
	font-weight: 700;
	color: var(--brand-teal);
	margin: 0;
	letter-spacing: -.02em;
}
.error-404__title {
	font-family: "Noto Serif JP", serif;
	font-size: 24px;
	margin: 16px 0 16px;
}
.error-404__lead {
	color: #666;
	margin-bottom: 32px;
}

.button {
	display: inline-block;
	background: var(--brand-teal);
	color: #fff;
	padding: 14px 32px;
	border-radius: 3px;
	font-weight: 700;
	transition: background .2s;
}
.button:hover { background: var(--brand-teal-dark); }

/* ---------- Search form ---------- */
.search-form {
	display: flex;
	gap: 0;
	max-width: 480px;
	margin: 24px auto;
}
.search-form input[type="search"] {
	flex: 1;
	border: 1px solid #d0d8da;
	border-right: none;
	padding: 10px 14px;
	font-size: 14px;
	border-radius: 3px 0 0 3px;
}
.search-form button {
	background: var(--brand-teal);
	color: #fff;
	border: none;
	padding: 0 22px;
	cursor: pointer;
	border-radius: 0 3px 3px 0;
	font-weight: 700;
}

/* ---------- Comments ---------- */
.comments-area {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}
.comments-title {
	font-family: "Noto Serif JP", serif;
	font-size: 22px;
	margin: 0 0 24px;
}
