@charset "UTF-8";
/* ==========================================================================
   更新情報（/news/ 一覧・個別記事）専用。style.css のあとに読み込む。
   共通部品（p-postcards / c-pagination / c-entry / p-page-header--entry）は style.css 側。
   hidden 属性の打ち消し・ページ送りボタンのホバー・記事タイトルの折り返しも
   共通レイヤー（style.css 23節）へ移したため、ここに残るのは
   「このページでしか使わないもの」だけ。
   ========================================================================== */

/* --------------------------------------------------
   1. 種別での絞り込み
   JavaScript が動く環境でだけ表示する（既定は hidden 属性を付けておく）。
   JS が無い場合は記事が全件そのまま並ぶ。
   見た目は共通部品の c-anchor-nav に合わせたタイル状のボタン。
   -------------------------------------------------- */
.p-newsfilter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.p-newsfilter__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding-inline: 28px;
  margin: -1px 0 0 -1px;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid var(--gray-line);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.p-newsfilter__count { font-size: 12px; color: #999; transition: color .3s ease; }
.p-newsfilter__btn.is-current {
  position: relative;
  z-index: 1;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.p-newsfilter__btn.is-current .p-newsfilter__count { color: rgba(255, 255, 255, .75); }
@media (any-hover: hover) {
  .p-newsfilter__btn:hover {
    position: relative;
    z-index: 1;
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }
  .p-newsfilter__btn:hover .p-newsfilter__count { color: rgba(255, 255, 255, .75); }
}
.p-newsfilter__empty { text-align: center; color: #666; }

/* --------------------------------------------------
   2. お知らせ用のサムネイル枠
   お知らせには写真が無いため、ストック画像を使わずCSSだけで作る。
   配色はページヘッダー帯と同じ（グラデーション＋斜線）。
   -------------------------------------------------- */
.p-newsthumb {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #072c3d 0%, #0b4b65 45%, #1080ab 100%);
}
.p-newsthumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, rgba(255, 255, 255, 0) 1px 26px);
}
.p-newsthumb span {
  position: relative;
  z-index: 1;
  font-family: var(--font-logo);
  font-size: 18px;
  letter-spacing: .2em;
  color: #fff;
}

/* --------------------------------------------------
   3. レスポンシブ
   -------------------------------------------------- */
@media (max-width: 991px) {
  .p-newsfilter__btn { height: 48px; padding-inline: 18px; font-size: 14px; }
  .p-newsthumb span { font-size: 16px; }
}
@media (max-width: 767px) {
  .p-newsfilter__btn { padding-inline: 14px; font-size: 13px; }
}
