/* ============================================
   施工実績 一覧・詳細ページ
   （トップページの色・書体をそのまま使う）
   ============================================ */

.wk-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 150px 40px 110px;
}

/* --- 見出し --- */
.wk-head { margin-bottom: 52px; }
.wk-head-lead {
  margin-top: 24px;
  font-size: 13.5px; line-height: 2.4; color: var(--text2);
  max-width: 620px;
}

/* --- 施工内容での絞り込み --- */
.wk-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 0; margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.wk-filter-btn {
  padding: 13px 22px;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--text2); text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}
.wk-filter-btn:hover { color: var(--gold); }
.wk-filter-btn.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* --- 一覧のカード --- */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.wk-card {
  display: block; text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: border-color 0.35s, transform 0.35s;
}
.wk-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.wk-card-img {
  /* 写真は縦横どちらもあるため 4:3。横長写真がほぼ切れずに収まる比率。 */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.wk-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.wk-card:hover .wk-card-img img { transform: scale(1.05); }
.wk-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: 0.3em; color: var(--muted);
}
.wk-card-body { padding: 24px 24px 28px; }
.wk-card-cat {
  font-family: 'Jost', sans-serif; font-size: 9.5px;
  letter-spacing: 0.35em; color: var(--gold);
  margin-bottom: 12px;
}
.wk-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 19px; line-height: 1.5; color: var(--white);
  font-weight: 400;
}
.wk-card-meta {
  margin-top: 12px;
  font-size: 11.5px; color: var(--text2); letter-spacing: 0.05em;
}

.wk-empty {
  padding: 60px 0; color: var(--text2); font-size: 13px;
}

/* --- ページ送り --- */
.wk-page .navigation.pagination {
  margin-top: 60px;
  display: flex; justify-content: center;
}
.wk-page .nav-links {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.wk-page .page-numbers {
  min-width: 42px; padding: 11px 14px;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text2); text-decoration: none;
  font-family: 'Jost', sans-serif; font-size: 12px;
  transition: all 0.3s;
}
.wk-page .page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.wk-page .page-numbers.current {
  background: var(--gold); border-color: var(--gold); color: var(--bg);
}

.wk-back { margin-top: 72px; text-align: center; }

/* ============================================
   詳細ページ
   ============================================ */
.wk-single-head {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.wk-single-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.35; font-weight: 400;
  color: var(--white);
  margin-bottom: 28px;
}

/* 場所・完工・施工内容の表 */
.wk-spec { display: flex; flex-direction: column; gap: 1px; max-width: 620px; }
.wk-spec-row { display: flex; gap: 0; background: var(--border); }
.wk-spec dt {
  flex: 0 0 120px;
  background: var(--bg2);
  padding: 13px 18px;
  font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: 0.3em; color: var(--gold);
}
.wk-spec dd {
  flex: 1;
  background: var(--bg2);
  padding: 13px 18px;
  font-size: 13px; color: var(--text2);
}

/* こだわり・説明文 */
.wk-body {
  max-width: 720px; margin-bottom: 56px;
  font-size: 14px; line-height: 2.5; color: var(--text2);
}
.wk-body p + p { margin-top: 22px; }

/* 写真一覧 */
.wk-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.wk-shot { margin: 0; }
.wk-shot a { display: block; overflow: hidden; background: var(--surface); }
.wk-shot img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.wk-shot a:hover img { transform: scale(1.03); }
.wk-shot figcaption {
  margin-top: 10px;
  font-size: 11.5px; line-height: 1.8; color: var(--muted);
}

/* 前後の実績への移動 */
.wk-single-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-top: 72px; padding-top: 36px;
  border-top: 1px solid var(--border);
}
.wk-single-nav-side { flex: 1; min-width: 0; }
.wk-single-nav-right { text-align: right; }
.wk-single-nav-side a {
  font-size: 12px; color: var(--text2); text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.wk-single-nav-side a:hover { color: var(--gold); }

.wk-cta {
  margin-top: 72px; padding: 48px 32px;
  text-align: center;
  background: var(--bg2); border: 1px solid var(--border);
}
.wk-cta-text {
  font-size: 13.5px; color: var(--text2); margin-bottom: 26px; line-height: 2;
}

/* ============================================
   トップページ内の抜粋エリア
   ============================================ */
.wk-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.wk-latest-more { text-align: center; }

/* ============================================
   モバイル
   ============================================ */
@media (max-width: 900px) {
  .wk-grid { grid-template-columns: repeat(2, 1fr); }
  .wk-latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wk-page { padding: 110px 20px 80px; }
  .wk-head { margin-bottom: 36px; }
  .wk-filter { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .wk-filter-btn { padding: 12px 15px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .wk-grid { grid-template-columns: 1fr; gap: 20px; }
  .wk-latest-grid { grid-template-columns: 1fr; gap: 20px; }
  .wk-card-body { padding: 20px; }
  .wk-card-title { font-size: 17px; }

  .wk-single-head { margin-bottom: 32px; }
  .wk-spec dt { flex: 0 0 88px; padding: 11px 12px; font-size: 9px; letter-spacing: 0.2em; }
  .wk-spec dd { padding: 11px 12px; font-size: 12.5px; }
  .wk-body { font-size: 13px; line-height: 2.2; margin-bottom: 40px; }
  .wk-gallery { grid-template-columns: 1fr; gap: 14px; }

  .wk-single-nav { flex-direction: column; gap: 18px; }
  .wk-single-nav-side, .wk-single-nav-right { text-align: center; width: 100%; }
  .wk-cta { padding: 32px 20px; }
}
