.egg-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    list-style: none;
    margin: 0;
}

.page-item {
    margin: 0;
    padding: 0;
}

.page-item a,
.page-item span {
    position: relative;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border: none;
}


/* ナビゲーションボタン（前へ・次へ） */
.page-item .nav {
    width: 50px ;
    height: 50px ;
    font-size: 20px;
}

.page-item .nav:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* 通常の卵（未選択状態） */
.page-item span.egg,
.page-item a.egg {
    background-image: url('../images/egg.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; /* transparentを明示的に指定 */
}

/* 現在のページ（選択状態） - 割れた卵（黄身なし） */
.page-item .egg.active,
.page-item .current {
    background-image: url('../images/egg-open.webp');
    color: #b87921;
    transform: scale(1.1);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ホバー効果 */
.page-item .egg:hover {
    transform: scale(1.05);
}

.page-item .egg.active:hover,
.page-item .current:hover {
    transform: scale(1.15);
}

/* ページ番号のテキスト */
.page-item .page-number {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.page-item .egg.active .page-number,
.page-item .current .page-number {
    color: #b87921;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* クリック時のアニメーション効果 */
.page-item .egg.clicked {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease;
}

/* ローディング状態 */
.egg-pagination.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.egg-pagination.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #2c5aa0;
    border-radius: 50%;
    animation: eggSpin 1s linear infinite;
}

@keyframes eggSpin {
    to { 
        transform: rotate(360deg); 
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pagination-list {
        gap: 10px;
        padding: 15px;
    }
    
    .page-item .nav {
        width: 40px ;
        height: 40px ;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .egg-pagination {
        margin: 20px 0;
    }
    
    .pagination-list {
        gap: 8px;
        padding: 10px;
    }
    
    .page-item a,
    .page-item span {
        width: 35px;
        height: 45px;
        font-size: 16px;
    }
    
    .page-item .nav {
        width: 30px ;
        height: 30px ;
        font-size: 14px;
    }
}