/* 全体設定 */
body {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Kiwi Maru', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ヘッダー */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
}

/* ロゴ */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2C6E49;
}

.logo a {
  color: #2C6E49;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: none;
  text-shadow: none;
}

.logo a:hover {
  color: #A7C957;
}

/* ナビリンク */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap; /* 折り返さないようにする */
  margin: 0;
  padding: 0;
  gap: 0.8rem;
}

.nav-links li {
  margin-left: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #2C6E49;
  font-weight: 500;
  font-size: 0.95rem; /* 少し小さめで詰める */
  padding: 0.5rem 0;
  position: relative;
  font-family: 'Kiwi Maru', 'Noto Serif JP', serif;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #A7C957;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #A7C957;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ヒーローセクション（森画像） */
.hero {
  background: url('https://thumbs.dreamstime.com/b/aerial-view-forest-full-frame-closeup-top-green-surface-pattern-333847747.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  animation: zoomEffect 20s ease-in-out infinite alternate;
}

@keyframes zoomEffect {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-text {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2C6E49;
}

@media screen and (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
}
.hero-text p {
  font-size: 1.2rem;
  color: #444;
}

/* メインコンテンツ */
.content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 40px 1rem 0;
}

h2 {
  font-size: 1.6em;
  font-weight: 500;
  font-family: 'Kiwi Maru', serif;
  color: #2C6E49;
  margin-bottom: 1em;
  text-align: left;
}

h1, h2, .logo {
  font-family: 'Kiwi Maru', serif;
}

/* フッター */
footer {
  text-align: center;
  padding: 2rem 0;
  color: #777;
  background-color: #f0f0f0;
  margin-top: 4rem;
}

/* ポスター展 */
.poster-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center; 
  /*  justify-content: flex-start; /* 左寄せで自然な並び */
}

.poster {
  max-height: 250px;
  max-width: 250px;
  /* width: auto; */
  /* height: auto; */
  object-fit: contain;
  display: block;
  background: none  /* #fff; */
  border: none /* 1px solid #ccc; v
  border-radius: none;   /* 8px; */
  box-shadow: none /* 0 4px 8px rgba(0,0,0,0.15);  */
}

/* モーダル背景 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  display: inline-block;
}

/* 拡大画像 */
.modal-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  background: #fff;
}

/* 閉じるボタン */
.close-button {
  position: absolute;
  top: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 24px;
  cursor: pointer;
  line-height: 35px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.close-button:hover {
  background: #eee;
}

/* 新着情報 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.news-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-left: 5px solid #A7C957;
  border-bottom: 1px solid #ccc;
}

.news-item h3 {
  margin: 0 0 0.5rem;
  color: #2C6E49;
  font-family: 'Kiwi Maru', serif;
}

.news-item p {
  margin: 0;
  color: #555;
}

/* ハンバーガーメニューアイコン */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #2C6E49;
  transition: all 0.3s ease;
}

/* メディアクエリ：画面幅768px以下でメニューを隠しハンバーガーを表示 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 1.5rem;
    background-color: #ffffffee;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }
}

/* history 年表 */
/* より洗練された年表テーブルデザイン */
.history-table {
  margin-top: 40px;
}

.history-table h3 {
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 600;
  color: #2c5d42;
}

.history-table table { 
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.history-table table {
  font-size: 0.9em;  /* ← ここで調整する */
}

.history-table thead {
  background-color: #e0f2e9;
}

.history-table th,
.history-table td {
  padding: 16px;
  text-align: left;
}

.history-table th {
  font-weight: bold;
  color: #2c5d42;
  border-bottom: 2px solid #cde6d7;
}

.history-table tr {
  transition: background-color 0.3s ease;
}

.history-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.history-table tbody tr:hover {
  background-color: #f0fdf6;
}

/* モバイル対応 */
@media screen and (max-width: 600px) {
  .history-table table,
  .history-table thead,
  .history-table tbody,
  .history-table th,
  .history-table td,
  .history-table tr {
    display: block;
  }

  .history-table thead {
    display: none;
  }

  .history-table tr {
    margin-bottom: 20px;
    border-bottom: 2px solid #e0f2e9;
    padding-bottom: 10px;
  }

  .history-table td {
    position: relative;
    padding-left: 55%;
    font-size: 0.95em;
  }

  .history-table td::before {
    position: absolute;
    top: 12px;
    left: 15px;
    width: 40%;
    padding-right: 10px;
    font-weight: bold;
    white-space: nowrap;
    color: #2c5d42;
  }

  .history-table td:nth-of-type(1)::before { content: "年度"; }
  .history-table td:nth-of-type(2)::before { content: "主な開催内容・会場"; }
  .history-table td:nth-of-type(3)::before { content: "備考"; }
}

.history-table td:first-child,
.history-table th:first-child {
  width: 20%;
  min-width: 120px;
}

.construction {
  padding: 6em 2em 4em; /* ← ヘッダーにかぶらないように上に余白 */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.construction h1 {
  font-size: 2em;
  margin-bottom: 2rem;
  color: #2C6E49;
}

/* エコポスター展用の装飾強化 */
.eco-poster-section p {
  color: #444; 
  margin-bottom: 1.5em;
  line-height: 1.9;
  font-size: 1rem;
}

.eco-poster-section strong {
  display: inline-block;
  color: #2C6E49;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}

.eco-poster-section u {
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #A7C957;
  color: #2C6E49;
}

.eco-poster-section span.highlight {
  color: #c0392b;
  font-weight: bold;
}

.eco-poster-section a {
  color: #2C6E49;
  text-decoration: underline;
}

.eco-poster-section a:hover {
  color: #A7C957;
}

.download-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #2C6E49;
  color: #fff !important;  /* ← これが重要です */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}
.download-button:hover {
  background-color: #A7C957;
  color: #fff !important;
}



