/**
 * WP Popup 公開側スタイル
 */

.wp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ポジション設定 */
.wp-popup-overlay.wp-popup-position-center {
    align-items: center;
    justify-content: center;
}

.wp-popup-overlay.wp-popup-position-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

.wp-popup-overlay.wp-popup-position-top-center {
    align-items: flex-start;
    justify-content: center;
}

.wp-popup-overlay.wp-popup-position-top-right {
    align-items: flex-start;
    justify-content: flex-end;
}

.wp-popup-overlay.wp-popup-position-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.wp-popup-overlay.wp-popup-position-bottom-center {
    align-items: flex-end;
    justify-content: center;
}

.wp-popup-overlay.wp-popup-position-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.wp-popup-container {
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    animation: wpPopupFadeIn 0.3s ease-out;
}

/* 自動サイズの場合 */
.wp-popup-container.wp-popup-auto {
    width: auto;
    height: auto;
    min-width: 300px;
    min-height: 200px;
}

/* プリセットサイズ */
.wp-popup-container.wp-popup-small-width {
    width: 400px;
}

.wp-popup-container.wp-popup-medium-width {
    width: 600px;
}

.wp-popup-container.wp-popup-large-width {
    width: 800px;
}

.wp-popup-container.wp-popup-small-height {
    height: 300px;
}

.wp-popup-container.wp-popup-medium-height {
    height: 400px;
}

.wp-popup-container.wp-popup-large-height {
    height: 600px;
}

/* アニメーション */
@keyframes wpPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wp-popup-content {
    position: relative;
    padding: 20px;
}

.wp-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
}

.wp-popup-close:hover {
    color: #333;
}

.wp-popup-body {
    margin-top: 10px;
}

.wp-popup-trigger {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
}

.wp-popup-trigger:hover {
    background-color: #005a87;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wp-popup-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .wp-popup-container.wp-popup-small-width,
    .wp-popup-container.wp-popup-medium-width,
    .wp-popup-container.wp-popup-large-width {
        width: auto;
        max-width: 95vw;
    }
    
    .wp-popup-content {
        padding: 15px;
    }
    
    .wp-popup-close {
        top: 5px;
        right: 5px;
    }
}