.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 10px;
    align-items: center;
}

.reaction-buttons button {
    margin: 5px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 3em;
    line-height: 3em;
    background: #fafafa;
    color: #666;
    font-family: "Noto Color Emoji", sans-serif;
    font-weight: 400;
    font-style: normal;
    width: 50px;
    height: 50px;
}

.reaction-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.reaction-buttons button:active {
    background: #999;
    color: #f6f6f6;
}

.expand-button {
    min-width: 3em;
}

.extra-buttons {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.reaction-counts {
    margin-top: 10px;
    font-size: 12px;
}

.count-item {
    font-family: "Noto Color Emoji", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 10px;
}

.count-item span {
    font-weight: bold;
    line-height: 1.5em;
}

.reaction-icon {
    margin: 0 4px;
    vertical-align: middle;
    max-width: 1em;
    max-height: 1em;
}

.emoji-group {
    letter-spacing: 0.2em;
}

/* 追加 */
.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
}

.reaction-buttons button {
    padding: 0;
    border: none;
    background: none;
    /* 背景を消す */
    cursor: pointer;
    font-family: "Noto Color Emoji", sans-serif;
    font-size: 12px;
    /* 小さめに */
    width: auto;
    /* 固定サイズやめる */
    height: auto;
    line-height: 1;
}

.reaction-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.reaction-buttons button:active {
    transform: scale(0.9);
    /* 押した感だけ残す */
}

.reaction-buttons button {
    padding: 4px 4px;
    border: 1px solid transparent;
    /* 普段は見えない */
    border-radius: 6px;
    background: none;
    cursor: pointer;
    font-family: "Noto Color Emoji", sans-serif;
    font-size: 12px;
    transition: all 0.15s ease;
}

.reaction-buttons button:hover {
    background: rgba(0, 0, 0, 0.05);
    /* うっすら背景 */
    border-color: rgba(0, 0, 0, 0.1);
    /* 薄い枠 */
}

.reaction-buttons button:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.1);
}