.galleryArea__list {
  display: grid;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

@media screen and (min-width: 768px) {
  .galleryArea__list {
    gap: 20px;
    grid-template-columns: repeat(4, auto);
  }
}

@media screen and (max-width: 768px) {
  .galleryArea__list {
    gap: 20px;
    grid-template-columns: repeat(2, auto);
  }
}

.galleryArea__item {
  aspect-ratio: 300 / 194;
  position: relative;
  width: 100%;
}

.galleryArea__btn {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.galleryArea__btn.show-poster .galleryArea__video {
  display: none;
}

.galleryArea__btn.show-poster .galleryArea__poster {
  display: block;
}

.galleryArea__btn .photo {
  height: 100%;
  width: 100%;
}

.galleryArea__btn .photo__pic, .galleryArea__btn .photo__inner, .galleryArea__btn .photo__image {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.galleryArea__btn:hover .galleryArea__inner {
  opacity: 1;
}

.galleryArea__inner {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  -webkit-transition: .8s ease;
  transition: .8s ease;
  width: 100%;
  z-index: 2;
}

.galleryArea__ttl {
  text-align: center;
}

.galleryArea__ttl .en {
  color: #ffffff;
  display: block;
  line-height: 1.3;
}

@media screen and (min-width: 768px) {
  .galleryArea__ttl .en {
    font-size: 26px;
  }
}

@media screen and (max-width: 768px) {
  .galleryArea__ttl .en {
    font-size: calc(26 / 750 * 100vw);
  }
}

.galleryArea__ttl .ja {
  color: #ffffff;
  display: block;
  line-height: 1;
}

@media screen and (min-width: 768px) {
  .galleryArea__ttl .ja {
    font-size: 10px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 768px) {
  .galleryArea__ttl .ja {
    font-size: calc(18 / 750 * 100vw);
    margin-top: calc(14 / 750 * 100vw);
  }
}

@media screen and (min-width: 768px) {
  .galleryArea__icon {
    margin-top: 24px;
    width: 40px;
  }
}

@media screen and (max-width: 768px) {
  .galleryArea__icon {
    margin-top: calc(14 / 750 * 100vw);
    width: calc(40 / 750 * 100vw);
  }
}

.galleryArea__video {
  display: block;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  position: relative;
  width: 100%;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .galleryArea__video.only-pc {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .galleryArea__video.only-sp {
    display: none;
  }
}

.galleryArea__poster {
  display: none;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.galleryArea__poster .photo {
  height: 100%;
  width: 100%;
}

.galleryArea__poster .photo__image {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.galleryArea__cont {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .galleryArea__cont {
    max-height: calc(100vh - 120px);
  }
}

.generalModal--gallery .generalModal__inner {
  background-color: unset;
  pointer-events: none;
}

.generalModal--gallery .generalModal__inner .modalCard__ttl {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #dec6a5;
}

@media screen and (min-width: 768px) {
  .generalModal--gallery .generalModal__inner .modalCard__cont {
    margin-top: 40px;
  }
}

@media screen and (max-width: 768px) {
  .generalModal--gallery .generalModal__inner .modalCard__cont {
    margin-top: 16px;
  }
}

.generalModal--gallery .generalModal__cont {
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .generalModal--gallery .generalModal__cont {
    height: auto;
  }
}

.generalModal--gallery .generalModal__cont .generalModal__close {
  pointer-events: auto;
}

@media screen and (min-width: 768px) {
  .generalModal--gallery .generalModal__cont .generalModal__close {
    right: -40px;
    top: -20px;
  }
}

@media screen and (max-width: 768px) {
  .generalModal--gallery .generalModal__cont .generalModal__close {
    bottom: calc(100% + 5px);
    top: auto;
  }
}

.generalModal--gallery .modalCard {
  pointer-events: auto;
}

.modalCard {
  margin: auto;
}

@media screen and (min-width: 768px) {
  .modalCard {
    width: 998px;
  }
}

@media screen and (max-width: 768px) {
  .modalCard {
    width: 100%;
  }
}

.modalCard__video {
  aspect-ratio: 800 / 450;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  .modalCard__video {
    height: 100%;
  }
}

@media screen and (max-width: 768px) {
  .modalCard__video {
    height: auto;
  }
}

.modalCard__video .video {
  height: 100%;
  min-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  width: auto;
}

.modalCard__cont {
  -ms-flex-negative: 1;
      flex-shrink: 1;
  position: relative;
}

.modalCard__gif {
  height: 100%;
  position: relative;
  z-index: 2;
}

.modalCard__gif .photo {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: auto;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  width: 100%;
}

.modalCard__gif .photo__image {
  aspect-ratio: 800 / 450;
  height: auto;
  min-width: 100%;
  width: 100%;
}

.modalCard__poster {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.modalCard__poster .photo {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  width: 100%;
}

.modalCard__poster .photo__image {
  height: 100%;
  min-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  width: auto;
}

.modalCard__ttl {
  color: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1em;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  line-height: 1;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .modalCard__ttl {
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 768px) {
  .modalCard__ttl {
    margin-bottom: 8px;
  }
}

@media screen and (min-width: 768px) {
  .modalCard__ttlEn {
    font-size: 30px;
  }
}

@media screen and (max-width: 768px) {
  .modalCard__ttlEn {
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) {
  .modalCard__ttlJa {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .modalCard__ttlJa {
    font-size: 12px;
  }
}

.modalCard.show-poster .modalCard__poster {
  display: block;
}

.modalCard.show-poster .modalCard__video {
  opacity: 0;
}

.generalModal:has(.modalCard) .generalModal__inner {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .generalModal:has(.modalCard) .generalModal__cont {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }
}

.generalModal--gallery .generalModal__close {
  background: url("../imgs/icon-close.svg") no-repeat center/contain;
  bottom: auto;
}

@media screen and (min-width: 768px) {
  .generalModal--gallery .generalModal__close {
    height: 40px;
    width: 40px;
  }
}

@media screen and (max-width: 768px) {
  .generalModal--gallery .generalModal__close {
    height: 30px;
    width: 30px;
  }
}

.generalModal--gallery .generalModal__close:before, .generalModal--gallery .generalModal__close:after {
  display: none;
}

@media screen and (min-width: 768px) {
  .gallery-modal {
    padding: 140px 0 0;
  }
}

@media screen and (max-width: 768px) {
  .gallery-modal {
    padding: 120px 0 0;
  }
}

@media screen and (min-width: 768px) {
  .bottomArea .wrap:not(:has(.bottomArea-caption)) {
    padding-bottom: 160px;
  }
}

@media screen and (max-width: 768px) {
  .bottomArea .wrap:not(:has(.bottomArea-caption)) {
    padding-bottom: 80px;
  }
}
