@charset "UTF-8";
/* ============================================================
   お知らせ タブ切替（TOP）  add-news.css
   - home.php の p-news セクション用
   - 先頭タブ「すべて」＋ Information 子カテゴリのタブ
   ============================================================ */

.p-news-tab {
  margin-top: 32px; /* 見出し（.c-heading01 おしらせ/News）と離す */
}

.p-news-tab__nav {
  display: flex;
  flex-wrap: nowrap; /* タブを1行に横並び */
  gap: 2px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.p-news-tab__nav-item {
  flex: 1 1 0;
  min-width: 0;      /* 等幅・はみ出し防止。長い名前はタブ内で2行に折り返す */
  padding: 12px 8px;
  text-align: center;
  background: #ededed;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700; /* サイト慣習（ボタン＝太字）に統一 */
  line-height: 1.35;
  border-radius: 6px 6px 0 0;
  transition: background .2s, color .2s;
}

.p-news-tab__nav-item:hover {
  background: #e2e2e2;
}

.p-news-tab__nav-item.is-active {
  background: #fff;
  color: #c8102e;
  font-weight: 700;
  box-shadow: 0 -3px 0 #c8102e inset;
}

.p-news-tab__panel {
  display: none;
}

.p-news-tab__panel.is-active {
  display: block;
}

.p-news-tab__empty {
  padding: 24px 0;
  color: #777;
}

@media (max-width: 767px) {
  .p-news-tab__nav {
    gap: 1px;
  }
  .p-news-tab__nav-item {
    font-size: 12px;
    padding: 10px 4px;
  }
}

/* ============================================================
   お知らせ枠の最大幅を .p-search-group（max-width:1140px/中央寄せ）に合わせる
   ============================================================ */
.p-news .c-news-contents {
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
}

@media only screen and (max-width: 900px) {
  .p-news .c-news-contents {
    width: calc((8 / 9) * 100vw);
    max-width: 100%;
  }
}

@media only screen and (max-width: 680px) {
  .p-news .c-news-contents {
    width: 100%;
  }
}

/* ============================================================
   お知らせ一覧ページ：子カテゴリナビ（.p-news-catnav）
   ============================================================ */
.p-news-catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  list-style: none;
  max-width: 1140px;
  margin: 40px auto 40px; /* 上：.c-title-head02 の下ボーダーと離す */
  padding: 0 15px;
}

.p-news-catnav__item a {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid #ccc;
  border-radius: 999px;
  color: #555;
  font-size: 14px;
  font-weight: 700; /* サイト慣習（ボタン＝太字）に統一 */
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.p-news-catnav__item a:hover {
  border-color: #c8102e;
  color: #c8102e;
}

.p-news-catnav__item.is-active a {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
}

@media only screen and (max-width: 680px) {
  .p-news-catnav {
    gap: 10px;
    margin: 28px auto 28px;
  }
  .p-news-catnav__item a {
    padding: 9px 18px;
    font-size: 12px;
  }
}

/* ============================================================
   お知らせ詳細ページ：日付＋所属カテゴリ（横並び・中央寄せ）
   ============================================================ */
.p-news-wrap__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 15px; /* 旧 .p-news-wrap__date の下マージンを引き継ぐ */
}

.p-news-wrap__meta .p-news-wrap__date {
  margin-bottom: 0;
}

.p-news-cat {
  margin: 0;
}

.p-news-cat__item {
  display: inline-block;
  margin: 2px 4px;
  padding: 4px 16px;
  border: 1px solid #c8102e;
  border-radius: 999px;
  color: #c8102e;
  font-size: 13px;
  font-weight: 700; /* サイト慣習（ボタン＝太字）に統一 */
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.p-news-cat__item:hover {
  background: #c8102e;
  color: #fff;
}

/* ============================================================
   お知らせ一覧：各記事のカテゴリタグ（.p-information-list__cat）
   ============================================================ */
.p-information-list__cat {
  flex: 0 0 auto;
  width: 150px; /* タグ列を固定幅にしてタイトル開始位置を揃える */
  margin: 0 20px 0 0;
}

.p-information-list__cat-item {
  display: block;        /* 列幅（150px）いっぱいに広げる */
  text-align: center;    /* タグ内テキストを中央寄せ */
  margin: 2px 0;         /* 右マージンを除き全幅に */
  padding: 3px 13px;
  border: 1px solid #c8102e;
  border-radius: 999px;
  color: #c8102e;
  font-size: 12px;
  font-weight: 700; /* サイト慣習（ボタン＝太字）に統一 */
  line-height: 1.5;
  white-space: nowrap;
}

@media only screen and (max-width: 680px) {
  .p-information-list__cat {
    width: auto;
    margin: 6px 0;
  }
}
