/* ---- ⑥ リンクブロック ---- */
.links-block {
	background: #fff;
	padding: 80px 0 60px;
}
.links-block__grid {
	display: grid;
	/* 常に4カラム基準の幅で固定（カードが1枚でも4枚表示時と同じ幅にするため）。
	   5枚目以降は次の行に折り返す。auto-fit 等は使わない
	   （少枚数のときにカードが横幅いっぱいに伸びてしまうため）。 */
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.link-card {
	position: relative;
	height: 480px;
	display: block;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.link-card:hover {
	transform: scale(1.04);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
	z-index: 1;
}
.link-card__img {
	position: absolute;
	inset: 0;
	background-color: #8c8c91;
	background-size: cover;
	background-position: center;
}
.link-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 280px, rgba(0,0,0,0.82) 480px);
}
.link-card__text {
	position: absolute;
	bottom: 32px;
	left: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.link-card__label {
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}
.link-card__sub {
	font-size: 12px;
	color: rgba(255,255,255,0.7);
	margin: 0;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	.links-block { padding: 32px 0; }
	.links-block__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.link-card { height: 120px; border-radius: 8px; }
	.link-card__overlay { background: linear-gradient(to bottom, transparent 48px, rgba(0,0,0,0.82) 120px); }
	.link-card__text { bottom: 12px; left: 12px; right: 12px; gap: 2px; }
	.link-card__label { font-size: 13px; font-weight: 700; }
	.link-card__sub { font-size: 11px; }
}
