/* ===== CSS 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  background: #fff;
}
body {
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  font-weight: 400;
  color: #222;
  background: #fff;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
a:focus {
  outline: 2px solid #23324D;
  outline-offset: 2px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 8px 12px;
  border-bottom: 1px solid #ededed;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

/* ===== VARIABLES ===== */
:root {
  --color-primary: #23324D;
  --color-secondary: #A2B4C8;
  --color-accent: #F5F6F8;
  --color-white: #fff;
  --color-black: #111;
  --color-gray: #888;
  --color-dark-gray: #222;
  --color-light-gray: #f0f0f0;
  --color-border: #e5e5e8;
  --radius-small: 8px;
  --radius-med: 14px;
  --shadow-low: 0 2px 8px rgba(20,34,51,0.07);
  --shadow: 0 6px 18px rgba(34,48,77,0.10), 0 1.5px 3px rgba(0,0,0,0.02);
  --font-display: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  --font-body: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
}

/* ===== BASIC STRUCTURE ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  margin-bottom: 14px;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-dark-gray);
  margin-bottom: 8px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-weight: 500;
  color: var(--color-dark-gray);
}
p, li, address {
  font-size: 1rem;
  color: var(--color-black);
  line-height: 1.65;
}
strong {
  font-weight: 600;
}
small {
  font-size: 0.88rem;
  color: var(--color-gray);
}

ul li, ol li {
  margin-bottom: 8px;
}

.text-section {
  margin-bottom: 16px;
}

.star-rating {
  margin-top: 5px;
  letter-spacing: 0.18em;
  color: #111;
  font-size: 1.18rem;
}

/* ===== HEADER & NAVIGATION ========= */
header {
  box-shadow: var(--shadow-low);
  background: var(--color-white);
  width: 100%;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 20px;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: var(--radius-small);
  color: var(--color-dark-gray);
  position: relative;
  transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

.cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--color-white)!important;
  background: var(--color-primary);
  border-radius: var(--radius-med);
  padding: 12px 28px;
  transition: background 0.22s, box-shadow 0.2s, color 0.2s;
  box-shadow: var(--shadow-low);
  margin-left: 20px;
  display: inline-block;
  border: none;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #151e2b;
  color: var(--color-accent);
  box-shadow: 0 3px 16px 4px rgba(34,50,77,0.13);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-white);
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-left: 24px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 100;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: #151e2b;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,34,51,0.96);
  color: var(--color-white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.40s cubic-bezier(.72,-0.02,.46,1.23);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 10px 0;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 28px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-accent);
  border-radius: var(--radius-small);
  padding: 14px 8px 14px 0;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(35,50,77,0.15);
  color: #fff;
  border-left: 3px solid var(--color-secondary);
}

/* ===== HERO ========= */
.hero {
  background: linear-gradient(108deg, #fff 65%, #e5e8ec 100%);
  min-height: 330px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-low);
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.hero .content-wrapper {
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-gray);
  margin-bottom: 8px;
}

/* ===== BADGES & CATEGORIES ===== */
.badge {
  display: inline-block;
  padding: 6px 18px;
  margin: 0 7px 8px 0;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(34,50,77,0.05);
  font-size: 0.99rem;
  border: 1px solid var(--color-secondary);
  transition: background 0.18s, color 0.16s, border 0.16s;
}
.badge:hover, .badge:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-primary);
}

.car-categories, .car-category-tabs, .plan-type-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

/* ===== CARD CONTAINERS & FLEX STRUCTURE ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-med);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  flex: 1 1 280px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 32px 3px rgba(35,50,77,0.14);
  background: #f9fafd;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 240px;
}

.testimonial-card {
  background: var(--color-accent);
  border-radius: var(--radius-med);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: 620;
  font-size: 1.06rem;
}
.testimonial-card .star-rating {
  color: #FFA800;
  font-size: 1.28rem;
  margin-top: 3px;
  letter-spacing: 0.12em;
}
.testimonial-card img {
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.feature-grid, .feature-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.feature-grid > div, .feature-item {
  flex: 1 1 220px;
  min-width: 170px;
  background: #fff;
  border-radius: var(--radius-med);
  box-shadow: var(--shadow-low);
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div img {
  margin-bottom: 10px;
  width: 36px;
  height: 36px;
}

.reservation-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-med);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 24px;
}
.reservation-banner h2 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 2rem;
  font-weight: 600;
}

/* ===== FOR TABLES ===== */
table {
  width: 100%;
  min-width: 320px;
  background: #fff;
  margin-bottom: 14px;
  border-radius: var(--radius-small);
  box-shadow: 0 1.5px 7px rgba(35,50,77,0.03);
  overflow-x: auto;
}
thead tr {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}
th, td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 1rem;
}
tr:last-child td {
  border-bottom: none;
}

/* ===== FOOTER ===== */
footer {
  background: #171d2b;
  color: #f4f4f6;
  box-shadow: 0 -2px 8px 0 rgba(17,19,30,0.07);
  padding: 32px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 20px;
}
footer nav {
  gap: 18px;
}
footer nav a {
  color: #e8ecf1;
  font-size: 1rem;
  border-radius: var(--radius-small);
  padding: 5px 12px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: #272f46;
  color: #fff;
}
footer address {
  font-style: normal;
  font-size: 0.96rem;
  color: #b6bfce;
  line-height: 1.6;
  margin-bottom: 4px;
}
footer small {
  color: #828c9d;
}

/* ===== SECTION + CONTENT SPACING ===== */
section {
  margin-bottom: 60px;
}
.card-container, .feature-grid, .content-grid {
  gap: 24px;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper {
  gap: 24px;
}

/* ===== INTERACTIONS & MICRO-ANIMATIONS ===== */
.cta-btn, .badge, nav a, .feature-grid > div, .mobile-menu, .cookie-banner, .cookie-modal, .card {
  transition: box-shadow 0.22s, background 0.19s, color 0.19s, border 0.18s, transform 0.16s;
}
.card:active {
  transform: translateY(2px) scale(0.98);
}

/* ===== FAQ & TEXT LINKS ===== */
a[href], .text-section a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--color-secondary);
}
.text-section ul {
  padding-left: 18px;
}

/* ===== RESPONSIVE LAYOUT (Mobile First) ===== */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .car-categories {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 180px;
    margin-bottom: 16px;
  }
  .reservation-banner {
    padding: 32px 10px;
  }
  .section, section {
    padding: 28px 7px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 7px;
    font-size: 1.02rem;
    padding: 9px 19px;
  }
  .container {
    padding: 0 5px;
  }
  .hero {
    min-height: 210px;
    padding: 36px 0 20px 0;
  }
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .badge {
    padding: 6px 10px;
    font-size: 0.94rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 18px 4px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 17px 0 13px 0;
  }
  h1 {
    font-size: 1.29rem;
    margin-bottom: 12px;
  }
  .container {
    padding: 0 2px;
  }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 10000;
  background: #222;
  color: #fff;
  box-shadow: 0 -4px 24px 2px rgba(35,50,77,0.09);
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(55px);
  transition: opacity 0.26s cubic-bezier(.67,-0.22,.65,1.33), transform 0.28s cubic-bezier(.67,-0.15,.75,1.34);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner .cookie-banner-message {
  flex: 1 1 auto;
  font-size: 1.02rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  border-radius: var(--radius-small);
  font-size: 1rem;
  padding: 9px 17px;
  font-weight: 700;
  border: none;
  outline: none;
  background: var(--color-primary);
  color: #fff;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn.settings {
  background: var(--color-gray);
  color: #fff;
  font-weight: 500;
}
.cookie-btn.reject {
  background: #fff;
  color: #222;
  border: 1px solid #aaa;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-light-gray);
  color: #222;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    padding: 14px 6px 13px 6px;
    gap: 8px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
  }
}

/* ===== COOKIE MODAL (PREFERENCES) ===== */
.cookie-modal-overlay {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,50,77,0.55);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-med);
  box-shadow: var(--shadow);
  padding: 40px 28px 30px 28px;
  color: #111;
  min-width: 330px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1rem;
  animation: cookieModalIn 0.36s cubic-bezier(.56,-0.12,.45,1.17);
  position: relative;
}
@keyframes cookieModalIn {
  from {opacity:0; transform: scale(0.88)translateY(30px);}
  to{opacity:1;transform:scale(1)translateY(0);}
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  background: var(--color-accent);
  border-radius: var(--radius-small);
  padding: 13px 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-dark-gray);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.cookie-category input[type="checkbox"]:not(:checked):disabled + label {
  color: #aaa;
  text-decoration: line-through;
  opacity: 0.85;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  color: var(--color-gray);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: var(--color-primary);
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 85vw;
    max-width: 99vw;
    padding: 18px 5px 19px 8px;
  }
}

/* ===== MISC & UTILITIES ===== */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* General micro-interactions */
.card, .feature-grid > div, .testimonial-card {
  will-change: box-shadow, transform;
}

::-webkit-scrollbar {
  width: 11px;
  background: #e5e8ec;
}
::-webkit-scrollbar-thumb {
  background: #a7aab3;
  border-radius: 8px;
}

/* FORMS DEFAULT STYLE (future-proof) */
input, textarea, select {
  border-radius: var(--radius-small);
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  font-size: 1rem;
  margin-bottom: 13px;
  background: #fafdff;
  color: #111;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: 1.5px solid var(--color-secondary);
}

/* ===== SPECIAL CLASSES (for index/preview) ===== */
.car-list ul {
  margin-top: 8px;
  margin-bottom: 18px;
  padding-left: 18px;
}
.car-list li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.65;
}
.plan-type-switcher {
  margin-bottom: 13px;
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  main, section, .container, .content-wrapper { background: #fff !important; }
}
