/* 個別ページ（投稿ページ）専用スタイル */

/* 投稿ヘッダー */
.single-post-header {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 40px;
}

.single-post-header .entry-title {
	/* 他のページのmain部分のタイトルと同じスタイル */
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 0;
	color: #fe5126; /* グローバルカラー */
}

/* 投稿メタ情報 */
.single-post-meta {
	margin: 20px 0 25px 0;
	text-align: center;
	font-size: 12px;
	color: #666;
}

.single-post-meta .post-date {
	margin-right: 15px;
}

.single-post-meta .post-author {
	margin-right: 15px;
}

.single-post-meta .post-categories {
	margin-right: 15px;
}

.single-post-meta .post-tags {
	margin-right: 15px;
}

.single-post-meta a {
	color: #fe5126;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.single-post-meta a:hover {
	opacity: 0.7;
}

/* アイキャッチ画像 */
.single-post-thumbnail {
	margin-bottom: 25px;
	text-align: center;
}

.single-post-thumbnail img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 投稿コンテンツ */
.single-post-content {
	margin-bottom: 30px;
}

/* ダウンロードページ専用スタイル */
.single-post-content .w3eden {
	margin: 20px 0;
}

.single-post-content .link-template-default {
	border: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.single-post-content .link-template-default.card {
	padding: 0.7em 1.5em 1em;
	background-color: #fffaf2;
}

.single-post-content .link-template-default.card.mb-2 {
	width: 100%;
	max-width: 100%;
}

.single-post-content .link-template-default .card-body {
	padding: 0 !important; /* 強制的に適用 */
}

.single-post-content .link-template-default .media {
	align-items: center;
}

.single-post-content .link-template-default .img-48 {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.single-post-content .link-template-default .img-48 img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.single-post-content .link-template-default .media-body {
	flex: 1;
	margin: 0 10px;
}

.single-post-content .link-template-default .package-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.single-post-content .link-template-default .package-title a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.single-post-content .link-template-default .package-title a:hover {
	color: #fe5126;
}

.single-post-content .link-template-default .wpdm-download-link {
	background: #fe5126;
	border: none;
	color: white;
	padding: 6px 15px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.single-post-content .link-template-default .wpdm-download-link:hover {
	background: #d43d1f;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 前後の記事ナビゲーション */
.nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 40px 0;
	padding: 20px 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	gap: 15px;
	max-width: 100%;
	overflow: hidden;
}

.nav-previous,
.nav-next {
	width: 160px;
	flex-shrink: 0;
}

.nav-previous a,
.nav-next a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	padding: 10px 12px;
	border-radius: 6px;
	background-color: #fffaf2;
	border: 1px solid #e9ecef;
	width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav-previous a:hover,
.nav-next a:hover {
	color: #fe5126;
	/* background-color: #fff5f2; */
	border-color: #fe5126;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(254, 81, 38, 0.2);
}

.nav-previous a {
	justify-content: flex-start;
}

.nav-next a {
	justify-content: flex-end;
}

.nav-arrow {
	font-weight: bold;
	margin: 0 4px;
	color: #fe5126;
	font-size: 12px;
	flex-shrink: 0;
}

.nav-label {
	font-size: 12px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* タブレット対応 */
@media (max-width: 1024px) {
	.nav-links {
		gap: 12px;
	}

	.nav-previous,
	.nav-next {
		width: 140px;
	}

	.nav-previous a,
	.nav-next a {
		padding: 8px 10px;
	}

	.nav-label {
		font-size: 11px;
	}

	.nav-arrow {
		font-size: 11px;
		margin: 0 3px;
	}
}

/* スマホ対応 */
@media (max-width: 768px) {
	.nav-links {
		gap: 10px;
		margin: 30px 0;
		padding: 15px 0;
	}

	.nav-previous,
	.nav-next {
		width: 120px;
	}

	.nav-previous a,
	.nav-next a {
		padding: 8px 8px;
	}

	.nav-arrow {
		font-size: 10px;
		margin: 0 2px;
	}

	.nav-label {
		font-size: 10px;
	}
}

/* 小さいスマホ対応 */
@media (max-width: 480px) {
	.nav-links {
		gap: 8px;
	}

	.nav-previous,
	.nav-next {
		width: 100px;
	}

	.nav-previous a,
	.nav-next a {
		padding: 6px 6px;
	}

	.nav-arrow {
		font-size: 9px;
		margin: 0 1px;
	}

	.nav-label {
		font-size: 9px;
	}
}
