/* JERAスライドモーダル */
.jera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.jera-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.jera-modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.jera-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.jera-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(201, 21, 44, 0.3);
}

.jera-modal-close i {
    font-size: 20px;
}

.jera-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.jera-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jera-modal-header h2 i {
    font-size: 26px;
}

.jera-modal-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.jera-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #525659;
}

.jera-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: white;
}

.jera-modal-body p {
    padding: 20px;
    text-align: center;
    color: #666;
}

.jera-modal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .jera-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .jera-modal-header {
        padding: 20px 20px 15px;
    }

    .jera-modal-header h2 {
        font-size: 20px;
    }

    .jera-modal-header h2 i {
        font-size: 22px;
    }

    .jera-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .jera-modal-close i {
        font-size: 18px;
    }
}

/* スクロール無効化（モーダル表示時） */
body.jera-modal-open {
    overflow: hidden;
}
