html {
  scroll-behavior: smooth;
}

#menteplan {
  scroll-margin-top: 100px;
}

/* 上部の共通ページヘッダー類を非表示 */
body.single-neo_used_car .page-header,
body.single-neo_used_car .entry-header,
body.single-neo_used_car .archive-header,
body.single-neo_used_car .post-header,
body.single-neo_used_car .c-page-header,
body.single-neo_used_car .p-page-header,
body.single-neo_used_car .l-page-header,
body.single-neo_used_car .breadcrumb,
body.single-neo_used_car .breadcrumbs,
body.single-neo_used_car .breadcrumb-area,
body.single-neo_used_car .topicpath,
body.single-neo_used_car .pan,
body.single-neo_used_car .page-title,
body.single-neo_used_car .single-hero {
  display: none !important;
}

/* 全体背景 */
body.single-neo_used_car,
body.single-neo_used_car .site,
body.single-neo_used_car .site-content,
body.single-neo_used_car .content,
body.single-neo_used_car main,
body.single-neo_used_car .neo-used-car-detail-page,
body.single-neo_used_car .neo-detail-intro,
body.single-neo_used_car .neo-detail-main,
body.single-neo_used_car .neo-detail-gallery-area,
body.single-neo_used_car .neo-detail-side-area,
body.single-neo_used_car .neo-detail-buttons {
  background: #fff !important;
}

body.single-neo_used_car .neo-used-car-detail-page {
  padding-bottom: 0;
}

/* 余白調整 */
body.single-neo_used_car .neo-detail-intro {
  margin-top: 32px;
  padding: 0px;
}

body.single-neo_used_car .neo-detail-head,
body.single-neo_used_car .neo-detail-main,
body.single-neo_used_car .neo-detail-spec,
body.single-neo_used_car .neo-detail-buttons {
  margin-top: 10px;
}

/* タイトル */
body.single-neo_used_car .neo-detail-title {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
}

/* 追加した上部文章ブロック */
body.single-neo_used_car .neo-detail-intro__lead {
  margin: -20px 0 18px;
  color: #f08300;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
  text-align: center;
}

body.single-neo_used_car .neo-detail-intro__highlight {
  padding: 0;
  background: transparent;
}

body.single-neo_used_car .neo-detail-intro__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

body.single-neo_used_car .neo-detail-intro__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  background: #e30014;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}

body.single-neo_used_car .neo-detail-intro__text {
  color: #e30014;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

body.single-neo_used_car .neo-detail-intro__note {
  margin: 14px 0 0;
  color: #222;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
  text-align: center;
}

body.single-neo_used_car .neo-detail-intro__stock {
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 16px 70px;
  border: 2px solid #e30014;
  background: #fff;
  color: #e30014;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

/* メイン */
body.single-neo_used_car .neo-detail-main {
  padding: 18px 0 24px;
}

body.single-neo_used_car .neo-detail-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 405px;
  gap: 42px;
  align-items: start;
}

body.single-neo_used_car .neo-detail-gallery-area,
body.single-neo_used_car .neo-detail-gallery,
body.single-neo_used_car .neo-detail-side-area {
  min-width: 0;
}

body.single-neo_used_car .neo-detail-side-area {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* メイン画像 */
body.single-neo_used_car .neo-detail-gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
  touch-action: pan-y;
}

body.single-neo_used_car .neo-detail-gallery__main img,
body.single-neo_used_car .neo-detail-gallery__main > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.single-neo_used_car .neo-detail-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

body.single-neo_used_car .neo-detail-gallery__arrow--prev {
  left: 18px;
}

body.single-neo_used_car .neo-detail-gallery__arrow--next {
  right: 18px;
}

/* サムネイル */
body.single-neo_used_car .neo-detail-gallery__thumbs-wrap {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

body.single-neo_used_car .neo-detail-gallery__thumbs-viewport {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

body.single-neo_used_car .neo-detail-gallery__thumbs-track {
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease;
  will-change: transform;
}

body.single-neo_used_car .neo-detail-gallery__thumb {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 0;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

body.single-neo_used_car .neo-detail-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.single-neo_used_car .neo-detail-gallery__thumb.is-active {
  border-color: #f57c00;
}

body.single-neo_used_car .neo-detail-gallery__thumb.is-dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

body.single-neo_used_car .neo-detail-gallery__thumb-nav {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

body.single-neo_used_car .neo-detail-gallery__thumb-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* ギャラリー下の赤帯 */
body.single-neo_used_car .neo-detail-gallery-notice {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  border: 2px solid #e60012;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1.4;
}

body.single-neo_used_car .neo-detail-gallery-notice__label {
  background: #e60012;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}

body.single-neo_used_car .neo-detail-gallery-notice__text {
  padding: 10px 14px;
  font-size: 13px;
  color: #e60012;
}

/* 注意書き */
body.single-neo_used_car .neo-detail-gallery-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #000;
}

/* 右カラム */
body.single-neo_used_car .neo-detail-price-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.single-neo_used_car .neo-detail-price-box__title {
  margin: 0;
  background: #f57c00;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 4px;
}

body.single-neo_used_car .neo-price-plan {
  position: relative;
  background: transparent;
  padding: 8px 0 18px;
  text-align: center;
}

body.single-neo_used_car .neo-price-plan + .neo-price-plan {
  border-top: 1px dashed #bdbdbd;
  padding-top: 20px;
}

body.single-neo_used_car .neo-price-plan h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 165px;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 0 18px;
  border: 2px solid #f57c00;
  border-radius: 999px;
  background: #fff;
  color: #f57c00;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

body.single-neo_used_car .neo-price-plan__main {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.2;
  color: #111;
}

body.single-neo_used_car .neo-price-plan__label {
  font-size: 18px;
  font-weight: 700;
}

body.single-neo_used_car .neo-price-plan__main strong {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

body.single-neo_used_car .neo-price-plan__suffix {
  font-size: 22px;
  font-weight: 700;
}

body.single-neo_used_car .neo-price-plan__tax {
  font-size: 14px;
  font-weight: 700;
}

body.single-neo_used_car .neo-price-plan__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  font-weight: 700;
}

/* リース内容 */
body.single-neo_used_car .neo-detail-lease-items {
  background: #FFFCC6;
  padding: 18px 20px 22px;
  text-align: center;
}

body.single-neo_used_car .neo-detail-lease-items h3 {
  margin: 0 0 12px;
  text-align: center;
  color: #f57c00;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

body.single-neo_used_car .neo-detail-lease-items ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
}

body.single-neo_used_car .neo-detail-lease-items li {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
  color: #111;
}

body.single-neo_used_car .neo-detail-lease-items li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-size: 10px;
  line-height: 1.8;
}

/* スペック */
body.single-neo_used_car .neo-detail-spec {
  background: #fff !important;
  padding: 0;
}

body.single-neo_used_car .neo-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f3f3f3;
  padding: 6px;
}

body.single-neo_used_car .neo-spec-item {
  background: #fff;
  min-height: 68px;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

body.single-neo_used_car .neo-spec-item dt {
  margin: 0 0 4px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  color: #444;
}

body.single-neo_used_car .neo-spec-item dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  color: #111;
}

/* ボタン */
body.single-neo_used_car .neo-detail-buttons {
  padding: 8px 0 0;
  display: flex;
  justify-content: center;
}

body.single-neo_used_car .neo-detail-buttons__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

body.single-neo_used_car .neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: none;
}

body.single-neo_used_car .neo-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

body.single-neo_used_car .neo-btn--red {
  background: #ff0017;
}

body.single-neo_used_car .neo-btn--orange {
  background: #f57c00;
}

body.single-neo_used_car .neo-btn--small {
  display: inline-flex;
  min-width: 320px;
  min-height: 60px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  margin: 18px auto 0;
}

/* メンテプラン */
body.single-neo_used_car .neo-detail-menteplan {
  margin-top: 40px;
  background: #f2d534 !important;
  padding: 40px 20px;
}

body.single-neo_used_car .neo-detail-menteplan__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

body.single-neo_used_car .neo-detail-menteplan img {
  width: 80%;
  max-width: 980px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* レスポンシブ */
@media (max-width: 960px) {
  body.single-neo_used_car .neo-detail-intro {
    padding: 0px;
  }

  body.single-neo_used_car .neo-detail-intro__lead {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  body.single-neo_used_car .neo-detail-intro__headline {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
  }

  body.single-neo_used_car .neo-detail-intro__label {
    padding: 6px 12px;
    font-size: 14px;
  }

  body.single-neo_used_car .neo-detail-intro__text {
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
  }

  body.single-neo_used_car .neo-detail-intro__note {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.8;
    text-align: left;
  }

  body.single-neo_used_car .neo-detail-intro__stock {
    width: 100%;
    margin-top: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
  }

  body.single-neo_used_car .neo-detail-main {
    padding: 16px 0 20px;
  }

  body.single-neo_used_car .neo-detail-main__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.single-neo_used_car .neo-detail-side-area {
    gap: 0px;
  }

  body.single-neo_used_car .neo-detail-gallery__arrow {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  body.single-neo_used_car .neo-detail-gallery__arrow--prev {
    left: 12px;
  }

  body.single-neo_used_car .neo-detail-gallery__arrow--next {
    right: 12px;
  }

  body.single-neo_used_car .neo-detail-gallery__thumbs-wrap {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  body.single-neo_used_car .neo-detail-gallery__thumbs-track {
    gap: 8px;
  }

  body.single-neo_used_car .neo-detail-gallery__thumb {
    flex: 0 0 calc((100% - 32px) / 5);
  }

  body.single-neo_used_car .neo-detail-gallery__thumb-nav {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  body.single-neo_used_car .neo-detail-gallery-notice {
    flex-direction: column;
    align-items: stretch;
  }

  body.single-neo_used_car .neo-detail-gallery-notice__label,
  body.single-neo_used_car .neo-detail-gallery-notice__text {
    text-align: center;
  }

  body.single-neo_used_car .neo-detail-gallery-note {
    font-size: 12px;
  }

  body.single-neo_used_car .neo-detail-price-box__title {
    font-size: 15px;
    padding: 12px 14px;
  }

  body.single-neo_used_car .neo-price-plan h3 {
    min-width: 150px;
    min-height: 38px;
    font-size: 13px;
    margin-bottom: 12px;
  }

  body.single-neo_used_car .neo-price-plan__label {
    font-size: 16px;
  }

  body.single-neo_used_car .neo-price-plan__main strong {
    font-size: 34px;
  }

  body.single-neo_used_car .neo-price-plan__suffix {
    font-size: 18px;
  }

  body.single-neo_used_car .neo-price-plan__tax {
    font-size: 12px;
  }

  body.single-neo_used_car .neo-price-plan__note {
    font-size: 12px;
  }

  body.single-neo_used_car .neo-detail-lease-items {
    padding: 14px 10px 14px;
  }

  body.single-neo_used_car .neo-detail-lease-items h3 {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  body.single-neo_used_car .neo-detail-lease-items ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    justify-content: stretch;
  }

  body.single-neo_used_car .neo-detail-lease-items li {
    width: auto;
    min-width: 0;
    margin: 0;
    padding-left: 12px;
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
  }

  body.single-neo_used_car .neo-detail-lease-items li::before {
    font-size: 9px;
    line-height: 1.5;
  }

  body.single-neo_used_car .neo-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
  }

  body.single-neo_used_car .neo-spec-item {
    min-height: 48px;
    padding: 6px 4px;
  }

  body.single-neo_used_car .neo-spec-item dt {
    margin: 0 0 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  body.single-neo_used_car .neo-spec-item dd {
    font-size: 12px;
    line-height: 1.25;
  }

  body.single-neo_used_car .neo-detail-buttons__inner {
    align-items: center;
    gap: 12px;
  }

  body.single-neo_used_car .neo-btn {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    min-height: 52px;
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
  }

  body.single-neo_used_car .neo-btn--small {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 44px;
    margin: 10px auto 0;
    padding: 10px 12px;
    font-size: 12px;
  }

  body.single-neo_used_car .neo-detail-menteplan {
    margin-top: 28px;
    padding: 24px 12px 30px;
  }

  body.single-neo_used_car .neo-detail-menteplan__inner {
    display: block;
    text-align: center;
  }

  body.single-neo_used_car .neo-detail-menteplan img {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  body.single-neo_used_car .neo-detail-title {
    margin-bottom: 14px;
    font-size: 26px;
  }

  body.single-neo_used_car .neo-detail-intro__lead {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  body.single-neo_used_car .neo-detail-intro__stock {
    width: 100%;
    margin-top: 10px;
  
    font-size: 14px;
    line-height: 1.7;
  }
}