/* ==========================================
 * 1. 既存のタブ制御・ナビゲーション用CSS（ベース：スマホ縦向き）
 * ========================================== */
.p-news-panel {
  display: none !important;
  opacity: 0;
}

.p-news-panel.is-active {
  display: block !important;
  opacity: 1;
  animation: fadeIn 0.3s ease forwards;
}

.p-news-nav-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #f4f4f4;
  color: #444;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
	font: inherit;
cursor: pointer;
}

.p-news-nav-btn.is-active-btn {
  background: #1a6fa5 !important;
  color: #fff !important;
  border-color: #1a6fa5 !important;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
 * 2. 今回切り分けたニュースリスト用CSS（ベース：スマホ縦向き）
 * ========================================== */
.p-news-list-area {
  padding: 20px 0;
}

.p-news-list-title {
  font-size: 1.4rem;
  margin-bottom: 25px;
  border-left: 4px solid #1a6fa5;
  padding-left: 10px;
}

.p-news-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ddd;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.p-news-item {
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px 20px; /* モバイルファースト：スマホ用のgap */
  flex-wrap: wrap; /* モバイルファースト：狭い画面では自然な2行に落とす設定 */
}

.p-news-item__date {
  font-size: 1.15rem;
  color: #666;
  width: 120px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 1桁月日の「0」を詰める設定 */
.p-news-item__date .is-zero {
  display: none;
}

/* カテゴリーバッジの共通定義 */
.p-news-item__cat {
  color: #fff;
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: bold;
  width: 120px;
  box-sizing: border-box;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* カテゴリーごとの色スイッチ */
.p-news-item__cat.is-cat-default {
  background: #1a6fa5;
}
.p-news-item__cat.is-cat-info {
  background: #1a6fa5;
}
.p-news-item__cat.is-cat-press {
  background: #e06666;
}
.p-news-item__cat.is-cat-event {
  background: #6aa84f;
}

.p-news-item__body {
  width: 100%; /* モバイルファースト：スマホ時の全幅設定 */
  flex: none;
  min-width: 0;
  font-weight: 500;
}

.p-news-item__link {
  color: #333;
  text-decoration: none;
  font-size: 1.15rem;
}
.p-news-item__link:hover {
  text-decoration: underline;
}

.p-news-item__new-badge {
  color: #ff3b30;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 10px;
}

.p-news-empty {
  padding: 20px 0;
}

/* ==========================================
 * 3. ページネーション共通パーツ用CSS（ベース：スマホ縦向き）
 * ========================================== */
.p-news-pagination {
  margin-top: 40px;
  text-align: center;
}

.p-news-pagination ul.page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px; /* モバイルファースト：スマホ用の狭い幅 */
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.p-news-pagination .page-numbers {
  display: inline-block;
  min-width: 34px; /* モバイルファースト：スマホ用のボタンサイズ */
  height: 34px;
  padding: 0 5px;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a6fa5;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.p-news-pagination a.page-numbers:hover {
  background: #f4f4f4;
  border-color: #1a6fa5;
}

.p-news-pagination .page-numbers.current {
  color: #fff;
  background: #1a6fa5;
  border-color: #1a6fa5;
  font-weight: bold;
  cursor: default;
}

.p-news-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: #666;
  cursor: default;
}

/* ==========================================
 * 4. 指定ブレイクポイントに基づくレスポンシブ対応
 * ========================================== */

/* ── タブレット・PC（768px以上 ＆ 501px以上） ── */
@media screen and (min-width: 768px) and (min-height: 501px) {
  /* ニュースアイテムをPC用の1行表示に拡張 */
  .p-news-item {
    gap: 20px;
    flex-wrap: nowrap;
  }
  .p-news-item__body {
    width: auto;
    flex: 1;
  }

  /* ページネーションのサイズをPC用に最適化 */
  .p-news-pagination ul.page-numbers {
    gap: 8px;
  }
  .p-news-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    font-size: 0.95rem;
  }
}
