/* 店舗情報ショートコード [store_info] */

/* ==========================================================================
   Store Info Shortcode (.store-card)
   ========================================================================== */
.store-card {
    width: 100%;
    border: 1px solid var(--km-border-mid);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    background-color: var(--km-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.store-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--km-accent, var(--km-red));
    padding-bottom: 12px;
    text-align: left;
    color: var(--km-text);
}

.store-main-info {
    display: block;
}

.detail-elements {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.detail-label {
    font-weight: 700;
    color: var(--km-text-muted, #7B7366);
    margin: 0;
}

.detail-value {
    flex: 1;
    margin: 0;
}

.detail-value p {
    margin: 0 0 12px;
}

.detail-value--hours {
    min-width: 0;
}

.store-hoursGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    align-items: start;
}

.store-hoursGroup,
.store-hoursRow {
    margin: 0;
    padding: 0;
}

.store-hoursGroup {
    display: grid;
    gap: 4px;
    align-content: start;
}

.store-hoursRow {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.5;
}

.store-hoursRow dt {
    display: block;
    font-weight: 700;
    color: var(--km-text-muted, #7B7366);
    text-align: left;
}

.store-hoursRow dd {
    margin: 0;
}

.store-map {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0 16px;
}

.detail-elements:last-child {
    margin-bottom: 0;
}

.store-details {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 16px;
}

.store-details .detail-access {
    order: 1;
    grid-column: 1 / -1;
}

.store-details .detail-phone {
    order: 2;
    margin-bottom: 0;
}

.store-details .detail-more {
    order: 3;
    margin-bottom: 0;
}

.store-details .detail-elements {
    align-items: center;
}

.km-details-link {
    display: inline-block;
    color: #0066CC;
    text-decoration: none;
}

.km-details-link:hover {
    text-decoration: none;
}

@media (max-width: 767px) {
    .store-map {
        max-width: none;
        aspect-ratio: 16 / 9;
    }
    .store-main-info .detail-elements,
    .store-details .detail-access {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .detail-label {
        width: auto;
    }

    .store-details {
        column-gap: 12px;
        row-gap: 12px;
    }

    .store-details .detail-elements {
        margin-bottom: 0;
    }

    .store-details .detail-phone,
    .store-details .detail-more {
        grid-template-columns: 4.5em minmax(0, 1fr);
        column-gap: 8px;
        align-items: center;
    }

    .store-details .detail-phone .detail-label,
    .store-details .detail-more .detail-label {
        min-width: 0;
    }

    .store-hoursGrid {
        gap: 8px 10px;
    }

    .store-hoursRow {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 4px;
        font-size: 12px;
    }
}

/* 特集記事固有の地図表示と狭幅レイアウト */
body.single-new_magazines .store-hoursRow {
    align-items: start;
}

body.single-new_magazines .googleMapZone {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0 16px;
    background: #f6f2ea;
}

body.single-new_magazines .store-map iframe,
body.single-new_magazines .googleMapZone iframe {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    body.single-new_magazines .store-details {
        display: block;
    }

    body.single-new_magazines .store-main-info .detail-elements,
    body.single-new_magazines .store-details .detail-elements,
    body.single-new_magazines .store-details .detail-access,
    body.single-new_magazines .store-details .detail-phone,
    body.single-new_magazines .store-details .detail-more {
        display: grid;
        grid-template-columns: 5.2em minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 4px;
        width: 100%;
        margin-bottom: 0;
        align-items: start;
    }

    body.single-new_magazines .detail-label,
    body.single-new_magazines .store-details .detail-label,
    body.single-new_magazines .store-details .detail-phone .detail-label,
    body.single-new_magazines .store-details .detail-more .detail-label {
        width: auto;
        min-width: 0;
    }

    body.single-new_magazines .detail-value,
    body.single-new_magazines .store-details .detail-value {
        min-width: 0;
        margin-left: 0;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    body.single-new_magazines .store-details .detail-value a {
        word-break: normal;
        overflow-wrap: anywhere;
    }
}
