/* ==========================================
   お知らせページ全体レイアウト
   ========================================== */
.news-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  box-sizing: border-box;
}

.news-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.news-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  /* font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; */
  font-family: var(--font-mincho);
  font-size: 2.2rem;
  color: var(--color-shinto);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* 絞り込みバー */
.filter-bar {
  background: #f9f8f6;
  border: 1px solid #e0dacc;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-info {
  color: #666;
  font-size: 0.95rem;
}

.filter-reset-btn {
  color: #8b0000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
}

/* 記事カード */
.news-card {
  background: #ffffff;
  border: 1px solid #e0dacc;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-card-title {
  font-size: 1.3rem;
  margin: 0 0 12px 0;
  color: #2b2b2b;
  font-weight: bold;
  width: 100%;
  text-align: left;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

.meta-divider {
  color: #ccc;
}

.news-category-link {
  text-decoration: none;
}

.news-category-badge {
  background-color: #8b0000;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 本文＆画像回り込み */
.news-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  /* white-space: pre-wrap; */
  text-align: left;
}

.news-body-text img {
  float: left !important;
  max-width: 260px !important;
  height: auto !important;
  margin: 4px 16px 12px 0 !important;
  border-radius: 4px;
}

.news-body-text::after {
  content: "";
  display: table;
  clear: both;
}

.news-empty-msg {
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 1px solid #e0dacc;
  border-radius: 8px;
}

/* ==========================================
   サイドバー
   ========================================== */
.news-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e0dacc;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-widget-title {
  background: #f4f0ea;
  padding: 12px 16px;
  font-weight: bold;
  color: #444;
  border-bottom: 1px solid #e0dacc;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-item {
  border-bottom: 1px solid #eee;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar-count-badge {
  font-size: 0.8rem;
  color: #888;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 写真ギャラリーのレイアウト設定 */
.image-gallery {
  display: flex;
  flex-wrap: wrap;       /* 画面幅に応じて折り返す */
  gap: 10px;             /* 画像同士の間隔 */
  align-items: center;   /* 上下の中央揃え（または flex-end で下揃え） */
  margin-top: 15px;
}

.image-gallery img {
  height: 150px;         /* 👈 画像の高さを統一（お好みのサイズに変更可） */
  width: auto;          /* 横幅は縦横比を維持して自動調整 */
  object-fit: cover;    /* 綺麗に収める */
  border-radius: 6px;   /* 角を少し丸くする場合（お好みで） */
}

/* ==========================================
   レスポンシブ（スマホ対応）
   ========================================== */
@media (max-width: 768px) {
  .news-container {
    flex-direction: column !important;
  }
  .news-sidebar {
    width: 100% !important;
  }
}
/* ===================================================
   お知らせタイトルの省略表示（レスポンシブ対応）
=================================================== */
.news-title {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;      /* 改行を防ぐ */
  overflow: hidden;         /* はみ出しを隠す */
  text-overflow: ellipsis;  /* 末尾を「…」にする */
  
  /* スマホ縦向き（初期値）：全角約10文字分 */
  max-width: 10em;
}

/* タブレット・スマホ横向き（幅600px以上） */
@media (min-width: 600px) {
  .news-title {
    max-width: 18em;        /* 約18文字分まで広げる */
  }
}

/* PC（幅992px以上） */
@media (min-width: 992px) {
  .news-title {
    max-width: 26em;        /* 約26文字分まで広げる */
  }
}