body {
  font-family: "Noto Serif JP", serif;
  background-color: #f9f9f9;
  color: #111;
  line-height: 1.8;
}

.notice-backimage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/hasu-kuro.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -1;
  }

/* ヒーローセクション */
.hero {
  height: 400px;
  background-image: url(../img/koukyouzi/hondou1.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 1px 1px 10px rgb(17, 17, 17);
}

.hero h1 {
  font-size: 45px;
  font-weight: bold;
}

.hero p {
  font-size: 16px;
  margin-top: -10px;
}

/* フィルター */
.filter-bar {
  max-width: 1000px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.filter-bar select {
  padding: 6px 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
}

/* タグバー */
.tag-bar {
  max-width: 1000px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
.tag-button {
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  padding: 5px 12px;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tag-button.is-active {
  background-color: #e6b422;
  color: white;
  border-color: #e6b422;
}

/* ニュースリスト */
.news-list {
  max-width: 1000px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.news-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s;
  border: 2px solid transparent;
}
.news-item:hover {
  transform: scale(1.01);
}
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.news-category {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
}

/* カテゴリ色分け */
.cat-orange {
  background-color: #ffffff;
  border-color: #eb6101 !important;
}
.cat-purple {
  background-color: #ffffff;
  border-color: #4a488e !important;
}
.cat-gray {
  background-color: #ffffff;
  border-color: #949495 !important;
}

/* コンテンツ */
.news-title {
  font-size: 1.1rem;
  font-weight: bold;
}
.news-body {
  font-size: 0.95rem;
  color: #333;
}
.news-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* 読み込みリンク */
.read-more {
  align-self: flex-end;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid;
  transition: background-color 0.3s ease;
}
.read-more.cat-orange {
  border-color: #eb6101;
  background-color: #eb6101;
  color: #ffffff;
}
.read-more.cat-purple {
  border-color: #4a488e;
  background-color: #4a488e;
  color: #ffffff;
}
.read-more.cat-gray {
  border-color: #949495;
  background-color: #949495;
  color: #ffffff;
}
.read-more:hover {
  opacity: 0.8;
}

/* ページネーション */
.pagination {
  max-width: 1000px;
  margin: 2rem auto;
  text-align: center;
}
.pagination button {
  background: #e6b422;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 5px;
  font-family: "Noto Serif JP", serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.pagination button.active,
.pagination button:hover {
  background: #cdaa28;
  color: #fff;
}

@media (max-width: 800px) {
  .filter-bar,
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero {
    height: 200px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
}
