:root {
  --ocean: #0d6e7d;
  --ocean-dark: #0a4f5a;
  --ocean-light: #e7f3f4;
  --sand: #f7f2e8;
  --coral: #e2703a;
  --coral-dark: #c2571f;
  --leaf: #3f8f5c;
  --leaf-dark: #2f6f46;
  --leaf-light: #e8f4ec;
  --ink: #1e2a2e;
  --ink-soft: #5c6b6a;
  --ok: #1f8a4c;
  --border: #dde3e1;
  --white: #ffffff;
  --radius: 16px;

  /* カテゴリごとの識別色 */
  --car-accent: var(--ocean);
  --car-accent-dark: var(--ocean-dark);
  --car-accent-light: var(--ocean-light);
  --scooter-accent: var(--coral);
  --scooter-accent-dark: var(--coral-dark);
  --scooter-accent-light: #fdeee0;
  --bicycle-accent: var(--leaf);
  --bicycle-accent-dark: var(--leaf-dark);
  --bicycle-accent-light: var(--leaf-light);

  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; padding-bottom: 58px; }

/* --- ヘッダー --- */
.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: 30;
}
.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-main { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.04em; }
.brand-sub { font-weight: 400; font-size: 0.68rem; opacity: 0.82; }

.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.55); color: white;
  padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  min-height: 36px;
}
.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.74rem; color: #6b5100; text-align: center;
}

/* --- 写真プレースホルダー(差し替え用スペック表示) --- */
.photo-slot {
  position: relative;
  background: repeating-linear-gradient(135deg, #d7e6e4, #d7e6e4 10px, #e3efed 10px, #e3efed 20px);
  border: 1px dashed #a9c2bf;
  border-radius: var(--radius);
  color: #4c6664;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-align: center; padding: 14px;
}
.ps-num {
  position: absolute; top: 8px; left: 10px;
  background: var(--ocean-dark); color: white;
  font-size: 0.72rem; font-weight: 800;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot-icon { width: 30px; height: 30px; opacity: 0.55; margin-bottom: 2px; }
.ps-title { margin: 0; font-size: 0.82rem; font-weight: 800; color: #35504e; }
.ps-desc { margin: 0; font-size: 0.72rem; color: #61756f; max-width: 30em; line-height: 1.45; }

.hero-photo { width: 100%; max-width: 640px; margin: 0 auto 20px; aspect-ratio: 16 / 9; }
.hero-photo.photo-real { border-radius: var(--radius); overflow: hidden; border-bottom: none; }
.photo-slot--wide { aspect-ratio: 21 / 9; width: 100%; }
.photo-slot--wide.photo-real { border-radius: var(--radius); overflow: hidden; border-bottom: none; }
.photo-slot--small { aspect-ratio: 1 / 1; }

/* --- ヒーロー --- */
.hero { background: linear-gradient(180deg, var(--ocean-light), var(--sand) 85%); padding: 24px 16px 30px; }
.hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700;
  color: var(--ocean); margin: 0 0 8px;
}
.hero h1 { font-size: 1.85rem; margin: 0 0 10px; font-weight: 800; color: var(--ocean-dark); }
.hero-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.96rem; }

.hero-jump { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-jump a {
  display: flex; align-items: center; gap: 6px;
  background: white; border: 2px solid var(--border); border-radius: 999px;
  padding: 9px 16px; font-size: 0.85rem; font-weight: 700; color: var(--ocean-dark);
  text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.hero-jump a.jump-car { border-color: var(--car-accent); }
.hero-jump a.jump-scooter { border-color: var(--scooter-accent); }
.hero-jump a.jump-bicycle { border-color: var(--bicycle-accent); }

/* --- 本体 --- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 30px 16px 50px; }

.ride-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .ride-grid { grid-template-columns: repeat(3, 1fr); } }

.ride-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  scroll-margin-top: 90px;
  border-top: 5px solid var(--border);
}
.ride-car { border-top-color: var(--car-accent); }
.ride-scooter { border-top-color: var(--scooter-accent); }
.ride-bicycle { border-top-color: var(--bicycle-accent); }

.ride-photo { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 1px; }
.ride-emoji { font-size: 1.8rem; }
.bicycle-photo-row { display: grid; grid-template-columns: 1fr 1fr; }
.bicycle-photo-row .photo-slot { border-radius: 0; border-width: 0 1px 1px 0; }
.bicycle-photo-row .photo-slot:last-child { border-right: none; }

.car-photo-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.car-photo-row .photo-slot { border-radius: 0; border-width: 0 1px 1px 0; padding: 6px 4px 24px; }
.car-photo-row .photo-real { border-right: 1px solid var(--border); }
.car-photo-row .car-cell:last-child { border-right: none; }

/* 極小幅(iPhone SE等)では3枠が窮屈になるため、横スワイプの帯に切り替える */
@media (max-width: 380px) {
  .car-photo-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .car-photo-row .car-cell {
    flex: 0 0 42%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
  }
}
.car-cell { position: relative; }
.car-cell-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(10, 79, 90, 0.82);
  color: white;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  padding: 3px 4px;
}

/* 実写真が入った枠。アスペクト比は親のクラス(.ride-photo / .photo-slot--small 等)に従う */
.photo-real {
  position: relative;
  overflow: hidden;
  background: #d7e6e4;
  border-bottom: 1px solid var(--border);
}
.bicycle-photo-row .photo-real { border-right: 1px solid var(--border); }
.bicycle-photo-row .photo-real:last-child { border-right: none; }
.photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ride-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ride-kicker {
  margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ride-car .ride-kicker { color: var(--car-accent-dark); }
.ride-scooter .ride-kicker { color: var(--scooter-accent-dark); }
.ride-bicycle .ride-kicker { color: var(--bicycle-accent-dark); }

.ride-body h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--ink); }
.ride-desc { margin: 0 0 14px; font-size: 0.86rem; color: var(--ink-soft); }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.price-table td { padding: 9px 4px; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.price-table td:first-child { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
/* 金額と「（税込）」が途中で改行されて崩れないよう、価格セルは常に1行で表示する */
.price-table td:last-child { text-align: right; font-weight: 800; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.ride-car .price-table td:last-child { color: var(--car-accent-dark); }
.ride-scooter .price-table td:last-child { color: var(--scooter-accent-dark); }
.ride-bicycle .price-table td:last-child { color: var(--bicycle-accent-dark); }


.fuel-note {
  font-size: 0.76rem;
  color: var(--car-accent-dark);
  background: var(--car-accent-light);
  border-radius: 8px;
  padding: 9px 11px;
  margin: 0 0 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.request-note {
  font-size: 0.72rem;
  color: #6b5100;
  background: #fff4d6;
  border-radius: 8px;
  padding: 9px 11px;
  margin: 8px 0 0;
  line-height: 1.6;
  text-wrap: pretty;
}

/* 普通/電動を横2列に詰めると「（税込）」が見切れるため、CAR/SCOOTERと同じ
   フルカード幅の表を縦に2つ並べる(価格セルの見切れを避けるための構成変更)。 */
.price-groups { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
.price-group-title { font-size: 0.78rem; font-weight: 800; color: var(--ink); margin: 0 0 4px; }

.btn-primary {
  display: block; text-align: center; text-decoration: none;
  background: var(--coral); color: white; border: none;
  padding: 15px; font-size: 1rem; font-weight: 800; border-radius: 10px;
  margin-top: auto; min-height: 48px; line-height: 1.2;
}
.btn-primary:active { background: var(--coral-dark); }

.badge-soon, .badge-ok {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; margin: 6px 0 6px;
}
.badge-soon { background: #fff4d6; color: #8a6d00; }
.badge-ok { background: var(--bicycle-accent-light); color: var(--bicycle-accent-dark); }
.ride-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

/* --- 走行イメージ / ドライブ誘導 --- */
.atmosphere { margin-top: 26px; }
.drive-teaser { margin-top: 30px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .drive-teaser { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.drive-teaser-copy h2 { margin: 6px 0 8px; font-size: 1.2rem; color: var(--ocean-dark); }
.drive-teaser-copy p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* --- 比較セクション --- */
.compare-card {
  background: white; border-radius: var(--radius); padding: 22px 20px;
  margin-top: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.compare-card h2 { margin: 0 0 16px; font-size: 1.15rem; color: var(--ocean-dark); text-align: center; }
.compare-grid { display: flex; flex-direction: column; gap: 10px; }
.compare-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--ink);
  background: #fafcfc;
}
.compare-car { border-left-color: var(--car-accent); background: var(--car-accent-light); }
.compare-scooter { border-left-color: var(--scooter-accent); background: var(--scooter-accent-light); }
.compare-bicycle { border-left-color: var(--bicycle-accent); background: var(--bicycle-accent-light); }
.compare-emoji { font-size: 1.3rem; flex-shrink: 0; }
.compare-text { flex: 1; font-weight: 700; font-size: 0.9rem; }
.compare-arrow { color: var(--ink-soft); }
.compare-target {
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.05em;
  color: white; padding: 5px 12px; border-radius: 999px;
}
.compare-car .compare-target { background: var(--car-accent-dark); }
.compare-scooter .compare-target { background: var(--scooter-accent-dark); }
.compare-bicycle .compare-target { background: var(--bicycle-accent-dark); }

/* --- FAQ・利用案内 --- */
.faq-card {
  background: white; border-radius: var(--radius); padding: 22px 20px;
  margin-top: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.faq-card h2 { margin: 0 0 14px; font-size: 1.15rem; color: var(--ocean-dark); text-align: center; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--ocean-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ocean-dark);
  margin-left: 10px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.7;
  /* 文末の「す。」等が1文字だけ孤立して次の行に落ちる(オーファン)のを防ぐため、
     読みやすい行長に収め、対応ブラウザでは text-wrap:pretty で行の割り付けも調整する */
  max-width: 32em;
  text-wrap: pretty;
}

.site-footer { text-align: center; padding: 24px 16px 36px; font-size: 0.75rem; color: var(--ink-soft); }
.footer-links a { color: var(--ocean); text-decoration: none; font-weight: 600; }

/* --- モバイル用 常設予約ボタン --- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: white; border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.mobile-cta a {
  display: block; text-align: center; text-decoration: none;
  background: var(--coral); color: white; font-weight: 800; font-size: 0.95rem;
  padding: 13px; border-radius: 10px; min-height: 48px; line-height: 1.2;
}
@media (min-width: 860px) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 640px) {
  .hero h1 { font-size: 2.3rem; }
}
