/**
 * 級選択ポップアップのスタイル
 */

/* モーダルのベース */
.exam-level-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

/* オーバーレイ */
.exam-level-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

/* モーダルコンテンツ */
.exam-level-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ヘッダー */
.exam-level-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.exam-level-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    text-align: center;
    font-weight: bold;
}

.exam-level-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.exam-level-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* ボディ */
.exam-level-modal-body {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 資格名表示 */
.exam-level-qualification-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    padding: 0 0 8px;
    margin-bottom: 8px;
}

/* 級選択ボタン */
.exam-level-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2 0%, #67b5f7 100%);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 20px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.exam-level-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.exam-level-button:hover::before {
    width: 300px;
    height: 300px;
}

.exam-level-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
}

.exam-level-button:active {
    transform: translateY(-1px);
}

/* フッター */
.exam-level-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

/* キャンセルボタン */
.exam-level-cancel-button {
    background: #fff;
    color: #666;
    font-size: 1rem;
    padding: 12px 32px;
    border: 1px solid #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.exam-level-cancel-button:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .exam-level-modal-content {
        width: 95%;
        max-width: none;
    }

    .exam-level-modal-header {
        padding: 20px 20px 12px;
    }

    .exam-level-modal-header h3 {
        font-size: 1.1rem;
        padding-right: 32px;
    }

    .exam-level-modal-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }

    .exam-level-modal-body {
        padding: 24px 20px;
        gap: 12px;
    }

    .exam-level-button {
        font-size: 1.1rem;
        padding: 16px 24px;
    }

    .exam-level-modal-footer {
        padding: 12px 20px 20px;
    }

    .exam-level-cancel-button {
        font-size: 0.9rem;
        padding: 10px 24px;
    }
}