@charset "utf-8";
body {
  background-color: #F5F5F5;
}
.case {
      width: clamp(32.5rem, -5.75rem + 79.69vw, 89.875rem);
    margin-left: auto;
    padding-top: clamp(2.5rem, 0.833rem + 3.47vw, 5rem);
  padding-bottom: clamp(5rem, 3.333rem + 3.47vw, 7.5rem);
}
.case__inner {
  padding-right: clamp(1.25rem, -20.25rem + 26.88vw, 12rem);
}
.case__cate section {
      display: flex;
    column-gap: 20px;
  row-gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.case__cate section article a {
      padding: clamp(0.625rem, 0.417rem + 0.43vw, 0.938rem) clamp(1.25rem, 0.625rem + 1.3vw, 2.188rem);
    display: inline-block;
    border: 2px solid #2A60B6;
    border-radius: 5px;
    line-height: 1;
    color: #2A60B6;
    font-weight: 500;
    font-size: clamp(1rem, 0.833rem + 0.35vw, 1.25rem);
    transition: all 0.5s;
}
.case__cate section article a:hover {
  background-color: #2A60B6;
  color: #fff;
}

.case__block {
  margin-top: clamp(2.5rem, 0.833rem + 3.47vw, 5rem);
}
.case__block section {
      display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(1.25rem, 0.417rem + 1.74vw, 2.5rem);
    row-gap: clamp(2.5rem, 0.833rem + 3.47vw, 5rem);
    position: relative;
    padding-bottom: clamp(7.5rem, 5.833rem + 3.47vw, 10rem);
}
.case__block section article {
      padding: clamp(1rem, 0.667rem + 0.69vw, 1.5rem);
    padding-bottom: clamp(1.875rem, 0.625rem + 2.6vw, 3.75rem);
    background-color: #Fff;
  transition: all 0.5s;
}
.case__block section article:hover {
  opacity: 0.5;
}
.caseItemImg {
  overflow: hidden;
}
.caseItemImg img {
      width: 100%;
    height: auto;
    aspect-ratio: 340/300;
    object-fit: cover;
}
.caseItemBottom {
  margin-top: clamp(1rem, 0.833rem + 0.35vw, 1.25rem);
}
.caseItemText {
      display: flex;
    align-items: center;
    column-gap: clamp(1.25rem, -0.417rem + 3.47vw, 3.75rem);
}
.caseItemCate {
      font-size: clamp(0.75rem, 0.583rem + 0.35vw, 1rem);
    font-weight: 500;
    color: #fff;
    background-color: #2A60B6;
    text-align: center;
    padding: clamp(0.25rem, 0.167rem + 0.17vw, 0.375rem) 20px;
    min-width: clamp(6.25rem, 3.5rem + 5.73vw, 10.375rem);
    border-radius: 3px;
}
.caseItemTime {
      font-size: clamp(0.875rem, 0.708rem + 0.35vw, 1.125rem);
    font-weight: 500;
    color: #84888D;
}
.caseTitleBox {
  margin-top: clamp(1rem, 0.833rem + 0.35vw, 1.25rem);
}
.caseItemTit {
      font-size: clamp(1rem, 0.833rem + 0.35vw, 1.25rem);
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/*ページネーション*/
.webgene-pagination {
        width: 100%;
      position: absolute;
    bottom: 0;
}
.webgene-pagination>ul {
    display: flex;
    justify-content: center;
    padding: 0;
      flex-wrap: wrap;
    row-gap: 16px;
  column-gap: clamp(2rem, 1.667rem + 0.69vw, 2.5rem);
}
.number {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    transition: all .7s;
}
.number a{
    font-size: clamp(1.5rem, 1.167rem + 0.69vw, 2rem);
    font-weight: 700;
    color: #2A60B6;
    transition: all .7s;
}
.number.selected a {
   border-bottom: 1px solid #2A60B6;
}
.number>a:hover {
  border-bottom: 1px solid #2A60B6;
}
.next,
.prev {
        display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    width: 43px;
    height: 43px;
    background-color: #2A60B6;
    transition: all .7s;
    border-radius: 5px;
    transform: rotate(45deg);
}
.next {
  margin-left: clamp(1.25rem, 0.417rem + 1.74vw, 2.5rem);
}
.prev {
  margin-right: clamp(1.25rem, 0.417rem + 1.74vw, 2.5rem);
}
.next a,
.prev a {
    width: clamp(2.813rem, 2.354rem + 0.95vw, 3.5rem);
    height: clamp(2.813rem, 2.354rem + 0.95vw, 3.5rem);
        display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(0.75rem, 0.583rem + 0.35vw, 1rem);
  font-weight: 700;
  color: #fff;
  transform: rotate(-45deg);
    transition: all .7s;
}
.next:hover {
  opacity: 0.5;
}
.prev:hover {
  opacity: 0.5;
}

@media (max-width: 1279px) {
  .case__block section {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

@media (max-width: 767px) {
  .case {
    width: 100%;
  }
  .case__inner {
    padding-left: 20px;
  }
  .case__cate section {
    column-gap: 8px;
  }
  .case__cate section article a {
    font-size: 14px;
  }
  .case__block {
        max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .case__block section {
    grid-template-columns: repeat(1, 1fr);
  }
  .number a {
    font-size: 22px;
  }
  .next, .prev {
        width: 32px;
    height: 32px;
  }
}