body {
  background: #fff9f2;
}

.cases-page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 40px;
  background: #fff9f2;
}

.cases-hero {
  overflow: hidden;
  background: #fff9f2;
}

.cases-hero__inner {
  position: relative;
  min-height: 180px;
  padding: 27px 0 22px;
}

.cases-hero__copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 365px);
  margin: 0 auto;
}

.cases-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ff7a1a;
  background: #fff0df;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.cases-hero h1 {
  margin: 12px 0 0;
  color: #161616;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.cases-hero p {
  max-width: 184px;
  margin: 10px 0 0;
  color: #342d28;
  font-size: 11px;
  line-height: 1.55;
}

.cases-hero__art {
  position: absolute;
  top: 6px;
  right: max(0px, calc((100% - 393px) / 2));
  width: 146px;
  height: 170px;
  object-fit: cover;
}

.cases-list {
  display: grid;
  width: min(calc(100% - 28px), 365px);
  gap: 12px;
  margin: 0 auto;
  padding: 10px 0 0;
}

.case-card {
  position: relative;
  display: flex;
  height: 143px;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fefefe;
}

.case-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.case-card h2 {
  margin: 0;
  color: #27221e;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.case-card p {
  margin: 6px 0 0;
  color: #77706a;
  font-size: 12px;
  line-height: 18px;
}

.case-card span {
  display: inline-flex;
  width: max-content;
  height: 20px;
  align-items: center;
  margin-top: auto;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.case-card img {
  position: absolute;
  right: 12px;
  bottom: -17px;
  width: 108px;
  height: 144px;
  object-fit: contain;
}

.case-card--health span {
  color: #397ee8;
  background: #edf4ff;
}

.case-card--recruitment span {
  color: #3dbd89;
  background: #eaf9f1;
}

.case-card--product span {
  color: #ff8a32;
  background: #fff3e4;
}

@media (min-width: 560px) {
  .cases-hero__inner {
    display: grid;
    width: min(calc(100% - 64px), 768px);
    min-height: 320px;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
    margin: 0 auto;
    padding: 56px 0;
  }

  .cases-hero__copy {
    width: auto;
    max-width: 460px;
    margin: 0;
  }

  .cases-hero__eyebrow {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cases-hero h1 {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 42px);
    line-height: 1.18;
  }

  .cases-hero p {
    max-width: 430px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.8;
  }

  .cases-hero__art {
    top: 12px;
    right: 0;
    width: clamp(240px, 38vw, 300px);
    height: auto;
  }

  .cases-list {
    width: min(calc(100% - 64px), 768px);
    gap: 24px;
    padding: 48px 0 64px;
  }

  .case-card {
    height: 220px;
    padding: 26px 24px;
    border-radius: 20px;
  }

  .case-card h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .case-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 22px;
  }

  .case-card span {
    height: 24px;
    padding: 0 11px;
    font-size: 12px;
  }

  .case-card img {
    right: 28px;
    bottom: -28px;
    width: 182px;
    height: 242px;
  }
}

@media (min-width: 1024px) {
  .cases-page {
    padding-bottom: 96px;
  }

  .cases-hero__inner {
    width: min(768px, calc(100% - 64px));
    min-height: 280px;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    margin: 0 auto;
    padding: 64px 0 40px;
  }

  .cases-hero__copy {
    width: auto;
    max-width: 520px;
    margin: 0;
  }

  .cases-hero__eyebrow {
    height: 26px;
    padding: 0 12px;
    font-size: 12px;
  }

  .cases-hero h1 {
    margin-top: 16px;
    font-size: 40px;
  }

  .cases-hero p {
    max-width: 460px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
  }

  .cases-hero__art {
    position: static;
    width: 260px;
    height: auto;
    flex: 0 0 auto;
  }

  .cases-list {
    width: min(768px, calc(100% - 64px));
    gap: 20px;
    padding-top: 24px;
  }

  .case-card {
    height: 220px;
    padding: 28px 24px;
  }

  .case-card h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .case-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 22px;
  }

  .case-card span {
    height: 24px;
    padding: 0 12px;
    font-size: 12px;
  }

  .case-card img {
    right: 28px;
    bottom: -28px;
    width: 182px;
    height: 242px;
  }
}
