.omikuji-wrap {
    text-align: center;
    margin: 2rem auto;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(139, 95, 191, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.omikuji-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 95, 191, 0.3);
}

.omikuji-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.omikuji-wrap:hover::before {
    left: 100%;
}

.omikuji-rank {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}


.omikuji-rank-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-purple);
}

.omikuji-total {
    font-size: 1rem;
    opacity: 0.8;
    color: var(--primary-purple);
    font-weight: 500;
    padding: 8px 16px;
    background: var(--light-purple);
    border-radius: 20px;
    display: inline-block;
}

.omikuji-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    table-layout: fixed;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(139, 95, 191, 0.2);
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
}

.omikuji-table th,
.omikuji-table td {
    border: none;
    padding: 0.75rem 0.5rem;
    word-wrap: break-word;
    position: relative;
    transition: all 0.3s ease;
}

.omikuji-table th {
    font-weight: 700;
    background: var(--gradient-main);
    color: var(--white);
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.omikuji-table td {
    background: rgba(248, 244, 255, 0.8);
    border-bottom: 1px solid rgba(139, 95, 191, 0.1);
    font-size: 0.95rem;
}

.omikuji-table tr:hover td {
    background: var(--light-blue);
    transform: scale(1.02);
}

.omikuji-table tbody tr:nth-child(even) td {
    background: rgba(232, 244, 253, 0.6);
}

.omikuji-table tbody tr:nth-child(even):hover td {
    background: var(--light-purple);
}

.omikuji-score {
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 1.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .omikuji-wrap {
        margin: 1rem auto;
        padding: 20px;
        max-width: 90%;
    }
    
    .omikuji-rank-img {
        width: 120px;
    }
    
    .omikuji-rank-text {
        font-size: 1.5rem;
    }
    
    .omikuji-table th,
    .omikuji-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
    
    .omikuji-score {
        font-size: 1rem;
    }
}