.hero-case-study {
  color: white;
  height: 400px;
  position: relative;
}
.hero-case-study::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--primary-color);
  opacity: 0.2;
}
.hero-case-study .cont {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 56px;
  height: 100%;
  z-index: 1;
}

.hero-case-study .cont .white-box {
  background-color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 0px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 418px;
  height: 80px;
  transform: translateY(50%);
  color: var(--primary-color);
}
.hero-case-study .label {
  font-size: var(--body-S);
  line-height: var(--line-height-140);
  font-weight: 600;
  margin: 0;
  margin-bottom: 8px;
}

.hero-case-study .hero-title {
  font-size: var(--hero-title-size);
  color: var(--hero-title-color);
  line-height: var(--line-height-120);
  margin-block: 8px;
  margin: 0;
  margin-bottom: 8px;
  font-weight: 800;
}

.hero-case-study .hero-subtitle {
  font-size: var(--default-font-size);
  color: var(--hero-title-color);
  font-weight: 400;
  line-height: var(--line-height-175);
  margin: 0;
  margin-bottom: 8px;
}

.hero-case-study .white-box img {
  margin-right: 32px;
  object-fit: contain;
  height: 100%;
  filter: grayscale(1);
}

.hero-case-study .category-box {
  padding-left: 32px;
  border-left: 1px solid var(--secondary-color);
}
.hero-case-study .category-box p {
  margin: 0;
  font-size: var(--body-S);
  line-height: var(--line-height-140);
  font-weight: 400;
}
.hero-case-study .category-box p:first-of-type {
  font-weight: 700;
}

.related-case-studies-module > .subtitle {
  display: none;
}
@media (max-width: 768px) {
  .hero-case-study .category-box {
    padding-left: 16px;
  }
  .hero-case-study .white-box img {
    margin-right: 16px;
  }
  .hero-case-study .cont .white-box {
    width: min(418px, 100%);
  }
}
