/* ==========================================================================
   晩ごはん食堂 レシピページ CSS
   白ベース × 写真主役 × 雑誌のような余白 × シンプルで上品
   PC: 雑誌的なゆったりレイアウト / スマホ: 調理中でも使いやすい実用レイアウト
   ========================================================================== */

.bgh-recipe-page {
	background: #ffffff;
	color: #2b2926;
}

.bgh-recipe-page__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 56px 24px 96px;
}

.bgh-recipe {
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	line-height: 1.9;
	letter-spacing: 0.02em;
}

/* ---------- ヘッダー ---------- */
.bgh-recipe__header {
	text-align: center;
	margin-bottom: 40px;
}

.bgh-recipe__cat {
	margin-bottom: 14px;
}

.bgh-recipe__cat a {
	display: inline-block;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 9.5px;
	letter-spacing: 0.15em;
	color: #E15B45;
	text-decoration: none;
	border: 1px solid #E15B45;
	border-radius: 999px;
	padding: 3px 12px;
	margin: 0 3px;
}

.bgh-recipe__title {
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 600;
	margin: 0 0 16px;
	color: #201d19;
	line-height: 1.5;
}

.bgh-recipe__lead {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 13.5px;
	color: #6b665f;
	max-width: 560px;
	margin: 0 auto 18px;
}

.bgh-recipe__meta {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 13px;
	color: #857f74;
	letter-spacing: 0.04em;
}

.bgh-recipe__meta-item {
	margin: 0 10px;
}

/* ---------- 写真主役エリア ---------- */
.bgh-recipe__photo {
	margin: 0 0 56px;
}

.bgh-recipe__photo img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
}

/* ---------- セクション共通 ---------- */
.bgh-recipe__section {
	margin-bottom: 64px;
}

.bgh-recipe__section h2 {
	font-family: "Noto Serif JP", serif;
	font-size: 22px;
	font-weight: 600;
	color: #201d19;
	margin: 0 0 24px;
	padding: 0 0 12px !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: 1px solid #e7e2d8 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	position: relative;
}

.bgh-recipe__section h2::before {
	display: none !important;
	content: none !important;
}

.bgh-recipe__section h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 48px;
	height: 2px;
	background: #E15B45;
}

/* ---------- 材料セクション ---------- */
.bgh-recipe__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	border-bottom: 1px solid #e7e2d8;
	margin-bottom: 24px;
	padding-bottom: 12px;
	position: relative;
}

.bgh-recipe__section-head h2 {
	border-bottom: none;
	margin: 0;
	padding: 0;
}

.bgh-recipe__section-head h2::after {
	display: none;
}

.bgh-recipe__section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 48px;
	height: 2px;
	background: #E15B45;
}

.bgh-servings-switcher {
	display: inline-flex;
	background: #f7f5f0;
	border-radius: 999px;
	padding: 4px;
	font-family: "Noto Sans JP", sans-serif;
}

.bgh-servings-btn {
	appearance: none;
	border: none;
	background: transparent;
	font-size: 12.5px;
	letter-spacing: 0.03em;
	color: #6b665f;
	padding: 7px 14px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.bgh-servings-btn:hover {
	color: #201d19;
}

.bgh-servings-btn.is-active {
	background: #201d19;
	color: #ffffff;
}

.bgh-ingredients-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: "Noto Sans JP", sans-serif;
	columns: 2;
	column-gap: 48px;
}

.bgh-ingredient-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px dotted #d9d3c6;
	break-inside: avoid;
}

/* ---------- 材料グループ（A括りなど）：縦線＋中央ラベル表示 ---------- */
.bgh-ingredient-group {
	display: flex;
	align-items: stretch;
	list-style: none;
	break-inside: avoid;
	margin: 4px 0;
}

.bgh-ingredient-group__side {
	flex: 0 0 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-right: 12px;
}

.bgh-ingredient-group__label {
	flex: 0 0 auto;
	font-family: "Noto Serif JP", serif;
	font-weight: 600;
	font-size: 14px;
	color: #E15B45;
	line-height: 1;
	padding-bottom: 6px;
}

.bgh-ingredient-group__line {
	flex: 1 1 auto;
	width: 1.5px;
	background: #E15B45;
}

.bgh-ingredient-group__list {
	flex: 1 1 auto;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgh-ingredient-group__list .bgh-ingredient-item:last-child {
	border-bottom: none;
}

.bgh-ingredient-name {
	font-size: 15px;
	color: #2b2926;
	flex: 1 1 auto;
	min-width: 0;
}

.bgh-ingredient-measure {
	flex: 0 0 auto;
	display: flex;
	align-items: baseline;
	gap: 3px;
	white-space: nowrap;
}

.bgh-ingredient-amount {
	font-size: 15px;
	font-weight: 600;
	color: #201d19;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.bgh-ingredient-amount.is-updating {
	opacity: 0.35;
}

.bgh-ingredient-unit {
	font-size: 13px;
	color: #857f74;
	white-space: nowrap;
}

/* 大さじ・小さじなど、単位を数値の前に置く場合は数字と同じ太さ・色で表示 */
.bgh-ingredient-unit--prefix {
	font-size: 15px;
	font-weight: 600;
	color: #201d19;
	margin-right: 1px;
}

.bgh-ingredient-note {
	font-size: 13px;
	color: #857f74;
	white-space: nowrap;
	margin-left: 2px;
}

/* ---------- 作り方セクション ---------- */
.bgh-steps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: "Noto Sans JP", sans-serif;
}

.bgh-step-item {
	display: flex;
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid #f1eee7;
}

.bgh-step-item:first-child {
	padding-top: 0;
}

.bgh-step-item__num {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #E15B45;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Noto Serif JP", serif;
	font-size: 13px;
	color: #ffffff;
}

.bgh-step-highlight-num {
	font-family: "Noto Serif JP", serif;
	color: #E15B45;
	font-weight: 600;
}

.bgh-step-item__content {
	flex: 1;
	min-width: 0;
}

.bgh-step-item__content p {
	margin: 0;
	font-size: 15px;
	line-height: 1.9;
	color: #2b2926;
}

.bgh-text-accent {
	font-family: "Noto Serif JP", serif;
	color: #E15B45;
	font-weight: 600;
}

.bgh-step-item__image {
	margin-bottom: 14px;
}

.bgh-step-item__image img {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 2px;
	display: block;
}

/* ---------- ポイント ---------- */
.bgh-points-card {
	position: relative;
	background: #f7f5f0;
	padding: 32px 36px 32px 44px;
	border-radius: 2px;
}

.bgh-points-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2.5px;
	background: #E15B45;
}

.bgh-points-card__label {
	display: block;
	font-family: "Noto Serif JP", serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: #E15B45;
	margin-bottom: 16px;
}

.bgh-points-card__body {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 15px;
	line-height: 1.9;
	color: #2b2926;
}

.bgh-points-card__body p:last-child {
	margin-bottom: 0;
}

/* ---------- 動画 ---------- */
.bgh-video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #111;
	border-radius: 2px;
	overflow: hidden;
}

.bgh-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- 献立例カード ---------- */
.bgh-menu-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.bgh-menu-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 3px;
	overflow: hidden;
	transition: opacity 0.2s ease;
}

.bgh-menu-card:hover {
	opacity: 0.8;
}

.bgh-menu-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f1ea;
	border-radius: 3px;
}

.bgh-menu-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bgh-menu-card__noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: #f4f1ea;
}

.bgh-menu-card__eyebrow {
	display: block;
	margin-top: 14px;
	font-family: "Noto Serif JP", serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: #9a958c;
}

.bgh-menu-card__title {
	display: block;
	margin-top: 6px;
	font-family: "Noto Serif JP", serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.6;
	color: #201d19;
}

@media (max-width: 680px) {
	.bgh-menu-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.bgh-menu-card__eyebrow {
		font-size: 9.5px;
		margin-top: 8px;
	}

	.bgh-menu-card__title {
		font-size: 13px;
		margin-top: 4px;
	}
}

/* ---------- フッター ---------- */
.bgh-recipe__footer {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid #e7e2d8;
	text-align: center;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 13px;
	color: #857f74;
}

.bgh-recipe__footer a {
	color: #E15B45;
	text-decoration: underline;
}

/* ==========================================================================
   スマホ：調理中でも使いやすいレイアウト
   ・材料の人数ボタンをスクロール追従にして片手で切替
   ・文字を大きめに、タップ領域を広く
   ========================================================================== */
@media (max-width: 680px) {

	.bgh-recipe-page__inner {
		padding: 32px 18px 72px;
	}

	.bgh-recipe__title {
		font-size: 24px;
	}

	.bgh-recipe__section {
		margin-bottom: 48px;
	}

	.bgh-recipe__section h2,
	.bgh-recipe__section-head h2 {
		font-size: 19px;
	}

	.bgh-recipe__section-head {
		position: sticky;
		top: 0;
		z-index: 5;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(4px);
		flex-direction: column;
		align-items: stretch;
		padding-top: 10px;
	}

	/* 縦積みレイアウトでは、行全体ではなく「材料」見出し自体の直下にアクセントを表示 */
	.bgh-recipe__section-head::after {
		display: none;
	}

	.bgh-recipe__section-head h2 {
		position: relative;
		padding-bottom: 10px;
	}

	.bgh-recipe__section-head h2::after {
		content: "";
		display: block;
		position: absolute;
		left: 0;
		bottom: 0;
		width: 40px;
		height: 2px;
		background: #E15B45;
	}

	.bgh-servings-switcher {
		width: 100%;
		justify-content: space-between;
	}

	.bgh-servings-btn {
		flex: 1;
		padding: 10px 4px;
		font-size: 13px;
	}

	.bgh-ingredients-list {
		columns: 1;
	}

	.bgh-ingredient-item {
		padding: 13px 0;
	}

	.bgh-ingredient-name,
	.bgh-ingredient-amount {
		font-size: 16px;
	}

	.bgh-step-item {
		gap: 14px;
		padding: 22px 0;
	}

	.bgh-step-item__num {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.bgh-step-item__content p {
		font-size: 15.5px;
	}

	.bgh-points-card {
		padding: 22px 20px 22px 28px;
	}
}

/* ---------- PC：雑誌的な余白を強調 ---------- */
@media (min-width: 1000px) {
	.bgh-recipe-page__inner {
		max-width: 900px;
		padding-top: 72px;
	}

	.bgh-recipe__photo img {
		border-radius: 3px;
	}
}
