@charset "utf-8";

/* ======================
news
====================== */
.news {
  padding-top: clamp(2.5rem, 0.833rem + 3.472vw, 5rem);
  padding-bottom: clamp(3.75rem, 0.417rem + 6.944vw, 8.75rem);
  background-color: #fff;
}
.news__inner {
  padding-right: clamp(1.25rem, -9.958rem + 23.351vw, 18.0625rem);
  padding-left: clamp(1.25rem, -9.958rem + 23.351vw, 18.0625rem);
}
.news__container {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 0.833rem + 4.514vw, 6.25rem);
}

/* news__cate */
.news__cate {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, -0.083rem + 1.736vw, 2.5rem);
}
.news__cate .webgene-blog {
  display: contents;
}
.news__cate .sideLink,
.news-cate__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 113px;
  height: 40px;
  padding: 0 20px;
  background-color: #1d1d1d;
  border: 1px solid #1d1d1d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1rem, 0.917rem + 0.174vw, 1.125rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 3px 6px rgba(3, 3, 3, 0.16);
  transition: all 0.5s;
}
.news__cate .sideLink:hover,
.news__cate a:hover .news-cate__btn {
  background-color: #fff;
  color: #1d1d1d;
}
.news__cate .webgene-item.selected .sideLink,
.news__cate .sideLink.selected,
.news-cate__btn.selected {
  background-color: #fff;
  color: #1d1d1d;
}
.news__cate .webgene-item.selected .sideLink:hover,
.news__cate .sideLink.selected:hover,
.news__cate a:hover .news-cate__btn.selected {
  background-color: #1d1d1d;
  color: #fff;
}

/* news__block */
.news__block .webgene-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1rem, -3rem + 8.333vw, 7rem);
  row-gap: clamp(2.5rem, 0.833rem + 3.472vw, 5rem);
}
.newsLink {
  display: block;
}
.newsLink:hover .newsItemTit {
  text-decoration-color: currentColor;
}
.newsItemImg {
  aspect-ratio: 373 / 313;
  overflow: hidden;
  background-color: #c7c7c7;
}
.newsItemImg img,
.webgene-item-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.newsItemBottom {
  margin-top: clamp(0.75rem, 0.667rem + 0.174vw, 1rem);
}
.newsItemText {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.newsItemTime {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.792rem + 0.174vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}
.newsItemCate {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 84px;
  height: 30px;
  padding: 0 10px;
  background-color: #1d1d1d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.792rem + 0.174vw, 1rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.newsItemTit {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: clamp(1rem, 0.833rem + 0.347vw, 1.5rem);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1rem, 0.917rem + 0.174vw, 1.125rem);
  font-weight: 400;
  line-height: 1.89;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.5s;
}

/* pagination */
.webgene-pagination {
  grid-column: 1 / -1;
  margin-top: clamp(1.25rem, -0.417rem + 3.472vw, 3.75rem);
}
.webgene-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 1.167rem + 0.694vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.webgene-pagination a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.5rem, 1.167rem + 0.694vw, 2rem);
  font-weight: 700;
  line-height: 1;
}
.webgene-pagination a:hover,
.webgene-pagination .number.selected a {
  border-bottom: 1px solid #1d1d1d;
  padding-bottom: 2px;
}
@media (max-width: 767px) {
  .news__block .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
  }
  .news__cate .sideLink,
  .news-cate__btn {
    min-width: 0;
    height: 36px;
    padding: 0 16px;
  }
}

@media (max-width: 499px) {
  .news__block .webgene-blog {
    grid-template-columns: 1fr;
  }
}
