/* =========================================================
   共通
========================================================= */
.page-btn {
  display: inline-flex !important;
  opacity: 1 !important;
}

/* =========================================================
   サブカテゴリー（アコーディオン）
========================================================= */
/* フィルター全体 */
.news-filter-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* サブカテゴリブロック */
.news-subcat-accordion {
  width:100%;
  display: flex;
  flex-direction: column;
  align-items: center;

}

/* トグルボタン */

.news-subcat-toggle {
  width: 260px;              
  padding: 10px 18px;  
  border: 1px solid #6ab5bf;
  background: #fff;
  color: #6ab5bf;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin: 0 auto 20px;
  font-size: 14px;
  cursor: pointer;
}



/* ラベル文字 */
.news-subcat-toggle .sub-label {
  font-size: 14px;
  line-height: 1;
}

/* 矢印 */
.news-subcat-toggle .sub-aw {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* =========================================================
   カテゴリーボタン一覧
========================================================= */
/* カテゴリーボタン一覧（PC基本） */
.news-filter-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 800px;
  margin: 0 auto 20px auto;
}
/* 各ボタン */
.news-filter-btn {
width:100%;
  padding: 10px 18px;
  background: #6ab5bf;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}



/* hover */
.news-filter-btn:hover {
opacity: 0.8;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* 通常ボタン hover：色反転 */
.news-filter-btn:not(.all):hover {
  background: #fff;
  color: #6ab5bf;
}

/* =========================================================
   「News のすべて」ボタン
========================================================= */
.news-filter-btn.all {
  background: #fff;
  color: #6ab5bf;
  border: 1px solid #6ab5bf;
  display: inline-block;
width: 260px;
  padding: 10px 25px;
}

.news-filter-btn.all:hover {
  background: #6ab5bf;
  color: #fff;
}

/* =========================================================
   下段（全件＋開催報告）
========================================================= */
.news-filter-buttons-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 32px auto 0;
  max-width: 1044px;
  padding-bottom: 50px;
}

.event-report-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.event-report-check input[type="checkbox"] {
  margin: 0;
}

.event-report-check span {
  line-height: 1;
}

/* =========================================================
   News一覧エリア
========================================================= */
#news-filter-result {
  max-width: 1040px;
  margin: 0 auto 80px;
  padding: 40px 32px;
  background: #fff;
  box-sizing: border-box;
}

/* =========================================================
   ページネーション
========================================================= */
.ajax-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.ajax-pagination .page-btn {
  position: relative;
  padding: 6px 10px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}

.ajax-pagination .page-btn:hover {
  opacity: 0.7;
}

.ajax-pagination .page-btn.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: #000;
}

.page-name {
  color: #6ab5bf;
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.page-no {
  font-family: "Jost", sans-serif;
  font-size: 24px;
  font-weight: 400;
}

#news-pagination-area {
  padding-bottom: 40px;
}

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

  /* ============================
     SP時の共通基準幅（トグル・サブカテゴリ・Newsのすべて）
  ============================ */
  .news-subcat-accordion,
  .news-filter-buttons-all {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ============================
     サブカテゴリーを選ぶ（トグル）
  ============================ */
  .news-subcat-toggle {
    width: 100%;
    padding: 12px 16px;
    margin: 0 auto 12px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* ============================
     サブカテゴリーボタン一覧
  ============================ */
  .news-subcat-accordion .news-filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
	width: 100%;
    margin: 0 auto 20px;
  }

  /* サブカテゴリーボタン（共通） */
  .news-filter-btn {
width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* ============================
     下段（Newsのすべて＋開催報告）
  ============================ */
  .news-filter-buttons-all {
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 0;
    align-items: stretch;
  }

  /* News のすべて */
  .news-filter-btn.all {
width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* ============================
     News一覧：1列表示（SP）
  ============================ */
  .custom-news-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .news-card {
    width: 100% !important;
  }

  /* 白背景エリア余白 */
  #news-filter-result {
    padding: 24px 16px;
    margin-bottom: 40px;
  }

  /* ============================
     ページネーション（SP最適化）
  ============================ */
  .ajax-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 16px;
    font-size: 14px;
  }

  .ajax-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    margin: 0 !important;
  }

  .ajax-pagination .page-btn.active::after {
    bottom: 4px;
  }
/* サブカテゴリ一覧を「中だけスクロール」 */
  .news-subcat-accordion .news-filter-buttons {
    max-height: 60vh;           /* 画面の60%まで */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  /* スクロール中に誤タップしにくくする */
  .news-filter-btn {
    touch-action: manipulation;
  }

  /* アコーディオン内のボタンだけ横幅を少し小さく */
  .news-subcat-accordion .news-filter-btn {
    width: 100%;
    max-width: 260px;   /* ← ここで幅を調整 */
    margin: 0 auto;     /* ← 中央寄せ */
  }

	
}
