
/* モーダルウィンドウ */
.modal-window {
    display:none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    z-index: 999;
    width: 100%;
    position: fixed;
    /* align-items: center;
    justify-content: center;
    max-height: 100vh;
    overflow-y: auto;  */
  }

  
  /* 閉じるボタン */
  .button-close {
    position: absolute;
    top: 50%;
    right:0;
    transform: translate(-10%, -50%);
    padding: 1em;
    color: #eaeaea;
    border-radius: 20rem;
    cursor: pointer;
  }
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 10;
  }
  /* 表示領域外へはスクロールさせない */
body.no_scroll {
    overflow: hidden;
    position: fixed;
  }

  .button-open {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    padding: 1em;
    background-color: #3140c9;
    color: #eaeaea;
    cursor: pointer;
  }

  /* バツ印のスタイル */
.line {
  display: block;
  position: absolute;
  width: 24px;  /* 線の幅を設定 */
  height: 2px;  /* 線の高さを設定 */
  background-color: #000;  /* 線の色 */
}

.line1 {
  transform: rotate(45deg);  /* バツ印の左上から右下の線 */
}

.line2 {
  transform: rotate(-45deg);  /* バツ印の右上から左下の線 */
}

.close-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width:30px;  /* 全体の幅 */
  height:30px; /* 全体の高さ */
}
.close-wrapper p {
  margin-top: 8px;  /* バツ印と「Close」の間のスペース */
  font-size: 12px;  /* フォントサイズを調整 */
  color: #fff;  /* テキストの色 */
  margin-top: 60px;
}
.modal-imageArea img{
  aspect-ratio: 150 / 150;
  height: auto;
}
@media (min-width: 768px) {
  .modal-imageArea img{
    aspect-ratio: 200 / 200;
  }
  .close-wrapper{
    width: 50px;
    height: 50px;
  }
}


/* ===============================================
# モーダル画像タッチで大きく
=============================================== */
/* モーダルの基本スタイル */
.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal img{
  aspect-ratio: 400 / 400;
  object-fit: cover;
}
/* モーダル内の画像スタイル */
.modal-content {
  max-width: 70%;
  max-height: 70%;
}

/* モーダルを閉じるためのボタン */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
