@charset "utf-8";

.purchase_reinforcement {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 20px 0;
}

/* --- 検索ボックス --- */
.search-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2.1cqw;
    width: 95cqw;
    max-width: 800px;
    margin-bottom: 5.3cqw;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.search-input-area {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2.6cqw;
    gap: 1.3cqw;
    flex: 1;
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 8px;
}

.search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    padding: 0 !important;
    font-weight: 400;
    --f-base: 14;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #272727;
}

.search-input:focus {
    outline: none !important;
    border: none !important;
}

.search-input::placeholder {
    color: #b0b0b0;
}

.search-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2cqw;
    width: 25.6cqw;
    background: #d00000;
    border: 1px solid #d00000 !important;
    border-radius: 8px;
    font-weight: 700;
    --f-base: 14;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- メインタブ --- */
.purchase_reinforcement .prr-tab-wrap {
    width: 100%;
}
.purchase_reinforcement .prr-tab-inner {
    display: flex !important;
    align-items: flex-end !important;
    width: 90%;
    margin: auto;
    gap: 1cqw;
}

.purchase_reinforcement .prr-tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 11cqw;
    font-weight: bold;
    font-size: 3.5cqw;
    color: #ffffff;
    background: #b3b3b3;
    cursor: pointer;
    box-sizing: border-box;
}

.purchase_reinforcement .prr-tab-item.prr-is-active {
    height: 14cqw;
    background: #f7ecdb;
    color: #111111;
}

/* --- パネルエリア --- */
.purchase_reinforcement .prr-tab-content-area {
    width: 100%;
    background: #f7ecdb;
    padding-bottom: 0;
}

.purchase_reinforcement .prr-tab-panel {
    display: none !important;
}
.purchase_reinforcement .prr-tab-panel.prr-is-active {
    display: block !important;
}

/* --- サブタブ（モデルタブ内） SimpleBar設定 --- */
.purchase_reinforcement .prr-subtab-scroll {
    width: 100%;
    position: relative;
}

.purchase_reinforcement .prr-subtab-scroll .simplebar-content {
    white-space: nowrap !important;
}

.purchase_reinforcement .prr-subtab-inner {
    display: inline-flex !important;
    padding: 5cqw 2cqw 5cqw !important;
    gap: 1cqw;
    white-space: nowrap !important;
}

.purchase_reinforcement .simplebar-track.simplebar-vertical {
    display: none !important;
}

.purchase_reinforcement .simplebar-track.simplebar-horizontal {
    display: block !important;
    height: 1.8cqw !important; /* 太さ調整 */
    background: #d8d8d8 !important;
    border-radius: 10px !important;
    left: 2cqw !important;
    right: 2cqw !important;
    bottom: 2px !important;
}

.purchase_reinforcement .simplebar-scrollbar::before {
    background: #e60012 !important;
    border-radius: 10px !important;
    opacity: 1 !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.purchase_reinforcement .prr-subtab-item {
    padding: 2.5cqw 7cqw;
    font-size: 3.5cqw;
    font-weight: bold;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
}
.purchase_reinforcement .prr-subtab-item.prr-is-active {
    background: #e60012;
    color: #ffffff;
    border-color: #e60012;
}

.purchase_reinforcement .prr-brand-group {
    display: none !important;
}
.purchase_reinforcement .prr-brand-group.prr-is-active {
    display: block !important;
}

/* --- グリッドカード配置 --- */
.purchase_reinforcement .prr-brand-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.purchase_reinforcement .prr-brand-model-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.purchase_reinforcement .prr-brand-model-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.purchase_reinforcement .prr-brand-model-inner {
    padding: 3cqw 2cqw 2cqw;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.purchase_reinforcement .prr-brand-thum {
    width: 64%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.purchase_reinforcement .prr-brand-thum img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.purchase_reinforcement .prr-brand-name {
    font-weight: bold;
    font-size: 3.5cqw;
    color: #000;
    margin-top: 10px;
    text-align: center;
}
.purchase_reinforcement .prr-model-name-link-wrap {
    padding: 0cqw 2cqw 2.5cqw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0cqw;
    background: #ffffff;
    position: relative;
}

.purchase_reinforcement .prr-model-name-link-wrap::after {
    content: "";
    position: absolute;
    right: 4cqw;
    top: calc(50% - 2.45cqw);
    width: 3cqw;
    height: 3cqw;
    background-image: url(../../../assets/img/common/purchase_red_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.purchase_reinforcement .prr-link-text {
    font-size: 3cqw;
    color: #111111;
}

/* --- もっと見るボタン --- */
.purchase_reinforcement .prr-more-btn-wrap {
    text-align: center;
    margin: 10px 0 20px;
}
.purchase_reinforcement .prr-more-btn {
    background: #e60012;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 2cqw 8cqw;
    font-weight: bold;
    font-size: 3cqw;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.purchase_reinforcement .prr-more-btn::after {
    content: "";
    position: absolute;
    right: 1.5cqw;
    top: calc(50% - 1.35cqw);
    width: 3cqw;
    height: 3cqw;
    background-image: url(../../../assets/img/common/purchase_white_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.purchase_reinforcement .prr-is-hidden {
    display: none !important;
}
.prr-subtab-link-all {
    padding: 1cqw 7cqw;
    font-size: 3cqw;
    font-weight: bold;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.prr-subtab-link-all::after {
    content: "";
    position: absolute;
    right: 3cqw;

    top: calc(50% - 1.35cqw);
    width: 3cqw;
    height: 3cqw;
    background-image: url(../../../assets/img/common/purchase_red_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   移植：50音検索エリア (独自クラス ks_)
   ========================================================================== */
.ks_section {
    width: 100%;
    padding: 6cqw 3cqw;
    box-sizing: border-box;
    background: #f7ecdb;
}

.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;
    padding: 2cqw 0;
    border-radius: 0 0 4px 4px;
}

.ks_row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3cqw;
    margin-bottom: 3cqw;
}

.ks_main_btn {
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 8px;
    text-align: center;
    padding: 3cqw;
    font-size: 3.5cqw;
    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: 1cqw 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;
}

.ks_sub_btn {
    background: #ffffff;
    border: none;
    border-right: 1.5px solid #e50012;
    padding: 2cqw 0;
    font-size: 3.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: 3cqw;
}

.ks_accordion_item {
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.ks_accordion_header {
    padding: 4cqw;
    font-size: 3.5cqw;
    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;
}

.ks_brand_item {
    border-bottom: 1px solid #eeeeee;
}

.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: 3.5cqw;
}

.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);
}

.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: 1px solid #bbbbbb;
    color: #000;
    border-radius: 9px;
    padding: 2cqw 5cqw;
    font-size: 3cqw;
    font-weight: bold;
    cursor: pointer;
}
