@charset "utf-8";

.news-page {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.news-filter {
  margin-top: clamp(35px, 5vw, 60px);
}

.news-filter__row {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.news-filter__row+.news-filter__row {
  margin-top: 18px;
}

.news-filter__label {
  padding-top: 9px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.news-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-filter__link {
  display: flex;
  min-width: 102px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: #f0f0f0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  transition: var(--transition);
}

.news-filter__link:hover {
  border-color: var(--red);
  background-color: #ffffff;
  color: var(--red);
}

.news-filter__link.is-active {
  border-color: var(--red);
  background-color: var(--red);
  color: #ffffff;
}

.news-filter__link:focus-visible,
.news-card:focus-visible {
  outline: 3px solid rgba(213, 26, 25, .3);
  outline-offset: 3px;
}

.news-list {
  margin-top: 40px;
  border-top: 1px solid #d9d9d9;
}

.news-list__item {
  border-bottom: 1px solid #d9d9d9;
}

.news-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 30px;
  padding: 32px 0;
  color: #000000;
}

.news-card__image {
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border-radius: 10px;
  background-color: #eeeeee;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.news-card__image--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background-color: #f4f4f4;
}

.news-card__image--logo img {
  height: auto;
  object-fit: contain;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 12px;
  color: #555555;
  font-family: "Karla", "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .04em;
}

.news-card__category {
  min-width: 112px;
  padding: 5px 16px 6px;
  border: 1px solid var(--red);
  border-radius: 100px;
  color: var(--red);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.news-card__title {
  color: #000000;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .06em;
}

.news-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: #333333;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .04em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__arrow {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  transition: var(--transition);
}

.news-card__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .3s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card:hover .news-card__title {
  color: var(--red);
}

.news-card:hover .news-card__arrow {
  background-color: var(--red);
  color: #ffffff;
}

.news-card:hover .news-card__arrow svg {
  transform: translateX(3px);
}

.news-empty {
  margin-top: 40px;
  padding: 40px 20px;
  border-radius: 6px;
  background-color: #f4f4f4;
  color: #555555;
  text-align: center;
}

@media (width <=900px) {
  .news-card {
    grid-template-columns: 210px minmax(0, 1fr) 50px;
    gap: 22px;
  }

  .news-card__arrow {
    width: 48px;
    height: 48px;
  }
}

@media (width <=768px) {
  .news-filter {
    margin-top: 30px;
    padding: 22px 0;
  }

  .news-filter__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-filter__row+.news-filter__row {
    margin-top: 22px;
  }

  .news-filter__label {
    padding-top: 0;
  }

  .news-filter__buttons {
    gap: 8px;
  }

  .news-filter__link {
    min-width: auto;
    padding: 9px 16px;
    font-size: 14px;
  }

  .news-card {
    position: relative;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .news-card__image {
    aspect-ratio: 16 / 9;
  }

  .news-card__image--logo {
    padding: 12vw;
  }

  .news-card__body {
    padding-right: 56px;
  }

  .news-card__meta {
    gap: 9px 12px;
    margin-bottom: 9px;
    font-size: 15px;
  }

  .news-card__category {
    min-width: 96px;
    padding: 4px 12px 5px;
    font-size: 12px;
  }

  .news-card__title {
    font-size: 18px;
  }

  .news-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
  }

  .news-card__arrow {
    position: absolute;
    right: 0;
    bottom: 45px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .news-filter__link,
  .news-card__image img,
  .news-card__arrow,
  .news-card__arrow svg {
    transition: none;
  }
}
