/* ==============================
Article Layout
============================== */

/* カード一覧（index） */
.grid {
	display: grid;
	grid-template-columns: 1fr; /* 初期値：589px未満 → 1列 */
	gap: 16px;
	padding: 16px 0 40px;
}

.card {
	position: relative;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: url("../asset/bg.png") center/cover no-repeat, #f1f5f9;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.card:hover .card-media img {
	transform: scale(1.05);
}

.card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0,0,0,.6);
	color: #fff;
	text-align: center;
	padding: 10px;
	opacity: 0;
	transition: opacity .3s ease;
}

.card:hover .card-overlay {
	opacity: 1;
}

.card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.card-productName {
	font-size: 1.4rem;
	font-weight: bold;
	color: #333;
}

.card-price {
	font-size: 1.2rem;
	color: #e53935;
	font-weight: bold;
	text-align: right;
}

.card-stock {
	text-align: right;
	font-size: 0.9rem;
	color: #555;
}


/* 詳細ページ（detail） */
.hero-figure {
	aspect-ratio: 16 / 9;
	background: url("../asset/bg.png") center/cover no-repeat, #f1f5f9;
	border: 1px solid var(--border);
	border-radius: 16px;
	margin: 20px auto;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	img {
		max-width: 100%;
		max-height: 100%;
		height: 100%;
		object-fit: contain;
		
	}
}
.article-head {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
	padding: 16px;
}
.meta {
	font-size: 13px;
	color: var(--muted);
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
}

/* ==============================
Titles
============================== */
.article-title {
	font-size: clamp(22px, 3.2vw, 34px);
	line-height: 1.35;
	font-weight: 700;
	margin: 0 0 6px;
}
.section-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin: 24px 0 10px;
}

.byline {
	font-size: 13px;
	color: var(--muted);
}
.article-body {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
	padding: 28px;

	h2 {
		font-size: 20px;
		margin: 28px 0 10px;
	}

	p {
		margin: 0 0 14px;
	}

	ul {
		padding-left: 20px;
		margin: 0 0 14px;
	}
}
.share {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.backlinks {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	font-size: 14px;
}

/* Responsive */
@media (min-width: 590px) {
	.grid {
		grid-template-columns: repeat(12, 1fr);
	}
	.card { grid-column: span 6; }
}
@media (min-width: 900px) {
	.grid {
		grid-template-columns: repeat(12, 1fr);
	}
	.card { grid-column: span 4; }
	.article-body { padding: 28px; }
}
