@charset "utf-8";

.p-blog {
  padding: 100px 0 130px;
  background: #f8f8f8;

  @media (width < 768px) {
    padding: 60px 0 80px;
  }

  .l-inner {
    max-width: 1150px;
  }
}

.p-blog__categories {
  section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .c-category {
    display: block;
    border-radius: 26px;
    background: var(--color-white);
    min-width: 160px;
    padding: 16px 50px;
    color: #1849a5;
    border: 1px solid #d0d5de;
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .c-category:hover,
  .c-category.is-selected {
    background: #1849a5;
    border: 1px solid #1849a5;
    color: #eff3fb;
  }
}

.p-blog__lists {
  padding-top: 70px;

  @media (width < 768px) {
    padding-top: 50px;
  }

  section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .webgene-pagination {
    margin: 68px auto 0;
    color: #4b4b4b;

    @media (width < 768px) {
      margin: 40px auto 0;
    }

    ul .number a {
      background: #ebebeb;
    }

    ul .number a:hover,
    ul .number.selected a {
      background: #1849a5;
      color: var(--color-white);
    }

    ul .number.selected a {
      pointer-events: none;
    }

    ul {
      display: flex;
      list-style: none;
      gap: 10px;
      padding-inline-start: 0;
      justify-content: center;
      align-items: center;

      @media (width < 768px) {
        gap: 8px;
      }
    }

    ul .number a {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 50%;
    }

    li.next,
    li.prev {
      position: relative;
    }

    li.next {
      margin-left: 20px;

      @media (width < 768px) {
        margin-left: 10px;
      }
    }

    li.prev {
      margin-right: 20px;

      @media (width < 768px) {
        margin-right: 10px;
      }
    }

    li.next a,
    li.prev a {
      height: 40px;
      width: 76px;
      line-height: 1;
      display: flex;
      align-items: center;
    }

    li.prev a {
      justify-content: end;
    }

    li.next:hover::after,
    li.prev:hover::after {
      background: url("https://iwazukasei-okazaki.com/system_panel/uploads/images/page-arrow-blue.svg") no-repeat center center / contain;
    }

    li.prev:after,
    li.next:after {
      pointer-events: none;
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 0;
      width: 40px;
      height: 40px;
      background: url("https://iwazukasei-okazaki.com/system_panel/uploads/images/page-arrow-white.svg") no-repeat center center / contain;
      transition: all 0.3s ease-out;
    }

    li.prev:after {
      left: 0;
      transform: translateY(-50%) rotate(180deg);
    }

    li.next:after {
      right: 0;
    }
  }
}
