/* お知らせの一覧ページと詳細ページで使うスタイル。共通部分は style.css、詳細ページの本文の形は achievement-detail.css */

.news-archive { padding-block: clamp(56px, 7vw, 80px) var(--section-space); }
.news-archive__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: calc(976px + var(--gutter) * 2);
}

/* カテゴリー */
.news-categories ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.news-categories a {
  display: block;
  padding: 10px 22px;
  border: 1.5px solid #d3e0db;
  border-radius: 999px;
  background: var(--white);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-decoration: none;
}
.news-categories a:hover { border-color: var(--green-dark); }
.news-categories a[aria-current] { border-color: var(--green-dark); background: var(--green-dark); color: var(--white); }

/* お知らせの一覧 */
.news-rows {
  padding: 8px clamp(20px, 4vw, 40px);
  border: 1px solid #e3eae7;
  border-radius: 28px;
  background: var(--white);
}
.news-rows li + li { border-top: 1px solid #e3eae7; }
.news-rows a {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding-block: 28px;
  text-decoration: none;
}
.news-rows__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.news-rows time {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.news-rows__title { font-size: 1rem; line-height: 1.8; }
.news-rows__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid #d3e0db;
  border-radius: 50%;
  color: var(--green-dark);
  font-size: .875rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.news-rows a:hover .news-rows__title { color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.news-rows a:hover .news-rows__arrow { border-color: var(--green-dark); background: var(--green-dark); color: var(--white); }

/* カテゴリーのタグ。お知らせは緑、募集はピンク、セミナー・イベントは中間色 */
.news-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e6f3ef;
  color: var(--green-deep);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
}
.news-tag--recruit { background: #f8eaf2; color: var(--pink); }
.news-tag--seminar,
.news-tag--event { background: #eeedf6; color: var(--gradient-mid); }
/* 詳細ページの見出しでは、白地のタグに文字の色だけを変える */
.entry-hero__tag.news-tag--recruit,
.entry-hero__tag.news-tag--seminar,
.entry-hero__tag.news-tag--event { background: var(--white); }

/* お知らせがないときの表示 */
.news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(64px, 9vw, 96px) 32px;
  border-radius: 28px;
  background: var(--mist-gray);
  text-align: center;
}
.news-empty[hidden] { display: none; }
.news-empty__dots { display: flex; gap: 10px; }
.news-empty__dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.news-empty__dots span:nth-child(2) { background: var(--gradient-mid); }
.news-empty__dots span:nth-child(3) { background: var(--pink); }
.news-empty__title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; line-height: 1.6; }
.news-empty p { color: var(--ink-soft); font-size: .9375rem; }

/* ページ送り（活動実績の一覧と同じ形） */
.pagination ol { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.pagination a,
.pagination span[aria-current] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--green-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover,
.pagination span[aria-current] { background: var(--green-dark); color: var(--white); }

/* 詳細ページ：本文の中の表とリスト */
.entry-content a { color: var(--green-dark); text-underline-offset: 4px; }
.entry-content a:hover { color: var(--pink); }
.entry-content > ul { display: flex; flex-direction: column; gap: 6px; padding: 0; list-style: none; }
.entry-content > ul li { position: relative; padding-left: 1.25em; }
.entry-content > ul li::before {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--gradient);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e3eae7;
  font-size: .9375rem;
  line-height: 1.9;
}
.entry-content th,
.entry-content td { padding: 16px 0; border-bottom: 1px solid #e3eae7; text-align: left; vertical-align: top; }
.entry-content th { width: 10em; padding-right: 24px; color: var(--green-deep); font-weight: 700; }

@media (max-width: 720px) {
  .news-rows a { grid-template-columns: minmax(0, 1fr) auto; padding-block: 22px; }
  .news-rows__meta { grid-column: 1 / -1; }
  .news-rows__arrow { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .entry-content th,
  .entry-content td { display: block; width: auto; }
  .entry-content th { padding-bottom: 0; border-bottom: 0; }
  .entry-content td { padding-top: 4px; }
}
