/* ========================================
   ブランドページ CSS
   ======================================== */

/* ブランド名リンク（教室詳細ページ内） */
.label_genre_link {
    text-decoration: none;
}

.label_genre_link:hover .label_genre {
    opacity: 0.8;
    text-decoration: underline;
}

/* ブランドヘッダー */
.brand_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 0;
    margin-bottom: 25px;
}

.brand_header_inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.brand_logo {
    margin-right: 25px;
    flex-shrink: 0;
}

.brand_logo img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.brand_title_area {
    flex: 1;
}

.brand_name {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.brand_meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.brand_count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.brand_official_link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.3s;
}

.brand_official_link:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
}

/* メインレイアウト */
.brand_content_wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 25px;
}

.brand_main {
    flex: 1;
    min-width: 0;
}

.brand_sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* セクション共通 */
.brand_section_title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding: 12px 0;
    border-bottom: 3px solid #667eea;
    margin-bottom: 18px;
}

.brand_section_title i {
    color: #667eea;
    margin-right: 6px;
}

.brand_filter_label {
    font-size: 14px;
    color: #667eea;
}

.brand_classroom_count {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* ブランド紹介文 */
.brand_description_section {
    margin-bottom: 30px;
}

.brand_description_text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    padding: 15px 18px;
    background: #f9f9fb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* 基本情報テーブル */
.brand_info_section {
    margin-bottom: 30px;
}

.brand_info_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.brand_info_table th {
    width: 130px;
    background: #f5f6fa;
    color: #555;
    font-weight: 600;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.brand_info_table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    color: #333;
    line-height: 1.6;
}

.brand_info_table td a {
    color: #667eea;
    text-decoration: none;
}

.brand_info_table td a:hover {
    text-decoration: underline;
}

.brand_kana {
    font-size: 12px;
    color: #888;
}

/* 教室一覧セクション */
.brand_classroom_section {
    margin-bottom: 30px;
}

.brand_card_grid {
    /* 既存のschool_cardスタイルを継承して縦に並べる */
    margin: 0;
}

.brand_no_result {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9fb;
    border-radius: 8px;
    color: #888;
}

.brand_reset_filter {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #667eea;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.brand_reset_filter:hover {
    background: #5569d4;
    color: #fff;
    text-decoration: none;
}

/* ページネーション */
.brand_pagination {
    margin-top: 25px;
    text-align: center;
}

.brand_pagination .pagination {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand_pagination .pagination li {
    list-style: none;
}

.brand_pagination .pagination li a,
.brand_pagination .pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    color: #667eea;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.brand_pagination .pagination li.active span {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.brand_pagination .pagination li a:hover {
    background: #f0f0f5;
}

/* サイドバー */
.brand_side_section {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.brand_side_title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    padding: 12px 15px;
    background: #f5f6fa;
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

.brand_side_title i {
    color: #667eea;
    margin-right: 5px;
}

.brand_metro_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand_metro_list li {
    border-bottom: 1px solid #f0f0f0;
}

.brand_metro_list li:last-child {
    border-bottom: none;
}

.brand_metro_list li a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.brand_metro_list li a:hover {
    background: #f9f9fb;
}

.brand_metro_list li.active a {
    background: #eef0ff;
    color: #667eea;
    font-weight: 600;
}

.brand_metro_count {
    float: right;
    color: #aaa;
    font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .brand_header {
        padding: 20px 0;
    }

    .brand_header_inner {
        flex-direction: column;
        text-align: center;
    }

    .brand_logo {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .brand_name {
        font-size: 20px;
    }

    .brand_meta {
        justify-content: center;
    }

    .brand_content_wrap {
        flex-direction: column;
    }

    .brand_sidebar {
        width: 100%;
    }

    .brand_info_table th {
        width: 100px;
        padding: 10px;
        font-size: 12px;
    }

    .brand_info_table td {
        padding: 10px;
        font-size: 13px;
    }

    .brand_section_title {
        font-size: 16px;
    }
}