.works-archive {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
/* ==================================================
   導入文
================================================== */
.works-archive-intro {
  margin: 0 0 24px;
}
.works-archive-intro h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.5;
  color: #222;
}
.works-archive-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}
/* ==================================================
   絞り込み
================================================== */
.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.works-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid #087b13;
  border-radius: 3px;
  color: #087b13;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.works-filter-button:hover,
.works-filter-button.is-active {
  background: #087b13;
  color: #fff;
}
/* ==================================================
   施工事例一覧
================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  width: 100%;
}
/* ==================================================
   カード
================================================== */
.works-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.works-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}
.works-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
/* ==================================================
   写真
================================================== */
.works-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
}
.works-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.works-card:hover .works-card-image img {
  transform: scale(1.025);
}
.works-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #777;
  font-size: 14px;
}
/* ==================================================
   カード本文
================================================== */
.works-card-body {
  padding: 14px 15px 15px;
}
/* ==================================================
   地域
================================================== */
.works-card-area {
  margin: 0 0 7px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
/* ==================================================
   工事内容
================================================== */
.works-card-type {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}
.works-card-type span {
  display: inline-block;
  padding: 3px 7px;
  background: #f0f6f0;
  border-radius: 2px;
  color: #087b13;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
/* ==================================================
   タイトル
================================================== */
.works-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #222;
}
/* ==================================================
   抜粋
================================================== */
.works-card-excerpt {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}
/* ==================================================
   詳しく見る
================================================== */
.works-card-more {
  margin-top: 10px;
  color: #087b13;
  font-size: 13px;
  font-weight: 600;
}
/* ==================================================
   ページ送り
================================================== */
.works-pagination {
  margin: 34px 0 10px;
}
.works-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.works-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
}
.works-pagination .page-numbers.current {
  background: #087b13;
  border-color: #087b13;
  color: #fff;
}
/* ==================================================
   施工事例なし
================================================== */
.works-empty {
  padding: 30px 0;
  text-align: center;
  color: #666;
}
/* ==================================================
   タブレット
================================================== */
@media screen and (max-width: 1000px) {
  .works-archive {
    max-width: 900px;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
}
/* ==================================================
   スマートフォン
================================================== */
@media screen and (max-width: 767px) {
  .works-archive {
    width: 100%;
    padding: 0 15px;
  }
  /* 導入文 */
  .works-archive-intro {
    margin-bottom: 20px;
  }
  .works-archive-intro h1 {
    margin-bottom: 9px;
    font-size: 22px;
  }
  .works-archive-intro p {
    font-size: 14px;
    line-height: 1.8;
  }
  /* 絞り込み */
  .works-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
  }
  .works-filter-button {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 13px;
  }
  /* 一覧 */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* カード */
  .works-card-body {
    padding: 14px 14px 15px;
  }
  .works-card-title {
    font-size: 16px;
  }
  .works-card-excerpt {
    font-size: 13px;
  }
  .works-card-area {
    font-size: 12px;
  }
  .works-card-type span {
    font-size: 11px;
  }
}