.ranking-items {
  margin: 15px -1.25rem -1.25rem;
  padding: 0 0.5rem 0.5rem;
  counter-reset: num 0;
  font-size: 0;
  min-height: calc((((100vw - 5.5rem) / 2) + 10.75rem) + ((100vw - 7rem) / 3));
}
.ranking-items .itemwrap {
  width: 50%;
  padding: 0.75rem;
  display: inline-block;
}
.ranking-items .itemwrap:nth-child(1),
.ranking-items .itemwrap:nth-child(2) {
  padding-top: 0;
}
.ranking-items .itemwrap:nth-child(n+3) {
  width: 33.33%;
  padding: 0.75rem;
  display: inline-block;
}
.ranking-items .itemwrap .itemimgwrap {
  position: relative;
  overflow: hidden;
}
.ranking-items .itemwrap .itemimgwrap .itemimg {
  width: 100%;
}
.ranking-items .itemwrap .itemname,
.ranking-items .itemwrap .itemprice {
  font-size: 1rem;
}
.ranking-items .itemwrap .itemimgwrap:before {
  counter-increment: num 1;
  content: counter(num);
  font-size: 1rem;
  display: block;
  position: absolute;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  top: -1.5rem;
  left: -3.25rem;
  padding: 1rem 3rem 0.25rem;
  transform: rotate(-45deg) translate(-0.25rem, 50%);
  background: #868b93;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  z-index: 1;
}
.ranking-items .itemwrap:nth-of-type(1) .itemimgwrap:before {
  background: #f2d051;
}
.ranking-items .itemwrap:nth-of-type(2) .itemimgwrap:before {
  background: #b3b3b3;
}
.ranking-items .itemwrap:nth-of-type(3) .itemimgwrap:before {
  background: #a07669;
}
.fs-l-pageMain {
  padding: 0 2rem;
}
.ranking-heading {
  margin-top: 4rem;
  position: relative;
}
.page-heading {
  margin-bottom: 0;

}
.ranking_items-button {
  display: inline-block;
  font-weight: 400;
  position: absolute;
  bottom: 0;
  right: 0;
  color: #555;
}
.fs-l-pageMain .ranking-block:nth-of-type(n + 3) {
  margin-top: 6rem;
  border-top: 1px solid #ccc;
}
.ranking-link {
  margin-top: 4rem;
  display: block;
  text-align: center;
}
.ranking-link__button {
  margin: 0 auto;
  padding: 0.75rem 2rem;
  border: 1px solid #333;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  border-radius: 0;
}
.footer-category {
  display: none;
}
.m-top--m {
  margin-top: 3rem !important;
}

.ranking-block .cate-list-ul {
    gap: 30px 0;
}

.ranking-block .cate-list-ul.content-row.row-column-md-8 > .content-column:nth-child(n + 9),
.ranking-block .cate-list-ul.content-row.row-column-4 > .content-column:nth-child(n + 5) {
    padding-top: 0;
}

@media screen and (min-width: 768px) {
  .ranking-items {
      min-height: calc(((1000px - 8rem) / 5) + 4.75rem);
  }

  .ranking-items .itemwrap,
  .ranking-items .itemwrap:nth-child(n+3) {
      width: 20%;
  }


  .ranking-items .itemwrap,
  .ranking-items .itemwrap:nth-child(n+3) {
      padding-top: 0;
  }

  .fs-l-pageMain {
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
  }
  .ranking-heading {
      text-align: left;
  }
  .ranking-link {
      text-align: right;
  }
  .ranking-link__button {
      padding: 0;
      border: none;
  }

  .ranking-block .cate-list-ul {
      gap: 40px 0;
  }
}