/*====================
cblog（アーバンの現場日和）
====================*/
.cblog-page {
	display: block;
	background: #fff;
	--cblog-sticky-top: 0;
	--cblog-tabs-height: 72px;
	--cblog-content-width: 1520px;
}

@media screen and (max-width: 1919px) {
	.cblog-page {
		--cblog-content-width: min(calc(100% - clamp(48px, 6vw, 80px)), 1520px);
	}
}

@media screen and (max-width: 1279px) {
	.cblog-page {
		--cblog-content-width: 100%;
	}
}

.cblog-page__tabs-area {
	width: 100%;
	background: #fff;
}

.cblog-page__inner {
	box-sizing: border-box;
	width: var(--cblog-content-width);
	margin-inline: auto;
	padding: 0 0 80px;
}

@media screen and (max-width: 1279px) {
	.cblog-page__inner {
		padding-inline: 16px;
	}
}

/* カテゴリタブ（スティッキー・全幅バー＋1520px中央） */
.cblog-tabs__sentinel {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
	overflow: hidden;
}

.cblog-tabs {
	position: sticky;
	top: var(--cblog-sticky-top, var(--site-sticky-offset, 0px));
	z-index: 92;
	box-sizing: border-box;
	width: 100%;
	margin: 24px 0 12px;
	padding: 12px 0;
	background: #fff;
	border-top: 1px solid transparent;
	border-bottom: 1px solid transparent;
	box-shadow: none;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.cblog-tabs__sweep.js-anim-sweep {
	display: block;
	width: 100%;
}

.cblog-tabs.is-stuck {
	border-top-color: rgba(0, 41, 125, 0.1);
	border-bottom-color: rgba(0, 41, 125, 0.16);
	box-shadow: 0 4px 16px rgba(0, 41, 125, 0.12);
}

.cblog-tabs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	box-sizing: border-box;
	width: var(--cblog-content-width);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

@media screen and (max-width: 1279px) {
	.cblog-tabs__list {
		box-sizing: border-box;
		padding-inline: 16px;
	}
}

.cblog-panel {
	scroll-margin-top: calc(var(--cblog-sticky-top, 0px) + var(--cblog-tabs-height, 72px) + 16px);
}

.cblog-tabs__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 200px;
	max-width: 200px;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--color-brand-navy);
	background: #fff;
	color: var(--color-brand-navy);
	font-family: var(--font-base);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-align: center;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.cblog-tabs__btn:hover {
	border-color: var(--color-brand-navy);
}

.cblog-tabs__btn.is-active {
	background: var(--color-brand-navy);
	color: #fff;
}

/* 一覧グリッド */
.cblog-panel__body {
	transition: opacity 0.28s ease;
}

.cblog-panel.is-loading .cblog-panel__body,
.cblog-panel.is-leaving .cblog-panel__body {
	opacity: 0.45;
	pointer-events: none;
}

/* タブ切替直後の“フラッシュ”対策（入場前に一瞬見えてしまうのを防ぐ） */
.cblog-panel.is-build-up-prep .cblog-grid__item {
	opacity: 0;
	transform: translateY(20px) scale(0.98);
}

/* scroll-in + タブ切替：transition と keyframe の競合防止 */
.cblog-panel.is-leaving .cblog-panel__body.js-anim-build-up--scroll .cblog-grid__item,
.cblog-panel.is-entering .cblog-panel__body.js-anim-build-up--scroll .cblog-grid__item {
	transition: none !important;
}

.cblog-list__empty {
	margin: 48px 0;
	color: var(--color-brand-navy);
	font-size: 16px;
	text-align: center;
	letter-spacing: 0.13em;
}

.cblog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cblog-card {
	height: 100%;
}

.cblog-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cblog-card__thumb {
	overflow: hidden;
	aspect-ratio: 480 / 270;
	background: #dce8f4;
}

.cblog-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.cblog-card__link:hover .cblog-card__thumb img {
	transform: scale(1.03);
}

.cblog-card__foot {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 12px;
}

.cblog-card__cat {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 4px 10px;
	background: var(--color-brand-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.13em;
	white-space: nowrap;
}

.cblog-card__title {
	margin: 0;
	color: var(--color-brand-navy);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.13em;
}

/* ページネーション（お知らせ archive-topics と同一） */
.topics-pagination {
	box-sizing: border-box;
	padding: 0;
}

.topics-pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.topics-pagination__item {
	display: flex;
	margin: 0;
}

.topics-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #d8d8d8;
	background: #fff;
	color: var(--color-main);
	font-family: var(--font-base);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.topics-pagination__link:hover {
	border-color: #00297d;
}

.topics-pagination__link--current {
	border-color: #00297d;
	background: #00297d;
	color: #fff;
	cursor: default;
}

.topics-pagination__link--nav {
	min-width: 52px;
	padding: 0 14px;
	letter-spacing: 0.08em;
}

@media screen and (max-width: 600px) {
	.cblog-page__inner {
		padding: 0 16px 64px;
	}

	.cblog-page {
		--cblog-sticky-top: var(--site-header-sticky-height, 0px);
	}

	.cblog-tabs {
		margin-bottom: 28px;
		padding: 8px 0;
	}

	.cblog-tabs.is-stuck {
		box-shadow: 0 2px 12px rgba(0, 41, 125, 0.1);
	}

	.cblog-tabs__list {
		justify-content: flex-start;
	}

	.cblog-tabs__btn {
		flex: 0 0 calc((100% - 16px) / 3);
		width: auto;
		max-width: none;
		min-height: 44px;
		font-size: 16px;
	}

	.cblog-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cblog-card__foot {
		align-items: center;
	}

	.topics-pagination__link {
		min-width: 36px;
		height: 40px;
		font-size: 13px;
	}

	.topics-pagination__link--nav {
		min-width: 48px;
		padding: 0 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cblog-card__thumb img,
	.cblog-panel__body {
		transition: none;
	}
}
