@charset "UTF-8";
/* =========================================================
   works.css — 施工事例 一覧（施工事例_PC 295:3683）
   ヒーロー icatch_施工事例 3208:23029 / card_works グリッド 3027:21405 / pager 3049:12030
   ========================================================= */

/* ---------- ヒーロー（1440x652） ---------- */
.p-works-hero {
	position: relative;
	min-height: 652px;
	overflow: hidden;
}
.p-works-hero__inner { padding-top: 33px; padding-bottom: 40px; }
.p-works-hero__main { width: 610px; max-width: 100%; margin-left: -1px; }
.p-works-hero__head {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-top: 27px;
}
.p-works-hero__title-wrap { flex: 0 0 183px; font-weight: 700; line-height: 1.5; }
.p-works-hero__en { font-size: 16px; letter-spacing: .06em; color: var(--c-blue); }
.p-works-hero__title { font-size: 36px; font-weight: 700; letter-spacing: .02em; color: var(--c-text); line-height: 1.5; }
.p-works-hero__lead { flex: 1 1 0; max-width: 397px; font-size: 14px; line-height: 1.75; color: var(--c-text); }

/* 右: ピックアップスライダー（Figma 3208:23029 / 3516:37086: x=819, y=197, 554x380。絞り込みフォームと上下を揃える） */
.p-works-hero__slider {
	position: absolute;
	top: 197px;
	left: calc(50% + 99px);
	width: 554px;
	height: 380px;
	overflow: hidden;
}
.p-works-hero__track { height: 100%; }
.p-works-hero__slide {
	position: relative;
	width: 554px;
	height: 380px;
	overflow: hidden;
	background: #e6ebf1;
}
.p-works-hero__img { width: 100%; height: 100%; object-fit: cover; }
.p-works-hero__more.c-more {
	position: absolute;
	left: 21px;
	bottom: 21px;
	gap: 9px;
	width: 162px;
	padding: 5px 10px;
	border: .5px solid var(--c-bg-gray);
	border-radius: 4px;
	background: rgba(82, 82, 82, .3);
	color: var(--c-bg-gray);
	font-weight: 500;
	transition: background-color .2s;
}
.p-works-hero__more.c-more:hover { background: rgba(82, 82, 82, .55); }

/* ---------- 絞り込みフォーム ---------- */
.p-works-filter {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 36px;
}
.p-works-filter__row {
	display: grid;
	grid-template-columns: 115px minmax(0, 1fr);
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}
.p-works-filter__row--word { margin-top: 1px; }
/* Figma Frame 355: 建物種別の行だけ x+2px（ラベル151 / セレクト266） */
.p-works-filter__row--building { margin: 0 -2px 0 2px; }
.p-works-filter__label {
	padding: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: var(--c-text-sub);
}
.p-works-filter__row--word .p-works-filter__label { padding-left: 2px; line-height: 1.45; }
.p-works-filter__row--usage { align-items: start; }
.p-works-filter__row--usage { grid-template-columns: 120px minmax(0, 1fr); }
.p-works-filter__chips { gap: 9px; }
/* 用途: 10 個を超えた分は「続きを見る」で開く */
.p-works-filter__chips-wrap:not(.is-open) .c-chip.is-more { display: none; }
.p-works-filter__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-blue);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.p-works-filter__more::after {
	content: "";
	width: 7px;
	height: 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s;
}
.p-works-filter__chips-wrap.is-open .p-works-filter__more::after { transform: translateY(2px) rotate(-135deg); }
.p-works-filter__more:hover { opacity: .75; }
/* 表示件数（Figma 5465:14630） */
.p-works-filter__row--per .p-works-filter__select::after { right: 31px; }

.p-works-filter__select select,
.p-works-filter__input {
	width: 100%;
	height: 44px;
	padding: 9px 42px 9px 15px;
	border: 1px solid rgba(90, 107, 123, .2);
	border-radius: 4px;
	background: var(--c-white);
	color: var(--c-blue);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}
.p-works-filter__select::after { right: 28px; }
.p-works-filter__input { padding-right: 15px; -webkit-appearance: none; appearance: none; }
.p-works-filter__input::placeholder { color: var(--c-blue); opacity: .2; }
.p-works-filter__input:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 1px; }

.p-works-filter__btns {
	display: grid;
	grid-template-columns: 406px 186px;
	justify-content: space-between;
	margin-top: -8px;
}
.p-works-filter__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 49px;
	border: 1px solid rgba(90, 107, 123, .2);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	transition: opacity .2s, background-color .2s;
}
.p-works-filter__btn--submit { background: var(--c-blue); color: var(--c-white); }
.p-works-filter__btn--submit:hover { opacity: .85; }
.p-works-filter__btn--reset { background: var(--c-white); color: var(--c-blue); }
.p-works-filter__btn--reset:hover { background: var(--c-blue-pale); }

/* ---------- 一覧 ---------- */
.p-works-list { padding: 28px 0 120px; } /* pager 下端 → CTA 上端（Figma は 319px だが空きすぎるため 120px に詰める） */
.p-works-list__grid {
	display: grid;
	grid-template-columns: repeat(3, 354px);
	justify-content: space-between;
	row-gap: 39.5px;
	max-width: 1139px;
}
.p-works-list__pager { margin-top: 97.5px; }
.p-works-list .c-pager__list { gap: 8.8px; }
.p-works-list .c-pager__item {
	min-width: 38.4px;
	height: 44.6px;
	padding: 0 14.7px;
	border-radius: 5.88px;
	font-size: 16.17px;
}
.p-works-list .c-pager__item--next,
.p-works-list .c-pager__item--prev { min-width: 34.4px; }
.p-works-list .c-pager__item--dots { padding: 0 4px; min-width: 0; }

.p-works-list__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 80px 20px;
	border-radius: 4px;
	background: var(--c-bg-gray);
	text-align: center;
}
.p-works-list__empty-title { font-size: 18px; font-weight: 700; color: var(--c-text); }
.p-works-list__empty-text { font-size: 14px; color: var(--c-text-sub); margin-bottom: 12px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1200px) {
	.p-works-list__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; }
	.p-works-list .c-card-works { max-width: none; }
}
@media (max-width: 1024px) {
	.p-works-hero { min-height: 0; }
	.p-works-hero__main { width: auto; margin-left: 0; }
	.p-works-hero__slider { position: relative; top: auto; left: auto; right: auto; width: auto; height: auto; margin-top: 40px; }
	.p-works-hero__slide { width: 100%; height: auto; aspect-ratio: 554 / 380; }
	.p-works-list { padding-bottom: 120px; }
	.p-works-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* =========================================================
   SP（≤767px）施工事例_SP 3368:27116
   順序: パンくず → タイトル群 3390:27811 → 導入文 3390:27404 → ピックアップスライダー 3390:27291
         → 絞り込み Group 302 3390:27460 → blog-card_sp 一覧 → pager 3368:26795
   PC の DOM（__main 内に breadcrumb/head/form, 横にスライダー）はそのまま、__main を contents 化して order で並べ替え
   ========================================================= */
@media (max-width: 767px) {
	.p-works-filter__row--building { margin: 0; }
	.p-works-hero__inner { display: flex; flex-direction: column; padding-top: 16px; padding-bottom: 0; }
	.p-works-hero__main { display: contents; }
	.p-works-hero__breadcrumb { order: 1; }
	.p-works-hero__breadcrumb .c-breadcrumb__list { font-size: 11px; }
	.p-works-hero__head { order: 2; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 23px; }
	.p-works-hero__title-wrap { flex: none; }
	.p-works-hero__en { font-size: 11.14px; line-height: 14px; letter-spacing: .06em; }
	.p-works-hero__title { margin-top: 5px; font-size: 20px; line-height: 21px; letter-spacing: .02em; }
	.p-works-hero__lead { max-width: none; font-size: 14px; line-height: 1.75; }

	/* スライダー: 355x266、右端まではみ出し、スライド間隔0 */
	.p-works-hero__slider { order: 3; margin: 16px calc(var(--gutter) * -1) 0 0; --slider-gap-sp: 0px; }
	.p-works-hero__slide { width: calc(100vw - var(--gutter)); max-width: 100%; height: auto; aspect-ratio: 355 / 266; }
	.p-works-hero__more.c-more {
		left: 11px;
		top: auto;
		bottom: 9px;
		width: auto;
		gap: 4px;
		padding: 2px 4px;
		border: 0;
		background: var(--c-white);
		color: var(--c-blue);
		font-size: 13px;
		font-weight: 700;
		line-height: normal;
	}
	.p-works-hero__more.c-more:hover { background: var(--c-white); }

	/* 絞り込み: ラベル16px → 15px → 入力44px、行間17px */
	.p-works-filter { order: 4; gap: 17px; margin-top: 26px; }
	.p-works-filter__row,
	.p-works-filter__row--usage { display: flex; flex-direction: column; align-items: stretch; gap: 15px; }
	.p-works-filter__row--word { margin: 0; }
	.p-works-filter__row--word .p-works-filter__label { padding-left: 0; line-height: normal; }
	.p-works-filter__row--word .p-works-filter__label br { display: none; }
	.p-works-filter__select::after { right: 19px; }
	.p-works-filter__chips { gap: 9px; }
	.p-works-filter__btns { grid-template-columns: minmax(0, 1fr) 102px; gap: 10px; margin-top: 0; }

	/* 一覧: カード333幅・間隔18px / pager 上56px / CTA まで91px */
	.p-works-list { padding: 74px 0 91px; }
	.p-works-list__grid { grid-template-columns: minmax(0, 1fr); row-gap: 18px; max-width: none; }
	.p-works-list__pager { margin-top: 56px; }
	.p-works-list__pager:empty { display: none; }
	.p-works-list .c-pager__list { justify-content: center; }
	.p-works-list__empty { padding: 48px 16px; }
	.p-works-list__empty-title { font-size: 16px; }
}
