/**
 * お知らせ詳細（single.php）用スタイル
 * 単一記事・前後ナビ
 *
 * ページヘッダーは common.css の共通スタイルを使用する。
 *
 * @package emio-techno
 */

/* 親 main に height:50% 等が当たり 260px で切れないよう、高さは内容に任せる */
main.single-post {
	height: auto !important;
	min-height: 0;
}

/* お知らせ詳細（単一記事） */
.single-post__article {
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(15, 49, 147, 0.08);
	padding: 40px 48px 48px;
}

.single-post__date {
	margin: 0 0 12px;
	font-size: 16px;
	font-size: 1rem;
	color: #0f3193;
}

/* タイトル下：グレー線は全体、青線は幅の約10％で重ねて表示 */
.single-post__title {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 16px;
	font-size: 24px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #222222;
	line-height: 1.4;
	border-bottom: none;
	box-shadow: 0 1px 0 #e8e8e8;
}

.single-post__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 10%;
	height: 2px;
	background-color: #0f3193;
}

.single-post__content {
	margin: 0 0 40px;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.8;
	color: #222222;
}

.single-post__content p {
	margin: 0 0 1em;
}

.single-post__content p:last-child {
	margin-bottom: 0;
}

/* 前の記事へ＝左、一覧に戻る＝中央、次の記事へ＝右に配置 */
.single-post__nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding-top: 24px;
	border-top: 1px solid #e8e8e8;
}

.single-post__nav-prev {
	justify-self: start;
}

.single-post__nav-list {
	justify-self: center;
}

.single-post__nav-next {
	justify-self: end;
}

.single-post__nav a {
	color: #0f3193;
	text-decoration: none;
}

.single-post__nav a:hover {
	text-decoration: underline;
}

.single-post__nav span:not([class]) {
	color: #999999;
	cursor: default;
}
