.reactionmate-message {
    max-height: 300px; /* 最大高さを300pxに設定 */
    overflow-y: auto; /* 内容があふれる場合は縦方向にスクロール */
    padding: 10px; /* 内側に余白を追加 */
    border: 1px solid #ddd; /* エリアを囲む境界線 */
    border-radius: 5px; /* 角を丸めて柔らかいデザインに */
    background-color: #f9f9f9; /* 背景色を薄いグレーに設定 */
}

.reactionmate-container {
/*    text-align: center;*/
    margin: 20px 0;
}


.reactionmate-title {
    display: flex;
    justify-content: center;
    position: relative;
/*    max-width: 300px;*/
    margin:0 10% 0px;
    padding: .6em;
    font-size:13px;
    border: 2px solid #ebebeb;
    border-radius: 10px;
    background-color: #fff;
    color: #666;
}

.reactionmate-title::before,
.reactionmate-title::after {
    position: absolute;
    bottom: -15px;
    width: 30px;
    height: 15px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
}

.reactionmate-title::before {
    background-color: #ebebeb;
}

.reactionmate-title::after {
    bottom: -11px;
    background-color: #fff;
}

/* ボタン全体のレイアウト */
.reactionmate-buttons {
    display: flex; /* 横並び */
    justify-content: center; /* 中央揃え */
    gap: 15px; /* ボタン間のスペース */
    margin-top: 10px;
}

/* 各ボタンのスタイル */
.reactionmate-button {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease; /* ホバー時のアニメーション */
    font-size: 14px; /* 全体の縮小 */
}

/* ホバー時の効果 */
.reactionmate-button:hover {
    transform: scale(1.05); /* ホバー時に少し拡大 */
}

/* ボタン内のコンテンツのレイアウト */
.reactionmate-content {
    display: flex;
    align-items: center; /* アイコンとテキストの高さを揃える */
    gap: 8px; /* アイコンとテキスト間のスペース */
}

/* アイコンのスタイル */
.reactionmate-icon {
    font-size: 24px; /* アイコンを少し小さくする */
    color: #0073aa; /* デフォルトの色 */
    transition: color 0.3s ease;
}

/* ラベルとカウントを縦に配置し、左揃え */
.reactionmate-text-wrapper {
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    align-items: flex-start; /* 左揃え */
    justify-content: center; /* 縦方向の中央揃え */
}

/* ラベルのスタイル */
.reactionmate-label {
    font-size: 12px; /* ラベルの文字サイズを小さく */
    color: #777;
    line-height: 1; /* 行間を詰める */
}

/* カウントのスタイル */
.reactionmate-count {
    font-size: 15px; /* カウントの文字サイズを小さく */
/*    font-weight: bold;*/ /* カウントを強調 */
    color: #777;
    line-height: 1.3; /* 行間を詰める */
}

/* ボタンごとのアイコン色 */
.reactionmate-button[data-reaction="good"] .reactionmate-icon {
    color: #ddd; /* デフォルトの色 */
}

.reactionmate-button[data-reaction="neutral"] .reactionmate-icon {
    color: #ddd; /* デフォルトの色 */
}

.reactionmate-button[data-reaction="bad"] .reactionmate-icon {
    color: #ddd; /* デフォルトの色 */
}

/* アクティブ状態 */
.reactionmate-button[data-reaction="good"].active .reactionmate-icon {
    color: #4caf50; /* 緑色 */
}

.reactionmate-button[data-reaction="neutral"].active .reactionmate-icon {
    color: #ff9800; /* オレンジ色 */
}

.reactionmate-button[data-reaction="bad"].active .reactionmate-icon {
    color: #f44336; /* 赤色 */
}



/* コメント全体のラッパー */
.reactionmate-comment-wrapper {
    display: flex;
    flex-direction: column; /* 縦並びに配置 */
    gap: 10px; /* 各要素間の余白を設定 */
    margin: 20px auto; /* 上下の余白を追加して中央揃え */
    width: 100%; /* 全体の幅を調整 */
    max-width: 800px; /* 最大幅を設定 */
}

/* 入力エリアと送信ボタンのグループ */
.reactionmate-input-group {
    display: flex; /* 子要素を横並びに配置 */
    gap: 10px; /* テキストエリアとボタン間の余白 */
    align-items: center; /* 縦方向の中央揃え */
    margin:0 auto;
}

/* テキストエリア */
.reactionmate-comment {
    flex: 1; /* テキストエリアが幅を広く取る */
    height: 40px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none; /* ユーザーによるサイズ変更を無効化 */
    min-width:300px;
    max-width:500px;
    font-size:13px;
}

/* 送信ボタン */
.reactionmate-submit {
    background-color: #ededed;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    font-size: 13px;
    height: 40px; /* テキストエリアの高さと揃える */
    transition: all 0.3s ease;
    text-align: center;
}

/* 送信ボタンホバー時 */
.reactionmate-submit:hover {
    background-color: #d6d6d6;
    border-color: #bbb;
    color: #000;
}

/* コメント表示トグルボタン */
.reactionmate-toggle-comments {
    background-color: transparent; /* 背景色を透明にして目立たなくする */
    color: #555; /* 文字色を控えめな濃いグレーに */
    border: none; /* ボーダーを削除 */
    border-radius: 5px; /* 少し丸みをつける（必要に応じて） */
    padding: 5px; /* ボタンのサイズを小さくする */
    cursor: pointer;
    font-size: 12px; /* 文字サイズを小さくする */
    text-align: center;
    margin: 0 auto;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    text-decoration: underline; /* 見た目をリンク風に変更 */
}

/* トグルボタンホバー時 */
.reactionmate-toggle-comments:hover {
    color: #333; /* ホバー時に文字色をやや濃く */
    text-decoration: none; /* ホバー時は下線を消す */
}






/*共通設定*/
.reactionmate-comment-item{
    border: 1px solid #ddd;
    border-radius: 8px; /* 角を少し丸める */
    padding: 10px;
    margin-bottom: 5px; /* 各コメントの間に余白を追加 */
}



/* コメントのメタ情報（投稿者名と日付） */
.reactionmate-comment-item .comment-meta {
    font-size: 12px; /* 小さめのフォントサイズで視覚的に補助 */
    color: #666; /* メタ情報は少し薄い色で目立ちすぎないように */
    margin-top: 5px;
    display: block; /* メタ情報を新しい行に表示 */
}

/* 管理者コメント */
.reactionmate-comment-item.admin-comment {
    background-color: #e3f2fd; /* 淡い青色で管理者コメントを強調 */

}

/* 通常のユーザーコメント */
.reactionmate-comment-item.user-comment {
    margin-right: 20%;
    background-color: #fff	; /* 淡いグレーで背景を設定 */
}


/* 子コメント（返信） */
.reactionmate-comment-item.reply-comment {
    margin-left: 20%; /* 親コメントより右にずらす */
    background-color: #ffedf8; /* 子コメントの背景を薄く変更 */
}

/* メタ情報内のユーザー名 */
.reactionmate-comment-item .comment-meta .author {
    font-weight: bold; /* ユーザー名を強調 */
    color: #333; /* 色を濃くして見やすく */
}

/* メタ情報内の日付 */
.reactionmate-comment-item .comment-meta .date {
    color: #888; /* 日付を少し薄い色で補助的に */
    font-style: italic; /* 日付に斜体を追加 */
}

/* コメントのテキスト部分 */
.reactionmate-comment-item p {
    font-size: 14px; /* 読みやすいフォントサイズ */
    color: #333; /* 標準的な文字色 */
    margin: 5px 0;
    line-height: 1.5; /* 読みやすさのための行間 */
}



.reply-form {
    display: none !important;
}
