/* ---------------------------- */
/* --- Base --- */
/* ---------------------------- */
.swiperModalButton {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 1);
}

/* モーダルがactiveの時 */
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* モーダルのコンテンツ */
.modal__content {
  position: relative;
  width: 100%;
  height: 90%;
  padding: 0;
}
.modal_inner {
  width: 90%;
  height:100%;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* 閉じるボタン */
.modal__close-btn {
  position: absolute;
  right: 0;
  top: -40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 20;
}
.modal__close-btn:hover {
  opacity: 0.8;
}

/* 閉じるボタンのX */
.lineClose {
  display: inline-block;
  vertical-align: middle;
  color: #666666;
  line-height: 1;
  width: 2rem;
  height: 0.1rem;
  background: currentColor;
  border-radius: 0.1rem;
  position: relative;
  transform: rotate(45deg);
}
.lineClose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

/* 矢印ボタン */
.photoindex [class^="swiper-button-"]::after{
  font-size: 30px;
  color: #666666;
}

p.swiperPhoto {
  margin: 0 auto;
  width: auto;
  max-height: 70vh;
  text-align: center;
}
p.swiperPhoto img {
  object-fit: cover;
  max-height: 70vh;
  margin: 0 auto;
}
p.swiperTitle {
  margin: 1rem;
  text-align: center;
  font-weight: bold;
  color: #666666;
}
p.swiperText {
  margin: 0;
  text-align: center;
  color: #666666;
}

/*media Queries 767
-------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 767px) {
  
  .swiperModalButton {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
  }
  
  /* モーダル */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 20px 0 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 1);
  }
  
  /* モーダルのコンテンツ */
  .modal__content {
    position: relative;
    width: 100%;
    height: 90%;
    padding: 0;
  }
  .modal_inner {
    width: 100%;
    height:100%;
    margin: 0 auto;
    padding: 0em 3em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  
  /* 閉じるボタン */
  .modal__close-btn {
    position: absolute;
    right: 0;
    top: -35px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
  }
  .modal__close-btn:hover {
    opacity: 0.8;
  }
  
  /* 閉じるボタンのX */
  .lineClose {
    display: inline-block;
    vertical-align: middle;
    color: #666666;
    line-height: 1;
    width: 2rem;
    height: 0.1rem;
    background: currentColor;
    border-radius: 0.1rem;
    position: relative;
    transform: rotate(45deg);
  }
  .lineClose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: rotate(90deg);
  }
  
  /* 矢印ボタン */
  .photoindex [class^="swiper-button-"]{
    width: 20px;
    font-size: 20px;
    color: #666666;
  }
  
  p.swiperPhoto {
    margin: 0 auto;
    width: auto;
    max-height: 80vh;
    text-align: center;
  }
  p.swiperPhoto img {
    object-fit: cover;
    max-height: 80vh;
    margin: 0 auto;
  }
  p.swiperTitle {
    margin: 1rem;
    text-align: center;
    font-weight: bold;
    color: #666666;
  }
  p.swiperText {
    margin: 0;
    text-align: center;
    color: #666666;
  }
  
}