/* 記事の下の「最近見たお店」。
 * カードの並びは、カテゴリーページ（themes/banglao/assets/archive.css の .category-grid）と同じ:
 * PC は 3 列、900px 以下（スマホ）は 2 列。6 件なら PC は 3 列 × 2 段、スマホは 2 列 × 3 段になる。 */
.history-block {
	--history-block-ink: var(--bl-ink, #17212b);
	--history-block-navy: var(--bl-navy, #102a43);
	--history-block-red: var(--bl-red, #d7282f);
	--history-block-line: var(--bl-line, #dfe3e6);
	--history-block-shell: min(1180px, calc(100% - 48px));

	box-sizing: border-box;
	margin: 0;
	padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
	border-top: 1px solid var(--history-block-line);
	background: #fff;
	color: var(--history-block-ink);
	font-family: var(--bl-font, "M PLUS 1", sans-serif);
	line-height: 1.7;
}

.history-block *,
.history-block *::before,
.history-block *::after {
	box-sizing: border-box;
}

.history-block a {
	text-decoration: none;
}

.history-block__in {
	width: var(--history-block-shell);
	margin-inline: auto;
}

.history-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 22px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--history-block-navy);
}

.history-block__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--history-block-navy);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

.history-block__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px 22px;
}

.history-block__cell {
	display: flex;
	min-width: 0;
}

@media (max-width: 900px) {
	.history-block {
		--history-block-shell: min(100% - 32px, 720px);
	}

	.history-block__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 16px;
	}
}

@media (max-width: 560px) {
	.history-block {
		--history-block-shell: calc(100% - 24px);
	}
}
