/* ==========================================================================
   1. 取扱ブランド一覧 (トップ3列グリッド)
   ========================================================================== */
.contents {
    margin: 2rem auto 2rem !important;
}
.brand-top-heading {
    text-align: center;
}

.brand-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1cqw;
    margin-top: 5cqw;
    padding: 7cqw 3cqw;
    background-color: #f5f3f0;
}

/* カード全体を縦揃えにする */
.brand-top-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.brand-top-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brand-top-card__img {
    width: 80%;
    height: auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding-top: 2cqw;
}

.brand-top-card__img img {
    max-width: 100%;
    max-height: 100%;
}

/* タイトルエリアの高さを2行分で統一 */
.brand-top-card__title {
    padding: 1cqw 4cqw 1cqw 4cqw; /* 右側に矢印用の余白を確保 */
    font-size: 2.7cqw;
    font-weight: bold;
    line-height: 1.3; /* 行間調整 */
    height: 9cqw; /* 2行分が収まる固定高（または min-height） */
    display: flex;
    background: #fff;
    text-align: center;
    align-items: center; /* 1行・2行どちらも上下中央揃え */
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

/* 矢印アイコンを常に垂直中央に配置 */
.chevron-right {
    position: absolute;
    top: 50%;
    right: 2cqw;
    width: 6px;
    height: 6px;
    border-top: 2px solid #e60012;
    border-right: 2px solid #e60012;
    /* top: 50% と translateY(-50%) で常にエリアの中心に固定 */
    transform: translateY(-50%) rotate(45deg);
}
/* ==========================================================================
   ブランド検索ボックス（干渉回避版）
   ========================================================================== */
.bsb_section {
    padding: 0 3cqw;
}
.bsb_title {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 32px auto 12px;
    font-size: 18px;
    font-weight: 900;
    color: #000;
    padding-left: 0;
    background: none;
}

.bsb_title.bsb_margintop {
    padding-top: 40px;
}

.bsb_box {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

.bsb_box.bsb_marginbottom {
    padding-bottom: 40px;
}

/* フォームの横並び配置 */
.bsb_form_sidebar {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 検索入力欄 */
.bsb_input {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    border: 1px solid #a6a6a6;
    border-radius: 8px;
    padding: 0 12px 0 42px;
    font-size: 15px;
    background: #ffffff
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23555555" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>')
        no-repeat 12px center / 22px 22px;
}

.bsb_input::placeholder {
    color: #888888;
}

.bsb_input:focus::placeholder {
    color: transparent;
}

/* 検索ボタン */
.bsb_submit {
    background: #e50012;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    height: 48px;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bsb_submit:hover {
    opacity: 0.85;
}
/* ==========================================================================
   50音検索エリア（完全再現・独自クラス版）
   ========================================================================== */
.ks_section {
    margin-bottom: 30px;
    padding: 0 3cqw;
}

/* ヘッダーバー */
.ks_header {
    background: #e50012;
    color: #ffffff;
    font-size: 5cqw;
    font-weight: bold;
    text-align: center;
    padding: 2cqw 3cqw;
    border-radius: 8px;
}

/* ボタン格納エリア */
.ks_container {
    position: relative;
    /* background: #f7f7f7; */
    padding: 2cqw 0;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

/* ボタン行 */
.ks_row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3cqw;
    margin-bottom: 3cqw;
}

/* 親ボタン（ア・カ・サ行など） */
.ks_main_btn {
    background: #ffffff;
    border: var(--border-thick) solid var(--color-gray-dark);
    border-radius: 8px;
    text-align: center;
    padding: 3cqw;
    font-size: 4cqw;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
}

.ks_main_btn.is-selected {
    border: 2px solid #e50012;
    color: #000000;
}

.ks_main_btn.is-disabled {
    background: #e8e8e8;
    color: #aaa;
    border-color: #e8e8e8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ▼ サブ（子ボタン）ポップアップ枠 ▼ */
.ks_sub_box {
    position: absolute;
    padding: 0;
    text-align: center;
    width: 90%;
    max-width: calc(100% - 12px);
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #ffffff;
    border: 2px solid #e50012;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    box-sizing: border-box;
    padding: 1cqw 0;
}

/* サブボタン */
.ks_sub_btn {
    background: #ffffff;
    border: none;
    border-right: 1.5px solid #e50012;
    padding: 2cqw 0;
    font-size: 5cqw;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
}

.ks_sub_btn:last-child {
    border-right: none;
}

.ks_sub_btn:hover,
.ks_sub_btn.is-selected {
    background: #fdf0f0;
    color: #e50012;
}

/* 子ボタン要素なし時のグレーアウト */
.ks_sub_btn.is-disabled {
    color: #aaaaaa;
    cursor: not-allowed;
}

/* ==========================================================================
   アコーディオン（カードスタイル＆赤プラスアイコン）
   ========================================================================== */
.ks_accordion_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ks_accordion_item {
    background: #ffffff;
    border: var(--border-thick) solid var(--color-gray-dark);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.ks_accordion_header {
    padding: 4cqw;
    font-size: 4cqw;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.ks_accordion_header::-webkit-details-marker {
    display: none;
}

/* 赤色プラス (+) アイコン */
.ks_toggle_icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.ks_toggle_icon::before,
.ks_toggle_icon::after {
    content: "";
    position: absolute;
    background: #e50012; /* 赤色 */
    border-radius: 1px;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* 横線 */
.ks_toggle_icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

/* 縦線 */
.ks_toggle_icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

/* 開いた時にマイナス (-) に変更 */
.ks_accordion_item[open] .ks_toggle_icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.ks_accordion_content {
    padding: 0 3cqw 3cqw;
    border-top: 1px solid #f5f5f5;
}

.ks_brand_list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.ks_brand_item {
    border-bottom: var(--border-thick) solid var(--color-gray-dark);
}

.ks_brand_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4cqw;
    text-decoration: none;
    color: #000;
    position: relative;
}
.ks_brand_name_group {
    display: flex;
    flex-direction: column;
    font-size: 4cqw;
}
.ks_brand_link::after {
    content: "";
    position: absolute;
    display: inline-block;
    right: 6%;
    width: 11px;
    height: 11px;
    border-top: 2px solid #e50012;
    border-right: 2px solid #e50012;
    transform: rotate(45deg);
    margin-left: 8px;
    vertical-align: middle;
    transition: border-color 0.2s;
}
.ks_brand_jp {
    font-weight: bold;
}

.ks_brand_en {
    font-size: 3cqw;
    color: #888;
}

/* 閉じるボタン */
.ks_close_wrap {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
}

.ks_btn_close {
    background: #fff;
    border: var(--border-thick) solid var(--color-gray-dark);
    color: #000;
    /* border: none; */
    border-radius: 9px;
    padding: 2cqw 5cqw;
    font-size: 2cqw;
    font-weight: bold;
    cursor: pointer;
}
/* ==========================================================================
   PC画面用レスポンシブ調整 (768px以上)
   ========================================================================== */
@media (min-width: 768px) {
    .bsb_section {
        padding: 0 1cqw; /* カード群の左右位置と統一 */
    }

    /* 3. 50音検索エリア */
    .ks_section {
        margin-bottom: 30px;
        padding: 0 1cqw; /* カード群の左右位置と統一 */
    }
}
