@charset "UTF-8";
/* =========================================================
   施工事例（archive-works.php）
   カテゴリー絞り込み → カードグリッド → CTA
   ========================================================= */


.works-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.wfbtn {
  padding: 8px 20px;
  border: 1px solid #d3dbe6;
  border-radius: 100px;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  transition: .3s;
  background: #fff;
}

.wfbtn.on,
.wfbtn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wcard {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 58, 114, .1);
  transition: transform .35s;
}

.wcard:hover { transform: translateY(-6px); }

.wcard .wpic {
  aspect-ratio: 4 / 3;
  background: var(--ph);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.wcard .wpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

/* 拡大できる画像 */
.wcard .wpic[data-zoom] {
  cursor: zoom-in;
}

.wcard .wpic[data-zoom]:hover img {
  transform: scale(1.06);
}

/* 拡大アイコン（虫めがね） */
.wcard .wzoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 28, 61, .7);
  color: #fff;
  font-size: 15px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.wcard .wpic[data-zoom]:hover .wzoom {
  opacity: 1;
  transform: translateY(0);
}

.wcard .wbody { padding: 18px 20px; }

.wcard .wcat {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  color: #fff;
  background: var(--blue);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: .05em;
}

.wcard .wtitle {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 10px 0 4px;
  transition: color .3s;
}

a.wtitle:hover { color: var(--blue); }

.wcard .wcomment {
  font-size: 13.5px;
  color: var(--gray);
}

.works-empty {
  color: var(--gray);
  font-size: 15px;
}


/* =========================================================
   施工事例 詳細（single-works.php）
   ========================================================= */
.works-single .wcat {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  color: #fff;
  background: var(--blue);
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: .05em;
}

.ws-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.5;
  margin: 14px 0 24px;
}

.ws-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(18, 58, 114, .12);
}

.ws-thumb[data-zoom] { cursor: zoom-in; }

.ws-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s;
}

.ws-thumb[data-zoom]:hover img { transform: scale(1.03); }

.ws-thumb .wzoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 28, 61, .7);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.ws-thumb[data-zoom]:hover .wzoom { opacity: 1; }

.ws-body {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 2;
}

.ws-body p { margin-bottom: 16px; }
.ws-body img { border-radius: 8px; margin: 12px 0; }

.ws-back {
  margin-top: 40px;
  text-align: center;
}

.ws-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  transition: background .3s, color .3s;
}

.ws-back-btn:hover { background: var(--navy); color: #fff; }
.ws-back-btn i { transition: transform .3s; }
.ws-back-btn:hover i { transform: translateX(-4px); }


/* =========================================================
   レスポンシブ
   ========================================================= */
@media screen and (max-width: 768px) {
  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .works-filter { gap: 8px; margin-bottom: 24px; }
  .wfbtn { padding: 7px 16px; font-size: 12px; }
}
