body {
  margin: 0;
  font-family: sans-serif;
  background-image: url('parts/green.gif'); /* 画像ファイル名を指定 */
  background-repeat: repeat;               /* タイル状に繰り返す */
  background-size: auto;                   /* サイズ変更しない */
  background-position: top left; 
}

header, footer {
  background-color: rgba(51, 51, 51, 0.0);
  color: white;
  padding: 1em;
  text-align: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  min-height: 80vh;
  background-color: rgba(255, 255, 255, 0.0); /* 背景を少し透過 */
}

.sidebar {
  width: 150px;
  padding: 1em;
  background-color: rgba(240, 240, 240, 0.0);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  display: block;
  padding: 4px;
  background-color: #046936;
  color: rgb(222, 236, 13);
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.sidebar a:hover {
  background-color: #031e0e;
}

.content {
  flex: 1;
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.0);
}
.header-image {
  display: block;
  margin: 0 auto;
  max-width: 600px; /* 最大幅を指定 */
  width: 100%;       /* 親要素に合わせて縮小 */
  height: auto;      /* 縦横比を維持 */
}
.table-large {
  font-size: 24px;
}
/* レスポンシブ対応 */
.menu-toggle {
  display: none;
  background-color: #046936;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 最大2カラム */
  gap: 20px;
  padding: 20px;
}

.image-grid figure {
  margin: 0;
  text-align: center;
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.image-grid figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-weight: bold;
}

/* スマホ時にメニューを隠す */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin: 1em auto;
  }

  .sidebar {
    display: none;
    width: 100%;
  }

  .sidebar.active {
    display: block;
  }

  .container {
    flex-direction: column;
  }
}
