/**
 * the_content フィルター用：個別記事下のアーカイブ戻るボタン + 関連ページ
 */

.archive-back__link {
	border: 2px solid #333;
	border-radius: 50px;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: bold;
	color: #333;
	background-color: #fff;
	transition: all 0.3s ease;
	width: 230px;
	max-width: 100%;
	position: relative;
		&:hover {
			background-color: #333;
			color: #fff;
	}
}

.archive-back__link::after {
	content: '\f061';
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-style: normal;
	font-size: 12px;
	margin-left: 10px;
	color: #fff;
	background-color: #333;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
}

.archive-back {
	display: flex;
	justify-content: center;
	align-items: center;
}

.related-pages {
	width: 100vw;
	margin-top: 3rem;
	margin-bottom: 0;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	background-color: #F5F3F1;
	padding: 2.5rem 0 3rem;
	margin-bottom: -4rem;
}

.related-pages__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.related-pages__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #333;
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-top: none;
	border-bottom: 1px solid #333;
	line-height: 1.3;
}

.related-pages__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 1.5rem 0 0;
}

.related-pages__item {
	margin: 0;
}

.related-pages__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.related-pages__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background-color: #555;
	margin-bottom: 0.5rem;
}

.related-pages__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: top;
}

.related-pages__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #555;
}

.related-pages__date {
	display: block;
	font-size: 0.8125rem;
	color: #333;
	margin-bottom: 0.25rem;
}

.related-pages__item-title {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1200px) {
	.related-pages {
		margin-bottom: -3.5rem;		
	}
}

@media (max-width: 991px) {
	.related-pages__list {
		grid-template-columns: repeat(2, 1fr);
	}
		.related-pages {
		margin-bottom: -2.5rem;		
	}
}

/* タブレット・モバイル: 896px以下（block.php と統一・上書き） */
@media (max-width: 896px) {
	.related-pages__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
		.related-pages {
		margin-bottom: -2rem;		
	}
}

@media (max-width: 575px) {
	.related-pages__list {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}
