@charset "UTF-8";
/*======================================================= 
  閲覧履歴用スタイル
=======================================================*/
/* リセットボタン */
.search-actions{
  text-align: right;
  padding-bottom: 20px;
}
.reset-btn{
  width: 200px;
  background-color: #454545;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
}

/* お気に入りボタン共通 */
.fav-btn{
  border:none;
  background:#fff;
}
.fav-btn .fav-icon::before{
  font-family: "Font Awesome 5 Free";
  content: '\f004';
  display: block;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.fav-btn--detail{
  width:auto;
  padding:0 14px;
  height:44px;
}
.fav-btn.is-active .fav-icon::before{
  font-weight: 900;
  color:#DF0716;
}

/* 車両カード */
.cars-item{
  background-color: #fff;
  box-shadow: 0 0 8px #adadad;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.card-inner{
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 15px;
}
.card-top{
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.car-tit{
  font-size: 20px;
  font-weight: bold;
}
.car-grade{
  font-size: 0.8em;
}
.car-info .tx-large{
  font-size: 2em;
}
.car-info dl{
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.car-info dl dd{
  text-align: right;
}
/* table */
table{
  margin-bottom: 15px;
}
table:not(.has-border-color) :where(th, td){
  border: 1px solid #000!important;
}
table tr:nth-of-type(2n+1){
  background-color: #fff!important;
}
table th{
  background-color: #eee!important;
}
/* cta */
.card-cta{
  display: flex;
  gap: 10px;
  justify-content: right;
}
.card-cta .contact-btn,
.card-cta .link-btn{
  width: 100%;
  max-width: 200px;
  display: block;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  padding: 10px 0;
}
.card-cta .contact-btn{
  background-color: #DF0716;
  padding-right: 10px;
}
.card-cta .link-btn{
  background-color: #828282;
}

/* メーカー、ボディタイプ、価格から探す */
.section-tit{
  background-color: #454545;
  color: #fff;
  font-size: 20px;
  padding: 15px;
}
.search-grid5{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 0;
}
.search-grid5 li{
  position: relative;
  padding-left: 1.2em;
}
.search-grid5 li::before{
  font-family: "Font Awesome 5 Free";
  content: '\f054';
  display: block;
  position: absolute;
  left: 0;
  top: 20%;
  font-weight: bold;
  color: #000;
}

/*1000px以下*/
@media screen and (max-width: 1000px){
  .card-cta .contact-btn,
  .card-cta .link-btn{
    font-size: 14px;
  }
  .search-grid5{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/*750px以下*/
@media screen and (max-width: 750px){
  .cars-item{
    padding: 15px;
  }
  .card-inner{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card-top{
    margin-bottom: 10px;
  }
  .car-tit{
    font-size: 16px;
    line-height: 1.2;
  }
  .car-info, .car-info p {
    font-size: 14px;
  }
  .total-price{
    line-height: 1.2;
    margin-bottom: 5px;
  }
  .car-info dl{
    gap: 5px;
  }
  .car-info dt{
    background-color: #d9d9d9;
    text-align: center;
  }
  .card-table{
    grid-column: 1 / -1;
  }
  .card-table table{
    margin-bottom: 10px;
  }
  .card-table tbody{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .card-table tr {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
  }
  .card-table tr:nth-child(2){
    border-right: 1px solid #000;
  }
  .card-table tr:nth-child(4),
  .card-table tr:last-child{
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
  }
  table:not(.has-border-color) :where(th, td) {
    border: none !important;
  }

  .search-grid5{
    grid-template-columns: 1fr 1fr;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .car-info dt,
  .car-info dd{
    font-size: 12px;
  }
  table th, table td{
    font-size: 12px;
    padding: 5px;
  }
}