/* ============================================================
   shop-cars.css — 店舗在庫検索ページ（/shops/detail/{id}/cars）専用
   cars-index.css + index.css（カード内ツールチップ等）からの複製
   （販売店ページ専用・独立運用）。/cars 側の CSS 修正はここへ手動反映が必要。
   ============================================================ */

/* ユーリティクラス */
.mb1 {
  margin-bottom: 1rem;
}
.w3em {
  width: 3em;
}
.w4em {
  width: 4em;
}
.w5em {
  width: 5em;
}
.w6em {
  width: 6em;
}
.w8em {
  width: 8em;
}
.w8_25em {
  width: 8.25em;
}
.w6em21 {
  width: calc(6em + 21px);
}
.w7em21 {
  width: calc(7em + 21px);
}
.w8em21 {
  width: calc(8em + 21px);
}
.w9em21 {
  width: calc(9em + 21px);
}
.w10em21 {
  width: calc(10em + 21px);
}
.w11em21 {
  width: calc(11em + 21px);
}
.w12em21 {
  width: calc(12em + 21px);
}
.w13em21 {
  width: calc(13em + 21px);
}
.w90 {
  width: 90px;
}
.w120 {
  width: 120px;
}
.w124 {
  width: 124px;
}
.w240 {
  width: 240px;
}
.w100par {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .w3em {
    width: 6em;
  }
  .w5em {
    width: 6em;
  }
  .w90 {
    width: 100%;
  }
  .w120 {
    width: 100%;
  }
  .w240 {
    width: 100%;
  }
  .w6em21,
  .w7em21,
  .w8em21,
  .w9em21,
  .w10em21,
  .w12em21,
  .w13em21 {
    width: calc(50% - 4px);
  }
}

.cars__index-search-filter {
  background: #eee;
}
.filter-box {
  width: 1020px;
  padding: 2rem 0px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media screen and (max-width: 1080px) {
  .filter-box {
      padding: calc(2rem + 44px) 2rem 6rem;
  }
}

.search-title {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.search-title h2 {
  font-size: 22px;
  font-weight: bold;
}
.search-filter-section {
  background: #f9f9f9;
  padding: 24px 16px;
  border-bottom: 1px solid #ddd;
}

.line {
  display: flex;
  /* justify-content: space-between; */
  gap: 2rem;
  /* gap: 0; */
  padding: 0 0 24px;
  border-bottom: 1px solid #ccc;
}

.align-center {
  align-items: center;
}

.column {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 8px;
  font-size: 12px;
  flex-direction: column;
  align-self: flex-start;
      align-items: start;
  /* flex: 1; */
}

.column.not-flex1 {
  flex: unset;
}
.column > div > label {
  display: inline-block;
  font-weight: bold;
}
.column > div {
  display: flex;
  gap: 1rem;
}
.column > div.flex-column {
  flex-direction: column;
  /* row-gap: 0.5rem; */
  row-gap: 1rem;
}

.column select,
.text-form {
  border: 0;
  height: 24px;
  box-shadow: 0 1px 1px #00000033;
  border-radius: 4px;
  font-size: 12px;
  padding: 0 8px;
}

.pull-down div {
  position: relative;
}
.pull-down div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 5px;
  height: 5px;
  border-right: 2px solid #131B3C;
  border-bottom: 2px solid #131B3C;
  transform: rotate(45deg) translateY(-60%) translateX(-60%);
  pointer-events: none;
  z-index: 1;
}
.pull-down select {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 0;
  padding-right: 1.75rem;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 250px;
}
.column div.color-icon {
  width: 34px;
  height: 22px;
  border-radius: 2px;
}
.column div.color-select {
  display: none;
}
.checkbox-group-outer {
  display: flex;
}
.checkbox-group {
  display: flex;
  gap: 8px;
  flex-direction: unset;
  flex-wrap: wrap;
  flex: 1;
}
@media screen and (max-width: 768px) {
  .checkbox-group {
    font-size: 12px;
  }
}
.checkbox-group label {
  display: flex;
}
.checkbox-group.column-1 {
  flex-direction: column;
}
.checkbox-group.column-2 label {
  /* width: calc(50% - 4px); */
  /* white-space: nowrap; */
}
.checkbox-group input {
  margin-right: 0.5rem;
}

.search-button-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (min-width: 769px) {
  #moreFilterTogglePc {
    font-size: 14px;
  }
}

.close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  justify-content: right;
  gap: 8px;
}

.filter-buttons button {
  color: white;
  font-weight: 700;
  /* height: 40px; */
  height: auto;
  /* padding: 0 24px; */
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  letter-spacing: 0.6px;
}
.filter-buttons button.btn-clear {
  background: #333;
  font-size: 12px;
  padding: 0 24px;
}
@media screen and (max-width: 768px) {
  .filter-buttons button.btn-clear {
    width: 36%;
    padding: 0 12px;
  }
}
.filter-buttons button.btn-submit {
  background: #131B3C;
  font-size: 14px;
  padding: 5px 30px 6px;
}
.filter-buttons button.btn-submit:disabled {
  background: #b6b6b6;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}
@media screen and (max-width: 768px) {
  .filter-buttons button.btn-submit {
    width: 64%;
    padding: 5px 12px 6px;
  }
}
.filter-buttons button.btn-submit span {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 768px) {
  .filter-box {
    width: 100%;
  }
  .column {
    font-size: 14px;
    width: 100%;
  }
  .column > div {
    align-items: center;
    row-gap: 0.5rem;
  }
  .line {
    flex-direction: column;
    row-gap: 0.5rem;
  }
  .sub-column {
    flex-direction: column;
  }
  .pull-down div {
    flex: 1;
  }
  .column div.color-palette {
    flex-direction: column;
    align-items: baseline;
  }
  .palette {
    width: 100%;
  }
  .cars__index-search-filter.pc {
    display: none;
  }
  .column div.color-select {
    display: flex;
  }
  .form div {
    flex: 1;
  }
  .checkbox-group-outer {
    display: unset;
  }
  .checkbox-group-outer > div:not(:last-child) {
    margin-bottom: 0.5rem;
  }
  .checkbox-group.column-1 {
    flex-direction: unset;
  }
  .checkbox-group label {
    display: unset;
  }
  .column select,
  .text-form {
    height: 40px;
  }
  .column > div.flex-column {
    align-items: flex-start;
  }
}

/* ------------------ */
/* ここから下は触らない */
/* ------------------ */

/* 一覧セクション */
.cars__index-list-heading {
  margin-top: 0;
  padding-top: 3rem;
}
.cars__index-list-heading.pc {
  display: block;
}
.cars__index-list-heading.sp {
  display: none;
}

.heading-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0 10px;
  /* border-top: 1px solid #f6d7ca;
  border-bottom: 1px solid #f6d7ca; */
  /* font-family: sans-serif; */
  font-family: arial, "Hiragino Kaku Gothic ProN", Meiryo, "Yu Gothic",
    sans-serif;
  font-size: 14px;
}

.hb-left,
.hb-right {
  display: flex;
  /* align-items: center; */
  align-items: baseline;
  gap: 16px;
}

.hb-left .count {
  font-size: 24px;
  font-weight: bold;
}

.hb-left-p {
  font-weight: bold;
  font-size: 32px;
}
.hb-left-span {
  font-weight: bold;
  font-size: 12px;
}
.hb-left-span2 {
  font-weight: normal;
  font-size: 12px;
}

/* 
.column {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  flex-direction: column;
  align-self: flex-start;
  flex: 1;
}

.column.not-flex1 {
  flex: unset;
}
.column > div > label {
  display: inline-block;
  font-weight: bold;
}
.column > div {
  display: flex;
  gap: 1rem;
}
.column > div.flex-column {
  flex-direction: column;
  row-gap: 0.5rem;
}

.column select,
.text-form {
  border: 0;
  height: 24px;
  box-shadow: 0 1px 1px #00000033;
  border-radius: 4px;
  font-size: 12px;
  padding: 0 8px;
}

.pull-down div {
  position: relative;
}
.pull-down div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 5px;
  height: 5px;
  border-right: 2px solid #ea5413;
  border-bottom: 2px solid #ea5413;
  transform: rotate(45deg) translateY(-60%) translateX(-60%);
}
.pull-down select {
  -webkit-appearance: none;
  appearance: none;
} */

.heading-box select {
  padding: 4px 8px;
  font-size: 12px;
  color: #333;
  border: 1px solid #ccc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  /* 123456789 */
  /* -webkit-appearance: none;
  appearance: none; */
}

.heading-box .sort-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media screen and (max-width: 768px) {
  .heading-box .sort-area {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.heading-box .sort-area span {
  font-size: 12px;
}

.heading-box .view-switch {
  display: flex;
  gap: 4px;
}

.heading-box .view-btn {
  width: 24px;
  height: 24px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
}

.heading-box .view-btn.active {
  background-color: #f05a22;
}

.heading-box .grid-icon {
  width: 12px;
  height: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

.heading-box .grid-icon div {
  width: 100%;
  height: 100%;
  background-color: white;
}

.heading-box .pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.heading-box .page-btn {
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.heading-box .page-btn.active {
  background-color: #f05a22;
  color: white;
}

.heading-box .arrow {
  color: #333;
  cursor: pointer;
  font-size: 16px;
}

.heading-box .arrow.disabled {
  color: #ccc;
  cursor: default;
}

/* 検索結果カード一覧 */
.cars__index-list-cards {
  /* background: #f9f9f9; */
  background: #fff;
  padding: 10px 20px;
}
/* 中古車両カード表示セクション */
.list-cards-section {
  background: #f9f9f9;
  padding: 64px 20px 0px;
}
.list-cards-section.last {
  padding: 64px 20px 64px;
}
.list-cards-title {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 12px;
}
.list-cards-title h2 {
  font-size: 24px;
  font-weight: bold;
}

.list-cards-desc {
  text-align: left;
  margin: 10px 0 30px;
  color: #555;
  font-size: 16px;
}

.list-cards-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← PCは4列固定 */
  gap: 20px;
  margin-bottom: 12px;
}
/* カード本体 */
/* .list-cards-card {
  background: #fff;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 412px;
  padding: 0;
  text-decoration: none;
} */
.list-cards-card {
  position: relative;
  /* filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.2)); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.list-cards-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.list-cards-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.list-cards-card:hover::before {
  animation: grad-shine-anime 1s forwards;
  opacity: 1;
}
@keyframes grad-shine-anime {
  0% {
    transform: translate(-100%, -100%) rotate(25deg);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translate(100%, 100%) rotate(25deg);
    opacity: 0;
  }
}

/* NEWバッジ */
.list-cards-badge {
  position: absolute;
  top: -4px;
  left: 10px;
  background: gold;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  padding-top: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.list-cards-badge::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid gold;
}

/* 画像部分 */
.list-cards-image {
  flex: 1;
  width: 100%;
  position: relative;
  aspect-ratio: 4 / 3;
}
.list-cards-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 新しいロゴスタイル - 7日以内は新しい日付を表示し、7日後は日付のみを表示します */
.list-cards-image .new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #131B3C;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 7日以内：オレンジ背景、NEWを表示 */
.list-cards-image .new-badge.with-new {
  background-color: #FFF600;
}

/* 7日後：グレー背景、日付のみを表示 */
.list-cards-image .new-badge.date-only {
  background-color: transparent;
  box-shadow: none;
}

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

/* 情報部分 */
.list-cards-info {
  flex: 1;
  padding: 16px;
  font-size: 12px;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-cards-info .maker-heading {
  display: flex;
  gap: 2px;
  align-items: center;
}

.list-cards-info .maker-heading span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  background-color: #ea5413;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}

/* 各行共通 */
.list-cards-info p {
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* メーカー名 */
.list-cards-info .maker {
  /* font-weight: bold; */
}

/* 車名（詳細情報付き） */
.list-cards-info .car-name {
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
  height: calc(1.4em * 2); /* 2行分の高さに固定 */
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最大2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  color: #003a6b;
}

/* 車の詳細情報 */
.list-cards-info .car-details {
  font-size: 11px;
  color: #666;
  font-weight: normal;
  line-height: 1.3;
}

/* ラベル＋値＋単位 のセット */
.list-cards-info .info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  /*overflow: hidden;*/
  text-overflow: ellipsis;
  height: 18px;
  /* height: unset; */
}

/* ラベル部分 */
.list-cards-info .label {
  flex-shrink: 0;
  color: #555;
  min-width: 60px;
}

/* 取得値部分 */
.list-cards-info .value {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 単位部分 */
.list-cards-info .unit {
  flex-shrink: 0;
}

/* 金額部分、走行距離は少し大きく */
.list-cards-info .info-line.price .value,
.list-cards-info .info-line.price .substance,
.list-cards-info .info-line.total .value,
.list-cards-info .info-line.total .substance {
  font-size: 18px;
  font-weight: bold;
}
.list-cards-info .info-line.distance .value {
  font-size: 12px;
  font-weight: 400;
}
@media screen and (max-width: 768px) {
  .list-cards-info .info-line.price .value,
  .list-cards-info .info-line.price .substance,
  .list-cards-info .info-line.total .value,
  .list-cards-info .info-line.total .substance {
    font-size: 18px;
    font-weight: bold;
  }
  .list-cards-info .info-line.distance .value {
    font-size: 12px;
    font-weight: 400;
  }
}
.list-cards-info .info-line.total .value {
  color: #ea1313;
}
.list-cards-info .info-line.price .substance,
.list-cards-info .info-line.total .substance {
  color: #ea1313;
}
.list-cards-info .info-line.price .value,
.list-cards-info .info-line.price .substance,
.list-cards-info .info-line.total .value,
.list-cards-info .info-line.total .substance,
.list-cards-info .info-line.year .value,
.list-cards-info .info-line.distance .value,
.list-cards-info .info-line.shop .value {
  margin-left: auto;
}

.list-cards-info .info-line.shop .value {
  text-align: right;
}

.more-list-cards-link {
  margin-left: auto;
  margin-top: 30px;
  font-size: 16px;
}
.more-list-cards-link a {
  color: #000;
  text-decoration: none;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.more-list-cards-link a img {
  width: 24px;
}

/* 下部ドロップダウン・ページネーション */
.cars__index-controls {
  margin-top: 40px;
  margin-bottom: 30px;
}

.cars__index-controls .flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.display-count select {
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}

.pagination a {
  margin: 0 4px;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}

.pagination a.current {
  background: #ff5500;
  color: #fff;
}

/*  */
.cars__index-filtertype-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
  padding-bottom: 80px;
}
@media screen and (max-width: 768px) {
  .cars__index-filtertype-container {
    padding: 0 20px 30px 20px;
  }
  .makerlist-wrapper .cars__index-filtertype-container.footer-refine-links {
    padding-left: 0;
    padding-right: 0;
  }
}
.cars__index-filtertype {
  /* background: #f6f6f6; */
  padding: 12px 20px;
  border-radius: 8px;
}
@media screen and (max-width: 768px) {
  .cars__index-filtertype {
    /* background: #f6f6f6; */
    padding: 12px 0;
    border-radius: 8px;
  }
}
.filtertype-box {
  display: flex;
  width: 100%;
  padding: 18px 20px;
  background: #f6f6f6;
  gap: 20px;
  border-radius: 8px;
}
.filtertype-heading {
  font-size: 12px;
  font-weight: 700;
  /* white-space: nowrap; */
  width: 228px;
  min-width: 160px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
}
.filtertype-heading::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ff5500;
}
.filtertype-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: left;
  flex: 1;
}
.filtertype-list li {
  list-style: none;
  position: relative;
}
.filtertype-list li a {
  font-size: 10px;
  display: flex;
  color: #003a6b;
  width: 60px;
  text-decoration: none;
}
.filtertype-list li a:hover {
  font-weight: 500;
}
.filtertype-list li::after {
  /* content: "|"; */
  margin-left: 16px;
  color: #ccc;
  position: absolute;
  right: 10px;
  top: 0;
}
.filtertype-box.bodytype .filtertype-list li a {
  width: 112px!important;
}
.filtertype-box.other .filtertype-list li a {
  width: 108px!important;
}

/* フッター絞り込み：タイトル上・タグ下。外枠は白、各タグは薄グレー（一覧・メーカー車種・詳細の共通ブロック） */
.cars__index-filtertype-container .filtertype-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  box-sizing: border-box;
}
.cars__index-filtertype-container .filtertype-heading {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
}
.cars__index-filtertype-container .filtertype-heading::before {
  border-radius: 2px;
  margin-top: 5px;
}
.cars__index-filtertype-container .collapsible {
  width: 100%;
}
.cars__index-filtertype-container .filtertype-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
  flex: none;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cars__index-filtertype-container .filtertype-list--prefectures {
  gap: 16px;
}
.cars__index-filtertype-container .filtertype-list li {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
  width: auto;
  background: transparent;
  border: none;
}
.cars__index-filtertype-container .filtertype-list li::after {
  display: none;
  content: none;
}
.cars__index-filtertype-container .filtertype-box.bodytype .filtertype-list li a,
.cars__index-filtertype-container .filtertype-box.other .filtertype-list li a,
.cars__index-filtertype-container .filtertype-box .filtertype-list li a {
  width: auto !important;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  background: #eeeeee;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  color: #222;
  text-decoration: none;
}
.cars__index-filtertype-container .filtertype-box .filtertype-list--prefectures li a {
  padding: 8px 14px;
}
.cars__index-filtertype-container .filtertype-list li a:hover {
  opacity: 0.9;
}
.cars__index-filtertype-container .filtertype-more {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}
.cars__index-filtertype-container .filtertype-more .more-btn {
  background: transparent;
  border: none;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
}
.footer-refine-links .number-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/*
 * CSR で件数を取得するまでの暫定状態。footer-refine-counts.js が完了後に
 * data-fr-pending を外し、disabled (number-item--disabled) または通常リンクに切り替える。
 *
 * 設計意図:
 *  - disabled（opacity を落とすグレーアウト）と視覚的に明確に区別する必要がある。
 *    両方 opacity だけで表現すると「0 件なのか取得中なのか」が判別不能になるため、
 *    pending は「不透明 + 薄い青グレーのスケルトン色 + 回転スピナー + 背景パルス + 斜めシマー」で表現する。
 *  - スピナーは疑似要素ではなく実要素（.footer-refine-loading-spinner）にし、
 *    シマー用 ::after の下に隠れて動きが見えない問題を避ける。
 *  - クリック・キーボード操作不可は維持（pointer-events: none + tabindex="-1"）。
 *  - prefers-reduced-motion 環境では回転・シマー・パルスを止め、静止スピナーとスケルトン色で区別する。
 */
.footer-refine-loading-spinner {
  display: none;
}
.footer-refine-links .number-item--loading {
  opacity: 1;
  cursor: wait;
  pointer-events: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #eef2f7;
  overflow: hidden;
  isolation: isolate;
  animation: footer-refine-loading-bg-pulse 1.6s ease-in-out infinite;
}
.footer-refine-links .number-item--loading .footer-refine-loading-spinner {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid #b4c0d0;
  border-top-color: #5a7a9e;
  border-radius: 50%;
  transform-origin: center center;
  animation: footer-refine-loading-spin 0.75s linear infinite;
  position: relative;
  z-index: 2;
}
.footer-refine-links .number-item--loading .text {
  color: #9aa6b5;
  position: relative;
  z-index: 2;
}
/* 上を流れる斜めシマー（::after）。スケルトン背景と十分なコントラストで明確に動きが見えるよう、
 * 半透明白を斜めグラデーションで動かす。disabled には絶対に出ない動的表現。 */
.footer-refine-links .number-item--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position: -100% 0;
  animation: footer-refine-loading-shimmer 1.2s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes footer-refine-loading-shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes footer-refine-loading-spin {
  to { transform: rotate(360deg); }
}
@keyframes footer-refine-loading-bg-pulse {
  0%,
  100% {
    background-color: #eef2f7;
  }
  50% {
    background-color: #dde5ef;
  }
}
@media (prefers-reduced-motion: reduce) {
  /*
   * モーション減弱環境ではアニメを止めるが、背景色とスピナー（静止の欠け円）は残して、
   * disabled（淡いグレーアウト）との視覚的差別化を維持する。
   */
  .footer-refine-links .number-item--loading {
    animation: none;
  }
  .footer-refine-links .number-item--loading::after {
    animation: none;
    background-image: none;
  }
  .footer-refine-links .number-item--loading .footer-refine-loading-spinner {
    animation: none;
    border-top-color: #5a7a9e;
    border-right-color: #5a7a9e;
  }
}
/* JS 無効時のフォールバック: pending リンクは恒久的に「読み込み中」表示で残ってしまうため、
 * <html class="no-js"> 環境では disabled に近い静止表示に倒す（href は維持してクローラに href を見せる）。
 * ※ html:not(.has-js) は使わない（has-js 未付与だと常時アニメ停止になるため）。 */
.no-js .footer-refine-links .number-item--loading {
  cursor: not-allowed;
  animation: none;
}
.no-js .footer-refine-links .number-item--loading .footer-refine-loading-spinner,
.no-js .footer-refine-links .number-item--loading::after {
  animation: none;
  background-image: none;
}

/* 画面外のフッター絞り込みセクションはレンダリングを遅延し、初期描画コストを抑える。
 * contain-intrinsic-size の auto + 概算高さで、スクロールバー長・スクロール位置の飛びを防ぐ
 * （画面内に入ると実寸で描画され、auto により直前の実寸が記憶される）。 */
.footer-refine-links .footer-refine-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

/*
 * SP：フッター絞り込みは従来の filtertype と同型
 * （.filtertype-list li 幅48% の2列・灰 #f6f6f6 外枠・白セル・青リンク・もっと見る）
 * HTML は .number-item のため、ここで li 相当の見た目を当てる。SimpleBar 無しで nth-child アコーディオンが効く。
 */
@media screen and (max-width: 768px) {
  .footer-refine-links .footer-refine-section .search-list-box.mb-24 {
    padding: 16px;
    gap: 10px;
    background: #f6f6f6;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }
  .footer-refine-links .category-header {
    margin-bottom: 0;
    justify-content: flex-start;
  }
  .footer-refine-links .category-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 3px;
    margin-right: 8px;
  }
  .footer-refine-links .category-header .group-car {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    line-height: 1.45;
    margin-right: auto;
  }
  .footer-refine-links .collapsible {
    width: 100%;
  }
  .footer-refine-links .footer-refine-number-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px 7px;
    justify-content: left;
    flex: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    padding-left: 0;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
  }
  .footer-refine-links .footer-refine-number-flex > .number-item {
    width: 48%;
    box-sizing: border-box;
    border: 1px solid #fff;
    padding: 5px;
    margin: 0 !important;
    background: #fff;
    min-height: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
  }
  .footer-refine-links .footer-refine-number-flex > .number-item .text {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 400;
    color: #003a6b;
    white-space: normal;
    text-align: center;
  }
  .footer-refine-links .footer-refine-number-flex > a.number-item:hover .text {
    font-weight: 500;
  }
  .footer-refine-links .number-item--disabled .text {
    color: #666;
  }
  /* SP: pending リンクの skeleton 表示。
   * SP の .number-item には background: #fff が当たっており、PC で指定した
   * skeleton 背景色を上書きしてしまうため、SP 側でも明示的に skeleton 色を当てる。 */
  .footer-refine-links .footer-refine-number-flex > .number-item--loading {
    background: #eef2f7;
    border-color: #eef2f7;
  }
  .footer-refine-links .number-item--loading .text {
    color: #9aa6b5;
  }
  .footer-refine-links .filtertype-more {
    margin-top: 8px;
  }
  .footer-refine-links .filtertype-more .more-btn {
    width: 100%;
    background: #eeeeee;
    border: none;
    font-size: 10px;
    font-weight: 600;
    padding: 5px;
    color: #333;
  }
}

@media screen and (min-width: 769px) {
  .cars__index-filtertype-container .collapsible .filtertype-more {
    display: none;
  }
}

.collapsible {
  width: 90%;
}

.line.foldable {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.line.foldable.expanded {
  max-height: 2000px; /* 必要に応じて十分な値に */
  opacity: 1;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  /* padding/margin は復元しない方が確実 */
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option input {
  display: none; /* 本物のチェックボックスは非表示 */
}

.color-box {
  width: 28px;
  height: 28px;
  border: 2px solid #ccc;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* 選択されたときに強調 */
.color-option input:checked + .color-box {
  border: 3px solid #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 768px) {
  /* パンくずの高さを詰める（車両一覧SP） */
  .breadcrumb {
    padding: 0;
  }
  .breadcrumb .inner {
    padding: 6px 20px;
  }
  .breadcrumb ol {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .cars__index-list-heading {
    margin-top: 0px;
    padding-top: 1rem;
  }
  .filter-toggle-btn {
    display: block;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    padding: 10px 20px;
    /* text-align: left; */
    width: 40%;
    background-color: #eeeeee;
    border-left: 2px solid #fff;
  }

  .filter-overlay.active {
    right: 0;
  }

  .filter-close-btn {
    /* border: none; */
    font-size: 34px;
    /* position: absolute; */
    /* top: 12%; */
    /* top: 286px; */
    /* background: #f6f6f6; */
    cursor: pointer;
    color: #666;
    /* width: 32px; */
    /* height: 32px; */
    font-weight: 400;
  }

  /* PCでは非表示 */
  .filter-overlay,
  .filter-toggle-btn {
    /* display: flex; */
    /* align-items: center; */
    justify-content: center;
    font-weight: bold;
  }
  .cars__index-list-heading.pc {
    display: none;
  }
  .cars__index-list-heading.sp {
    display: block;
  }
  .list-cards-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .filter-box.pc {
    display: none;
  }
  .sp-fliter {
    background-color: #eeeeee;
  }
  .sp-fliter h2 {
    width: 70%;
    padding: 10px 20px;
    font-size: 16px;
  }
  .filter-panel h2 {
    width: 100%;
    padding: 0;
    font-size: 16px;
    border-bottom: 1px solid #000;
    line-height: 52px;
  }
  .filter-toggle-btn span {
    color: #131B3C;
    margin-left: 5px;
    font-weight: bold;
  }
  .filter-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    padding-top: 44px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.4s ease;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }
  .sp_filter_bodytype {
    border-top: 1px dotted #000;
    padding: 10px 0;
  }

  .search-form .column {
    padding: 10px 0;
  }
  .car-search-form .line {
    border-bottom: none;
  }

  .filter-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: #eee;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .filter-panel > .filter-close-btn,
  .filter-panel > h2 {
    flex-shrink: 0;
  }

  .filter-panel > form.car-search-form {
    /* フォームをパネルの左右端まで広げ、入力欄側だけに余白を戻す。 */
    margin-inline: -20px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .filter-panel .search-form.sp-navi {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .filter-panel .search-basic {
    padding-inline: 20px;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-buttons {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    margin-top: auto;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .search-form {
    overflow-x: unset;
  }
  .line.foldable {
    opacity: 1;
    max-height: max-content;
  }
  .hb-left,
  .hb-right {
    margin: 10px 0 0;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
    flex-direction: row;
  }
  .hb-left {
    width: 100%;
  }
  .hb-right {
    margin-left: auto;
    margin-bottom: 8px;
  }
  /* } */
  .hb-left-p {
    font-weight: bold;
    font-size: 24px;
    margin-right: auto;
  }
  .hb-left-span2 {
    font-weight: normal;
    font-size: 12px;
    margin-right: 8px;
  }
  .heading-box select {
    padding: 6px 12px;
    font-size: 12px;
  }

  .heading-box {
    padding: 0px 20px;
    flex-direction: column;
  }
  .heading-box .pagination {
    justify-content: center;
  }
  .cars__index-controls {
    padding: 0 22px;
  }
  .list-cards-info {
    padding: 16px 7px;
    font-size: 10px;
  }
  .search-title {
    display: none;
  }
  .filtertype-box {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  select {
    background-color: #fff;
    color: #000;
  }
  .filtertype-list {
    padding-left: 0;
    justify-content: center;
  }
  .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;
  }
  .filtertype-more button {
    width: 100%;
    background: #eeeeee;
    border: none;
    font-size: 10px;
    padding: 5px;
  }
  .filtertype-box.bodytype .filtertype-list li a {
    width: 100%;
  }

  /* フッター絞り込み：SPのみ従来見た目（グレー枠・白セル・青リンク）。見出し文言はBladeのまま */
  .cars__index-filtertype-container .filtertype-box {
    padding: 16px;
    gap: 10px;
    background: #f6f6f6;
    border: none;
    border-radius: 8px;
  }
  .cars__index-filtertype-container .filtertype-heading {
    font-size: 12px;
    font-weight: 700;
    color: #333;
  }
  .cars__index-filtertype-container .filtertype-heading::before {
    border-radius: 50%;
    margin-top: 3px;
  }
  .cars__index-filtertype-container .filtertype-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 7px;
    justify-content: left;
    flex: 1;
    padding-left: 0;
  }
  .cars__index-filtertype-container .filtertype-list--prefectures {
    gap: 7px 7px;
  }
  .cars__index-filtertype-container .filtertype-list li {
    width: 48%;
    border: 1px solid #fff;
    padding: 5px;
    background: #fff;
    box-sizing: border-box;
  }
  .cars__index-filtertype-container .filtertype-box.bodytype .filtertype-list li a,
  .cars__index-filtertype-container .filtertype-box.other .filtertype-list li a,
  .cars__index-filtertype-container .filtertype-box .filtertype-list li a {
    width: 100% !important;
    max-width: none;
    min-height: 0;
    padding: 4px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 400;
    color: #003a6b;
    text-decoration: none;
  }
  .cars__index-filtertype-container .filtertype-box .filtertype-list--prefectures li a {
    padding: 4px 2px;
  }
  .cars__index-filtertype-container .filtertype-list li a:hover {
    opacity: 1;
    font-weight: 500;
  }
  .cars__index-filtertype-container .filtertype-more {
    margin-top: 8px;
  }
  .cars__index-filtertype-container .filtertype-more .more-btn {
    width: 100%;
    background: #eeeeee;
    border: none;
    font-size: 10px;
    font-weight: 600;
    padding: 5px;
    color: #333;
  }
}

/* PC時は非表示に */
@media screen and (min-width: 769px) {
  .filter-toggle-btn,
  .filter-overlay {
    display: none;
  }
  .price-box.pc {
    display: block;
  }
  .price-box.sp {
    display: block;
  }
}

.pagination-row {
  margin-top: 0;
  width: 100%;
  text-align: right;
}

.pagination-all a {
  font-size: 12px;
  font-weight: 600;
  background-color: #cacaca;
  color: #fff;
  border-radius: 4px;
}

.pagination-all {
  padding: 0 0 10px;
  text-align: right;
}
@media screen and (max-width: 768px) {
  .pagination-all {
    padding: 0 20px 10px;
    text-align: right;
  }
}
.pagination-all span.current {
  font-size: 12px;
  font-weight: 600;
  background-color: #131B3C;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
}

.pagination-all span {
  font-size: 12px;
  font-weight: 600;
  background-color: #cacaca;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
}
button#toggleAdvanced {
  border: none;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
button#closeAdvanced {
  border: none;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
}

/* スマホ：閉じているときは5件目以降を非表示 */
@media (max-width: 768px) {
  .collapsible:not(.is-open) .filtertype-list li:nth-child(n + 5) {
    display: none;
  }
  .footer-refine-links .collapsible:not(.is-open) .footer-refine-number-flex > .number-item:nth-child(n + 5) {
    display: none;
  }
  .collapsible .filtertype-more {
    text-align: center;
    margin-top: 8px;
  }
  


  /* PC：常に全部表示。ボタンは非表示 */
  @media (min-width: 769px) {
    .collapsible .filtertype-more {
      display: none;
    }
  }
}

@media (max-width:394px) {
  /* .filter-panel {padding-top: 420px;} */
  .filter-close-btn{
    top: 30%;
  }
}

 /* 详情页区域表格样式 */
 .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;
}


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

.info-line.price .value {
    color: #ea1313;
}
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;
  }
}

.search-basic{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.advancedFiltersPc{
  flex-direction: column;
  gap: 1.5rem;
}

.grid{
  display: grid;
  grid-column-gap: 0.75rem;
  grid-row-gap: 0.75rem;
}

.grid.car-info{
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, 1fr);
}

@media screen and (min-width: 769px) {
  .grid.car-info .pull-down.div1 select,
  .grid.car-info .pull-down.div2 select,
  .grid.car-info .pull-down.div3 select,
  .grid.car-info .pull-down.div4 select {
    width: 100%;
    min-width: 0;
  }
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 2 / 1 / 3 / 2; }
.div4 { grid-area: 2 / 2 / 3 / 3; }
.div5 { grid-area: 3 / 1 / 4 / 3; }
.div6 { grid-area: 4 / 1 / 5 / 3; }
.div7 { grid-area: 5 / 1 / 6 / 3; }
.div8 { grid-area: 6 / 1 / 7 / 3; }

.div1,
.div2,
.div3,
.div4,
.div5,
.div6,
.div7,
.div8 { display: flex; gap:1rem; }

.div1 div,
.div2 div,
.div3 div,
.div4 div,
.div5 div,
.div6 div,
.div7 div,
.div8 div { flex:1; }

/* 中古車検索（cars/index）のボディタイプ欄のみ。.grid + .body-type の組は他に無し */
.grid.body-type {
  grid-template-columns: auto auto;
}
.grid.others1{
  grid-template-columns: auto auto;
  grid-template-rows: repeat(3, 1fr);
}
.grid.sheet{
  grid-template-columns: auto auto;
  grid-template-rows: repeat(5, 1fr);
}
.grid.others{
  grid-template-columns: auto;
  grid-template-rows: repeat(5, 1fr);
}
.grid.basic{
  grid-template-columns: auto auto auto;
  grid-template-rows: repeat(4, 1fr);
}

.grid.safety{
  grid-template-columns: auto auto auto;
  grid-template-rows: repeat(5, 1fr);
}

.grid.dress-up {
  grid-template-columns: auto;
  grid-template-rows: repeat(4, 1fr);
}

.up-down{
  display: flex;
  gap: 1rem;
}
.up-down div{
  flex: 1;
}

.grid.pull-down3{
  grid-template-columns: auto auto;
  grid-template-rows: repeat(3, 1fr);
}

.grid.pull-down3 > div{
  grid-template-columns: 6em auto;
  grid-template-rows: repeat(1, 1fr);
  display: grid;
  grid-column-gap: 0.75rem;
  grid-row-gap: 0.75rem;
  grid-auto-flow: column;
}
.grid.pull-down3 label{
  display:block;
}
.grid.pull-down3 select{
  width: 100%;
}

.grid.pull-down5{
  grid-template-columns: auto;
  grid-template-rows: repeat(3, 1fr);
}
.grid.pull-down5 > div{
  grid-template-columns: 8em auto;
  grid-template-rows: repeat(1, 1fr);
  display: grid;
  grid-column-gap: 0.75rem;
  grid-row-gap: 0.75rem;
  grid-auto-flow: column;
}
.grid.pull-down5 label{
  display:block;
}
.grid.pull-down5 select{
  width: 100%;
}

.pull-down4{
  grid-template-columns: 3em auto;
  grid-template-rows: repeat(1, 1fr);
  display: grid;
  grid-column-gap: 0.75rem;
  grid-row-gap: 0.75rem;
  grid-auto-flow: column;
}

.sp-navi .column > div {
    width: 100%;
}

.sp-free-Word {
  width: calc(100% - 8em - .5rem);
  height:40px;
}

/* 検索一覧（cars/index）セレクトの表示方針:
 * - レイアウトは可変にせず、旧来の固定幅クラスを優先
 * - 選択テキストが長い場合は省略表示（…）
 */
.cars__index-search-filter .search-basic .pull-down select.w90 {
  width: 90px;
}
.cars__index-search-filter .search-basic .pull-down select.w124 {
  width: 124px;
}
.cars__index-search-filter .search-basic .pull-down select.w120 {
  width: 120px;
}
.cars__index-search-filter .search-basic .pull-down select,
.cars__index-search-filter .search-basic .pull-down3 select,
.cars__index-search-filter .search-basic .pull-down4 select,
.cars__index-search-filter .search-basic .pull-down5 select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* グレードのプルダウン矢印が要素右外にはみ出る問題の修正。
 * グレードのラッパー div のみ flex:1 1 0% で行いっぱいに伸び、select(124px) より広がるため、
 * 矢印(.pull-down div::after; right:0.5rem)がselectの右端から離れて浮いていた。
 * 当該ラッパーだけ内容幅に収め（他フィールドは gap=0 のため影響なし）、矢印をselect右端に収める。 */
.cars__index-search-filter .search-basic .pull-down div:has(> #grade-select) {
  flex: 0 0 auto;
  width: fit-content;
}

.info-line p.value {
    color: #131B3C;
    font-size: 14px;
    font-weight: 600;
    float: right;
    width: 100%;
    text-align: right;
}

/* ---- index.css から複製（一覧カードの temotokuポイント ツールチップ等） ---- */



.info-line.shop .value {
  color: #003a6b;
  text-align: right;
}


.commons-image .new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #131B3C;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


.commons-image .new-badge.with-new {
  background-color: #FFF600;
}


.commons-image .new-badge.date-only {
  background-color: transparent;
  box-shadow: none;
}

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

.commons-image .new-badge .new-date {
  display: block;
  font-size: 11px;
  font-weight: normal;
}

.commons-info .maker-heading {
  display: flex;
  gap: 2px;
  align-items: center;
}

.commons-info .maker-heading span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  background-color: #ea5413;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}

@media screen and (max-width: 768px) {
.point-line-cus .label-new.temopoint {
      width: auto;
  }
}


.commons-info .info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
 /* overflow: hidden;*/
  text-overflow: ellipsis;
  height: 18px;
  min-width: 0;
}


.commons-info .info-line.shop .value {
  display: block;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}


.commons-info .info-line.price .value,
.commons-info .info-line.price .substance,
.commons-info .info-line.total .value,
.commons-info .info-line.total .substance {
  font-size: 18px;
  font-weight: bold;
}

.commons-info .info-line.distance .value {
  font-size: 12px;
  font-weight: 400;
}

@media screen and (max-width: 768px) {
.commons-info .info-line.price .value,
  .commons-info .info-line.price .substance,
  .commons-info .info-line.total .value,
  .commons-info .info-line.total .substance {
    font-size: 18px;
  }
.commons-info .info-line.distance .value {
    font-size: 12px;
    font-weight: 400;
  }
}

.commons-info .info-line.total .value {
  color: #ea1313;
}

.commons-info .info-line.price .substance, 
.commons-info .info-line.total .substance {
  color: #ea1313;
}

.commons-info .info-line.price .value,
.commons-info .info-line.price .substance,
.commons-info .info-line.total .value,
.commons-info .info-line.total .substance,
.commons-info .info-line.year .value,
.commons-info .info-line.distance .value,
.commons-info .info-line.shop .value {
  margin-left: auto;
}


.commons-info .info-line.price .value,
.commons-info .info-line.price .substance,
.commons-info .info-line.total .value,
.commons-info .info-line.total .substance,
.commons-info .info-line.point-custom .value,
.commons-info .info-line.distance .value,
.commons-info .info-line.year .value {
  flex: 0 1 auto;
  text-align: right;
}

@media (min-width: 769px) {
.label-new .tooltip-content {
    top: -163px;
    right: -89px;
    width: 220px;
    padding: 12px;
  }
.label-new p.tooltip-content {
      font-size: 11px;
  }
.label-new .tooltip-content::before {
    right: 93px;
  }
}

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

.info-line.price .value {
    color: #ea1313;
}

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

@media screen and (max-width: 768px) {
span.label.temopoint {
    padding: 2px 6px;
    border-radius: 3px;
  }
.commons-info .info-line {
    height: unset;
  }
}


.label-new .tooltip-content {
    position: absolute;
    background: #fff;
    border: 1px solid #ff5a1f;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 10;
}

.label-new .tooltip-content::before {
    content: "";
    position: absolute;
    bottom: -13px;
    
    border-width: 13px 6px 0 6px;
    border-style: solid;
    border-color: #ff5a1f transparent transparent transparent;
}

.label-new .tooltip-wrap:hover .tooltip-content {
    display: block;
}

.label-new.temopoint {
    position: relative;
    display: flex;
    gap: 5px;
    background-color: #ea5413;
    color: #fff;
    padding: 2px 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    
}

p.tooltip-content {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.label-new .tooltip-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    color: #ea5413;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    line-height: 2;
    font-weight: 800;
}

.label-new p.value {
    color: #ea5413;
    font-size: 14px;
    font-weight: 600;
}

.label-new strong.gdgdgd {
    color: #de5012;
}

.label-new span.wuerf {
    display: inline-flex;
    padding-bottom: 5px;
}

.info-line p.value {
    color: #ea5413;
    font-size: 14px;
    font-weight: 600;
    float: right;
    width: 100%;
    text-align: right;
}

/* ---- 店舗在庫検索ページ専用の調整 ---- */

/* メニュータブ: 本ページではタブがリンク（<a>）のため li のタブ見た目を継承させる */
.shop-cars-tabbar .shop-contents-tab li a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* 地域フィルタ非搭載により PC 検索フォームの 2 行目（グレード横）が空くため、
   グレードを 2 行目全幅にして空セルを作らない */
.grid.car-info .pull-down.div3 {
  grid-area: 2 / 1 / 3 / 3;
}

/* タブ帯と検索フォームの間隔 */
.shop-cars-tabbar {
  margin-bottom: 8px;
}

/* ---- index.css から複製（フッター絞り込みリンク集のグリッド見た目） ---- */

.search-list-box {
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.search-list-box.mb-24 {
  margin-bottom: 20px;
}

.search-list-box.w-half {
  width: 50%;
}

.search-list-box-col2 {
  display: flex;
  flex-direction: row;
  gap: 20px;
  /* margin-bottom: 24px; */
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 20px;
  gap: 2px;
  color:#333;
}

.category-header span {
  font-size:14px
}

.group-car {
  margin-right: auto;
}

.number-flex {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.number-item {
  background: #eeeeee;
  color: #000;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.number-item:hover {
  background: #FFF600;
  color: #131B3C;
}

.number-item .text {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.number-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.number-item--disabled:hover {
  background: #eeeeee;
  color: #000;
}

@media screen and (max-width: 768px) {
.search-list-box {
    border: none;
    padding: 0;
    overflow: hidden; /* 子の横はみ出しをページに伝播させない */
  }
.number-flex {
    flex-wrap: nowrap;
  }
/* このブロックだけ横スクロール。画面幅でクリップし、他セクションへ影響させない */
  .number-flex.scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
.number-item {
    margin: 0 10px 0 0;
  }
.search-list-box-col2 {
    flex-direction: column;
  }
.search-list-box.w-half,
  .search-area-list.w-half {
    width: 100%;
  }
.category-header {
    margin-bottom: 0;
  }
}
/* index.css の .dot（カテゴリ見出しのオレンジドット）を複製 */
.category-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
  background: #131B3C;
}

/* ---- index.css 1-36 行から複製: 中央寄せコンテナ（.inner_pt1/2/3）。
   /cars と同じ余白・センタリング（一覧・フッターリンク集 = 1020px、
   オレンジ「中古車検索について」= 800px）を本ページにも適用する。
   shop-detail.css の .inner_pt2 (1020px) より後に読み込まれるため本定義が勝つ。 ---- */
.inner_pt1 {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.inner_pt2 {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
.inner_pt3 {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .inner_pt1 {
    padding-left: 0px;
    padding-right: 0px;
  }
  .inner_pt2 {
    padding-left: 12px;
    padding-right: 12px;
  }
  .inner_pt3 {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ---- index.css 4329-4480 行から複製: オレンジ「中古車検索について」セクションの
   上下余白と PAGETOP ボタン（/cars と同じ見た目）。
   shop-detail.css の .pagetop は店舗詳細ページの別マークアップ（div.pagetop > a）向けで
   width:100% / translateY(-100%) / left:unset !important を持つため、
   本ページの /cars 型マークアップ（a.pagetop）には left を !important で上書きして適用する。 ---- */
.about-section {
  background-color: #131B3C;
  padding: 64px 0;
  position: relative;
}
a.pagetop {
  position: absolute;
  top: -40px;
  left: auto !important;
  right: max(0px, calc(50% - 510px));
  transform: none;
  width: auto;
  background-color: #131B3C;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 24px;
  height: 40px;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
a.pagetop:hover {
  background-color: #131B3C;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .about-section {
    background-color: #131B3C;
    padding: 32px 0;
    position: relative;
    /* SPではPAGETOPをセクション内に収め、前セクションとの重なりを防ぐ（index.css と同じ） */
    padding-top: 56px;
  }
  a.pagetop {
    position: absolute;
    right: 20px;
    transform: none;
  }
}
