/* 📌 フィルターコンテナ（全体） */
.persona-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 10px;
    padding: 10px;
    margin-bottom: -40px;
    align-items: flex-start;
    justify-content: flex-start; /* 左寄せ */
    
    /* 枠線のスタイル追加 */
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative; /* 「絞り込み」ラベル用に相対位置指定 */
}

/* 「絞り込み」ラベルのスタイル */
.persona-filter-container::before {
    content: "絞り込み▼";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 20px;
}

/* 📌 ラベルとセレクトボックスをグループ化 */
.persona-filter-group {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    white-space: nowrap;
}

/* 📌 ラベルのスタイル */
.persona-filter-label {
    margin-right: 10px;
    font-weight: bold;
/*    font-size: 14px;*/
    color: #333;
}

/* 📌 セレクトボックス */
.persona-filter-container select {
    padding: 8;
/*    font-size: 14px;*/
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    min-width: 120px;
    max-width: 200px;
}

/* 📌 セレクトボックスのホバー時 */
.persona-filter-container select:hover {
    border-color: #007bff;
}

/* 📌 セレクトボックスのフォーカス時 */
.persona-filter-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* 📌 画面サイズが狭くなったら2列 */
@media (max-width: 768px) {
    .persona-filter-item {
        width: 45%; /* 2列にする */
    }
}

/* 📌 さらに狭くなったら1列 */
@media (max-width: 500px) {
    .persona-filter-item {
        width: 100%; /* 1列にする */
    }
}


/* 📌 結果数のスタイル（シンプル） */
.persona-result-count {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    display: none; /* 初期状態で非表示 */
}



/* 📌 ラベルとセレクトボックスをグループ化 */
.persona-filter-group {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    white-space: nowrap;
}

/* 📌 ラベルのスタイル */
.persona-filter-label {
    margin-right: 5px;
    font-weight: bold;
    color: #333;
}

/* コロンの後に余白を追加 */
.persona-filter-label::after {
    content: "";
    display: inline-block;
    width: 5px; /* コロンの後の余白 */
}

/* 📌 セレクトボックス */
.persona-filter-container select {
    padding: 8;
/*    font-size: 14px;*/
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    min-width: 120px;
    max-width: 200px;
}

/* 📌 セレクトボックスのホバー時 */
.persona-filter-container select:hover {
    border-color: #007bff;
}

/* 📌 セレクトボックスのフォーカス時 */
.persona-filter-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* 📌 画面サイズが狭くなったら2列 */
@media (max-width: 768px) {
    .persona-filter-item {
        width: 45%; /* 2列にする */
    }
}

/* 📌 さらに狭くなったら1列 */
@media (max-width: 500px) {
    .persona-filter-item {
        width: 100%; /* 1列にする */
    }
}


/* 📌 結果数のスタイル（シンプル） */
.persona-result-count {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    display: none; /* 初期状態で非表示 */
}

/* リセットボタンのコントロールエリア */
.persona-filter-controls {
    text-align: right;
    margin-bottom: 15px;
}

/* リセットボタンのスタイル - 赤系の目立つデザインに変更 */
.persona-reset-button {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background-color: #d63638; /* WordPressの赤色 */
    border: 1px solid #b32d2e;
    border-radius: 4px;
    color: #ffffff; /* 白テキスト */
    font-size: 13px;
    font-weight: 600; /* やや太字 */
    cursor: pointer;
    vertical-align: middle;
    line-height: 1.4;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.persona-reset-button:hover {
    background-color: #e55c5e; /* ホバー時はより明るい赤 */
    border-color: #d63638;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.persona-reset-button:active {
    background-color: #b32d2e; /* クリック時は少し暗い赤 */
    border-color: #9b2123;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* リセットボタンコンテナのスタイル */
.persona-filter-controls {
    margin: 10px 0;
    text-align: right;
}

/* フィルターセレクトボックス */
.persona-filter-select {
    margin-right: 10px;
    padding: 5px;
}

/* 結果表示のスタイル調整 */
.persona-result-count {
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* 📌 スライダーフィルター関連のスタイル */
.persona-slider-group {
    margin-bottom: 15px;
    width: 100%;
}

.persona-slider-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.persona-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.persona-slider-input {
    flex-grow: 1;
    height: 5px;
    background: #e0e0e0;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 5px;
}

.persona-slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}

.persona-slider-input::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}

.persona-slider-input:hover {
    opacity: 1;
}

.persona-slider-value {
    min-width: 50px;
    text-align: center;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
}

.persona-slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 0.8em;
}
