/* オーバーレイ */
.quick-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none; /* 初期は非表示 */
}

/* モーダルウィンドウ */
.quick-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    opacity: 0;
    z-index: 9999;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    display: none; /* 初期は非表示 */
}

@media (max-width: 705px) {
  .quick-modal-window {
    width: 70%;
  }
}

/* 画像（レスポンシブ） */
.quick-modal-window img {
    width: 100%;
    height: auto;
    display: block;
}

/* 右上閉じボタン */
.quick-modal-close {
    position: absolute;
    top: var(--close-offset, 5px);
    right: var(--close-offset, 5px);
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: transparent url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M18 6L6 18"/><path d="M6 6l12 12"/></svg>') no-repeat center;
    background-size: contain;
}

/* 下部透明ボタン（300x40） */
.quick-modal-bottom-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 40px;
    cursor: pointer;
    background: transparent;
}