/* PCでもスマホでも見やすくするための基本設定 */
body {
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px; /* PCで見るときに横に広がりすぎないようにします */
  margin: 0 auto;   /* 画面の中央に配置します */
  padding: 20px;    /* 端に余白を作ります */
}

h1 {
  border-bottom: 2px solid #005bac;
  padding-bottom: 10px;
}

/* 記事全体の枠（詳細ページ・一覧共通） */
.news-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* 画像などの中身がはみ出さないようにする */
img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------
   ナビゲーションボタン（前へ・次へ）の設定
------------------------------------------- */
.news-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* 上側のボタンエリア：下に線を引く */
.news-navigation.top {
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

/* 下側のボタンエリア：上に線を引く */
.news-navigation.bottom {
  border-top: 2px solid #eee;
  margin-top: 30px;
}

.nav-button {
  padding: 8px 16px;
  background-color: #005bac;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.nav-button.disabled {
  background-color: #ccc;
  pointer-events: none; /* クリック不可にする */
}

/* -------------------------------------------
   トップページ・お知らせ一覧の設定
------------------------------------------- */
/* 最新お知らせ枠 */
.latest-news {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff9e6;
  border: 1px solid #ffeeba;
  border-radius: 8px;
}

.latest-news h2 {
  font-size: 1.2em;
  color: #856404;
  margin-top: 0;
}

.latest-news-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9em;
  color: #666;
}

.more-link {
  text-align: right;
  margin-bottom: 0;
}

.more-link a {
  color: #005bac;
  font-weight: bold;
  text-decoration: none;
}

/* お知らせ一覧ページ（news-list） */
.news-index-list {
  list-style-type: none;
  padding: 0;
}

.news-index-list li {
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.news-index-list a {
  color: #005bac;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

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

/* リンクで飛んできた際の効果 */
.news-item:target {
  border: 2px solid #005bac;
  background-color: #f0f7ff;
}
