body {
  margin: 0;
  background: #EFEBDD;
  font-family: 'Meiryo UI', sans-serif;
}

h1 {
  font-size: 2em;
  text-align: center;
  padding: 1em 0 0.3em;
  background-color: #004970;
  color: #EFEBDD;
  margin: 0;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1em;
}

.carousel-container {
  position: relative;
  background: white;
  padding: 2em;
  border: 2px solid #A59EB1;
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  display: none;
  text-align: center;
}

.slide.active {
  display: block;
}

.slide h2 {
  margin: 0.5em 0;
  font-size: 1.4em;
  text-align: center;
}

.slide p {
  margin-bottom: 1em;
}

.slide img {
  width: 45%;
  max-width: 300px;
  margin: 0.5em;
  cursor: pointer;
  border: 1px solid #ccc;
}

.nav-buttons {
  text-align: center;
  margin-top: 1em;
}

.nav-buttons button {
  font-size: 1.1em;
  padding: 0.4em 1em;
  margin: 0 1em;
  background-color: #004970;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.nav-buttons button:hover {
  background-color: #A59EB1;
}

/* モーダル拡大画像 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  border: 3px solid white;
}

.modal:active {
  display: none;
}

.title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin: 2em 0 1em;
  padding: 0 1em;
}

.title-list a.title-link {
  display: inline-block;
  padding: 0.4em 1em;
  background-color: #004970;
  color: #EFEBDD;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.title-list a.title-link:hover {
  background-color: #A59EB1;
}

.title-list a.active {
  background-color: #A59EB1;
  color: #004970;
  font-weight: bold;
}

/* ===== フッター ===== */
footer {
  background-color: #A59EB1;
  color: #EFEBDD;
  padding: 1em;
  text-align: center;
  width: 100%;
  margin-top: 2em;
}


