/* ==========================================================================
   演歌CD 専用スタイル
   ========================================================================== */

/* --- 一覧ページ (archive-enka_cd.php) --- */

.enka-cd-archive {
    background: #f8f9fa;
    min-height: calc(100vh - 300px);
}

.archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-title {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.archive-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 3rem;
}

.archive-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.archive-content {
    padding: 60px 20px;
}

.enka-cd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.enka-cd-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.enka-cd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enka-cd-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d32f2f;
    margin: 0 0 8px 0;
}

.card-date {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-weight: 500;
}

/* ページネーション */
.archive-pagination {
    text-align: center;
    margin-top: 40px;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.archive-pagination a,
.archive-pagination .current {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.archive-pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.archive-pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* --- 詳細ページ (single-enka_cd.php) --- */

.enka-cd-single {
    background: #f8f9fa;
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
}

/* 2カラムレイアウト */
.enka-cd-two-column {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.enka-cd-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* パンくずリスト */
.enka-cd-breadcrumb {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

/* === サイドバー === */
.enka-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.widget-icon {
    font-size: 1.5rem;
}

/* 人気ランキング */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    margin-bottom: 15px;
    position: relative;
}

.ranking-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ranking-link:hover {
    background: #f8f9fa;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    color: #666;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.ranking-item.rank-1 .rank-number {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b5a00;
    font-size: 1.3rem;
}

.ranking-item.rank-2 .rank-number {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #666;
}

.ranking-item.rank-3 .rank-number {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: #5c3d1f;
}

.ranking-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-price {
    font-size: 1rem;
    font-weight: 700;
    color: #d32f2f;
    margin: 0 0 3px 0;
}

.ranking-views {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

.no-ranking {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* 新着商品 */
.new-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-item {
    margin-bottom: 15px;
}

.new-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.new-link:hover {
    background: #f8f9fa;
}

.new-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.new-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-info {
    flex: 1;
    min-width: 0;
}

.new-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-date {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

/* タグクラウド */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #667eea;
    color: white;
}

.tag-count {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* パンくずリスト */
.enka-cd-breadcrumb {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.enka-cd-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.enka-cd-breadcrumb a:hover {
    color: #764ba2;
}

.enka-cd-breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.enka-cd-breadcrumb .current {
    color: #666;
}

/* 関連商品 */
.enka-cd-related {
    padding: 60px 20px;
    background: white;
    margin-top: 40px;
    border-radius: 8px;
}

.enka-cd-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #333;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-item:hover {
    transform: translateY(-3px);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-title {
    font-size: 1rem;
    font-weight: 600;
    padding: 15px;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d32f2f;
    padding: 0 15px 15px 15px;
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 968px) {
    .enka-cd-two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .enka-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-icon {
        font-size: 2.5rem;
    }
    
    .enka-cd-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .archive-header {
        padding: 40px 20px;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .enka-cd-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 投稿なし */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #666;
}
