/* セクション全体の共通デザイン */
.section {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto 4rem;
}

.section h2 {
  font-size: 1.6rem;
  color: #2D8CFF;
  text-align: center;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #2D8CFF;
  margin: 0.6rem auto 0;
  border-radius: 1px;
}

/* お知らせリスト全体 */
.news-box {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
}

/* NEWSリスト */
.news-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

/* 各お知らせアイテム */
.news-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(45, 140, 255, 0.2);
  background-color: #f9fbff;
}

/* 日付・タイトル装飾 */
.news-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.3rem;
}
.news-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1A1A1A;
  transition: color 0.3s;
  text-decoration: none;
  cursor: pointer;
}
.news-item:hover .news-title,
.news-title:hover {
  color: #2D8CFF;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(120deg, rgba(45,140,255,0.12) 0%, rgba(0,0,0,0.64) 100%);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  animation: modalBgIn 0.38s cubic-bezier(.4,.85,.46,1.12);
}
@keyframes modalBgIn {
  0% { background: rgba(0,0,0,0); }
  100% { background: linear-gradient(120deg, rgba(45,140,255,0.12) 0%, rgba(0,0,0,0.64) 100%);}
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 2.3rem 2rem 2rem 2rem;
  border-radius: 20px;
  max-width: 540px;
  width: 94vw;
  box-shadow:
    0 10px 32px rgba(45,140,255,0.22),
    0 2px 16px rgba(0,0,0,0.08);
  text-align: left;
  position: relative;
  animation: modalFadeIn 0.4s cubic-bezier(.43,.31,.53,.93);
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  color: #162445; /* 本文色をしっかりした濃いネイビーに */
}

/* タイトル */
#modal-title {
  font-size: 1.32rem;      /* さらに大きく */
  font-weight: 800;
  color: #1a1a1a;          /* くっきり黒に近い色 */
  border-left: 4px solid #2D8CFF;
  padding-left: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg,rgba(45,140,255,0.09) 0%,transparent 70%);
  border-radius: 2px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
}
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: #2D8CFF;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.18s, background 0.22s;
  padding: 0.3em 0.65em;
  border-radius: 50%;
  line-height: 1;
}
.modal-close:hover {
  background: #eaf3ff;
  color: #1765b8;
}
/* 日付 */
#modal-date {
  font-size: 1.05rem;
  color: #3a5171;
  text-align: right;
  margin-bottom: 1.15rem;
  letter-spacing: 0.05em;
}

/* 本文 */
#modal-content {
  font-size: 1.16rem;     /* ←本文大きめ */
  color: #162445;         /* ↑コントラストUP */
  line-height: 2.15;      /* ←行間ゆったり */
  letter-spacing: 0.06em; /* ←字間もやや広く */
  padding-top: 0.5rem;
  padding-bottom: 0.7rem;
  word-break: break-word;
  white-space: pre-line;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Sawarabi Mincho', serif;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.page-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #f0f0f0;
  color: #333;
  font-weight: bold;
  transition: all 0.3s;
}
.page-btn:hover,
.page-btn.active {
  background: #2D8CFF;
  color: #fff;
  box-shadow: 0 0 10px rgba(45, 140, 255, 0.4);
}
.page-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* 下余白調整 */
.container {
  padding-bottom: 120px;
  scroll-margin-top: 120px;
}
.footer {
  padding-bottom: 100px;
}
/* 追加が必要なら（共通CSSが未定義の場合のみ）
   .site-nav は .open で表示、バックドロップも簡易実装 */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; }
  .nav-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 9;
  }
  /* ヘッダーとボタンが背面に隠れないように */
  .site-header, .hamburger { position: relative; z-index: 10; }
}
