/* フォーム内でのインライン表示は無効化する（ポップアップ内でのみ見せるため） */
.js-auto-popup {
    display: none !important;
}

/* ポップアップの背景（半透明の黒） */
.custom-auto-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-auto-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ポップアップ本体（画面中央） */
.custom-auto-popup-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px 25px 25px; /* 上部に閉じるボタン用の余白を確保 */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

/* 右上の「×」閉じるボタン */
.custom-auto-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.custom-auto-popup-close:hover {
    color: #333;
}
