/* ===== 店舗詳細 ===== */

.torisashi-gphoto {
    margin: 24px 0 32px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.torisashi-gphoto__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3f3;
}

.torisashi-gphoto__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.torisashi-gphoto__meta {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 9px 12px 10px;
    font-size: 11px;
    line-height: 1.5;
    color: #666;
    background: #fff;
}

.torisashi-gphoto__credits {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.torisashi-gphoto__google-maps {
    white-space: nowrap;
}

.torisashi-gphoto__author a,
.torisashi-gphoto__source {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.torisashi-gphoto__source {
    margin-left: auto;
}

/* ===== 店舗一覧 ===== */

.torisashi-gphoto-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 1px;
    overflow: hidden;
    background: #f3f3f3;
}

.torisashi-gphoto-card__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
}

.torisashi-gphoto-card__attribution {
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: calc(100% - 10px);
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .90);
    color: #555;
    font-size: 9px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.torisashi-gphoto-card__maps,
.torisashi-gphoto-card__author {
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.torisashi-gphoto-card__maps {
    flex: 0 0 auto;
}

.torisashi-gphoto-card__author {
    min-width: 0;
}

.torisashi-gphoto-card__separator {
    flex: 0 0 auto;
}

/* カードの親が画像高を持っていなくても極端に潰れないようにする */
img + .torisashi-gphoto-card,
picture + .torisashi-gphoto-card {
    min-height: 160px;
}

@media (max-width: 600px) {
    .torisashi-gphoto {
        margin: 18px 0 26px;
        border-radius: 10px;
    }

    .torisashi-gphoto__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .torisashi-gphoto__source {
        margin-left: 0;
    }

    .torisashi-gphoto-card__attribution {
        right: 4px;
        bottom: 4px;
        left: 4px;
        max-width: calc(100% - 8px);
        font-size: 8px;
    }
}


/* ===== 店舗一覧：営業時間のコンパクト表示 ===== */

.torisashi-hours-compact {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* PCでは大半の店舗を1〜2行に収める */
@media (min-width: 768px) {
    .torisashi-hours-compact {
        font-size: .95em;
    }
}
