/*
 * 統一された投稿詳細ページのスタイル
 * お知らせ、コラム、導入事例の共通スタイル
 */

.post-meta-detail {
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
}
.post-title-header {
	display: flex;
	align-items: center;
	color: #4c4948;
	font-family: 'Plus Jakarta Sans';
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	padding: 114px 12px 20px;
}

.content-section {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	gap: 50px;
	padding: 80px 0;
}
.post-detail {
	width: 100%;
}
/* テキスト部分のスタイル */
.content-text {
	width: 100% !important;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #333;
}
.content-text h1 {
	font-size: 24px;
	font-weight: bold;
	margin: 20px 0;
}
/* 投稿時h2とh3が使われる */
.content-text h2 {
	font-size: 18px;
	font-weight: bold;
	color: #D8CFC2;
	margin: 20px 0;
}
.content-text h3 {
	font-size: 16px;
	font-weight: bold;
	margin: 20px 0;
	padding: 0.5em;
	color: #D8CFC2;
	border-left: solid 5px #D8CFC2;
}

.post-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.post-date {
	font-size: 14px;
	color: #828282;
	margin-right: 10px;
}

.post-categories {
	display: flex;
	flex-wrap: wrap;
}

.post-category {
	font-size: 10px;
	color: #828282;
	border: solid 1px #828282;
	padding: 0.2em 0.8em;
	margin-right: 8px;
	border-radius: 50px;
	display: inline-block;
}

.post-category a {
	color: #828282;
}
.post-thumbnail {
	width: 100%;
	height: auto;
	margin: 20px 0;
	text-align: center;
}

/* 記事コンテンツ部分のスタイル */
.post-content {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 30px;
}

/* 記事コンテンツ内の段落スタイル */
.post-content p {
	margin-bottom: 1.5em;
}

/* 記事コンテンツ内の見出しスタイル */
.post-content h2 {
	font-size: 20px;
	font-weight: bold;
	color: #af9448;
	margin: 1.5em 0 1em;
	padding-left: 0.8em;
	border-left: 4px solid #af9448;
}

.post-content h3 {
	font-size: 18px;
	font-weight: bold;
	color: #af9448;
	margin: 1.5em 0 1em;
	padding-left: 0.8em;
	border-left: 4px solid #af9448;
	text-align: left;
}

.post-content h4 {
	font-size: 16px;
	font-weight: bold;
	margin: 1.5em 0 1em;
}

/* 記事コンテンツ内のリストスタイル */
.post-content ul,
.post-content ol {
	margin: 1em 0 1.5em 1.5em;
}

.post-content ul li {
	list-style-type: disc;
	margin-bottom: 0.5em;
}

.post-content ol li {
	list-style-type: decimal;
	margin-bottom: 0.5em;
}

/* 記事コンテンツ内の画像スタイル */
.post-content img {
	max-width: 70%;
	height: auto;
	margin: 1.5em auto;
	display: block;
}

/* 記事コンテンツ内のリンクスタイル */
.post-content a {
	color: #af9448;
	text-decoration: underline;
}

.post-content a:hover {
	text-decoration: none;
}

/* 記事コンテンツ内のテーブルスタイル */
.post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.post-content table th,
.post-content table td {
	border: 1px solid #ddd;
	padding: 10px;
}

.post-content table th {
	background-color: #f5f5f5;
	font-weight: bold;
}

/* 引用タグのスタイル */
.post-content blockquote {
	background-color: #f5f5f5;
	border-left: 4px solid #ddd;
	margin: 1.5em 0;
	padding: 1em 1.5em;
	color: #555;
}

.post-content blockquote p {
	margin-bottom: 0.5em;
}

.post-content blockquote p:last-child {
	margin-bottom: 0;
}

.post-content blockquote cite {
	display: block;
	font-size: 0.9em;
	margin-top: 0.5em;
	text-align: right;
}

/* ナビゲーションリンクのスタイル */
.post-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 50px auto;
	padding: 20px 0;
	border-top: 1px solid #ddd;
}

.post-navigation .prev-post a,
.post-navigation .next-post a,
.post-navigation .back-to-list a {
	display: inline-block;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	background-color: #3e3a39;
	border-radius: 5px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.post-navigation .prev-post a:hover,
.post-navigation .next-post a:hover,
.post-navigation .back-to-list a:hover {
	background-color: #D8CFC2;
}

/* 一覧に戻るボタンを中央に配置 */
.back-to-list {
	text-align: center;
	flex-grow: 1;
}

hr {
	width: 1024px;
	border: 1px solid #ddd;
}

/* スマホ用 */
@media screen and (max-width: 768px) {
	.post-title-header {
		margin: 30px 0 10px;
		padding: 0;
	}
	.content-section {
		flex-direction: column;
		padding: 0 20px;
	}
	.post-detail {
		width: 100%;
		text-align: left;
	}
	.post-navigation {
		flex-direction: column;
	}
	.post-navigation .prev-post a,
	.post-navigation .next-post a,
	.post-navigation .back-to-list a {
		width: 100%;
		margin: 10px 0;
	}
	.post-thumbnail {
		margin: 20px 0;
	}
	.post-thumbnail img {
		width: 100%;
		height: auto;
	}
	.post-content {
		margin: 20px 0;
	}
	.post-content img {
		width: 100%;
		max-width: 385px;
		height: auto;
	}
}
