body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: radial-gradient(ellipse at top, #1a1a2e 0%, #000000 100%);
  color: white;
}

header, footer {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  text-align: center;
  padding: 1em;
  z-index: 2;
  position: relative;
}

nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  padding: 10px 0;
}
nav#navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav#navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
nav#navbar a:hover {
  text-decoration: underline;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 600px;
  overflow: hidden;
  z-index: 2;
}
.slide {
  position: absolute;
  width: 100%;
  height: 600px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}
.countdown-text h2 {
  margin-bottom: 10px;
}
.countdown-timer {
  font-size: 2em;
  text-align: center;
  font-weight: bold;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}
.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-title {
  padding: 10px;
  font-weight: bold;
}

.center {
  text-align: center;
  margin: 20px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
#refireBtn {
  background: #ff4081;
  color: white;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#starsCanvas {
  z-index: 0;
}


#fireworksCanvas {
  z-index: 9999; /* 最前面に表示 */
  transition: opacity 2s ease;
}

#cultureImpact {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  z-index: 2;
  position: relative;
}

#cultureImpact h2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 20px;
  color: white;
}

#cultureImpact h3 {
  font-size: 1.3em;
  margin-top: 20px;
  color: #ffcc00;
}

#cultureImpact p {
  line-height: 1.6;
  color: white;
}

#styleDifferences {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  z-index: 2;
  position: relative;
}

#styleDifferences h2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.style-card {
  background-color: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: white;
}

.style-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #ffcc00;
}

.style-card p {
  font-size: 0.95em;
  line-height: 1.6;
}

.festival-expanded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media screen and (max-width: 900px) {
  .festival-expanded-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .festival-expanded-grid {
    grid-template-columns: 1fr;
  }
}

.festival-card {
  background-color: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.festival-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

.festival-card h3 {
  font-size: 1.2em;
  color: #ffcc00;
  margin-bottom: 10px;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.festival-card p {
  font-size: 0.95em;
  margin-bottom: 10px;
  line-height: 1.6;
}

.festival-card ul {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 0.9em;
  line-height: 1.6;
}
#saitamaFestivalExpanded h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}



img {
    width: 800px;
    height: auto;
}
.image-box {
    position: relative;
    display: inline-block;
}

.image-box img {
    display: block;
}

.hover-area {
    position: absolute;
    top: 235px; /* ← ここで表示エリアの位置を調整 */
    left: 260px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.hover-text {
    white-space: nowrap;
    position: absolute;
    top: -35px;
    left: -70px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    display: none;
    font-size: 25px;
    font-family: 'HG正楷書体-PRO';
}
.hover-area:hover .hover-text {
    display: block;
}

.titibu-area {
    position: absolute;
    top: 221px; /* ← ここで表示エリアの位置を調整 */
    left: 250px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .titibu-area:hover .hover-text {
        display: block;
    }

.nagatoro-area {
    position: absolute;
    top: 154px; /* ← ここで表示エリアの位置を調整 */
    left: 271px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.nagatoro-area:hover .hover-text {
    display: block;
}


.hukaya-area {
    position: absolute;
    top: 127px; /* ← ここで表示エリアの位置を調整 */
    left: 365px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.hukaya-area:hover .hover-text {
    display: block;
}

.kumagaya-area {
    position: absolute;
    top: 120px; /* ← ここで表示エリアの位置を調整 */
    left: 437px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.kumagaya-area:hover .hover-text {
    display: block;
}

.higasi-area {
    position: absolute;
    top: 216px; /* ← ここで表示エリアの位置を調整 */
    left: 438px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .higasi-area:hover .hover-text {
        display: block;
    }

.iruma-area {
    position: absolute;
    top: 363px; /* ← ここで表示エリアの位置を調整 */
    left: 430px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .iruma-area:hover .hover-text {
        display: block;
    }

.konosu-area {
    position: absolute;
    top: 177px; /* ← ここで表示エリアの位置を調整 */
    left: 505px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .konosu-area:hover .hover-text {
        display: block;
    }

.ageo-area {
    position: absolute;
    top: 262px; /* ← ここで表示エリアの位置を調整 */
    left: 537px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .ageo-area:hover .hover-text {
        display: block;
    }


.ayaka-area {
    position: absolute;
    top: 378px; /* ← ここで表示エリアの位置を調整 */
    left: 565px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .ayaka-area:hover .hover-text {
        display: block;
    }

.ina-area {
    position: absolute;
    top: 233px; /* ← ここで表示エリアの位置を調整 */
    left: 583px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .ina-area:hover .hover-text {
        display: block;
    }

.saitama1-area {
    position: absolute;
    top: 285px; /* ← ここで表示エリアの位置を調整 */
    left: 594px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .saitama1-area:hover .hover-text {
        display: block;
    }

.saitama2-area {
    position: absolute;
    top: 326px; /* ← ここで表示エリアの位置を調整 */
    left: 642px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
    .saitama2-area:hover .hover-text {
        display: block;
    }

.saitama3-area {
    position: absolute;
    top: 276px; /* ← ここで表示エリアの位置を調整 */
    left: 645px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
    .saitama3-area:hover .hover-text {
        display: block;
    }

.toda-area {
    position: absolute;
    top: 376px; /* ← ここで表示エリアの位置を調整 */
    left: 619px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

    .toda-area:hover .hover-text {
        display: block;
    }