/**
 * Corporate Product Development Page Styles (商品開発事業)
 *
 * Mobile-first: base styles for 400px, desktop overrides via media queries.
 * Shared styles (biz-category, biz-flow, biz-case) are in corporate-common.css.
 * This file contains only page-specific overrides and unique components.
 *
 *
 * @package Okayama
 */

/* ========================================
   Page Base
   ======================================== */

.page-corporate-product-dev {
	background-color: #f3f8e7;
}

/* ========================================
   Content Cards Wrapper
   ======================================== */

.product-dev-content {
	padding: 80px 20px 0;
}

/* ========================================
   Photo --wide modifier (グランプリ main photo)
   ======================================== */

.biz-category__photo--wide .biz-category__photo-img {
	max-width: none;
	aspect-ratio: auto;
}

/* ========================================
   Gallery Grid (グランプリ受賞商品)
   ======================================== */

.product-dev-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 24px;
}

.product-dev-gallery__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-dev-gallery__photo {
	border-radius: 10px;
	overflow: hidden;
}

.product-dev-gallery__photo-img {
	width: 100%;
	height: auto;
	aspect-ratio: 280 / 200;
	object-fit: cover;
	display: block;
}

.product-dev-gallery__caption {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: clamp(12px, calc(11.2px + 0.2vw), 14px);
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	margin: 0;
}

/* ========================================
   Desktop Overrides (min-width: 768px)
   ======================================== */

@media (min-width: 768px) {
	/* Content */
	.product-dev-content {
		padding: 80px var(--corp-pad-side) 0;
	}

	/* Flow Step — let grid 1fr handle sizing */

	/* Photo --wide modifier */
	.biz-category__photo--wide .biz-category__photo-img {
		max-width: 640px;
		aspect-ratio: 640 / 350;
		margin: 0 auto;
	}

	/* Gallery Grid — 3 columns */
	.product-dev-gallery {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
		margin-top: 40px;
	}

	.product-dev-gallery__item {
		width: auto;
	}

	.product-dev-gallery__photo-img {
		height: auto;
		aspect-ratio: 280 / 200;
	}

}
