@charset "UTF-8";
/* 栽培作物について */

.p-fv {
	--fv-after: var(--c-white);
}

/* ===== Crops ===== */
.p-product-crops {
	display: grid;
	gap: clamp(64px, 6.25vw, 90px);
	padding: clamp(40px, 4vw, 60px) 0 clamp(120px, 11vw, 160px);
	background: var(--c-white);
}

.p-product-group {
	display: grid;
	grid-template-columns: minmax(0, 265px) 1fr;
	gap: clamp(24px, 2.431vw, 35px);
	align-items: center;
}

.p-product-group__head .c-sec-title__ja {
	padding-bottom: 14px;
	border-bottom: 2px solid var(--c-green);
	width: fit-content;
	padding-right: 1.6em;
}

.p-product-group__lead {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.6;
}

.p-product-group__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* カード：表面（写真＋品目名）／裏面（作付面積・説明）をホバーで切り替え */
.p-product-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 286 / 190;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	outline-offset: 2px;
}

.p-product-card__front img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-product-card__front {
	height: 100%;
}

.p-product-card__name {
	position: absolute;
	bottom: 6%;
	left: 7%;
	font-size: clamp(13px, 1.042vw, 15px); /* 15px @1440 */
	font-weight: 500;
	line-height: 1.4;
}

.p-product-card__back {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 7px 14px 12px;
	overflow-y: auto;
	color: var(--c-white);
	visibility: hidden;
	background: var(--c-green);
	opacity: 0;
	transition: opacity 0.35s, visibility 0.35s;
}

.p-product-card__tag {
	padding: 0 12px;
	font-size: clamp(11px, 0.833vw, 12px);
	line-height: 1.8;
	color: var(--c-green);
	background: var(--c-white);
	border-radius: 999px;
}

.p-product-card__text {
	font-size: clamp(11px, 0.903vw, 13px); /* 13px @1440 */
	line-height: 1.5;
	letter-spacing: 0.06em;
}

.p-product-card:focus-within .p-product-card__back,
.p-product-card:focus .p-product-card__back {
	visibility: visible;
	opacity: 1;
}

@media (hover: hover) {
	.p-product-card:hover .p-product-card__back {
		visibility: visible;
		opacity: 1;
	}
}

/* ===== Overview ===== */
.p-product-overview {
	--wave-img: url("../img/product/product-back-overview.webp");
	--before: var(--c-white);
	z-index: 2;
	padding: calc(var(--wave) + clamp(40px, 4vw, 60px)) 0 calc(var(--wave) + clamp(80px, 8vw, 120px));
	margin-top: calc(var(--wave) * -1);
}

.p-product-overview__scroll {
	margin-top: clamp(28px, 2.5vw, 36px);
	overflow-x: auto;
}

.p-product-overview__table {
	min-width: 640px;
	border: 1px solid #e6e2d3;
	border-radius: 6px;
	box-shadow: none;
}

.p-product-overview__table thead th {
	font-weight: 500;
	color: var(--c-green);
	background: #f4f2ea;
	border-bottom: 1px solid var(--c-line);
}

.p-product-overview__table th,
.p-product-overview__table td {
	width: auto;
	padding: 18px 28px;
	font-size: 13px;
	font-weight: 500;
	color: var(--c-green);
}

.p-product-overview__table th:first-child {
	width: 26%;
}

.p-product-overview__table td:nth-child(2) {
	width: 30%;
}

/* ===== Soil（写真背景・前後の波はオーバーレイで重ねる） ===== */
.p-product-soil {
	position: relative;
	z-index: 1;
	padding: clamp(110px, 11vw, 160px) 0 clamp(150px, 15vw, 210px);
	margin-top: calc(var(--wave) * -1);
	background: url("../img/product/product-back-soil.webp") center / cover no-repeat;
}

.p-product-soil__box {
	padding: clamp(40px, 4vw, 56px) clamp(24px, 9vw, 130px) clamp(44px, 4.5vw, 64px);
	background: var(--c-white);
	box-shadow: 0 0 30px 22px var(--c-white);
}

.p-product-soil .c-text {
	margin-top: clamp(24px, 2.5vw, 36px);
	font-size: 14px;
}

.p-cta {
	z-index: 2;
	margin-top: calc(var(--wave) * -1 - 10px);
}

/* ===== SP ===== */
@media (max-width: 1023px) {
	.p-product-group {
		grid-template-columns: 1fr;
	}

	.p-product-group__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px), (orientation: portrait) and (max-width: 1023px) {
	.p-product-group__list {
		gap: 12px;
	}

	.p-product-card {
		aspect-ratio: 286 / 220;
	}

	.p-product-card__back {
		padding: 8px 10px;
		gap: 4px;
	}

	.p-product-card__tag {
		padding: 0 8px;
		font-size: 10px;
	}

	.p-product-card__text {
		font-size: 10px;
		letter-spacing: 0.02em;
	}

	.p-product-soil {
		padding: 100px 0 130px;
	}

	.p-product-soil__box {
		padding: 36px 20px;
		box-shadow: 0 0 20px 14px var(--c-white);
	}
}

@media (max-width: 480px) {
	.p-product-group__list {
		grid-template-columns: 1fr;
	}

	.p-product-card {
		aspect-ratio: 286 / 190;
	}

	.p-product-card__text {
		font-size: 12px;
	}
}
