@charset "UTF-8";
/* ==========================================
   レシピアーカイブページ (mog-recipes-archive)
   モバイルファースト: SP → TB → PC
   ========================================== */

/* ==========================================
	ソートボタン（authorタブスタイル）
	========================================== */
.mog-p-recipes-archive__sort {
	display: flex;
	margin-bottom: 20px;
}

.mog-p-recipes-archive__sort-item {
	background: rgba(239, 124, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 50%;
	height: 38px;
	text-align: center;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

.mog-p-recipes-archive__sort-item + .mog-p-recipes-archive__sort-item {
	margin-left: 1px;
}

.mog-p-recipes-archive__sort-item span {
	display: inline-block;
	font-weight: 600;
	font-size: 12px;
	color: #3e3a39;
	padding: 0;
	transition: color 0.3s ease;
}

.mog-p-recipes-archive__sort-item:hover {
	background: #d7531d;
}

.mog-p-recipes-archive__sort-item:hover span {
	color: #fff !important;
}

.mog-p-recipes-archive__sort-item.is-active,
.mog-p-recipes-archive__sort-item.is-active:hover {
	background: #ef7c00 !important;
}

.mog-p-recipes-archive__sort-item.is-active span,
.mog-p-recipes-archive__sort-item.is-active:hover span {
	color: #fff !important;
}

/* ==========================================
	絞り込みアコーディオン
	========================================== */
.p-archive-filter,
.mog-p-recipes-archive-filter {
	margin-bottom: 20px;
}

.p-archive-filter__toggle,
.mog-p-recipes-archive-filter__toggle {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	background: transparent;
	border: none;
	padding: 8px 0;
	cursor: pointer;
	width: 100%;
	font-size: 14px;
	color: var(--tcd-primary-color);
}

.p-archive-filter__toggle:hover,
.mog-p-recipes-archive-filter__toggle:hover {
	opacity: 0.7;
}

.p-archive-filter__title,
.mog-p-recipes-archive-filter__title {
	font-weight: 700;
}

.p-archive-filter__icon,
.mog-p-recipes-archive-filter__icon {
	transition: transform 0.3s ease;
}

.p-archive-filter__toggle.is-open .p-archive-filter__icon,
.mog-p-recipes-archive-filter__toggle.is-open .mog-p-recipes-archive-filter__icon {
	transform: rotate(180deg);
}

.p-archive-filter__content,
.mog-p-recipes-archive-filter__content {
	display: none;
	overflow: hidden;
	margin-top: 16px;
}

.p-archive-filter__content.is-open,
.mog-p-recipes-archive-filter__content.is-open {
	display: block;
}

/* ==========================================
	レシピカテゴリー・検索（アーカイブページ用）
	※サイドメニュー用はmog-sidemenu.cssで管理
	========================================== */
/* ヘッダー */
.mog-p-recipes-archive-categories__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

/* 見出し */
.mog-p-recipe-categories__headline,
.mog-p-recipes-archive-categories__headline {
	font-size: 17px;
	margin-bottom: 0;
	font-weight: 400;
}

/* レシピ一覧へリンク */
.mog-p-recipes-archive-categories__link {
	display: block;
	font-size: 12px;
	text-decoration: none;
	position: relative;
	transition: opacity 0.2s ease;
}

.mog-p-recipes-archive-categories__link:hover {
	opacity: 0.5;
}

span.mog-p-recipes-archive-categories__link-inner:after {
	content: ' →';
}

/* 検索窓 */
.mog-p-recipes-archive-search {
	margin-bottom: 12px;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: relative !important;
	height: 32px !important;
	width: 100% !important;
	overflow: visible !important;
	background: transparent !important;
	border: none !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transition: none !important;
}

.mog-p-recipes-archive-search form {
	display: flex !important;
	align-items: center !important;
	border: 1px solid var(--tcd-secondary-color) !important;
	border-radius: 2px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #FFFFFF !important;
	position: relative !important;
}

.mog-p-recipes-archive-search__input {
	width: 100%;
	padding: 10px 40px 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
}

.mog-p-recipes-archive-search__input:focus {
	outline: none;
	border-color: var(--tcd-primary-color);
}

.mog-p-recipes-archive-search__submit {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	color: #FFFFFF !important;
	font-size: 0 !important;
	line-height: 0 !important;
	border-radius: 0 !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	background: var(--tcd-secondary-color) !important;
	font-family: "design_plus", sans-serif !important;
}

.mog-p-recipes-archive-search__submit::before {
	content: "" !important;
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

.mog-p-recipes-archive-search__submit:hover {
	color: var(--tcd-primary-color);
}

/* リストコンテナ */
.mog-p-recipe-categories__list,
.mog-p-recipes-archive-categories__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3px;
}

/* リストアイテム */
.mog-p-recipe-categories__item,
.mog-p-recipes-archive-categories__item {
}

/* ボタンリンク */
.mog-p-recipe-categories__item-link,
.mog-p-recipes-archive-categories__item-link {
	display: block;
	text-align: center;
	width: 100%;
	color: var(--tcd-primary-color) !important;
	/* 320px=13px, 375px=15px で可変 */
	font-size: clamp(13px, calc(13px + (100vw - 320px) * 0.036), 15px);
	font-weight: 700;
	border: 1px solid var(--tcd-primary-color);
	/* padding: 320px=8px, 375px=12px で可変 */
	padding: clamp(8px, calc(8px + (100vw - 320px) * 0.073), 12px) 0;
	border-radius: 4px;
}

/* ==========================================
	アーカイブページ
	========================================== */
.mog-p-recipes-archive {
	display: block;
}

/* アイテム */
.mog-p-recipes-archive__item {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	justify-content: space-between !important;
	background: #ffffff !important;
	margin: 0 0 10px 0 !important;
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	border-bottom: 1px solid #e0e0e0 !important;
	padding: 12px 4px !important;
	gap: 12px !important;
}

.mog-p-recipes-archive__item:last-child {
	margin-bottom: 0;
}

.mog-p-recipes-archive__item-link {
	display: block;
	height: fit-content;
	margin: auto;
}

.mog-p-recipes-archive__item-thumbnail {
	flex: 1 0 39%;
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
}

.mog-p-recipes-archive__item-thumbnail-inner {
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 3;
	overflow: hidden;
}

.mog-p-recipes-archive__item-thumbnail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

/* ==========================================
   ホバー効果
   ========================================== */
/* サムネイルリンク・タイトルリンクにtransition */
.mog-p-recipes-archive__item-link,
.mog-p-recipes-archive__item-main-link {
	transition: opacity 0.3s ease;
}

/* コンテンツ全体にtransition */
.mog-p-recipes-archive__item-content {
	transition: opacity 0.3s ease;
}

/* サムネイルにホバーでサムネイル拡大＋コンテンツ半透明 */
.mog-p-recipes-archive__item-link:hover .mog-p-recipes-archive__item-thumbnail-img {
	transform: scale(1.05);
}

.mog-p-recipes-archive__item-link:hover ~ .mog-p-recipes-archive__item-content {
	opacity: 0.7;
}

/* タイトルにホバーでサムネイル拡大＋コンテンツ半透明 */
.mog-p-recipes-archive__item:has(.mog-p-recipes-archive__item-main-link:hover) .mog-p-recipes-archive__item-thumbnail-img {
	transform: scale(1.05);
}

.mog-p-recipes-archive__item:has(.mog-p-recipes-archive__item-main-link:hover) .mog-p-recipes-archive__item-content {
	opacity: 0.7;
}

/* 食材カテゴリーにホバーでそのリンクだけ半透明（既存のhoverスタイルで対応済み） */

/* 投稿者にホバーで投稿者だけ半透明（既存のhoverスタイルで対応済み） */

.mog-p-recipes-archive__item-title {
	display: block !important;
	background: none !important;
	padding: 0 !important;
	position: static !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
	max-height: unset;
	font-size: 14px;
}

.mog-p-recipes-archive__item-content {
	flex: 1 0 58%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* タイトル・コメント・食材の箱 */
.mog-p-recipes-archive__item-main {
	flex: 1;
}

.mog-p-recipes-archive__item-main-link {
	display: block;
	text-decoration: none;
}

.mog-p-recipes-archive__item-message {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 12px !important;
	line-height: 1.6 !important;
}

/* 記事タイトル */
.mog-p-article__title {
}

/* ==========================================
	メッセージ
	========================================== */
.no_post,
.mog-no-post {
}

/* ==========================================
   食材カテゴリー（レシピ一覧アイテム内）
   SP: 非表示
   ========================================== */
.mog-p-recipes-archive-ingredient-categories {
	display: none;
	margin-top: 4px;
}

.mog-p-recipes-archive-ingredient-categories__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mog-p-recipes-archive-ingredient-categories__item {
	margin: 0;
	padding: 0;
}

.mog-p-recipes-archive-ingredient-categories__link {
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 親ターム - 塗りつぶしスタイル */
.mog-p-recipes-archive-ingredient-categories__link--parent {
	background: var(--tcd-primary-color);
	color: #fff !important;
	font-weight: 400;
}

.mog-p-recipes-archive-ingredient-categories__link--parent:hover {
	background: var(--tcd-secondary-color);
	color: #fff;
}

/* 子ターム - 枠線スタイル */
.mog-p-recipes-archive-ingredient-categories__link--child {
	background: #fff;
	color: var(--tcd-primary-color);
	border: 1px solid var(--tcd-primary-color);
}

.mog-p-recipes-archive-ingredient-categories__link--child:hover {
	background: var(--tcd-primary-color);
	color: #fff;
}

/* ==========================================
   投稿者（レシピ一覧アイテム内）
   SP: 非表示
   ========================================== */
a.mog-p-recipes-archive-author {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

a.mog-p-recipes-archive-author:hover {
	opacity: 0.7;
}

.mog-p-recipes-archive-author__thumbnail {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
}

.mog-p-recipes-archive-author__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.mog-p-recipes-archive-author__name {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

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

/* 481px以上 - 食材カテゴリーと投稿者を表示 */
@media screen and (min-width: 481px) {
	.mog-p-recipes-archive-ingredient-categories {
		display: block;
	}

	a.mog-p-recipes-archive-author {
		display: flex;
	}
}

/* タブレット (768px以上) */
@media screen and (min-width: 768px) {
	/* レシピカテゴリー */
	.mog-p-recipe-categories__headline,
	.mog-p-recipes-archive-categories__headline {
		font-size: 15px;
		margin-bottom: 10px;
		font-weight: 400;
	}

	.mog-p-recipe-categories__list,
	.mog-p-recipes-archive-categories__list {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 3px;
	}

	.mog-p-recipe-categories__item-link,
	.mog-p-recipes-archive-categories__item-link {
		display: block;
		text-align: center;
		width: 100%;
		color: var(--tcd-primary-color) !important;
		font-size: 15px;
		font-weight: 400;
		border: 1px solid var(--tcd-primary-color);
		padding: 8px 0;
		border-radius: 4px;
	}

	.mog-p-recipes-archive__item-title {
		font-size: 15px !important;
	}

	/* アイテムメッセージ */
	.mog-p-recipes-archive__item-message {
		font-size: 13px !important;
	}

	/* 食材カテゴリー */
	.mog-p-recipes-archive-ingredient-categories {
		margin-top: 4px;
	}

	.mog-p-recipes-archive-ingredient-categories__link {
		font-size: 11px;
		padding: 2px 8px;
	}

	/* 投稿者 */
	a.mog-p-recipes-archive-author {
		margin-top: 10px;
	}

	.mog-p-recipes-archive-author__thumbnail {
		width: 28px;
		height: 28px;
	}

	.mog-p-recipes-archive-author__name {
		font-size: 13px;
	}

	/* 投稿者 */
	.mog-p-recipes-archive-author__thumbnail {
		width: 32px;
		height: 32px;
	}

	.mog-p-recipes-archive-author__name {
		font-size: 14px;
	}
}


/* タブレット (991px以下) */
@media only screen and (max-width: 991px) {
	.mog-p-recipes-archive__sort-item {
		height: 42px;
	}

	.mog-p-recipes-archive__sort-item span {
		font-size: 13px;
	}
}

/* PC (992px以上) */
@media screen and (min-width: 992px) {
	/* ソートボタン */
	.mog-p-recipes-archive__sort {
		margin-bottom: 36px;
	}

	.mog-p-recipes-archive__sort-item {
		height: 50px;
	}

	.mog-p-recipes-archive__sort-item span {
		font-size: 14px;
	}

	/* アイテム */
	.mog-p-recipes-archive__item {
		margin: 0 !important;
	}

	/* l-primary内の絞り込みアコーディオン非表示 */
	.l-primary .mog-p-recipes-archive-filter,
	.p-entry.l-primary .mog-p-recipes-archive-filter {
		display: none;
	}
}
