﻿.sankakuya-popup[hidden]{display:none}
.sankakuya-popup{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.68);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease}
.sankakuya-popup.is-open{opacity:1;visibility:visible}
.sankakuya-popup__dialog{position:relative;box-sizing:border-box;width:min(720px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:visible;border:1px solid #e6d5c5;border-radius:10px;background:#fffaf6;box-shadow:0 18px 56px rgba(40,25,15,.3);transform:translateY(10px);transition:transform .22s ease}
.sankakuya-popup.is-open .sankakuya-popup__dialog{transform:translateY(0)}
.sankakuya-popup__close{position:absolute;top:-58px;right:0;z-index:2;display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:#8a5c43;color:#fff;font:400 30px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.sankakuya-popup__close:hover{background:#65412f}
.sankakuya-popup__close:focus-visible{outline:3px solid #e60012;outline-offset:3px}
.sankakuya-popup__content{box-sizing:border-box;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:16px;display:grid;gap:12px}
.sankakuya-popup__banner{display:block;line-height:0;border-radius:5px;overflow:hidden}
.sankakuya-popup__banner:focus-visible{outline:3px solid #e60012;outline-offset:3px}
.sankakuya-popup__banner img{display:block;width:100%;height:auto;max-width:100%}
@media(max-width:600px){.sankakuya-popup{padding:12px}.sankakuya-popup__dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:8px}.sankakuya-popup__close{top:-58px;right:0;width:50px;height:50px}.sankakuya-popup__content{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:10px;gap:10px}}
@media(prefers-reduced-motion:reduce){.sankakuya-popup,.sankakuya-popup__dialog{transition:none}}