/* ===============================
   店舗受注判定用
=============================== */
#store-order {
  display:none;
}
/* ===============================
   全体ラッパー
=============================== */
.store-wrapper {
  border: 2px solid #a31475;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
  background: #fff;
  transition: 0.3s;
}
/* ===============================
   トグルボタン
=============================== */
.store-toggle-btn {
  width: 100%;
  background: #a31475;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 18px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.store-toggle-btn:hover {
  background: #8e1266;
}
.store-wrapper.open .store-toggle-btn {
  background: #5f0d45;
}
/* ===============================
   コンテナ開閉
=============================== */
.store-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fafafa;
}
.store-wrapper.open .store-container {
  max-height: 5000px;
  padding: 20px;
}
/* ===============================
   上部バー（タブ＋検索）
=============================== */
.store-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
/* ===============================
   タブ
=============================== */
.store-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-around;
}
.store-tab {
  color:#333;
  padding: 6px 12px;
  margin-right: 4px;
  border: 1px solid #999;
  background-color: #fff;
  cursor: pointer;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.2s;
  -webkit-appearance:none;
  appearance:none;
  width: 30%;
}
.store-tab:hover:not(.active) {
  background-color: #f0f0f0;
}
/* アクティブタブ（通常） */
.store-tab.type-GMS.active:not(.disabled) { background-color: #a31475; border-color: #a31475; color: #fff;}
.store-tab.type-SM.active:not(.disabled)  { background-color: #cb035c; border-color: #cb035c; color: #fff;}
.store-tab.type-EX.active:not(.disabled)  { background-color: #881c30; border-color: #881c30; color: #fff;}
.store-tab.type-HC.active:not(.disabled)  { background-color: #033b88; border-color: #033b88; color: #fff;}
.store-tab.type-AB.active:not(.disabled)  { background-color: #11ae52; border-color: #11ae52; color: #fff;}
.store-tab.type-BiG.active:not(.disabled) { background-color: #ec6c01; border-color: #ec6c01; color: #fff;}
/* グレーアウトタブ */
.store-tab.disabled {
  background-color: #eee;
  color: #999;
  border-color: #ccc;
}
/* グレーアウトタブがアクティブになった場合 */
.store-tab.disabled.active {
  background-color: #888;
  color: #fff;
}
/* ===============================
   検索ボックス
=============================== */
.store-search-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.store-search-box input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 200px;
}
.store-search-box button {
  padding: 8px 14px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.store-search-box button:hover {
  opacity: 0.8;
}
/* ===============================
   業態コンテンツ
=============================== */
.store-content {
  margin-top: 10px;
}
/* ===============================
   県ブロック
=============================== */
.pref-block {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}
/* 県ヘッダー */
.pref-header {
  background: #f1f1f1;
  padding: 10px 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  position: relative;
  transition: 0.2s;
}
.pref-header.open {
  background: #e4e4e4;
}
/* 矢印用（疑似要素） */
.pref-header::after {
  content: "▼";
  position: absolute;
  right: 14px;
  transition: transform 0.3s;
}
.pref-header.open::after {
  content: "▲";
}
/* 県ボディ（スムーズ開閉） */
.pref-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
  padding: 0 15px;
}
.pref-body.open {
  padding: 10px 15px;
}
/* ===============================
   店舗行
=============================== */
.store-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.store-item:last-child {
  border-bottom: none;
}
/* 業態名行 */
.store-type-row {
  text-align: center;
  font-weight: bold;
  padding: 8px 0;
  margin-top: 10px;
  margin-bottom: 4px;
  border-radius: 4px;
  color: #333;
}
/* 業態ごとの背景色 */
.store-type-row.type-GMS { background-color: #a31475; color: #fff;}
.store-type-row.type-SM  { background-color: #cb035c; color: #fff;}
.store-type-row.type-EX  { background-color: #881c30; color: #fff;}
.store-type-row.type-HC  { background-color: #033b88; color: #fff;}
.store-type-row.type-AB  { background-color: #11ae52; color: #fff;}
.store-type-row.type-BiG { background-color: #ec6c01; color: #fff;}
/* ===============================
   ◯ × 表示
=============================== */
.store-status {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}
.store-status.target {
  color: #007bff;
}
.store-status.non-target {
  color: #cd1a1a;
}
.store-status.pickup-only {
  color: #21b121;
}
.store-legend {
  margin-bottom: 3%;
}
/* ===============================
   検索結果
=============================== */
.search-type-title {
  font-weight: bold;
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 5px;
  border-left: 4px solid #a31475;
  padding-left: 8px;
}
.search-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
/* ===============================
   レスポンシブ
=============================== */
@media (max-width: 768px) {
  .store-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .store-search-box {
    width: 100%;
  }
  .store-search-box input {
    flex: 1;
    min-width: 0;
  }
  .store-search-box button {
    flex: none;
  }
  .store-tabs {
    justify-content: center;
  }
}
