/* ページタイトル */
.pagetitle {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--top-button-color);
    color: var(--text-white);
	}

.pagetitle a {
    color: var(--text-white); 
    text-decoration: none;
    display: inline;
}

.year-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.year-tab {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: 0.2s;
  display: inline-flex;      
  align-items: center;     
  justify-content: center;    
 }

.year-tab:hover {
  background: #e8e8e8;
}

.year-tab.is-active {
  background: #004c97; /* 落ち着いた青 */
  color: #fff;
  border-color: #004c97;
  font-weight: bold;
  }

.category-filters {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
 }

.cat-filter {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cat-filter:hover {
  background: #eee;
}

.cat-filter.is-active {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
  font-weight: bold;
}

.month-accordion {
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 10px;
  background: #fafafa;
}

.month-accordion summary {
  cursor: pointer;
  font-weight: bold;
  padding: 8px 0;
  font-size: 15px;
}

.month-accordion[open] {
  background: #f0f6ff; /* 開いた時に少し青みを入れる */
}

.news-card {
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 4px;
  margin: 6px 0;
}

.news-card:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.9em; 
  color: #808080; 
  margin: 0 0 4px;
  }

.news-cat {
  display: inline-block;
  font-size: 12px;
  color: #004c97;
  background: #e6f0fa;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
 }

.news-title {
  font-size: 15px;
  margin: 4px 0 0;
  line-height: 1.4;
}

.news-title a {
  letter-spacing: 0.03em;
}

.news-title a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .year-tabs {
    display: none; /* スマホではタブを隠す */
  }

  .month-accordion summary {
    font-size: 14px;
  }

  .news-title {
    font-size: 14px;
  }
}
/* ==========================================
   フッターを中央（2番目のカラム位置）に配置＆テキスト中央揃え
   ========================================== */

/* フッター内のテキストをすべて中央揃えにする */
.footer-block {
    text-align: center !important;
}

/* PC表示時（768px以上）：グリッドの左から4カラム分空けて中央に配置 */
@media screen and (min-width: 768px) {
    .footer-flex {
        display: flex !important;
        flex-direction: row !important;
    }

    .footer-flex .footer-block {
        /* offset-4 と同等の計算（全12カラム中の左4カラム分の空域） */
        margin-left: 34.6666666667% !important;
        max-width: 30.6666666667% !important;
        flex: 0 0 30.6666666667% !important;
    }
}

/* スマホ表示時（767px以下）：全幅で表示 */
@media screen and (max-width: 767px) {
    .footer-flex .footer-block {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}
