@charset "utf-8";

@media screen and (min-width: 768px) {
  .news__inner.l-inner {
    max-width: calc(1062px + 40px * 2);
  }
}

.news__category-wrap .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .news__category-wrap .webgene-blog {
    justify-content: flex-start;
  }
}

.news__container .webgene-blog {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.news__item-link {
  display: block;
  padding: 20px 15px;
  background: var(--color-white);
  border-radius: 10px;
  position: relative;
}

@media screen and (min-width: 768px) {
  .news__item-link {
    padding: 34px 39px 26px;
  }
}

.news__item-link::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: url(../images/arrow-icon.svg) no-repeat center center/contain;
  aspect-ratio: 30/30;
  width: 30px;
  height: auto;
  transition: right 0.3s ease;
}

.news__item-link:hover::after {
  right: 15px;
}

@media screen and (min-width: 768px) {
  .news__item-link::after {
    right: 39px;
  }

  .news__item-link:hover::after {
    right: 35px;
  }
}

.news__item-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.news__item-time {
  font-size: 13px;
  line-height: 1.2;
}

.news__item-tag {
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: calc(80 / 1000 * 1em);
  line-height: 1.2;
  padding: 3px 7px;
  color: #dc2e1e;
  border: 1px solid #dc2e1e;
  background: var(--color-white);
}

.news__item-title {
  width: 84%;
  margin-top: 15px;
  font-size: clamp(14px, 1.18vw, 16px);
  font-weight: 500;
  line-height: calc(35.2 / 16);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media screen and (min-width: 900px) {
  .news__item-title {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}
