@charset "UTF-8";
/*
変数関係をまとめたファイル
 */
/*
ブレイクポイントに関して記述しているファイル
下のブレイクポイントの設定を変更するときは必ずPMに一声かける
 */
.gallery-page > .box-overview {
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 1024px) {
  .gallery-page > .box-overview {
    padding: 150px 20px 0;
    margin-left: 0;
  }
}
@media screen and (max-width: 820px) {
  .gallery-page > .box-overview {
    padding: 110px 20px 0;
  }
}
.gallery-page > .box-overview > .text {
  position: absolute;
  top: 43px;
  left: 170px;
  font-size: 12px;
  line-height: 2.5;
}
@media screen and (max-width: 1024px) {
  .gallery-page > .box-overview > .text {
    position: relative;
    top: 0;
    left: 10px;
  }
}
@media screen and (max-width: 820px) {
  .gallery-page > .box-overview > .text {
    left: 0;
  }
}
@media screen and (max-width: 480px) {
  .gallery-page > .box-overview > .text {
    line-height: 2.3;
  }
}
.gallery-page > .box-overview > .button {
  position: absolute;
  top: 35px;
  right: 170px;
  border: none;
  background-color: transparent;
  background-image: url(../../../assets/imgs/gallery/button-frame.svg);
  background-size: cover;
  max-width: 242px;
  height: 76px;
}
@media screen and (max-width: 1024px) {
  .gallery-page > .box-overview > .button {
    position: fixed;
    top: inherit;
    right: inherit;
    bottom: 20px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    max-width: 222px;
    height: 70px;
  }
}
.gallery-page > .box-overview > .button > a {
  font-family: "source-han-serif-jp-subset", sans-serif;
  color: #000000;
}
.gallery-page > .box-overview > .button > a > .icon {
  width: 25px;
  margin-left: 14px;
  margin-top: 2px;
}
.gallery-page > .section-content {
  margin: 0 auto;
  padding: 142px 20px 0;
}
@media screen and (max-width: 1024px) {
  .gallery-page > .section-content {
    padding: 19px 20px 0;
  }
}
@media screen and (max-width: 820px) {
  .gallery-page > .section-content {
    padding: 24px 10px 0;
  }
}
.gallery-page > .section-content > .list-gallery {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.gallery-page > .section-content > .list-gallery > .gallery-item {
  width: 100%;
  height: 40vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 9px 18px;
}
@media screen and (max-width: 820px) {
  .gallery-page > .section-content > .list-gallery > .gallery-item {
    margin: 0 7px 14px;
    height: 21vh;
  }
}
@media screen and (max-width: 480px) {
  .gallery-page > .section-content > .list-gallery > .gallery-item {
    margin: 0 4px 8px;
    height: 18vh;
  }
}
.gallery-page > .section-content > .list-gallery > .gallery-item > .link {
  width: 100%;
}
.gallery-page > .section-content > .list-gallery > .gallery-item > .link > .image {
  height: 100%;
}
.gallery-page > .section-content > .list-gallery > .gallery-item > .link > .image > img {
  border-radius: 10px;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery-page > .section-content > .list-gallery > .gallery-item:first-child, .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(2), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(5), .gallery-page > .section-content > .list-gallery > .gallery-item:last-child {
  max-width: 32%;
}
@media screen and (max-width: 1024px) {
  .gallery-page > .section-content > .list-gallery > .gallery-item:first-child, .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(2), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(5), .gallery-page > .section-content > .list-gallery > .gallery-item:last-child {
    max-width: 48%;
  }
}
@media screen and (max-width: 640px) {
  .gallery-page > .section-content > .list-gallery > .gallery-item:first-child, .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(2), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(5), .gallery-page > .section-content > .list-gallery > .gallery-item:last-child {
    max-width: 47%;
  }
}
.gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(3), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(4), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(6), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(7) {
  max-width: 15%;
}
@media screen and (max-width: 1024px) {
  .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(3), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(4), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(6), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(7) {
    max-width: 48%;
  }
}
@media screen and (max-width: 640px) {
  .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(3), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(4), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(6), .gallery-page > .section-content > .list-gallery > .gallery-item:nth-child(7) {
    max-width: 47%;
  }
}

.modal {
  display: none; /* 初期状態で非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-image: url(../../../assets/imgs/background.png);
  background-size: cover;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: block;
  width: 40%;
}
@media screen and (max-width: 480px) {
  .modal-content {
    width: 80%;
  }
}

.close {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 31px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}