/* --- いいねボタン全体のコンテナ（左寄せ設定） --- */
.cls-container-left {
    margin: 20px 0;
    text-align: left; /* 左端に寄せる */
    font-family: sans-serif;
}

/* --- ボタンの基本スタイル --- */
.cls-like-btn {
    background: #ffffff;
    border: 2px solid #eeeeee;
    border-radius: 50px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #555555;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- ハートアイコンのスタイル --- */
.cls-heart {
    color: #dddddd;
    font-size: 1.4rem;
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* --- カウント数字のスタイル --- */
.cls-count {
    font-weight: bold;
    min-width: 20px;
}

/* --- ホバー時の挙動（まだいいねしていない場合） --- */
.cls-like-btn:not(.is-liked):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ff4b2b;
}

.cls-like-btn:not(.is-liked):hover .cls-heart {
    color: #ffb4a7;
}

/* --- 押した瞬間の凹むアニメーション --- */
.cls-like-btn:active {
    transform: scale(0.95);
}

/* --- いいね済み（is-likedクラス）の状態 --- */
.cls-like-btn.is-liked {
    border-color: #ff4b2b;
    color: #ff4b2b;
    background-color: #fffafa;
}

.cls-like-btn.is-liked .cls-heart {
    color: #ff4b2b;
    transform: scale(1.1);
}

/* いいね済み状態でホバーした時（取り消唆唆） */
.cls-like-btn.is-liked:hover {
    opacity: 0.8;
    background-color: #fff1f0;
}

/* --- 通信中（is-loadingクラス）のスタイル --- */
.cls-like-btn.is-loading {
    opacity: 0.6;
    cursor: wait;
}

/* --- ウィジェット（サイドバー）用のスタイル --- */
.widget_cls_flex_ranking ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_cls_flex_ranking li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.widget_cls_flex_ranking li:last-child {
    border-bottom: none;
}

.widget_cls_flex_ranking li a {
    text-decoration: none;
    color: #333;
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget_cls_flex_ranking li a:hover {
    color: #ff4b2b;
}

.w-like {
    color: #ff4b2b;
    font-weight: bold;
    font-size: 0.85rem;
    white-space: nowrap;
}
