@charset "utf-8";
/* === ベEス設宁E=== */
html, body, #map {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}
body {
  overscroll-behavior: none;
}

/* === 上部タイトル帯 === */
#currentRegion {
  position: fixed;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 7000;
  transition: opacity .3s ease;
}
#currentRegion.hidden { opacity: 0; pointer-events: none; }

/* === 右上メニュー === */
#sideTreeMenu {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 7000;
}

/* === ボタンチEイン共送E=== */
.tree-btn, #clearFiltersBtn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.95);
  color: #333;
  transition: background 0.2s;
}

.tree-btn:hover, #clearFiltersBtn:hover {
  background: #f0f0f0;
}

/* ✕Eタン */
#clearFiltersBtn {
  font-weight: bold;
  color: #d32f2f;
}

/* 吁EEタン別カラーE背景差別化！E*/
.tree-btn[data-target="region"] { background: #f44336; color: #fff; }
.tree-btn[data-target="type"]   { background: #2196f3; color: #fff; }
.tree-btn[data-target="vehicle"]{ background: #ff9800; color: #fff; } /* ↁE追加E車両絞り込み */
.tree-btn[data-target="search"] { background: #4caf50; color: #fff; }
.tree-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

/* スマEE縦並びEE*/
@media (max-width: 700px) {
  #sideTreeMenu {
    flex-direction: column;
    top: 10px;
    right: 10px;
  }
  .tree-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* === 絞り込みメニュー共通（地・種・車E検！E== */
.tree-column {
  position: fixed;
  top: 10px;
  right: 60px;               /* ↁEボタン群の左側に表示 */
  width: 220px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 10px 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tree-column.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* タイトル */
.tree-column h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #d32f2f;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
}

/* リスト頁E */
.tree-item {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(240,240,240,0.8);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}
.tree-item:hover {
  background: #fff6f6;
}
.tree-item.active-pref,
.tree-item.active-city,
.tree-item.active-type,
.tree-item.active-vehicle {
  background: #e53935;
  color: #fff;
  font-weight: bold;
}

/* === 検索欁E=== */
#searchColumn input {
  width: 100%;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 6px;
}
#searchColumn button {
  width: 100%;
  padding: 6px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
#searchColumn button:hover {
  background: #c62828;
}


/* === 🚒 車両絞り込みパネル === */
#vehicleColumn,
#vehicleNameColumn {
  position: fixed;
  top: 10px;
  width: 220px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 10px 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === 右側Eクラスリスト！E=== */
#vehicleColumn {
  right: 60px;                /* ↁE他と同じ距離 */
}
#vehicleColumn.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* === 左側E車両名リスト！E=== */
#vehicleNameColumn {
  right: 300px;               /* ↁEクラスの左側に配置 */
  z-index: 9998;
}
#vehicleNameColumn.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* === 共通タイトル === */
#vehicleColumn h4,
#vehicleNameColumn h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #d32f2f;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
}

/* === リスト頁E === */
#vehicleColumn .vehicle-item,
#vehicleNameColumn .vehicle-item {
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: rgba(240,240,240,0.8);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
  text-align: center;
}
#vehicleColumn .vehicle-item:hover,
#vehicleNameColumn .vehicle-item:hover {
  background: #fff6f6;
}
#vehicleColumn .vehicle-item.active,
#vehicleNameColumn .vehicle-item.active {
  background: #e53935;
  color: #fff;
  font-weight: bold;
}

/* === 🚒 車両絞り込みE完E統一チEインEE=== */
#vehicleColumn,
#vehicleNameColumn {
  position: fixed;
  top: 10px;
  width: 220px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 10px 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === 右側E車両クラスE地・種と同位置EE=== */
#vehicleColumn {
  right: 60px;
}
#vehicleColumn.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* === 左側E車両名リスト（クラスの左にずらす！E=== */
#vehicleNameColumn {
  right: 300px; /* ↁE220px幁E余白20pxで自然な間隔 */
  z-index: 9998;
}
#vehicleNameColumn.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* === 共通タイトルEEパネル統一EE=== */
#vehicleColumn h4,
#vehicleNameColumn h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #d32f2f;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
}

/* === リスト頁EE地・種と統一EE=== */
#vehicleColumn .vehicle-item,
#vehicleNameColumn .vehicle-item {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(240,240,240,0.8);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  text-align: left;
}
#vehicleColumn .vehicle-item:hover,
#vehicleNameColumn .vehicle-item:hover {
  background: #fff6f6;
}
#vehicleColumn .vehicle-item.active,
#vehicleNameColumn .vehicle-item.active {
  background: #e53935;
  color: #fff;
  font-weight: bold;
}

/* === スマE対応（幁E庁Eて重なり防止EE=== */
@media (max-width: 700px) {
  #vehicleColumn, #vehicleNameColumn {
    right: 50%;
    width: 45vw;
    transform: translateX(50%);
  }
  #vehicleNameColumn {
    right: calc(50% + 46vw);
  }
}

/* === 🚒 車両絞り込みパネル === */
#vehicleColumn,
#vehicleNameColumn {
  position: fixed;
  top: 10px;
  width: 220px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 10px 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* PCE左右スライドE置 */
#vehicleColumn {
  right: 60px; /* ↁEボタン群左側 */
}
#vehicleNameColumn {
  right: 300px; /* ↁEクラスの左側 */
}

#vehicleColumn.show,
#vehicleNameColumn.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* タイトル */
#vehicleColumn h4,
#vehicleNameColumn h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #d32f2f;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
}

/* リスト頁E */
#vehicleColumn .vehicle-item,
#vehicleNameColumn .vehicle-item {
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: rgba(240,240,240,0.8);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
  text-align: center;
}
#vehicleColumn .vehicle-item:hover,
#vehicleNameColumn .vehicle-item:hover {
  background: #fff6f6;
}
#vehicleColumn .vehicle-item.active,
#vehicleNameColumn .vehicle-item.active {
  background: #e53935;
  color: #fff;
  font-weight: bold;
}

/* === 📱 スマE版：縦に重Eて表示 === */
@media (max-width: 700px) {
  #vehicleColumn,
  #vehicleNameColumn {
    position: fixed;
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    max-height: 40vh;
    right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  #vehicleColumn {
    bottom: 52vh; /* ↁE上段EクラスEE*/
  }
  #vehicleNameColumn {
    bottom: 10px; /* ↁE下段E車両名！E*/
  }

  #vehicleColumn.show,
  #vehicleNameColumn.show {
    transform: translateX(-50%);
    opacity: 1;
  }
}

.vehicle-thumb.clickable {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.vehicle-thumb.clickable:hover {
  transform: scale(1.03);
}
.vehicle-thumb.no-photo {
  opacity: 0.7;
  cursor: default;
}

