@charset "UTF-8";
/* みろくのきろく（media_posts）専用スタイル
   archive-media_posts.php / single-media_posts.php で使用 */

/* ---- 共通：このページ群は暗背景が無いので文字色を戻す ---- */
.post-type-archive-media_posts .page__wrapper,
.single-media_posts .page__wrapper {
	color: #333132;
	font-family: "Noto Serif JP", "游明朝体", "游明朝", "Yu Mincho", serif;
}

.post-type-archive-media_posts .title,
.single-media_posts .title {
	opacity: 1;
}

.post-type-archive-media_posts .section__wrapper,
.single-media_posts .section__wrapper {
	max-width: 1000px;
	margin: 0 auto 120px;
}

/* ---- アーカイブ：記事一覧グリッド ---- */
.posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 30px;
	margin-top: 60px;
}

.post__item a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.post__thumbnail {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
}

.post__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post__item a:hover .post__thumbnail img {
	transform: scale(1.05);
}

.post__item .post__title {
	font-size: 1.05em;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.7;
	margin-bottom: 8px;
}

.post__date {
	display: block;
	font-size: 0.8em;
	letter-spacing: 0.15em;
	color: #727171;
	margin-bottom: 10px;
}

.post__excerpt {
	font-size: 0.85em;
	line-height: 1.9;
	letter-spacing: 0.05em;
	color: #555;
}

/* ---- ページネーション ---- */
.pagination {
	margin-top: 80px;
	text-align: center;
	letter-spacing: 0.1em;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 8px 10px;
	margin: 0 4px;
	color: #333132;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.pagination .page-numbers.current {
	border-bottom: 1px solid #333132;
}

.pagination a.page-numbers:hover {
	border-bottom: 1px solid #727171;
}

/* ---- 個別記事 ---- */
.single__post {
	max-width: 720px;
	margin: 0 auto;
}

.single__post .post__header {
	text-align: center;
	margin-bottom: 50px;
}

.single__post .post__title {
	font-size: 1.6em;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.8;
	margin-bottom: 16px;
}

.post__featured__image {
	margin-bottom: 60px;
}

.post__featured__image img {
	width: 100%;
	height: auto;
}

/* ---- 記事本文（Gutenberg出力を想定） ---- */
.post__content {
	font-size: 1em;
	line-height: 2.2;
	letter-spacing: 0.06em;
}

.post__content p {
	margin-bottom: 1.8em;
}

.post__content h2 {
	font-size: 1.3em;
	letter-spacing: 0.1em;
	margin: 2.5em 0 1em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #ddd;
}

.post__content h3 {
	font-size: 1.15em;
	letter-spacing: 0.1em;
	margin: 2em 0 1em;
}

.post__content img {
	max-width: 100%;
	height: auto;
	margin: 1.5em 0;
}

.post__content a {
	color: #333132;
	text-decoration: underline;
}

.post__content ul,
.post__content ol {
	margin: 0 0 1.8em 1.5em;
}

.post__content li {
	margin-bottom: 0.5em;
}

.post__content blockquote {
	margin: 2em 0;
	padding: 1em 1.5em;
	border-left: 2px solid #727171;
	color: #555;
	background: #f7f6f5;
}

.post__content .wp-block-image figcaption {
	font-size: 0.8em;
	color: #727171;
	text-align: center;
	margin-top: 0.5em;
}

/* ---- 前後記事ナビ・一覧に戻る ---- */
.post__navigation {
	margin-top: 80px;
	padding-top: 40px;
	border-top: 1px solid #ddd;
}

.nav__links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
	font-size: 0.9em;
}

.nav__links a {
	color: #333132;
	text-decoration: none;
	letter-spacing: 0.05em;
}

.nav__links a:hover {
	color: #727171;
}

.nav__next {
	margin-left: auto;
	text-align: right;
}

.nav__archive {
	text-align: center;
}

.back__to__archive {
	display: inline-block;
	padding: 14px 40px;
	border: 1px solid #333132;
	color: #333132;
	text-decoration: none;
	font-size: 0.85em;
	letter-spacing: 0.15em;
	transition: background 0.3s, color 0.3s;
}

.back__to__archive:hover {
	background: #333132;
	color: #fff;
}

/* ---- レスポンシブ ---- */
@media screen and (max-width: 900px) {
	.posts__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 600px) {
	.posts__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.single__post .post__title {
		font-size: 1.3em;
	}

	.nav__links {
		flex-direction: column;
	}

	.nav__next {
		margin-left: 0;
	}
}
