/* =====================================================================
   トップページ — 新着のお知らせ
   会社情報（company-section）の直前に置く、静かなニュース一覧。
   corporate.css / v9.css のトークンだけを使う。
   ===================================================================== */

.top-news {
  background: #fff;
  padding-top: 96px;
  padding-bottom: 96px;
}

.top-news .section-heading {
  margin-bottom: 44px;
}

/* ---------- 行リスト ---------- */
.top-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.top-news-list > li {
  border-bottom: 1px solid var(--rule);
}

.top-news-list > li > a {
  display: grid;
  grid-template-columns: 118px 132px 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  transition: background 0.25s;
}

.top-news-list > li > a:hover {
  background: #fafbfc;
}

.top-news-date {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.top-news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--blue);
  white-space: nowrap;
}

.top-news-cat.is-none {
  color: var(--muted);
}

.top-news-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}

.top-news-list > li > a:hover .top-news-title {
  color: var(--blue);
}

.top-news-arrow {
  justify-self: end;
  font-size: 16px;
  color: var(--blue);
  transition: transform 0.3s;
}

.top-news-list > li > a:hover .top-news-arrow {
  transform: translate(3px, -3px);
}

.top-news-empty {
  padding: 40px 4px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- レスポンシブ ---------- */
/* 中画面：日付とカテゴリを1行目、タイトルを2行目に */
@media (max-width: 1080px) {
  .top-news-list > li > a {
    grid-template-columns: auto 1fr 32px;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 20px 2px;
  }
  .top-news-date {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .top-news-cat {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .top-news-title {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .top-news-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
  }
}

/* 小画面：日付 / カテゴリ / タイトル を縦に積む */
@media (max-width: 800px) {
  .top-news {
    padding-top: 60px;
    padding-bottom: 64px;
  }
  .top-news .section-heading {
    margin-bottom: 28px;
  }
  .top-news-list > li > a {
    grid-template-columns: 1fr 28px;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
  }
  .top-news-date {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .top-news-cat {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .top-news-title {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    font-size: 14px;
  }
  .top-news-arrow {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    align-self: center;
  }
}
