/* ****************************************************************************
   AFフィルター検索ページ
 **************************************************************************** */
 body {
  color: #333;
}

#ac-filter-search-page ul.maker-buttons {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px;
  padding: 0;
}
#ac-filter-search-page ul.maker-buttons .button {
    min-width: 80px;
    max-width: 160px;
    font-weight: bold;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    text-decoration: none;
    color: inherit;
  }
    /* メーカー毎の色 */
    #ac-filter-search-page ul.maker-buttons .button[data-maker="トヨタ"] { --color: #eb0a1e }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="レクサス"] { --color: #000 }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="ホンダ"] { --color: #c00 }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="日産"]  { --color: #777 }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="スバル"]  { --color: #2362a5 }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="マツダ"] { --color: #777 }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="ダイハツ"] { --color: #f00 }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="スズキ"] { --color: #0044aa }
    #ac-filter-search-page ul.maker-buttons .button[data-maker="三菱"] { --color: #f00 }
    #ac-filter-search-page ul.maker-buttons .button p {
      text-align: center;
      margin: 0;
    }
    #ac-filter-search-page ul.maker-buttons .button:hover {
      opacity: 0.7;
      cursor: pointer;
    }
    #ac-filter-search-page ul.maker-buttons .button.selected {
      box-shadow: 0px 0px 6px rgba(255, 80, 0, 1);
    }
      #ac-filter-search-page ul.maker-buttons .button p.ja {
        border-radius: 4px 4px 0 0;
        color: black;
      }
        #ac-filter-search-page ul.maker-buttons .button p.en {
          font-size: 0.8em;
          border-radius: 0 0 4px 4px;
          background-color: var(--color);
          color: white;
        }

/* 検索フォーム */
#ac-filter-search-page .search-form {
  margin-bottom: .5em;
}
#ac-filter-search-page .search-form .title {
  font-weight: bold;
  margin: 0 5px;
}
#ac-filter-search-page .search-form input {
  border-radius: 5px;
  border: 1px solid #ccc;
  margin: 0 5px;
  padding: .4rem .75rem;
  font-size: 1em;
  line-height: 1.5em;
}
#ac-filter-search-page .search-form input:focus {
  border-color: #4be;
  outline: 0;
  appearance: none;
  box-shadow: 0 0 0 .2rem #40b0e040;
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
#ac-filter-search-page .search-form button {
  font-size: 1rem;
}


/* 商品一覧テーブル */

#ac-filter-search-page #product-table {
  width: 100%;
  padding: 0 1em;
  font-size: 0.9rem;
  border-collapse: collapse;
}
#ac-filter-search-page #product-table td {
  border: 1px solid #ddd;
  padding: 1px 5px;
  word-break: normal;
}
/* <a>の表示を標準のスタイルにする */
#ac-filter-search-page #product-table td a {
  text-decoration: revert;
  color: revert;
}
#ac-filter-search-page #product-table td * {
  line-height: 1.2em;
}

#ac-filter-search-page #product-table thead tr td {
  font-weight: bold;
  color: white;
  border-bottom: 1px solid #888;
  background-color: #27ac8b;
}
/* メーカ名 */
#ac-filter-search-page #product-table thead tr td:nth-child(1) {
  white-space: nowrap;
}
/* 車名 */
#ac-filter-search-page #product-table thead tr td:nth-child(2) {
  min-width: 8em;
}
/* 車両型式 */
#ac-filter-search-page #product-table thead tr td:nth-child(3) {
  min-width: 6em;
}
/* AFシリーズ */
#ac-filter-search-page #product-table thead tr td:nth-child(4) {
  white-space: nowrap;
  background-color: #2894bb;
}
/* PFシリーズ */
#ac-filter-search-page #product-table thead tr td:nth-child(5) {
  white-space: nowrap;
  background-color: #e28800;
}
/* 純正品番・備考 */
#ac-filter-search-page #product-table thead tr td:nth-child(6) {
  min-width: 15em;
  background-color: #999;
}

#ac-filter-search-page #product-table tbody tr td:nth-child(1),
#ac-filter-search-page #product-table tbody tr td:nth-child(2) { background-color: #27ac8b08; }
#ac-filter-search-page #product-table tbody tr td:nth-child(3) {
  background-color: #27ac8b08;
  font-size: 85%;
}
#ac-filter-search-page #product-table tbody tr td:nth-child(4) { background-color: #2894bb20; }
#ac-filter-search-page #product-table tbody tr td:nth-child(5) { background-color: #e2880020; }
#ac-filter-search-page #product-table tbody tr td:nth-child(6) {
  background-color: #eee;
  font-size: 85%;
}

/* 車名の中のアルファベット部分 */
#ac-filter-search-page #product-table tbody tr td .vehicle_alpha {
  font-size: 75%;
  color: #aaa;
}

@media screen and (max-width: 599px) {
  #ac-filter-search-page #product-table td:nth-child(1) {
    /* メーカー名を隠す */
    display: none;
  }
  #ac-filter-search-page #product-table .vehicle_alpha {
    /* 車両のアルファベット名を隠す */
    display: none;
  }

  #ac-filter-search-page #product-table td {
    font-size: 0.8rem;
    padding: 2px;
  }
  #ac-filter-search-page .search-form {
    padding: 2px;
  }
  #ac-filter-search-page .search-form input {
    padding: .2em;
  }

  #ac-filter-search-page #filter-table {
    overflow-x: auto;
  }
  #ac-filter-search-page #filter-table #product-table {
    width: auto;
    min-width: 100%;
  }
  #ac-filter-search-page #product-table thead tr td:nth-child(2) { min-width: 8em; }
  #ac-filter-search-page #product-table thead tr td:nth-child(3) { min-width: 6em; }
  #ac-filter-search-page #product-table thead tr td:nth-child(4) { min-width: 5em; }
  #ac-filter-search-page #product-table thead tr td:nth-child(5) { min-width: 5em; }
  #ac-filter-search-page #product-table thead tr td:nth-child(6) { min-width: 10em; }
}
