@charset "utf-8";

.page__case {
  background: var(--color-white);
  padding-block: 80px 100px;
}

@media screen and (min-width: 768px) {
  .page__case {
    padding-block: 120px 150px;
  }
}

.page__case-category-wrapper .webgene-blog {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .page__case-category-wrapper .webgene-blog {
    justify-content: flex-start;
  }
}

.case__category span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: calc(50 / 1000 * 1em);
  color: #027989;
  background: #bfe4e6;
  border-radius: 42px;
  padding: 12px 33px;
  transition: color 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .case__category span {
    padding: 12px 53px;
  }
}

.case__category:hover {
  opacity: 1;
}

.case__category:hover span,
.case__category:focus span {
  color: var(--color-white) !important;
  background: #027989;
}

.page__case-body {
  margin-top: 70px;
}

.page__case-body .webgene-blog {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 40px;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 600px) {
  .page__case-body .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    justify-content: space-between;
  }
}

@media screen and (min-width: 900px) {
  .page__case-body .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1000px) {
  .page__case-body .webgene-blog {
    column-gap: 40px;
  }
}

.page__case-body {
  position: relative;
}

.page__case-body .case__item {
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .page__case-body .case__item {
    margin-bottom: 60px;
  }
}

/* ======================
ページネーション
========================== */
.webgene-pagination ul {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  width: 100%;
}

@media screen and (min-width: 1000px) {
  .webgene-pagination ul {
    gap: 30px;
  }
}

.number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.number a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: #4b4b4b;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
}

.selected a {
  color: var(--color-white);
  background: #027989;
}

/* ページネーション矢印の基本スタイル */
.prev a,
.next a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #919191;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transition: all 0.3s ease;
}

/* 疑似要素の基本設定 */
.prev a::before,
.next a::after {
  content: "";
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

/* Prevアイコン（左向き矢印）*/
.prev a::before {
  padding-right: 40px;
  background: url(../images/pagination-left.svg) no-repeat center center/contain;
}

/* Nextアイコン（右向き矢印）*/
.next a::after {
  padding-left: 40px;
  background: url(../images/pagination-right.svg) no-repeat center
    center/contain;
}

/* ホバー・フォーカス時のスタイル */
.prev a:hover,
.prev a:focus,
.next a:hover,
.next a:focus {
  color: #4b4b4b !important;
}

/* ホバー・フォーカス時のアイコン変更 */
.prev a:hover::before,
.prev a:focus::before {
  background: url(../images/pagination-left-b.svg) no-repeat center
    center/contain;
}

.next a:hover::after,
.next a:focus::after {
  background: url(../images/pagination-right-b.svg) no-repeat center
    center/contain;
}
