/* ==============================================
   バイクDoキノモー — 明るく親しみやすいバイク屋 Theme
   ============================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;
  --yellow: #e6b800;
  --yellow-bright: #FFD600;
  --yellow-dim: #c49e00;
  --yellow-bg: #fffbe6;
  --yellow-glow: rgba(230, 184, 0, 0.08);
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #999;
  --border: #e5e5e0;
  --radius: 8px;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* --- Background texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,0.015) 40px,
      rgba(0,0,0,0.015) 41px
    );
  pointer-events: none;
  z-index: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--yellow);
  margin-top: 8px;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.logo span {
  color: var(--text-primary);
  font-size: 0.85em;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

nav a:hover {
  color: var(--yellow);
}

.nav-tel {
  color: var(--yellow) !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, var(--yellow-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(255,214,0,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
}

.hero-tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--bg-primary);
  text-decoration: none;
  padding: 16px 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-tel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 214, 0, 0.25);
}

.hero-tel-note {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- News --- */
.news-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.news-list li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.news-date {
  color: var(--yellow-dim);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.news-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.news-text a {
  color: var(--yellow);
  text-decoration: none;
}

.news-text a:hover {
  text-decoration: underline;
}

/* --- Hours --- */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.hours-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.hours-card h3 {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.hours-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.calendar-container {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-container iframe {
  display: block;
}

/* --- Reviews / Voice --- */
.reviews-scroll {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px 16px;
  -webkit-overflow-scrolling: touch;
}

.reviews-track {
  display: flex;
  gap: 20px;
  min-width: max-content;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-stars {
  color: #f5a623;
  font-size: 0.9rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.review-summary {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 24px;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--yellow-dim);
  transform: translateY(-2px);
}

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
}

.service-card h3::before {
  content: '//';
  color: var(--yellow);
  margin-right: 8px;
  font-family: 'Bebas Neue', sans-serif;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* --- Used Bikes Banner --- */
.used-banner {
  background: var(--bg-secondary);
  border: 2px solid var(--yellow-dim);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.used-banner h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.used-banner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--bg-primary);
  text-decoration: none;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 214, 0, 0.2);
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  display: flex;
  gap: 12px;
  align-items: baseline;
  cursor: pointer;
  font-size: 0.95rem;
}

.faq-q .badge {
  background: var(--yellow);
  color: var(--bg-primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.faq-a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-a .badge {
  background: var(--bg-card);
  color: var(--yellow);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.faq-a a {
  color: var(--yellow);
  text-decoration: none;
}

/* --- Shop Info --- */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.shop-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-table tr {
  border-bottom: 1px solid var(--border);
}

.shop-table th {
  text-align: left;
  padding: 14px 16px 14px 0;
  color: var(--yellow-dim);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  width: 100px;
}

.shop-table td {
  padding: 14px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.shop-table a {
  color: var(--yellow);
  text-decoration: none;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.access-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--yellow-dim);
  text-decoration: none;
}

/* --- Used Bikes Page --- */
.page-header {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 12px;
}

.bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.bike-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}

.bike-card:hover {
  border-color: var(--yellow-dim);
  transform: translateY(-3px);
}

.bike-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f0f0ee;
}

.bike-card-body {
  padding: 20px;
}

.bike-card-body h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.bike-prices {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.bike-price-item {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bike-price-item strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.bike-price-item.total strong {
  color: var(--text-primary);
}

.bike-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bike-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.no-stock {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.sync-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 40px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.16s; }
.fade-in:nth-child(4) { animation-delay: 0.24s; }
.fade-in:nth-child(5) { animation-delay: 0.32s; }
.fade-in:nth-child(6) { animation-delay: 0.40s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  nav { display: none; }
  nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav-toggle { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero h1 { font-size: 2.8rem; }

  .services-grid { grid-template-columns: 1fr; }
  .bikes-grid { grid-template-columns: 1fr; }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-list li {
    flex-direction: column;
    gap: 4px;
  }

  .used-banner { padding: 32px 20px; }
}
