/* 人気記事ランキング [popular_posts] / [popular_posts_top] */

.popular-posts-wrap .p-postList__item {
    position: relative;
}

.popular-rank-badge {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 2;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    letter-spacing: 0;
    pointer-events: none;
}

.popular-rank-badge--1 {
    top: 0;
    left: 5px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe259, #e8960c);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 40px;
    box-shadow: 0 3px 10px rgba(220, 140, 10, 0.65);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.popular-rank-badge--1::before {
    content: '👑';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

.popular-rank-badge--2 {
    top: 0;
    left: 6px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8e8e8, #9e9e9e);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 34px;
    box-shadow: 0 2px 8px rgba(100, 100, 100, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popular-rank-badge--3 {
    top: 0;
    left: 6px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8a87c, #b5541c);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 34px;
    box-shadow: 0 2px 8px rgba(160, 70, 20, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popular-posts-ranking .p-postListTab {
    margin: 0.5em auto 1em;
    width: 100%;
}

.popular-posts-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.popular-posts-more-btn {
    display: inline-block;
    padding: 13px 48px;
    background: var(--color_main, #f08c00);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.05em;
}

.popular-posts-more-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.popular-posts-more-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}
