/* メインビジュアル */
.main-visual {
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('img/mv.jpg'); /* 白いマスクを追加 */
  /* 画像全体を表示し、アスペクト比を維持 */
  background-size: cover; /* 横幅いっぱいに広がるように戻す */
  /* 画像を繰り返さない */
  background-repeat: no-repeat;
  background-position: center top; /* 画像の上端を基準に表示 */
  color: #000; /* テキストの色を黒に変更 */
  text-align: left;
  display: flex;
  justify-content: flex-start; /* コンテンツを左に配置 */
  align-items: flex-start; /* テキストを上揃えに変更 */
  height: 650px; /* 高さを調整 */
}

.main-visual-content {
  max-width: 1200px;
  /* 左上からの余白を調整 */
  padding: 60px 120px; /* 左からの余白を増やして調整 */
}

.main-visual h1 {
  font-family: 'Zen Old Mincho', serif; /* フォントを変更 */
  font-size: 2.5rem;
  font-weight: normal; /* 太字を解除 */
  line-height: 1.6;
}

/* お知らせセクション */
.news {
  padding: 60px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.news h2 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 40px;
}

/* お知らせフィルター */
.news-filter {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-button {
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 999px; /* 角丸 */
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter-button.active,
.filter-button:hover {
  background: #38a6cc; /* テーマカラー */
  color: #fff;
  border-color: #38a6cc;
}

/* トップページのお知らせセクション全体 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 60px; /* メインビジュアルとの間に余白を追加 */
}

/* 各ニュース項目をカードデザインに変更 */
.news-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: left;
}

.news-item time {
  width: 120px;
  flex-shrink: 0;
  font-weight: 500;
  color: #555;
}

.news-title {
  flex-grow: 1;
  font-weight: 600;
}

.news-category {
  width: auto; /* 幅を自動調整に変更 */
  min-width: 180px; /* 最小幅を設定 */
  flex-shrink: 0;
  text-align: left;
  padding: 0 20px; /* 左右の余白を調整 */
  color: #38a6cc; /* カテゴリの色をテーマカラーに */
  font-weight: 500;
}

/* レスポンシブ表示の最適化 (1450px以下) */
@media (max-width: 1450px) {
  /* メインビジュアル */
  .main-visual {
    height: 400px;
  }

  .main-visual-content {
    padding: 40px 20px;
  }

  .main-visual h1 {
    font-size: 1.6rem;
  }

  /* お知らせセクション */
  .news {
    padding: 40px 20px;
  }

  .news h2 {
    font-size: 1.6rem; /* 文字サイズ調整 */
  }

  .news-item {
    padding: 1rem 0;
  }

  .news-title {
    font-size: 1rem; /* タイトルの文字サイズを調整 */
  }

  .view-more {
    text-align: center; /* ボタンを中央揃えに */
    padding-right: 0;
  }
}

/* 「その他のお知らせ」ボタンの調整 */
.view-more {
  /* ボタンを中央に配置 */
  text-align: left;
  margin-top: 40px;
  margin-bottom: 60px;
}

.view-more-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
  border: none; /* 枠線を削除 */
}

.view-more-button:hover {
  background-color: var(--color-primary-dark);
}
