/* ===== SP（≤768px）観光カード：整理版 ===== */
@media (max-width: 768px){

  /* 各カードを絶対配置の基準に＆タイトル行を太字＋右上バッジ */
  #shop-info-portal dl.detailInfoItem{ position: relative; }
  #shop-info-portal dl.detailInfoItem > dt{
    position: relative;
    margin: 0 0 .45em;
    padding-right: 6.5em;   /* 右上バッジぶん */
    line-height: 1.4;
    font-weight: 700;
  }
  #shop-info-portal dl.detailInfoItem > dt .sip-cat-badge{
    position: absolute; top: 8px; right: 8px; z-index: 2;
    display: inline-block; font-size: .75rem; line-height: 1;
    padding: .35em .55em; border-radius: 999px; color: #fff;
  }
  #shop-info-portal dl.detailInfoItem > dt .sip-cat-badge.-play{   background:#6aa84f; }
  #shop-info-portal dl.detailInfoItem > dt .sip-cat-badge.-food{   background:#e69138; }
  #shop-info-portal dl.detailInfoItem > dt .sip-cat-badge.-around{ background:#7f8c8d; }

  /* レイアウト：画像 左160×120 / 右に情報 / その下に距離（線あり）/ 全幅の詳細 / 全幅ボタン */
  #shop-info-portal dl.detailInfoItem > dd{
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-areas:
      "img info"
      "img distance"
      "text text"
      "btn  btn";
    column-gap: 12px;
    row-gap: 10px;
    align-items: start;
    margin: 0;
  }

  /* 画像（左）：均等トリミング 160×120 */
  #shop-info-portal dl.detailInfoItem > dd > figure{
    grid-area: img; width: 160px; height: 120px; margin: 0;
  }
  #shop-info-portal dl.detailInfoItem > dd > figure img{
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  }

  /* mapWrap の箱はフラット化（中身を dd 直下と同等に） */
  #shop-info-portal dl.detailInfoItem > dd > .mapWrap{ display: contents; }

  /* 住所/TEL/営業時間（右上ブロック）— 線は出さない */
  #shop-info-portal dl.detailInfoItem .infoMap{
    grid-area: info;
    margin: 0; padding: 0;
    border: 0; box-shadow: none; background: none;
  }
  #shop-info-portal dl.detailInfoItem .infoMapInner{
    display: flex; gap: 8px; align-items: flex-start;
  }
  #shop-info-portal dl.detailInfoItem .iconMap{
    width: 32px; height: 32px; flex: 0 0 32px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #shop-info-portal dl.detailInfoItem .iconMap img{
    width: 100%; height: 100%; object-fit: contain; display: block;
  }
  #shop-info-portal dl.detailInfoItem .infoText{ margin: 0; line-height: 1.45; }
  #shop-info-portal dl.detailInfoItem .infoAddress{ margin: 0; font-size: 13px; }
  #shop-info-portal dl.detailInfoItem .infoTel{
    margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3;
  }
  #shop-info-portal .detailInfoItem .infoTel a{ color: inherit; text-decoration: none; }
  #shop-info-portal dl.detailInfoItem .infoHours{
    margin: 6px 0 0; font-size: 13px; line-height: 1.5;
    border: 0; padding: 0; box-shadow: none; background: none;
  }

  /* 距離（右下）：ここだけ上下に線を出す */
  #shop-info-portal dl.detailInfoItem .accessMap{
    grid-area: distance;
    margin: 6px 0 8px;     /* 上＝営業時間との間／下＝詳細との間 */
    padding: 6px 0;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    box-shadow: none; background: none;
  }

  /* 観光地詳細：全幅 */
  #shop-info-portal dl.detailInfoItem .textMap{
    grid-area: text; margin: 0 0 2px; line-height: 1.6;
  }

  /* 施設HPボタン：全幅・PCと同配色 */
  #shop-info-portal dl.detailInfoItem .linkBtn{
    grid-area: btn;
	margin: 0 0 24px;
    display: block; width: 100%; text-align: center;
    padding: 12px 16px; min-height: 44px; border-radius: 8px;
    background: #fabe00; color: #421100; border: 1px solid #e0a800;
    box-shadow: 0 2px 4px rgba(0,0,0,.15); font-weight: 700;
  }
  #shop-info-portal dl.detailInfoItem .linkBtn:hover,
  #shop-info-portal dl.detailInfoItem .linkBtn:focus-visible{
    background: #e0a800; color: #fff; border-color: #cf9800;
    outline: 2px solid rgba(0,0,0,.15); outline-offset: 2px;
  }
  #shop-info-portal dl.detailInfoItem .linkBtn *{
    color: inherit; text-decoration: inherit;
  }
	
  /* 営業時間の文字サイズを微縮小 */
  #shop-info-portal dl.detailInfoItem .infoHours{
    font-size: 12px !important;   /* 既存 13px → 12px に */
    line-height: 1.45 !important;
  }
}

/* === 観光情報：丸ボタン（PC/SP共通の最小セット） === */
#shop-info-portal { --icon-size: 68px; --icon-pad: 8px; } /* ←PCの基準値 */

#shop-info-portal .sip-nav{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:16px;                 /* ← ボタン同士の間隔 */
  list-style:none;
  padding:0;
  margin:0 0 16px;
  flex-wrap:wrap;           /* 画面幅に収まらない時は折り返し */
}

#shop-info-portal .sip-nav li{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:var(--icon-size);
}

#shop-info-portal .sip-nav li figure{
  width:var(--icon-size);
  height:var(--icon-size);
  margin:0 0 6px;
  border-radius:50%;
  background:#fff;
  padding:var(--icon-pad);
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
}

#shop-info-portal .sip-nav li figure img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  border-radius:50%;
}

#shop-info-portal .sip-nav li span{
  display:block;
  font-size:.85rem;
  line-height:1.2;
  text-align:center;
}

/* === SP（～768px）：少し小さめに & 間隔調整 === */
@media (max-width:768px){
  #shop-info-portal { --icon-size: 56px; --icon-pad: 7px; } /* ← ここだけ変えればOK */
  #shop-info-portal .sip-nav{ gap:10px; }
  #shop-info-portal .sip-nav li span{ font-size:.78rem; }
}

/* ===== SP（<=768px）イベント：PCと同じレイアウト/間隔に揃える ===== */
@media (max-width:768px){

  /* 月ブロックの枠：左70px / 右本文、上端に太い黄色線、上下に十分な余白 */
  #shop-info-portal .sip-pane.-event .eventBox{
    display: grid;
    grid-template-columns: 70px 1fr;   /* ← PCと同じ幅感 */
    column-gap: 12px;                  /* ← PCと同じ間隔 */
    align-items: start;
    --line-h: 3px;
    background: linear-gradient(#fabe00, #fabe00) 0 0 / 100% var(--line-h) no-repeat; /* 上端の黄色線 */
    padding-top: calc(var(--line-h) + 10px);  /* 線と本文の間隔 */
    padding-bottom: 12px;
    margin: 16px 0;                    /* ← 月ブロック同士の間隔（重なり防止） */
  }

  /* 月バッジは上寄せ＆余計な装飾は消す（PCと統一） */
  #shop-info-portal .sip-pane.-event .month-badge{
    position: static !important;
    align-self: start;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  #shop-info-portal .sip-pane.-event .month-badge::before,
  #shop-info-portal .sip-pane.-event .month-badge::after{
    content: none !important;
  }

  /* 本文のカラム：行間を適度に、上の線にかぶらない */
  #shop-info-portal .sip-pane.-event .eventBox .eventBoxCont{
    display: grid;
    row-gap: 12px;
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }

  /* イベント1件ごとの余白（細い線は使わない） */
  #shop-info-portal .sip-pane.-event .eventRow{
    padding: 6px 0 8px;
    border: 0 !important;
  }

  /* 旧指定の “下線/影線” を無効化（ダブル線・重なり対策） */
  #shop-info-portal .sip-pane.-event .eventBox::before,
  #shop-info-portal .sip-pane.-event .eventBox::after{
    content: none !important;
  }
}

/* 観光地詳細：行間を少しだけ詰める（PC/SP共通） */
#shop-info-portal .detailInfoItem .textMap,
.shop-info-portal   .detailInfoItem .textMap{
  line-height: 1.2 !important; /* 既存は1.6 → 少しだけタイトに */
}
/* SP：イベントタイトルだけ太字（サイズはそのまま） */
@media (max-width: 768px){
  #shop-info-portal .sip-pane.-event .eventRow dt,
  #shop-info-portal .sip-pane.-event .eventRow > *:first-child{
    font-weight: 700 !important;
  }
}
