:root {
  --ocean: #0d6e7d;
  --ocean-dark: #0a4f5a;
  --ocean-light: #e7f3f4;
  --sand: #f7f2e8;
  --coral: #e2703a;
  --coral-dark: #c2571f;
  --ink: #1e2a2e;
  --ink-soft: #5c6b6a;
  --ok: #1f8a4c;
  --ng: #b3441e;
  --border: #dde3e1;
  --white: #ffffff;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); min-height: 100vh; line-height: 1.6; }

/* --- ヘッダー --- */
.topbar {
  background: var(--ocean-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: #bfe6ea; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-ja { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-en { font-weight: 400; font-size: 0.7rem; opacity: 0.8; }

.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn.active { background: white; color: var(--ocean-dark); }

.dev-notice {
  margin: 0;
  background: #fff4d6;
  border-bottom: 1px solid #e8c766;
  padding: 7px 16px;
  font-size: 0.76rem;
  color: #6b5100;
  text-align: center;
}

/* --- ヒーロー --- */
.hero {
  background: linear-gradient(180deg, var(--ocean-light), var(--sand) 85%);
  padding: 22px 16px 30px;
}
.photo-slot {
  background: repeating-linear-gradient(135deg, #d7e6e4, #d7e6e4 10px, #e3efed 10px, #e3efed 20px);
  border: 1px dashed #a9c2bf;
  border-radius: var(--radius);
  color: #6f8785;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.78rem;
  padding: 10px;
}
.hero-photo { width: 100%; max-width: 560px; margin: 0 auto 18px; aspect-ratio: 16 / 10; }
.photo-slot-icon { width: 34px; height: 34px; opacity: 0.7; }

.photo-real { position: relative; overflow: hidden; border-radius: var(--radius); background: #d7e6e4; }
.photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-copy { max-width: 560px; margin: 0 auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ocean);
  margin: 0 0 6px;
}
.hero h1 { font-size: 1.7rem; margin: 0 0 8px; font-weight: 800; color: var(--ocean-dark); }
.hero-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.trust-badges li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ocean-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.badge-icon { font-size: 0.95rem; }

/* --- 本体 --- */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }

/* ステップインジケーター */
.steps {
  display: flex;
  list-style: none;
  padding: 18px 4px 4px;
  margin: 0 0 6px;
  justify-content: space-between;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
  font-size: 0.68rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 55%;
  width: 90%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step.done:not(:last-child)::after { background: var(--ok); }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  z-index: 1;
}
.step.active .step-num { background: var(--ocean); border-color: var(--ocean); color: white; }
.step.active .step-label { color: var(--ocean-dark); }
.step.done .step-num { background: var(--ok); border-color: var(--ok); color: white; }
.step.done .step-num::before { content: '✓'; }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.card h2 { font-size: 1.08rem; margin: 0 0 14px; color: var(--ocean-dark); }

form label { display: block; margin-bottom: 14px; font-size: 0.9rem; }
form label > span { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-title { display: block; font-weight: 700; margin: 4px 0 8px; font-size: 0.9rem; }

input, select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: inherit;
}
input:focus { outline: 2px solid var(--ocean); outline-offset: 1px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

.hint { font-size: 0.78rem; color: var(--ink-soft); margin: 2px 0 16px; }

.fuel-note {
  font-size: 0.78rem;
  color: var(--ocean-dark);
  background: var(--ocean-light);
  border-radius: 8px;
  padding: 10px 12px;
  margin: -6px 0 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* 予約リクエストの注意書き(Web送信=確定ではないことの明記) */
.request-disclaimer {
  background: #fff4d6;
  border: 1px solid #e8c766;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
.request-disclaimer p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #6b5100;
  line-height: 1.6;
  text-wrap: pretty;
}
.request-disclaimer .tel-link {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  color: #6b5100;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.pending-badge {
  display: inline-block;
  background: #fff4d6;
  color: #6b5100;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 4px 0 8px;
}
.pending-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* 料金カード(利用時間選択) */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.rate-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: border-color .15s, background .15s;
}
.rate-card input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer;
}
.rate-card .rc-hours { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); display: block; }
.rate-card .rc-price { font-size: 1.05rem; font-weight: 800; color: var(--ocean-dark); display: block; margin-top: 2px; }
.rate-card .tax-tag { display: block; font-size: 0.68rem; font-weight: 700; opacity: 0.8; }
.rate-card:has(input:checked), .rate-card.selected { border-color: var(--coral); background: #fdf1ea; }
.rate-card:has(input:checked) .rc-price, .rate-card.selected .rc-price { color: var(--coral-dark); }

.btn-primary {
  width: 100%;
  background: var(--coral);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-primary:active { background: var(--coral-dark); }
.btn-primary:disabled { opacity: 0.5; }

.btn-text {
  display: block;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--ocean);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}

/* 車両を選ぶ(ステップ2): 実車写真つきの縦積みカード。3台を横に詰め込まず、
   スマホでも1枚ずつ大きく見えるようにする */
#results-list { display: flex; flex-direction: column; gap: 12px; }
.vehicle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: white;
}
.vehicle-card-unavailable { opacity: 0.6; }
.vehicle-card-photo {
  width: 96px; height: 96px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  background: var(--ocean-light);
}
.vehicle-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-card-photo .photo-slot-icon { width: 28px; height: 28px; margin: 34px auto; display: block; color: var(--ocean); }
.vehicle-card-body { flex: 1; min-width: 0; }
.vehicle-card-name { font-weight: 800; font-size: 1.02rem; }
.vehicle-card-meta { font-size: 0.82rem; color: var(--ink-soft); margin: 2px 0 8px; }

.badge { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.badge.ok { background: #e3f5e9; color: var(--ok); }
.badge.ng { background: #fbe7e0; color: var(--ng); }

.select-btn {
  background: var(--ocean);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.selected-vehicle {
  font-weight: 800;
  margin: -4px 0 16px;
  color: var(--ocean-dark);
  background: var(--ocean-light);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.confirm-card { text-align: center; }
.confirm-card .request-disclaimer { text-align: left; }
.confirm-check {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ok); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  margin: 0 auto 12px;
}
#confirm-body { text-align: left; line-height: 1.7; margin: 12px 0; }
#confirm-body .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
#confirm-body .row span:first-child { color: var(--ink-soft); font-weight: 700; }
#confirm-body .row span:last-child { font-weight: 800; }

.error-box {
  margin-top: 16px;
  background: #fbe7e0;
  border: 1px solid #e2a488;
  color: var(--ng);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-footer {
  text-align: center;
  padding: 22px 16px 32px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .hero h1 { font-size: 2.1rem; }
  .rate-cards { grid-template-columns: repeat(4, 1fr); }
}
