@charset "UTF-8";

/* 簡易リセットCSS */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  text-align:center; /* モーダルダイアログを中央寄せにする */
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  background-color: rgba(5, 0, 0, 1.0);
}

.modal-dialog {
    display: inline-block;
    width: auto;
}

/* モーダルがactiveの時 */
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */
.modal_overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* モーダルのコンテンツ */
.modal_content {
  position: relative;
  background-color: #000;
  width: 70%;
  height:auto;
  max-width: 769px;
  padding:10px 0;
  margin: auto;/* モーダルコンテンツを画面中央に */
}

/* モーダル画面の画像*/
.modal img{
  width: 85%;
  height:75%;
  max-height: calc(100vh - 50px);
  margin: auto;/* モーダルコンテンツを画面中央に */
}

/* モーダルを閉じるボタン */
.modal_close-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 35px;
  height: 40px;
  background: #fff;
  border: 2px solid #ccc;
  cursor: pointer;
  z-index: 10;
  border-radius:10px;
}

.modal_close-btn div{
  font-size:30px;
  color:333;
}

/* Swiperの矢印部分 */
.modal .swiper-button-next {
  position: absolute;
  right: 0;
  top: 48%;
  width: 35px;
  height: 55px;
  background: #fff;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius:8px;
}

.modal .swiper-button-prev {
  position: absolute;
  left: 0;
  top: 48%;
  width: 35px;
  height: 55px;
  background: #fff;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius:8px;
}


@media (max-width: 767px) {
/* モーダルのコンテンツ */
.modal_content {
  position: relative;
  background-color: #000;
  width: 100%;
  height:auto;
  max-width: 430px;
  padding:10px 0;
  margin: auto;/* モーダルコンテンツを画面中央に */
}

/* モーダル画面の画像*/
.modal img{
  width: 100%;
  height:100%;
}

/* モーダルを閉じるボタン */
.modal_close-btn {
  position: absolute;
  left: 42%;
  top: 85%;
  width: 55px;
  height: 55px;
  background: #fff;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius:10px;
}

.modal_close-btn div{
  font-size:30px;
  color:333;
}

.modal .swiper-button-next {
  position: absolute;
  right: 10%;
  top: 90%;
  width: 40px;
  height: 55px;
  background: #fff;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius:8px;
}

.modal .swiper-button-prev {
  position: absolute;
  left: 10%;
  top: 90%;
  width: 40px;
  height: 55px;
  background: #fff;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius:8px;
}

.swiper-controller {
  display: flex;
  gap: 2.0rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10.0rem;
  }
/* media (max-width: 767px)*/　}
