@charset "utf-8";

/* =========================================
   アニメーションの定義
========================================= */
@keyframes spsFadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spsBarGrow {
    from { width: 0%; }
    to { width: var(--bar-width, 0%); }
}

/* =========================================
   ベースデザイン（大手モール風スタイル）
========================================= */
.sps-review-wrap {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    margin: 0 auto 100px;
    color: #333;
}

/* =========================================
   ★ サマリー全体
========================================= */
.sps-review-summary {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    animation: spsFadeInUp 0.6s ease-out forwards;
    background: #f5f5f5;
    border-radius: 5px;
    margin: 20px 0;
    cursor: pointer; 
}

.sps-score-box {
    text-align: center;
    min-width: 200px;
}
.sps-score-num { 
    font-size: 40px;
    font-weight: bold; 
    color: #333; 
    line-height: 1.2;
}

.sps-score-stars { 
    font-size: 20px; 
    display: inline-flex;
    gap: 2px; 
    margin: 5px 0;
}
.sps-star {
    display: inline-block;
    color: transparent;
    background-image: linear-gradient(to right, #ff9e00 0%, #ff9e00 var(--star-percent, 0%), #e0e0e0 var(--star-percent, 0%), #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.sps-review-count { 
    font-size: 13px; 
    color: #0066c0; 
    text-decoration: none; 
}
.sps-review-count:hover {
    text-decoration: underline;
}

.sps-graph-box { 
    flex-grow: 1; 
}
.sps-graph-row { 
    display: flex; 
    align-items: center; 
    font-size: 13px; 
    color: #555;
    margin-bottom: 4px;
}
.sps-graph-bar-bg {
    flex-grow: 1;
    background-color: #eee;
    height: 10px;
    margin: 0 10px;
    border-radius: 5px;
    overflow: hidden;
}
.sps-graph-bar-fill { 
    background-color: #ff9e00; 
    height: 100%; 
    width: 0%; 
    animation: spsBarGrow 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
}
.sps-graph-percent {
    width: 30px;
    text-align: right;
}

table.userreview_list,section.userreview div.more {
    display: none;
}

/* =========================================
検索・絞り込み・ソート 領域 (新規マージ)
========================================= */
.sps-filter-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    justify-content: flex-end;
}
@media (min-width: 640px) {
    .sps-filter-container {
        flex-direction: row;
        align-items: center;
    }
}

.sps-search-box, 
.sps-filter-box, 
.sps-sort-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}
.sps-search-box input[type="text"]{
    border:none;
}
@media (min-width: 640px) {
    .sps-search-box, 
    .sps-filter-box, 
    .sps-sort-box {
        width: auto;
    }
}

.sps-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.sps-search-input {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #374151;
    outline: none;
    width: 100%;
}
@media (min-width: 640px) {
    .sps-search-input {
        width: 150px;
    }
}

.sps-select-input {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #374151;
    outline: none;
    cursor: pointer;
    width: 100%;
}

/* =========================================
   ★ 個別レビューカード
========================================= */
.sps-review-cards {
    margin-bottom: 20px;
}
.sps-review-stars-color {
    color: #ff9e00;
    font-size: 16px;
}
.sps-load-more-area {
    text-align: center;
}
.sps-action-btn {
    margin-top: 10px;
}
.sps-no-review,
.sps-no-match {
    text-align: center;
    color: #666;
    padding: 20px;
}

.sps-review-card {
    margin-bottom: 15px;
    opacity: 0;
    animation: spsFadeInUp 0.5s ease-out forwards;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    letter-spacing: 1px;
}

.sps-review-meta {
    margin-bottom: 8px;
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sps-review-user { 
    color: #333;
    font-weight: bold;
}

.sps-review-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
}
.sps-review-title { 
    font-weight: bold; 
    font-size: 16px; 
    margin: 0; 
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    color: #333;
}

.sps-review-card .sps-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin: 0;
    font-weight: normal;
}

/* =========================================
もっと見る等のボタンデザイン
========================================= */
.Button--blueTransparent { 
    display: block; 
    width: 100%; 
    padding: 14px; 
    text-align: center; 
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 14px;
    margin-top: 15px; 
    transition: all 0.2s ease; 
}
.Button--blueTransparent:hover { 
    background-color: #f9f9f9; 
    border-color: #999;
}

/* =========================================
店舗からの返信コメント（吹き出しデザイン）
========================================= */
.sps-shop-comment-wrap {
    margin-top: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    position: relative;
    border: 1px solid #e0e0e0;
}

.sps-shop-comment-wrap::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 25px;
    border-bottom: 8px solid #fff;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    z-index: 2;
}
.sps-shop-comment-wrap::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 24px;
    border-bottom: 10px solid #e0e0e0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    z-index: 1;
}

.sps-shop-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #0066cc;
}

.sps-shop-comment-label {
    font-size: 11px;
    font-weight: NORMAL;
    color: #fff;
    background-color: #666;
    padding: 2px 10px;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.sps-shop-comment-date {
    font-size: 12px;
    color: #666;
    margin-left: 0;
}

.sps-shop-comment-text {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

/* =========================================
スマホ
========================================= */
@media screen and (max-width:580px){
    .sps-review-summary {
        display: block;
    }
    
    .sps-score-box {
        margin: 0 0 20px;
    }
}