@charset "UTF-8";
/* ==========================================
   mog-recipes-single.css
   レシピ単一ページ（single-post.php）用スタイル
   ========================================== */

/* ========================================
   タイトルエリア
======================================== */

/* タイトルとお気に入りボタンのラッパー */
.mog-p-recipes-single__title-wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

/* タイトル */
.mog-p-recipes-single__title-wrapper .mog-p-recipes-single__title {
	margin: 0;
}

/* レシピタイトル */
.mog-p-recipes-single__title {
	font-size: 18px !important;
	font-weight: 400 !important;
	letter-spacing: 0.04em !important;
}

/* お気に入りボタン */
.mog-p-recipes-single__favorite {
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.mog-p-recipes-single__favorite:hover {
	transform: scale(1.1);
}

/* お気に入りアイコン（SVG） */
.mog-p-recipes-single__favorite-icon {
	width: 24px;
	height: 24px;
	stroke: #e0e0e0;
	fill: none;
	transition: all 0.3s ease;
}

/* お気に入り済みの状態 */
.mog-p-recipes-single__favorite.is-liked .mog-p-recipes-single__favorite-icon {
	fill: #ff6b9d;
	stroke: #ff6b9d;
}

/* ========================================
   非表示要素（将来のSP表示用に保持）
======================================== */

/* PC表示ではメタ情報を非表示 */
.mog-p-recipes-single__hide-meta {
	display: none;
}

/* PC表示ではカウント情報を非表示 */
.mog-p-recipes-single__hide-counts {
	display: none;
}

/* ========================================
   カテゴリー・タグ表示
======================================== */

/* カテゴリー・タグのコンテナ */
.mog-p-recipes-single__taxonomy {
	margin: 8px 0 40px;
}

/* カテゴリー・タグのリスト */
.mog-p-recipes-single__taxonomy-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}

@media screen and (min-width: 480px) {
	.mog-p-recipes-single__taxonomy-list {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* カテゴリー・タグのアイテム（共通スタイル） */
.mog-p-recipes-single__taxonomy-item {
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
}

.mog-p-recipes-single__taxonomy-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--tcd-primary-color) !important;
	font-size: clamp(11px, 3.636vw - 0.636px, 13px);
	font-weight: 700;
	border: 1px solid var(--tcd-primary-color);
	padding: 8px 0;
	border-radius: 4px;
}

.mog-p-recipes-single__taxonomy-item a:hover {
	background-color: var(--tcd-primary-color);
	color: #ffffff !important;
}

/* ========================================
   著者情報
======================================== */

/* 著者情報コンテナ */
.mog-p-recipes-single__author-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 4px 8px;
	background-color: transparent;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

/* 著者アバター */
.mog-p-recipes-single__author-avatar {
	flex-shrink: 0;
}

.mog-p-recipes-single__author-avatar a {
	display: block;
	line-height: 0;
}

.mog-p-recipes-single__author-avatar img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

/* 著者詳細情報 */
.mog-p-recipes-single__author-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

/* 著者名 */
.mog-p-recipes-single__author-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.mog-p-recipes-single__author-name a {
	color: var(--tcd-title-color, #000000);
	text-decoration: none;
	transition: color 0.3s ease;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 0.04em;
}

.mog-p-recipes-single__author-name a:hover {
	color: var(--tcd-primary-color);
}

/* 著者の役職 */
.mog-p-recipes-single__author-role {
	font-size: 12px;
	color: #666666;
	margin: 0;
	line-height: 1;
	letter-spacing: 0.04em;
}

/* フォローボタンエリア */
.mog-p-recipes-single__author-follow {
	flex-shrink: 0;
	margin: 0;
}

/* フォローボタンのスタイル */
.mog-p-recipes-single__author-follow .p-button-follow,
.mog-p-recipes-single__author-follow .p-button-following {
	display: inline-block !important;
	position: relative !important;
	padding: 2px !important;
	font-size: 12px !important;
	text-decoration: none !important;
	color: var(--tcd-title-color, #333) !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: all 0.3s ease !important;
	font-weight: 400;
	min-width: unset !important;
	height: auto !important;
	line-height: 1.35 !important;
}

/* ::before疑似要素を非表示 */
.mog-p-recipes-single__author-follow .p-button-follow::before,
.mog-p-recipes-single__author-follow .p-button-following::before {
	display: none !important;
	content: none !important;
}

/* オレンジのアンダーラインを疑似要素で実装 */
.mog-p-recipes-single__author-follow .p-button-follow::after,
.mog-p-recipes-single__author-follow .p-button-following::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	bottom: 0px !important;
	left: 0 !important;
	width: 100% !important;
	height: 2px !important;
	background-color: #ff6b35 !important;
	transition: opacity 0.3s ease !important;
}

.mog-p-recipes-single__author-follow .p-button-follow:hover::after,
.mog-p-recipes-single__author-follow .p-button-following:hover::after {
	opacity: 0.7 !important;
}

/* ========================================
   レシピメタ情報（いいね数、調理時間、嚥下食コード）
======================================== */

/* レシピメタ情報コンテナ */
.mog-p-recipes-single__recipe-meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin: 8px 0;
	padding: 4px 8px;
	background-color: #ffffff !important;
	border-radius: 8px;
}

/* 左側（いいね数と調理時間） */
.mog-p-recipes-single__recipe-meta-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* いいね数エリア */
.mog-p-recipes-single__recipe-likes {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	font-size: 16px;
}

.mog-p-recipes-single__recipe-likes-count {
	font-size: 18px;
	font-weight: 400;
	text-align: right;
}

.mog-p-recipes-single__recipe-likes-bottom {
	display: flex;
	align-items: flex-end;
	gap: 6px;
}

.mog-p-recipes-single__recipe-likes-text {
	font-size: 15px;
	color: #333333;
}

.mog-p-recipes-single__recipe-likes-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* 調理時間エリア */
.mog-p-recipes-single__recipe-time {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}

.mog-p-recipes-single__recipe-time-icon {
	width: 20px;
	height: 20px;
	color: var(--tcd-primary-color, #0093c5);
}

.mog-p-recipes-single__recipe-time-text {
	font-size: 16px;
	color: #333333;
}

/* 右側（嚥下食調整コード） */
.mog-p-recipes-single__recipe-meta-right {
	flex-shrink: 0;
}

.mog-p-recipes-single__recipe-dysphagia {
	font-size: 15px;
	color: #666666;
	margin: 0;
	white-space: nowrap;
}

/* ========================================
   ひとことメッセージ
======================================== */

/* ひとことメッセージコンテナ */
.mog-p-recipes-single__short-message {
	margin: 12px 0;
	padding: 4px 8px;
}

/* ひとことメッセージのタイトル */
.mog-p-recipes-single__short-message-title {
	font-size: 15px;
	font-weight: 400;
	margin: 0 0 12px 0;
}

/* ひとことメッセージの内容 */
.mog-p-recipes-single__short-message-content {
	font-size: 15px;
	line-height: 1.25;
	margin: 0;
	padding: 0 12px;
}

/* ひとことメッセージ内のリンク */
.mog-p-recipes-single__short-message-content a {
	position: relative;
	display: inline;
	color: var(--tcd-title-color, #333);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.mog-p-recipes-single__short-message-content a:hover {
	opacity: 0.5;
}

/* ========================================
   材料
======================================== */

/* 材料コンテナ */
.mog-p-recipes-single__ingredients {
	margin: 16px 0;
	padding: 4px 8px;
}

/* 材料のタイトル */
.mog-p-recipes-single__ingredients-title {
	font-size: 15px;
	font-weight: 400;
	margin: 0 0 12px 0;
}

/* 材料のサブタイトル（メインの具、ソースなど） */
.mog-p-recipes-single__ingredients-subtitle {
	font-size: 15px;
	font-weight: 400;
	margin-top: 16px;
}

/* 材料リスト */
.mog-p-recipes-single__ingredients-list {
	list-style: none;
	margin: 6px 0;
	padding: 0 12px;
	column-count: 2;
	column-gap: 20px;
}

/* 材料アイテム */
.mog-p-recipes-single__ingredients-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 6px 0;
	gap: 8px;
	break-inside: avoid;
}

.mog-p-recipes-single__ingredients-item:last-child {
	border-bottom: none;
}

/* 材料名 */
.mog-p-recipes-single__ingredients-name {
	flex: 1 1 0;
	min-width: 4em;
	font-size: 15px;
	color: #333333;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* 分量 */
.mog-p-recipes-single__ingredients-amount {
	flex: 0 1 auto;
	min-width: 2em;
	font-size: 15px;
	color: #666666;
	text-align: right;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* ========================================
   注意書き
======================================== */

.mog-p-recipes-single__caution {
	margin: 24px 0;
	padding: 16px;
	background-color: #fff8f3;
	border: 1px solid #ef7c00;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
	color: #666666;
}

/* ========================================
   食形態一覧表（アコーディオン）
======================================== */

.mog-p-recipes-single__food-form-table {
	margin: 32px 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__header {
	background: #fff !important;
	border: none;
	border-bottom: 1px solid #ddd;
	padding: 12px 16px !important;
	font-size: 16px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__header[aria-expanded="false"] {
	border-bottom: none;
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__title {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #3e3a39;
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__icon {
	font-size: 12px;
	color: #ef7c00;
	transition: transform 0.3s ease;
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__header[aria-expanded="true"] .mog-p-accordion__icon {
	transform: rotate(180deg);
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__content {
	display: none;
	padding: 0;
}

.mog-p-recipes-single__food-form-table .mog-p-accordion__content.is-open {
	display: block;
}

.mog-p-recipes-single__food-form-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	position: relative;
}

/* SP横スクロール矢印 */
.mog-p-recipes-single__food-form-scroll-hint {
	display: none;
}

@media (max-width: 767px) {
	.mog-p-recipes-single__food-form-scroll-hint {
		display: flex;
		position: absolute;
		right: 12px;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
		height: 40px;
		background: rgba(255, 255, 255, 0.9);
		border-radius: 50%;
		align-items: center;
		justify-content: center;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
		pointer-events: none;
		opacity: 1;
		transition: opacity 0.5s ease;
		z-index: 10;
		animation: scroll-hint-bounce 1s ease-in-out infinite;
	}

	@keyframes scroll-hint-bounce {
		0%, 100% {
			transform: translateY(-50%) translateX(0);
		}
		50% {
			transform: translateY(-50%) translateX(5px);
		}
	}

	.mog-p-recipes-single__food-form-scroll-hint.is-hidden {
		opacity: 0;
		animation: none;
	}

	.mog-p-recipes-single__food-form-scroll-hint::after {
		content: '';
		display: block;
		width: 10px;
		height: 10px;
		border-right: 2.5px solid #666;
		border-bottom: 2.5px solid #666;
		transform: rotate(-45deg);
		margin-left: -3px;
	}
}


.mog-p-recipes-single__food-form-table-content {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.5;
}

.mog-p-recipes-single__food-form-table-content th,
.mog-p-recipes-single__food-form-table-content td {
	border: 1px solid #ddd;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.mog-p-recipes-single__food-form-table-content thead th {
	background-color: #ef7c00;
	color: #ffffff !important;
	font-weight: 600;
	white-space: nowrap;
}

.mog-p-recipes-single__food-form-table-content .food-form-name {
	font-weight: 600;
	white-space: nowrap;
}

/* オレンジ系グラデーション（濃い→薄い） */
.mog-p-recipes-single__food-form-table-content .food-form-row-1 {
	background-color: #fff0e0;
}
.mog-p-recipes-single__food-form-table-content .food-form-row-2 {
	background-color: #fff2e5;
}
.mog-p-recipes-single__food-form-table-content .food-form-row-3 {
	background-color: #fff5ea;
}
.mog-p-recipes-single__food-form-table-content .food-form-row-4 {
	background-color: #fff7ef;
}
.mog-p-recipes-single__food-form-table-content .food-form-row-5 {
	background-color: #fff9f4;
}
.mog-p-recipes-single__food-form-table-content .food-form-row-6 {
	background-color: #fffbf8;
}
.mog-p-recipes-single__food-form-table-content .food-form-row-7 {
	background-color: #fffdfb;
}

/* ========================================
   作り方
======================================== */

/* 作り方コンテナ */
.mog-p-recipes-single__instructions {
}

/* 作り方のタイトル */
.mog-p-recipes-single__instructions-title {
}

/* 作り方リスト */
.mog-p-recipes-single__instructions-list {
	list-style: none;
	margin: 0;
	padding: 4px 8px;
	counter-reset: instruction-counter;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

/* 作り方リスト - レスポンシブ */
@media screen and (min-width: 480px) {
	.mog-p-recipes-single__instructions-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 0 20px;
	}
}

@media screen and (min-width: 768px) {
	.mog-p-recipes-single__instructions-list {
		grid-template-columns: repeat(3, 1fr);
		gap: 0 24px;
	}
}

/* 作り方アイテム */
.mog-p-recipes-single__instructions-item {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	padding: 20px 0;
}

.mog-p-recipes-single__instructions-item:last-child {
	border-bottom: none;
}

/* 手順番号 */
.mog-p-recipes-single__instructions-number {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--tcd-primary-color, #0093c5);
	color: #ffffff !important;
	font-size: 11px;
	font-weight: 400;
	border-radius: 50%;
	margin-top: 5px;
}

/* 手順コンテンツ */
.mog-p-recipes-single__instructions-content {
	flex: 1;
}

/* 手順画像（テキストより先に表示） */
.mog-p-recipes-single__instructions-image {
	margin-bottom: 12px;
}

/* 手順テキスト */
.mog-p-recipes-single__instructions-text {
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
	padding-right: 8px;
}

.mog-p-recipes-single__instructions-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

/* ========================================
   PDFとシェアするボタン
======================================== */

/* ボタンコンテナ */
.mog-p-recipes-single__action-buttons {
	display: flex;
	gap: 16px;
	margin: 24px 0;
	justify-content: center;
	width: 100%;
}

/* アクションボタン */
.mog-p-recipes-single__action-button {
	display: flex;
	align-items: center;
	background-color: transparent;
	border: none;
	cursor: pointer;
	gap: 4px;
	transition: opacity 0.3s ease;
}

.mog-p-recipes-single__action-button:hover,
.mog-p-recipes-single__action-button:focus {
	opacity: 0.5;
}

/* ボタンアイコン */
.mog-p-recipes-single__action-button-icon {
	width: 24px;
	height: 24px;
	color: var(--tcd-primary-color, #0093c5);
	transition: color 0.3s ease;
}

/* ボタンテキスト */
.mog-p-recipes-single__action-button-text {
	font-size: 17px;
	font-weight: 400;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
	.mog-p-recipes-single__action-buttons {
		width: 100%;
		margin: auto;
	}

	.mog-p-recipes-single__action-button {
		width: fit-content;
		justify-content: center;
		padding: 4px !important;
	}
}
/* ========================================
   関連レシピ
======================================== */

.mog-p-recipes-single__related {
	margin: 40px 0;
}

.mog-p-recipes-single__related-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mog-p-recipes-single__related-item {
	position: relative;
}

.mog-p-recipes-single__related-item__thumbnail {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 8px;
}

.mog-p-recipes-single__related-item__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mog-p-recipes-single__related-item__title {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

@media screen and (max-width: 767px) {
	.mog-p-recipes-single__related-items {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* ========================================
   YouTube埋め込み
   ======================================== */
.mog-youtube-embed {
	position: relative;
	width: 100%;
	max-width: 640px;
	padding-bottom: 56.25%; /* 16:9 アスペクト比 */
	height: 0;
	overflow: hidden;
	margin: 16px auto !important;
}

.mog-youtube-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 8px;
}

/* ひとことメッセージ内のYouTube埋め込み調整 */
.mog-p-recipes-single__short-message-content .mog-youtube-embed {
	margin: 12px 0;
}

.mog-p-recipes-single__short-message-content .mog-youtube-embed:first-child {
	margin-top: 0;
}

.mog-p-recipes-single__short-message-content .mog-youtube-embed:last-child {
	margin-bottom: 0;
}
