@charset 'utf-8';

/*---------------------------------------------------
mv
---------------------------------------------------*/
.page_mv::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: url('../img/gallery1.webp');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.1);
  background-blend-mode: darken;
}

.page_title {
  position: absolute;
  top: 50%;
  left: 150px;
  transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
  .page_title {
    top: 40%;
    left: 30px;
    transform: translateY(-50%);
  }
}

/*---------------------------------------------------
gallery
---------------------------------------------------*/
.gallery {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery_text {
  margin: 4rem auto 0;
  width: fit-content;
  text-align: center;
}

.gallery_text p {
  line-height: 1.5;
  letter-spacing: 0.05rem;
}

.gallery_list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem auto 0;
  }
  
.gallery_list .list_item {
  width: calc((100% - 3rem) / 3);
}

.item_name {
  position: relative;
  margin-top: 2rem;
  margin-left: 1.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.item_name span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.item_name::before {
  content: '◼️';
  position: absolute;
  top: -5px;
  left: -22px;
  font-size: 1.5rem;
}

.gallery_list img {
  width:100%;
  height:auto;
  vertical-align: bottom;
}

figcaption {
  background-color: #222;
  color: #fff;
  font: smaller sans-serif;
  padding: 3px;
}

/*　横幅900px以下の段組み設定　*/
@media only screen and (max-width: 900px) {
  .gallery_list {
    justify-content: space-between;
    gap: 0;
  }

  .gallery_list .list_item {
    width: 32%;
  }
}

@media only screen and (max-width: 768px) {
  .gallery_list .list_item {
    width: 48%;
  }

  .gallery_text {
    margin-top: 3rem;
    text-align: left;
  }

  .gallery_text p {
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 580px) {
  .gallery_list .list_item {
    width: 100%;
  }
}