/* ── モーダル背景 ── */
.news-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
/* ── モーダル本体 ── */
.news-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#news-modal-body h2{
	font-size: 17px;
	font-weight: bold!important;
}

/* ── 閉じるボタン ── */
.news-modal-close {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
/* ── 新着情報リスト ── */
.news-updates {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.news-label {
  background-color: #2cb9b0;
  color: #fff;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 12px;
  white-space: nowrap;
}
.news-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  flex: 1;
}
.news-date {
  margin-right: 8px;
  color: #999;
  font-size: 13px;
}
.news-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #ccc;
}
.news-none {
  color: #666;
  font-style: italic;
}


/* モーダル内の投稿日 */
.news-modal-date {
  margin: 0 0 1em;
  color: #666;
  font-size: 0.9em;
}

/* モーダル内に出る img タグをレスポンシブ化 */
.news-modal-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
}

/* ── モバイル時にカテゴリ・日付ごと改行 ── */
@media screen and (max-width: 768px) {
  /* 横並びを解除して縦積みに */
  .news-item {
    display: block;
    padding: 8px 0;
  }
  /* カテゴリラベル */
  .news-label {
    display: block;
    margin-bottom: 4px;
  }
  /* リンク全体をブロック化 */
  .news-link {
    display: block;
  }
  /* 日付を改行 */
  .news-date {
    display: block;
    margin-bottom: 4px;
    color: #999;
    font-size: 0.9em;
  }
  /* タイトルを改行 */
  .news-title {
    display: block;
    font-size: 1em;
    margin-bottom: 4px;
  }
  /* 矢印はタイトル行の右端に */
  .news-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 1.2em;
    vertical-align: middle;
  }
}
