@charset "UTF-8";
/* ========================
  サムネイル（タップヒント）
========================= */
.zoomable-wrap {
  position: relative;
}

.zoomable-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  pointer-events: none;
  animation: tapHintThumb 1.8s ease-out 2;
}

@keyframes tapHintThumb {
  0% {
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.zoomable-modal {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 20px auto;
  cursor: pointer;
}

/* ========================
  　　　　オーバーレイ
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========================
 　　　　 モーダル
========================= */
.modal-inner {
  width: 90vw;
  height: 70vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;

}

.modal-overlay.show .modal-inner {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-img-wrap {
  --side-pad: 16px;
  width: 100%;
  height: 100%;
  padding: 0 var(--side-pad);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.modal-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
  max-width: initial;
}

.modal-close {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 39px;
  height: 39px;
  border: 1px solid #fff;
  background: none;
  display: flex;
  justify-content: center;
  color: #fff;
  align-items: center;
  font-size: 40px;
  padding: 4px 3px 3px;
  cursor: pointer;
  font-weight: normal;
  z-index: 10000;
}
