/*==================================================
pages case
===================================*/
.case {
  padding-top: 12.5rem;
  padding-bottom: 6rem;
  background: #f8f8f8;
}

@media screen and (max-width: 480px) {
  .case {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

.case__inner {
  max-width: 910px;
  margin-inline: auto;
}

@media screen and (max-width: 480px) {
  .case__images {
    grid-template-columns: repeat(1, 1fr);
  }
}

.case__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8.9rem;
  position: relative;
  margin-top: 3.4rem;
}

@media screen and (max-width: 480px) {
  .case__images {
    grid-template-columns: repeat(1, 1fr);
    gap: 4.9rem;
  }
}

.case__images::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.9rem;
  height: 6.9rem;
  transform: translate(-50%, -50%);
  background: url(../img/arrow_case.png) no-repeat center center/contain;
  content: "";
}

@media screen and (max-width: 480px) {
  .case__images::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.case__image {
  position: relative;
}

.case__image:first-of-type::before {
  content: "BEFORE";
  width: 9.6rem;
  height: 3.4rem;
  background-color: #dedede;
  color: #000000;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.08rem;
  line-height: 3.4rem;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
}

.case__image:last-of-type::before {
  content: "AFTER";
  width: 9.6rem;
  height: 3.4rem;
  background-color: #00a55e;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.08rem;
  line-height: 3.4rem;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
}

.case__content {
  margin-top: 3rem;
  padding: 4.6rem 6rem;
  background: #fff;
}

@media screen and (max-width: 480px) {
  .case__content {
    margin-top: 2rem;
    padding: 2rem;
  }
}

.case__title {
  font-family: "Noto Serif JP", serif;
  position: relative;
  padding-bottom: 1rem;
  padding-left: 1.2em;
  border-bottom: 1px solid #00a55e;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 0.08rem;
}

@media screen and (max-width: 480px) {
  .case__title {
    font-size: 1.6rem;
  }
}

.case__title::before {
  position: absolute;
  top: 35%;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border-radius: 50%;
  background: #00a55e;
  content: "";
}

@media screen and (max-width: 480px) {
  .case__title::before {
    width: 0.8rem;
    height: 0.8rem;
  }
}

.case__text {
  margin-top: 2.7rem;
  font-size: 1.4rem;
  line-height: 3.2rem;
  letter-spacing: 0.06rem;
}

@media screen and (max-width: 480px) {
  .case__text {
    margin-top: 1.5rem;
  }
}

/*==================================================
pages case END
===================================*/
