    .shop-card {
            padding-bottom: 5px;
        width: 85%;
        border-bottom: 2px solid var(--b-orange);
    }
    .shop-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 20px 0px;
        place-items: center;
        margin: 0 auto;
    }

    .sort-links { margin: 16px 0; }
    button { margin-right: 10px; padding: 6px 12px; border: none; border-radius: 6px; cursor: pointer; }
    .view-map-btn { margin: 20px 0; }
    .map-iframe-wrap { margin: 30px 0; text-align: center; }
    .reset-filters-btn {
      padding: 8px 20px;
      font-family: "Shippori Mincho", serif;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.1s ease;
      margin: 25px 0;
      background: #fff6f2;
      color: var(--b-orange);
      border: 1px solid var(--b-orange);
    
    }
    .reset-keyword-btn { margin-left: 10px; background: #607d8b; color: #fff; font-size: 0.95em; padding: 6px 12px; }
    /* 並び替えボタンの選択状態 */
    .sort-btn.selected {
      background: var(--b-orange);
      color: #fff;
    }
    .sort-btn:not(.selected) {
      background: #f5f5f5;
      color: #222;
    }
    /* モーダル用スタイル */
    .modal-vote-overlay {
      display: none;
      position: fixed;
      z-index: 10000;
      left: 0; top: 0; width: 100vw; height: 100vh;
      background: rgba(0,0,0,0.4);
      justify-content: center;
      align-items: center;
    }
    .modal-vote-content {
      background: #fff;
      border-radius: 10px;
      padding: 32px 24px 24px 24px;
      min-width: 280px;
      max-width: 90vw;
      box-shadow: 0 4px 24px rgba(0,0,0,0.18);
      text-align: center;
      position: relative;
    }
    .modal-vote-content h2 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 1.2em;
    }
    .modal-vote-close {
      position: absolute;
      right: 12px;
      top: 12px;
      background: none;
      border: none;
      font-size: 1.3em;
      color: #888;
      cursor: pointer;
    }

    .vote-btn {
      background: #ff9800;
      color: #fff;
      color: var(--themeblack);
    }

    .star-rating {
      display: flex;
      flex-direction: row-reverse;
      justify-content: center;
      font-size: 2em;
      margin: 10px 0;
    }
    .star-rating input[type="radio"] {
      display: none;
    }
    .star-rating label {
      color: #ccc;
      cursor: pointer;
      transition: color 0.2s;
    }
    .star-rating input[type="radio"]:checked ~ label,
    .star-rating label:hover,
    .star-rating label:hover ~ label {
      color: var(--orange);
    }
    .vote-message {
      margin-top: 10px;
      color: #1976d2;
      font-weight: bold;
    }
    

/*検索ボックス*/
.search-box {
    margin: 20px auto;
    width: max(85%, 329px);
    display: flex;
    justify-content: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    z-index: 1;
    pointer-events: none;
}

.search-input-wrapper {
    position: relative;
    width: min(520px, 100%);
}


#searchInput {
    padding: 8px 10px 8px 36px;
    width: 100%;
    box-sizing: border-box;
    font-family: "Shippori Mincho", serif;
}

.reset-keyword-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s 
ease, background-color 0.2s 
ease;
    z-index: 2;
}



.searchShops-btn {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s 
ease, background-color 0.2s 
ease;
    z-index: 2;
}

.searchShops-btn img{
  width: 15px;
}

.pagetitle img{
  pointer-events: none;
  user-select: none;
    -webkit-user-drag: none;    /* Safari対応 */

}

.search-box img{
  pointer-events: none;
  user-select: none;
    -webkit-user-drag: none;    /* Safari対応 */

}

.search-box svg{
  pointer-events: none;
  user-select: none;
    -webkit-user-drag: none;    /* Safari対応 */

}

.shop-image{
    pointer-events: none;
  user-select: none;
    -webkit-user-drag: none;    /* Safari対応 */

}



#header_bot{
  display: none;
}


















    /* 各段共通設定 */
    .row {
      display: flex;
      padding: 2px;
      gap: 10px;
      border-bottom: 1px solid #eee;
    }
    .row:last-child {
      border-bottom: none;
    }
    
    /* --- 1段目：画像＋企画名・団体名 --- */
    .top {
      align-items: center;
    }
    .thumb {
      width: 80px;
      height: 80px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
      background: #f0f0f0;
    }
    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .right-top {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .title {
      font-size: 15px;
      font-weight: bold;
      margin-bottom: 4px;
    }
    .group {
      font-size: 12px;
      color: var(--themeblack);
      margin-top: 3px;
    }
    
    /* --- 2段目：左（品目名・タグ）右（場所・距離） --- */
    .middle {
      justify-content: space-between;
      align-items: flex-start;
    }
    .left-middle,
    .right-middle {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .item-name {
      font-weight: bold;
      font-size: 12px;
    }
    .tags,
    .distance {
      font-size: 12px;
      color: #666;
    }


    .distance .map-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-weight: 500;
      transition: color 0.25s ease;
    }

    .distance .map-link span {
      text-decoration: underline;
      text-underline-offset: 2px;
    }


    .distance .map-link i {
      font-size: 15px;
    }

    /* hover時の色変化 */
    .distance .map-link:hover {
      color: var(--b-orange);
    }


    .location {
      font-weight: 600;
      font-size: 12px;
    }
    
    /* --- 3段目：ボタン3つ横並び --- */
    .bottom {
      justify-content: space-between;
      align-items: center;
    }
    .btn {
      flex: 1;
      padding: 8px 0;
      border: 1px solid #aaa;
      border-radius: 6px;
      background: #f9f9f9;
      font-size: 14px;
      cursor: pointer;
      text-align: center;
      margin: 0;
      margin-top: 5px;
    }
    .btn + .btn {
      margin-left: 6px;
    }
    
    .btn a{
      padding: 0;
    }

    .btn {
  display: inline-block; /* ← これを追加！ */
  flex: 1;
  padding: 8px 0;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  margin: 0;
  margin-top: 5px;
  text-decoration: none; /* 下線を消す */
  color: inherit; /* aでもテキスト色をボタンと統一 */
}

.btn + .btn {
  margin-left: 6px;
}


    .hr_after_event_name{
      border: none;          /* デフォルトの立体線を消す */
      height: 1px;           /* 線の太さ */
      background-color:var(--b-orange); /* 好きな色 */
    }
    .filter-wrapper{
      margin: 0 auto;
      width: max(85%, 329px);
    }
    .filter-wrapper label {
    display: inline-flex;
    justify-content: center;
    margin: 6px 12px 6px 0;
    padding: 4px 7px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--b-orange);
    cursor: pointer;
    transition: background-color 0.1s ease;
    }

    .chip {
    position: relative;
    align-items: center;
    color:var(--b-orange);
    user-select: none;
      -webkit-user-drag: none;    /* Safari対応 */
    min-width: 63px;
    }

    .chip-honkan{
      min-width: 88px;
    }

    .filter-wrapper input{
      opacity: 0;
      position: absolute;
    }

    .chip:has(.chip-input:checked) {
    background: var(--b-orange);
    color: #fff;
    outline: 1px solid #fff;
    outline-offset: -2.5px; /* ← マイナス値で内側へ */
    }


#filter-area{
  margin-top: 15px;
}

#filter-tag{
    margin-top: 0px;
}

#filter-category{
    margin-top: 15px;

}

h3{
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  align-items: center;
  font-size: 14px;
  margin-left: 0px;
}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* 文字との距離 */
  width: 100%;
  height: 0.5px;
  /*background-color: var(--b-orange);*/
  background: linear-gradient(90deg, var(--b-orange), var(--bgwhite));
}

#filter-tag, #filter-area, #filter-category {
  overflow: visible;
}

.reset-group-btn {
    padding: 4px 8px;
    font-size: 10px;
    font-family: "Shippori Mincho", serif;
    background: #fff6f2;
    color: var(--b-orange);
    border: 1px solid var(--b-orange);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s ease;
}



    .location-controls{
      display: none;
    }

    .map-iframe-wrap{
      display: none;
    }

    .view-map-btn{
      display: none;
    }

    .sort-links{
      display: none; /*評価・距離は当日のみかなあ*/
    }

    .reset-filters-btn-wrapper{
      display: flex;
      justify-content: center;
      align-items: center;
    }

  .card_heart.favorite_button {
      width: 10%;
      margin-top: 8px;
      cursor: pointer;
  }

    .vote-btn{
      cursor: not-allowed;
      background: gray;
      font-family: 'Shippori Mincho';
    }

    
#pagetop.is-show {
    bottom: 0px;
}


@media screen and (min-width:1024px){
#pagetop{
  display: none;
}


  main{
    min-height: calc(100vh - 110px);
  }
    .btn-forDetail a{
      font-size: 12px;
    }  
    h3{
      font-size: 18px;
    }
    .shop-list {
        width: 95%;
        grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    }

    .reset-group-btn:hover { 
      background: #eee; 
      color: var(--b-orange);
          border: 1px solid var(--b-orange);
    }

    .reset-filters-btn:hover { background: #eee;
    color: var(--b-orange);
      border: 1px solid var(--b-orange); }

        .reset-keyword-btn:hover { background: #455a64; }
    button:hover { background: #eee; }


        .modal-vote-close:hover {
      color: #222;
    }

    .vote-btn:hover {
      background: gray;
    }



    .left-panel {
        position: fixed;
        left: 0;
        top: 0;
        width: 380px;
        height: calc(100vh - max(11vh, 78px));
        margin-top: max(11vh,78px);
                overflow-y: auto;
        -webkit-overflow-scrolling: touch;
          scrollbar-width: none; /* Firefox用 */
  -ms-overflow-style: none; /* IE・Edge旧版用 */

    }
    .left-panel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge用 */
}

  body {
    margin-left: 420px;
    width: calc(100vw - 420px);
    overflow-x: hidden;
  }

  main{
    margin-top: 20px;
  }

    .right-panel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge (新) */
}


    .shop-list{
      margin-top: 20px;
    }

    .search-box {
        margin: 20px auto;
        padding-left: 10%;
        width: 100%;
    }

        .filter-wrapper {
        width: 100%;
        padding-left: 10%;
    }

.shop-card {
    padding-bottom: 5px;
    width: 90%;
    border-bottom: 2px solid var(--b-orange);
}

.btn-forDetail {
  transition: opacity 0.3s ease;
}

.btn-forDetail:hover {
  opacity: 0.7;
}
.group{
  font-size: 14px;
}

.title{
  font-size: 16px;
}

.item-name,.tags,.distance,.location{
  font-size: 13px;
}

.reset-group-btn{
  font-size: 14px;
}

.chip{
  min-width: 70px;
}

.reset-filters-btn{
  margin-bottom: 15px;
}

}