/* ==============================================
 * レンタカー予約システム 共通スタイル(顧客側)
 * ============================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #f9fafb;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ============ Header / Footer ============ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
}
.main-nav a:hover {
  background: #eff6ff;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 200px);
  padding: 24px 16px 60px;
}

.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 32px 0 20px;
  margin-top: 60px;
  font-size: 14px;
}
.site-footer .container { display: grid; gap: 16px; }
.site-footer a { color: #93c5fd; }
.copyright { font-size: 12px; color: #9ca3af; margin: 8px 0 0; text-align: center; }
.footer-links { margin: 12px 0 0; }
.footer-links a { margin: 0 8px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}
.footer-info-col { display: flex; flex-direction: column; justify-content: center; }
.footer-info { margin: 0; line-height: 1.8; }
.footer-company { display: inline-block; font-size: 15px; color: #f9fafb; margin-bottom: 4px; }

.footer-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16 / 9;
  background: #111827;
}
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-map { aspect-ratio: 4 / 3; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 50px 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
}
.hero h1 { font-size: 28px; margin: 0 0 8px; }
.hero-sub { margin: 0; opacity: 0.9; }

/* ============ Forms ============ */
.search-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.search-box h2 { margin: 0 0 16px; font-size: 20px; }
.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.search-form .form-actions {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}
.search-hint { color: #6b7280; font-size: 13px; margin: 8px 0 0; }

.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-weight: 600; color: #374151; font-size: 14px; }
.form-row .required { color: #dc2626; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row input[type=date],
.form-row input[type=datetime-local],
.form-row input[type=time],
.form-row input[type=password],
.form-row input[type=number],
.form-row input[type=search],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-row .hint { font-size: 12px; color: #6b7280; margin-top: 2px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-wide { grid-column: 1 / -1; }

fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 18px;
  background: #fff;
}
legend {
  font-weight: 700;
  padding: 0 8px;
  color: #1f2937;
  font-size: 16px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.option-row:last-child { border-bottom: 0; }
.option-row > label { flex: 1; cursor: pointer; min-width: 200px; }
.option-row .option-price { color: #2563eb; margin-left: 8px; font-weight: 600; }
.option-row .qty input { width: 70px; padding: 6px 8px; }

.agree { font-size: 15px; }
.agree input { margin-right: 6px; }

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #6b7280;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #2563eb; }
.btn-primary:hover { background: #1d4ed8; opacity: 1; }
.btn-success { background: #16a34a; }
.btn-success:hover { background: #15803d; opacity: 1; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; opacity: 1; }
.btn-ghost { background: transparent; color: #2563eb; border: 1px solid #2563eb; }
.btn-ghost:hover { background: #eff6ff; opacity: 1; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============ Step Indicator ============ */
.step-indicator {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.step-indicator .step {
  flex: 1;
  padding: 12px;
  text-align: center;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid #e5e7eb;
}
.step-indicator .step:last-child { border-right: 0; }
.step-indicator .step.active { background: #2563eb; color: white; }
.step-indicator .step.done { background: #d1fae5; color: #065f46; }

/* ============ Search Results ============ */
.search-summary { margin-bottom: 20px; }
.search-summary .period { color: #4b5563; font-size: 16px; }
.search-summary .badge {
  display: inline-block;
  padding: 2px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  font-size: 13px;
  margin-left: 8px;
  font-weight: 600;
}
.link-back { color: #6b7280; font-size: 14px; }
.result-count { color: #4b5563; margin-bottom: 16px; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.vehicle-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.vehicle-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-img.placeholder {
  font-size: 64px;
  color: #9ca3af;
}
.vehicle-body { padding: 18px; }
.vehicle-name { margin: 0 0 8px; font-size: 18px; }
.vehicle-spec {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vehicle-spec li {
  background: #f3f4f6;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #4b5563;
}
.vehicle-equipment { font-size: 13px; color: #6b7280; margin: 8px 0; }
.vehicle-cs-arrival {
  margin: 6px 0 8px;
  font-size: 12px;
  color: #4b5563;
}
.vehicle-cs-arrival strong { color: #d97706; }
.vehicle-price { margin: 12px 0 4px; }
.vehicle-price .price-amount { font-size: 24px; font-weight: 700; color: #2563eb; }
.vehicle-price .price-unit { font-size: 14px; color: #6b7280; margin-left: 4px; }
.vehicle-subtotal { font-size: 14px; color: #4b5563; margin: 0 0 12px; }
.vehicle-subtotal strong { color: #1f2937; font-size: 16px; }

/* ============ Confirm / Reservation Display ============ */
.reserve-summary, .confirm-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.reserve-summary h2, .confirm-section h2 { margin: 0 0 12px; font-size: 18px; }
.summary-dl, .confirm-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 14px;
  margin: 0;
}
.summary-dl dt, .confirm-dl dt { color: #6b7280; font-weight: 600; font-size: 14px; }
.summary-dl dd, .confirm-dl dd { margin: 0; }
.confirm-dl .code { font-family: monospace; font-size: 18px; font-weight: 700; color: #2563eb; letter-spacing: 0.05em; }

.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th, .price-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.price-table th { text-align: left; font-weight: 500; color: #4b5563; }
.price-table td { text-align: right; }
.price-table tr.total th, .price-table tr.total td {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  border-top: 2px solid #1f2937;
  border-bottom: 0;
  padding-top: 14px;
}
.price-note { color: #6b7280; font-size: 13px; margin: 8px 0 0; }

/* ============ Complete Box ============ */
.complete-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin: 30px 0;
}
.complete-box h1 { color: #16a34a; }
.complete-box .lead { font-size: 17px; margin: 16px 0; }
.complete-code {
  background: #eff6ff;
  border: 2px dashed #2563eb;
  padding: 20px;
  border-radius: 8px;
  margin: 24px auto;
  max-width: 400px;
}
.complete-code .label { display: block; color: #6b7280; font-size: 13px; }
.complete-code .code { font-size: 28px; font-weight: 700; color: #1d4ed8; letter-spacing: 0.1em; font-family: monospace; }
.complete-box .hint { color: #6b7280; font-size: 14px; }
.must-bring {
  display: inline-block;
  text-align: left;
  background: #fef3c7;
  padding: 16px 28px;
  border-radius: 8px;
  margin: 18px 0;
}
.complete-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Lookup ============ */
.lookup-form {
  max-width: 460px;
  margin: 20px auto;
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.lookup-result {
  background: #fff;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 18px;
}
.cancel-section {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 22px;
}
.cancel-info {
  background: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ============ Status Badges ============ */
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-in_use { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-returned { background: #e5e7eb; color: #4b5563; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-no_show { background: #fce7f3; color: #9d174d; }
.status-blocked { background: #fee2e2; color: #991b1b; }

/* ============ Info / Reminder ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.info-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-align: center;
}
.info-card h3 { margin: 0 0 8px; color: #2563eb; }
.info-card p { margin: 0; }
.reminder {
  background: #fef3c7;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 30px 0;
}
.reminder h3 { margin: 0 0 8px; color: #92400e; }
.reminder ul { margin: 0; padding-left: 20px; }

/* ============ Static Pages ============ */
.static-page {
  background: #fff;
  padding: 30px 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  max-width: 800px;
  margin: 0 auto;
}
.static-page h1 { border-bottom: 2px solid #2563eb; padding-bottom: 8px; }
.static-page h2 { color: #1f2937; margin-top: 28px; }
.static-page .note { color: #6b7280; font-size: 13px; margin-top: 30px; padding: 12px; background: #f9fafb; border-radius: 6px; }

/* ============ Flash / Error ============ */
.flash {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.error-box {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.error-box ul { margin: 6px 0 0; padding-left: 22px; }

.empty-box {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  color: #6b7280;
}

/* ============ Hero 営業時間バッジ ============ */
.hero-biz-hours {
  margin: 12px 0 0;
  font-size: 15px;
  opacity: 0.95;
}
.biz-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============ 空き状況カレンダー ============ */
.avail-calendar-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 28px;
}
.avail-calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cal-title {
  margin: 0;
  font-size: 20px;
  min-width: 140px;
  text-align: center;
}
.btn-cal-nav {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 22px;
  cursor: pointer;
  color: #374151;
  line-height: 1.2;
  transition: background 0.15s;
}
.btn-cal-nav:hover { background: #f3f4f6; }

.cal-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 4px; }
.mark { font-size: 16px; font-weight: 700; }
.mark-o   { color: #16a34a; }
.mark-tri { color: #d97706; }
.mark-x   { color: #9ca3af; }

.avail-calendar { overflow-x: auto; }
.cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.cal-table th {
  padding: 6px 4px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}
.cal-table td {
  padding: 6px 4px;
  text-align: center;
  vertical-align: top;
  height: 58px;
  border: 1px solid #f3f4f6;
  font-size: 13px;
}
.col-sun, .cal-sun { color: #dc2626; }
.col-sat, .cal-sat { color: #2563eb; }

.cal-cell { cursor: default; }
.cal-clickable { cursor: pointer; transition: background 0.12s; }
.cal-clickable:hover { background: #f0fdf4; }

.cal-day-num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.cal-mark {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.cal-mark-o   { color: #16a34a; }
.cal-mark-tri { color: #d97706; }
.cal-mark-x   { color: #d1d5db; }

.cal-o   .cal-mark { color: #16a34a; }
.cal-tri .cal-mark { color: #d97706; }
.cal-x   .cal-mark { color: #d1d5db; }
.cal-past .cal-day-num { color: #d1d5db; }

.cal-loading { text-align: center; color: #9ca3af; padding: 20px 0; }
.cal-error   { text-align: center; color: #ef4444; padding: 12px 0; }

/* ============ 営業時間テーブル ============ */
.biz-hours-section {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid #e5e7eb;
}
.biz-hours-section h3 { margin: 0 0 12px; font-size: 16px; color: #374151; }
.biz-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 360px;
  font-size: 14px;
}
.biz-table th {
  padding: 6px 16px 6px 0;
  font-weight: 700;
  color: #4b5563;
  width: 40px;
  text-align: left;
}
.biz-table td { padding: 6px 0; color: #1f2937; }
.biz-closed { color: #9ca3af !important; }
.biz-sun th, .biz-sun td { color: #dc2626; }
.biz-sat th, .biz-sat td { color: #2563eb; }
.biz-holiday-note {
  font-size: 12px;
  color: #6b7280;
  margin: 10px 0 0;
}

/* ============ Top Page (車種一覧) ============ */
.top-intro { margin: 0 0 18px; }
.top-title {
  font-size: 18px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 4px;
  letter-spacing: 0.05em;
}
.top-sub { color: #4b5563; margin: 0; font-size: 14px; }

.vehicle-grid-top { margin-bottom: 30px; }
.vehicle-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.vehicle-card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 14px;
}
.plan-table th, .plan-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f3f4f6;
}
.plan-table th {
  text-align: left;
  font-weight: 500;
  color: #6b7280;
  width: 50%;
}
.plan-table td {
  text-align: right;
  font-weight: 600;
  color: #1f2937;
}
.plan-table tr.plan-extra th, .plan-table tr.plan-extra td {
  font-size: 12px;
  color: #6b7280;
}
.plan-table-card { margin: 8px 0 10px; }
.plan-table-card tr:last-child th,
.plan-table-card tr:last-child td { border-bottom: 0; }

/* ============ 車両詳細ページ ============ */
.vehicle-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}
.vehicle-detail-gallery .vd-main-wrap {
  width: 100%;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-detail-gallery .vd-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-detail-gallery .vd-main-img.placeholder {
  font-size: 80px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vd-thumbs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.vd-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: #f3f4f6;
  cursor: pointer;
  overflow: hidden;
}
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-thumb.active { border-color: #2563eb; }

.vd-title { margin: 0 0 14px; font-size: 24px; }
.vd-title small { font-size: 14px; color: #6b7280; font-weight: 500; }
.vd-section-title {
  margin: 18px 0 10px;
  font-size: 16px;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 4px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}
.spec-table th {
  width: 40%;
  background: #fef3c7;
  color: #4b5563;
  font-weight: 600;
}
.vd-warn {
  color: #92400e;
  background: #fef3c7;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin: 8px 0 0;
}
.vd-note {
  color: #6b7280;
  font-size: 13px;
  margin: 10px 0 0;
}

/* ============ STEP ブロック ============ */
.step-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.step-block-title {
  margin: 0 0 16px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #2563eb;
  padding: 4px 0 4px 12px;
  background: linear-gradient(90deg, #eff6ff 0%, transparent 60%);
}
.step-num {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* ============ 予約可能時間バー ============ */
.time-bar-section { margin-top: 18px; }
.time-bar-title {
  font-size: 14px;
  margin: 0 0 8px;
  color: #4b5563;
}
.time-bar {
  background: #f9fafb;
  border-radius: 6px;
  padding: 12px 8px 22px;
}
.time-bar-track {
  position: relative;
  height: 18px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.time-bar-slot {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #ef4444;
}
.time-bar-axis {
  position: relative;
  height: 18px;
  margin-top: 4px;
}
.time-bar-tick {
  position: absolute;
  font-size: 11px;
  color: #6b7280;
  transform: translateX(-50%);
  white-space: nowrap;
}
.time-bar-empty {
  margin: 0;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

/* ============ datetime-form / pricing preview ============ */
.datetime-form .form-row { max-width: 360px; }
.pricing-preview {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0 18px;
}
.pricing-preview h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #4b5563;
}

/* ============ 選択中カレンダーセル ============ */
.cal-selected {
  background: #fef3c7 !important;
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
}

/* ============ シンプルカレンダー（vehicle.php） ============ */
.simple-cal .cal-table td.cal-cell {
  height: 64px;
  padding: 8px 4px;
  background: #fff;
  border: 1px solid #f3f4f6;
  position: relative;
}
.simple-cal .cal-cell .cal-day-num {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}
.simple-cal .cal-available {
  background: #d1fae5 !important;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.simple-cal .cal-available:hover {
  background: #a7f3d0 !important;
  transform: scale(1.02);
}
.simple-cal .cal-available .cal-day-num { color: #065f46; }
.simple-cal .cal-partial {
  background: #fef3c7 !important;
  cursor: pointer;
}
.simple-cal .cal-partial:hover {
  background: #fde68a !important;
  transform: scale(1.02);
}
.simple-cal .cal-partial .cal-day-num { color: #92400e; }
.simple-cal .cal-unavailable {
  background: #fff !important;
  color: #d1d5db;
  cursor: default;
}
.simple-cal .cal-unavailable .cal-day-num { color: #d1d5db; }
.simple-cal .cal-selected {
  background: #dbeafe !important;
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}
.simple-cal .cal-selected .cal-day-num { color: #1e3a8a; }

/* 祝日・休業日ラベル */
.cal-day-tag {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  color: #b91c1c;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-day-tag-muted { color: #9ca3af; font-weight: 500; }

/* 日曜・土曜のセル色 */
.simple-cal td.cal-sun .cal-day-num { color: #dc2626; }
.simple-cal td.cal-sun .cal-day-tag { color: #dc2626; }
.simple-cal td.cal-sat .cal-day-num { color: #2563eb; }

/* 祝日: 日付の数字も赤に */
.simple-cal td.cal-holiday .cal-day-num { color: #dc2626; }

/* legend swatches */
.legend-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
  border: 1px solid #d1d5db;
}
.swatch-available  { background: #d1fae5; border-color: #6ee7b7; }
.swatch-partial    { background: #fef3c7; border-color: #fcd34d; }
.swatch-unavailable{ background: #fff; }
.swatch-tl-available { background: #6ee7b7; border-color: #10b981; }
.swatch-tl-busy      { background: #d1d5db; border-color: #9ca3af; }
.swatch-tl-past      { background: #f3f4f6; border-color: #e5e7eb; }

/* ============ ステップ無効状態 ============ */
.step-block {
  /* sticky ヘッダーの下に隠れないようにスクロール位置をオフセット */
  scroll-margin-top: 90px;
}
.step-disabled {
  opacity: 0.55;
  filter: grayscale(0.3);
}
.step-disabled .step-block-title {
  background: linear-gradient(90deg, #f3f4f6 0%, transparent 60%);
  border-left-color: #9ca3af;
}
.step-hint {
  color: #6b7280;
  font-size: 14px;
  margin: 4px 0 0;
}

/* ============ プランボタン ============ */
.plan-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.plan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
  border: 2px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: #1f2937;
  font-weight: 600;
  transition: all 0.15s;
}
.plan-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}
.plan-btn.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.plan-btn-label { font-size: 15px; }
.plan-btn-price { font-size: 13px; opacity: 0.85; }
.plan-btn.active .plan-btn-price { color: #dbeafe; }
.plan-btn-long { background: #fefce8; }
.plan-btn-long.active { background: #2563eb; color: #fff; }

/* ============ 時刻スロット ============ */
.vd-pickup-label {
  font-weight: 600;
  margin: 0 0 8px;
  color: #4b5563;
}
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.time-slot {
  padding: 10px 6px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.12s;
}
.time-slot:hover {
  background: #eff6ff;
}
.time-slot.active {
  background: #2563eb;
  color: #fff;
}
.time-slots-empty {
  color: #b91c1c;
  background: #fee2e2;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin: 8px 0 0;
}
.time-loading {
  color: #9ca3af;
  margin: 0;
  padding: 12px;
}
.time-error {
  color: #b91c1c;
  margin: 0;
  padding: 12px;
}

/* ============ 管理画面：車両画像 ============ */
.vehicle-images-admin .img-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.img-upload-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.img-upload-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.img-upload-status {
  font-size: 13px;
  color: #6b7280;
}
.vehicle-image-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.vimg-item {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: grab;
  background: #f3f4f6;
}
.vimg-item:hover { border-color: #93c5fd; }
.vimg-item.is-primary { border-color: #f59e0b; box-shadow: 0 0 0 2px #fef3c7; }
.vimg-item.dragging { opacity: 0.4; }
.vimg-item.drag-over { border-color: #2563eb; box-shadow: inset 0 0 0 3px #93c5fd; }
.vimg-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vimg-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}
.vimg-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vimg-btn:hover { background: rgba(0,0,0,0.8); }
.vimg-primary:hover { background: #f59e0b; }
.vimg-delete:hover  { background: #dc2626; }
.vimg-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .vehicle-detail {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 18px;
  }
  .vd-title { font-size: 20px; }
  .step-block { padding: 16px 14px; }
  .vehicle-image-list {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .step-block { scroll-margin-top: 140px; }   /* SPはヘッダーが縦に伸びるため */
  .main-nav { width: 100%; }
  .main-nav a { padding: 6px 10px; font-size: 14px; }
  .search-form { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .summary-dl, .confirm-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .summary-dl dt, .confirm-dl dt { margin-top: 8px; font-size: 12px; }
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 22px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; text-align: center; }
  .cal-table td { height: 50px; padding: 4px 2px; }
  .cal-mark { font-size: 15px; }
  .avail-calendar-section { padding: 16px 12px; }
}

/* ============ タイムライン (出発・返却) ============ */
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: #4b5563;
  margin: 6px 0 14px;
}
.timeline-legend .legend-item { display: inline-flex; align-items: center; }

.timeline-wrap {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 16px 14px;
}

.timeline-day-row { margin-bottom: 8px; }
.timeline-day-label {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.timeline-day-label .tl-date { font-size: 15px; }
.timeline-day-label .tl-dow { color: #6b7280; font-weight: 500; }
.timeline-day-label .tl-closed { font-size: 12px; color: #b91c1c; font-weight: 500; }

.timeline-bar-track {
  position: relative;
  height: 56px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.timeline-bar {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
}
.timeline-bar-closed,
.timeline-bar-empty {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
  border-radius: 6px;
}

.timeline-cell {
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  background: #34d399;
  color: #064e3b;
  font-size: 12px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.12s, transform 0.08s, box-shadow 0.12s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.timeline-cell:last-child { border-right: none; }
.timeline-cell .tl-cell-hm {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.timeline-cell.tl-available { background: #34d399; color: #064e3b; }
.timeline-cell.tl-available:hover {
  background: #059669;
  color: #fff;
  z-index: 2;
  box-shadow: 0 0 0 2px #047857 inset;
}
.timeline-cell.tl-busy {
  background: #9ca3af;
  color: #f3f4f6;
  cursor: not-allowed;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.12) 0,
    rgba(255,255,255,0.12) 4px,
    transparent 4px,
    transparent 8px
  );
}
.timeline-cell.tl-past {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}
.timeline-cell.tl-selected {
  background: #2563eb !important;
  color: #fff !important;
  z-index: 3;
  box-shadow: 0 0 0 3px #1e3a8a inset, 0 2px 6px rgba(37, 99, 235, 0.4);
}

.timeline-axis {
  position: relative;
  margin: 6px 0 0;
  height: 22px;
  font-size: 12px;
  color: #6b7280;
}
.timeline-axis .tl-tick {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 500;
}
.timeline-axis .tl-tick::before {
  content: '';
  display: block;
  height: 6px;
  width: 1px;
  background: #9ca3af;
  margin: 0 auto 2px;
}

/* 返却日セレクタ */
.return-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.return-date-label {
  font-weight: 600;
  color: #1e40af;
  font-size: 14px;
}
.return-date-select {
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #93c5fd;
  background: #fff;
  border-radius: 6px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  min-width: 220px;
}
.return-date-select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.return-date-select:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}
.return-date-hint {
  font-size: 13px;
  color: #1e40af;
  flex: 1 1 100%;
}

.duration {
  color: #6b7280;
  font-size: 13px;
  font-weight: normal;
}

/* スロットボタン一覧（中幅以下／SP 表示） */
.timeline-slots {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.timeline-slot-btn {
  padding: 12px 8px;
  border: 1.5px solid #34d399;
  background: #fff;
  color: #047857;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: all 0.12s;
  letter-spacing: 0.5px;
  min-height: 44px;
}
.timeline-slot-btn:hover, .timeline-slot-btn:focus {
  background: #34d399;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}
.timeline-slot-btn.selected {
  background: #2563eb;
  color: #fff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* 中幅: :30 セルのラベルを隠す（重なり対策） */
@media (max-width: 1024px) {
  .timeline-cell.tl-half .tl-cell-hm { visibility: hidden; }
}

/* やや狭い PC: タイムラインのラベルを全て隠し、スロットボタンを表示 */
@media (max-width: 820px) {
  .timeline-cell .tl-cell-hm { visibility: hidden; }
  .timeline-slots { display: grid; }
  .timeline-bar-track { height: 32px; }
}

/* SP: タイムラインを情報表示のみに、ボタン一覧で操作。返却は1列スタック */
@media (max-width: 600px) {
  .timeline-wrap { padding: 12px 12px 12px; }
  .timeline-bar-track { height: 24px; }
  .timeline-axis { font-size: 11px; height: 18px; }
  .timeline-axis .tl-tick::before { height: 4px; }
  .timeline-day-label { font-size: 13px; gap: 4px; }
  .timeline-day-label .tl-date { font-size: 14px; }
  .timeline-bar-closed, .timeline-bar-empty { height: 32px; font-size: 12px; }

  /* 出発・返却ともに同じグリッド（3-4列） */
  .timeline-slots {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
  }
  .timeline-slot-btn {
    padding: 10px 4px;
    font-size: 14px;
    min-height: 40px;
  }

  .return-date-row { padding: 10px 12px; }
  .return-date-select { min-width: 0; flex: 1; font-size: 13px; padding: 8px 10px; }
  .return-date-label { font-size: 13px; }
  .return-date-hint { font-size: 12px; }

  .timeline-legend { font-size: 12px; gap: 6px 12px; }
}

/* ===================================================
 * 予約停止バッジ / キャンペーン価格 / Markdown説明文
 * =================================================== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
  line-height: 1.6;
}
.badge-paused {
  background: #dc2626;
  color: #fff;
  margin-left: 8px;
}
.badge-cs {
  background: #f59e0b;
  color: #fff;
  margin-left: 8px;
}
.vehicle-card { position: relative; }
.vehicle-card .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.vehicle-card.is-paused .vehicle-img { opacity: 0.55; }
.vehicle-card.is-coming-soon { border: 2px solid #fed7aa; }
.vehicle-card.is-coming-soon .btn-primary {
  background: #f59e0b;
  border-color: #f59e0b;
}
.vehicle-card.is-coming-soon .btn-primary:hover {
  background: #d97706;
  border-color: #d97706;
}

.price-base {
  color: #9ca3af;
  margin-right: 6px;
  font-weight: normal;
}
.price-campaign {
  color: #dc2626;
  font-weight: bold;
}
.sale-tag {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
  line-height: 1.4;
}

.vd-description {
  margin-top: 16px;
  padding: 16px 18px;
  background: #f9fafb;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  line-height: 1.75;
  color: #1f2937;
}
.vd-description h1,
.vd-description h2,
.vd-description h3 {
  margin: 1em 0 0.4em;
  line-height: 1.4;
}
.vd-description h1 { font-size: 1.4em; }
.vd-description h2 { font-size: 1.2em; }
.vd-description h3 { font-size: 1.05em; }
.vd-description p  { margin: 0.6em 0; }
.vd-description ul,
.vd-description ol { margin: 0.6em 0; padding-left: 1.5em; }
.vd-description li { margin: 0.2em 0; }
.vd-description a  { color: #2563eb; text-decoration: underline; }
.vd-description code {
  background: #e5e7eb;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
.vd-description blockquote {
  margin: 0.6em 0;
  padding: 0.4em 0.8em;
  border-left: 3px solid #cbd5e1;
  color: #4b5563;
}


/* ============================================================
   SEO Phase 2/3: パンくず / シェアボタン / カテゴリ / 関連車両 / ブログ
   ============================================================ */

/* --- パンくずリスト --- */
.breadcrumbs {
  margin: 12px 0 16px;
  font-size: 13px;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb-item a {
  color: #2563eb;
  text-decoration: none;
}
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.current { color: #6b7280; }
.breadcrumb-sep {
  color: #9ca3af;
  margin: 0 2px;
  list-style: none;
}

/* --- カテゴリナビ --- */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.category-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  transition: all 0.15s;
}
.category-chip:hover { background: #e5e7eb; }
.category-chip.is-current {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.category-intro {
  color: #4b5563;
  line-height: 1.7;
  margin: 12px 0;
}
.category-intro h2 { font-size: 1.15em; margin: 0.5em 0; }

/* --- シェアボタン --- */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 0;
}
.share-label {
  font-weight: bold;
  margin-right: 8px;
  color: #374151;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.share-btn svg { display: block; }
.share-x  { background: #000; color: #fff; border-color: #000; }
.share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-ln { background: #06c755; color: #fff; border-color: #06c755; }
.share-copy { background: #fff; color: #374151; }
.share-copy.share-copied {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.vehicle-share-section {
  margin: 32px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

/* --- 関連車両 --- */
.related-vehicles {
  margin: 40px 0;
}
.section-title {
  font-size: 1.25em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.vehicle-grid-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* --- ブログ --- */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.article-thumb { display: block; }
.article-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.article-card .article-body { padding: 16px; }
.article-date {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}
.article-title {
  font-size: 1.1em;
  margin: 4px 0 8px;
}
.article-title a {
  color: #111827;
  text-decoration: none;
}
.article-title a:hover { color: #2563eb; }
.article-excerpt {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* 記事詳細 */
.article-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}
.article-header { margin-bottom: 24px; }
.article-title-h1 {
  font-size: 1.8em;
  margin: 0 0 8px;
  line-height: 1.4;
}
.article-hero {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.article-detail .article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
}
.article-detail .article-body h2 {
  font-size: 1.4em;
  margin: 1.6em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #e5e7eb;
}
.article-detail .article-body h3 { font-size: 1.2em; margin: 1.2em 0 0.4em; }
.article-detail .article-body p  { margin: 0.8em 0; }
.article-detail .article-body ul,
.article-detail .article-body ol { margin: 0.8em 0; padding-left: 1.6em; }
.article-detail .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

/* --- 管理画面: カテゴリチェック --- */
.cat-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.cat-check:has(input:checked) {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}


/* ============ Lookup Tabs ============ */
.lookup-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  border-bottom: 2px solid #e5e7eb;
}
.lookup-tabs .lookup-tab {
  padding: 8px 18px;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.lookup-tabs .lookup-tab:hover { color: #1f2937; text-decoration: none; }
.lookup-tabs .lookup-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* ============ Lookup List (multiple matches) ============ */
.lookup-list {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 14px;
}
.lookup-list th, .lookup-list td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}
.lookup-list th { background: #f9fafb; font-size: 13px; color: #4b5563; }
.lookup-list tr:last-child td { border-bottom: 0; }


/* ============ Article cards (公開・WPライク) ============ */
.section-h2 {
  font-size: 22px;
  margin: 32px 0 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
}
.section-h2-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #e5e7eb;
  margin: 32px 0 4px;
}
.section-h2-row .section-h2 { border: 0; margin: 0; padding: 0; }
.section-more { font-size: 14px; color: #2563eb; }
.muted-center { color: #6b7280; font-size: 14px; text-align: center; margin: 6px 0 16px; }

.article-card-grid-public {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.post-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.post-card-thumb {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  position: relative;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 42px;
  color: #d1d5db;
}
.post-card-body { padding: 14px 16px; }
.post-card-date { font-size: 12px; color: #6b7280; }
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1.4;
  color: #111827;
}
.post-card-excerpt {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.top-latest-articles {
  margin-top: 40px;
}

.post-related,
.post-bottom-vehicles {
  margin-top: 50px;
}

/* ============ Coming Soon ============ */
.cs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.cs-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.cs-card-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
  position: relative;
  overflow: hidden;
}
.cs-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cs-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 42px; color: #9ca3af;
}
.cs-card-arrival {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(124, 58, 237, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.cs-card-body { padding: 14px 16px; }
.cs-card-title {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  line-height: 1.4; color: #111827;
}
.cs-card-title small { font-size: 12px; color: #6b7280; font-weight: 400; margin-left: 4px; }
.cs-card-price { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.cs-card-cta {
  display: inline-block;
  font-size: 13px;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 4px;
}

/* Coming Soon 詳細ページ */
.cs-detail { max-width: 980px; margin: 0 auto; }
.cs-header {
  text-align: center;
  padding: 20px 0 12px;
}
.cs-badge {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.cs-title {
  font-size: 28px;
  margin: 12px 0;
  line-height: 1.3;
}
.cs-meta {
  display: inline-flex;
  gap: 20px;
  margin: 0;
  background: #f3f4f6;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.cs-meta dt {
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  margin: 0;
}
.cs-meta dd {
  margin: 0 16px 0 4px;
}
.cs-hero {
  margin: 20px 0;
  text-align: center;
}
.cs-hero img {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: inline-block;
}
.cs-hero figcaption {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

/* 画像スライダー (アスペクト比保持・中央表示) */
.cs-slider {
  position: relative;
  margin: 20px 0 28px;
  background: #f9fafb;
  border-radius: 10px;
  overflow: hidden;
  outline: none;
}
.cs-slider:focus-visible { box-shadow: 0 0 0 3px rgba(245,158,11,0.35); }
.cs-slider-stage {
  position: relative;
  width: 100%;
  min-height: 260px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  padding: 12px;
}
.cs-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  inset: auto;
}
.cs-slide img {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.cs-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e5e7eb;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cs-slider-nav:hover { background: #fff; color: #f59e0b; }
.cs-slider-prev { left: 12px; }
.cs-slider-next { right: 12px; }
.cs-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 6px;
}
.cs-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.15s;
}
.cs-slider-dot:hover { background: #9ca3af; }
.cs-slider-dot.is-active { background: #f59e0b; width: 22px; border-radius: 6px; }
.cs-slider-caption {
  text-align: right;
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
  padding: 2px 14px 8px;
}
@media (max-width: 600px) {
  .cs-slider-stage { min-height: 200px; max-height: 320px; }
  .cs-slide img { max-height: 300px; }
  .cs-slider-nav { width: 36px; height: 36px; font-size: 22px; }
}
.cs-cta {
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
  border: 1px solid #ddd6fe;
  padding: 28px;
  border-radius: 12px;
  margin: 30px 0;
}
.cs-cta h2 { margin: 0 0 8px; font-size: 22px; }
.cs-form { margin-top: 14px; }
.cs-form-row { margin: 12px 0; }
.cs-form-row label {
  display: block;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  margin-bottom: 4px;
}
.cs-form-row input,
.cs-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
}
.cs-form-row textarea { resize: vertical; }
.cs-form-row .required { color: #dc2626; }
.cs-form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .cs-form-row-grid { grid-template-columns: 1fr; }
}
.cs-form .agree {
  display: block;
  font-size: 13px;
  margin: 12px 0;
  color: #4b5563;
}
.cs-form-actions { text-align: center; margin-top: 16px; }

.cs-body { line-height: 1.85; margin: 30px 0; padding: 0 4px; }
.cs-body h2 {
  font-size: 22px;
  margin: 1.6em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #e5e7eb;
}
.cs-body h3 { font-size: 18px; margin: 1.2em 0 0.4em; }
.cs-body img { max-width: 100%; border-radius: 6px; }

.cs-other-vehicles { margin-top: 50px; }
.top-coming-soon { margin-top: 40px; }

/* CS ページ: 画像ギャラリー */
.cs-gallery { margin: 20px 0; }
.cs-gallery .cs-hero { margin: 0; }
.cs-thumbs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cs-thumb {
  width: 90px;
  height: 68px;
  padding: 0;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}
.cs-thumb:hover { border-color: #93c5fd; }
.cs-thumb.active { border-color: #f59e0b; }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-arrival-line {
  margin: 6px 0 0;
  font-size: 14px;
  color: #4b5563;
}
.cs-arrival-line strong { color: #d97706; }

/* CS ヒーロー画像なし時のプレースホルダ */
.cs-hero-placeholder {
  background: linear-gradient(135deg, #fff7ed 0%, #fefce8 100%);
  padding: 48px 20px;
  border-radius: 10px;
}
.cs-hero-placeholder-icon {
  font-size: 64px;
}


/* ============ Coming Soon ============ */
.cs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0 30px;
}
.cs-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.cs-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}
.cs-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 38px; color: #d1d5db;
}
.cs-card-arrival {
  position: absolute; top: 8px; left: 8px;
  background: rgba(245, 158, 11, 0.95); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  font-weight: 600;
}
.cs-card-body { padding: 14px 16px; }
.cs-card-title {
  font-size: 16px; font-weight: 700; margin: 0 0 8px;
  line-height: 1.4; color: #111827;
}
.cs-card-title small { color: #6b7280; font-weight: 400; font-size: 12px; }
.cs-card-price { font-size: 12px; color: #f59e0b; margin-bottom: 6px; font-weight: 600; }
.cs-card-cta {
  display: inline-block; font-size: 13px; color: #2563eb; font-weight: 600;
}

/* Coming Soon 詳細 */
.cs-detail { max-width: 920px; margin: 20px auto; }
.cs-header { text-align: center; margin: 0 0 22px; }
.cs-badge {
  display: inline-block; background: #f59e0b; color: #fff;
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
}
.cs-title { font-size: 24px; margin: 0; color: #111827; line-height: 1.4; }
.cs-subtle { color: #6b7280; font-size: 14px; margin: 8px 0 0; }
.cs-hero {
  margin: 18px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
.cs-hero img { width: 100%; height: auto; display: block; }
.cs-hero figcaption { font-size: 11px; color: #9ca3af; padding: 6px 10px; text-align: right; }

.cs-cta {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 24px 22px;
  margin: 24px 0;
}
.cs-cta h2 { font-size: 19px; margin: 0 0 6px; color: #92400e; }
.cs-cta .muted { color: #78350f; font-size: 13px; margin: 0 0 16px; line-height: 1.6; }
.cs-form-row { margin: 0 0 12px; }
.cs-form-row label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #1f2937;
}
.cs-form-row input,
.cs-form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 14px; box-sizing: border-box;
  background: #fff;
}
.cs-form-row textarea { resize: vertical; }
.cs-form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cs-form .agree {
  display: block; margin: 12px 0; font-size: 13px;
}
.cs-form-actions { text-align: center; margin-top: 14px; }

.cs-pricing { margin: 30px 0; }
.cs-body {
  margin: 30px 0;
  padding: 18px 22px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  line-height: 1.8;
}
.cs-body h2 { font-size: 19px; margin: 1.4em 0 0.5em; }
.cs-body h3 { font-size: 16px; margin: 1.2em 0 0.4em; }
.cs-other-vehicles { margin: 40px 0 20px; }

@media (max-width: 600px) {
  .cs-form-row-grid { grid-template-columns: 1fr; }
  .cs-title { font-size: 20px; }
}

/* ============ Article CTA to vehicles ============ */
.article-vehicle-cta-inline {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 18px 0;
}
.article-vehicle-cta-inline .cta-thumb {
  width: 100px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.article-vehicle-cta-inline .cta-body { flex: 1; min-width: 0; }
.article-vehicle-cta-inline .cta-eyebrow {
  font-size: 11px; color: #0369a1; margin: 0; font-weight: 600;
}
.article-vehicle-cta-inline .cta-name {
  font-size: 15px; font-weight: 700; margin: 2px 0 8px; color: #0c4a6e;
}

.article-vehicle-cta-bottom {
  margin: 30px 0;
  padding: 22px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.cta-bottom-title {
  font-size: 17px; margin: 0 0 14px; color: #111827; text-align: center;
}
.cta-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.cta-bottom-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.12s;
}
.cta-bottom-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.cta-bottom-card img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.cta-bottom-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9; background: #f3f4f6; font-size: 28px; color: #d1d5db;
}
.cta-bottom-info { padding: 10px 12px; }
.cta-bottom-info strong {
  display: block; font-size: 14px; color: #1f2937; margin-bottom: 4px;
}
.cta-bottom-btn { font-size: 12px; color: #2563eb; font-weight: 600; }
.cta-bottom-card.is-coming-soon { border-color: #fed7aa; }
.cta-bottom-card.is-coming-soon .cta-bottom-btn { color: #d97706; }
.cta-bottom-cs-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  background: #fff7ed;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .article-vehicle-cta-inline { flex-direction: column; align-items: stretch; }
  .article-vehicle-cta-inline .cta-thumb { width: 100%; }
}

.vehicle-related-articles { margin: 40px 0 30px; }

/* Top page coming soon section */
.top-coming-soon { margin-top: 40px; }
