/* =========================
   施工事例ページ
========================= */
.works-hero {
  padding: 110px 20px 58px;
  background:
    linear-gradient(135deg, rgba(222, 246, 251, 0.82), rgba(226, 253, 242, 0.78));
}

.works {
  background: #ffffff;
}

.works-light {
  background:
    linear-gradient(135deg, rgba(222, 246, 251, 0.82), rgba(226, 253, 242, 0.78));
}

.works-section-heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.works-section-heading h2 {
  margin-bottom: 14px;
  color: #23443f;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
}

.works-section-heading p {
  color: #607b78;
  font-weight: 600;
  line-height: 1.9;
}

/* =========================
   通常の施工事例カード
========================= */
.works-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.works-card {
  background: #ffffff;
  border: 1.5px solid rgba(92, 188, 178, 0.5);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  transform: none;
  transition: none;
}

.works-card:hover {
  box-shadow: none;
  transform: none;
}

.works-card picture,
.before-after-item picture {
  width: 100%;
  display: block;
}

.works-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: none;
  transition: none;
}

.works-card:hover img {
  transform: none;
}

.works-card-body {
  padding: 18px 16px 20px;
  border-top: 1.5px solid rgba(92, 188, 178, 0.35);
  text-align: center;
}

.works-card h3 {
  margin: 0;
  color: #23443f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works-card p,
.works-category {
  display: none;
}

/* =========================
   内装 Before / After
========================= */
.before-after-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.before-after-card {
  background: #ffffff;
  border: 1.5px solid rgba(92, 188, 178, 0.55);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  transform: none;
  transition: none;
}

.before-after-card:hover {
  box-shadow: none;
  transform: none;
}

.before-after-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #ffffff;
}

.before-after-item {
  position: relative;
  min-width: 0;
}

.before-after-item.before {
  border-right: 1.5px solid rgba(92, 188, 178, 0.45);
}

.before-after-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;

  min-width: 62px;
  padding: 5px 10px;

  text-align: center;
  border-radius: 999px;

  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.before .before-after-label {
  background: #7d918d;
}

.after .before-after-label {
  background: #55cbb0;
}

.before-after-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: none;
  transition: none;
}

.before-after-card:hover .before-after-item img {
  transform: none;
}

.before-after-text {
  padding: 18px 16px 20px;
  border-top: 1.5px solid rgba(92, 188, 178, 0.4);
  text-align: center;
}

.before-after-text h3 {
  margin: 0;
  color: #23443f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.before-after-text p {
  display: none;
}

/* =========================
   お問い合わせ誘導
========================= */
.company-contact-section {
  padding: 96px 28px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-contact-box {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 8% 15%, rgba(208, 245, 250, 0.72), transparent 36%),
    linear-gradient(135deg, rgba(228, 249, 252, 0.82), rgba(226, 253, 242, 0.78));
  border: 1.5px solid rgba(92, 188, 178, 0.45);
  border-radius: 30px;
  box-shadow: none;
  transform: none;
  transition: none;
}

.company-contact-box:hover {
  box-shadow: none;
  transform: none;
}

.company-contact-box h2 {
  margin-bottom: 16px;
  color: #23443f;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
}

.company-contact-box p:not(.section-label) {
  color: #607b78;
  font-weight: 600;
  line-height: 1.9;
}

.company-contact-buttons {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.company-back-link {
  min-height: 48px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #238b78;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(92, 188, 178, 0.45);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: background-color 0.25s ease;
}

.company-back-link:hover {
  transform: none;
  background: #ffffff;
}

/* =========================
   動き・浮き上がり無効
========================= */
.works-card,
.before-after-card,
.company-contact-box {
  box-shadow: none;
  transform: none;
}

.works-card *,
.before-after-card *,
.company-contact-box * {
  box-shadow: none;
}

.works-card:hover,
.before-after-card:hover,
.company-contact-box:hover,
.works-card:hover img,
.before-after-card:hover img {
  transform: none !important;
  box-shadow: none !important;
}

/* =========================
   タブレット表示
========================= */
@media (max-width: 1000px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   スマホ表示
========================= */
@media (max-width: 700px) {
  .works-hero {
    padding: 80px 18px 44px;
  }

  .works-section-heading {
    margin-bottom: 34px;
  }

  .works-section-heading h2 {
    font-size: 30px;
  }

  .works-section-heading p {
    font-size: 15px;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .before-after-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after-item.before {
    border-right: 1.5px solid rgba(92, 188, 178, 0.45);
    border-bottom: none;
  }

  .before-after-item img {
    height: 190px;
  }

  .before-after-label {
    top: 10px;
    left: 10px;
    min-width: 62px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .before-after-text h3 {
    font-size: 18px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .works-card {
    border-radius: 20px;
  }

  .works-card img {
    height: 160px;
  }

  .works-card-body {
    padding: 14px 10px 16px;
  }

  .works-card h3 {
    font-size: 14px;
  }

  .company-contact-section {
    padding: 72px 20px;
  }

  .company-contact-box {
    padding: 40px 22px;
  }

  .company-contact-buttons {
    flex-direction: column;
  }

  .company-contact-buttons .button-primary,
  .company-back-link {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 430px) {
  .before-after-item img {
    height: 175px;
  }

  .before-after-label {
    top: 9px;
    left: 9px;
    min-width: 58px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .before-after-text h3 {
    font-size: 17px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .works-card img {
    height: 145px;
  }

  .works-card-body {
    padding: 13px 8px 15px;
  }

  .works-card h3 {
    font-size: 13px;
  }
}

/* エクステリアだけPCで4列 */
@media (min-width: 1001px) {
  .exterior-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
