/* ==============================
  施工事例（ACF）装飾用
============================== */

/* タイトル＋Point＋アイキャッチ：2カラム */
.case-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 50px;
}

/* 左カラム（タイトル＋Point） */
.case-text-block {
  flex: 1;
  max-width: 50%;
  padding-left: 5%;
}

/* タイトル */
.news-entry-title {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}
.news-entry-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #4CAF50;
}

/* Pointエリア */
.case-point {
  background: #f9fdf7;
  border-left: 5px solid #4CAF50;
  padding: 20px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Pointラベル */
.point-label {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 10px;
}

/* 右カラム（アイキャッチ） */
.case-main-image {
  aspect-ratio: 3 / 2; /* 横3 : 縦2 に固定（お好みで調整OK） */
  overflow: hidden;
  max-width: 50%;
  flex: 1;
}
.case-main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* アイキャッチ画像をカバーで表示 */
.case-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BEFORE/AFTERラッパー */
.before-after-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.ba-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.ba-before,
.ba-after {
  width: 48%;
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
}
.ba-after {
  margin-left: auto;
}
.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.ba-before:hover img,
.ba-after:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.ba-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: opacity 0.3s ease;
}
.ba-before:hover .ba-label,
.ba-after:hover .ba-label {
  opacity: 0.8;
}

/* 施工情報テーブル */
.case-info {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.case-info th,
.case-info td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
}
.case-info th {
  width: 20%;
  background: #f9f9f9;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .case-header {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }
  .case-text-block,
  .case-main-image {
    max-width: 100%;
    padding-left: 0;
  }
  .ba-item {
    flex-direction: column;
  }
  .ba-before,
  .ba-after {
    width: 100%;
  }
  .case-info th,
  .case-info td {
    font-size: 14px;
    display: block;
    width: 100%;
  }
  .case-info tr {
    display: block;
    margin-bottom: 15px;
  }
}

/* ==============================
ここまで
============================== */


/* ==============================
  施工事例アーカイブ装飾用
============================== */

.case-grid{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px; margin:24px 0 32px;
}
.case-card{background:#fff;border:1px solid #eee;border-radius:8px;overflow:hidden}
.case-card__link{display:block;color:inherit;text-decoration:none}
.case-card__thumb{aspect-ratio:3/2;overflow:hidden;background:#f6f6f6}
.case-card__thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.case-card__noimg{width:100%;height:100%;background:linear-gradient(135deg,#f4f7f9,#e9eef2)}
.case-card__body{padding:12px 14px}
.case-card__title{font-weight:700;line-height:1.45;font-size:16px;margin:0 0 6px}
.case-card__date{font-size:12px;color:#666}
.case-card__excerpt{font-size:14px;color:#444;margin:6px 0 0}
.case-card:hover .case-card__thumb img{transform:scale(1.03)}

@media (max-width: 980px){ .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width: 600px){ .case-grid{grid-template-columns:1fr} }
.case-pager{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.case-pager .page-numbers{padding:6px 10px;border:1px solid #ddd;border-radius:4px}
.case-pager .current{background:#222;color:#fff;border-color:#222}

/* ==============================
ここまで
============================== */
