/* ===== 会社概要ページ専用CSS ===== */
/* Brandsセクション(ストーリー型 + 信頼バッジ + 商品スライド) */

/* セクション全体 */
#brands-detail .brand-stories {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ブランドカード本体 =====
 * 各ブランドを白背景の明確なカードに
 * ブランドごとに同じ枠で囲うことで、視覚的に整列して見える
 */
.brand-story {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand-story.has-link:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* キービジュアル */
.brand-story-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.brand-story-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
    transition: transform 0.5s ease;
}

.brand-story.has-link:hover .brand-story-visual img {
    transform: scale(1.04);
}

/* 情報エリア */
.brand-story-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* BRAND XX — カテゴリ ラベル */
.brand-story-no {
    font-size: 12px;
    letter-spacing: 2px;
    color: #999;
    margin: 0 0 6px 0;
    font-weight: 500;
}

/* ブランド名 */
.brand-story-name {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: left;
}

/* 説明文 */
.brand-story-description {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 18px 0;
}

/* ===== 信頼バッジ ===== */
.brand-badges {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.02em;
    border: 1px solid;
    line-height: 1.4;
}

.brand-badge i {
    font-size: 11px;
}

/* ブランドごとのバッジ配色(控えめなトーン) */
.brand-badge-dhlabo {
    background-color: #eaf2f8;
    color: #2c5d80;
    border-color: #cfe0ec;
}
.brand-badge-madonna {
    background-color: #fdf4e3;
    color: #8a6a23;
    border-color: #f0e1bf;
}
.brand-badge-petitours {
    background-color: #fdecf0;
    color: #9c4866;
    border-color: #f4d3dc;
}
.brand-badge-kuma {
    background-color: #f3eee5;
    color: #6b4a2a;
    border-color: #e0d4be;
}

/* ===== 商品スライド =====
 * Swiper のループ無効、自動再生無効、ドラッグスクロール可能
 */
.brand-products {
    margin: 4px 0 16px 0;
}

.brand-products-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #999;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.brand-products-swiper {
    width: 100%;
    overflow: hidden;
    padding: 4px 0;
}

.brand-products-swiper .swiper-wrapper {
    /* freeMode + slidesPerView: auto 時に正しく動くよう、横並びを明示 */
    display: flex;
}

.brand-products-swiper .swiper-slide {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
}

.brand-products-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}

/* ===== アクション領域(SNS + VIEW SITE) ===== */
.brand-story-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.brand-story-actions .brand-card-sns {
    margin: 0;
    justify-content: flex-start;
}

.brand-story-actions .more1 {
    margin-left: auto;
}

/* ===== スマホ対応(768px以下): 画像上+情報下に切替 ===== */
@media (max-width: 768px) {
    #brands-detail .brand-stories {
        gap: 20px;
        margin-top: 24px;
    }

    .brand-story {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        border-radius: 10px;
    }

    .brand-story-visual {
        aspect-ratio: 16 / 10;
        max-width: 400px;
        margin: 0 auto;
    }

    .brand-story-no {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .brand-story-name {
        font-size: 22px;
        text-align: center;
    }

    .brand-story-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .brand-badges {
        gap: 6px;
        margin-bottom: 16px;
        justify-content: center;
    }

    .brand-badge {
        font-size: 11px;
        padding: 4px 9px;
    }

    .brand-products-swiper .swiper-slide {
        width: 76px;
        height: 76px;
    }

    .brand-story-actions {
        gap: 16px;
        justify-content: space-between;
    }

    .brand-story-actions .more1 {
        margin-left: 0;
    }
}
