@charset "UTF-8";

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* 横スクロール禁止 */
  scroll-behavior: smooth;
}

.home body {
  background-image: url(images/background.png);
}

p {
  color: #FFF;
}
/*menu*/
#nav {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-right: 40px;
}

.hamburger {
  display: none; /* PCでは非表示 */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
  position: relative;
  margin-left: auto;
  right: 30px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ffffff; 
  transition: 0.3s;
}

#nav li {
  display: inline-block;
  text-align: center;
  margin-left: 20px;
  margin-right: 10px;
}

body.home #nav li a {
  font-weight: bold;
  color: #FFF;
  text-decoration: none;
}

body.gallery #nav li a,
body.map #nav li a,
body.graffiti #nav li a {
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.title {
  width: 200px;
  height: 10px;
  position: f;
}
/*mv*/
.mv {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.item {
  display: flex;
  gap: 0;
  justify-content: center;
}

.item img {
  max-width: 100%;
  height: 100vh;
  display: block;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;  /* 画像より前面 */
  color: white; /* 背景画像上でも見えるように */
}

.about {
  position: relative;
}
.about img {
  filter: grayscale(100%);
  height: 700px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}
.about h2 {
  position: absolute;
  top: 1%;
  margin-left: 5%;
  /*transform: translate(-50%, -50%);*/
  font-size: 2.5rem;
  color: rgb(255, 255, 255);
  z-index: 1;
}
.about p {
  font-size: large;
  position: absolute;
  color: #ffffff;
  top: 20%;
  text-align: center;
  z-index: 2;
  margin-left: 2vw;
  margin-right: 2vw;
}

.gallery h2 a {
  color: #FFF;
  margin-left: 5%;
  font-size: 2.5rem;
}

/**/
body {
  margin: 0;
  margin-left: auto;
  margin-right: auto; 
  background-color: #000;
}

body.gallery,
body.about,
body.map {
    margin: 0;
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto; 
}

body a {
    text-decoration: none;
    color: black;
}

#photo {
    height: 300px;
 }

ul li {
    list-style: none;
 }

/*index gallery*/
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
    to {
    transform: translateX(-100%);
  }
  }
  .scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .scroll-infinity__list {
    display: flex;
    padding: 0
  }
  .scroll-infinity__list--left {
    animation: infinity-scroll-left 80s infinite linear 0.5s both;
  }
  .scroll-infinity__item {
    width: calc(100vw / 5);
  }
  .scroll-infinity__item>img {
    width: 300px;
    height: auto;
  }


/*map*/
 #map {
    height: 75vh;
    max-width: 1100px;
    width: 75vw;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    border: #ffffff 2px solid;
 }

 .leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #000;
    color: #FFF;
 }

.popup-img {
  width: 300px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/*gallery*/
img {
  width: 100%;
}

.content {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.card-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.card-list {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 350px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.card-list img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}


/*ホバーモノクロ*/
p a img{ filter:grayscale(100%); }
p a img:hover{
	filter:grayscale(0);
	transition:0.3s;
}
p a{ overflow:hidden; }
p a img:hover{
	transform:scale(1.01);
	transition:0.3s;
}

.fade-in {
  opacity: 0;
  visibility: hidden;
  transform: translateY(80px);
  transition: all 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

section {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px;
}
/*タブレット*/
@media screen and (max-width: 840px) {
  .item {
    flex-direction: column;
    align-items: center;
  }
  .item img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
  }

  /*gallery*/
.card-list {
  width: calc(50% - 10px);
}

}




/*スマホ*/
@media screen and (max-width: 600px) {
  
  .item {
    flex-direction: column;
    align-items: center;
  }
  .item img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
  }

  /* ナビゲーションを縦並びに変更 */
  #nav {
    display: none; /* 初期は隠す */
    flex-direction: column;
    background: rgba(red, green, blue, alpha);
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    height: calc(100vh - 60px);
    padding: 20px;
    /*box-shadow: -2px 0 5px rgba(0,0,0,0.2);*/
    z-index: 1000;
  }
  #nav.active {
    display: flex; 
  }

  .hamburger {
    display: flex; 
  }
  
  /* ハンバーガー → × */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
   
  
    /* スマホ用リンクデザイン */
    #nav li a {
      color: #333;
      padding: 10px 0;
    }

  .title {
    margin-top: 0px;
    margin-left: 0px;
  }
  .title img {
    width: 150px;
  }

  /* 無限スクロール対応 */
  .scroll-infinity__list--left {
    animation: infinity-scroll-left 60s infinite linear;
  }

  .scroll-infinity__item {
    width: calc(100vw / 2); /* 2枚ずつ表示 */
    flex-shrink: 0;
  }

  .scroll-infinity__item > img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* マップサイズ調整 */
  #map {
    width: 90%;
    height: 60vh;
  }

  .popup-img {
    width: 100%;
  }

  /* セクション余白調整 */
  section {
    margin: 50px 10px;
    padding: 0 10px;
  }

  /* ギャラリー画像 */
  .card-wrap {
    flex-direction: column;
    align-items: center;
  }

  .card-list {
    width: 90%;
    max-width: 100%;
  }

  
}


