/*==================================================
section topCase
===================================*/
.topCase {
  position: relative;
  padding-top: 0;
  padding-bottom: 4rem;
  background: #f7f7f7;
}

.topCase__section {
  position: relative;
}

.topCase__section::before {
  left: -29rem;
  width: 25.2rem;
  height: 18.5rem;
  background: url(../img/top_case01.png) no-repeat center center/contain;
}

.topCase__section::after {
  right: -29rem;
  width: 25.2rem;
  height: 18.5rem;
  background: url(../img/top_case02.png) no-repeat center center/contain;
}

.topCase__attention {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: center;
}

.topCase__title,
.topCase__text,
.topCases__link {
  padding-right: 2.5rem;
  padding-left: 2.5rem;
}

.topCases__link {
  color: #7fd113;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.7142857143;
  letter-spacing: 0.14em;
}

.topCases__link span {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  gap: 0.9rem;
  padding-right: 1.5rem;
}

.topCases__link span::before {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #7fd113;
  content: "";
}

.topCases__link span::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 0;
  border-top: solid 2px #7fd113;
  border-right: solid 2px #7fd113;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 0.5rem;
  margin: auto;
}

.topCase__slider {
  margin-top: 4rem;
}

.topCase__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  padding-bottom: 1.4rem;
  gap: 0.2rem;
  background: #fff;
}

.topCase__image {
  position: relative;
  width: 100%;
  height: 20rem;
}

.topCase__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: inherit;
}

.topCase__before {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 8.7rem;
  height: 8.7rem;
  border: 3px solid #fff;
  border-radius: 50%;
}

.topCase__before img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 50%;
}

.topCase__category {
  display: grid;
  position: absolute;
  bottom: -1.35rem;
  left: 1.1rem;
  place-items: center;
  width: 9.7rem;
  min-height: 2.7rem;
  border-radius: 50px;
  background: #7fd113;
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding-bottom: 0.3rem;
}

.topCase__title {
  font-weight: 600;
  margin-top: 1.5rem;
}

.topCase__btn {
  margin-top: 8rem;
  color: #000000;
  text-align: center;
}

.topCase__btn a {
  display: grid;
  position: relative;
  place-items: center;
  width: 80%;
  min-height: 5rem;
  margin-inline: auto;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  border: 3px solid #fff;
  border-radius: 50px;
  background: #fee402;
  font-weight: 500;
  letter-spacing: 0.1em;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.topCase__btn a::after {
  position: absolute;
  top: 50%;
  right: 2rem;
  width: 3rem;
  height: 1.5rem;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: url(../img/arrow_btn.png) no-repeat;
  background-size: contain;
  content: "";
}

.topCase__bottoms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.topCase__pagination {
  bottom: -5rem;
}

.topCase__page {
  width: 12px;
  height: 12px;
  border: 1px solid #7fd113;
  background: #fff;
  opacity: 1;
}

.topCase__page.is-active {
  -webkit-transform: initial;
  transform: initial;
  background: #7fd113;
  opacity: 1;
}

.topCase__bottom_image {
  width: 18rem;
  position: absolute;
  bottom: 0;
  right: 15%;
}

@media screen and (max-width: 767px) {
  .topCase__bottom_image {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .topCase {
    padding-top: 0;
    padding-bottom: 6.5rem;
  }

  .topCase::before {
    height: 10rem;
  }

  .topCase__section::before,
  .topCase__section::after {
    position: absolute;
    top: -4rem;
    content: "";
  }

  .topCase__section::before {
    left: -40rem;
  }

  .topCase__section::after {
    right: -40rem;
  }

  .topCase__attention {
    font-size: 1.4rem;
    line-height: 2.1428571429;
  }

  .topCase__item {
    padding-bottom: 2.9rem;
    gap: 1.4rem;
    border-radius: initial;
  }

  .topCase__image {
    border-radius: initial;
  }

  .topCase__before {
    width: 9.7rem;
    height: 9.7rem;
  }

  .topCase__category {
    font-size: 1.4rem;
  }

  .topCase__bottoms {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
}

/*==================================================
section topCase END
===================================*/
