@charset "UTF-8";
/* ==========================================================================
   淡路市立しづかホール - お知らせ一覧ページ
   ========================================================================== */

/* ==========================================================================
   ページ全体
   ========================================================================== */
.p-news-page {
  padding: 4rem 0 12rem;
}

.p-news-page__body {
  display: flex;
  gap: 7rem;
  align-items: flex-start;
}

/* ==========================================================================
   サイドバー
   ========================================================================== */
.p-news-page__sidebar {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  flex-shrink: 0;
  width: 13rem;
}

/* ==========================================================================
   カテゴリーフィルター（top.cssと同定義）
   ========================================================================== */
.p-news__filters {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.p-news__filter-btn {
  width: 100%;
  text-align: center;
  border-radius: 4.4rem;
  padding: 0.7rem 0 0.8rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  border: 1px solid #337D8A;
  background: none;
  color: #333;
}

.p-news__filter-btn.is-active,
.p-news__filter-btn:hover {
  background: #337D8A;
  color: #fff;
  border-color: #337D8A;
}

/* ==========================================================================
   年別フィルター
   ========================================================================== */
.p-news__years {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.p-news__year-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.p-news__year-item:first-child {
  border-top: 1px solid #e5e5e5;
}

.p-news__year-item:hover {
  opacity: 0.7;
}

.p-news__year-label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #333;
}

.p-news__year-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   メインコンテンツ
   ========================================================================== */
.p-news-page__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   ニュースリスト（top.cssと同定義）
   ========================================================================== */
.p-news__list {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  width: 100%;
}

.p-news__item-wrap {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 2.6rem;
}

.p-news__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.p-news__item:hover {
  opacity: 0.8;
}

.p-news__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.p-news__item-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.p-news__item-date {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.4rem;
  color: #7d7d7d;
  line-height: 1;
}

.p-news__item-tag {
  background: #337D8A;
  border-radius: 4.4rem;
  padding: 0.3rem 0 0.4rem;
  width: 8.4rem;
  text-align: center;
  flex-shrink: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1;
}

.p-news__item-title-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: #333;
  line-height: 2.4rem;
}

.p-news__item-arrow {
  width: 0.5rem;
  height: 1rem;
  flex-shrink: 0;
}

.p-news__separator {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

/* ==========================================================================
   ページネーション
   ========================================================================== */
.p-news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.p-news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.p-news-pagination__page:hover {
  background: #f7f4f0;
  opacity: 1;
}

.p-news-pagination__page.is-active {
  background: #337D8A;
  color: #fff;
}

.p-news-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.p-news-pagination__arrow:hover {
  opacity: 0.7;
}

.p-news-pagination__ellipsis {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  color: #333;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  height: 4rem;
}

/* ==========================================================================
   バナー（p-news-page__body の外に配置）
   ========================================================================== */
.p-news-page__banner {
  display: block;
  margin-left: calc(13rem + 7rem);
  /* sidebar幅 + gap */
  margin-top: 4rem;
  transition: opacity 0.3s ease;
}

/* 年別フィルター アクティブ状態 */
.p-news__year-item.is-active .p-news__year-label {
  color: #337D8A;
  font-weight: 700;
}

.p-news-page__banner:hover {
  opacity: 0.85;
}

.p-news-page__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SP対応 (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  .p-news-page {
    padding: 2.4rem 0 8rem;
  }

  .p-news-page__body {
    flex-direction: column;
    gap: 3.2rem;
  }

  .p-news-page__sidebar {
    width: 100%;
    gap: 2.4rem;
  }

  .p-news__filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .p-news__filter-btn {
    width: 100%;
    padding: 0.7rem 0.8rem 0.8rem;
  }

  .p-news__years {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #e5e5e5;
  }

  .p-news__year-item {
    border-top: none;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    padding: 1rem 0.8rem;
  }

  .p-news__year-item:first-child {
    border-top: none;
  }

  .p-news__year-item:nth-child(3n) {
    border-right: none;
  }

  .p-news-page__banner {
    margin-left: 0;
    width: 100%;
  }

  .p-news__item-title-text {
    font-size: 1.6rem;
  }

  .p-news-pagination {
    gap: 0.4rem;
  }

  .p-news-pagination__page,
  .p-news-pagination__arrow {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.4rem;
  }
}