@charset "UTF-8";

.section-gallery {
  max-width: 1240px;
  margin: 200px auto 100px auto;
  padding: 0 15px;
}

.wrap-gallery {
  margin-top: 100px;
}

.p-gallery__item {
  width: 210px;
  margin: 0 auto;
}

.p-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

h2 {
  font-size: 17px;
  font-weight: 200;
  letter-spacing: 0.2em;
}

h4 p {
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
}

.photokinds {
  width: 210px;
}

.south {
  letter-spacing: 0.23em;
}

/* portrateページ　*/

.hana p {
  letter-spacing: 0.3em;
}

/* hotelページ　*/
.anniversary,
.sauna {
  letter-spacing: 0.2em;
}

/* musicページ　*/
.city {
  letter-spacing: 0.15em;
}

.tomorrow {
  line-height: 1.7em;
  letter-spacing: 0.4em;
}


/* 写真の説明文がふわっと現れる　*/
.tooltip-content {
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  color: #333D29;
  padding: 2px 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s ease-in-out;
  font-size: 12px;
  bottom: -45px;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
}


.text-tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

.text-tooltip {
  position: relative;
}


.p-gallery-hover :hover {
  transform: scale(0.9);
  margin: auto 0;
}

.p-gallery__item {
  transition: 0.15s all linear;
  display: block;
  opacity: 0;
  transition: 2s ease-in-out;

}

.p-gallery__item.is-active {
  opacity: 1;
}

/*＝＝＝各項目ボタン*/
.btn {
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  max-width: 420px;
  padding-left: 10px;
  justify-content: start;
}

.sort {
  position: relative;
  /*絶対位置指定*/
  margin-right: 30px;
}

.sort a::after {
  content: "";
  display: inline-block;
  width: 0.5px;
  height: 10px;
  background-color: #999;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -15px;
}

.select {
  color: #999;
}

@media screen and (min-width: 800px) {
  h2 {
    padding-bottom: 20px;
  }

  .p-gallery {
    justify-content: space-between;
  }

  h4 p {
    padding-top: 18px;
  }
}

@media screen and (max-width: 800px) {

  .sort {
    font-size: 14px;
    margin-right: 20px;
    font-weight: 400;
  }

  .photograph {
    font-size: 16px;
    font-weight: 300;
  }

  .scroll {
    font-size: 10px;
  }

  .p-gallery {
    justify-content: space-around;
    gap: 5vw;
  }

  .p-gallery__item {
    width: 160px;
    padding: 20px 0;
  }

  h2 {
    padding-left: 2vw;
  }

  .btn {
    padding-left: 3.3vw;
    max-width: 360px;
  }

  .sort a {
    right: -7px;
  }

  .sort a::after {
    right: -10px;
  }

  .section-gallery {
    margin: 120px auto 100px auto;
    padding: 0 15px;
  }

  .wrap-gallery {
    margin-top: 50px;
  }

  h4 p {
    font-size: 0.67rem;
    letter-spacing: 0.15em;
  }

  .tomorrow .h4p {
    padding-top: 2vw;
  }

  .potato {
    line-height: 2.2em;
  }

  .shimanoyadoya {
    letter-spacing: 0.2em;
  }

  .tooltip-content {
    display: none;
  }

  .photokinds {
    width: 160px;
  }
  
}