/* =========================
   基本
========================= */
body {
  margin: 0;
  background: #f7f7f7;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
}

/* =========================
   ヘッダー
========================= */
header {
  background: #d70000;
  color: white;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.4em;
  font-weight: bold;
}

nav a {
  color: white;
  margin-left: 1em;
  text-decoration: none;
  font-size: 0.95em;
}

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}
nav .cta {
  background: white;
  color: #d70000;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-weight: bold;
}

/* =========================
   検索フォーム
========================= */
.search-form-section {
  background: white;
  padding: 1.5em;
  margin: 1em;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .search-form-section {
    max-width: 900px;
    margin: 2em auto;
  }
}

.search-form-section h2 {
  margin-top: 0;
  font-size: 1.3em;
}

.search-form .form-row {
  margin-bottom: 1.2em;
}

.search-form label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: bold;
  font-size: 0.95em;
}

.search-form select {
  width: 100%;
  padding: 0.7em;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  background: #fff;
}

.note {
  font-size: 0.8em;
  color: #666;
  margin-top: 0.3em;
}

.search-btn {
  width: 100%;
  padding: 0.9em;
  background: #d70000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  margin-top: 1em;
}

/* =========================
   用途ボタン UI（追加）
========================= */
.usage-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.usage-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  border: 1px solid #ccc;
  transition: 0.15s;
}

.usage-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.usage-btn input {
  display: none;
}

/* =========================
   検索条件の表示
========================= */
.search-summary {
  padding: 1em 1.2em;
}

@media (min-width: 768px) {
  .search-summary {
    max-width: 900px;
    margin: 1em auto;
  }
}

.search-summary h2 {
  margin-bottom: 0.5em;
}

.conditions {
  margin-bottom: 1em;
}

.cond-tag {
  display: inline-block;
  background: #eee;
  padding: 0.35em 0.7em;
  border-radius: 6px;
  margin-right: 0.4em;
  margin-bottom: 0.4em;
  font-size: 0.85em;
}

/* =========================
   並び替え
========================= */
.sort-box {
  margin-top: 1em;
}

.sort-box select {
  padding: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* =========================
   車両リスト
========================= */
.vehicle-list {
  padding: 1em;
}

@media (min-width: 768px) {
  .vehicle-list {
    max-width: 900px;
    margin: 0 auto;
  }
}

.vehicle-card {
  background: white;
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 1.2em;
  display: flex;
  gap: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vehicle-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.vehicle-card .info {
  flex: 1;
}

.vehicle-card h3 {
  margin: 0 0 0.3em 0;
  font-size: 1.1em;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  color: #d70000;
  margin: 0.2em 0;
}

.meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 0.5em;
}

/* =========================
   タグ（用途・駆動・荷室）
========================= */
.tags .tag {
  display: inline-block;
  padding: 0.25em 0.55em;
  border-radius: 5px;
  margin-right: 0.3em;
  margin-bottom: 0.3em;
  font-size: 0.75em;
  color: white;
}

.tag.usage {
  background: #007aff;
}

.tag.drive {
  background: #34c759;
}

.tag.cargo {
  background: #ff9500;
}

/* =========================
   詳細ボタン
========================= */
.detail-btn {
  display: inline-block;
  margin-top: 0.6em;
  background: #d70000;
  color: white;
  padding: 0.5em 1em;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
}

/* =========================
   フッター
========================= */
footer {
  text-align: center;
  padding: 1.5em 0;
  color: #666;
  font-size: 0.9em;
}

