/* Replace the raster headings on the white case cards with crisp, selectable text.
   Positions follow the 1818 × 3000 desktop and 1789 × 7178 mobile artwork. */
.renovation-cases {
  container-type: inline-size;
}

.renovation-cases > picture,
.renovation-cases > picture > img {
  display: block;
}

.case-heading {
  position: absolute;
  left: 20%;
  width: 60%;
  height: 2.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #242424;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 2.42vw;
  font-size: 2.42cqw;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}

.case-heading--1 { top: 13.5%; }
.case-heading--2 { top: 41.266667%; }
.case-heading--3 { top: 68.966667%; }

.case-heading__highlight {
  color: #cd5c12;
  background: linear-gradient(transparent 72%, #fff500 72%);
}

.case-heading__mobile-word { display: none; }

@media (max-width: 767px) {
  .case-heading {
    left: 9%;
    width: 82%;
    height: 4.68%;
    flex-direction: column;
    font-size: 6.6vw;
    font-size: 6.6cqw;
    line-height: 1.48;
  }

  .case-heading--1 { top: 15.94%; }
  .case-heading--2 { top: 43.1%; }
  .case-heading--3 { top: 70.17%; }

  .case-heading__desktop-word { display: none; }
  .case-heading__mobile-word { display: inline; }
}
