@charset "UTF-8";
.news__list .webgene-blog,
.c-news-data .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-news-row {
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  -moz-column-gap: 12px;
       column-gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  min-height: 72px;
  padding: 14px 16px;
  row-gap: 6px;
  transition: border 0.35s ease;
  width: 100%;
}
.c-news-row .c-news-head {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.c-news-row .c-news-row__title {
  grid-column: 1;
  grid-row: 2;
}
.c-news-row::after {
  align-self: center;
  background: #2e8ca0 url(../images/icon-news.svg) no-repeat center/10px 11px;
  border-radius: 5px;
  content: "";
  flex-shrink: 0;
  grid-column: 2;
  grid-row: 1/3;
  height: 22px;
  justify-self: center;
  transition: transform 0.35s ease;
  width: 22px;
}
.c-news-row:hover {
  border: 1px solid #38b8a9;
  opacity: 1;
}
.c-news-row:hover::after {
  transform: translateX(4px);
}

.c-news-head {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 5px;
  min-width: 0;
}
.c-news-head .c-news-row__date {
  width: 70px;
}

.c-news-row__date,
.c-date__day {
  color: #43423f;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.c-news-row__cat,
.c-date__cate {
  background-color: #38b8a9;
  border-radius: 5px;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.36px;
  line-height: 1;
  min-width: 62px;
  padding: 6px 8px;
  text-align: center;
}

.c-news-row__title {
  color: #505050;
  display: -webkit-box;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.42px;
  line-height: 1.6;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-data > .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-data .case-item {
  background-color: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  padding: 15px;
}
.case-data .case-item__body {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-data .case-item__more {
  margin-left: auto;
  margin-top: 10px;
}

.case-item {
  color: #515151;
  display: grid;
  gap: 16px;
  grid-template-columns: 120px minmax(0, 1fr);
}
.case-item:hover {
  opacity: 1;
}
.case-item:hover .case-item__photo img {
  transform: scale(1.05);
}

.case-item__photo {
  border-radius: 5px;
  height: 100%;
  min-height: 96px;
  -o-object-fit: cover;
     object-fit: cover;
  overflow: hidden;
  width: 100%;
}
.case-item__photo img {
  transition: transform 0.35s ease;
}

.case-item__cat {
  background-color: #38b8a9;
  border-radius: 5px;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.36px;
  line-height: 1;
  margin-bottom: 8px;
  padding: 6px 8px;
}

.case-item__text {
  display: -webkit-box;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* ここを2や3に変更することで、行数を指定 */
  max-height: 4em;
  min-height: 4em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-item__more {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.case-item__more p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 4px;
  position: relative;
}
.case-item__more p::after {
  background-color: currentColor;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  width: 100%;
}
.case-item__more::after {
  background: url(../images/icon-more.svg) no-repeat center/contain;
  content: "";
  flex-shrink: 0;
  height: 7px;
  transform: rotate(90deg);
  width: 8px;
}

.case-item:hover .case-item__more p::after {
  transform: scaleX(1);
}

.page-data__category {
  margin-top: 60px;
}
.page-data__category > .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-data__category-link {
  background-color: #9dded9;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  min-width: 100px;
  overflow: hidden;
  padding: 10px 10px;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}
.page-data__category-link:hover, .page-data__category-link.is-select {
  background-color: #ffffff;
  border: 1px solid #0c9193;
  color: #0c9193;
  opacity: 1;
}

.page-case,
.page-news {
  padding-inline: 20px;
}

.c-news-data,
.case-data {
  margin-top: 40px;
}

@media (width >= 1024px){
  .c-news-row {
    display: flex;
    gap: 20px;
    min-height: 78px;
    padding: 15px 40px;
  }
  .c-news-head .c-news-row__cat {
    max-width: 85px;
  }
  .c-news-row__title {
    line-height: 30px;
  }
  .case-data .case-item__text {
    -webkit-line-clamp: 1;
    max-height: 2em;
    min-height: 2em;
  }
  .case-item {
    gap: 31px;
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .case-item__photo {
    min-height: 133px;
  }
  .case-item__cat {
    line-height: 12px;
    margin-bottom: 9px;
    padding: 6px 5px;
  }
  .case-item__text {
    font-size: 16px;
    line-height: 32px;
  }
  .case-item__more {
    margin-top: 17px;
  }
  .case-item__more p {
    padding-bottom: 1px;
  }
  .page-data__category {
    margin-top: 80px;
  }
  .page-data__category-link {
    min-width: 160px;
    padding: 15px;
  }
  .page-case,
  .page-news {
    padding-bottom: 25px;
  }
  .c-news-data,
  .case-data {
    margin-top: 60px;
  }
}

@media (width >= 1366px){
  .case-data .case-item {
    gap: 55px;
    padding: 30px 35px 30px 30px;
  }
  .case-data .case-item__cat {
    margin-bottom: 15px;
  }
  .case-data .case-item__more {
    margin-bottom: 5px;
  }
}