/* ===== コンテナ ===== */
.gmbv2 {
    width: 70%;
    margin: 24px auto 0;
    position: relative;
}

.gmbv2 * {
    box-sizing: border-box;
}

/* ===== ヘッダ ===== */
.gmbv2-header {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.gmbv2-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.gmbv2-agg {
    color: #333;
    font-weight: 600;
    display: flex;
    gap: 4px;
    align-items: center;
}

.gmbv2-agg__star {
    font-size: 1.1rem;
    line-height: 1;
}

/* ===== コントロール ===== */
.gmbv2-controls {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gmbv2-nav {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    font-size: 16px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.gmbv2-nav:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ===== ビューポート / トラック ===== */
.gmbv2-viewport {
    overflow: hidden;
}

.gmbv2-track {
    display: flex;
    will-change: transform;
}

/* 各ページ（100%幅） */
.gmbv2-page {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    padding: 2px;
}

/* 画面幅に応じて「1ページ内の列数」を増やす（JSのperViewと対応） */
@media (min-width:600px) {
    .gmbv2-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:992px) {
    .gmbv2-page {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:1200px) {
    .gmbv2-page {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== カード ===== */
.gmbv2-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.gmbv2-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gmbv2-card__person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gmbv2-card__meta {
    min-width: 0;
}

.gmbv2-card__name {
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.gmbv2-card__time {
    color: #777;
    font-size: .87rem;
}

/* まるアイコン（イニシャル） */
.gmbv2-avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f5ff;
    color: #3547ff;
    font-weight: 700;
}

/* Google G バッジ（右上） */
.gmbv2-g {
    width: 20px;
    height: 20px;
    color: #4285F4;
}

/* 星と本文 */
.gmbv2-card__stars {
    color: #f39c12;
    letter-spacing: 1px;
    margin: 6px 0 8px;
}

.gmbv2-card__text {
    color: #333;
    line-height: 1.6;
    max-height: 7.8em;
    overflow: hidden;
}

.gmbv2-card.--open .gmbv2-card__text {
    max-height: none;
}

/* リンク */
.gmbv2-card__link a {
    text-decoration: underline;
    color: #0a58ca;
}

/* ドット */
.gmbv2-dots {
    text-align: center;
    margin-top: 12px;
}

.gmbv2-dot {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}

/* 帰属 */
.gmbv2-attr {
    margin-top: 10px;
    font-size: .85rem;
    color: #666;
}

/* エラー表示 */
.gmbv2-error {
    padding: 12px;
    background: #fff3f3;
    border: 1px solid #f7dcdc;
    color: #a40000;
    border-radius: 8px;
}

/* 画像アバター（写真がある場合） */
.gmbv2-avatar--img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.gmb-reviews {
    width: 70%;
    margin: 24px auto 0;
}

@media screen and (max-width: 600px) {
    .gmb-reviews {
        width: 91%;
        margin: 16px auto 0;
    }

}