/* =============================================
   Blog Detail - 記事詳細 + サイドバー
   ============================================= */

/* --- 2カラムレイアウト --- */
.mac-blog-layout {
	display: flex;
	gap: 40px;
	max-width: 1150px;
	margin: 0 auto;
	padding: 40px 30px 60px;
}

.mac-blog-layout__main {
	flex: 1;
	min-width: 0;
}

.mac-blog-layout__side {
	width: 300px;
	flex-shrink: 0;
}

/* --- 記事ヘッダー --- */
.mac-blog-article__header {
	margin-bottom: 32px;
}

.mac-blog-article__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #999;
}

.mac-blog-article__date {
	color: #999;
}

.mac-blog-article__cat {
	display: inline-block;
	background: #f0f0f0;
	color: #666;
	font-size: 11px;
	padding: 3px 12px;
	border-radius: 3px;
	text-decoration: none;
}

.mac-blog-article__cat:hover {
	background: #222;
	color: #fff;
}

.mac-blog-article__title {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
}

/* --- 記事サムネイル --- */
.mac-blog-article__thumbnail {
	margin-bottom: 32px;
}

.mac-blog-article__thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* --- 記事本文 --- */
.mac-blog-article__body {
	font-size: 15px;
	line-height: 2;
	margin-bottom: 40px;
}

.mac-blog-article__body p {
	margin-bottom: 1.6em;
}

.mac-blog-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* --- 前後記事ナビ --- */
.mac-blog-nav {
	display: flex;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-bottom: 40px;
}

.mac-blog-nav__item {
	flex: 1;
	min-width: 0;
}

.mac-blog-nav__item + .mac-blog-nav__item {
	border-left: 1px solid #eee;
}

.mac-blog-nav__item a {
	display: block;
	padding: 20px 16px;
	text-decoration: none;
	color: #333;
	transition: background 0.2s;
}

.mac-blog-nav__item a:hover {
	background: #fafafa;
}

.mac-blog-nav__label {
	display: block;
	font-size: 11px;
	color: #999;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}

.mac-blog-nav__title {
	font-size: 13px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mac-blog-nav__item--next a {
	text-align: right;
}

.mac-blog-back {
	text-align: center;
	margin-bottom: 40px;
}

.mac-blog-back a {
	display: inline-block;
	font-size: 13px;
	color: #666;
	letter-spacing: 0.08em;
	border: 1px solid #ccc;
	padding: 12px 40px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.3s, color 0.3s;
}

.mac-blog-back a:hover {
	background: #222;
	color: #fff;
	border-color: #222;
}

/* --- サイドバー --- */
.mac-sidebar-widget {
	margin-bottom: 36px;
}

.mac-sidebar-widget__title {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 12px 16px;
	background: #222;
	color: #fff;
	margin: 0 0 0 0;
	border-radius: 4px 4px 0 0;
}

.mac-sidebar-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eee;
	border-top: none;
	border-radius: 0 0 4px 4px;
}

.mac-sidebar-widget__list li {
	border-bottom: 1px solid #eee;
}

.mac-sidebar-widget__list li:last-child {
	border-bottom: none;
}

.mac-sidebar-widget__list li a {
	display: block;
	padding: 12px 16px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.mac-sidebar-widget__list li a:hover {
	background: #f8f8f8;
	color: #ff1414;
}

/* --- サイドバー記事一覧 --- */
.mac-sidebar-widget__posts {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eee;
	border-top: none;
	border-radius: 0 0 4px 4px;
}

.mac-sidebar-widget__posts li {
	border-bottom: 1px solid #eee;
}

.mac-sidebar-widget__posts li:last-child {
	border-bottom: none;
}

.mac-sidebar-widget__posts li a {
	display: flex;
	gap: 12px;
	padding: 12px;
	text-decoration: none;
	color: #333;
	transition: background 0.2s;
}

.mac-sidebar-widget__posts li a:hover {
	background: #f8f8f8;
}

.mac-sidebar-widget__post-thumb {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
}

.mac-sidebar-widget__post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mac-sidebar-widget__post-info {
	flex: 1;
	min-width: 0;
}

.mac-sidebar-widget__post-date {
	display: block;
	font-size: 11px;
	color: #999;
	margin-bottom: 4px;
}

.mac-sidebar-widget__post-title {
	font-size: 12px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- レスポンシブ --- */
@media only screen and (max-width: 991px) {
	.mac-blog-layout {
		flex-direction: column;
		padding: 30px 20px 50px;
	}
	.mac-blog-layout__side {
		width: 100%;
	}
	.mac-blog-article__title {
		font-size: 22px;
	}
}
