/* fk-review フロント表示スタイル */

.fkr-reviews {
    font-family: inherit;
}

/* ---- バッジ ---- */
.fkr-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.fkr-badge-google {
    background: #e8f0fe;
    color: #1a73e8;
}
.fkr-badge-manual {
    background: #fef3e2;
    color: #b45309;
}

/* ---- 星 ---- */
.fkr-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 6px 0;
}
.fkr-star {
    font-size: 18px;
    line-height: 1;
}
.fkr-star-filled { color: #f59e0b; }
.fkr-star-empty  { color: #d1d5db; }
.fkr-rating-num {
    font-size: 13px;
    color: #6b7280;
    margin-left: 4px;
}

/* ---- コメント ---- */
.fkr-comment {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin: 8px 0;
}

/* ---- フッター（名前・日付） ---- */
.fkr-review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}
.fkr-reviewer {
    font-weight: 600;
    color: #6b7280;
}
.fkr-source-name {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 4px;
}

/* ---- リストレイアウト ---- */
.fkr-layout-list .fkr-review-item {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
}
.fkr-review-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* ---- レビュアーのアイコン（写真 / 頭文字アバター） ---- */
.fkr-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-block;
}
.fkr-avatar-img,
.fkr-avatar-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.fkr-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

/* ---- タイルレイアウト ---- */
.fkr-layout-tile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.fkr-layout-tile .fkr-review-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.fkr-layout-tile .fkr-comment {
    flex: 1;
}

/* ---- 総合評価サマリー（ループ前ヘッダー） ---- */
.fkr-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}
.fkr-summary-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.fkr-summary-stars .fkr-star {
    font-size: 20px;
    line-height: 1;
}
.fkr-summary-avg {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}
.fkr-summary-count {
    font-size: 13px;
    color: #6b7280;
}

/* ---- もっと見る ---- */
.fkr-hidden { display: none !important; }
.fkr-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #1a73e8;
    background: #fff;
    border: 1px solid #1a73e8;
    border-radius: 24px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.fkr-more-btn:hover,
.fkr-more-btn:focus {
    background: #1a73e8;
    color: #fff;
}

/* ---- 続きを読む（個別レビューの長文展開） ---- */
.fkr-comment-short[hidden],
.fkr-comment-full[hidden] { display: none; }
.fkr-expand-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    background: none;
    border: none;
    cursor: pointer;
}
.fkr-expand-btn:hover,
.fkr-expand-btn:focus { text-decoration: underline; }

/* ---- 写真（list / tile 共通） ---- */
.fkr-review-photo {
    margin: 8px 0;
}
.fkr-review-photo .fkr-photo-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ---- 写真付き（LP向け）レイアウト ---- */
.fkr-layout-photo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.fkr-photo-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.fkr-photo-card-img .fkr-photo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.fkr-photo-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fkr-photo-card-body .fkr-comment {
    flex: 1;
}

/* ---- 空メッセージ ---- */
.fkr-empty {
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 640px) {
    .fkr-layout-tile {
        grid-template-columns: 1fr;
    }
}
