@charset "utf-8";
/* 施工実績ページだけの指定（2026-10-10）。site.css → acc.css → pages.css → p-works.css の順に読む。
   色は site.css の変数だけ。写真は 4:3 の枠に 4:3 の写真なので、切り抜きも起きない */

/* 一覧の区画: 02 に区画の見出しが無いので、頭の写真のすぐ下に置く */
.psec--works{margin-top:96px}

/* 絞り込みの札は JS が動くときだけ出す（無いときは 23 件ぜんぶが並ぶだけ） */
.filter{display:none}
.js .filter{display:flex}
.filter button{transition:background-color .3s var(--ease),color .3s var(--ease)}
.filter button:hover{background:var(--card)}
.filter button[aria-pressed="true"]:hover{background:var(--dark)}
.filter button:focus-visible,.wcard__hit:focus-visible,.lb button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* 実績のカード: カード全体が拡大表示のリンク */
.wcard{position:relative}
.wcard[hidden]{display:none}
.wcard .gcard__ph{position:relative}
.wcard__zoom{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:2px;background:var(--dark);color:#fff;font-size:16px;line-height:1}
.wcard__hit{position:absolute;inset:0;z-index:1;border-radius:4px}
.wcard:hover .gcard__ph img{transform:scale(1.06)}
.wcard:hover .gcard__title{color:var(--key-dark)}
.gcard__title{transition:color .3s var(--ease)}

/* 注記 */
.wnote{margin-top:48px;padding-top:20px;border-top:1px solid var(--rule);font-size:14px;line-height:1.8;color:var(--muted)}

/* ---------- 拡大表示 ----------
   写真は元の縦横比のまま、画面に収まる最大の大きさで見せる（width・height とも auto、上限だけ決める） */
body.lb-open{overflow:hidden}
.lb{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;
  padding:56px 72px 24px;background:rgba(22,38,29,.96);color:#fff}
.lb[hidden]{display:none}
.lb__fig{display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:100%;margin:0;min-height:0}
.lb__fig img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100% - 96px);
  flex:0 1 auto;min-height:0;object-fit:contain;border-radius:4px}
.lb__cap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 16px;
  margin-top:16px;max-width:100%;font-size:14px;line-height:1.5;text-align:center}
.lb__cat{padding:2px 10px;border:1px solid currentColor;border-radius:2px;font-weight:700;white-space:nowrap}
.lb__title{font-size:18px;font-weight:500}
.lb__place,.lb__count{color:var(--dark-soft);white-space:nowrap}
.lb button{position:absolute;display:flex;align-items:center;justify-content:center;padding:0;
  border:1px solid rgba(255,255,255,.24);border-radius:2px;background:var(--dark);color:#fff;
  font:inherit;line-height:1;cursor:pointer;transition:background-color .3s var(--ease)}
.lb button:hover{background:var(--key)}
.lb button[hidden]{display:none}
.lb__x{top:12px;right:16px;width:40px;height:40px;font-size:16px}
.lb__nav{top:50%;width:44px;height:72px;margin-top:-36px;font-size:32px;padding-bottom:6px}
.lb__nav--prev{left:14px}
.lb__nav--next{right:14px}

@media (max-width:768px){
  .psec--works{margin-top:64px}
  .filter{margin-bottom:32px}
  .wnote{margin-top:40px}
  /* スマホ: 写真を幅いっぱいに。前後のボタンは写真の下の左右へ */
  .lb{padding:60px 12px 76px}
  .lb__fig img{max-height:calc(100% - 120px)}
  .lb__title{flex-basis:100%;font-size:16px}
  .lb__nav{top:auto;bottom:12px;width:64px;height:48px;margin-top:0}
  .lb__nav--prev{left:12px}
  .lb__nav--next{right:12px}
}
@media (prefers-reduced-motion:reduce){
  .wcard:hover .gcard__ph img{transform:none}
}
