@charset "UTF-8";

/* ポップアップを呼び出すトリガー（画像）の設定 */
.js-popup-trigger {
  cursor: pointer;
  /* マウスをあてると手のマークに変更 */
  display: inline-block;
}

/* ポップアップ背景（オーバーレイ） */
.popup-overlay {
  display: none;
  /* 初期状態は非表示 */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  /* 背景を暗くする */
  align-items: center;
  justify-content: center;
}

/* ポップアップのコンテナ */
.popup-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* ポップアップ内の画像 */
.popup-container img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
}

/* 閉じるボタン（×） */
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: #000;
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
}

/* 表示状態のクラス */
.popup-overlay.is-active {
  display: flex;
}