/* ===== リセット ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #222;
  background: #fff;
}

/* ===== ナビゲーション ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 100;
  backdrop-filter: blur(5px);
}
.navbar .logo {
  top: 10px;           /* 上からの距離 */
  left: 10px;          /* 左からの距離 */
  height: 50px;        /* 高さを固定して縦横比を維持 */

  z-index: 1000;     /* 余計なスペースを防ぐ */
}
.navbar ul {
  display: flex;
  gap: 30px;
}
.navbar ul li {
  list-style: none;
}
.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}
.navbar ul li a:hover {
  color: #e60012;
}

/* ハンバーガーボタンのスタイル */
.nav-toggle {
  display: none;       /* デフォルトは非表示 */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;        /* ナビより前面 */
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* スマホ向けレスポンシブ */
@media (max-width: 768px) {

  .nav-toggle {
    display: flex;      /* スマホで表示 */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1101;
  }
  .logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    height: 45px;
  }
  .navbar ul {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    display: none;      /* デフォルト非表示 */
    gap: 0;
  }
  .navbar ul.active {
    display: flex;      /* ボタン押したら表示 */
  }
  .navbar ul li {
    padding: 15px;
    text-align: center;
  }
}






/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面全体にフィットさせる */
  pointer-events: none; 
  position: absolute;  /* 追加することで親にぴったり貼り付く */
  top: 0;
  left: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;           /* 幅を指定 */
  max-width: 1200px; 
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(16px, 6vw, 48px);
  line-height: 1.2;
  text-align: center;
  color: white;
  white-space: nowrap; 
  margin-bottom: 10px;
  color: black;
  -webkit-text-fill-color: white; /* （順序に関係なく）色を上書きする */
}
.hero-content p {
  font-size: clamp(14px, 4vw, 20px); /* 同様に調整 */
  text-align: center;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #e60012;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.btn:hover {
  background: #c50010;
}

/* ===== セクション共通 ===== */
section {
  padding: 100px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}
h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}




/* ===== 店舗紹介 ===== */
#about {
  text-align: center;
  padding: 100px 20px;
  background: #fdfcf4;
}

#about h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 20px;
}

#about p {
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.8;
  color: #444;
}

/* ===== スライダー ===== */
.about-slider {
  position: relative;
  width: 100%;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background: #000;
  aspect-ratio: 16/9;
  min-height: 280px;
}

.about-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ← これがポイント！ */
  display: block;
  border-radius: 10px;
}

/* スライド */
.about-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 0; /* ← 背景扱い */
}

.about-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1; /* ← 表示中の画像を上に */
}

/* ドット部分を上に固定する */
.dots {
  position: absolute;
  bottom: 10px;     /* スライダー下部に固定（中央に重ねる） */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;       /* ← スライドより前面に */
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}




/* ===== サービスメニュービデオ ===== */

.fade-in {
  overflow: hidden;
}

.service-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* 背景動画として最背面に */
}

.service-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* スモーク */
  z-index: 2; /* 動画の上に配置 */
}

/* ===== サービス全体 ===== */
#services {
  position: relative; /* 子要素のabsolute基準になる */
  overflow: hidden;
  color: #fff;
}

/* コンテンツ（文字やグリッド）を前面に出す */
#services .container {
  position: relative;
  z-index: 3; /* スモークより前に */
}
.service-item h3 {
 color: #e63600;
 font-weight: 700;
 font-size: 1.7rem;
}

.service-item:hover {
  transform: scale(1.2);
}

.service-item {
  text-align: center;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 10px;
  transition: transform 0.3s;
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  background: unset;
}






/* ===== INSTAGRAM セクション全体 ===== */
  #instagram {
    background: #fdfcf4;
    padding: 80px 20px;
    text-align: center;
  }

  #instagram .container {
    max-width: 1000px;
    margin: 0 auto;
  }

  /* タイトル */
  .insta-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: 2px;
  }

  /* フォローボタン */
  .sns-container {
    margin-bottom: 30px;
  }

  .insta-btn {
    display: inline-block;
    background: linear-gradient(45deg, #e60012, #ff7b00);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.3s;
  }

  .insta-btn:hover {
    background: linear-gradient(45deg, #c50010, #e65a00);
    transform: scale(1.05);
  }

  /* ===== 投稿画像グリッド ===== */
  #insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
    gap: 20px;
    justify-items: center;
    align-items: center;
  }

  .insta-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
  }

  .insta-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .insta-item:hover .insta-photo {
    transform: scale(1.08);
    opacity: 0.9;
  }

  /* ===== スマホ対応 ===== */

  @media (max-width: 1024px) {
  #insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  }

/* スマホ（2列×3行 or 1列） */
  @media (max-width: 600px) {
  #insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  }

  @media (max-width: 768px) {
    #instagram {
      padding: 60px 15px;
    }
    .insta-title {
      font-size: 1.6rem;
    }
    .insta-btn {
      padding: 8px 20px;
      font-size: 0.9rem;
    }

  }


  
.contact-section{
  max-width:900px;
  margin:40px auto;
  padding:28px;
  border-radius:12px;
  box-shadow:0 6px 24px rgba(0,0,0,0.08);
  background:linear-gradient(180deg,#fff,#fbfbfb);
  text-align:center;
}

.contact-section h2{
  font-size:1.6rem;
  margin-bottom:12px;
}

.contact-section p{
  font-size:1rem;
  color:#333;
  margin-bottom:18px;
  line-height:1.5;
}

.line-btn{
  display:inline-block;
  text-decoration:none;
  padding:12px 20px;
  border-radius:8px;
  background:#00c300;
  color:#fff;
  font-weight:700;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:transform .12s ease, box-shadow .12s ease;
}

.line-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

.contact-qr{
  margin-top:20px;
}

.contact-qr img{
  width:140px;
  height:140px;
  object-fit:contain;
  border-radius:8px;
  border:1px solid #eee;
}

.contact-qr p{
  margin-top:8px;
  font-size:0.9rem;
  color:#555;
}

/* レスポンシブ */
@media(max-width:600px){
  .contact-section{padding:18px;}
  .contact-qr img{width:120px; height:120px;}
}



/* マップ＋情報の並び */
/* ===== アクセス ===== */
#access {
  background: #fdfcf4;
  padding: 100px 20px;
}

#access h2 {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
}

/* マップ＋情報の横並び */
.access-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 左側マップ */
.map {
  flex: 1 1 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* 右側テキストカード */
.access-info.card {
  flex: 1 1 300px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .access-content {
    flex-direction: column;
    align-items: center;
  }
  .map iframe {
    height: 300px;
  }
  .access-info.card {
    width: 100%;
    max-width: 450px;
  }
}

.access-info p1{
  font-weight: bold;
  font-size: 20px;
}

.access-info p2 {
  display: block;       /* インライン要素のままだとtext-align効かないため */
  text-align: left;
  font-size: 15px;
}

.access-info p3{
  font-size: 15px;
  text-align: left;
}

/* ブランドロゴ */
.brand-logos {
  margin-top: 20px;
  display: flex;
  gap: 20px;           /* ロゴ間の余白 */
  flex-wrap: wrap;      /* 画面狭い場合は折り返し */
  justify-content: center;
  align-items: center;
}

.brand-logos img {
  width: 120px;        /* 幅を統一 */
  height: auto;         /* 高さは自動で比率維持 */
  object-fit: contain;  /* 縦横比を崩さず表示 */
}


/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: 70px;
    padding: 15px;
  }
  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
}



/* 展示車についてのパート */
.exhibit-section {
  text-align: center;
  padding: 100px 20px;
  background: #fdfcf462;
}
.exhibit-section h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}
.exhibit-section h2 span {
  color: #e60012;
}
.exhibit-section .note {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 40px;
}
.slider-container {
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.slider-track {
  margin-top: 30px;
  height: auto;
  display: flex;
  gap: 25px;
  transition: transform 1s ease;
}
.car-card {
  display: flex;             /* 追加 */
  flex-direction: column;    /* 縦方向 */
  justify-content: flex-start; /*flex: 0 0 calc((100% - 50px) / 3); /* 3枚表示 */

  border: 2px solid #f3a396;
  border-radius: 15px;
  background: #fff;
  text-decoration: none;
  color: #333;
  padding: 25px 10px;
  transition: transform 0.3s;
  
}
.car-card:hover {
  transform: translateY(-25px);
}
.car-card img {
  width: 100%;
  height: 180px;        /* 高さ固定 */
  object-fit: cover;     /* トリミングして見た目を揃える */
  height: 30px;
  object-fit: contain;
}
.car-card h3 {
  color: #e55a4e;
  font-size: 1.3rem;
  margin-top: 10px;
  margin-top: auto; /* ←追加 */
}
.car-card .model {
  font-weight: bold;
  color: #555;
  margin-top: 3px;
}
.car-card .color {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 5px;
}



/* === スライダー全体 === */
.slider-container {
  overflow: hidden;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.slider-track {
  display: flex;
  gap: 25px;
  transition: transform 0.8s ease;
  will-change: transform;
}

/* === ナビゲーションボタン === */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 2rem;
  color: #e60012;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s;
  z-index: 2;
}
.slide-btn:hover {
  background: #e60012;
  color: #fff;
}
.slide-btn.prev { left: -20px; }
.slide-btn.next { right: -20px; }

/* === スマホ対応 === */
@media (max-width: 768px) {
  .slide-btn.prev { left: 5px; }
  .slide-btn.next { right: 5px; }
}

/* ===== 展示車スライダー ===== */
.exhibit-section {
  text-align: center;
  padding: 100px 20px;
  background: #fffdf5;
}

.exhibit-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.exhibit-section .note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 30px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  transition: opacity 1s ease;
}

.car-card {
  flex: 0 0 33.33%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  border: 1px solid #f0c8b0;
  border-radius: 10px;
  margin: 0 10px;
  background: #fff;
  transition: transform 0.5s ease;
  opacity: 1; /* フェードは常に表示 */
}

.car-card.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.car-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.car-card h3 {
  color: #e65a00;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}
.slide-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }


