/* ==========================================================================
   News (最新のお知らせ)
   ========================================================================== */
.news {
  padding: 32px 0;
  background-color: var(--color-base);
}

.news__head {
  text-align: center;
}

.news__title {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.news__lead {
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-blue-text);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.news__list {
  margin-top: 24px;
  border: 1px solid var(--color-blue-text);
  border-radius: 10px;
  padding: 8px 20px;
}

.news__item {
  /* SP版: Figmaの区切り線は水色(#6290A2 = var(--color-blue-text))。
     PC版は従来通りのグレーを維持するため、下のmedia query内で
     border-bottom-colorのみリセットしている。 */
  border-bottom: 1px solid var(--color-blue-text);
}

.news__item--last {
  border-bottom: none;
}

.news__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  transition: opacity 0.2s ease;
}

.news__item a:hover {
  opacity: 0.6;
}

.news__item-title {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.4;
}

.news__item-arrow {
  /* SP版: 参照SVG(news-arrow.svg)はwidth/height="100%"の下向きV字アイコンで、
     幅のみ指定するとブラウザが intrinsic size を持てず300x150にフォールバックし、
     20px幅×150px高さに縦長潰れしていた（PC版は既にaspect-ratio+rotateで対策済み）。
     SP版にも同じ対策(aspect-ratio + rotate(-90deg))を適用し、右向きの小さい矢印にする。 */
  width: 20px;
  aspect-ratio: 40.7374 / 41.304;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .news {
    padding: 76px 0;
  }

  .news__title {
    font-size: 3.2rem;
  }

  .news__lead {
    margin-top: 16px;
    font-size: 2rem;
  }

  .news__list {
    margin-top: 48px;
    border-width: 2px;
    padding: 48px 120px;
  }

  .news__item {
    /* PC版はSP用の水色区切り線を打ち消し、従来通りのグレーに戻す */
    border-bottom-color: #d9d9d9;
  }

  .news__item a {
    padding: 16px 0 18px;
  }

  .news__list > .news__item:first-child a {
    padding-top: 0;
  }

  .news__item--last a {
    padding-bottom: 0;
  }

  .news__item-title {
    font-size: 2rem;
  }

  .news__item-arrow {
    width: 41.304px;
    aspect-ratio: 40.7374 / 41.304;
    transform: rotate(-90deg);
  }
}

