/* 活動実績の一覧ページだけで使うスタイル。共通部分は style.css */

.achievements { padding-block: clamp(56px, 7vw, 80px) var(--section-space); }
.achievements__inner { display: flex; flex-direction: column; gap: 48px; }

/* 種類で絞り込むボタン */
.achievement-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.achievement-filter button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid #d3e0db;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  cursor: pointer;
}
.achievement-filter button:hover { border-color: var(--green-dark); }
.achievement-filter button[aria-pressed="true"] {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: var(--white);
}
/* 絞り込んだ結果を読み上げで伝える。画面には出さない（2026-11-24 件数を出さないユーザー指定） */
.achievement-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 実績のカード */
.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px 24px;
}
.achievement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3eae7;
  border-radius: 24px;
  background: var(--white);
  transition: box-shadow .2s;
}
.achievement-card:hover { box-shadow: 0 24px 50px -28px rgb(29 42 39 / .35); }
.achievement-card:focus-within { outline: 3px solid var(--pink); outline-offset: 3px; }
.achievement-card__photo { aspect-ratio: 16 / 10; min-height: 0; padding: 16px; }
.achievement-card__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 28px; }
.achievement-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.achievement-card__meta time {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.achievement-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.6;
}
.achievement-card__title a { text-decoration: none; }
.achievement-card__title a:focus-visible { outline: 0; }
/* カード全体を押せるようにする */
.achievement-card__title a::after { content: ""; position: absolute; inset: 0; }
.achievement-card__body > p:not([class]) { color: var(--ink-soft); font-size: .875rem; line-height: 1.85; }
.achievement-card .card-more { padding-top: 8px; }

/* 種類のタグ。人を育てる取り組みは緑、交流は中間色、研究と開発はピンク */
.achievement-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e6f3ef;
  color: var(--green-deep);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
}
.achievement-tag--event { background: #eeedf6; color: var(--gradient-mid); }
.achievement-tag--research,
.achievement-tag--joint { background: #f8eaf2; color: var(--pink); }

/* 実績がないときの表示 */
.achievement-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;
}
.achievement-empty[hidden] { display: none; }
.achievement-empty__dots { display: flex; gap: 10px; }
.achievement-empty__dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.achievement-empty__dots span:nth-child(2) { background: var(--gradient-mid); }
.achievement-empty__dots span:nth-child(3) { background: var(--pink); }
.achievement-empty__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.6;
}
.achievement-empty p { color: var(--ink-soft); font-size: .9375rem; }
.achievement-empty .button { margin-top: 8px; }

/* ページ送り */
.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); }

@media (max-width: 600px) {
  .achievement-card__body { padding: 24px; }
}

/* 管理画面で登録した画像（仮画像の代わりに入る） */
img.achievement-card__photo { display: block; width: 100%; height: auto; padding: 0; object-fit: cover; }
