/* =========================================================
   Shop | yachiyo / kashiwa 共通（整理版）
   ========================================================= */
.sg-shop {
  padding: 0 0 50px;
}

/* ---------------------------------------------------------
   hero
--------------------------------------------------------- */
.sg-shop .sgsp-hero {
  margin-bottom: 30px;
}

.sg-shop .sgsp-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------------------------------------------------------
   店舗情報
--------------------------------------------------------- */
/* 上段：店舗情報（2カラム） */
.sg-shop .sgsp-topgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 50px;
}

/* 店舗情報：表組み（row / th / td） */
.sg-shop .sgsp-info {
  border-top: 1px solid rgba(0, 0, 0, .35);
  margin-bottom: 30px;
}

.sg-shop .sgsp-dl {
  margin: 0;
  padding: 0;
}

.sg-shop .sgsp-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-shop .sgsp-th {
  position: relative;
  align-self: stretch;
  font-weight: 400;
  text-align: left;
  letter-spacing: .05em;
  padding-left: 10px;
}

/* 縦の区切り線 */
.sg-shop .sgsp-th::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  right: calc(-20px / 2);
  background: rgba(0, 0, 0, .35);
}

.sg-shop .sgsp-td {
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.7;
  margin: 0;
}

.sg-shop .sgsp-td p {
  margin: 0;
}

/* 交通アクセス */
.sg-shop .sgsp-access {
  max-width: none;
  margin: 0;
}

.sg-shop .sgsp-h2 {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  letter-spacing: .08em;
  font-size: 22px;
  margin: 0 0 10px;
}

.sg-shop .sgsp-accesscols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.sg-shop .sgsp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  background: #3d4955;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 20px;
  color: #fff;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.sg-shop .sgsp-ico {
  display: inline-block;
  font-size: 25px;
  line-height: 1;
  color: #fff;
  margin-right: 15px;
}

.sg-shop .sgsp-accesslist ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.9;
  margin: 0;
}

.sg-shop .sgsp-accesslist li {
  position: relative;
  padding-left: 1.3em;
}

.sg-shop .sgsp-accesslist li::before {
  position: absolute;
  left: 0;
  top: 5px;
  content: "chevron_right";
  font-family: "Material Icons Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 25px;
  line-height: 1;
  color: #0055ff;
}

.sg-shop .sgsp-accesslist a.sgsp-way {
  color: #000;
}

.sg-shop .sgsp-accesslist a.sgsp-way:hover,
.sg-shop .sgsp-accesslist a.sgsp-way:focus {
  color: #0055ff;
}

/* 地図 */
.sg-shop .sgsp-mapframe {
  border: none;
}

.sg-shop .sgsp-mapframe iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  border: 0;
}

/* ---------------------------------------------------------
   ギャラリー
--------------------------------------------------------- */
.sg-shop .sgsp-gallery {
  margin: 0 auto 50px;
}

.sg-shop .sgsp-ggrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.sg-shop .sgsp-gitem {
  margin: 0;
}

.sg-shop .sgsp-gitem img {
  width: 100%;
  height: auto;
  display: block;
}

.sg-shop .sgsp-gcap {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: left;
}

/* ---------------------------------------------------------
   スタッフ
--------------------------------------------------------- */
.sg-shop .sgsp-staff {
  margin: 0 auto 50px;
}

.sg-shop .sgsp-stgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.sg-shop .sgsp-stcard {
  text-align: left;
}

/* 写真枠 */
.sg-shop .sgsp-stphoto {
  position: relative;
  overflow: hidden;
  background: #eee;
}

.sg-shop .sgsp-stlink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sg-shop .sgsp-stphoto img {
  width: 100%;
  height: auto;
  display: block;
}

/* 英語：左上 */
.sg-shop .sgsp-strole {
  position: absolute;
  top: 0;
  left: 3px;
  font-family: "Cormorant", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(16px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  margin: 0;
}

/* 白帯 */
.sg-shop .sgsp-stname {
  position: absolute;
  left: 0;
  bottom: 16px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  pointer-events: none;
  gap: 5px;
  line-height: 1;
  margin: 0;
  padding: 10px 20px;
}

/* 日本語役職：ゴシック */
.sg-shop .sgsp-jtitle {
  display: block;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
}

/* 名前：明朝 */
.sg-shop .sgsp-jname {
  display: block;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .03em;
  line-height: 1.1;
}

/* ---------------------------------------------------------
    工事エリア
--------------------------------------------------------- */
.sg-shop .sgsp-area {
  margin: 0 auto 50px;
}

.sg-shop .sgsp-areagrid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 10px;
  align-items: start;
}

/* arealist（dl/dt/dd） */
.sg-shop .sgsp-arealist {
  line-height: 1.7;
}

/* 県名（見出し） */
.sg-shop .sgsp-area-pref {
  margin: 30px 0 5px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 500;
}

/* かな別リスト（dl） */
.sg-shop .sgsp-area-kana {
  margin: 0 0 10px;
  padding: 0;
}

/* 1行（dtとddを横並び） */
.sg-shop .sgsp-area-row {
  display: flex;
  gap: 5px;
  margin: 0;
}

.sg-shop .sgsp-area-row dt {
  margin: 0;
  flex: 0 0 2.2em;
  /* かな欄の固定幅（必要なら調整） */
  font-weight: 400;
}

.sg-shop .sgsp-area-row dd {
  margin: 0;
  flex: 1 1 auto;
}

/* 東京都の行 */
.sg-shop .sgsp-area-other {
  margin: 0 0 20px;
}

.sg-shop .sgsp-areamap {
  margin: 0;
}

.sg-shop .sgsp-areamap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------------------
   その他店舗
--------------------------------------------------------- */
.sg-shop .sgsp-other .sgsp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.sg-shop .sgsp-other .sgsp-card-photo {
  margin: 0;
}

.sg-shop .sgsp-other .sgsp-card-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.sg-shop .sgsp-other .sgsp-card-info {
  display: flex;
  flex-direction: column;
}

.sg-shop .sgsp-other .sgsp-card-name {
  font-size: 25px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  letter-spacing: .06em;
  margin: 0 0 20px;
}

.sg-shop .sgsp-other .sgsp-dl {
  border-top: 1px solid rgba(0, 0, 0, .35);
}


/* =========================================================
   Responsive
   ========================================================= */

/* 900px以下：2列→1列など */
@media (max-width: 900px) {

  .sg-shop .sgsp-topgrid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sg-shop .sgsp-accesscols {
    grid-template-columns: 1fr;
  }

  .sg-shop .sgsp-ggrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-shop .sgsp-stgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-shop .sgsp-areagrid {
    grid-template-columns: 1fr;
  }

  .sg-shop .sgsp-other .sgsp-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* thを広げる */
  .sg-shop .sgsp-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

/* 600px以下：1列＆表組みを縦積み */
@media (max-width: 600px) {

  .sg-shop .sgsp-ggrid {
    grid-template-columns: 1fr;
  }

  .sg-shop .sgsp-stgrid {
    grid-template-columns: 1fr;
  }

  /* 表組み：スマホは縦並びで読みやすく。縦線は不要 */
  .sg-shop .sgsp-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .sg-shop .sgsp-th {
    padding-left: 0;
  }

  .sg-shop .sgsp-th::after {
    display: none;
  }
}


/* =========================================================
   Access modal
   ========================================================= */

/* 閉じる時の移動先。画面には見せない */
.sg-shop .sgsp-modal-close-target {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* モーダル全体 */
.sg-shop .sgsp-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

/* リンクで呼び出された時だけ表示 */
.sg-shop .sgsp-modal:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 背景の黒い幕 */
.sg-shop .sgsp-modal-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, .55);
}

/* 白いポップアップ本体 */
.sg-shop .sgsp-modal-box {
    position: relative;
    z-index: 1;
    width: min(92vw, 650px);
    max-height: calc(100vh - 80px);
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    overflow-y: auto;
}

/* 上部の濃い見出し */
.sg-shop .sgsp-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    background: #3d4955;
    color: #fff;
    padding: 16px 64px 16px 24px;
    box-sizing: border-box;
}

.sg-shop .sgsp-modal-ico {
    font-size: 30px;
    line-height: 1;
    color: #fff;
    flex: 0 0 auto;
}

.sg-shop .sgsp-modal-kind {
    margin: 0;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .08em;
    color: #fff;
    white-space: nowrap;
}

.sg-shop .sgsp-modal-sep {
    margin: 0;
    color: #fff;
    opacity: .9;
}

.sg-shop .sgsp-modal-title {
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

/* 閉じるボタン */
.sg-shop .sgsp-modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    text-decoration: none;
}

.sg-shop .sgsp-modal-close:hover,
.sg-shop .sgsp-modal-close:focus {
    color: #fff;
    opacity: .7;
}

/* 本文 */
.sg-shop .sgsp-modal-body {
    padding: 30px;
}

.sg-shop .sgsp-route-step {
    margin: 0 0 34px;
}

.sg-shop .sgsp-route-step:last-child {
    margin-bottom: 0;
}

.sg-shop .sgsp-route-title {
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #000;
    margin: 0 0 5px;
}

.sg-shop .sgsp-route-figure {
    margin: 0;
}

.sg-shop .sgsp-route-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.sg-shop .sgsp-route-figure--goal {
    position: relative;
}

.sg-shop .sgsp-route-goal {
    position: absolute;
    left: 15px;
    bottom: 10px;
    font-family: "Cormorant", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: clamp(42px, 10vw, 95px);
    line-height: 1;
    letter-spacing: .03em;
    color: #3d4955;
    pointer-events: none;
    margin: 0;
}

.sg-shop .sgsp-route-figure--goal-topright .sgsp-route-goal {
    top: 6px;
    right: 14px;
    left: auto;
    bottom: auto;
}

/* スマホ */
@media (max-width: 600px) {
    .sg-shop .sgsp-modal-box {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 36px);
        margin: 18px auto;
    }

    .sg-shop .sgsp-modal-head {
        min-height: 64px;
        gap: 8px;
        padding: 14px 48px 14px 14px;
    }

    .sg-shop .sgsp-modal-ico {
        font-size: 26px;
    }

    .sg-shop .sgsp-modal-kind {
        font-size: 18px;
    }

    .sg-shop .sgsp-modal-title {
        font-size: 14px;
    }

    .sg-shop .sgsp-modal-sep {
        display: none;
    }

    .sg-shop .sgsp-modal-close {
        right: 14px;
        font-size: 36px;
    }

    .sg-shop .sgsp-modal-body {
        padding: 18px;
    }

    .sg-shop .sgsp-route-title {
        font-size: 16px;
    }
    
    .sg-shop .sgsp-route-figure--goal-topright .sgsp-route-goal {
        top: 4px;
        right: 10px;
    }
}