/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f9fafc;
  color: #20232A;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* BRAND COLORS */
:root {
  --color-primary: #20232A;
  --color-secondary: #C0A46B;
  --color-accent: #FFFFFF;
  --color-vibrant-1: #FFD100; /* Electric Yellow */
  --color-vibrant-2: #00E6B4; /* Teal Green */
  --color-vibrant-3: #4285F4; /* Electric Blue */
  --color-vibrant-4: #FF4081; /* Pink Accent */
  --color-text-main: #20232A;
  --color-text-inverse: #fff;
  --color-bg-hero: #20232A;
  --color-bg-section: #fffbe9;
  --color-bg-footer: #14151b;
  --color-shadow: rgba(32, 35, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
  body {
    color: var(--color-accent);
  }
  .section, .card, .testimonial-card, .about-preview, .service-details, .car-list, .privacy-policy, .gdpr, .cookies-policy, .terms-of-use {
    color: var(--color-accent);
  }
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
  font-weight: bold;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  color: var(--color-vibrant-3);
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: var(--color-vibrant-4);
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-vibrant-1);
}
.subheadline {
  font-size: 1.1rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
p, ul, ol, li, table, span {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text-main);
}

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
  p, ul, ol, li, table, span { font-size: 1.07rem; }
}

/* SHARED LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 22px;
  box-shadow: 0 4px 24px var(--color-shadow);
}

@media (min-width: 700px) {
  .container {
    flex-direction: row;
    gap: 0;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 28px;
  }
  .section {
    padding: 54px 32px;
  }
}

/* FLEXBOX GRIDS & GAPS */
.feature-grid, .features, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  padding: 26px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 6px 32px var(--color-vibrant-4), 0 3px 10px var(--color-shadow);
  transform: translateY(-4px) scale(1.014);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #20232A;
  box-shadow: 0 2px 16px var(--color-shadow);
  border-radius: 15px;
  padding: 20px 22px;
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.22s, border 0.22s;
  border: 2px solid var(--color-vibrant-1);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px var(--color-vibrant-2), 0 2px 8px var(--color-shadow);
  border-color: var(--color-secondary);
}
.customer-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 768px) {
  .feature-grid, .features, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 14px 10px;
  }
  .section {
    margin-bottom: 36px;
    padding: 32px 6px;
  }
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--color-primary);
  box-shadow: 0 4px 18px var(--color-shadow);
  position: relative;
  z-index: 17;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 19px;
  align-items: center;
}
header nav a {
  color: var(--color-vibrant-1);
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 1rem;
  transition: color 0.23s, background 0.23s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-vibrant-3);
  color: var(--color-accent);
}
.cta-btn {
  background: linear-gradient(90deg, var(--color-vibrant-2), var(--color-vibrant-3));
  color: #fff;
  font-weight: 900;
  padding: 13px 28px;
  font-size: 1.13rem;
  border-radius: 24px;
  box-shadow: 0 3px 18px rgba(0,230,180,0.13), 0 1.5px 9px var(--color-shadow);
  letter-spacing: 0.04em;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.24s, transform 0.20s, box-shadow 0.20s;
  outline: none;
  border: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-vibrant-4), var(--color-secondary));
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px var(--color-vibrant-4), 0 3px 10px var(--color-shadow);
}

/* HAMBURGER MENU (MOBILE NAVIGATION) */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 22px;
  z-index: 99;
  background: var(--color-vibrant-4);
  color: #fff;
  font-size: 2.3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.19s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-vibrant-1);
  color: var(--color-primary);
}
@media (max-width: 990px) {
  header nav, header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(110deg, var(--color-vibrant-3) 70%, var(--color-vibrant-4) 100%);
  box-shadow: 0 6px 36px var(--color-vibrant-4);
  z-index: 111;
  transform: translateX(-105vw);
  transition: transform 0.38s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: var(--color-vibrant-1);
  color: #20232A;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  border: none;
  cursor: pointer;
  z-index: 112;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  width: 100%;
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  padding: 0 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  width: 100%;
  padding: 16px 0 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  outline: none;
  letter-spacing: 0.05em;
  transition: color 0.19s, background 0.13s;
}
.mobile-nav a:active, .mobile-nav a:focus {
  color: var(--color-vibrant-1);
  background: rgba(0,0,0,0.07);
}
@media (min-width: 991px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none!important;
  }
}

/* HERO SECTION */
.hero {
  background: var(--color-bg-hero);
  color: #fff;
  border-radius: 0 0 30px 30px;
  margin-bottom: 48px;
  min-height: 320px;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 22px var(--color-shadow);
}
.hero .container {
  flex-direction: row;
  align-items: center;
  min-height: 320px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-vibrant-1);
  font-size: 2.3rem;
  line-height: 1.13;
  text-shadow: 0 2px 12px rgba(255,255,255,0.08);
}
.hero .subheadline {
  color: var(--color-vibrant-2);
  font-weight: 500;
  margin-bottom: 19px;
}
.hero .cta-btn {
  margin-top: 16px;
}
@media (max-width: 768px) {
  .hero {
    min-height: 180px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
}

/* CARDS & FEATURE ICONS */
.feature-grid > div {
  background: #fff;
  border-radius: 15px;
  padding: 22px 15px;
  box-shadow: 0 2px 12px var(--color-shadow);
  min-width: 200px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-vibrant-3);
  transition: border-color 0.24s, box-shadow 0.2s;
}
.feature-grid > div:hover {
  border-left-color: var(--color-vibrant-4);
  box-shadow: 0 4px 28px var(--color-vibrant-1), 0 2px 12px var(--color-shadow);
  background: #f8f8fe;
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

/* TABLES (car-list page) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--color-shadow);
}
th, td {
  padding: 17px 11px;
  text-align: left;
}
th {
  background: var(--color-vibrant-3);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}
tbody tr:nth-child(odd) {
  background: #f6f8ff;
}
tbody tr:nth-child(even) {
  background: #fff;
}
td {
  font-size: 1rem;
  color: #20232A;
}

/* BUTTONS & MICROINTERACTIONS */
button, .cta-btn {
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

/* FORM FIELDS (if forms are present) */
input, select, textarea {
  background: #fff;
  border: 1.7px solid var(--color-vibrant-2);
  border-radius: 9px;
  padding: 11px 9px;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.19s;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-vibrant-4);
  box-shadow: 0 0 0 2px var(--color-vibrant-3)44;
}

/* MAP VIEW FOR CONTACT */
.map-view {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 16px 17px;
  color: var(--color-primary);
  font-weight: 600;
}
.map-view img {
  width: 26px;
  height: 26px;
}

/* TABLET & DESKTOP RESPONSIVE */
@media (min-width: 950px) {
  .feature-grid {
    flex-direction: row;
    gap: 32px;
  }
  .about-preview, .vehicles-preview, .testimonials-preview, .contact-cta, .service-details, .how-it-works-brief, .car-list, .car-rental-benefits, .steps, .cta, .contact-info, .location, .thank-you, .privacy-policy, .gdpr, .cookies-policy, .terms-of-use {
    padding: 56px 36px;
    border-radius: 27px;
  }
}

/* FOOTER */
footer {
  background: var(--color-bg-footer);
  color: var(--color-accent);
  width: 100%;
  padding: 30px 0 0 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 24px var(--color-shadow);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-logo img {
  width: 68px;
  height: auto;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--color-vibrant-2);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-vibrant-1);
  text-decoration: underline;
}
.footer-info p {
  color: #8690B1;
  font-size: 0.95rem;
}

/* SPACING BETWEEN CARDS/SECTIONS */
.section, .card, .testimonial-card {
  margin-bottom: 20px;
}
/* Section spacing is already defined per .section */

/* ABOUT/BUSINESS SECTION LISTS */
ul li, ol li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
ul li:before, ol li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-vibrant-2);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 5px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(93deg, var(--color-vibrant-2), var(--color-vibrant-4));
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  padding: 22px 25px 18px 25px;
  box-shadow: 0 -2px 18px var(--color-shadow);
  font-size: 1.07rem;
  animation: cookieBannerSlideIn 0.67s cubic-bezier(.69,-0.48,.21,1.37);
}
@keyframes cookieBannerSlideIn {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner-btn {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  padding: 11px 20px;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: var(--color-vibrant-4);
  color: #fff;
  transform: scale(1.07) translateY(-2px);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10066;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,35,42,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  min-width: 295px;
  max-width: 98vw;
  border-radius: 18px;
  box-shadow: 0 8px 38px var(--color-vibrant-2), 0 2px 8px var(--color-shadow);
  padding: 40px 28px 28px 28px;
  color: #20232A;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalSlideUp 0.5s cubic-bezier(.69,-0.48,.21,1.2);
}
@keyframes modalSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  color: var(--color-vibrant-3);
  font-size: 1.36rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 8px;
}
.cookie-modal-category label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.09rem;
}
.cookie-modal-category input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--color-vibrant-2);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 1.45rem;
  color: var(--color-vibrant-4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--color-vibrant-1);
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 85vw;
    padding: 25px 10px 15px 15px;
  }
  .cookie-modal-category {
    gap: 11px;
  }
}

/* ELEVATED, ENERGETIC EFFECTS */
.section, .card, .feature-grid > div, .testimonial-card {
  box-shadow: 0 2px 16px var(--color-shadow);
  transition: box-shadow 0.22s, transform 0.20s;
}
.section:hover, .card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px var(--color-vibrant-3), 0 3px 10px var(--color-shadow);
  transform: translateY(-6px) scale(1.012);
}

/* TABLET AND SMALL DESKTOP CHANGES */
@media (max-width: 900px) {
  .container, .content-wrapper {
    padding-right: 11px;
    padding-left: 11px;
  }
}

/* MICRO ANIMATIONS */
.cta-btn, .cookie-banner-btn, .card, .testimonial-card, .feature-grid > div, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow 0.25s, transform 0.20s, background 0.21s, color 0.18s;
}

/* DARK BG FOR TESTIMONIAL SECTIONS (BUT LIGHT CARDS/TEXT!) */
.testimonials, .testimonials-preview {
  background: #191f32;
  color: #fff;
  border-radius: 24px;
  padding: 34px 0 30px 0;
}
.testimonials .testimonial-card, .testimonials-preview .testimonial-card {
  background: #fff;
  color: #191f32;
  border: 2px solid var(--color-secondary);
}

/* Z-INDEX LAYERS FOR MENU & BANNERS */
header {
  z-index: 2001;
}
.mobile-menu {
  z-index: 3800;
}
.cookie-banner {
  z-index: 3999;
}
.cookie-modal-overlay {
  z-index: 10066;
}

/* SCROLLBAR STYLES */
::-webkit-scrollbar {
  width: 12px;
  background: #f8fafd;
}
::-webkit-scrollbar-thumb {
  background: var(--color-vibrant-3);
  border-radius: 8px;
}

/* Utility: Hide visually but not from screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* SPECIAL: .content-grid (flex-wrap spacing) */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* FLEX WRAP HANDLING FOR NESTED ELEMENTS */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* End of main CSS */
