/* ============================================
   事例詳細ページ
   ============================================ */

.case-page {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* パンくず */
.case-breadcrumb {
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
}

.case-breadcrumb a {
  color: #f4a261;
  text-decoration: none;
}

.case-breadcrumb a:hover {
  text-decoration: underline;
}

/* ヒーロー */
.case-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 40px 24px 24px;
}

.case-hero__category {
  display: inline-block;
  background: #f4a261;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.case-hero__title {
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  margin: 0;
}

/* 施工詳細テーブル */
.case-detail {
  padding: 40px 20px;
}

.case-detail__heading {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a2e;
  border-left: 4px solid #f4a261;
  padding-left: 12px;
  margin-bottom: 20px;
}

.case-detail__table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.case-detail__table th,
.case-detail__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  text-align: left;
}

.case-detail__table th {
  background: #1a1a2e;
  color: #fff;
  width: 120px;
  font-weight: bold;
}

.case-detail__table td {
  background: #fff;
  color: #333;
}

/* 施工写真ギャラリー */
.case-gallery {
  padding: 0 20px 40px;
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.case-gallery__item {
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
}

.case-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CTA */
.case-cta {
  margin: 40px 16px 0;
  position: relative;
  z-index: 1;
  background: none;
  padding: 0;
}

.case-cta__sub {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}

/* 戻るリンク */
.case-back {
  text-align: center;
  padding: 32px 20px 0;
}

.case-back__link {
  color: #f4a261;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}

.case-back__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .case-hero__title {
    font-size: 20px;
  }

  .case-gallery__grid {
    grid-template-columns: 1fr;
  }

  .case-gallery__item img {
    height: 220px;
  }
}
