/* ===================================
   Google口コミ表示スタイル
   /wp-content/themes/lightning-child/css/google-reviews.css
   =================================== */

.gr-wrap {
    max-width: 1100px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* ---- ヘッダー ---- */
.gr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 24px;
}

.gr-header__score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gr-header__number {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: #202124;
}

.gr-header__count {
    font-size: 0.9rem;
    color: #5f6368;
}

.gr-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #1a73e8;
    text-decoration: none;
    white-space: nowrap;
}

.gr-header__link:hover {
    text-decoration: underline;
}

/* ---- 星 ---- */
.gr-stars {
    display: inline-flex;
    gap: 1px;
    line-height: 1;
}

.gr-star {
    font-size: 1.1rem;
}

.gr-star--full {
    color: #fbbc04;
}

.gr-star--half {
    color: #fbbc04;
    opacity: 0.6;
}

.gr-star--empty {
    color: #dadce0;
}

/* ---- 口コミ一覧（横並び） ---- */
.gr-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* ---- 口コミアイテム ---- */
.gr-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    background: #fff;
}

.gr-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gr-item__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gr-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gr-item__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gr-item__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gr-item__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #202124;
    text-decoration: none;
}

.gr-item__name:hover {
    text-decoration: underline;
}

.gr-item__time {
    font-size: 0.8rem;
    color: #80868b;
}

/* ---- 本文（省略表示） ---- */
.gr-item__text {
    font-size: 0.925rem;
    line-height: 1.7;
    color: #3c4043;
    margin: 0 0 12px;
    flex: 1;
}

/* ---- 続きリンク ---- */
.gr-item__more {
    display: inline-block;
    margin-top: auto;
    font-size: 0.85rem;
    color: #1a73e8;
    text-decoration: none;
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
}

.gr-item__more:hover {
    text-decoration: underline;
}

/* ---- エラー・空 ---- */
.gr-error,
.gr-empty {
    padding: 20px;
    text-align: center;
    color: #80868b;
    font-size: 0.9rem;
}

/* ---- タブレット（2列） ---- */
@media (max-width: 900px) {
    .gr-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- スマホ（1列） ---- */
@media (max-width: 600px) {
    .gr-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gr-list {
        grid-template-columns: 1fr;
    }

    .gr-item {
        padding: 16px;
    }

    .gr-header__number {
        font-size: 2rem;
    }
}
