@charset "UTF-8";
/**
 * ブランドインデックスナビ 共通CSS
 * - ページ非依存の純粋なナビゲーションスタイル
 * - 検索ページとブランド一覧ページで共通利用
 * - PC/SP対応
 */
/* ========================================
   PC版（基本スタイル）
   ======================================== */
/* ブランドインデックスナビ（A-Z、ア行カ行） */
.brand-index {
  margin-bottom: 15px;
}
.brand-index__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-index__list.-alphabet > li{
  flex: 1;
}
.brand-index__list.-alphabet li:last-child {
  flex:1.7;
}
.brand-index__list li {
  font-weight: 600;
  border-left: 1px solid #e6e6e6;
}
.brand-index__list li:last-child {
  border-right: 1px solid #e6e6e6;
}
.brand-index__list a {
  display: flex;
  font-size: 13px;
  justify-content: center;
  align-items: center;
  height: 2em;
  padding: 0 .9em;
  text-decoration: none;
}
.brand-index__list a:hover {
  color: inherit;
  background-color: rgba(0,0,0,.1);
}
.brand-index__list a.is-disabled,
.brand-index__secondary-link.is-disabled {
  cursor: default;
  color: #ccc;
  pointer-events: none;
}
/* ブランド一覧ページ固有の調整 */
.brand-index {
  font-size: 13px;
}
.brand-index:last-child {
  margin-bottom: 0;
}
.brand-index__list a {
  height: 36px;
  padding: 0 13px;
}
/* アルファベットナビゲーション (A-Z) */
.brand-index__list.-alphabet li {
  box-sizing: border-box;
}
.brand-index__list.-alphabet a {
  width: 100%;
  text-align: center;
  padding: 0;
}
/* 2段階ナビゲーション（アイウエオ） */
.brand-index__secondary-container {
  display: block;
  margin: 0 auto;
  max-height: 0;
  background-color: rgba(0,0,0,.05);
  transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.brand-index__secondary-container:has(.is-active) {
  max-height: 100px;
  margin-bottom: 20px;
  padding:10px;
}
.brand-index__secondary {
  display: none;
  margin: 0 auto;
  padding: 0 20px;
}
.brand-index__secondary.is-active {
  display: flex;
  max-height: 200px;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade .3s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.brand-index__secondary-link {
  display: flex;
  justify-content:center;
  align-items:center;
  width:3em;
  height:3em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}
.brand-index__secondary-link:hover {
  background: #666;
  color: white;
  border-color: #666;
  text-decoration: none;
}
/* ========================================
   インクリメントサーチ
   ======================================== */
.brand-item.-hidden,
.brand-alphabet-label.-hidden,
.group-heading.-hidden,
.brand-kana-label.-hidden,
.brand-group.-hidden {
  display: none !important;
}

.brand-search-box{
  margin-bottom:16px;
  position:relative;
}
.brand-search-box::before{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  color:#888;
  content:"search";
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20;
}
.brand-search-box input{
  box-sizing:border-box;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  outline: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;

  font-size:14px;
  font-weight:600;
  letter-spacing:.05em;
  height:2.8em;
  width:100%;
  padding-left:2.5em;
  background-color:#fafafa;
  border:1px solid #eee;
  border-radius:3px;
}
.brand-search-box input::placeholder{
  color:#999;
}
/* クリアボタン */
.brand-search-box .clearBtn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}
.brand-search-box .clearBtn::before{
  content:"cancel";
  font-family:'Material Symbols Outlined';
  font-size:24px;
  color:#fa7a46;
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 20;
}
.brand-search-box .clearBtn:hover::before{
  color:#333;
}
.-brand-searching .brand-search-box .clearBtn{
  opacity:1;
  pointer-events:auto;
}
/* 検索中のレイアウト調整 */
.-brand-searching .brand-group{
  margin-bottom:0 !important;
}
.-brand-searching #brands-list{
  margin-bottom:50px;
}
.-brand-searching .brandList-modal .brand-list-container{
  padding-top:30px;
}

/* 検索中はナビゲーション要素を非表示 */
.-brand-searching .brand-index-container,
.-brand-searching .search-by-brandranking_link,
.-brand-searching .brand_list_ranking{
  display:none;
}
/* 検索ページ */
.brandList-modal .brand-search-box input{
  background-color:#fff;
}

/* ========================================
   SP版（上書き）
   ======================================== */
@media screen and (max-width: 768px) {
.brand-index {
  margin: 0;
  border-top: 1px solid #eee;
  padding-bottom: 0;
}
/* アコーディオン見出し */
.brand-index .heading {
  display: flex !important;
  justify-content: space-between;
  padding: 0 1em;
  margin: 0;
  height: 50px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  position: relative;
  background: #FFF;
  cursor: pointer;
}
.brandList-modal .brand-index .heading{
  padding-left:1.2em;
  height:48px;
  font-size: 14px;
}
.brand-index .heading:after {
  content: "add";
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
  font-variation-settings:
  'FILL' 0,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24;
}
.brand-index .heading.open:after {
  content: "remove";
}
.brand-index__secondary-container:has(.is-active) {
  margin-left:15px;
  margin-right:15px;
}
/* ブランドインデックスリスト（アコーディオン化） */
.brand-index__list {
  justify-content: flex-start;
  max-height: 0;
  padding: 0 6px 0;
  overflow: hidden;
  margin: 0;
  gap: 5px;
  transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}
.brand-index__list.open {
  max-height: 180px;
  padding: 10px 10px 20px;
}
.brand-index__list li {
  height: 3em;
  background-color: #f0f0f0;
  border: none;
}
.brand-index__list.-alphabet li{
  flex:initial;
  width: calc((100% - 40px) / 9) !important;
}
.brand-index__list.-kana li {
  width: calc((100% - 30px) / 7);
}
.brand-index__list li a {
  padding: 0;
  width: 100%;
  height: 100%;
  font-size:12px;
}
.brand-index__list li a[title="その他"] {
  font-size: 10px;
}
.brand-index__list li:last-child {
  border-right: none;
}
  
/* インクリメントサーチ */
.brand-search-box{
  margin:16px;
}
.brand-search-box::before{
}
.brand-search-box input{
  background-color:#f5f5f5;
  border:none;
}
/* 検索ページ */
.brandList-modal .brand-search-box input{
  background-color:#f5f5f5;
}

}

/* 各ページの調整 */
[data-displaymode="sp"] #brands_sec h2{
  border:none;
}

