@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: 12px;
  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;
}
/* ========================================
   SP版（上書き）
   ======================================== */
@media screen and (max-width: 768px) {
.brand-index {
  margin: 0;
  border-top: 1px solid #ddd;
  padding-bottom: 0;
}
/* アコーディオン見出し */
.brand-index .heading {
  display: flex !important;
  justify-content: space-between;
  padding: 0 1em;
  margin: 0;
  height: 4em;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  position: relative;
  background: #FFF;
  cursor: pointer;
}
.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%;
}
.brand-index__list li a[title="その他"] {
  font-size: 10px;
}
.brand-index__list li:last-child {
  border-right: none;
}
}

/* 各ページの調整 */
[data-displaymode="sp"] #brands_sec h2{
  border:none;
}

