/* ユーリティクラス */
.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 #ea5413;
  border-bottom: 2px solid #ea5413;
  transform: rotate(45deg) translateY(-60%) translateX(-60%);
}
.pull-down select {
  -webkit-appearance: none;
  appearance: none;
}

.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;
}

.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: #ea5413;
  font-size: 14px;
  padding: 5px 30px 6px;
}
@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;
}

@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: white;
  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: #ea5413;
}

/* 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: #ea5413; */
}
.list-cards-info .info-line.price .substance,
.list-cards-info .info-line.total .substance {
  color: #ea5413;
}
.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;
}

.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;
  gap: 16px;
  margin-bottom: 0px;
  padding-bottom: 80px;
}
@media screen and (max-width: 768px) {
  .cars__index-filtertype-container {
    padding: 0 20px 30px 20px;
  }
}
.cars__index-filtertype {
  /* background: #f6f6f6; */
  padding: 20px 20px;
  border-radius: 8px;
}
@media screen and (max-width: 768px) {
  .cars__index-filtertype {
    /* background: #f6f6f6; */
    padding: 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;
}
.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;
}
.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) {
  .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 {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* max-width: 400px; */
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.4s ease;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

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

  .filter-panel {
    padding: 20px;
  }

  .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: #ffa100;
    margin-left: 5px;
    font-weight: bold;
  }
  .filter-overlay {
    position: fixed;
    padding-top: 44px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }
  .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 {
    position: relative; /* これが基準になる */
    background: #eee;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 6rem; /* ← ボタン高さの余白を確保 */
    /* padding-top: 11rem; */
    /* padding-top: 320px; */
  }

  .filter-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
  }
  .search-form {
    overflow-x: scroll;
  }
  .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%;
  }
}

/* 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: #ea5413;
  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;
  }
  .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: #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;
  }
}

.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-auto-flow: column;
}

.grid.car-info{
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, 1fr);
}
.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; }

.grid.body-type{
  grid-template-columns: auto auto;
  grid-template-rows: repeat(6, 1fr);
}
.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;
}