@charset "utf-8";
/* ------------------------------------------------------------------
 * WORKS一覧（/l-design/case/）
 *
 * クラス名はすべて wk- 始まり。共通CSS（/css-rn/common.css・level2.css）が
 * .categoryList .categoryBox のような一般名を持っているため、照明設計トップを
 * ld- にしたのと同じ理由で分ける（設計 §9.1・検証 2-03）。
 *
 * デザインは未確定（#45 カード画像の比率・#46 ＃タグ表示・#55 絞り込みの
 * 見せ方）。確定までのあいだ崩れずに使える形にしてある。
 * ------------------------------------------------------------------ */

.wk-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

/* ------------------------------------------------------------------
 * リンクの文字色
 *
 * 共通CSS（/css-rn/reset.css）に
 *     a:link, a:visited, a:hover, a:active { color: inherit }
 * がある。a:link は「型1つ＋擬似クラス1つ」で、.wk-chip のような
 * **クラス1つの指定より強い**ため、色だけが親からの継承（#222）に
 * 戻されてしまう（選択中の条件が黒地に黒文字になっていた）。
 *
 * こちらも a を付けて同じ強さにすると、**あとに読み込まれるぶん勝つ。**
 * 色の指定だけをここにまとめる。レイアウトは下のそれぞれの箇所で持つ。
 * ------------------------------------------------------------------ */

a.wk-tag             { color: #333; }
a.wk-tag.is-on       { color: #fff; }
a.wk-chip            { color: #fff; }
a.wk-clear           { color: #666; }
a.wk-sort            { color: #666; }
a.wk-more__btn       { color: #222; }
a.wk-more__btn:hover { color: #fff; }
a.wk-card__link      { color: #222; }
.wk-crumb a          { color: #7A828C; }

/* ------------------------------------------------------------------
 * パンくずと見出し（見本 v5 の .crumb と h1.pt）
 *
 * 共通の naviBox は使わない。パンくずを上に小さく置き、その下に
 * 英字の小見出し＋「設計事例」を左寄せで出す。値は見本のまま
 * ------------------------------------------------------------------ */

.wk-crumb ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 16px 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.85;
	color: #7A828C;
}

.wk-crumb li + li::before {
	content: "＞";
	margin: 0 6px;
}

.wk-crumb a {
	text-decoration: none;
}

.wk-crumb a:hover {
	color: #003A7A;
	text-decoration: underline;
}

.wk-pagetitle {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .04em;
	color: #1C1C1C;
}

.wk-pagetitle__en {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	color: #003A7A;
}

/* ------------------------------------------------------------------
 * 絞り込み（Figma「事例の絞り込み」363:2398 に合わせる・2026-11-16）
 *
 * 地の色と枠は付けない。分類ごとに点線で区切り、見出し（107px）の右に
 * ＃タグを文字だけで並べる。タグは枠も地も無く、押したときの形（角丸）だけ持つ。
 * Figma にあるのは「通常」の見た目だけなので、選択中・押せない・マウスを
 * 乗せたときは、この形のまま色だけで分ける。
 * ------------------------------------------------------------------ */

.wk-filter {
	margin: 8px 0 0;
	padding: 26px 30px 30px;
	border-radius: 3px;
}

/* 開閉のつまみは出さない（PC もスマートフォンも・設計 §9.4） */
.wk-filter__toggle {
	display: none;
}

.wk-axis {
	display: flex;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px dashed #b7b7b7;
}

.wk-axis:first-child {
	padding-top: 0;
}

.wk-axis:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.wk-axis__label {
	flex: 0 0 107px;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.45;
	color: #1f2329;
}

.wk-axis__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1 1 auto;
	min-width: 0;
}

/* #55 デザイン確定までは畳まない（FILTER_ROWS_MAX = 0）。
   畳むときは is-clamp が付き、3行ぶんで止まる */
.wk-axis.is-clamp .wk-axis__list {
	max-height: 110px;
	overflow: hidden;
}

.wk-tag {
	display: inline-block;
	padding: 5px 10px;
	font-size: 13px;
	line-height: 1.45;
	color: #1f2329;
	white-space: nowrap;
	text-decoration: none;
	border-radius: 18px;
	transition: background-color .15s, color .15s;
}

a.wk-tag:hover {
	background: #f0f1f3;
	text-decoration: none;
}

.wk-tag.is-on {
	color: #fff;
	background: #1f2329;
}

a.wk-tag.is-on:hover {
	background: #4a4f56;
}

/* いまの条件で0件。表示したまま押せない（要件 §6.2 の 03） */
.wk-tag.is-off {
	color: #b7b7b7;
	cursor: default;
}

/* .wk-tag__count（タグの横の件数）は 261029 に出すのをやめた。
   件数は数えたままで、0件をグレーにする判定にだけ使っている（parts/filter.php） */

/* ------------------------------------------------------------------
 * 選択中の条件
 * ------------------------------------------------------------------ */

/* 未選択のときも「なし」で段を出して高さを取っておく（parts/selected.php）。
   中身が空になることはもう無いが、念のため残す */
.wk-selected:empty {
	display: none;
}

/* チップと同じ高さ（上下 4px・13px）にして、選んだときに段の高さが変わらないようにする */
.wk-selected__none {
	display: inline-flex;
	align-items: center;
	padding: 4px 0;
	font-size: 13px;
	color: #999;
}

.wk-selected__label {
	margin: 20px 0 8px;
	font-size: 12px;
	color: #777;
}

.wk-selected__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wk-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-size: 13px;
	color: #fff;
	text-decoration: none;
	background: #333;
	border-radius: 999px;
}

.wk-chip:hover {
	background: #555;
	text-decoration: none;
}

.wk-chip__axis {
	font-size: 11px;
	opacity: .7;
}

.wk-chip__x {
	font-size: 15px;
	line-height: 1;
}

/* 読み上げ用。目では見せない */
.wk-chip__assistive {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wk-clear {
	display: inline-block;
	padding: 4px 12px;
	font-size: 13px;
	color: #666;
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * 件数・並び替え
 * ------------------------------------------------------------------ */

.wk-sortbar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 28px 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e3e3df;
}

.wk-count {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.wk-count strong {
	font-size: 22px;
	color: #222;
}

.wk-sorts {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wk-sort {
	font-size: 13px;
	color: #666;
	text-decoration: none;
}

a.wk-sort:hover {
	text-decoration: underline;
}

.wk-sort.is-on {
	color: #222;
	font-weight: bold;
}

/* ------------------------------------------------------------------
 * カード
 * ------------------------------------------------------------------ */

.wk-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wk-card__link {
	display: block;
	color: #222;
	text-decoration: none;
}

.wk-card__link:hover {
	text-decoration: none;
}

.wk-card__photo {
	display: block;
	overflow: hidden;
	background: #eee;
}

/* #45 カード画像の比率。body のクラス1つで切り替わる（設計 §9.2） */
.wk-ratio-wide .wk-card__photo   { aspect-ratio: 16 / 10; }
.wk-ratio-square .wk-card__photo { aspect-ratio: 1 / 1; }

.wk-card__photo img,
.wk-card__noimage {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

/* 縦長の写真は切り抜かずに収め、左右の余白を黒にする（印は case_list.js が付ける） */
.wk-card__photo.is-tall {
	background: #000;
}

.wk-card__photo.is-tall img {
	object-fit: contain;
}

.wk-card__noimage {
	background: repeating-linear-gradient(-45deg, #eee, #eee 8px, #e6e6e6 8px, #e6e6e6 16px);
}

.wk-card__link:hover img {
	transform: scale(1.04);
}

.wk-card__body {
	display: block;
	padding: 12px 2px 0;
}

.wk-card__title {
	display: block;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.6;
}

.wk-card__meta {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #777;
}

/* #46 カードの＃タグ。出すかどうかは SHOW_CARD_TAGS（設計 §9.2） */
.wk-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;	/* 2行以上になったときの行の間（2026-11-05 のご指示で詰めた） */
	margin-top: 8px;
}

.wk-card__tag {
	font-size: 11px;
	line-height: 1.5;	/* 親の行間を引き継ぐと、折り返したときに間が空きすぎる */
	color: #8a8a82;
}

/* ------------------------------------------------------------------
 * もっと見る・0件
 * ------------------------------------------------------------------ */

.wk-more {
	margin-top: 48px;
	text-align: center;
}

.wk-more__btn {
	display: inline-block;
	min-width: 280px;
	padding: 14px 32px;
	font-size: 14px;
	color: #222;
	text-decoration: none;
	border: 1px solid #333;
	border-radius: 999px;
	transition: background-color .15s, color .15s;
}

.wk-more__btn:hover {
	color: #fff;
	background: #333;
	text-decoration: none;
}

.wk-more__rest {
	margin-left: 6px;
	font-size: 12px;
	opacity: .7;
}

.wk-empty {
	margin: 60px 0;
	text-align: center;
	font-size: 15px;
	color: #777;
}

/* 差し替え中。真っ白にはせず、薄くするだけ */
.wk-wrap.is-loading .wk-grid,
.wk-wrap.is-loading .wk-filter {
	opacity: .55;
	pointer-events: none;
}

/* ------------------------------------------------------------------
 * タブレット・スマートフォン
 * ------------------------------------------------------------------ */

@media screen and (max-width: 767px) {

	.wk-wrap {
		padding: 0 16px 60px;
	}

	/* 分類（軸）ごとに開閉し、どれも閉じた状態から始める（2026-11-13 のご指示）。
	   見た目は Figma「モバイル絞り込み」435:571 に合わせる（2026-11-16）。
	   分類ごとに上へ点線を引き、見出しの右に＋／−（線2本・#043a7a）を置く */
	.wk-filter {
		margin-top: 20px;
		padding: 0;
		border-radius: 0;
	}

	.wk-axis {
		display: block;
		padding: 12px 0 20px;
		background: #fff;
		border-top: 1px dashed #b7b7b7;
		border-bottom: 0;
	}

	.wk-axis:first-child {
		padding-top: 12px;
	}

	.wk-axis:last-child {
		padding-bottom: 20px;
		border-bottom: 1px dashed #b7b7b7;
	}

	.wk-axis__label {
		display: block;
		margin-bottom: 8px;
		font-size: 14px;
	}

	.wk-axis__list {
		gap: 8px;
	}

	/* 開閉（is-acc は index.php と case_list.js が付ける。JS が動かないときは
	   付かないので、全部開いたまま使える） */
	.wk-filter.is-acc .wk-axis,
	.wk-filter.is-acc .wk-axis:last-child {
		padding: 0;
	}

	.wk-filter.is-acc .wk-axis__label {
		position: relative;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		min-height: 56px;
		margin: 0;
		padding: 12px 32px 12px 0;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	/* ＋／−。横線は ::before、縦線は ::after。開いたら縦線を消して − にする */
	.wk-filter.is-acc .wk-axis__label::before,
	.wk-filter.is-acc .wk-axis__label::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 0;
		width: 15px;
		height: 1px;
		margin-top: -.5px;
		background: #043a7a;
	}

	.wk-filter.is-acc .wk-axis__label::after {
		transform: rotate(90deg);
		transition: opacity .15s;
	}

	.wk-filter.is-acc .wk-axis.is-open .wk-axis__label::after {
		opacity: 0;
	}

	.wk-filter.is-acc .wk-axis__list {
		display: none;
	}

	.wk-filter.is-acc .wk-axis.is-open .wk-axis__list {
		display: flex;
		padding-bottom: 20px;
	}

	.wk-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}

	.wk-sortbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.wk-more__btn {
		min-width: 0;
		width: 100%;
	}
}

@media screen and (max-width: 560px) {

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

/* ------------------------------------------------------------------
 * タブレットで、共通のナビ（追従するものも）を1行に収める
 *
 * ナビは 1160px 固定の中に、メニューの並びと右の「製品情報DL／
 * Webカタログ／BIMデータDL」を横に並べている（共通CSS /css-rn/common.css）。
 * PC ではぎりぎり1行に収まるが、iPad では文字の幅が少し広く、DL の
 * ボタンが下の行に落ちて写真にかぶっていた。追従するナビは「TOP」が
 * 1つ増えるので、さらに入らない。
 *
 * タッチ操作の端末のときだけ、メニューの間を「空いている幅に合わせて
 * 均等に」並べ、DL のボタンと必ず1行に並ぶようにする。
 * PC（マウス操作）の見た目は変えない。
 * ------------------------------------------------------------------ */

@media screen and (min-width: 768px) and (hover: none) and (pointer: coarse) {

	.mgm > nav {
		display: flex;
		align-items: flex-start;
	}

	.mgm > nav .links {
		display: flex;
		flex: 1 1 auto;
		justify-content: space-between;
		min-width: 0;
		margin-right: 24px;
	}

	.mgm > nav .links > li {
		padding-right: 0;
		white-space: nowrap;
	}

	/* 追従するナビの「TOP」。共通CSSの inline-block を flex の中でも出す */
	.mgmFixedBox .mgm > nav .links > li.mgmToTop {
		display: block;
	}

	.mgm > nav .dl_btns {
		flex: none;
		float: none;
	}
}

/* タブレットの縦向きでは、ヘッダー（ロゴの段とナビ）の左右に余白を入れる。
   縦向きはページ（1160px）がちょうど画面の幅になり、ロゴやナビが画面の端に
   くっつく。ページの幅は変えずに、枠の内側に余白を取る。
   24px は、パンくずや写真の左端と同じ位置。横向きは画面のほうが広く、
   もとから左右が空くので何もしない */
@media screen and (min-width: 768px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {

	.for_pc.header .innerBox,
	.mgm > nav {
		box-sizing: border-box;
		padding-left: 24px;
		padding-right: 24px;
	}

	/* 余白を取ったぶんメニューの使える幅が狭くなり、iPad では項目の間が
	   ほとんど空かず、どこで区切れるのか分かりにくかった。縦向きのときだけ
	   文字を一回り小さくして、項目の間を空ける */
	.mgm > nav .links > li {
		font-size: 13px;
	}

	.mgmFixedBox .mgm > nav .links > li {
		font-size: 12px;
	}
}
