/* [yc_group_stores] ショートコード用スタイル */

.yc-group-stores {
    width: 100%;
    margin: 1.5em 0;
}

.yc-group-stores-title {
    font-size: 1.4em;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e0e0e0;
}

.yc-group-store {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
    margin-bottom: 16px;
}

.yc-group-store-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    padding: 18px 20px;
    box-sizing: border-box;
}

.yc-group-store-name {
    position: relative;
    font-size: 1.1em;
    margin: 0 0 0.6em;
    padding-bottom: 0.5em;
}

.yc-group-store-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2em;
    height: 3px;
    background: #1769c2;
    border-radius: 2px;
}

.yc-group-store-address {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 0.5em;
}

.yc-group-store-link {
    margin: 0.6em 0 0;
    text-align: center;
}

.yc-group-store-link a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #1769c2;
    border-radius: 6px;
    background: #fff;
    color: #1769c2;
    font-weight: 600;
    text-decoration: none;
}

.yc-group-store-link a:hover {
    background: #1769c2;
    color: #fff;
}

.yc-group-store-map {
    min-width: 0;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
}

.yc-group-store-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .yc-group-store {
        display: block;
    }

    .yc-group-store-map {
        height: 190px;
        margin-top: 12px;
    }
}

/* [yc_group_stores_table] ショートコード用スタイル（会社案内ページ・一覧表形式） */

.yc-group-stores-table-wrap {
    width: 100%;
    margin-top: 1.5em;
    margin-bottom: 48px !important;
}

.yc-group-stores-table-heading {
    font-size: 1.4em;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e0e0e0;
}

.yc-group-stores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    table-layout: fixed;
}

.yc-group-stores-table th,
.yc-group-stores-table td {
    padding: 0.7em 1em;
    border: 1px solid #d8d8d8;
    vertical-align: middle;
    word-break: break-word;
}

/* ヘッダー行 */
.yc-group-stores-table thead th {
    background: #f7f8fa !important;
    font-weight: 600;
    text-align: center;
}

/* 列幅（thead の th で固定、table-layout:fixed が効く） */
.yc-group-stores-table thead .yc-gst-col-name    { width: 20%; }
.yc-group-stores-table thead .yc-gst-col-address { width: 50%; }
.yc-group-stores-table thead .yc-gst-col-site    { width: 15%; }
.yc-group-stores-table thead .yc-gst-col-map     { width: 15%; }

/* 本文セルの横揃え */
.yc-group-stores-table tbody .yc-gst-col-name    { text-align: center !important; }
.yc-group-stores-table tbody .yc-gst-col-address { text-align: left; }
.yc-group-stores-table tbody .yc-gst-col-site    { text-align: center !important; }
.yc-group-stores-table tbody .yc-gst-col-map     { text-align: center !important; }

.yc-group-stores-table td a {
    color: inherit;
    text-decoration: underline;
}

.yc-group-stores-table td a:hover {
    opacity: 0.75;
}

/* PC：site/map アイコンリンク */
.yc-group-stores-table .yc-gst-pc-icon-link,
.yc-group-stores-table .yc-gst-pc-icon-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
}

.yc-group-stores-table .yc-gst-pc-icon-link {
    color: #1769c2;
}

.yc-group-stores-table .yc-gst-pc-icon-link:hover {
    opacity: 0.75;
}

.yc-group-stores-table .yc-gst-pc-icon-disabled {
    color: #bbb;
    cursor: default;
    pointer-events: none;
}

/* PC：スマホ専用要素を非表示 */
.yc-group-stores-table .yc-gst-sp-actions {
    display: none;
}

/* スマホ：本当の2カラム（左：テキスト ＋ 右：アイコングループ） */
@media (max-width: 767px) {
    .yc-group-stores-table,
    .yc-group-stores-table tbody {
        display: block !important;
    }

    .yc-group-stores-table thead {
        display: none !important;
    }

    /* 1店舗 = 2カラムグリッド */
    .yc-group-stores-table tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 0.45em 0.25em;
    }

    .yc-group-stores-table tbody tr:last-child {
        border-bottom: none;
    }

    /* 全セル共通：罫線なし */
    .yc-group-stores-table tbody td {
        border: none !important;
        padding: 0.1em 0.4em;
        box-sizing: border-box;
    }

    /* 左列1行目：店舗名・太字・左揃え */
    .yc-group-stores-table tbody .yc-gst-col-name {
        grid-column: 1;
        grid-row: 1;
        font-weight: 600;
        text-align: left !important;
    }

    /* 左列2行目：所在地・左揃え */
    .yc-group-stores-table tbody .yc-gst-col-address {
        grid-column: 1;
        grid-row: 2;
        text-align: left !important;
    }

    /* PC用 site/map セルを非表示 */
    .yc-group-stores-table tbody .yc-gst-col-site,
    .yc-group-stores-table tbody .yc-gst-col-map {
        display: none !important;
    }

    /* 右列：スマホ専用アクショングループ（2行分にまたがり縦中央） */
    .yc-group-stores-table tbody .yc-gst-sp-actions {
        display: flex !important;
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        align-items: flex-start;
        justify-content: center;
        gap: 16px;
        padding: 0 0.3em;
    }

    /* 各アクション項目（link / noop 共通）：固定幅・ラベル上・アイコン下 */
    .yc-group-stores-table .yc-gst-sp-action,
    .yc-group-stores-table .yc-gst-icon-noop {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        text-align: center;
        box-sizing: border-box;
        text-decoration: none;
    }

    /* ラベル：44px幅flex中央揃え */
    .yc-group-stores-table .yc-gst-sp-label {
        display: flex;
        width: 44px;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 10px;
        line-height: 1.2;
        margin: 0 0 4px 0;
        color: #888;
    }

    /* アイコン：44px幅flex中央揃え・margin/paddingをリセット */
    .yc-group-stores-table .yc-gst-sp-action i,
    .yc-group-stores-table .yc-gst-icon-noop i {
        display: flex;
        width: 44px;
        height: 22px;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 20px;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* FA・テーマ側の ::before 余白をリセット */
    .yc-group-stores-table .yc-gst-sp-action i::before,
    .yc-group-stores-table .yc-gst-icon-noop i::before {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* リンクあり：青系 */
    .yc-group-stores-table .yc-gst-sp-actions a.yc-gst-sp-action {
        color: #1769c2;
    }

    .yc-group-stores-table .yc-gst-sp-actions a.yc-gst-sp-action:hover {
        opacity: 0.75;
    }

    /* 未登録：グレー・クリック不可 */
    .yc-group-stores-table .yc-gst-icon-noop {
        color: #bbb;
        cursor: default;
        pointer-events: none;
    }

    .yc-group-stores-table .yc-gst-icon-noop .yc-gst-sp-label {
        color: #bbb;
    }

    /* PCテキストを念のため非表示 */
    .yc-group-stores-table .yc-gst-pc-text {
        display: none !important;
    }

    /* data-label の ::before ラベルを無効化 */
    .yc-group-stores-table td::before {
        content: none;
    }
}
