/* ============================================================
   オートランド熊本 共通CSS
   Design: Dark Motorsport / Modern / Stylish
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #111111;
  --bg-tertiary:   #181818;
  --bg-card:       #1C1C1C;
  --bg-elevated:   #222222;

  --accent-red:    #E8001D;
  --accent-orange: #FF5E00;
  --accent-yellow: #F5C400;
  --accent:        #E8001D;   /* primary accent = red */

  --text-primary:  #FFFFFF;
  --text-secondary:#AAAAAA;
  --text-muted:    #666666;

  --border-color:  #2A2A2A;
  --border-light:  #333333;

  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(232,0,29,0.3);

  --chrome-bg: linear-gradient(135deg, #050505 0%, #101010 56%, #161616 100%);
  --chrome-border: #242424;
  --chrome-text: #FFFFFF;
  --chrome-text-secondary: #D4D4D4;
  --chrome-text-muted: #8C8C8C;

  --transition: 0.25s ease;
  --header-h: 76px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-jp);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Typography ---------- */
.font-en   { font-family: var(--font-en); }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}
.section-title span { color: var(--accent); }
.section-title--jp {
  font-family: var(--font-jp);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
}
.section-desc {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Divider ---------- */
.divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}
.divider--left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--lg { padding: 18px 48px; font-size: 15px; }
.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--icon { padding: 14px 16px; }

/* ---------- Badge / Status ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--open    { background: rgba(0,200,80,0.15); color: #00C850; border: 1px solid rgba(0,200,80,0.3); }
.badge--few     { background: rgba(245,196,0,0.15); color: var(--accent-yellow); border: 1px solid rgba(245,196,0,0.3); }
.badge--closed  { background: rgba(150,150,150,0.15); color: #888; border: 1px solid rgba(150,150,150,0.3); }
.badge--new     { background: rgba(232,0,29,0.15); color: var(--accent); border: 1px solid rgba(232,0,29,0.3); }
.badge--dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card__img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
}
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__img-wrap img { transform: scale(1.05); }
.card__body { padding: 20px; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--chrome-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--chrome-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--chrome-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-image {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(360px, 62vw);
  object-fit: contain;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-text);
}
.logo-text__jp {
  font-size: 10px;
  color: var(--chrome-text-muted);
  letter-spacing: 0.05em;
}

/* ---------- Nav ---------- */
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--chrome-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--chrome-text); }
.nav-cta {
  margin-left: 12px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-cta:hover { background: #c0001a; box-shadow: var(--shadow-glow); }

/* ---------- Hamburger (SP) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--chrome-text);
  transition: all var(--transition);
  border-radius: 1px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--chrome-bg);
  backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 18px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--chrome-border);
  color: var(--chrome-text);
  border-radius: 0;
}
.mobile-menu .nav-cta {
  margin: 16px 0 0;
  text-align: center;
  padding: 16px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-border);
  padding: 64px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-image {
  height: 44px;
  max-width: min(340px, 100%);
}
.footer-brand .logo-text__en { font-size: 16px; }
.footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--chrome-text-secondary);
  line-height: 1.8;
}
.footer-heading {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--chrome-text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--chrome-text); }
.footer-bottom {
  border-top: 1px solid var(--chrome-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--chrome-text-muted); }
.deploy-version {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  line-height: 1;
  color: var(--chrome-text-muted);
  opacity: 0.78;
  vertical-align: baseline;
}

/* ---------- Fixed Bottom CTA (SP) ---------- */
.fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  gap: 10px;
}
.fixed-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.fixed-cta__btn--apply {
  background: var(--accent);
  color: #fff;
}
.fixed-cta__btn--tel {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,0,29,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-hero__title {
  font-family: var(--font-en);
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-hero__subtitle {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- Confirm Row (申込確認・お問い合わせ詳細) ---------- */
.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  gap: 16px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label { color: var(--text-muted); min-width: 120px; flex-shrink: 0; }
.confirm-value { font-weight: 500; word-break: break-all; }

/* ---------- justify-content utilities ---------- */
.justify-end    { justify-content: flex-end; }
.justify-center { justify-content: center; }

/* ---------- text utilities ---------- */
.nowrap { white-space: nowrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb__sep { color: var(--border-light); }

/* ---------- Form ---------- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-label .required {
  font-size: 10px;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 400;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input[type="date"] {
  position: relative;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px 18px;
  color-scheme: dark;
}
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,0,29,0.1);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--accent);
}
.form-error {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 12px;
}
.form-select { padding-right: 36px; cursor: pointer; }

/* Checkbox / Radio */
.check-label, .radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.check-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Form Step Indicator */
.form-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.form-step {
  display: flex;
  align-items: center;
}
.form-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.form-step__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
}
.form-step__connector {
  width: 60px;
  height: 1px;
  background: var(--border-light);
}
.form-step.active .form-step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.form-step.done .form-step__num {
  border-color: #00C850;
  background: #00C850;
  color: #fff;
}
.form-step.active .form-step__label,
.form-step.done .form-step__label { color: var(--text-primary); }

/* ---------- Table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
}
.data-table tr:hover td { background: var(--bg-elevated); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}
.pagination button:hover, .pagination button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Toast / Alert ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}
.toast--success { border-left: 4px solid #00C850; }
.toast--error   { border-left: 4px solid var(--accent); }
@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ---------- Loading ---------- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Grid Systems ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Utilities ---------- */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }

  .logo-image {
    height: 38px;
    max-width: min(280px, 68vw);
  }
  .header-nav { display: none; }
  .hamburger  { display: flex; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .fixed-cta { display: flex; }
  body { padding-bottom: 74px; }

  .form-steps { gap: 0; }
  .form-step__connector { width: 32px; }

  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 24px; }
  .btn--lg { padding: 16px 32px; font-size: 14px; }
}
