@charset "utf-8";

/* --- 全体レイアウト --- */
.purchase_reinforcement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    font-family: "Noto Sans CJK JP", sans-serif;
}

.purchase_reinforcement .inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1298px;
}

/* --- タイトルブロック --- */
.purchase_reinforcement .title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.6cqw;
    width: 100%;
    margin-bottom: 5.3cqw;
}

.purchase_reinforcement .subtitle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5cqw;
    background: transparent;
}

.purchase_reinforcement .subtitle {
    font-weight: 500;
    --f-base: 16;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.1em;
    color: #765e00;
}

.purchase_reinforcement .subtitle-line {
    width: 5.3cqw;
    height: 2px;
    background: #765e00;
}

.purchase_reinforcement .main-title {
    font-weight: 700;
    --f-base: 26;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.06em;
    color: #272727;
    margin: 0;
}

.purchase_reinforcement .gradient-line {
    width: 100%;
    height: 20px;
    background: radial-gradient(
        49.57% 49.65% at 47.68% 0%,
        #dadada 0.96%,
        #ebebeb 31.25%,
        rgba(229, 229, 229, 0) 100%
    );
}

/* --- 検索ボックス --- */
.search-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2.1cqw;
    width: 89.3cqw;
    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;
}

/* --- タブブロック --- */
.tab-wrap {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #bbbbbb;
    display: flex;
    justify-content: center;
}

.tab-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 5px;
    width: 89.3cqw;
    max-width: 800px;
    padding: 0;
}

.tab-item {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex: 1;
    height: 14cqw;
    max-height: 60px;
    background: #9e9e9e;
    border: 1px solid #9e9e9e;
    border-bottom: none;
    border-radius: 5px 5px 0px 0px;
    font-weight: 700;
    --f-base: 15;
    color: #ffffff;
    cursor: pointer;
    position: relative;
}

.tab-item.is-active {
    height: 18cqw;
    max-height: 80px;
    background: #f5f3ef;
    border: 1px solid #bbbbbb;
    border-bottom: 1px solid #f5f3ef;
    color: #272727;
    margin-bottom: -1px;
    z-index: 2;
}

/* --- タブコンテンツエリア --- */
.tab-content-area {
    --panel-bg-rgb: 245, 243, 239;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: rgb(var(--panel-bg-rgb));
    padding-bottom: 10.6cqw;
}

/* パネルの表示切り替え */
.tab-panel {
    display: flex;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    width: 100%;
    flex-direction: column;
    align-items: center;
}
.tab-panel.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* --- ブランドリスト --- */
.brand-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3cqw;
    width: 100%;
    max-width: 800px;
    padding: 5.3cqw 2.6cqw;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .brand-list-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 20px;
    }
}

/* --- 個別のブランドボックス --- */
.brand-model-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 0.5px solid #bbbbbb;
    text-decoration: none;
}

.brand-model-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.6cqw 2.6cqw 0;
    gap: 1.3cqw;
    width: 100%;
    height: auto;
    aspect-ratio: 164 / 170;
}

.brand-thum {
    width: 65%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-thum img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 34px;
}

.brand-name {
    font-weight: 700;
    --f-base: 14;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.02em;
    color: #272727;
}

.brand-model-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2cqw;
    gap: 2.6cqw;
    width: 100%;
    background: #ffffff;
    border-top: 0.5px solid #bbbbbb;
    text-decoration: none;
}

.link-text {
    font-weight: 400;
    --f-base: 12;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #272727;
}

.link-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- その他のブランド一覧ボタン --- */
.more-brand-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4.2cqw;
    gap: 2.6cqw;
    width: 89.3cqw;
    max-width: 800px;
    height: 15cqw;
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    text-decoration: none;
    margin: 2cqw 0 0;
}

.more-brand-text {
    font-weight: 700;
    --f-base: 15;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #272727;
}

.more-brand-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================= */
/* モデルタブ専用のスタイル */
/* ========================================= */
.model-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3cqw;
}

.model-section-title {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: calc(100% - 5.2cqw);
    max-width: 800px;
    padding: 3cqw 0;
    margin: 8cqw auto 2cqw;
    font-weight: 700;
    --f-base: 18;
    line-height: 1.4;
    color: #272727;
    text-align: center;
    letter-spacing: 0.05em;
}

@media screen and (min-width: 768px) {
    .model-section-title {
        width: calc(100% - 40px);
        padding: 20px 0;
        margin: 30px auto 15px;
    }
}

.model-section .brand-list-container {
    padding-top: 0;
    padding-bottom: 4cqw;
}

/* ========================================= */
/* もっと見る（リミット表示）エリアの設定 */
/* ========================================= */

.purchase_reinforcement .model-section .js-limit-wrap {
    position: relative;
    width: 100%;
}

.purchase_reinforcement .model-section .common-view-limit-wrap {
    height: 800px; /* 初期表示の高さ制限 */
}

.purchase_reinforcement .model-more-btn {
    pointer-events: auto;
    cursor: pointer;
    /* 色やアイコン、余白などの装飾は共通CSSを適用するため削除しました */
}

/* グラデーションエリア（削除せず維持） */
.purchase_reinforcement .limit-btn-area {
    display: flex !important;
    justify-content: center !important;
    text-align: center;
    align-items: flex-end;
    width: 100%;
    height: 120px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        to bottom,
        rgba(245, 243, 239, 0) 0%,
        rgba(245, 243, 239, 0.9) 65%,
        rgba(245, 243, 239, 1) 100%
    ) !important;
    padding-bottom: 10px;
    z-index: 10;
    pointer-events: none;
}
