.rps-review-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    animation: rpsFadeInForm 0.5s ease-out both;
}

@keyframes rpsFadeInForm {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.rps-form-group {
    margin-bottom: 20px;
}

.rps-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.required {
    color: red;
}

.rps-form-group input[type="text"],
.rps-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.rps-form-group input[type="text"]:focus,
.rps-form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.25);
}

.rps-star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease;
}

.rps-star-rating:hover,
.rps-star-rating:focus-within {
    box-shadow: 0 4px 14px rgba(0, 124, 186, 0.25);
}

.rps-star-rating input[type="radio"] {
    display: none;
}

.rps-star-rating label {
    display: inline-block;
    cursor: pointer;
    color: #ddd;
    font-size: 24px;
    margin: 0 2px;
}

.rps-star-rating label:before {
    content: "★";
}

.rps-star-rating input[type="radio"]:checked ~ label {
    color: #ffcc00;
}

/* ホバー効果はJavaScriptで制御 */
.rps-star-rating label.hover-highlight {
    color: #ffcc00;
}

.rps-question-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rps-question-options label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rps-question-options input[type="radio"] {
    display: none;
}

.rps-question-options input[type="radio"]:checked + label {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.rps-question-options label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rps-submit-button {
    background-color: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    display: block;
}

.rps-submit-button:hover {
    background-color: #005a87;
}

.rps-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rps-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.rps-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rps-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レビュー一覧 */
.rps-review-list {
    margin: 20px 0;
}

.rps-review-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rps-review-list-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: bold;
    color: #333;
}

/* フォームのfieldsetスタイル */
.rps-rating-section,
.rps-questionnaire-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
}

.rps-rating-section legend,
.rps-questionnaire-section legend {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding: 0 10px;
}

.rps-sort-reviews {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.rps-review-item {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.rps-review-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.1);
}

/* 内容がないクチコミ用のスタイル */
.rps-review-item-minimal {
    border: 2px solid #eee;
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rps-review-item-minimal:hover {
    border-color: #007cba;
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.1);
}

.rps-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rps-review-author {
    font-weight: bold;
}

.rps-review-date {
    color: #666;
    font-size: 14px;
}

.rps-review-rating {
    font-size: 16px;
}

/* 星評価表示 - シンプルで確実な実装 */
.rps-star-display {
    display: inline-block;
    font-size: 18px;
    color: #ddd;
    position: relative;
}

.rps-star-display::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #ffcc00;
    overflow: hidden;
    white-space: nowrap;
    width: calc(var(--rating, 0.3) / 5 * 100%);
}

/* サマリーの個別評価の星だけ大きくてBlurスタイルを適用 */
.rps-item-stars-display .rps-star-display {
    font-size: 28px;
}

.rps-item-stars-display .rps-star-display::before {
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    filter: blur(0.5px);
}

/* 後方互換性のための古いスタイル */
.rps-review-rating .star {
    color: #ddd;
}

.rps-review-rating .star.filled {
    color: #ffcc00;
}

.rps-review-text {
    margin: 10px 0;
    line-height: 1.6;
}

.rps-review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.rps-review-images img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* グリッドレイアウト */
.rps-review-list.rps-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rps-layout-grid .rps-review-item {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.rps-layout-grid .rps-review-item:hover {
    border-color: #007cba;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.15);
    transform: translateY(-4px);
}

/* グリッドレイアウト用の内容がないクチコミスタイル */
.rps-layout-grid .rps-review-item-minimal {
    border: 2px solid #eee;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rps-layout-grid .rps-review-item-minimal:hover {
    border-color: #007cba;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.15);
    transform: translateY(-4px);
}

/* 評価サマリー */
.rps-review-summary {
    background: #fff;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.rps-review-summary:hover {
    border-color: #007cba;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.1);
}

.rps-summary-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rps-summary-image {
    flex-shrink: 0;
}

.rps-summary-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rps-summary-content {
    flex: 1;
    text-align: center;
}

/* 画像がない場合のスタイル（JavaScriptで制御されるクラス） */
.rps-summary-header.no-image {
    justify-content: center;
}

.rps-summary-header.no-image .rps-summary-content {
    text-align: center;
}

.rps-average-rating {
    font-weight: bold;
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

.rps-rating-score {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
}

.rps-total-reviews {
    color: #666;
    margin-top: 5px;
}

.rps-rating-distribution {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.rps-section-title,
.rps-rating-distribution h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    text-align: center;
    font-weight: bold;
}

.rps-rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px !important;
    padding: 2px 0 !important;
    min-height: 40px;
}

.rps-rating-label {
    width: 35px;
    text-align: center;
    margin-right: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.rps-rating-gauge {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.rps-rating-progress {
    flex: 1;
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.rps-rating-fill {
    height: 100%;
    background: #ffcc00;
    transition: width 0.3s;
}

.rps-rating-count {
    margin-left: 10px;
    min-width: 40px;
    text-align: right;
}

/* ランキング */
.rps-ranking-container {
    margin: 20px 0;
}

.rps-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.rps-ranking-header-title {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.rps-ranking-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.rps-ranking-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rps-ranking-sort label {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.rps-ranking-sort-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.rps-ranking-list {
    margin: 20px 0;
}

.rps-ranking-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

/* アンカータグとしてのランキングアイテムのスタイル */
a.rps-ranking-item:hover {
    text-decoration: none;
    color: inherit;
}

.rps-ranking-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.15);
    transform: translateY(-2px);
}

.rps-ranking-background-gauge {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--gauge-percentage, 0%);
    background: #007cba;
    opacity: 0.2;
    transition: width 0.8s ease-out;
    z-index: 1;
    border-radius: 10px 0 0 10px;
}

.rps-ranking-number {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    min-width: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.rps-ranking-image {
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    writing-mode: vertical-rl;
}

.rps-ranking-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rps-ranking-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.rps-ranking-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.rps-ranking-meta {
    color: #666;
    font-size: 14px;
}

/* ゲージ表示共通スタイル */
.rps-gauge-bar {
    height: 24px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex: 1;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.rps-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 12px;
    transition: width 0.8s ease-out;
    position: relative;
    box-shadow: 0 1px 3px rgba(255, 165, 0, 0.3);
    overflow: hidden;
}

.rps-gauge-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%, rgba(255,255,255,0.3));
    animation: shimmer 2s infinite;
    border-radius: inherit;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ランキング用ゲージスタイル */
.rps-satisfaction-gauge,
.rps-usage-gauge {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.rps-gauge-label {
    font-weight: bold;
    min-width: 80px;
    font-size: 12px;
    color: #555;
}

.rps-gauge-value {
    font-weight: bold;
    min-width: 60px;
    text-align: right;
    color: #333;
    font-size: 13px;
}

.rps-rating-display {
    margin: 5px 0;
}

/* ランキングアイテムの上位用豪華なスタイル */

/* 1位（金メダル）- 豪華なゴールドスタイル */
.rps-ranking-item:nth-child(1) {
    position: relative;
    border: 3px solid #FFD700;
    background: #fff;
    box-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    animation: goldGlow 3s ease-in-out infinite alternate;
}


.rps-ranking-item:nth-child(1) .rps-ranking-background-gauge {
    background: linear-gradient(90deg, #FF8C00 0%, #FFA500 50%, #FFD700 100%);
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rps-ranking-item:nth-child(1) .rps-ranking-number {
    color: #B8860B;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 215, 0, 0.8);
    font-size: 28px;
}

/* 1位の星評価の色のみ変更 */
.rps-ranking-item:nth-child(1) .rps-star-display::before {
    color: #FF6B00; /* オレンジ色で視認性向上 */
}


/* 2位（銀メダル）- エレガントなシルバースタイル */
.rps-ranking-item:nth-child(2) {
    position: relative;
    border: 3px solid #C0C0C0;
    background: #fff;
    box-shadow: 
        0 2px 6px rgba(192, 192, 192, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    animation: silverGlow 3s ease-in-out infinite alternate;
}


.rps-ranking-item:nth-child(2) .rps-ranking-background-gauge {
    background: linear-gradient(90deg, #808080 0%, #A9A9A9 50%, #C0C0C0 100%);
    opacity: 0.5;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.rps-ranking-item:nth-child(2) .rps-ranking-number {
    color: #696969;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.6),
        0 0 8px rgba(192, 192, 192, 0.6);
    font-size: 26px;
}

/* 3位（銅メダル）- 温かみのあるブロンズスタイル */
.rps-ranking-item:nth-child(3) {
    position: relative;
    border: 3px solid #CD853F;
    background: #fff;
    box-shadow: 
        0 2px 6px rgba(205, 133, 63, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    animation: bronzeGlow 3s ease-in-out infinite alternate;
}


.rps-ranking-item:nth-child(3) .rps-ranking-background-gauge {
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    opacity: 0.5;
    box-shadow: 0 0 15px rgba(205, 133, 63, 0.4);
}

.rps-ranking-item:nth-child(3) .rps-ranking-number {
    color: #8B4513;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.5),
        0 0 8px rgba(205, 133, 63, 0.5);
    font-size: 26px;
}

/* アニメーション定義 */
@keyframes goldGlow {
    0% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
    100% { box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
}

@keyframes silverGlow {
    0% { box-shadow: 0 2px 6px rgba(192, 192, 192, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
    100% { box-shadow: 0 3px 10px rgba(192, 192, 192, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
}

@keyframes bronzeGlow {
    0% { box-shadow: 0 2px 6px rgba(205, 133, 63, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
    100% { box-shadow: 0 3px 10px rgba(205, 133, 63, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }
}

/* ホバー効果の強化 */
.rps-ranking-item:nth-child(1):hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.rps-ranking-item:nth-child(2):hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 4px 12px rgba(192, 192, 192, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.rps-ranking-item:nth-child(3):hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 4px 12px rgba(205, 133, 63, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* スマートフォン対応 - 金銀銅デザインの調整 */
@media (max-width: 768px) {
    /* 1位（金）のスマートフォン対応 */
    .rps-ranking-item:nth-child(1) {
        border: 2px solid #FFD700;
        box-shadow: 
            0 1px 6px rgba(255, 215, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    
    .rps-ranking-item:nth-child(1) .rps-ranking-number {
        font-size: 24px;
    }
    
    /* 2位（銀）のスマートフォン対応 */
    .rps-ranking-item:nth-child(2) {
        border: 2px solid #C0C0C0;
        box-shadow: 
            0 1px 4px rgba(192, 192, 192, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    
    .rps-ranking-item:nth-child(2) .rps-ranking-number {
        font-size: 22px;
    }
    
    /* 3位（銅）のスマートフォン対応 */
    .rps-ranking-item:nth-child(3) {
        border: 2px solid #CD853F;
        box-shadow: 
            0 1px 4px rgba(205, 133, 63, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    
    .rps-ranking-item:nth-child(3) .rps-ranking-number {
        font-size: 22px;
    }
    
    /* スマートフォンでのホバー効果を軽減 */
    .rps-ranking-item:nth-child(1):hover,
    .rps-ranking-item:nth-child(2):hover,
    .rps-ranking-item:nth-child(3):hover {
        transform: translateY(-1px) scale(1.005);
    }
    
    /* アニメーションを軽減してバッテリー節約 */
    .rps-ranking-item:nth-child(1),
    .rps-ranking-item:nth-child(2),
    .rps-ranking-item:nth-child(3) {
        animation-duration: 6s;
    }
}

/* サマリー用ゲージスタイル */
.rps-rating-gauge {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 10px;
}

.rps-gauge-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 55px;
    flex-shrink: 0;
}

.rps-gauge-percentage {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
}

.rps-gauge-count {
    color: #666;
    font-size: 12px;
    line-height: 1.2;
}

/* 個別評価用ゲージスタイル */
.rps-item-rating {
    padding: 12px 0;
    border-bottom: none;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rps-item-rating:last-child {
    border-bottom: none;
}

.rps-item-info {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rps-item-name {
    font-size: 17px !important;
    font-weight: bold;
    color: #333;
}

.rps-item-gauge {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* 個別評価 */
.rps-item-ratings {
    margin: 20px 0;
    padding: 15px;
    background: #F9F9F9 !important; /* 指定どおり背景色を固定 */
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.rps-item-ratings .rps-section-title,
.rps-item-ratings h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    text-align: center;
    font-weight: bold;
}

.rps-item-rating:hover {
    box-shadow: 6px 6px 16px rgba(0,0,0,0.1);
}

.rps-item-score {
    font-weight: normal;
    color: #666;
    font-size: 15px;
}

.rps-item-score .score-number {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.rps-item-stars-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 5px 0;
}

.rps-item-stars-display .star {
    font-size: 28px;
    color: #ddd;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    cursor: default;
}

.rps-item-stars-display .star.filled {
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

/* 星評価の共通スタイル */
.rps-star-display .star,
.rps-average-rating + .rps-star-display .star,
.rps-ranking-item .star,
.rps-item-stars .star {
    color: #ddd;
}

.rps-star-display .star.filled,
.rps-average-rating + .rps-star-display .star.filled,
.rps-item-stars .star.filled {
    color: #ffcc00;
}

/* 古いpartial-XXクラスは削除済み - カスタムプロパティベースの実装を使用 */

/* ランキング内の星評価に特別なtext-shadow */
.rps-ranking-item .star {
    text-shadow: 
        1px 0 0 #fff,
        1px 1px 0 #fff,
        0 1px 0 #fff,
        -1px 1px 0 #fff,
        -1px 0 0 #fff,
        -1px -1px 0 #fff,
        0 -1px 0 #fff,
        1px -1px 0 #fff;
}

.rps-ranking-item .star.filled {
    color: #ffcc00;
}

/* ランキング内のpartialクラスも削除済み - カスタムプロパティベースの実装を使用 */

/* レスポンシブデザイン - スマートフォン向け最適化 */
@media (max-width: 480px) {
    .rps-rating-distribution {
        margin: 15px 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    .rps-rating-distribution h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .rps-rating-bar {
        margin-bottom: 6px !important;
        padding: 1px 0 !important;
        min-height: 36px;
    }
    
    .rps-rating-label {
        width: 30px;
        margin-right: 6px;
        font-size: 13px;
    }
    
    .rps-rating-gauge {
        gap: 8px;
    }
    
    .rps-gauge-bar {
        height: 20px;
        border-radius: 10px;
    }
    
    .rps-gauge-info {
        min-width: 45px;
    }
    
    .rps-gauge-percentage {
        font-size: 13px;
    }
    
    .rps-gauge-count {
        font-size: 11px;
    }
    
    /* 個別評価のスマートフォン最適化 */
    .rps-item-ratings {
        margin: 15px 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    .rps-item-ratings h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .rps-item-rating {
        padding: 15px 0;
        min-height: 70px;
        gap: 12px;
    }
    
    .rps-item-name {
        font-size: 16px !important;
    }
    
    .rps-item-score {
        padding: 0 8px;
    }
    
    .rps-item-stars-display {
        gap: 6px;
    }
    
    .rps-item-stars-display .star {
        font-size: 24px;
    }
    
    .rps-review-form {
        padding: 18px;
    }
    
    .rps-star-rating label {
        font-size: 28px;
    }
    
    .rps-question-options label {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
}

@media (max-width: 320px) {
    .rps-rating-distribution {
        padding: 10px;
    }
    
    .rps-rating-label {
        width: 28px;
        margin-right: 4px;
        font-size: 12px;
    }
    
    .rps-rating-gauge {
        gap: 6px;
    }
    
    .rps-gauge-info {
        min-width: 40px;
    }
    
    .rps-gauge-percentage {
        font-size: 12px;
    }
    
    .rps-gauge-count {
        font-size: 10px;
    }
    
    /* 個別評価の極小画面最適化 */
    .rps-item-ratings {
        padding: 10px;
    }
    
    .rps-item-rating {
        padding: 12px 0;
        min-height: 65px;
        gap: 10px;
    }
    
    .rps-item-name {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .rps-item-score {
        font-size: 15px;
    }
    
    .rps-item-stars-display {
        gap: 4px;
    }
    
    .rps-item-stars-display .star {
        font-size: 22px;
    }
}

/* タッチデバイス向けアクセシビリティ改善 */
@media (hover: none) and (pointer: coarse) {
    .rps-rating-bar {
        padding: 8px 0;
        min-height: 48px;
    }
    
    .rps-rating-bar:focus-within,
    .rps-rating-bar:active {
        background-color: rgba(0, 124, 186, 0.05);
        border-radius: 8px;
        outline: 2px solid #007cba;
        outline-offset: 2px;
    }
    
    .rps-item-rating {
        padding: 18px 0;
        min-height: 85px;
    }
    
    .rps-item-rating:focus-within,
    .rps-item-rating:active {
        background-color: rgba(0, 124, 186, 0.05);
        border-radius: 8px;
        outline: 2px solid #007cba;
        outline-offset: 2px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .rps-rating-distribution,
    .rps-item-ratings {
        border: 2px solid #000;
        background: #fff;
    }
    
    .rps-gauge-bar {
        border: 1px solid #000;
        background: #f0f0f0;
    }
    
    .rps-gauge-fill {
        background: #000;
    }
    
    .rps-rating-label,
    .rps-gauge-percentage,
    .rps-gauge-count,
    .rps-item-name,
    .rps-item-score {
        color: #000;
    }
    
    .rps-item-stars-display .star {
        color: #666;
    }
    
    .rps-item-stars-display .star.filled {
        color: #000;
    }
}

/* スケルトンローディング */
.rps-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rps-skeleton-item {
    position: relative;
    overflow: hidden;
    height: 64px;
    background: #f0f0f0;
    border-radius: 8px;
}

.rps-skeleton-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, rgba(240,240,240,0) 0%, rgba(245,245,245,0.8) 50%, rgba(240,240,240,0) 100%);
    animation: rps-skeleton-shimmer 1.2s infinite;
}

@keyframes rps-skeleton-shimmer {
    0% {
        left: -150px;
    }
    100% {
        left: 100%;
    }
}

@media (max-width: 480px) {
    .rps-skeleton-item {
        height: 56px;
    }
}

/* ================================
   RPS ITEM RATINGS – ENGAGING UI
   よりスクロールを促す魅力的なビジュアル
   ================================ */

/* カード風の背景とフェードイン */
.rps-item-ratings {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf2 50%, #fff7e6 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    animation: rpsFadeIn 0.6s ease-out both;
}

@keyframes rpsFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* 各項目をカード化してホバーアニメーション */
.rps-item-rating {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rps-item-rating:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 星をきらめかせて注意を引く */
@keyframes rpsStarShine {
    0%   { text-shadow: 0 0 4px rgba(255, 215, 0, 0.4); }
    50%  { text-shadow: 0 0 8px rgba(255, 215, 0, 0.9); transform: scale(1.2); }
    100% { text-shadow: 0 0 4px rgba(255, 215, 0, 0.4); }
}

.rps-item-stars-display .star.filled {
    animation: rpsStarShine 2.4s ease-in-out infinite;
}

/* スターごとにディレイを付けて躍動感を演出 */
.rps-item-stars-display .star.filled:nth-child(1) { animation-delay: 0s; }
.rps-item-stars-display .star.filled:nth-child(2) { animation-delay: 0.15s; }
.rps-item-stars-display .star.filled:nth-child(3) { animation-delay: 0.3s; }
.rps-item-stars-display .star.filled:nth-child(4) { animation-delay: 0.45s; }
.rps-item-stars-display .star.filled:nth-child(5) { animation-delay: 0.6s; }

/* スマートフォンでのパフォーマンス最適化 */
@media (hover: none) and (pointer: coarse) {
    .rps-item-rating:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

/* =====================================
   RPS REVIEW FORM – ENGAGING EXPERIENCE
   色変更なしでUXを向上
   ===================================== */

/* 入力フォーカス時に軽くポップアップ */
.rps-form-group input[type="text"],
.rps-form-group textarea {
    transition: all 0.25s ease;
}

.rps-form-group input[type="text"]:focus,
.rps-form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.25);
}

/* 質問オプションのホバー・選択アニメーション */
.rps-question-options label {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rps-question-options label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rps-question-options input[type="radio"]:checked + label {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* 星評価をアニメーションさせ注意を引く（色は既存） */
@keyframes rpsFormStarBounce {
    0%   { transform: scale(1);   text-shadow: 0 0 4px rgba(255, 204, 0, 0.5); }
    50%  { transform: scale(1.3); text-shadow: 0 0 8px rgba(255, 204, 0, 0.9); }
    100% { transform: scale(1);   text-shadow: 0 0 4px rgba(255, 204, 0, 0.5); }
}

.rps-star-rating label:hover,
.rps-star-rating input[type="radio"]:checked + label {
    animation: rpsFormStarBounce 0.6s ease-in-out forwards;
}

/* スマホ最適化 */
@media (max-width: 480px) {
    .rps-review-form {
        padding: 18px;
    }
    .rps-star-rating label {
        font-size: 28px;
    }
    .rps-question-options label {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
}

/* ===== モーダルスタイル ===== */
.rps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rps-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rps-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rps-modal-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.rps-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.rps-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.rps-modal-body {
    padding: 20px;
}

.rps-form-group {
    margin-bottom: 15px;
}

.rps-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.rps-form-group select,
.rps-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rps-form-group select:focus,
.rps-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.rps-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rps-button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.rps-button-secondary {
    background: white;
    color: #666;
}

.rps-button-secondary:hover {
    background: #f8f8f8;
}

.rps-button-primary {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.rps-button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.rps-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* レビューアクションボタン */
.rps-review-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

.rps-report-button {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 0;
    transition: color 0.2s;
}

.rps-report-button:hover {
    color: #333;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .rps-modal-content {
        width: 95%;
        max-height: 95%;
        margin: 10px;
    }
    
    .rps-modal-header,
    .rps-modal-body {
        padding: 15px;
    }
    
    .rps-form-actions {
        flex-direction: column;
    }
    
    .rps-button {
        width: 100%;
    }
}

/* ===== 画像拡大表示モーダル ===== */
.rps-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: imageModalFadeIn 0.3s ease;
}

@keyframes imageModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rps-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.rps-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    height: 100%;
    z-index: 1;
    animation: imageModalSlideIn 0.3s ease;
    margin: auto;
    align-content: center;
}

@keyframes imageModalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.rps-image-modal-close {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(128, 128, 128, 0.7);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rps-image-modal-close:hover {
    background: rgba(128, 128, 128, 0.9);
    transform: translateX(-50%) scale(1.1);
    color: rgba(255, 255, 255, 1);
}

#rps-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* レビュー画像エリアのスタイル */
.rps-review-images {
    margin: 15px 0 0 0;
    padding: 10px 0 0 0;
    border-top: 1px solid #eee;
}

/* レビュー画像のクリック可能スタイル */
.rps-review-images .rps-review-image-thumbnail {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
    margin: 5px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

.rps-review-images .rps-review-image-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* モーダル表示時のスクロール制御 */
body.modal-open {
    overflow: hidden;
}

/* エラー時の視覚的フィードバック */
.rps-star-rating.rps-error-field {
    border: 2px solid #dc3545;
    padding: 5px;
    border-radius: 4px;
    animation: shake 0.5s;
}

.rps-star-rating label {
    outline: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .rps-image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .rps-image-modal-close {
        bottom: 2%;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
    
    .rps-review-images .rps-review-image-thumbnail {
        max-width: 80px;
        max-height: 80px;
    }
}