@charset "utf-8";

.wp-pagenavi,
.nav-links {
  display: flex;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .wp-pagenavi,
  .nav-links {
    justify-content: center;
  }
}

.wp-pagenavi a {
  transition: all 0.3s;
}

.wp-pagenavi .page,
.wp-pagenavi span{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: max(0.875rem, 12px);
  font-family: "Noto Sans JP", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Verdana, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 500;
  color: #202747;
  transition: all 0.3s;
  border: none !important;
}

.wp-pagenavi .page:not(.wp-pagenavi .page.dots):not(.wp-pagenavi .page.current) {
  text-decoration: underline;
  text-underline-offset: 0.125rem;
}

.wp-pagenavi .page:not(a.previouspostslink):not(a.nextpostslink) {
  padding: 0 0.9375rem;
}

/* 現在表示されているページ */
.wp-pagenavi .page.current,
.wp-pagenavi span.current{
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: max(0.875rem, 12px);
  font-family: "Noto Sans JP", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Verdana, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 400;
  color: #0022d8;
  letter-spacing: 0.04em;
}

.wp-pagenavi .page.dots {
  min-width: 0;
  padding: 0;
  border: none;
}

.wp-pagenavi .page:not(.current):not(.dots):hover,
a.nextpostslink:hover,
a.previouspostslink:hover {
  color: #0022d8;
}

a.nextpostslink,
a.previouspostslink {
  position: relative;
  display: block;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 0.25rem;
  background-image: linear-gradient(to bottom, #0022d8 0%, #4b67ff 100%);
  overflow: hidden;
  transition: all 0.3s;
}
@media screen and (max-width: 768px) {
  a.nextpostslink,
  a.previouspostslink {
    width: 2.5rem;
    height: 2.5rem;
  }
}

a.nextpostslink::before,
a.previouspostslink::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, #4b67ff 0%, #7386f4 100%);
  opacity: 0;
  transition: all 0.3s;
  z-index: 0;
}

a.nextpostslink::after,
a.previouspostslink::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mask-size: contain;
  mask-repeat: no-repeat;
  background-color: #ffffff;
  width: 0.9375rem;
  aspect-ratio: 1/1;
  transition: all 0.3s;
}

/* 前への矢印カスタマイズ */
a.nextpostslink::after {
  mask-image: url(../../assets/images/common/icon-arrow-right.svg);
}

/* 次への矢印カスタマイズ */
a.previouspostslink::after {
  mask-image: url(../../assets/images/common/icon-arrow-left.svg);
}

a.nextpostslink {
  margin-left: 1.5625rem;
}
@media screen and (max-width: 768px) {
  a.nextpostslink {
    margin-left: 0.9375rem;
  }
}

a.previouspostslink {
  margin-right: 1.5625rem;
}
@media screen and (max-width: 768px) {
  a.previouspostslink {
    margin-right: 0.9375rem;
  }
}

@media (any-hover: hover) {
  a.nextpostslink:hover::before,
  a.previouspostslink:hover::before {
    opacity: 1;
  }
}
