/*====================
archive-result（施工事例 一覧）
ブレイクポイント: variables.css 参照
====================*/
.results-page {
	display: block;
	background: var(--color-topics-bg);
	--results-sticky-top: var(--site-sticky-offset, 0px);
	--results-tab-w: 260px;
	--results-tab-h: 48px;
	--results-filter-w: 250px;
	--results-filter-h: 48px;
	--results-section-filter-arrow-w: 24px;
	--results-section-filter-arrow-h: 48px;
	--results-card-tag-arrow-w: 24px;
	--results-card-tag-arrow-h: 33px;
}

@media screen and (max-width: 1279px) {
	.results-page {
		--results-sticky-top: var(--site-header-sticky-height, 0px);
	}
}

.results-page__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1520px;
	margin-inline: auto;
	padding: 0 16px 120px;
}

@media screen and (max-width: 1279px) {
	.results-page__inner {
		padding: 24px 16px 96px;
	}
}

/* 上部タブ */
.results-primary-nav__sentinel {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
}

.results-primary-nav {
	z-index: 92;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--color-topics-bg);
	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;
}

.results-primary-nav.is-stuck {
	background: var(--color-topics-bg);
}

.results-primary-nav__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1520px;
	margin-inline: auto;
	padding: 0 16px 48px;
	overflow: visible;
}

.results-primary-nav__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: stretch;
	gap: 12px;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 48px 0 0;
	list-style: none;
}

.results-primary-nav__item {
	display: block;
	flex: 0 0 var(--results-tab-w);
	width: var(--results-tab-w);
	min-width: 0;
}

#results-primary-nav__list .results-primary-nav__item {
	flex: 0 0 260px;
	width: 260px;
}

@media screen and (max-width: 1279px) {
	.results-primary-nav__inner {
		overflow: visible;
	}

	.results-primary-nav__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		flex-wrap: wrap;
		width: 100%;
		margin: 0 auto;
	}

	.results-primary-nav__item {
		flex: none;
		width: auto;
	}

	#results-primary-nav__list .results-primary-nav__item {
		flex: none;
		width: auto;
	}
}

#results-primary-nav__list .results-primary-nav__btn {
	height: 48px;
	min-height: 48px;
}

.results-primary-nav__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: var(--results-tab-h);
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--color-brand-navy);
	border-radius: 0;
	background: #fff;
	color: var(--color-brand-navy);
	font-family: var(--font-base);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.13em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.results-primary-nav__btn.is-active,
.results-primary-nav__btn[aria-selected="true"] {
	border-color: var(--color-brand-navy);
	background: var(--color-brand-navy);
	color: #fff;
}

.results-primary-nav__btn:focus-visible {
	outline: 2px solid var(--color-brand-navy);
	outline-offset: 2px;
}

/* 部門セクション */
.results-page__sections {
	display: flex;
	flex-direction: column;
	gap: 80px;
}

@media screen and (max-width: 1279px) {
	.results-page__sections {
		gap: 64px;
	}
}

#results-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 1520px;
	margin-inline: auto;
}

.results-section {
	scroll-margin-top: calc(
		var(--results-sticky-top, 0px) + var(--results-primary-nav-height, 96px) + 12px
	);
}

.results-section.is-hidden {
	display: none;
}

.results-section__head {
	position: relative;
	z-index: 2;
	margin-bottom: 24px;
}

.results-section__title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	color: var(--color-brand-navy);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.13em;
}

.results-section__mark {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: var(--color-brand-navy);
}

.results-section__title-sweep {
	display: inline-block;
	vertical-align: top;
}

.results-section__title-sweep .js-anim-sweep__content {
	display: block;
}

.results-section__filters-sweep {
	display: block;
	width: 100%;
}

.results-section__filters-sweep .js-anim-sweep__content {
	width: 100%;
}

.results-section__filters-sweep .results-section__filter {
	position: relative;
	z-index: 3;
	pointer-events: auto;
}

.results-section__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid #16346d;
}

.results-section__filter {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 var(--results-filter-w);
	width: var(--results-filter-w);
	max-width: min(var(--results-filter-w), 270px);
	height: var(--results-filter-h);
	min-height: 48px;
	margin: 0;
	padding: 0 4px;
	border: 1px solid var(--color-brand-navy);
	border-radius: 0;
	background: #fff;
	color: var(--color-brand-navy);
	font-family: var(--font-base);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.01em;
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.2s ease, color 0.2s ease;
}

@media screen and (max-width: 600px) {
	.results-page {
		--results-filter-h: 32px;
		--results-section-filter-arrow-h: 32px;
		--results-section-filter-arrow-w: 20px;
	}

	.results-section__filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		justify-content: stretch;
	}

	.results-section__filter {
		flex: none;
		width: 100%;
		max-width: none;
		height: 32px;
		min-height: 32px;
		margin-inline: 0;
		padding: 0 6px;
		font-size: 14px;
		line-height: 1.2;
		letter-spacing: 0;
	}

	.results-section__filter.is-active,
	.results-section__filter[aria-selected="true"] {
		padding-left: calc(var(--results-section-filter-arrow-w) + 6px);
		padding-right: calc(var(--results-section-filter-arrow-w) + 6px);
	}

	.results-section__filter-text {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

.results-section__filter::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -1px;
	width: var(--results-section-filter-arrow-w);
	height: var(--results-section-filter-arrow-h);
	background: linear-gradient(180deg, #8fa4c4 0%, #6b84a8 100%);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.results-section__filter.is-active::before,
.results-section__filter[aria-selected="true"]::before {
	opacity: 1;
}

.results-section__filter.is-active,
.results-section__filter[aria-selected="true"] {
	/* 三角は装飾。テキストは中央に置く */
	padding-left: calc(var(--results-section-filter-arrow-w) + 12px);
	padding-right: calc(var(--results-section-filter-arrow-w) + 12px);
	background: var(--color-brand-navy);
	color: #fff;
}

.results-section__filter-text {
	position: relative;
	z-index: 1;
}

.results-section__filter:focus-visible {
	outline: 2px solid var(--color-brand-navy);
	outline-offset: 2px;
}

/* パネル・ローディング */
.results-panel {
	position: relative;
}

.results-panel.is-build-up-prep .results-grid__item {
	opacity: 0;
	transform: translateY(20px) scale(0.98);
}

.results-panel.is-leaving .results-panel__body.js-anim-build-up--scroll .results-grid__item,
.results-panel.is-entering .results-panel__body.js-anim-build-up--scroll .results-grid__item {
	transition: none !important;
}

.results-panel__overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: rgba(244, 250, 254, 0.88);
}

.results-panel__overlay[hidden] {
	display: none;
}

.results-loader {
	position: relative;
	display: grid;
	place-items: center;
	width: min(100%, 280px);
	height: 80px;
	overflow: hidden;
	border: 1px solid rgba(0, 41, 125, 0.2);
	background: #fff;
}

.results-loader__beam {
	position: absolute;
	inset: 0 auto 0 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(0, 41, 125, 0.35), transparent);
	animation: results-loader-beam 1.4s ease-in-out infinite;
}

.results-loader__hatch {
	position: absolute;
	inset: 0;
	opacity: 0.12;
	background: repeating-linear-gradient(
		-45deg,
		var(--color-brand-navy) 0,
		var(--color-brand-navy) 2px,
		transparent 2px,
		transparent 8px
	);
	animation: results-loader-hatch 2s linear infinite;
}

.results-loader__label {
	position: relative;
	z-index: 1;
	color: var(--color-brand-navy);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.13em;
}

@keyframes results-loader-beam {
	0% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(320%);
	}
}

@keyframes results-loader-hatch {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 24px 0;
	}
}

/* グリッド・カード */
.results-grid__empty {
	margin: 0;
	padding: 32px 0;
	color: var(--color-main);
	font-size: 16px;
	text-align: center;
}

.results-grid__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 480px));
	justify-content: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media screen and (max-width: 1279px) {
	.results-grid__list {
		grid-template-columns: repeat(2, minmax(0, 480px));
		justify-content: center;
		margin-inline: auto;
	}
}

@media screen and (max-width: 600px) {
	.results-grid__list {
		grid-template-columns: 1fr;
		box-sizing: border-box;
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}
}

.results-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"media"
		"tag"
		"title";
	margin: 0;
}

.results-card--no-tag {
	grid-template-areas:
		"media"
		"title";
}

.results-card {
	position: relative;
	cursor: pointer;
}

.results-card__link-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	cursor: pointer;
}

.results-card__body {
	position: relative;
	z-index: 2;
	pointer-events: none; /* クリックは全面リンクへ */
}

.results-card__body * {
	pointer-events: none;
}

.results-card__fx {
	grid-column: 1;
	grid-row: 1 / -1;
}

.results-card__media {
	display: block;
	grid-area: media;
	color: inherit;
	text-decoration: none;
}

.results-card__thumb {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: none;
	aspect-ratio: 480 / 273;
	margin-bottom: 12px;
	background: #dce8f4;
	box-sizing: border-box;
	border: 1px solid rgba(22, 52, 109, 0.2);
}

@media screen and (max-width: 1279px) {
	.results-card__thumb {
		max-width: 480px;
	}
}

/* /cblog 相当のシンプルなホバーに寄せる */
.results-page .results-card__fx {
	display: none;
}

.results-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.results-card__meta {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 16px;
}

@media screen and (max-width: 600px) {
	.results-card__meta {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
}

.results-card__tag {
	position: relative;
	display: inline-flex;
	grid-area: tag;
	z-index: 3;
	pointer-events: auto; /* フィルター用ボタンは押せる */
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	width: fit-content;
	height: 34px;
	margin: 0;
	padding: 0 16px 0 calc(var(--results-card-tag-arrow-w) + 10px);
	border: none;
	border-radius: 0;
	background: var(--color-brand-navy);
	color: #fff;
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.06em;
	cursor: pointer;
	overflow: hidden;
	text-decoration: none;
	white-space: nowrap;
}

@media screen and (max-width: 600px) {
	.results-card__tag {
		font-size: 14px;
	}
}

.results-card__tag::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: var(--results-card-tag-arrow-w);
	height: var(--results-card-tag-arrow-h);
	background: linear-gradient(180deg, #8fa4c4 0%, #6b84a8 100%);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transform: translateY(-50%);
}

.results-card__tag--static {
	cursor: default;
}

.results-card__tag-text {
	position: relative;
	z-index: 1;
	white-space: nowrap;
}

.results-card__tag:focus-visible {
	outline: 2px solid var(--color-brand-navy);
	outline-offset: 2px;
}

.results-card__title {
	grid-area: title;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

@media screen and (max-width: 600px) {
	.results-card__title {
		margin-top: 8px;
	}
}

.results-card__title-text {
	color: var(--color-main);
	text-decoration: none;
}

.results-card__title-text:hover {
	text-decoration: none;
}

.results-panel__sentinel {
	width: 100%;
	height: 1px;
}

.results-panel__more {
	margin-top: 40px;
	text-align: center;
}

.results-panel__more[hidden] {
	display: none;
}

.results-panel__more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 280px;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 1px solid var(--color-brand-navy);
	border-radius: 0;
	background: #fff;
	color: var(--color-brand-navy);
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.09em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.results-panel__more-btn:hover {
	background: var(--color-brand-navy);
	color: #fff;
}

.results-panel__more-btn:focus-visible {
	outline: 2px solid var(--color-brand-navy);
	outline-offset: 2px;
}

.results-panel__pagination[hidden] {
	display: none;
}

.results-panel__pagination .topics-pagination {
	box-sizing: border-box;
	padding: 0;
}

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

.results-panel__pagination .topics-pagination__item {
	display: flex;
}

.results-panel__pagination .topics-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	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;
}

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

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

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

@media screen and (max-width: 600px) {
	.results-page {
		--results-sticky-top: var(--site-header-sticky-height, 0px);
	}

	.results-primary-nav__inner {
		padding-inline: 16px;
	}

	.results-primary-nav.is-stuck {
		border-top-color: transparent;
		box-shadow: none;
	}

	.results-primary-nav__btn {
		max-width: none;
		padding: 0 8px;
		font-size: 18px;
		font-weight: 400;
		letter-spacing: 0.13em;
	}

	.results-page__inner {
		padding-top: 16px;
	}

	.results-page__sections {
		gap: 48px;
	}

	.results-grid__list {
		box-sizing: border-box;
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}

	.results-card {
		box-sizing: border-box;
		width: 100%;
		max-width: 480px;
		margin-inline: auto;
	}
}

@media screen and (max-width: 374px) {
	.results-primary-nav__btn {
		padding: 0 4px;
		font-size: 14px;
		letter-spacing: 0.08em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.results-primary-nav,
	.results-primary-nav__btn,
	.results-section__filter {
		transition: none;
	}

	.results-loader__beam,
	.results-loader__hatch {
		animation: none;
	}
}
