/* #mock_app section(max-width:1400px/100%)に詳細度で負けるため、IDを重ねる */
#mock_app #purchase-brands {
    max-width: 1400px;
}

#purchase-brands .purchase-brand-inner {
    margin: auto;
    padding: 5%;
}

@media (min-width: 768px) {
    #purchase-brands .purchase-brand-inner {
        --w-ref: 1600;
    }

    #purchase-brands .brand-card {
        aspect-ratio: 250 / 360;
        border: 3px solid #BABABA;
        border-radius: 10px;
    }
}

#purchase-brands .common-acod.xx-large-bold-text {
    --f-base: 35;
}

#purchase-brands .top-title-wrap + .acod-item {
    margin-top: 5.625cqw;
}

#purchase-brands .acod-item {
    border-width: 4px;
}

#purchase-brands .common-acod {
    padding: 1.5cqw 4cqw 1.875cqw 3.125cqw;
}

#purchase-brands .brand-accordion-label {
    display: inline-flex;
    align-items: center;
}

#purchase-brands .brand-accordion-label::before {
    content: "";
    display: block;
    width: 10px;
    height: 53px;
    background: var(--color-red);
    margin-right: 1.6875cqw;
}

#purchase-brands .common-acod::after {
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2.5cqw 0.375cqw, 0.375cqw 2.5cqw;
    color: #333333;
    transition: background-size 0.3s ease;
}

#purchase-brands .common-acod.is-active::after {
    background-size: 2.5cqw 0.375cqw, 0.375cqw 0cqw;
}

#purchase-brands .brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8125cqw;
    padding: 1.6875cqw 1.6875cqw 2.8125cqw;
}

#purchase-brands .brand-card {
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

#purchase-brands .brand-card-img {
    flex-shrink: 0;
    aspect-ratio: 241 / 263;
    overflow: hidden;
    padding: 1.5625cqw;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 0%, rgba(168, 168, 168, 0.6) 100%);
}

#purchase-brands .acod-item.top-brands-bag .brand-card-img {
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 0%, rgba(188, 171, 119, 0.6) 100%);
}

#purchase-brands .acod-item.top-brands-jewelry .brand-card-img {
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 0%, rgba(255, 223, 223, 0.6) 100%);
}

#purchase-brands .brand-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* おたからやの取り扱い商品と同様のホバーエフェクト（赤はサイト共通の--theme_colorを使用） */
#purchase-brands .brand-card:hover {
    border-color: var(--theme_color);
}

#purchase-brands .brand-card:hover img {
    transform: scale(1.05);
}

#purchase-brands .brand-card-name {
    flex-shrink: 0;
    margin: 0;
    text-align: center;
    padding: 0.5cqw;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: #333333;
}

#purchase-brands .brand-card-name .is-sp {
    display: none;
}

/* archeco_common.cssの.acod-content p span{color:red}が意図せず当たるため上書き */
#purchase-brands .brand-card-name span {
    color: inherit;
}

#purchase-brands .acod-content {
    padding: 0;
}

#purchase-brands .btn__wrapper__flex {
    gap: 1.875cqw;
}

/* 共通の.btn__red>a:hover（parts.min.css）にtransitionがないため、このセクションのボタンだけに追加
    page-top.phpの#mock_app .top-cta-btn > a と同じ詳細度でtransitionが丸ごと上書きされるため、IDを重ねる
   （transform/box-shadowの既存の動きは維持しつつ、background-color/border-colorを追加） */
#mock_app #purchase-brands .top-cta-btn > a {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 767px) {
    #purchase-brands {
        padding-bottom: 8cqw;
    }

    #purchase-brands .common-acod.xx-large-bold-text {
        --f-base: 17.5;
    }

    #purchase-brands .brand-accordion-label::before {
        width: 5px;
        height: 27px;
    }

    #purchase-brands .brand-card-name.x-large-bold-text {
        --f-base: 10;
    }

    #purchase-brands .brand-card-name .is-pc {
        display: none;
    }

    #purchase-brands .brand-card-name .is-sp {
        display: inline;
    }

    #purchase-brands .common-acod {
        padding-top: 5.0667cqw;
        padding-bottom: 6.1333cqw;
        padding-left: 6.6667cqw;
    }

    #purchase-brands .common-acod::after {
        background-size: 5.3333cqw 0.8cqw, 0.8cqw 5.3333cqw;
    }

    #purchase-brands .common-acod.is-active::after {
        background-size: 5.3333cqw 0.8cqw, 0.8cqw 0cqw;
    }

    #purchase-brands .acod-item {
        border-width: 2px;
    }

    #purchase-brands .brand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2cqw;
    }

    #purchase-brands .brand-card-name {
        padding: 1.5cqw;
    }

    #purchase-brands .brand-card {
        border: 1.5px solid #BABABA;
        border-radius: 4px;
    }
}
