body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #333;
}

.main-header {
  background: #eee;
  padding: 1rem;
}

.main-header ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-header a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}

.slideshow img:first-child {
  opacity: 1;
}

.gallery {
  padding: 2rem;
}

.sound-photo {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}


body {
  margin: 0;
}

/* loading setting */
#loading {
  transition: all 1s; /*ローディングにかかる時間*/
  background-color:#EEE ;
  z-index: 999;
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; 
}

.loading-text {
  font-weight: bold;
  text-align: center;
}

.loaded {
  opacity: 0;
  visibility: hidden;
}

/* spinner by spinkit 
https://tobiasahlin.com/spinkit/
*/

.sk-cube-grid {
  width: 40px;
  height: 40px;
  margin: 100px auto;
}

.sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: #333;
  float: left;
  -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
          animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; 
}
.sk-cube-grid .sk-cube1 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s; }
.sk-cube-grid .sk-cube8 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1); 
  }
}

@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1);
  } 
}


#map {
  height: 100vh;
}

/*ふきだしの背景色変更*/
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #488bdd;
  color: #000000;
}

img {
  width: 100%;
}

.leaflet-popup-content-wrapper {
  width: 300px;
}






body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
}

h1 {
  margin-bottom: 30px;
  font-size: 2rem;
}

/* 写真を常に2列で表示・大サイズ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 常に2列固定 */
  gap: 40px;                             /* 間隔も広めに */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.photo-item {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.05);
}

.photo-item p {
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: bold;
}

/* スマホでも2列を維持しつつ縮小表示（縮小優先） */
@media screen and (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列維持 */
    gap: 20px;
  }

  .photo-item {
    padding: 10px;
  }

  .photo-item p {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }
}