/* 右サイドのパネル（タグから探すと同じ見た目に揃える） */
.custom-side-panel {
    background-color: #F4F2EF;
    border: 1px solid #ECEAE6;
    border-radius: 14px;
    padding: 22px 20px;
}

/* 見出し */
.custom-side-title {
    display: flex;
    align-items: center;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E3DFD8;
}

.custom-side-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8B1A2B;
    margin-right: 8px;
}

.custom-side-title-text {
    font-size: 16px;
    font-weight: bold;
    color: #222222;
    line-height: 1.4;
}

/* ランキング表示（番号 + サムネイル + タイトルの横並び） */
.custom-ranking-list .list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.custom-ranking-list .list-item:last-child {
    margin-bottom: 0;
}

/* 順位の数字 */
.custom-ranking-list .rank-num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8B1A2B;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.custom-ranking-list .post {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

/* サムネイルは小さな正方形 */
.custom-ranking-list .post__thumb {
     position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
}

.custom-ranking-list .post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-ranking-list .post__text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}

/* タイトルは2行まで、はみ出したら省略 */
.custom-ranking-list .post__title {
    margin: 0;
    font-size: 13px;
    font-weight: normal;        ← この1行を追加
    line-height: 1.6;           ← 1.5 から 1.6 に（お好みで）
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-ranking-list .post__title a {
    color: #333333;
    text-decoration: none;
  font-weight: normal;
}

.custom-ranking-list .post__title a:hover {
    color: #8B1A2B;
}