.cars__detail-info-top {
  padding: 40px 20px;
  background: #fff;
}
/* .container {
  max-width: 1200px;
  margin: auto;
} */
.car-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.car-images {
  flex: 1;
}
.main-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #ddd;
  border-radius: 8px;
  position: relative;
}

/* 详情页NEW标志样式 */
.main-image .new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* 7天内：橙色背景，显示NEW */
.main-image .new-badge.with-new {
  background-color: #ea5413;
}

/* 7天外：灰色背景，只显示日期 */
.main-image .new-badge.date-only {
  background-color: #666;
}

.main-image .new-badge .new-text {
  display: block;
  font-size: 11px;
  /* margin-bottom: 1px; */
  line-height: normal;
}
.main-image .new-badge .new-date {
  display: block;
  font-size: 13px;
  font-weight: normal;
}

/* スライダー */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

/* ナビゲーション矢印 */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.nav.prev {
  left: 10px;
}
.nav.next {
  right: 10px;
}

/* サムネイル */
.thumbnail-list-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  padding-bottom: 5px;
  width: 100%;
  max-width: 696px;
  flex-wrap: wrap;
}

.thumbnail {
  flex: 0 0 auto;
  width: 9.3%;
  height: 44px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.thumbnail.active {
  border-color: #ea5413;
}

.car-info {
  width: 396px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.maker-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.new-badge {
  font-size: 12px;
  background: #ea5413;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.maker-name {
  font-weight: bold;
  font-size: 14px;
}
.car-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.price-item {
  height: 60px;
  display: flex;
  flex-direction: column;
}
.price-item.total {
  flex: 3;
}
.price-item.other {
  flex: 2;
}
.price-box .label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-align: left;
  line-height: 20px;
}
.price-box .label .label-small {
  font-size: 10px;
  /* font-weight: 400;
  color: #333;
  text-align: left; */
}
.price-box .label.small {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-align: left;
}
.price-box .label.small .label-small {
  font-size: 10px;
  /* font-weight: 400;
  color: #333;
  text-align: left; */
}
.price-border {
  border: 1px solid #333;
  width: 100%;
}
.price-box .value {
  font-size: 24px;
  font-weight: 700;
  text-align: right;
  margin-top: 14px;
}
.price-box .value.main {
  font-size: 40px;
  color: #ea5413;
  line-height: 28px;
}
@media screen and (max-width: 768px) {
  .price-box .value.main {
    font-size: 45px;
    line-height: 52px;
  }
}
.price-box .value.sub {
  font-size: 28px;
  color: #333;
  line-height: 36px;
}
@media screen and (max-width: 768px) {
  .price-box .value.sub {
    line-height: 28px;
  }
}
.price-box .value .unit {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  margin-left: 4px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  font-size: 12px;
  color: #333;
}
@media screen and (max-width: 768px) {
  .specs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 0;
    font-size: 12px;
    color: #333;
  }
}

.specs .spec-item {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  text-align: center;
}
.specs .spec-item .label {
  background: #eee;
  padding: 4px;
  border-radius: 4px;
  /* height: 30px; */
  text-align: center;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.specs .spec-item .value {
  padding: 0px;
  border-radius: 5px;
  text-align: center;
  line-height: 2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-box {
  border: 1px solid #ccc;
  border-radius: 6px;
}
@media screen and (max-width: 768px) {
  .shop-box {
    margin-top: 20px;
  }
}

.shop-box-heading {
  padding: 10px 16px;
  margin-bottom: 4px;
  background: #eeeeee;
  border-radius: 6px 6px 0 0;
}
.shop-title {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  text-align: left;
}
.shop-box-detail {
  padding: 12px 16px 16px;
  font-weight: 400;
  font-size: 12px;
  color: #333;
  text-align: left;
}
.shop-box-detail a {
  font-size: 15px;
  background-color: #ea5413;
  border-radius: 10px;
  padding: 18px;
  width: 100%;
  text-align: center;
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 10px auto;
  box-shadow: 0px 4px 4px #c4c4c4;
  position: relative;
}
.shop-box-detail a::before {
  position: absolute;
  content: url(../img/cta_car_icon.png);
  transform: scale(0.12);
  left: 4%;
  top: 5%;
  width: 24px;
  height: 24px;
}
.shop-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.shop-box.second {
  max-width: 800px;
  width: 100%;
  margin: 4rem auto 2rem auto;
  border: none;
}
.shop-box.second .shop-box-detail {
  border: 2px solid #ea5413;
  border-radius: 10px;
  padding: 24px 32px 16px;
}
@media screen and (max-width: 768px) {
  .shop-box.second .shop-box-detail {
    border: 2px solid #ea5413;
    border-radius: 8px;
    padding: 16px 28px 16px;
  }
}
.shop-box.second .shop-name {
  font-size: 20px;
}

.shop-box.second .flex {
  justify-content: space-between;
}
.shop_right {
  width: 50%;
}

.btn-shop {
  display: block;
  margin-top: 16px;
  background: #ea5413;
  color: #fff;
  padding: 14px 24px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 車両情報一覧 */
.cars__detail-info-set {
  margin-bottom: 50px;
}
@media screen and (max-width: 768px) {
  .cars__detail-info-set {
    margin-bottom: 32px;
  }
}
.car-set-info-heading {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.equipment-count {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}
.car-set-info-grid {
  display: grid;
  grid-template-columns: 18% 32% 18% 32%;
  border: 1px solid #ccc; /* 外枠 */
  border-bottom: none;
  font-size: 12px;
  font-weight: 400;
  color: #333;
}
.car-set-info-grid.continued {
  /* グリッド表が最後ではない時 */
  margin-bottom: 24px;
}
.set-info-label {
  background: #f9f8f6;
}
.set-info-label,
.set-info-value {
  padding: 13px 15px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}
.set-info-value {
  font-weight: bold;
}
.car-set-info-grid > div:nth-child(4n) {
  border-right: none; /* 各行の最後の列だけ右線なし */
}

.car-set-info-section-heading {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  margin-bottom: 16px;
}
.set-info-section-up {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 8px;
  gap: 2px;
}
.set-info-section-title {
  margin-right: auto;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}
.set-info-section-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
  background: #ea5413;
}
.set-info-section-border {
  border: .5px solid #ccc;
  width: 100%;
  border-bottom: none;
}

/* 装備仕様（オレンジカラー要素） */
.car-set-info-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.car-set-info-flex.continued {
  margin-bottom: 20px;
}
.set-info-item {
  padding: 8px 14px;
  background-color: #ea5413;
  color: #fff;
  border-radius: 100px;
  white-space: nowrap;
  font-size: 12px;
  text-align: center;
  border: 1px solid #ea5413;
  transition: all 0.3s ease;
  flex: 1 1 25%;
  max-width: 50%;
  min-width: 25%;
  font-weight: 700;
}

/* .set-info-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(234, 84, 19, 0.3);
} */
.set-info-item.disabled {
  background-color: #f5f5f5;
  color: #999999;
  border: 1px solid #e0e0e0;
  opacity: 0.7;
  cursor: default;
}

/* .set-info-item.disabled:hover {
  transform: none;
  box-shadow: none;
} */
.price-box.pc {
  display: flex;
}
.price-box.sp {
  display: none;
}
.car_top {
  display: none;
}
.last-digit {
  font-size: 28px;
}
.value.sub .last-digit {
  font-size: 17px;
}
/* スマホ：閉じているときは5件目以降を非表示 */
@media (max-width: 768px) {
  .collapsible:not(.is-open) .filtertype-list li:nth-child(n + 5) {
    display: none;
  }
  .collapsible .filtertype-more {
    text-align: center;
    margin-top: 8px;
  }
  .set-info-label,
  .set-info-value {
    padding: 10px 8px;
  }
}

/* PC：常に全部表示。ボタンは非表示 */
@media (min-width: 769px) {
  .collapsible .filtertype-more {
    display: none;
  }
  /* PC端详情页区域表格样式 */
  .detail-region-name {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 16px 10px 0;
    width: 120px;
  }
  .detail-region-prefectures {
    font-size: 12px;
    padding: 10px 0;
  }
  .detail-region-prefectures a {
    color: #003a6b !important;
    text-decoration: none !important;
    margin-right: 4px;
  }
  .detail-region-prefectures span {
    margin-right: 10px;
    color: #ccc;
  }
  .detail-region-prefectures a:hover {
    font-weight: 500;
    text-decoration: none !important;
  }
  .price-box-left-new {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    gap:.75rem;
  }
  .price-tetomoku {
    width: 42.5%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
  }
  .price-tetomoku > div:not(:last-child) {
    padding-bottom: .75rem;
  }
  .price-box-right-new {
            flex: 1;
        display: flex;
        flex-direction: column;
        gap: .5rem;
  }
  .price-item-new-total p.value {
    font-size: 24px;
  }
  p.substance {
    font-size: 24px;
  }
}

@media screen and (max-width: 768px) {
  .set-info-item {
    width: 48%;
    flex: none !important;
    font-size: 12px;
    padding: 4px 8px;
  }
  .cars__detail-info-set .inner_pt1 {
    padding: 0 23px;
    box-sizing: border-box;
  }
  .column > div,
  .shop-box.second .flex {
    flex-direction: column;
  }
  .shop_right {
    width: 100% !important;
  }
  .shop_left p {
    font-size: 12px;
  }
  .shop-box.second .shop-name {
    font-size: 18px;
  }
  .shop-box.second {
    padding: 0 20px;
    margin: 2rem auto 2rem auto;
  }
  .car-set-info-grid {
    grid-template-columns: 40% 60% !important;
  }
  .cars__index-filtertype-container {
    padding: 0 20px 30px 20px;
  }
  .cars__index-filtertype-container .filtertype-box {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .set-info-value {
    border-right: 0 !important;
  }
  .filtertype-list {
    padding-left: 0;
  }
  /* .car-set-info-grid > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid #ccc;
  }
  .car-set-info-grid > div:last-child {
    border-bottom: none;
  }
.car-set-info-grid > div:nth-child(7),.car-set-info-grid > div:nth-child(8),.car-set-info-grid > div:nth-child(11){
    border-bottom: none;
  } */
  .price-box.pc {
    display: none;
  }
  .price-box.sp {
    display: block;
  }
  .price-box .value {
    margin-top: 0;
  }
  .price-item {
    flex-direction: revert !important;
    align-items: baseline;
    justify-content: space-between;
  }
  .price-item.total {
    border-top: 1px solid #333;
  }
  .specs .spec-item .value {
    padding: 4px 0;
    font-size: 10px;
  }
  .specs .spec-item .label {
    font-size: 10px;
    height: 23px;
  }
  .filtertype-list li a {
    width: auto;
  }
  .price-box.pc {
    display: none;
  }
  .price-box.sp {
    display: block;
  }
  .shop-box-detail a::before {
    transform: scale(0.12);
    left: 4%;
    top: 0;
    width: 14px;
    height: 14px;
  }
  .price-box .label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-align: left;
  }
  .price-box .label.small {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-align: left;
  }
  .price-item.other {
    height: auto;
    flex: inherit;
    align-items: baseline;
  }
  .price-item.other .value.sub {
    /* margin-left: 10px; */
  }
  .car_top .value.sub span {
    font-size: 12px;
  }
  .price-item.total .label span {
    font-weight: bold;
    font-size: 14px;
    color: #333;
  }
  .cars__detail-info-top {
    margin-top: 0;
    padding: 24px 20px;
  }

  .car_top {
    justify-content: left;
    display: flex;
  }
  .car_top .label {
    font-size: 12px;
    font-weight: bold;
  }
  .car_top .value.main {
    color: #ea5413;
    font-weight: bold;
  }
  .car_top .value.main .unit {
    font-weight: 400;
    color: #333;
    font-size: 12px;
  }
  .price-item.car_top {
    height: auto;
    gap: 8px;
  }
  .car-detail-grid {
    margin-top: 12px;
    gap: 1.5rem;
  }
  .car_top .value.sub {
    font-weight: bold;
  }
  .car_top .value.sub span {
    font-weight: 400;
  }
  .thumbnail {
    width: 24%;
  }
  .filtertype-list li::after {
    content: none;
  }
  .filtertype-list li {
    list-style: none;
    width: 48%;
    border: 1px solid #fff;
    padding: 5px;
    background: #fff;
  }
  .filtertype-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 7px;
    justify-content: left;
    flex: 1;
  }
  /* 详情页区域表格样式 */
  .detail-region-table {
    width: 100%;
    border-collapse: collapse;
  }
  .detail-region-table tr {
    border: none;
  }
  .detail-region-table td {
    border: none;
  }
  .detail-region-name {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    padding: 8px 12px 8px 0;
    white-space: nowrap;
    vertical-align: top;
    width: 100px;
  }
  .detail-region-prefectures {
    padding: 8px 0;
    line-height: 1.6;
    font-size: 11px;
    vertical-align: top;
  }
  .detail-region-prefectures a {
    color: #003a6b !important;
    text-decoration: none !important;
    margin-right: 4px;
    white-space: nowrap;
  }
  .detail-region-prefectures span {
    margin-right: 8px;
    color: #ccc;
  }
  .detail-region-prefectures a:hover {
    font-weight: 500;
    text-decoration: none !important;
  }
  .filtertype-more button {
    width: 100%;
    background: #eeeeee;
    border: none;
    font-size: 10px;
    padding: 5px;
  }
  .shop-box-detail a {
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0px 2px 4px #c4c4c4;
  }
  .maker-name {
    font-weight: bold;
    font-size: 12px;
  }
  .car-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
    margin: 2px 0 8px;
  }
}








span.label.temopoint {
    color: #fff;
    background-color: #ea5413;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
}

.info-line.price .value {
    /* color: #ea5413; */
}
p.info-line.point-custom span.value {
    color: #ea5413;
    font-size: 14px;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
  span.label.temopoint{
    padding: 2px 6px;
    border-radius: 3px;
  }
  .point-custom{
    flex-direction: column;
    height: auto;
  }
  .point-custom >*{margin-left: auto;}

  .commons-info .info-line {
    height: unset;
  }

  .list-cards-info .info-line {
    height: unset;
  }
  .gosen-line {
    text-align: center;
 }
 .price-box-right-new {
    display: flex;
        flex-direction: column;
        gap: 1rem;
  }
  .price-tetomoku {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
  }
  .gosen-line span {
    margin-left: 10px;
  }
  .price-item-new-total p.value {
    font-size: 32px;
  }
  p.substance {
   font-size: 32px;
 }
 .gosen-line p {
    letter-spacing: 1px;
 }
}

.bg-white {
  background-color: #fff!important;
}

.price-item-new {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: .5rem;
}
.price-item-new-total {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}
.point-line-cus {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ea5413;
    padding: 0 5px;
    color: #fff;
    border-radius: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}
.info-line-kaike {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: baseline;
  line-height: 1;
}
p.label.small {
    font-size: 12px;
    font-weight: 600;
}
span.label-small {
    font-size: 10px;
    font-weight: 400;
}
.line-gc:not(:last-child) {
    border-bottom: 1px solid #9a9898;
}
.price-item-new p.value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}
span.unit {
    font-size: 12px;
    font-weight: 400;
    padding-left: 2px;
}
.price-item-new-total p.value {
    font-weight: 600;
    color: #ea5413;
    line-height: 1;
}
.point-custom-detail {
    padding: 8px 8px;
    border: 1px solid #bebebe;
    border-radius: 8px;
    align-content: center;
    flex: 1;
}
p.label.temopoint {
  font-size: 12px;
}
span.dvv {
  font-size: 12px;
}
.info-line-kaike p.label {
    font-size: 12px;
    font-weight: 600;
}
p.substance {
    font-weight: 600;
    color: #ea5413;
}
.substance span.unit {
    color: #000;
}
.gosen-line span {
    background-color: #ea5413;
    color: #fff;
    padding: 2px;
    border-radius: 50%;
}
.gosen-line strong {
    font-size: 16px;
    font-weight: 600;
    padding: 0 4px;
}
.gosen-line {
    border: 2px solid #ea5413;
    background-color: #fff3e2;
    color: #ea5413;
    font-size: 11px;
    padding: 5px 2px;
    font-weight: 600;
    margin-top: 5px;
    border-radius: 2px;
}


.price-note {
    color: #ea5413;
    position: relative;
    border: 2px solid #ea5413;
    background-color: #fff3e2;
    font-size: 11px;
    padding: 2px;
    font-weight: 600;
    border-radius: 2px;
    text-align: center;
}
.discount{font-size: 1.125rem;}

/* icon ? */
.tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    border-radius: 50%;
    background: #ff5a1f;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

/* popup */
.tooltip-content {
    position: absolute;
    top: 30px;
    right: 0;
    width: 300px;
    background: #fff;
    border: 2px solid #ff5a1f;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 10;
}

/* mũi tên */
.tooltip-content::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 20px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent #ff5a1f transparent;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: -7px;
    right: 20px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* hover để hiện */
.tooltip-wrap:hover .tooltip-content {
    display: block;
}