:root {
	--color-black: #000;
	--color-green: #2d5f3f;
}


/* ========================================
   共通スタイル
======================================== */
#container .wrapper h3 {
	color: var(--color-black);
	font-size: 22px;
	line-height: 1.5;
	font-weight: 900;
	margin: 2.5em 0;
	text-align: center;
}

#container .wrapper .swiper-slide a {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#container .wrapper .wrap-bn-text {
	display: flex;
	flex-direction: column;
	flex: 1;
}

#container .wrapper .wrap-bn-text .recipe-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 0.25em 0;
}

#container .wrapper .wrap-bn-text .recipe-text {
	margin-bottom: auto;
}

#container .wrapper .wrap-bn-text > div {
	display: flex;
	justify-content: space-between;
}

#container .wrapper .wrap-bn-text > div > .recipe-category {
	color: var(--color-green);
	font-weight: 700;
}

/* カテゴリボタン */
#container .wrapper .link_btn {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#container .wrapper .link_btn li {
	flex: 0 0 auto;
	margin: 0;
	width: calc((100% - 30px) / 4);
	max-width: 290px;
	min-width: 200px;
}

#container .wrapper .link_btn li a {
	display: block;
	background-color: var(--color-green);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	padding: 15px 60px;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.3s;
}

#container .wrapper .link_btn li a:hover {
	opacity: 0.8;
}

/* 記事ヘッダー */
.article-heading .list-text {
	font-size: 16px;
	line-height: 1.6;
	margin-top: 1em;
	text-align: center;
}

.article-heading .recipe-category {
	color: var(--color-green);
	font-size: 13px;
	font-weight: 700;
	padding: 4px 16px;
	margin-top: 10px;
	text-align: center;
}


/* ========================================
   PC版 - 記事ページ
======================================== */
/* 材料セクション */
.sec-article .wrap-text.recipe-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	background-color: #f5f5f5;
	border-radius: 8px;
	padding: 30px 40px;
	margin: 100px 0;
}

.sec-article .wrap-text.recipe-item h3 {
	flex-shrink: 0;
	width: 200px;
	text-align: left !important;
	margin: 0 !important;
}

.sec-article .wrap-text.recipe-item > div {
	flex: 1;
}

/* 材料リスト */
.ingredients-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.ingredients-list > li {
	margin-bottom: 8px;
}

/* グループ名（ulを持つli）専用のスタイル */
.ingredients-list > li:has(ul) > .ingredient {
	border-bottom: none;
	padding-bottom: 4px;
	display: block;
}

.ingredients-list > li:has(ul) > .ingredient span:first-child {
	font-weight: 700;
	color: var(--color-green);
	display: block;
}

.ingredients-list > li:has(ul) > .ingredient span:last-child {
	display: none;
}

/* グループのul */
.ingredients-list ul {
	padding-left: 30px;
	margin-top: 8px;
	list-style: none;
}

/* 通常の材料（グループ内外共通） */
.ingredient {
	border-bottom: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 8px 0;
	width: 100%;
	gap: 10px;
}

.ingredient span:first-child {
	flex: 1;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.ingredient span:last-child {
	flex-shrink: 0;
	text-align: right;
	font-weight: 500;
	white-space: nowrap;
}

/* 作り方セクション */
.sec-article .wrap-text.recipe-make h3 {
	color: var(--color-green) !important;
	font-size: 28px;
	font-weight: 900;
	text-align: center;
	margin-bottom: 30px;
}

.recipe-make .steps {
	counter-reset: item;
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.recipe-make .steps li {
	padding: 12px 12px 12px 70px;
	position: relative;
	line-height: 1.75;
	background-color: #f0f8e8;
	border-radius: 4px;
}

.recipe-make .steps li:before {
	content: counter(item);
	counter-increment: item;
	position: absolute;
	left: 12px;
	top: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: var(--color-green);
	color: #fff;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
}

/* ページネーション */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 40px 0;
}

.pagination a,
.pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	background-color: var(--color-green);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 700;
	transition: opacity 0.3s;
}

.pagination a:hover {
	opacity: 0.8;
}

.pagination .current {
	background-color: var(--color-black);
}

.pagination .dots {
	color: var(--color-green);
	padding: 0 4px;
}

/* 検索セクション */
#sec-search {
	background: url("/assets/images/_common/bg_dot.png") center center/48px auto repeat;
	padding: 40px 0;
	width: 100%;
}

#sec-search .wrapper {
	max-width: 100%;
	padding: 0 5vw;
}

#sec-search h2 {
	text-align: center;
	font-size: 20px;
	margin-bottom: 20px;
}

#sec-search h2 i {
	display: inline-block;
	font-style: normal;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: 0.1em;
	color: var(--color-green);
	position: relative;
	padding: 0 20px;
}

#sec-search h2 i::before,
#sec-search h2 i::after {
	content: '';
	width: 2px;
	height: 24px;
	position: absolute;
	top: 0;
	z-index: 0;
	background: var(--color-green);
}

#sec-search h2 i::before {
	left: 0;
	transform: skewX(20deg);
	transform-origin: left top;
}

#sec-search h2 i::after {
	right: 0;
	transform: skewX(-20deg);
	transform-origin: right top;
}

#sec-search h2 span {
	display: block;
	font-size: 16px;
	font-weight: 700;
	margin-top: 5px;
}

/* 検索フォーム */
.wrap-input {
	display: flex;
	justify-content: center;
	align-items: stretch;
	max-width: 900px;
	margin: 0 auto;
	gap: 10px;
}

.wrap-input input[type="search"] {
	flex: 1;
	font-size: 14px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: #fff url("/assets/images/_common/icon_search.svg") left 15px center/28px auto no-repeat;
	height: 55px;
	border-radius: 50px;
	border: 3px solid #f4f7a8;
	padding-left: 55px;
	padding-right: 20px;
}

.wrap-input input[type="search"]::placeholder {
	color: #c6c6c6;
}

.wrap-input input[type="submit"].btn {
	border-radius: 8px;
	background: #c8d96f;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	min-width: 80px;
	padding: 0 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 700;
	letter-spacing: 0.1em;
	transition: background 0.15s;
	border: 2px solid #b8c95f;
	cursor: pointer;
}

.wrap-input input[type="submit"].btn:hover {
	opacity: 0.8;
}

.wrap-input input[type="submit"].btn:active {
	background: #b0ba5f;
}


/* ========================================
   スマホ版（750px以下）
======================================== */
@media (max-width: 750px) {
	/* ----------------------------------------
	   レシピ一覧ページ
	---------------------------------------- */
	#sec-recipe .wrapper {
		padding: 0 5vw !important;
	}
	
	/* 横2列グリッドレイアウト（一覧ページのみ） */
	#sec-recipe .wrapper > ul {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 30px 10px !important;
		row-gap: 30px !important;
	}
	
	#sec-recipe .wrapper ul li.swiper-slide {
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	
	#sec-hot ul li + li,
	.sec-list ul li + li,
	#sec-recipe ul li + li {
		margin-top: 0 !important;
	}
	
	#sec-recipe .wrapper ul li.swiper-slide a {
		display: flex !important;
		flex-direction: column !important;
		height: 100% !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-image {
		width: 100% !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-image img {
		width: 100% !important;
		height: auto !important;
		display: block !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-text {
		width: 100% !important;
		flex: 1 !important;
		margin-left: 0 !important;
		margin-top: 10px !important;
		padding: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-text .recipe-title {
		font-size: 14px !important;
		font-weight: 700 !important;
		line-height: 1.3 !important;
		margin: 0 0 6px 0 !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-text .recipe-text {
		font-size: 12px !important;
		line-height: 1.4 !important;
		margin-bottom: auto !important;
		flex: 1 !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-text > div {
		display: flex !important;
		justify-content: space-between !important;
		align-items: flex-end !important;
		margin-top: 8px !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-text > div > .recipe-category {
		font-size: 12px !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
	}
	
	#sec-recipe .wrapper .wrap-bn-text > div > .recipe-date {
		font-size: 10px !important;
		color: #888 !important;
		line-height: 1.2 !important;
	}
	
	/* カテゴリボタン - 横2列、2行 */
	#container .wrapper .link_btn {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 10px !important;
	}
	
	#container .wrapper .link_btn li {
		width: calc((100% - 10px) / 2) !important;
		max-width: none !important;
		min-width: 0 !important;
	}
	
	#container .wrapper .link_btn li a {
		width: 100% !important;
		padding: 15px 10px !important;
		font-size: 14px !important;
	}
	
	
	/* ----------------------------------------
	   記事ページ
	---------------------------------------- */
	/* タイトル */
	.sec-article .article-heading .hd {
		font-size: 24px !important;
		font-weight: 900 !important;
		line-height: 1.4 !important;
		margin-bottom: 15px !important;
		padding: 0 !important;
	}
	
	.sec-article .article-heading .recipe-category {
		margin-bottom: 15px !important;
	}
	
	.sec-article .article-heading .list-text {
		font-size: 15px !important;
		line-height: 1.6 !important;
		margin-bottom: 20px !important;
	}
	
	/* 画像 */
	.sec-article .wrap-image {
		margin: 30px -5vw !important;
		width: 100vw !important;
	}
	
	.sec-article .wrap-image img {
		width: 100% !important;
		height: auto !important;
		display: block !important;
	}
	
	/* 材料セクション - 縦並びに */
	.sec-article .wrap-text.recipe-item {
		display: block !important;
		margin: 40px 0 !important;
		padding: 20px !important;
	}
	
	.sec-article .wrap-text.recipe-item h3 {
		width: 100% !important;
		text-align: center !important;
		font-size: 20px !important;
		margin: 0 0 20px 0 !important;
	}
	
	.sec-article .wrap-text.recipe-item > div {
		width: 100% !important;
	}
	
	/* スマホ版の材料リスト調整 */
	.ingredients-list > li:has(ul) > .ingredient {
		display: block !important;
	}
	
	.ingredients-list > li:has(ul) > .ingredient span:last-child {
		display: none !important;
	}
	
	/* 作り方セクション */
	.sec-article .wrap-text.recipe-make {
		margin: 40px 0 !important;
	}
	
	.sec-article .wrap-text.recipe-make h3 {
		font-size: 20px !important;
		margin-bottom: 20px !important;
	}
	
	.recipe-make .steps li {
		padding: 10px 10px 10px 60px !important;
		font-size: 14px !important;
		line-height: 1.6 !important;
	}
	
	.recipe-make .steps li:before {
		width: 32px !important;
		height: 32px !important;
		font-size: 14px !important;
		left: 10px !important;
		top: 10px !important;
	}
}