@charset "utf-8";
/* 設置事例フォトギャラリー（一覧＋絞り込み＋ポップアップ）
   ・既存 main.css / article.css と干渉しないよう全クラス pf- で名前空間化
   ・ポップアップ中身の文字装飾は既存 article.css（.articleCont article ...）を流用 */

.listCont{
	position: relative;
}

/*===== 絞り込み（形状×用途×素材の3軸AND） =====*/
.pf-filter{
	max-width: 1000px;
	margin: 0 auto 36px;
}
.pf-filter-group{
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed #ddd;
}
.pf-filter-group:first-child{
	border-top: 1px dashed #ddd;
}
.pf-filter-label{
	flex: 0 0 48px;
	font-size: 16px;
	font-weight: bold;
	color: #d93535;
	padding-top: 8px;
}
.pf-sort{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
	margin: 0;
}
.pf-sort li button{
	display: block;
	font-size: 13.5px;
	color: #555;
	text-align: center;
	padding: 7px 16px;
	background: #f3f3f3;
	border: 1px solid #d6d6d6;
	border-radius: 4px;
	cursor: pointer;
}
.pf-sort li button:hover{
	border-color: #d93535;
	color: #d93535;
}
.pf-sort li button.active{
	background: #d93535;
	color: #fff;
	border-color: #d93535;
	font-weight: bold;
}
/* SPボトムシート関連（≤480のみ表示） */
.pf-filter-trigger{
	display: none;
}
.pf-filter-overlay{
	display: none;
}
.pf-sheet-head,
.pf-sheet-apply{
	display: none;
}

/*===== 一覧カード =====*/
.pf-list{
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pf-list > li{
	width: calc(100% / 3);
	margin-bottom: 30px;
}
.pf-card{
	position: relative;
	display: block;
	height: 100%;
	margin: 0 10px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}
.pf-card:hover{
	opacity: 0.85;
}
.pf-thumb img{
	width: 100%;
	display: block;
}
.pf-info{
	padding: 8px 18px 16px;
}
.pf-info time{
	color: #a6a6a6;
	font-size: 13px;
	font-weight: bold;
	line-height: 2em;
}
.pf-info h2{
	color: #333;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4em;
	margin: 2px 0 8px;
	word-break: break-all;
}
.pf-info .pf-spec{
	font-size: 12.5px;
	color: #666;
	line-height: 1.5em;
	margin: 0;
}
/* NEWリボン（現行踏襲：黄色） */
.pf-new::before{
	content: "NEW";
	display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
	background: #dbbf00;
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
	width: 55px;
	height: 55px;
	position: absolute;
	left: 0;
	top: -10px;
	z-index: 5;
}


/*===== もっと見る =====*/
.pf-more{
	text-align: center;
	margin: 14px 0 50px;
}
.pf-more a{
	display: inline-block;
	min-width: 280px;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	padding: 14px 30px;
	background: #332e6e;
	border-radius: 5px;
	text-decoration: none;
	cursor: pointer;
}
.pf-more a:hover{
	opacity: 0.85;
}

/*===== ポップアップ =====*/
/* common.css が main に付けたピンクの scrollbar-color を継承しないよう既定色に戻す */
.pf-overlay{
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.8);
	z-index: 10000;/* ヘッダー(9999)・SP絞り込みトリガー(1080)より前面に。モーダルなので最前面に置く */
	overflow-y: auto;
	padding: 30px 14px;
	scrollbar-color: auto;
}
.pf-overlay.open{
	display: block;
}
.pf-modal{
	position: relative;
	max-width: 920px;
	margin: 0 auto;
}
.pf-modal .articleCont{
	margin: 0;
}
.pf-modal-close{
	position: absolute;
	top: -34px;
	right: 0;
	width: 30px;
	height: 30px;
	cursor: pointer;
	border: none;
	background: none;
	z-index: 2;
}
.pf-modal-close::before,
.pf-modal-close::after{
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 3px;
	background: #fff;
}
.pf-modal-close::before{
	transform: rotate(-45deg);
}
.pf-modal-close::after{
	transform: rotate(45deg);
}

/* ポップアップ中身の2カラム（文字装飾は article.css 流用） */
.detail2col{
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.detail2col .col-img{
	flex: 1 1 50%;
	min-width: 0;
}
.detail2col .col-text{
	flex: 1 1 45%;
	min-width: 0;
}
.detail2col .col-img .imgBox:last-child{
	margin-bottom: 0;
}
.relatedLinks{
	margin-top: 30px;
}
.pf-list-cta{
	max-width: 420px;
	margin: 40px auto 0;
	text-align: center;
}
.pf-list-cta a{
	display: block;
	background-color: #d93535;
	color: #fff;
	padding: 20px 15px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.2em;
	letter-spacing: 0.08em;
	text-align: center;
	text-decoration: none;
	border: 1px solid #d93535;
	border-radius: 5px;
	box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.pf-list-cta a:hover{
	background-color: #fff;
	color: #d93535;
}

.pf-modal .articleCont article{
	background: #fff;
  padding: 40px 30px;
}
.pf-modal .articleCont article img{
	max-width: 100%;
	height: auto;
}
.pf-modal .articleCont article h2.pf-detail-title{
	margin: 0 0 20px;
	padding: 0 0 20px;
	font-size: 23px;
	line-height: 1.7em;
	color: #333;
	border-bottom: 1px solid #eaeaea;
}
.pf-modal .articleCont article h2.pf-detail-title:before{
	content: none;
}

.pf-modal .articleCont article h3{
	margin:0 0 25px;
	padding-bottom:10px;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.2em;
	color: #333;
	display: flex;
	align-items: center;
	column-gap: 10px;
	border-bottom: 4px solid #f4f3f2;
}
.pf-modal .articleCont article h3:before{
	content: "";
	display: block;
	background: url(../_images/icon_chochin.gif) no-repeat;
	width: 20px;
	height: 25px;
	background-size: contain;
	flex-shrink: 0;
}
.pf-modal .articleCont article h4{
	padding: 0 7px 3px;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.4em;
	color: #333;
	display: inline-block;
	position: relative;
	border-bottom: 5px solid #e6bb68;
	border-radius: 2px;
}
.pf-modal .articleCont article h4:before{
	content: none;
}
.pf-modal .articleCont article h5{
	margin-top: 15px;
	font-size: 16px;
	font-weight: bold;
	color: #d93535;
}
.pf-modal .articleCont article dl.spec-list{
	margin: 20px 0 0;
}
.pf-modal .articleCont article dl.spec-list > div{
	display: flex;
	border-bottom: 1px solid #eaeaea;
}
.pf-modal .articleCont article dl.spec-list > div:first-child{
	border-top: 1px solid #eaeaea;
}
.pf-modal .articleCont article dl.spec-list dt{
	flex: 0 0 110px;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: bold;
	color: #333;
	background: #f7f6f4;
}
.pf-modal .articleCont article dl.spec-list dd{
	flex: 1 1 auto;
	margin: 0;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.8em;
}
.detail2col .col-img > :first-child,
.detail2col .col-text > :first-child{
	margin-top: 0;
}

/*===== レスポンシブ =====*/
@media screen and ( max-width: 768px ){
	.pf-filter{
		margin: 0 20px 30px;
		
	}
	.pf-filter-group{
		flex-direction: column;
		gap: 6px;
	}
	.pf-filter-label{
		flex: 0 0 30px;
		padding-top: 0;
	}
	.pf-list > li{
		width: 50%;
	}
	/* ポップアップは1カラム縦積み */
	.detail2col{
		flex-direction: column;
		gap: 0;
	}
	.detail2col .col-img,
	.detail2col .col-text{
		flex: 1 1 100%;
	}
	/* 仕様リストはラベル上・値下に縦積み */
	.pf-modal .articleCont article dl.spec-list > div{
		flex-direction: column;
	}
	.pf-modal .articleCont article dl.spec-list dt{
		flex: none;
		padding: 4px 14px;
	}
	.pf-modal .articleCont article dl.spec-list dd{
		padding: 4px 14px 12px;
	}
	/* 枠余白をモバイルで軽く（article.css の .articleCont article{padding:5%} を新スコープへ移植） */
	.pf-modal .articleCont article{
		padding: 5%;
	}
}

@media screen and ( max-width: 480px ){
	.pf-list > li{
		width: 50%;
	}
	.pf-card{
		margin: 0 5px;
	}
	.pf-info{
		padding: 6px 10px 12px;
	}
	.pf-info h2{
		font-size: 12px;
	}
	.pf-info .pf-spec{
		font-size: 11.5px;
	}
	/* 案件タイトルをモバイルで縮小（article.css の h1{font-size:20px} を新タグ h2.pf-detail-title へ移植） */
	.pf-modal .articleCont article h2.pf-detail-title,
	.pf-modal .articleCont article h3,
	.pf-modal .articleCont .linkBtn a{
		font-size: 16px;
	}
	.pf-modal .articleCont article h2.pf-detail-title{
		padding-bottom: 10px;
	}

	/* 絞り込み：下部固定ボタン＋ボトムシート */
	.listCont{
		padding-bottom: 84px;
	}
	.pf-filter-trigger{
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
		bottom: 16px;
		z-index: 1080;
		min-width: 220px;
		font-size: 15px;
		font-weight: bold;
		color: #fff;
		background: #332e6e;
		border: none;
		border-radius: 30px;
		padding: 14px 34px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
		cursor: pointer;
	}
	.pf-filter-trigger::before{
		content: "≡";
		font-size: 18px;
		line-height: 1;
	}
	.listCont:has(.pf-overlay.open) .pf-filter-trigger{
		display: none;
	}
	.pf-filter-overlay{
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 1090;
		display: none;
	}
	.pf-filter-overlay.open{
		display: block;
	}
	.pf-filter{
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		max-width: none;
		margin: 0;
		height: 55vh;
		background: #fff;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
		z-index: 1100;
		transform: translateY(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		padding: 0 16px 16px;
	}
	.pf-filter.open{
		transform: translateY(0);
	}
	.pf-filter-group:first-child{
		border-top: none;
	}
	.pf-sheet-head{
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		background: #fff;
		padding: 14px 2px;
		border-bottom: 1px solid #eee;
		font-weight: bold;
		font-size: 16px;
		z-index: 2;
	}
	.pf-sheet-head button{
		border: none;
		background: none;
		font-size: 14px;
		color: #888;
		cursor: pointer;
	}
	.pf-sheet-apply{
		display: block;
		position: sticky;
		bottom: 0;
		background: #fff;
		padding: 12px 0 4px;
	}
	.pf-sheet-apply button{
		width: 100%;
		font-size: 16px;
		font-weight: bold;
		color: #fff;
		background: #d93535;
		border: none;
		border-radius: 6px;
		padding: 14px;
		cursor: pointer;
	}
	.pf-list-cta{
		width: 90%;
	}
	.pf-list-cta a{
		font-size: 16px;
	}
}
