@charset "UTF-8";

.case {
  background-color: #F4EFE7;
  font-family: "Noto Sans JP", sans-serif;
  margin: 20px 0 0;
  padding: 48px;
}
@media (min-width: 1280px) {
  .case {
    margin: 48px 0 -50px;
  }
}
.case .heading {
  color: #05C756;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}
.case-inner {
  display: flex;
  justify-content: center;
  margin: 20px  auto 0;
  width: 800px;
}
.case img {
  height: 320px;
  width: 320px;
}
.case-text {
  justify-content: center;
  background-image: url('https://rsvia.co.jp/wp-content/themes/rsvia/lp/function/img/paper.jpg');
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 320px;
  padding: 0 40px;
}
.case h3 {
  color: #05C756;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}
.case h3 span {
  color: #333;
  font-size: 20px;
}
.case h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .03em;
  margin: 16px 0 8px;
}
.case p {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 2;
}
@media screen and (max-width: 768px) {
  .case {
    margin: 40px 0 0;
    padding: 40px 0;
  }
  .case .heading {
    font-size: 22px;
  }
  .case-inner {
    display: block;
    margin: 15px  auto 0;
    width: 85%;
  }
  .case img {
    height: auto;
    width: 100%;
  }
  .case-text {
    height: auto;
    padding: 20px;
    width: 100%;
  }
  .case h3 {
    font-size: 23px;
    line-height: 1.3;
  }
  .case h3 span {
    font-size: 19px;
  }
  .case h4 {
    font-size: 17px;
    margin: 16px 0 4px;
  }
  .case p {
    font-size: 16px;
    margin-top: 0;
  } 
}
