.products {
  padding-bottom: 80px;
}

.products__list {
  margin: 0 auto;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  max-width: 320px;
}

@media screen and (max-width: 714px) {}

.products__list_item {
  /* max-width: 320px; */
  width: 100%;
}

.products__list .products__list_item:not(:last-child) {
  margin-bottom: 40px;
}

.products__list_item a {
  color: #000;
}

.products__list_item__img {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  padding-top: 180px;
}

.products__list_item__img>img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  object-fit: cover;
  transform: translateY(-50%) translateX(-50%);
}

.products__list_item__txtarea {
  background-color: #fff;
  padding: 10px 10px;
  border-radius: 0 0 16px 16px;
}

.products__list_item__ttl {
  font-size: 20px;
  font-weight: 700;
  line-height: calc(24 / 20);
  margin-bottom: 8px;
}

.products__list_item__time {}

.result__pagination-box {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin-top: 40px;
}

.result__pagination-link {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.15s linear;
  border-radius: 100px;
}

.result__pagination-link span {
  margin-right: 0px;
  line-height: 30px;
}

.result__pagination-link-icon {
  margin: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result__pagination-link.is-active {
  background-color: #707070;
  color: #ffffff;
  pointer-events: none;
}

.result__pagination-link span {
  position: relative;
  color: #707070;
  font-size: 16px;
  font-weight: 500;
}

.result__pagination-link.is-active span {
  color: #ffffff;
}

.result__pagination-box>*+* {
  margin-left: 10px;
}

.pagination_arrow {
  position: relative;
  background-image: url(../img/arrow-left.svg);
  display: block;
  width: 15px;
  height: 15px;
}

.pagination_arrow.left {
  right: 10px;
}

.pagination_arrow.right {
  transform: rotate(180deg);
  left: 10px;
}

.product__no-post {
  padding: 80px 0;
  text-align: center;
}

.wp-pagenavi .pages {
  display: none;
}

.wp-pagenavi {
  clear: both;
  width: fit-content;
  margin: 40px auto 0;
}

.wp-pagenavi a,
.wp-pagenavi span {
  text-decoration: none;
  border: none !important;
  padding: 0 !important;
  margin: 0 5px !important;
  font-size: 16px;
  color: #707070;
  font-weight: 500;
  width: 30px;
  height: 30px;
  line-height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2px !important;
}

.wp-pagenavi span.current {
  font-weight: bold;
  color: #fff;
  background-color: #707070;
  border-radius: 50%;
}

.wp-pagenavi a.previouspostslink,
.wp-pagenavi a.nextpostslink {
  position: relative;
  top: 2px;
  width: 15px !important;
  height: 15px !important;
  background-image: url(../img/arrow-left.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

.wp-pagenavi a.previouspostslink {
  margin-right: 15px !important;
}

.wp-pagenavi a.nextpostslink {
  transform: scaleX(-1);
  margin-left: 15px !important;
}

@media screen and (min-width: 768px) {
  .products {
    padding-bottom: 200px;
  }

  .products__list {
    margin: 0 auto;
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    max-width: 984px;
  }

  .products__list_item {
    max-width: none;
    width: calc((100% - 72px) / 2);
  }

  .products__list_item:not(:nth-child(2n)) {
    margin-right: 72px;
  }

  .products__list .products__list_item:not(:last-child) {
    margin-bottom: 80px;
  }

  .products__list .products__list_item:last-child {
    margin-bottom: 80px;
  }

  .products__list_item__img {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    padding-top: 256.5px;
  }

  .products__list_item__img>img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    object-fit: cover;
    transform: translateY(-50%) translateX(-50%);
  }

  .products__list_item__txtarea {
    background-color: #fff;
    padding: 8.5px 24px 24px;
    border-radius: 0 0 16px 16px;
  }

  .products__list_item__ttl {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(24 / 20);
    margin-bottom: 8px;
  }

  .products__list_item__time {}

  .result__pagination-box {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin-top: 0;
  }

  .result__pagination-link {
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.15s linear;
    border-radius: 100px;
  }

  .result__pagination-link span {
    margin-right: 0px;
    line-height: 30px;
  }

  .result__pagination-link-icon {
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .result__pagination-link.is-active {
    background-color: #707070;
    color: #ffffff;
    pointer-events: none;
  }

  .result__pagination-link span {
    position: relative;
    color: #707070;
    font-size: 16px;
    font-weight: 500;
  }

  .result__pagination-link.is-active span {
    color: #ffffff;
  }

  .result__pagination-box>*+* {
    margin-left: 10px;
  }

  .pagination_arrow {
    position: relative;
    background-image: url(../img/arrow-left.svg);
    display: block;
    width: 15px;
    height: 15px;
  }

  .pagination_arrow.left {
    right: 10px;
  }

  .pagination_arrow.right {
    transform: rotate(180deg);
    left: 10px;
  }

  .wp-pagenavi {
    margin: 0px auto;
  }
}