/* 週次ランキング 表示CSS */

.ranking-week {
    color: #666;
    margin: 8px 0 24px;
    font-size: 13px;
}

.ranking-section {
    margin-bottom: 48px;
}

.ranking-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.ranking-category-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.ranking-more {
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
}
.ranking-more:hover { text-decoration: underline; }

.ranking-summary {
    background: #f5f8fa;
    border-left: 4px solid #0066cc;
    padding: 12px 16px;
    margin: 12px 0 20px;
    border-radius: 4px;
}
.ranking-summary-label {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    font-weight: 600;
}
.ranking-summary p {
    margin: 4px 0 0;
    color: #333;
    line-height: 1.7;
    font-size: 14px;
}
.ranking-summary-large p { font-size: 15px; }

.ranking-empty {
    color: #888;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    border-radius: 4px;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.ranking-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ranking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ranking-item-inner {
    display: grid;
    grid-template-columns: 64px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.ranking-rank {
    text-align: center;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    font-weight: 700;
    font-size: 18px;
    color: #333;
}
.rank-number.rank-1 { background: #FFD700; color: #333; box-shadow: 0 0 0 2px #eab308; }
.rank-number.rank-2 { background: #C0C0C0; color: #333; }
.rank-number.rank-3 { background: #CD7F32; color: #fff; }

.ranking-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.ranking-info {
    min-width: 0;
}
.ranking-item-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.4;
    color: #222;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ranking-item-company {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px;
}
.ranking-item-pv {
    font-size: 12px;
    color: #0066cc;
    margin: 0;
    font-weight: 600;
}

.ranking-back {
    margin-top: 32px;
    text-align: center;
}
.ranking-back a {
    color: #0066cc;
    text-decoration: none;
}
.ranking-back a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .ranking-item-inner {
        grid-template-columns: 48px 96px 1fr;
        gap: 10px;
    }
    .ranking-thumb img { height: 64px; }
    .rank-number {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
}

/* サイドバー内の週選択リスト */
.ranking-week-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ranking-week-list li {
    border-bottom: 1px solid #eee;
}
.ranking-week-list li a {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}
.ranking-week-list li a:hover {
    background: #f5f8fa;
    color: #0066cc;
}
.ranking-week-list li.active a {
    background: #0066cc;
    color: #fff;
    font-weight: 600;
}
.ranking-week-list li.active a:hover {
    background: #0055aa;
    color: #fff;
}

/* サイドバー内の他カテゴリ TOP5 リスト */
.sidebar-cat-link {
    color: #0066cc;
    text-decoration: none;
}
.sidebar-cat-link:hover { text-decoration: underline; }

.sidebar-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-ranking-list li {
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-ranking-list li a {
    display: flex;
    gap: 8px;
    padding: 8px 4px;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    font-size: 12.5px;
    line-height: 1.4;
}
.sidebar-ranking-list li a:hover {
    background: #fafafa;
    color: #0066cc;
}
.mini-rank {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ddd;
    color: #333;
    font-weight: 700;
    font-size: 12px;
}
.mini-rank-1 { background: #FFD700; }
.mini-rank-2 { background: #C0C0C0; }
.mini-rank-3 { background: #CD7F32; color: #fff; }

.mini-title {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
