@charset "UTF-8";
/* =========================================
   ポケモンカード一覧・グリッド表示用の共通スタイル
   ========================================= */

@media (min-width: 960px) {
    .l-content {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
    }
    .l-main {
        width: calc(100% - 340px) !important;
        margin-right: 40px !important;
    }
    #sidebar {
        width: 300px !important;
    }
}

.pokeca-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.pokeca-card-item {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none !important;
    color: #333 !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}
.pokeca-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 63 / 88;
    position: relative;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transform: scale(1.08);
    transition: transform 0.3s ease;
}
.pokeca-card-item:hover .card-thumb img { transform: scale(1.15); }

.card-info { padding: 8px; background: #fff; }
.rarity-badge {
    display: inline-block; font-size: 10px; font-weight: bold;
    color: #888; background: #f5f5f5; padding: 1px 5px;
    border-radius: 3px; margin-bottom: 2px; line-height: 1;
}
.rarity-badge.rarity-empty { background: transparent; color: transparent; }

.card-title {
    display: block; font-size: 13px; font-weight: 700;
    margin: 2px 0 0 0; line-height: 1.3; color: #333;
    height: 2.6em; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pack-name {
    font-size: 10px; color: #999; margin-top: 0px; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-price-area {
    margin-top: 4px; padding-top: 6px; border-top: 1px solid #eee; text-align: right;
}
.current-price { font-size: 16px; font-weight: 800; color: #222; line-height: 1; }
.diff-area { font-size: 10px; font-weight: bold; line-height: 1.2; }
.price-diff.text-up { color: #00BFFF; }
.price-diff.text-down { color: #FF4081; }
.price-diff.text-none { color: #aaa; }
.price-diff.text-even { color: #aaa; }

@media (max-width: 768px) {
    .l-main { width: 100% !important; margin-right: 0 !important; }
    .pokeca-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .card-info { padding: 6px; }
    .card-title { font-size: 11px; margin-bottom: 0; }
    .current-price { font-size: 13px; }
    .rarity-badge { font-size: 9px; padding: 1px 3px; }
    .pack-name { font-size: 9px; margin-bottom: 2px; }
    .diff-area { font-size: 9px; }
}

.c-pagination .page-numbers.next,
.c-pagination .page-numbers.prev {
    font-family: sans-serif !important;
    font-size: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokeca-sort-area {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.pokeca-sort-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}

.pokeca-sort-select:hover {
    border-color: #aaa;
    background: #fafafa;
}