*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f5f5f0;
  font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  color: #222;
  min-height: 100vh;
  padding: 2rem 0;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1D9E75;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ラベル */
label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

/* 検索ボックス */
.search-wrap {
  position: relative;
}

#search-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 0 40px 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  background: white;
}

#search-input:focus {
  border-color: #1D9E75;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.5;
}

/* ユーティリティ */
.hidden {
  display: none;
}

.error-msg {
  color: #d94040;
  font-size: 14px;
  margin-top: 8px;
}

/* 検索結果一覧 */
#results-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-card {
  background: white;
  border-radius: 10px;
  border: 0.5px solid #ddd;
  padding: 12px 16px;
  cursor: default;
}

.result-card-city {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.result-card-depots {
  font-size: 17px;
  font-weight: 500;
  color: #1D9E75;
  line-height: 1.4;
}

.no-results {
  font-size: 13px;
  color: #999;
  padding: 12px 0;
  text-align: center;
}

#area-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.area-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #ccc;
  background: white;
  color: #555;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.area-btn:hover {
  border-color: #1D9E75;
  color: #1D9E75;
}

.area-btn.active {
  background: #1D9E75;
  border-color: #1D9E75;
  color: white;
  font-weight: 500;
}
