@charset "utf-8";
/* =========================================================
   Brand Archive — Session 2 / 2026-05-13 改修
   参考: sempre.jp 取り扱いメーカーページ
   設計:
     - カテゴリ分けを撤廃したフラットなロゴグリッド
     - セル共有ボーダー方式（gap:0, border-right+bottom per cell）
     - ロゴは object-fit:contain で元サイズに依らず一定の表示サイズに統一
     - PC:5列 / タブレット:4列 / モバイル:2列（小さめ・余白多め）
   ========================================================= */

/* ===== Page wrapper ===== */
.brands-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 100px;
    background: transparent;
}

/* ショートコード [brand_list] 埋め込み時:
   固定ページ側のレイアウト padding に合わせて上下余白を削除 */
.brands-page--shortcode {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== Page heading "BRANDS" ===== */
.brands-page__header {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid #d8d8d8;
}

.brands-page__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.40em;
    color: #666;
    text-transform: uppercase;
}

/* ===== Category section ===== */
.brands-category {
    margin-bottom: 64px;
}

.brands-category:last-of-type {
    margin-bottom: 0;
}

.brands-category__heading {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #333;
    background: #f4f4f4;
    padding: 10px 18px;
    border-left: 3px solid #222;
    margin: 0 0 0 0;
    line-height: 1.5;
}

/* ===== Logo grid ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

.brands-grid li,
.brands-grid li::marker {
    list-style: none;
}

/* 2026-05-13: フラット一覧用バリエーション。
   sempre 風に PC 5列／余白多め／ロゴ小さめ。 */
.brands-grid--flat {
    grid-template-columns: repeat(5, 1fr);
}

/* ===== Brand card ===== */
.brands-card {
    background: #fff;
    list-style: none;   /* 固定ページ側のul li指定を上書き */
    margin: 0;
    padding: 0;
}

/* リンクあり */
.brands-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
    padding: 16px 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.brands-card__link:hover {
    background-color: #fafafa;
    opacity: 0.70;
}

/* リンクなし（WordPress投稿未作成のブランド） */
.brands-card__static {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
    padding: 16px 20px;
}

/* ===== Logo image
   2026-05-13: ロゴサイズをひと回り小さく（max-height 55→40）。
   ===== */
.brands-card__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brands-card__img {
    display: block;
    /* 2026-05-14: 高さを固定してロゴサイズを統一 */
    width: auto;
    height: 36px;
    max-width: 80%;
    object-fit: contain;
    /* グレースケール化してロゴの色調を統一（shinc準拠）*/
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.brands-card__link:hover .brands-card__img {
    filter: grayscale(0%);
}

/* テキストフォールバック（ロゴ画像が見つからないとき） */
.brands-card__text {
    font-size: 0.84rem;
    color: #555;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.4;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .brands-grid--flat {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .brands-grid,
    .brands-grid--flat {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brands-page {
        padding: 40px 16px 64px;
    }

    .brands-grid,
    .brands-grid--flat {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-card__link,
    .brands-card__static {
        height: 70px;
        padding: 12px 12px;
    }

    .brands-card__img {
        height: 30px;
    }
}


/* =============================================================
   Brand Single Page — 2026-05-13 改修
   2カラム構成（左：ロゴ＋リード文 / 右：写真）
   依頼書 §3-2 準拠（ロゴ左・写真右）
   ============================================================= */

/* ── Wrapper ── */
.brand-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

/* ── Header: ブランド名（中央・大見出し） ── */
.brand-single__header {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 56px;
}
.brand-single__name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #111;
    margin: 0;
}

/* ── 2カラム本体 ── */
.brand-single__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 72px;
}

/* 左カラム：ロゴ＋リード文＋公式リンク */
.brand-single__col-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

/* ロゴ（左カラム上部、左寄せ） */
.brand-single__logo {
    margin: 0;
    text-align: left;
}
.brand-single__logo-img {
    display: block;
    max-width: 220px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
}

/* リード文（左カラム下部、左揃え） */
.brand-single__desc {
    margin: 0;
    text-align: left;
}
.brand-single__desc-label {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    color: #888;
    margin: 0 0 14px;
    text-transform: uppercase;
}
.brand-single__desc-text {
    font-size: 0.95rem;
    line-height: 2.0;
    color: #333;
    margin: 0 0 20px;
}
.brand-single__desc-text:last-child {
    margin-bottom: 0;
}

/* 公式サイトリンク */
.brand-single__official {
    margin: 8px 0 0;
}
.brand-single__official-link {
    display: inline-block;
    font-size: 0.88rem;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.06em;
    padding-bottom: 4px;
    border-bottom: 1px solid #111;
    transition: opacity 0.2s ease;
}
.brand-single__official-link:hover {
    opacity: 0.6;
}

/* 右カラム：写真 */
.brand-single__col-right {
    width: 100%;
}
.brand-single__photo {
    margin: 0;
    width: 100%;
    overflow: hidden;
}
.brand-single__photo-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ── CTA ── */
.brand-single__cta {
    text-align: center;
    padding: 56px 24px;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 48px;
}
.brand-single__cta-lead {
    font-size: 1.0rem;
    color: #333;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.brand-single__cta-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.10em;
    padding: 14px 40px;
    border-radius: 2px;
    transition: background 0.2s ease;
}
.brand-single__cta-btn:hover {
    background: #333;
    color: #fff;
}

/* ── Back link ── */
.brand-single__back {
    text-align: center;
}
.brand-single__back a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.brand-single__back a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .brand-single__two-col {
        gap: 36px;
    }
}

@media (max-width: 700px) {
    /* SP は縦積み（左カラム→右カラム の順） */
    .brand-single__two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .brand-single__logo {
        text-align: center;
    }
    .brand-single__logo-img {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .brand-single {
        padding: 32px 16px 64px;
    }
    .brand-single__cta {
        padding: 40px 16px;
    }
}
