.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .2em;
    align-items: center;
    justify-content: right;
}

.reaction-buttons button {
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    height: 2em;
    line-height: 2em;
    background: #f6f6f6;
    color: #666;
    padding: 0 5px 0 5px;
}

.reaction-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.reaction-buttons button:active {
    background: #999;
    color:#f6f6f6;
}

.reaction-buttons img {
  width: 1em;
  height: auto;
}

.reaction-counts {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.7em;
    flex-wrap: wrap;
    justify-content: right;
}

.reaction-icon {
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.expand-button {
    min-width: 1em;
}

.extra-buttons {
    display: none;
    flex-wrap: wrap;
    gap: .2em;
    align-items: center;
}

.count-item {
    display: none;
    align-items: center;
    gap: 5px;
}

.count-item span {
    font-weight: bold;
}

.count-item img {
  width: 1em;
  height: auto;
}

/*追加*/
/* リアクション用エフェクト */
.reaction-float {
  position: absolute;
  pointer-events: none;
  animation: reactionFly ease-out forwards;
}

@keyframes reactionFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(var(--scale));
  }
}
/*追加ココまで*/