/* Phase 7: scoped to the vehicle detail page. */
.vehicle-heading__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.vehicle-share-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid #e1e1e1;
  border-radius: 50%;
  background: #fff;
  color: #999;
  cursor: pointer;
}

.vehicle-share-trigger svg {
  width: 28px;
  height: 28px;
}

.vehicle-share-dialog {
  box-sizing: border-box;
  width: 500px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0 20px 30px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #111;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.vehicle-share-dialog::backdrop {
  background: rgb(0 0 0 / 20%);
}

.vehicle-share-dialog__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 60px;
  border-bottom: 1px solid #dce3e8;
}

.vehicle-share-dialog__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #999;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.search_detail .vehicle-share__title {
  margin: 16px 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-align: center;
  vertical-align: middle;
}

.vehicle-share__description {
  margin: 0 0 20px;
  color: #888;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.vehicle-share__actions {
  display: grid;
  gap: 14px;
}

.vehicle-share__actions>a,
.vehicle-share__actions>button {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 60px;
  padding: 10px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.vehicle-share__actions>a:hover,
.vehicle-share__actions>button:hover {
  background: #f5fafc;
}

.vehicle-share__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
}

.vehicle-share__icon img,
.vehicle-share__icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.vehicle-share__icon--mail {
  background: #747474;
}

.vehicle-share__icon--mail img,
.vehicle-share__icon--x img,
.vehicle-share__icon--instagram img {
  filter: brightness(0) invert(1);
}

.vehicle-share__icon--line {
  background: #06c755;
}

.vehicle-share__icon--line span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #06c755;
  font-size: 7px;
  font-weight: 700;
}

.vehicle-share__icon--x {
  background: #000;
}

.vehicle-share__icon--facebook {
  overflow: hidden;
  background: #1877f2;
  font: 700 42px/1 Arial, sans-serif;
  padding-top: 10px;
  box-sizing: border-box;
}

.vehicle-share__icon--instagram {
  background: radial-gradient(circle at 25% 100%, #ffda76 0, #f58529 22%, #dd2a7b 50%, #8134af 80%, #515bd4);
}

.vehicle-share__icon--copy {
  background: #ddd;
  color: #777;
}

.vehicle-share__status {
  margin: 12px 0 0;
  color: #0089bb;
  font-size: 12px;
  text-align: center;
}

.vehicle-share__status:empty {
  display: none;
}

.vehicle-share__copy-fallback {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #bbb;
  box-sizing: border-box;
}

.vehicle-share--mobile {
  display: none;
}

.vehicle-share [hidden] {
  display: none;
}

.vehicle-share-trigger:focus-visible,
.vehicle-share a:focus-visible,
.vehicle-share button:focus-visible {
  outline: 2px solid #00a5e3;
  outline-offset: 3px;
}

.search_detail .vehicle-recommendations {
  margin-top: 260px;
  padding: 50px 0 70px;
  background: #e5eff3;
}

.search_detail .vehicle-recommendations::before {
  width: 1470px;
  max-width: 100%;
  height: 270px;
  top: -239px;
  background-image: url(/resources/images/relevant_bg_pc-3d89c82d861d90da4363c27bee4eebf8.png);
}

.vehicle-recommendation>h2,
.vehicle-features h2 {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.search_detail .vehicle-recommendations .related_block+.related_block {
  margin-top: 56px;
}

.vehicle-recommendation__empty {
  margin: 0;
  padding: 50px 20px;
  border: 1px solid #e0e6e9;
  border-radius: 8px;
  background: #fff;
  color: #777;
  font-size: 14px;
  text-align: center;
}

.search_detail .vehicle-recommend-slider {
  position: relative;
  width: 100%;
  padding: 0 0 45px;
  overflow: hidden;
}

.search_detail .vehicle-recommend-slider::before,
.search_detail .vehicle-recommend-slider::after {
  display: none;
}

.vehicle-recommend-slider .swiper-navigation-icon {
  display: none;
}

.vehicle-recommend-slider .swiper-wrapper {
  align-items: stretch;
}

.search_detail .vehicle-recommend-slider .swiper-slide {
  height: auto;
  margin: 0;
}

.vehicle-recommend-slider .car_related {
  display: block;
  height: 100%;
  background: #fff;
}

.vehicle-recommend-slider .car_related>a {
  display: block;
  height: 100%;
  padding-bottom: 16px;
  box-sizing: border-box;
}

.vehicle-recommend-slider .car_related>a>figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.vehicle-recommend-slider .car_related>a>figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search_detail .vehicle-recommend-slider .car_related .name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 54px !important;
  min-height: 0;
  margin: 0;
  padding: 12px 12px 0;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 21px;
}

.search_detail .vehicle-recommend-slider .car_info_txt_area {
  padding: 8px 12px 0;
}

.search_detail .vehicle-recommend-slider .price_type {
  font-size: 12px;
}

.search_detail .vehicle-recommend-slider .price_num {
  font-size: 30px;
  color: #ef2027;
}

.search_detail .vehicle-recommend-slider .price_area .price_block .price_nam_s {
  font-size: 20px;
}

.search_detail .vehicle-recommend-slider .price_area .price_block .price_ja {
  font-size: 12px;
}

.search_detail .vehicle-recommend-slider .swiper-button-prev,
.search_detail .vehicle-recommend-slider .swiper-button-next {
  top: 50%;
  width: 40px;
  height: 123px;
  margin: 0;
  transform: translateY(-70%);
  border: 0;
  border-radius: 6px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 1px 6px #0003;
  color: #00a5e3;
}

.search_detail .vehicle-recommend-slider .swiper-button-prev {
  left: 0;
}

.search_detail .vehicle-recommend-slider .swiper-button-next {
  right: 0;
}

.search_detail .vehicle-recommend-slider .swiper-button-prev::after,
.search_detail .vehicle-recommend-slider .swiper-button-next::after {
  font-size: 24px;
}

.search_detail .vehicle-recommend-slider .swiper-pagination {
  bottom: 0;
  line-height: 16px;
}

.vehicle-recommend-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.vehicle-recommend-slider .swiper-pagination-bullet-active {
  background: #00a5e3;
}

.vehicle-recommendation__links {
  display: grid;
  gap: 20px;
  width: min(100%, 450px);
  margin: 40px auto 0;
}

.vehicle-recommendation__links>a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 14px;
  box-sizing: border-box;
  border: 2px solid #00a5e3;
  border-radius: 4px;
  background: #fff;
  color: #00a5e3;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.vehicle-recommendation__links>a>img {
  display: block;
  width: 10px;
  height: 16px;
  flex-shrink: 0;
}

.vehicle-features__more[hidden] {
  display: none;
}

.vehicle-features__more>button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 55px;
  padding: 8px 38px;
  border: 1px solid #00a5e3;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #dce4e7;
}

.vehicle-features__more>button>img {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 10px;
  height: 16px;
  transform: translateY(-50%);
}

.vehicle-features__more>button[aria-expanded="true"]>img {
  transform: translateY(-50%) rotate(180deg);
}

.vehicle-features__list:not(.is-expanded)>li:nth-child(n+4) {
  display: none;
}

.search_detail #pick_car.vehicle-features {
  margin: 0;
  padding: 48px 0;
}

.vehicle-features__badge {
  display: inline-block;
  margin-right: 12px;
  padding: 3px 12px;
  background: #00a5e3;
  color: #fff;
  font-size: 14px;
  vertical-align: middle;
}

.search_detail .vehicle-features__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
}

.search_detail .vehicle-features__list>li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.search_detail .vehicle-features__list>li::before {
  display: none;
}

.search_detail .vehicle-features__list .car_related>a {
  display: grid;
  grid-template-columns: 48% minmax(0, 1fr);
  gap: 0 12px;
}

.vehicle-features__list .car_related>a>figure {
  grid-row: 1 / 3;
  margin: 0;
}

.vehicle-features__list figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.search_detail .vehicle-features__list .name {
  padding: 0;
  font-size: 12px;
}

.search_detail .vehicle-features__list .car_info_txt_area {
  padding: 4px 0 0;
}

.search_detail .vehicle-features__list .icon_favorite_btn,
.search_detail .vehicle-features__list .car_spec {
  display: none;
}

.search_detail .vehicle-features__list .price_num {
  font-size: 24px;
}

.search_detail .vehicle-features__list .price_type,
.search_detail .vehicle-features__list .price_ja,
.search_detail .vehicle-features__list .other_price_block>dt {
  font-size: 10px;
}

.search_detail .vehicle-features__list .other_price_block>dd {
  font-size: 14px;
}

.search_detail .vehicle-features__list .car_equipment_li>li {
  width: 120px;
  max-width: 100%;
}

.search_detail .vehicle-recommendations .car_equipment_li>li.vehicle-new-tire-badge,
.search_detail .vehicle-features__list .car_equipment_li>li.vehicle-new-tire-badge {
  width: 126px;
  max-width: 100%;
}

.vehicle-new-tire-badge .tooltip_icon img {
  width: 100%;
  height: auto;
}

/* Hide appraisal badges only on the detail page's related vehicle cards. */
.search_detail .vehicle-recommendations .badge_kantei::after,
.search_detail #pick_car .badge_kantei::after {
  content: none;
}

.search_detail .vehicle-recommendations .car_related>a:hover,
.search_detail #pick_car .car_related>a:hover {
  opacity: 1;
}

.search_detail #quality {
  padding: 50px 0;
  background: #e5eff3;
}

.search_detail #quality .simple_pallet_box {
  border-radius: 8px;
  background: #fff;
}

.vehicle-related-search {
  padding: 48px 0 100px;
}

.vehicle-related-search__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.vehicle-related-search details {
  border: 1px solid #e0e0e0;
  background: #fff;
}

.vehicle-related-search summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f6f6f6;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.vehicle-related-search summary::-webkit-details-marker {
  display: none;
}

.vehicle-related-search summary::after {
  content: '+';
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00a5e3;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
}

.vehicle-related-search details[open]>summary::after {
  content: '−';
}

.vehicle-related-search ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-related-search li+li {
  border-top: 1px solid #e6e6e6;
}

.vehicle-related-search li a {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  color: #444;
  font-size: 14px;
  text-decoration: none;
}

.vehicle-related-search li a::after {
  content: '›';
  color: #00a5e3;
}

.vehicle-related-search details>p {
  padding: 20px;
  font-size: 12px;
  color: #777;
}

@media (max-width: 767px) {
  .vehicle-share-trigger {
    display: none;
  }

  .vehicle-share--mobile {
    display: block;
    margin: 48px 15px 0;
    padding-top: 16px;
    border-top: 1px solid #ddd;
  }

  .search_detail .vehicle-share--mobile .vehicle-share__title {
    margin: 0 0 18px;
    font-size: 16px;
  }

  .vehicle-share--mobile .vehicle-share__description {
    font-size: 11px;
    margin-bottom: 22px;
  }

  .vehicle-share--mobile .vehicle-share__actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  .vehicle-share--mobile .vehicle-share__actions>a,
  .vehicle-share--mobile .vehicle-share__actions>button {
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 9px;
    line-height: 1.25;
    text-align: center;
  }

  .vehicle-share--mobile .vehicle-share__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .vehicle-share--mobile .vehicle-share__icon--facebook {
    font-size: 38px;
  }

  .search_detail .vehicle-recommendations {
    margin-top: 170px;
    padding: 25px 0 48px;
  }

  .search_detail .vehicle-recommendations::before {
    top: -125px;
    left: 0;
    transform: none;
    width: 100%;
    height: 145px;
    background-image: url(/resources/images/relevant_bg_sp-2a543475db4b43034b5f2e82b5ed529b.png);
    background-size: cover;
  }

  .vehicle-recommendation>h2,
  .vehicle-features h2 {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .search_detail .vehicle-recommendations .inner {
    width: 100%;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .search_detail .vehicle-recommend-slider {
    width: calc(100% + 30px);
    margin-inline: -15px;
  }

  .search_detail .vehicle-recommendations .related_block+.related_block {
    margin-top: 42px;
  }

  .search_detail .vehicle-recommend-slider .car_related .name {
    padding: 10px 10px 0;
    font-size: 13px;
    height: 50px !important;
    line-height: 20px;
  }

  .search_detail .vehicle-recommend-slider .car_info_txt_area {
    padding: 8px 10px 0;
  }

  .search_detail .vehicle-recommend-slider .price_type {
    font-size: 11px;
  }

  .search_detail .vehicle-recommend-slider .price_num {
    font-size: 28px;
  }

  .search_detail .vehicle-recommend-slider .price_area .price_block .price_nam_s {
    font-size: 18px;
  }

  .search_detail .vehicle-recommend-slider .car_equipment_li>li {
    max-width: 100%;
  }

  .search_detail .vehicle-recommend-slider .swiper-button-prev,
  .search_detail .vehicle-recommend-slider .swiper-button-next {
    width: 25px;
    height: 70px;
  }

  .search_detail .vehicle-recommend-slider .swiper-button-prev::after,
  .search_detail .vehicle-recommend-slider .swiper-button-next::after {
    font-size: 18px;
  }

  .vehicle-recommend-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .vehicle-recommendation__links {
    gap: 10px;
    margin-top: 26px;
  }

  .vehicle-recommendation__links>a {
    min-height: 40px;
    font-size: 13px;
  }

  .vehicle-recommendation__empty {
    padding: 38px 14px;
    font-size: 13px;
  }

  .search_detail #pick_car.vehicle-features {
    padding: 32px 0;
  }

  .search_detail .vehicle-features__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .search_detail .vehicle-features__list .car_related>a {
    grid-template-columns: 48% minmax(0, 1fr);
  }

  .search_detail .vehicle-features__list .name {
    font-size: 16px;
    line-height: 1.5;
  }

  .search_detail .vehicle-features__list .price_num {
    font-size: 30px;
  }

  .search_detail .vehicle-features__list .other_price_block>dd {
    font-size: 20px;
  }

  .search_detail .vehicle-features__list .price_type,
  .search_detail .vehicle-features__list .other_price_block>dt {
    font-size: 12px;
  }

  .search_detail .vehicle-features__list>li+li {
    padding-top: 20px;
    border-top: 1px solid #dce3e8;
  }

  .vehicle-features__badge {
    font-size: 12px;
  }

  .search_detail #quality {
    padding: 35px 0;
  }

  .vehicle-related-search {
    padding: 24px 0 60px;
  }

  .vehicle-related-search__grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .vehicle-related-search summary {
    min-height: 54px;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 400;
  }

  .vehicle-related-search summary::after {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 24px;
    line-height: 22px;
  }

  .vehicle-related-search ul {
    padding: 0 20px;
  }

  .vehicle-related-search li a {
    font-size: 14px;
    padding: 18px 0;
  }
}

.vehicle-recommend-slider .swiper-button-prev::after {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.vehicle-recommend-slider .swiper-button-next::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
