/* ===== 和豚もちぶたと農場 ===== */

/* MV(スマホは common.css の配置を使う) */
.page-mv--farm::before { background-image: url(../images/farm/mv-pigs.webp); }
.page-mv--farm .page-mv__bg::after { background-image: url(../images/farm/mv-overlay.webp); }
@media (min-width: 768px) {
	.page-mv--farm::before {
		top: -410px;
		left: max(calc(50% - 520px), calc(100% - 1240px));
		width: 1302px;
		height: 862px;
	}
	.page-mv--farm .page-mv__inner { padding-top: 122px; }
	.page-mv--farm .page-mv__bg::before { top: -49px; left: calc(50% - 718px); }
	.page-mv--farm .page-mv__bg::after { top: -359px; left: -120px; }
}

/* 背景の写真・ぼかしを置くセクション共通 */
.farm-brand,
.farm-shop {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.farm-brand::before,
.farm-brand::after,
.farm-shop::before,
.farm-shop::after,
.farm-shop__inner::before {
	content: "";
	position: absolute;
	z-index: -1;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

/* 和豚もちぶたとは */
.farm-brand {
	padding-bottom: 72px;
	background: var(--c-brown-light);
}
.farm-brand::before {
	top: 0;
	left: calc(50% + 78px);
	width: 100%;
	height: 554px;
	background-size: 959px 554px;
	background-image: url(../images/farm/brand-bg.webp);
}
.farm-brand::after {
	top: 0;
	left: calc(50% - 77px);
	width: 536px;
	height: 664px;
	background-image: linear-gradient(97.59deg, #f9f5ed 54.124%, rgba(255, 255, 255, 0) 91.222%);
}
.farm-brand__inner {
	display: grid;
	grid-template-columns: 380px 1fr;
	column-gap: 30px;
	width: min(1000px, 100% - 40px);
	margin: 22px auto 0;
}
.farm-brand__photo {
	display: block;
	width: 100%;
	height: 245px;
	border-radius: 10px;
	object-fit: cover;
}
.farm-brand__body p + p { margin-top: 32px; }
.farm-brand__points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 21px;
	width: min(1200px, 100% - 40px);
	margin: 102px auto 0;
}
.farm-brand__point {
	min-height: 202px;
	padding: 0 40px 20px 33px;
	border: 3px solid var(--c-pink);
	border-radius: 10px;
}
.farm-brand__point-title {
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	margin: -25px auto 0;
	padding: 0 10px 0 8px;
	background: var(--c-brown-light);
	color: var(--c-red);
	font-size: 18px;
	font-weight: 700;
	line-height: 45px;
}
.farm-brand__point-title::before {
	content: "";
	flex: none;
	width: 45px;
	height: 34px;
	background: url(../images/farm/icon-pig.svg) center / contain no-repeat;
}
.farm-brand__point-text { margin-top: 22px; }

/* 部位ガイド */
.farm-cuts { padding-bottom: 31px; }
.farm-cuts__img {
	display: block;
	width: 556px;
	margin: 38px auto 0;
}
.farm-cuts__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 49px 95px;
	width: min(1199px, 100% - 40px);
	margin: 76px auto 0;
}
.farm-cuts__item {
	padding-bottom: 13px;
	background: repeating-linear-gradient(90deg, var(--c-pink-dark) 0 4px, transparent 4px 8px) left bottom / 100% 1px no-repeat;
}
.farm-cuts__name {
	color: var(--c-brown);
	font-size: 16px;
	font-weight: 700;
	line-height: 28px;
}
.farm-cuts__row {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	line-height: 32px;
}
.farm-cuts__row + .farm-cuts__row { gap: 8px; margin-top: 5px; }
.farm-cuts__label {
	flex: none;
	margin-top: 3.5px;
	padding: 2px 10px;
	border-radius: 10px;
	background: var(--c-pink-dark);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 21px;
}
.farm-cuts__row dd { margin: 0; }

/* 育てる仕事の流れ */
.farm-process {
	padding-bottom: 70px;
	background: var(--c-brown-light);
}
.farm-process__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	column-gap: 29px;
	width: min(1216px, 100% - 40px);
	margin: 20px 0 0 max(20px, calc(50% - 600px));
}
.farm-process__list::before {
	content: "";
	position: absolute;
	top: 74px;
	left: 0;
	right: 16px;
	height: 9px;
	border-radius: 100px;
	background: linear-gradient(90deg, #f0e1cb, var(--c-pink-border));
}
.farm-process__item {
	position: relative;
	text-align: center;
}
.farm-process__item::before {
	content: "";
	position: absolute;
	top: 73px;
	left: 50%;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	border-radius: 50%;
	background: var(--c-logo-brown);
}
.farm-process__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--c-brown);
	font-size: 16px;
	font-weight: 700;
	line-height: 28px;
}
.farm-process__num {
	color: var(--c-pink-dark);
	font-family: var(--f-en);
	font-size: 40px;
	font-weight: 600;
	line-height: 32px;
}
.farm-process__name { margin-top: 5px; }
.farm-process__text { margin-top: 38px; }
.farm-process__staff {
	width: min(1200px, 100% - 40px);
	margin: 77px auto 0;
	padding: 25px 20px 16px;
	border-radius: 10px;
	background: linear-gradient(rgba(251, 207, 207, .3), rgba(240, 225, 203, .3));
	text-align: center;
}
.farm-process__btn {
	display: inline-flex;
	align-items: center;
	gap: 33px;
	height: 58px;
	margin-top: 16px;
	padding: 0 19px 0 40px;
	border: 1px solid #fff;
	border-radius: 5px;
	background: linear-gradient(#ad8838, #d5ba8e);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
	color: #fff;
	font-weight: 700;
	line-height: 28px;
	text-decoration: none;
	transition: opacity .2s;
}
.farm-process__btn::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: url(../images/farm/btn-arrow.svg) center / contain no-repeat;
}
.farm-process__btn:hover { opacity: .85; }

/* 衛生管理・防疫 / いのちの循環 */
.farm-care {
	padding: 71px 0 68px;
	background: #fefafa;
}
.farm-box {
	width: min(1200px, 100% - 40px);
	margin-inline: auto;
	border: 2px solid transparent;
	border-radius: 10px;
	background:
		linear-gradient(#fefafa, #fefafa) padding-box,
		linear-gradient(#b5965c, #fddd99) border-box;
}
.farm-box + .farm-box { margin-top: 79px; }
.farm-box__title {
	position: relative;
	left: -32px;
	width: fit-content;
	margin: -25px auto 0;
	padding: 0 10px 0 74px;
	background: #fefafa;
	color: var(--c-brown);
	font-size: 20px;
	font-weight: 700;
	line-height: 45px;
}
.farm-box__title::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 11px;
	width: 51px;
	height: 51px;
	background: url(../images/farm/icon-hygiene.svg) center / contain no-repeat;
}
.farm-box--cycle .farm-box__title::before { background-image: url(../images/farm/icon-cycle.svg); }
.farm-box__list li {
	position: relative;
	padding-left: 24px;
	line-height: 32px;
}
.farm-box__list li::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-logo-brown);
}
.farm-box--hygiene { padding-bottom: 11px; }
.farm-box__hygiene {
	display: flex;
	align-items: center;
	margin-top: 4px;
	padding-left: 214px;
}
.farm-box__hygiene-img {
	flex: none;
	width: 310px;
	mix-blend-mode: multiply;
}
.farm-box__hygiene .farm-box__list { margin: 0 0 16px -5px; }
.farm-box--cycle { padding-bottom: 53px; }
.farm-cycle {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin-top: 70px;
}
.farm-cycle__item {
	position: relative;
	flex: none;
	width: 287px;
	height: 260px;
	border: 3px solid var(--c-pink-border);
	border-radius: 10px;
	background: #fff;
}
.farm-cycle__item + .farm-cycle__item::before {
	content: "";
	position: absolute;
	top: 100px;
	left: -43px;
	width: 34px;
	height: 35px;
	background: url(../images/farm/cycle-arrow.svg) center / contain no-repeat;
}
.farm-cycle__img {
	position: absolute;
	top: 2px;
	max-width: none;
	mix-blend-mode: multiply;
}
.farm-cycle__item--compost .farm-cycle__img { left: 81px; width: 98px; }
.farm-cycle__item--cabbage .farm-cycle__img { left: 35px; width: 228px; }
.farm-cycle__item--table .farm-cycle__img { top: -14px; left: 23px; width: 239px; }
.farm-cycle__label {
	position: absolute;
	right: -3px;
	bottom: -3px;
	left: -3px;
	height: 48px;
	padding-top: 11px;
	border-radius: 0 0 10px 10px;
	background: var(--c-pink-dark);
	color: #fff;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}
.farm-box__list--center {
	width: fit-content;
	margin: 46px auto 0;
}

/* 当農場では、通信販売を行っておりません。 */
.farm-shop { padding: 99px 0 104px; }
.farm-shop::before {
	z-index: -3;
	top: -215px;
	left: calc(50% - 830px);
	width: 932px;
	height: 616px;
	background-image: url(../images/farm/shop-pigs.webp);
}
/* 写真: 1440px幅で左602px。それより広い画面では右端に合わせる */
.farm-shop::after {
	z-index: -2;
	top: -47px;
	left: max(calc(50% - 118px), calc(100% - 838px));
	width: 1000px;
	height: 595px;
	background-image: url(../images/farm/shop-bokeh.webp);
}
.farm-shop__inner::before {
	top: -4px;
	left: calc(50% - 378px);
	width: 843px;
	height: 478px;
	background-image: linear-gradient(91.16deg, rgba(255, 255, 255, 0) .56861%, #fff 30.356%, rgba(255, 255, 255, 0) 98.58%);
}
.farm-shop__inner { padding: 0 20px 0 max(20px, calc(50% - 120px)); }
.farm-shop__title {
	display: flex;
	flex-direction: column;
	gap: 21px;
	font-family: var(--f-serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 32px;
}
.farm-shop__en {
	max-width: 614px;
	border-bottom: 1px solid var(--c-pink-dark);
	color: var(--c-pink-dark);
	font-family: var(--f-en);
	font-size: 22px;
	font-weight: 600;
}
.farm-shop__text { margin-top: 20px; }
.farm-shop__text a {
	color: var(--c-red);
	font-weight: 700;
}
.farm-shop__text a:hover { text-decoration: none; }

/* ===== タブレット ===== */
@media (max-width: 1239px) {
	.farm-brand::before { left: auto; right: -420px; }
	.farm-brand::after { left: auto; right: -40px; }
	.farm-brand__points { grid-template-columns: 1fr; row-gap: 48px; width: min(560px, 100% - 40px); margin-top: 72px; }
	.farm-brand__point { min-height: 0; padding: 0 24px 20px; }
}

@media (max-width: 1023px) {
	.farm-brand__inner { grid-template-columns: 1fr; row-gap: 24px; }
	.farm-brand__photo { width: min(380px, 100%); }
	.farm-cuts__list { grid-template-columns: 1fr; width: min(640px, 100% - 40px); row-gap: 32px; }
	.farm-process__list { grid-template-columns: 1fr; row-gap: 24px; width: min(400px, 100% - 40px); margin-inline: auto; padding-left: 40px; }
	.farm-process__list::before { top: 6px; bottom: 6px; left: 8px; right: auto; width: 6px; height: auto; background: linear-gradient(#f0e1cb, var(--c-pink-border)); }
	.farm-process__item { text-align: left; }
	.farm-process__item::before { top: 10px; left: -40px; margin-left: 5px; }
	.farm-process__title { flex-direction: row; align-items: baseline; gap: 12px; }
	.farm-process__num { font-size: 32px; }
	.farm-process__name { margin-top: 0; }
	.farm-process__text { margin-top: 0; }
	.farm-process__staff { margin-top: 48px; }
	.farm-box__hygiene { padding-left: 40px; gap: 24px; }
	.farm-box__hygiene .farm-box__list { margin: 0; }
	.farm-box__hygiene-img { width: 240px; }
}

@media (max-width: 899px) {
	.farm-cycle { flex-direction: column; align-items: center; gap: 56px; padding-inline: 20px; }
	.farm-cycle__item + .farm-cycle__item::before { top: -48px; left: 50%; margin-left: -17px; transform: rotate(90deg); }
	.farm-box__list--center { padding-inline: 20px; }
}

/* ===== スマホ ===== */
@media (max-width: 767px) {
	.farm-brand { padding-bottom: 56px; }
	.farm-brand::before,
	.farm-brand::after { content: none; }
	.farm-brand__inner { margin-top: 0; }
	.farm-brand__body p + p { margin-top: 16px; }
	.farm-brand__body br { display: none; }
	.farm-brand__point-title { font-size: 16px; }
	.farm-brand__point-title::before { width: 36px; height: 28px; }
	.farm-cuts { padding-bottom: 56px; }
	.farm-cuts__img { width: min(556px, 100% - 40px); margin-top: 0; }
	.farm-cuts__list { margin-top: 40px; }
	.farm-cuts__row { flex-direction: column; gap: 0; }
	.farm-cuts__row + .farm-cuts__row { gap: 0; }
	.farm-cuts__label { align-self: flex-start; }
	.farm-cuts__row dd { line-height: 1.8; }
	.farm-process { padding-bottom: 56px; }
	.farm-process__staff { padding: 20px 16px; text-align: left; }
	.farm-process__btn { display: flex; justify-content: center; width: fit-content; margin-inline: auto; }
	.farm-care { padding: 56px 0; }
	.farm-box { padding-inline: 16px; }
	.farm-box + .farm-box { margin-top: 64px; }
	.farm-box__title { left: 0; padding: 0 8px 0 66px; font-size: 18px; }
	.farm-box__title::before { left: 8px; }
	.farm-box__hygiene { flex-direction: column; padding: 0 0 16px; gap: 8px; }
	.farm-box__hygiene-img { width: 200px; }
	.farm-box__list li { line-height: 1.8; }
	.farm-box__list li::before { top: 9px; }
	.farm-cycle { margin-top: 40px; padding-inline: 0; }
	.farm-cycle__item { width: min(287px, 100%); }
	.farm-box__list--center { margin-top: 32px; padding-inline: 0; }
	.farm-shop { padding: 64px 0; }
	.farm-shop::before { content: none; }
	.farm-shop__inner { padding: 0 20px; }
	.farm-shop::after { left: 0; width: 100%; height: 100%; top: 0; background-size: cover; background-position: center; }
	.farm-shop__inner::before { top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)); }
	.farm-shop__title { gap: 12px; font-size: 22px; line-height: 1.5; }
	.farm-shop__en { font-size: 18px; }
	.farm-shop__text br { display: none; }
}



@media (min-width: 1500px) {
	.farm-shop::before {
		left: calc(50% - 1000px);
	}
}

@media (min-width: 1700px) {
	.page-mv--farm .page-mv__bg::before {
		left: 17%;
	}
}

@media (max-width: 1032px) {
	.farm-shop::before {
		top: -116px;
	}
}