@charset "utf-8";

.news__cords {
  width: 100%;
}

.news__contents .webgene-blog {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  position: relative;
}

@media screen and (min-width: 600px) {
  .news__contents .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news__item {
  min-width: 0;
}

.news__item-image {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 365/236;
  width: 100%;
  height: auto;
}

.news__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news__item-link:hover .top__news-image img {
  transform: scale(1.1);
}

.news__item-body {
  margin-top: 14px;
}

.news__date {
  margin-top: 16px;
  font-family: var(--font-title);
  font-size: clamp(10px, 0.88vw, 12px);
  letter-spacing: calc(20 / 1000 * 1em);
  color: #7e7e7e;
}

.news__category {
  display: inline-block;
  font-family: var(--font-title);
  font-size: clamp(10px, 0.88vw, 12px);
  letter-spacing: calc(80 / 1000 * 1em);
  color: #e94427;
  background: rgba(233, 58, 38, 0.1);
  padding: 6px 9px;
  border-radius: 30px;
}

.news__title {
  margin-top: 13px;
  padding-bottom: 5px;
  font-family: var(--font-title);
  font-size: clamp(12px, 1.03vw, 14px);
  letter-spacing: calc(80 / 1000 * 1em);
  color: #3b3b3c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: color 0.5s ease;
  display: block;
}

.news__item-link:hover .news__title {
  color: var(--color-hover);
}

.news__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-hover);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.news__item-link:hover .news__title::after {
  width: 100%;
}
