/* =========================================================
   Showroom
   ========================================================= */

.sg-showroom {
    padding-bottom: 50px;
}

/* 2カラム */
.sg-showroom .sgsr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: start;
}

/* カード */
.sg-showroom .sgsr-card {
    background: transparent;
}

/* 写真 */
.sg-showroom .sgsr-photo {
    position: relative;
    overflow: hidden;
    background: #fff;
    margin: 0 0 35px;
}

/* 上に店舗名 */
.sg-showroom .sgsr-name {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: clamp(20px, 2.2vw, 34px);
    letter-spacing: .22em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

/* 下の情報（罫線） */
.sg-showroom .sgsr-info {
    border-top: 1px solid rgba(0, 0, 0, .35);
    margin-top: 0;
}

.sg-showroom .sgsr-row {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .35);
}

.sg-showroom .sgsr-row--map {
    padding-right: 100px;
}

.sg-showroom .sgsr-row--map .sgsr-map {
    position: absolute;
    display: flex;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    justify-content: flex-end;
}

.sg-showroom .sgsr-th {
    position: relative;
    align-self: stretch;
    text-align: left;
    letter-spacing: .05em;
    padding-left: 10px;
}

/* 行の高さに合わせて縦線を表示 */
.sg-showroom .sgsr-th::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    right: calc(-20px / 2);
    background: rgba(0, 0, 0, .35);
}

.sg-showroom .sgsr-td {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.7;
}

.sg-showroom .sgsr-td p {
    margin: 0;
}

/* MAPボタン */
.sg-showroom .sgsr-mapbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    border-radius: 2px;
    background: #fff;
    color: #000;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 500;
    letter-spacing: .08em;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, .35);
    padding: 0 14px;
}

.sg-showroom .sgsr-mapbtn:hover,
.sg-showroom .sgsr-mapbtn:focus {
    opacity: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, .18);
}

/* -------------------------
   Responsive
------------------------- */
@media (max-width: 900px) {
    .sg-showroom .sgsr-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sg-showroom .sgsr-row {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    /* カード全体を中央寄せ意識 */
    .sg-showroom .sgsr-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 写真ブロックを中央配置 */
    .sg-showroom .sgsr-photo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .sg-showroom .sgsr-name {
        font-size: clamp(22px, 4vw, 30px);
    }


    /* 画像自体も中央寄せ＆はみ出し防止 */
    .sg-showroom .sgsr-photo img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
    }

    /* 情報エリアは左揃え維持（読みやすさ優先） */
    .sg-showroom .sgsr-info {
        width: 100%;
    }
}


@media (max-width: 600px) {

    .sg-showroom {
        padding-bottom: 44px;
    }

    /* =========================
       行レイアウト
    ========================= */
    .sg-showroom .sgsr-row {
        position: relative;
        grid-template-columns: 80px 1fr;
        padding: 10px 0;
    }

    .sg-showroom .sgsr-th {
        grid-column: 1;
    }

    .sg-showroom .sgsr-td {
        grid-column: 2;
    }

    /* =========================
       MAPボタン（右下配置）
    ========================= */
    .sg-showroom .sgsr-map {
        position: absolute;
        right: 6px;
        bottom: 6px;
        transform: none;
    }

    /* ▼ここが重要（高さを作る） */
    .sg-showroom .sgsr-row--map {
        padding-right: 110px;
        padding-bottom: 24px; /* ←追加 */
    }

    /* 不要MAP */
    .sg-showroom .sgsr-map[aria-hidden="true"] {
        display: none;
    }

    /* =========================
       店舗名（画像上）
    ========================= */
    .sg-showroom .sgsr-name {
        top: 18px;
        letter-spacing: .18em;
    }

}