@charset "UTF-8";
/* ==========================================
   mog-single.css
   汎用シングルページ用のスタイル
   モバイルファースト: SP → TB → PC
   ========================================== */

/* ==========================================
   mog-p-single
   汎用シングルページ
   ========================================== */
.mog-p-single {
	padding: 0;
}

/* PC (992px以上) */
@media screen and (min-width: 992px) {
	.mog-p-single {
		padding-top: 8px;
	}
}

/* ヘッダー */
.mog-p-single__header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

/* タイトル */
.mog-p-single__title {
	font-size: 17px;
	line-height: 1.4;
	margin-bottom: 12px;
	font-weight: 500;
}

/* 480-767px */
@media screen and (min-width: 480px) and (max-width: 767px) {
	.mog-p-single__title {
		font-size: 22px;
	}
}

/* メタ情報 */
.mog-p-single__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* 日付 */
.mog-p-single__date {
	font-size: 14px;
	color: #666;
}

/* サムネイル */
.mog-p-single__thumbnail {
	margin-bottom: 24px;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	border-radius: 4px;
}

.mog-p-single__thumbnail img {
	border-radius: 4px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* 本文 */
.mog-p-single__content {
	font-size: 15px;
	line-height: 1.8;
}

.mog-p-single__content p {
	margin-bottom: 1.5em;
}

.mog-p-single__content h2 {
	font-size: 20px;
	margin: 1.5em 0 0.75em;
	padding-bottom: 0.5em;
	border-bottom: 2px solid #e0e0e0;
}

.mog-p-single__content h3 {
	font-size: 18px;
	margin: 1.25em 0 0.5em;
}

.mog-p-single__content ul,
.mog-p-single__content ol {
	margin-bottom: 1.5em;
	padding-left: 2em;
}

.mog-p-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1.5em 0;
}

/* ページネーション */
.mog-p-single__pagination {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.mog-p-single__pagination a,
.mog-p-single__pagination > span {
	padding: 8px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.mog-p-single__pagination a:hover {
	background-color: #f5f5f5;
}

.mog-p-single__pagination > span {
	background-color: #3E3A39;
	color: #FFFFFF;
	border-color: #3E3A39;
}

/* フッター */
.mog-p-single__footer {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid #e0e0e0;
}

/* 前後の記事ナビゲーション */
.mog-p-single__nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 24px;
}

.mog-p-single__nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mog-p-single__nav-item--prev {
	text-align: left;
	align-items: flex-start;
}

.mog-p-single__nav-item--next {
	text-align: right;
	align-items: flex-end;
}

/* ナビゲーションラッパー */
.mog-p-single__nav-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: max(220px, 83.3333%);
}

/* 矢印を追加 */
.mog-p-single__nav-item--prev .mog-p-single__nav-label::before {
	content: '← ';
}

.mog-p-single__nav-item--next .mog-p-single__nav-label::after {
	content: ' →';
}

.mog-p-single__nav-label-link {
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.mog-p-single__nav-label {
	font-size: 12px;
	color: #999;
	font-weight: 500;
}

.mog-p-single__nav-link {
	display: block;
	padding: 12px;
	background: #f8f8f8;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
}

/* ナビゲーションラッパーにホバーした時、両方のリンクに効果を適用 */
.mog-p-single__nav-wrapper:hover .mog-p-single__nav-label-link,
.mog-p-single__nav-wrapper:hover .mog-p-single__nav-link {
	opacity: 0.7;
}

.mog-p-single__nav-link-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
	word-break: break-word;
	padding: 0;
	color: #333;
	font-size: 13px;
	line-height: 1.6;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}

.mog-p-single__nav-item--next .mog-p-single__nav-link-text {
	text-align: left;
}

/* 一覧に戻るボタン */
.mog-p-single__back {
	text-align: center;
	margin-top: 32px;
}

.mog-p-single__back-button {
	border-radius: 9999px;
	text-align: center;
	display: inline-block;
	width: 200px;
	padding: 12px 32px;
	font-size: 14px;
	border: 1px solid var(--tcd-content-link-color);
	letter-spacing: -0.05em;
}

.mog-p-single__back-button:hover {
	opacity: 0.8;
}

/* 480px以下のSP表示 */
@media screen and (max-width: 480px) {
	.mog-p-single__nav {
		gap: 16px;
	}

	.mog-p-single__nav-item {
		flex: 0 0 auto;
	}

	/* 次の記事のみの場合、右端に配置 */
	.mog-p-single__nav-item--next:only-child {
		margin-left: auto;
	}

	.mog-p-single__nav-label {
		font-size: 14px;
		color: #333;
		font-weight: 500;
	}

	.mog-p-single__nav-link {
		display: none;
	}
}

/* ==========================================
   レスポンシブ（モバイルファースト: SP → TB → PC）
   ========================================== */

/* タブレット (768px以上) */
@media screen and (min-width: 768px) {
	.mog-p-single {
		padding: 0;
	}

	.mog-p-single__header {
		margin-bottom: 32px;
		padding-bottom: 24px;
	}

	.mog-p-single__title {
		font-size: 25px;
		margin-bottom: 16px;
	}

	.mog-p-single__meta {
		gap: 12px;
	}

	.mog-p-single__date {
		font-size: 16px;
	}

	.mog-p-single__thumbnail {
		margin-bottom: 32px;
	}

	.mog-p-single__content {
		font-size: 16px;
	}

	.mog-p-single__content h2 {
		font-size: 24px;
		margin: 2em 0 1em;
	}

	.mog-p-single__content h3 {
		font-size: 20px;
		margin: 1.5em 0 0.75em;
	}

	.mog-p-single__footer {
		margin-top: 48px;
		padding-top: 32px;
	}

	.mog-p-single__nav {
		gap: 24px;
		margin-bottom: 32px;
	}

	.mog-p-single__nav-link {
		padding: 12px;
	}

	.mog-p-single__nav-link-text {
		font-size: 14px;
	}

	.mog-p-single__back-button {
		padding: 8px;
		font-size: 13px;
	}
}
