@charset "UTF-8";

/*========================================
Webike 車両ページ（共通）
========================================*/

.page-bike {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  background: #fff;
  color: #1a1a1a;
}

.bike-content__inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 900px) {
  .bike-content__inner {
    padding: 0 5vw;
  }
}

.bike-content__embed {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 48px 0 80px;
  overflow-x: clip;
}
@media (max-width: 900px) {
  .bike-content__embed {
    padding: 32px 0 64px;
  }
}
@media (max-width: 600px) {
  .bike-content__embed {
    padding: 24px 0 56px;
  }
}

/* Webike プラグイン出力のラッパー */
.page-bike .bike-content__embed #webike-moto-v2,
.page-bike .bike-content__embed #bike-qa {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.page-bike--bike-list .bike-content__embed #webike-moto-v2 {
  margin-inline: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}

.page-bike--bike-list .sub-kv {
  position: relative;
}

.page-bike--bike-list .bike-content {
  position: relative;
}

.page-bike .bike-content__embed img,
.page-bike .bike-content__embed video,
.page-bike .bike-content__embed iframe {
  max-width: 100%;
}

.page-bike .bike-content__embed table {
  max-width: 100%;
}

/*========================================
ページ別の幅調整
========================================*/

.page-bike--bike-detail .bike-content__inner {
  max-width: 1200px;
}

.page-bike--bike-contact .bike-content__inner {
  max-width: 960px;
}

/*========================================
プラグインUIの微調整
========================================*/

.page-bike--bike-list .bike-content__embed #webike-moto-v2 {
  font-size: 14px;
  line-height: 1.6;
}

.page-bike--bike-list .bike-content__embed .wb-form__group label {
  font-size: 13px;
}

@media (max-width: 900px) {
  .page-bike--bike-list .bike-content__embed #webike-moto-v2 .grid {
    gap: 12px;
  }
}

/* Webike 検索フォームのグリッド崩れ対策（PC：ページ内フォームのみ。モーダル内は除外） */
.page-bike--bike-list .bike-content__embed #webike-moto-v2 > form#wb-js-filter > .grid,
.page-bike--bike-list .bike-content__embed #webike-moto-v2 #wb-js-sort > .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.page-bike--bike-list .bike-content__embed #webike-moto-v2 > form#wb-js-filter .grid .grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1279px) {
  .page-bike--bike-list .bike-content__embed #webike-moto-v2 > form#wb-js-filter > .grid,
  .page-bike--bike-list .bike-content__embed #webike-moto-v2 #wb-js-sort > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .page-bike--bike-list .bike-content__embed #webike-moto-v2 > form#wb-js-filter > .grid,
  .page-bike--bike-list .bike-content__embed #webike-moto-v2 #wb-js-sort > .grid {
    grid-template-columns: 1fr;
  }
}

/* 絞り込みモーダル — 全画面・ヘッダー/sub-kv 上 */
body.scroll-hide .page-bike--bike-list .bike-content {
  position: relative;
  z-index: 1200;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 {
  position: relative;
  z-index: 1200;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup__content {
  position: relative !important;
  top: auto !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  background: #fff;
}

/* プラグイン既定の absolute top-0 left-0 を無効化（body/footer の親） */
body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup__content > div {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* ネスト form 崩れ対策：form は縦積みに参加させない */
body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup form#wb-js-filter {
  display: contents !important;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__body {
  order: 1 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  float: none !important;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__body > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-filter {
  display: block !important;
  width: 100% !important;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .grid {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__footer {
  order: 2 !important;
  flex: 0 0 auto !important;
  display: block !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box;
  text-align: right !important;
  float: none !important;
  z-index: 2;
}

/* PC：フォームを縦横中央（はみ出し時は縦スクロール） */
@media (min-width: 900px) {
  body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__body {
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding-inline: clamp(16px, 4vw, 40px) !important;
  }

  body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__body::before,
  body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__body::after {
    content: '';
    flex: 1 0 auto;
    width: 100%;
  }

  body.scroll-hide .page-bike--bike-list #webike-moto-v2 .wb-popup .wb-popup__footer {
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding-inline: clamp(16px, 4vw, 40px) !important;
  }
}

.page-bike--bike-list .bike-content__embed #webike-moto-v2 .wb-form__group {
  min-width: 0;
}

.page-bike--bike-detail .bike-content__embed .wb-bike__title {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.4;
  word-break: break-word;
}

.page-bike--bike-contact .bike-content__embed .wb__title {
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.4;
}

.page-bike--bike-contact .bike-content__embed .wb-form input[type="text"],
.page-bike--bike-contact .bike-content__embed .wb-form input[type="email"],
.page-bike--bike-contact .bike-content__embed .wb-form input[type="tel"],
.page-bike--bike-contact .bike-content__embed .wb-form textarea,
.page-bike--bike-contact .bike-content__embed .wb-form select {
  max-width: 100%;
}

/*========================================
車両詳細：関連在庫・回遊導線
========================================*/

.bike-detail-extras {
  padding: 8px 0 80px;
}
@media (max-width: 900px) {
  .bike-detail-extras {
    padding-bottom: 64px;
  }
}

.bike-detail-extras .bike-section-title {
  text-align: left;
}

.bike-detail-related .bike-section-title {
  margin-bottom: 0;
}

.bike-section-title__ja {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #1a1a1a;
}

.bike-section-title__en {
  margin: 0;
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #1a1a1a;
}

.bike-section-title__accent {
  color: #e70012;
}

.bike-section-title__line {
  width: 100%;
  height: 1px;
  margin: 20px 0 16px;
  background: #1a1a1a;
}

.bike-section-title__lead {
  margin: 0;
  font-size: 14px;
  color: #666;
  letter-spacing: 0.04em;
}

.bike-detail-related {
  position: relative;
  margin-bottom: 72px;
}
@media (max-width: 900px) {
  .bike-detail-related {
    margin-bottom: 56px;
  }
}

.bike-detail-related__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.bike-detail-related__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.bike-detail-related__nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  margin-bottom: 5px;
}

.bike-detail-related__nav--prev span {
  transform: translateX(-1px);
}

.bike-detail-related__nav--next span {
  transform: translateX(1px);
}

.bike-detail-related__nav:hover {
  border-color: #e70012;
  color: #e70012;
}

.bike-detail-related__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.bike-detail-related__track::-webkit-scrollbar {
  height: 6px;
}

.bike-detail-related__track::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 999px;
}

.bike-detail-related__list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bike-detail-related__item {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .bike-detail-related__item {
    flex-basis: 280px;
  }
}

.bike-detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f7f7f7;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bike-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.bike-detail-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.bike-detail-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bike-detail-card__type {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  background: #3eb196;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.bike-detail-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.bike-detail-card__maker {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.bike-detail-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.bike-detail-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 0;
}

.bike-detail-card__price-label {
  font-size: 11px;
  color: #888;
}

.bike-detail-card__price-value {
  font-size: 16px;
  font-weight: 700;
  color: #e70012;
}

.bike-detail-card__meta {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.bike-detail-card__meta-sep {
  margin: 0 4px;
}

.bike-detail-prompts__title {
  margin: 0 0 20px;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  line-height: 1.4;
}

.bike-detail-prompts .bike-section-title {
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .bike-detail-prompts .bike-section-title {
    margin-bottom: 24px;
  }
}

.bike-detail-prompts__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e5e5;
}

.bike-detail-prompts__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 100%;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.bike-detail-prompts__link-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bike-detail-prompts__link-arrow {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: #e70012;
}

.bike-detail-prompts__link:hover {
  color: #e70012;
  background-color: rgba(231, 0, 18, 0.05);
}

.bike-detail-prompts__link-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.bike-detail-prompts__link-note {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
