/*
Theme Name: SWELL Child - Basket Talk Japan
Description: Basket Talk Japan用のSWELL子テーマ。Bリーグ向けのカスタマイズを含む。
Template: swell
Version: 1.0.0
Author: Basket Talk Japan Team
*/

/* 親テーマのスタイルは functions.php の wp_enqueue_style で読み込むため、@import は削除 */

/* モバイル表示の強制 - すべてのページ要素を確実に表示 */
@media (max-width: 768px) {
    body,
    .l-main,
    .l-contents,
    .l-container,
    .l-inner,
    .homepage-section,
    .game-interaction-section,
    .interaction-forms,
    .mvp-vote-form,
    .experience-log-form,
    .interaction-results,
    .game-card,
    .article-item,
    .post-item,
    .single-game-page,
    .game-header,
    .game-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* モバイルで非表示にすべき要素 */
    .hero-content {
        display: none !important;
    }
    
    /* ヒーロー背景画像を確実に表示 */
    .hero-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
    
    .hero-background-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ============================================
   l-contentsの両横の白い余白を削除
   ============================================ */
.l-contents,
.l-container,
.l-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* 親テーマのコンテナクラスも上書き */
.l-container__inner,
.l-contents__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* ============================================
   親テーマのCSS変数をダークテーマ用に上書き
   ============================================ */
:root {
    --color_text: #fff !important;
    --color_bg: #0a0a0a !important;
    --color_main: #ff6b35 !important;
    --color_htag: #fff !important;
    --color_link: #ff6b35 !important;
    --color_main_thin: rgba(255, 107, 53, 0.1) !important;
    --color_main_dark: rgba(255, 107, 53, 0.8) !important;
}

/* ============================================
   SWELLテーマの記事ページをダークテーマに統一
   ============================================ */

/* メインコンテンツエリア */
.l-main,
.l-contents {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* 投稿コンテンツエリア */
.c-postContent,
.p-entry,
.entry-content,
.post-content,
.article-content,
.post_content,
.l-mainContent,
.l-mainContent__inner,
.l-article {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* SWELLテーマの投稿コンテンツ全体をダークに */
.post_content *:not(.wp-block-heading):not(h1.wp-block-heading):not(h2.wp-block-heading):not(h3.wp-block-heading):not(h4.wp-block-heading):not(h5.wp-block-heading):not(h6.wp-block-heading) {
    color: #fff !important;
}

/* 背景が白色の要素をダークに */
.post_content :not(pre)>code,
.post_content blockquote,
.post_content table,
.post_content table td,
.post_content table th {
    background: #2a2a2a !important;
    color: #fff !important;
    border-color: #444 !important;
}

.post_content thead td,
.post_content thead th {
    background: #ff6b35 !important;
    color: #fff !important;
}

/* 投稿内のテキスト */
.c-postContent p,
.p-entry p,
.entry-content p,
.post-content p,
.article-content p,
.post_content p,
.c-postContent li,
.p-entry li,
.entry-content li,
.post-content li,
.article-content li,
.post_content li {
    color: #fff !important;
}

/* 見出し */
.c-postContent h1,
.c-postContent h2,
.c-postContent h3,
.c-postContent h4,
.c-postContent h5,
.c-postContent h6,
.p-entry h1,
.p-entry h2,
.p-entry h3,
.p-entry h4,
.p-entry h5,
.p-entry h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.post_content h1,
.post_content h2,
.post_content h3,
.post_content h4,
.post_content h5,
.post_content h6 {
    color: #fff !important;
}

/* .post_content内のwp-block-headingは黒色（h3を除く） */
.post_content .wp-block-heading,
.post_content h1.wp-block-heading,
.post_content h2.wp-block-heading,
.post_content h4.wp-block-heading,
.post_content h5.wp-block-heading,
.post_content h6.wp-block-heading {
    color: #1a1a1a !important;
}

/* h3.wp-block-headingだけ白色に */
h3.wp-block-heading,
.post_content h3.wp-block-heading {
    color: #fff !important;
}

/* それ以外のwp-block-heading（.post_content外）は白色 */
.wp-block-heading,
h1.wp-block-heading,
h2.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading {
    color: #fff !important;
}

/* 投稿メタ情報 */
.post-meta,
.entry-meta,
.c-postContent__meta,
.p-entry__meta {
    color: #999 !important;
}

/* 投稿タイトル */
.post-title,
.entry-title,
.c-postContent__title,
.p-entry__title {
    color: #fff !important;
}

/* カードやボックス */
.c-card,
.p-card,
.box,
.widget {
    background: #2a2a2a !important;
    color: #fff !important;
}

/* フォーム要素 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background: #2a2a2a !important;
    color: #fff !important;
    border-color: #444 !important;
}

/* ボタン */
.btn,
.button,
.wp-block-button__link {
    background: #ff6b35 !important;
    color: #fff !important;
    border-color: #ff6b35 !important;
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover {
    background: #ff8c42 !important;
    color: #fff !important;
}

/* カテゴリリンクの色を修正 */
a[href*="/category/"],
.category a,
.category-title a,
.article-category,
.post-category,
.cat-links a {
    color: #ff6b35 !important;
}

a[href*="/category/"]:hover,
.category a:hover,
.category-title a:hover,
.article-category:hover,
.post-category:hover,
.cat-links a:hover {
    color: #ff8c42 !important;
    text-decoration: underline;
}

/* SWELLテーマのカテゴリリストリンクを白色に */
.c-categoryList__link {
    color: #fff !important;
}

.c-categoryList__link:hover {
    color: #ff6b35 !important;
}

/* ============================================
   ヘッダーカスタマイズ
   ============================================ */

/* ヘッダーの基本スタイル改善 - ダークでエネルギッシュなデザイン */
.l-header {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
}

.l-header__bar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ff6b35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease;
}

/* PC版（769px以上）のヘッダースタイル */
@media (min-width: 769px) {
    .l-header__bar .l-header__inner,
    .l-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        min-height: 60px;
        box-sizing: border-box;
        overflow: hidden !important;
    }
    
.l-header__logo {
    font-size: 1.5rem;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .l-header__logo::before {
        font-size: 1em;
        flex-shrink: 0 !important;
    }
    
    .l-header__logo a,
    .l-header__logo .c-headLogo,
    .l-header__logo .c-headLogo__link {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .l-header__logo .c-headLogo {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    
    .l-header__logo .c-headLogo__link {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: keep-all !important;
        word-wrap: normal !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    
    /* PC版ではナビゲーションと検索ボタンを表示 */
    .l-header__gnav,
    .l-header__customBtn {
        display: block;
        flex-shrink: 0;
    }
    
    /* PC版ではハンバーガーメニューを非表示 */
    .l-header__menuBtn {
        display: none;
    }
}

.l-header__bar:hover {
    box-shadow: 0 4px 25px rgba(255, 107, 53, 0.5);
}

/* ヘッダーが透明にならないように */
.l-header__bar:not(.is-scrolled),
.l-header__bar.is-scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    opacity: 1 !important;
}

/* ヘッダーロゴの基本スタイル - オレンジと白のコントラスト */
.l-header__logo {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.l-header__logo::before {
    content: '🏀';
    font-size: 1em;
    line-height: 1;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.8));
    margin-right: 0.2em;
    vertical-align: baseline;
    display: inline-block;
}

.l-header__logo a,
.l-header__logo .c-headLogo,
.l-header__logo .c-headLogo__link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.l-header__logo .c-headLogo {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.l-header__logo .c-headLogo__link {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    word-wrap: normal;
}

.l-header__logo:hover {
    color: #ff6b35;
    transform: scale(1.05);
    transition: transform 0.3s ease, color 0.3s ease;
}

.l-header__logo:hover a,
.l-header__logo:hover .c-headLogo,
.l-header__logo:hover .c-headLogo__link {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.l-header__logo:hover::before {
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.8));
}

/* ナビゲーションメニューのスタイル - ダークグレーのテキスト */
.l-header__nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.l-header__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.l-header__nav li {
    margin: 0;
    padding: 0;
}

.l-header__nav a {
    display: block;
    padding: 20px 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.l-header__nav a:hover,
.l-header__nav a:focus,
.l-header__nav .current-menu-item > a,
.l-header__nav .current_page_item > a {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
    border-bottom-color: #ff6b35;
}

/* モバイルメニューボタンのスタイル */
.l-header__btnMenu {
    color: #fff;
    border-color: #fff;
}

.l-header__btnMenu:hover {
    color: #ff6b35;
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

/* 固定ヘッダーのスタイル - ダークでエネルギッシュなデザイン */
.l-fixHeader {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ff6b35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
}

/* スクロール時のヘッダーも常にダーク背景を表示 */
.l-fixHeader.is-scrolled,
.l-fixHeader:not(.is-scrolled) {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    opacity: 1 !important;
}

/* スムーススクロール用のスタイル */
html {
    scroll-behavior: smooth;
}

/* アンカーリンクのターゲット要素にスクロールマージンを追加 */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   チーム別ヘッダー配色
   ============================================ */

/* イースタンカンファレンス - チーム別ヘッダー配色 */
body.bbp-forum-eastern-atlanta-hawks .l-header__bar,
body.bbp-forum-eastern-atlanta-hawks .l-fixHeader {
    background: linear-gradient(135deg, #E03A3E 0%, #C1D32F 100%);
}

body.bbp-forum-eastern-boston-celtics .l-header__bar,
body.bbp-forum-eastern-boston-celtics .l-fixHeader {
    background: linear-gradient(135deg, #007A33 0%, #BA9653 100%);
}

body.bbp-forum-eastern-brooklyn-nets .l-header__bar,
body.bbp-forum-eastern-brooklyn-nets .l-fixHeader {
    background: linear-gradient(135deg, #000000 0%, #FFFFFF 100%);
}

body.bbp-forum-eastern-charlotte-hornets .l-header__bar,
body.bbp-forum-eastern-charlotte-hornets .l-fixHeader {
    background: linear-gradient(135deg, #1D1160 0%, #00788C 100%);
}

body.bbp-forum-eastern-chicago-bulls .l-header__bar,
body.bbp-forum-eastern-chicago-bulls .l-fixHeader {
    background: linear-gradient(135deg, #CE1141 0%, #000000 100%);
}

body.bbp-forum-eastern-cleveland-cavaliers .l-header__bar,
body.bbp-forum-eastern-cleveland-cavaliers .l-fixHeader {
    background: linear-gradient(135deg, #860038 0%, #FDBB30 100%);
}

body.bbp-forum-eastern-detroit-pistons .l-header__bar,
body.bbp-forum-eastern-detroit-pistons .l-fixHeader {
    background: linear-gradient(135deg, #C8102E 0%, #1D42BA 100%);
}

body.bbp-forum-eastern-indiana-pacers .l-header__bar,
body.bbp-forum-eastern-indiana-pacers .l-fixHeader {
    background: linear-gradient(135deg, #002D62 0%, #FDBB30 100%);
}

body.bbp-forum-eastern-miami-heat .l-header__bar,
body.bbp-forum-eastern-miami-heat .l-fixHeader {
    background: linear-gradient(135deg, #98002E 0%, #F9A01B 100%);
}

body.bbp-forum-eastern-milwaukee-bucks .l-header__bar,
body.bbp-forum-eastern-milwaukee-bucks .l-fixHeader {
    background: linear-gradient(135deg, #00471B 0%, #EEE1C6 100%);
}

body.bbp-forum-eastern-new-york-knicks .l-header__bar,
body.bbp-forum-eastern-new-york-knicks .l-fixHeader {
    background: linear-gradient(135deg, #006BB6 0%, #F58426 100%);
}

body.bbp-forum-eastern-orlando-magic .l-header__bar,
body.bbp-forum-eastern-orlando-magic .l-fixHeader {
    background: linear-gradient(135deg, #0077C0 0%, #C4CED4 100%);
}

body.bbp-forum-eastern-philadelphia-76ers .l-header__bar,
body.bbp-forum-eastern-philadelphia-76ers .l-fixHeader {
    background: linear-gradient(135deg, #006BB6 0%, #ED174C 100%);
}

body.bbp-forum-eastern-toronto-raptors .l-header__bar,
body.bbp-forum-eastern-toronto-raptors .l-fixHeader {
    background: linear-gradient(135deg, #CE1141 0%, #000000 100%);
}

body.bbp-forum-eastern-washington-wizards .l-header__bar,
body.bbp-forum-eastern-washington-wizards .l-fixHeader {
    background: linear-gradient(135deg, #002B5C 0%, #E31837 100%);
}

/* ウェスタンカンファレンス - チーム別ヘッダー配色 */
body.bbp-forum-western-dallas-mavericks .l-header__bar,
body.bbp-forum-western-dallas-mavericks .l-fixHeader {
    background: linear-gradient(135deg, #00538C 0%, #002B5E 100%);
}

body.bbp-forum-western-denver-nuggets .l-header__bar,
body.bbp-forum-western-denver-nuggets .l-fixHeader {
    background: linear-gradient(135deg, #0E2240 0%, #FEC524 100%);
}

body.bbp-forum-western-golden-state-warriors .l-header__bar,
body.bbp-forum-western-golden-state-warriors .l-fixHeader {
    background: linear-gradient(135deg, #1D428A 0%, #FFC72C 100%);
}

body.bbp-forum-western-houston-rockets .l-header__bar,
body.bbp-forum-western-houston-rockets .l-fixHeader {
    background: linear-gradient(135deg, #CE1141 0%, #000000 100%);
}

body.bbp-forum-western-los-angeles-clippers .l-header__bar,
body.bbp-forum-western-los-angeles-clippers .l-fixHeader {
    background: linear-gradient(135deg, #C8102E 0%, #1D428A 100%);
}

body.bbp-forum-western-los-angeles-lakers .l-header__bar,
body.bbp-forum-western-los-angeles-lakers .l-fixHeader {
    background: linear-gradient(135deg, #552583 0%, #FDB927 100%); /* レイカーズ紫とゴールド */
}

body.bbp-forum-western-memphis-grizzlies .l-header__bar,
body.bbp-forum-western-memphis-grizzlies .l-fixHeader {
    background: linear-gradient(135deg, #5D76A9 0%, #12173F 100%);
}

body.bbp-forum-western-minnesota-timberwolves .l-header__bar,
body.bbp-forum-western-minnesota-timberwolves .l-fixHeader {
    background: linear-gradient(135deg, #0C2340 0%, #236192 100%);
}

body.bbp-forum-western-new-orleans-pelicans .l-header__bar,
body.bbp-forum-western-new-orleans-pelicans .l-fixHeader {
    background: linear-gradient(135deg, #0C2340 0%, #C8102E 100%);
}

body.bbp-forum-western-oklahoma-city-thunder .l-header__bar,
body.bbp-forum-western-oklahoma-city-thunder .l-fixHeader {
    background: linear-gradient(135deg, #007AC1 0%, #EF3B24 100%);
}

body.bbp-forum-western-phoenix-suns .l-header__bar,
body.bbp-forum-western-phoenix-suns .l-fixHeader {
    background: linear-gradient(135deg, #1D1160 0%, #E56020 100%);
}

body.bbp-forum-western-portland-trail-blazers .l-header__bar,
body.bbp-forum-western-portland-trail-blazers .l-fixHeader {
    background: linear-gradient(135deg, #E03A3E 0%, #000000 100%);
}

body.bbp-forum-western-sacramento-kings .l-header__bar,
body.bbp-forum-western-sacramento-kings .l-fixHeader {
    background: linear-gradient(135deg, #5A2D81 0%, #63727A 100%);
}

body.bbp-forum-western-san-antonio-spurs .l-header__bar,
body.bbp-forum-western-san-antonio-spurs .l-fixHeader {
    background: linear-gradient(135deg, #C8102E 0%, #000000 100%);
}

body.bbp-forum-western-utah-jazz .l-header__bar,
body.bbp-forum-western-utah-jazz .l-fixHeader {
    background: linear-gradient(135deg, #002B5C 0%, #F9A01B 100%);
}

/* ============================================
   bbPressフォーラムページ - シンプルで使いやすいスタイル
   ============================================ */

/* bbPress全体のコンテナ */
#bbpress-forums {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* フォーラムページのヘッダー */
#bbpress-forums .bbp-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ff6b35;
}

#bbpress-forums .bbp-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* チームコミュニティページ（30チーム一覧） */
.team-communities-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.communities-header {
    text-align: center;
    margin-bottom: 60px;
}

.communities-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.communities-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ff6b35;
    margin: 20px auto 0;
}

.communities-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.communities-content {
    margin-top: 40px;
}

/* bbPressのデフォルトフォーラム一覧を非表示 */
#bbpress-forums .bbp-forums {
    display: none;
}

/* 個別フォーラムページとトピックページは通常通り表示 */
#bbpress-forums .bbp-single-forum .bbp-forums,
#bbpress-forums .bbp-single-topic .bbp-topics {
    display: block;
}

/* フォーラム一覧 - カード形式で見やすく */
#bbpress-forums table {
    width: 100%;
    border: none;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

#bbpress-forums thead {
    display: none;
}

#bbpress-forums tbody {
    display: block;
}

#bbpress-forums tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid transparent;
    margin-bottom: 16px;
    padding: 0;
    transition: all 0.2s ease;
    border-radius: 0;
}

#bbpress-forums tbody tr:hover {
    border-left-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

#bbpress-forums tbody tr:last-child {
    margin-bottom: 0;
}

#bbpress-forums tbody td {
    display: block;
    padding: 20px 24px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

#bbpress-forums tbody td:last-child {
    border-bottom: none;
}

/* フォーラム名のスタイル */
#bbpress-forums .bbp-forum-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

#bbpress-forums .bbp-forum-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
}

#bbpress-forums .bbp-forum-title a:hover {
    color: #ff6b35;
}

/* フォーラム説明 */
#bbpress-forums .bbp-forum-description {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* メタ情報をシンプルに */
#bbpress-forums .bbp-forum-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

#bbpress-forums .bbp-forum-meta span {
    display: inline-block;
    margin-right: 16px;
}

#bbpress-forums .bbp-forum-meta strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* トピック数・投稿数を強調 */
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count {
    font-weight: 600;
    color: #ff6b35;
}

/* 最新投稿情報 */
#bbpress-forums .bbp-forum-freshness {
    font-size: 0.85rem;
    color: #666;
}

#bbpress-forums .bbp-forum-freshness a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

#bbpress-forums .bbp-forum-freshness a:hover {
    color: #ff6b35;
}

/* チームロゴをフォーラム名の前に表示 */
#bbpress-forums .bbp-forum-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 0;
}

/* サブフォーラムのスタイル */
#bbpress-forums .bbp-forum-sub-forums {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

#bbpress-forums .bbp-forum-sub-forums-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#bbpress-forums .bbp-forum-sub-forums ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#bbpress-forums .bbp-forum-sub-forums li {
    margin: 0;
}

#bbpress-forums .bbp-forum-sub-forums a {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-forum-sub-forums a:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* カテゴリー見出し（親フォーラム） */
#bbpress-forums .bbp-forum-title.bbp-parent-forum-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

#bbpress-forums .bbp-forum-title.bbp-parent-forum-title:first-child {
    margin-top: 0;
}

#bbpress-forums .bbp-forum-title.bbp-parent-forum-title a {
    color: inherit;
}

/* 検索フォームのスタイル */
#bbpress-forums .bbp-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

#bbpress-forums .bbp-search-form input[type="text"] {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
}

#bbpress-forums .bbp-search-form input[type="submit"] {
    padding: 12px 24px;
    background: #ff6b35;
    color: #fff;
    border: 2px solid #ff6b35;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-search-form input[type="submit"]:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

/* トピック一覧 - カード形式で見やすく */
#bbpress-forums .bbp-topics {
    background: transparent;
    border: none;
    margin-top: 30px;
}

#bbpress-forums .bbp-topics table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

#bbpress-forums .bbp-topics thead {
    display: none;
}

#bbpress-forums .bbp-topics tbody {
    display: block;
}

#bbpress-forums .bbp-topics tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid transparent;
    margin-bottom: 16px;
    padding: 0;
    transition: all 0.2s ease;
    border-radius: 0;
}

#bbpress-forums .bbp-topics tbody tr:hover {
    border-left-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

#bbpress-forums .bbp-topics tbody tr:last-child {
    margin-bottom: 0;
}

#bbpress-forums .bbp-topics tbody td {
    display: block;
    padding: 20px 24px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

#bbpress-forums .bbp-topics tbody td:last-child {
    border-bottom: none;
}

/* トピックタイトルとメタ情報をまとめて表示 */
#bbpress-forums .bbp-topic-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

#bbpress-forums .bbp-topic-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

#bbpress-forums .bbp-topic-title a:hover {
    color: #ff6b35;
}

#bbpress-forums .bbp-topic-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

#bbpress-forums .bbp-topic-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

#bbpress-forums .bbp-topic-meta a:hover {
    color: #ff6b35;
}

/* 返信数と最新投稿情報を強調表示 */
#bbpress-forums .bbp-topic-reply-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #ff6b35;
    font-size: 0.9rem;
    padding: 4px 12px;
    background: #fff5f2;
    border-radius: 4px;
}

#bbpress-forums .bbp-topic-freshness {
    font-size: 0.85rem;
    color: #999;
    margin-left: auto;
}

#bbpress-forums .bbp-topic-freshness a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

#bbpress-forums .bbp-topic-freshness a:hover {
    color: #ff6b35;
}

/* 新規トピック作成ボタン */
.bbp-new-topic-button {
    display: inline-block;
    padding: 14px 28px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #ff6b35;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

.bbp-new-topic-button:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: #fff;
}

/* カテゴリー見出し */
.bbp-forum-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bbp-forum-category-title:first-child {
    margin-top: 0;
}

/* パンくずリスト - シンプルに */
#bbpress-forums .bbp-breadcrumb {
    background: transparent;
    padding: 0;
    border: none;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #999;
}

#bbpress-forums .bbp-breadcrumb a {
    color: #666;
    text-decoration: none;
}

#bbpress-forums .bbp-breadcrumb a:hover {
    color: #ff6b35;
}

/* トピック詳細ページの投稿表示 - テーブル形式を維持しつつ見やすく */
#bbpress-forums .bbp-replies {
    background: transparent;
    border: none;
}

#bbpress-forums .bbp-replies table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

#bbpress-forums .bbp-replies thead th {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#bbpress-forums .bbp-replies tbody tr {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-replies tbody tr:hover {
    border-left-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#bbpress-forums .bbp-replies tbody tr:not(:last-child) {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

#bbpress-forums .bbp-replies tbody td {
    padding: 24px 20px;
    vertical-align: top;
    border: none;
}

/* 投稿者カラム */
#bbpress-forums .bbp-replies .bbp-reply-author {
    width: 200px;
    min-width: 180px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
}

#bbpress-forums .bbp-replies .bbp-author-avatar {
    margin-bottom: 12px;
}

#bbpress-forums .bbp-replies .bbp-author-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

#bbpress-forums .bbp-replies .bbp-author-role {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 12px;
}

#bbpress-forums .bbp-replies .bbp-post-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

#bbpress-forums .bbp-replies .bbp-reply-permalink {
    font-size: 0.75rem;
    color: #999;
}

/* 投稿内容カラム */
#bbpress-forums .bbp-replies .bbp-reply-content {
    padding-left: 24px;
}

#bbpress-forums .bbp-replies .bbp-reply-content p {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

#bbpress-forums .bbp-replies .bbp-reply-content p:last-child {
    margin-bottom: 0;
}

/* トピック（最初の投稿）のスタイル */
#bbpress-forums .bbp-topic {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ff6b35;
    margin-bottom: 24px;
    border-radius: 0;
    overflow: hidden;
}

#bbpress-forums .bbp-topic-header {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#bbpress-forums .bbp-topic-author {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#bbpress-forums .bbp-topic-post-date {
    font-size: 0.85rem;
    color: #999;
    margin-left: auto;
}

#bbpress-forums .bbp-topic-content {
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

#bbpress-forums .bbp-topic-content p {
    margin: 0 0 16px;
}

#bbpress-forums .bbp-topic-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   投稿フォーム - コンパクトで使いやすく
   ============================================ */

/* 返信フォームをコンパクトに */
#bbpress-forums .bbp-reply-form,
#bbpress-forums .bbp-topic-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0;
}

#bbpress-forums .bbp-form {
    margin: 0;
}

/* フォームタイトルをコンパクトに */
#bbpress-forums .bbp-form legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b35;
}

/* HTMLコンテンツのメッセージを非表示 - フォーム内のメッセージのみ */
#bbpress-forums .bbp-template-notice.info li:contains("HTML コンテンツ"),
#bbpress-forums .bbp-template-notice.info li:contains("制限無しで投稿できます") {
    display: none !important;
}

/* フォームは確実に表示 */
#bbpress-forums .bbp-reply-form,
#bbpress-forums .bbp-topic-form,
#bbpress-forums form {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

#bbpress-forums form fieldset {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* テキストエリアをコンパクトに */
#bbpress-forums .bbp-form textarea#bbp_reply_content,
#bbpress-forums .bbp-form textarea#bbp_topic_content {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

#bbpress-forums .bbp-form textarea#bbp_reply_content:focus,
#bbpress-forums .bbp-form textarea#bbp_topic_content:focus {
    outline: none;
    border-color: #ff6b35;
}

/* 文字数カウンター */
#bbpress-forums .bbp-form .bbp-character-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

#bbpress-forums .bbp-form .bbp-character-count.warning {
    color: #ff6b35;
}

#bbpress-forums .bbp-form .bbp-character-count.error {
    color: #dc3545;
    font-weight: 600;
}

/* フォームのボタンをコンパクトに */
#bbpress-forums .bbp-form .bbp-submit-wrapper {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

#bbpress-forums .bbp-form button[type="submit"],
#bbpress-forums .bbp-form input[type="submit"] {
    padding: 10px 24px;
    background: #ff6b35;
    color: #fff;
    border: 2px solid #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

#bbpress-forums .bbp-form button[type="submit"]:hover,
#bbpress-forums .bbp-form input[type="submit"]:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

#bbpress-forums .bbp-form button[type="submit"]:disabled,
#bbpress-forums .bbp-form input[type="submit"]:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* フォームのラベルをコンパクトに */
#bbpress-forums .bbp-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
}

/* 不要な要素を非表示 */
#bbpress-forums .bbp-form .bbp-form-section {
    margin-bottom: 20px;
}

#bbpress-forums .bbp-form .bbp-form-section:last-child {
    margin-bottom: 0;
}

/* エディタのツールバーをコンパクトに */
#bbpress-forums .wp-editor-tools {
    margin-bottom: 8px;
}

#bbpress-forums .wp-editor-container {
    border: 2px solid #e0e0e0;
    border-radius: 0;
}

#bbpress-forums .wp-editor-container:focus-within {
    border-color: #ff6b35;
}

/* ============================================
   スマホ対応（レスポンシブデザイン）
   ============================================ */

/* タブレット以下（768px以下） */
@media (max-width: 768px) {
    /* bbPress全体 */
    #bbpress-forums {
        padding: 20px 15px;
    }
    
    /* フォーラム一覧 */
    #bbpress-forums .bbp-forum-logo {
        width: 32px;
        height: 32px;
    }
    
    /* トピック一覧 */
    #bbpress-forums .bbp-topics thead {
        display: none;
    }
    
    #bbpress-forums .bbp-topics tbody tr {
        display: block;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 16px;
    }
    
    #bbpress-forums .bbp-topics tbody td {
        display: block;
        padding: 12px 16px;
        text-align: left !important;
    }
    
    /* トピック詳細ページ - 2列を1列に */
    #bbpress-forums .bbp-replies table {
        display: block;
    }
    
    #bbpress-forums .bbp-replies thead {
        display: none;
    }
    
    #bbpress-forums .bbp-replies tbody {
        display: block;
    }
    
    #bbpress-forums .bbp-replies tbody tr {
        display: block;
        margin-bottom: 20px;
    }
    
    #bbpress-forums .bbp-replies tbody td {
        display: block;
        width: 100% !important;
        padding: 16px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    #bbpress-forums .bbp-replies tbody td:last-child {
        border-bottom: none;
    }
    
    /* 投稿者カラムを上に、投稿内容を下に */
    #bbpress-forums .bbp-replies .bbp-reply-author {
        width: 100% !important;
        min-width: 100% !important;
        background: #f8f9fa;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    #bbpress-forums .bbp-replies .bbp-author-avatar {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    #bbpress-forums .bbp-replies .bbp-author-name {
        margin-bottom: 4px;
    }
    
    #bbpress-forums .bbp-replies .bbp-author-role {
        margin-bottom: 0;
        font-size: 0.75rem;
    }
    
    #bbpress-forums .bbp-replies .bbp-post-date {
        margin-left: auto;
        font-size: 0.75rem;
    }
    
    /* 投稿内容カラム */
    #bbpress-forums .bbp-replies .bbp-reply-content {
        padding: 16px;
        padding-left: 16px;
    }
    
    /* 投稿ヘッダー */
    #bbpress-forums .bbp-reply-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    #bbpress-forums .bbp-reply-header .bbp-meta {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    #bbpress-forums .bbp-reply-header .bbp-admin-links {
        font-size: 0.75rem;
    }
    
    /* 投稿フォーム */
    #bbpress-forums .bbp-reply-form,
    #bbpress-forums .bbp-topic-form {
        padding: 16px;
        margin: 20px 0;
    }
    
    #bbpress-forums .bbp-form textarea#bbp_reply_content,
    #bbpress-forums .bbp-form textarea#bbp_topic_content {
        min-height: 120px;
        font-size: 16px; /* iOSのズームを防ぐ */
    }
    
    #bbpress-forums .bbp-form button[type="submit"],
    #bbpress-forums .bbp-form input[type="submit"] {
        width: 100%;
        padding: 12px;
    }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    /* bbPress全体 */
    #bbpress-forums {
        padding: 15px 10px;
    }
    
    /* ヘッダー */
    #bbpress-forums .bbp-header h1 {
        font-size: 1.5rem;
    }
    
    /* トピック一覧 */
    #bbpress-forums .bbp-topic-title {
        font-size: 1rem;
    }
    
    #bbpress-forums .bbp-topic-meta {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    #bbpress-forums .bbp-topic-reply-count {
        margin-left: 0;
    }
    
    #bbpress-forums .bbp-topic-freshness {
        margin-left: 0;
    }
    
    /* トピック詳細ページ */
    #bbpress-forums .bbp-replies tbody td {
        padding: 12px;
    }
    
    #bbpress-forums .bbp-replies .bbp-reply-author {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    #bbpress-forums .bbp-replies .bbp-author-avatar img {
        width: 50px;
        height: 50px;
    }
    
    #bbpress-forums .bbp-replies .bbp-post-date {
        margin-left: 0;
        margin-top: 8px;
    }
    
    #bbpress-forums .bbp-replies .bbp-reply-content {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* 投稿ヘッダー */
    #bbpress-forums .bbp-reply-header {
        padding: 10px 12px;
    }
    
    #bbpress-forums .bbp-reply-header .bbp-admin-links {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    #bbpress-forums .bbp-reply-header .bbp-admin-links a {
        margin: 0 2px;
    }
    
    /* 投稿フォーム */
    #bbpress-forums .bbp-reply-form,
    #bbpress-forums .bbp-topic-form {
        padding: 12px;
        margin: 15px 0;
    }
    
    #bbpress-forums .bbp-form legend {
        font-size: 1rem;
    }
    
    #bbpress-forums .bbp-form textarea#bbp_reply_content,
    #bbpress-forums .bbp-form textarea#bbp_topic_content {
        min-height: 100px;
        padding: 10px;
        font-size: 16px; /* iOSのズームを防ぐ */
    }
    
    /* パンくずリスト */
    #bbpress-forums .bbp-breadcrumb {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    /* ページネーション */
    #bbpress-forums .bbp-pagination {
        font-size: 0.8rem;
    }
}

/* ============================================
   30チームロゴ一覧（トップページ）
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.team-grid-item {
    text-align: center;
    transition: transform 0.2s;
}

.team-grid-item:hover {
    transform: scale(1.05);
}

.team-grid-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.team-logo-color {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.team-logo-abbr {
    font-size: 0.5em;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.team-name {
    font-size: 14px;
    font-weight: 500;
}

/* カンファレンス別セクション */
.conference-section {
    margin-bottom: 40px;
}

.conference-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* スマホ対応（横スクロール） */
@media (max-width: 768px) {
    .team-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .team-grid-item {
        min-width: 100px;
    }
    
    .team-logo {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   記事と掲示板の連携ボタン
   ============================================ */

.team-forum-link-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background-color: #006BB6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.team-forum-link-button:hover {
    background-color: #005a9e;
    color: #fff;
}

.team-forum-link-button::after {
    content: " →";
    margin-left: 5px;
}

/* ============================================
   最近更新されたコミュニティ一覧（トップページ）
   ============================================ */

.recent-forums-list,
.recent-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.recent-forums-list li,
.recent-topics-list li {
    margin: 0;
    padding: 0;
}

.recent-forum-link,
.recent-topic-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.recent-forum-link:hover,
.recent-topic-link:hover {
    border-left-color: #ff6b35;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recent-forum-team-logo,
.recent-topic-team-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 0;
    overflow: hidden;
}

.recent-forum-team-logo .team-logo-color,
.recent-topic-team-logo .team-logo-color {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.recent-forum-team-logo .team-logo-inner,
.recent-topic-team-logo .team-logo-inner {
    width: 60%;
    height: 60%;
}

.recent-forum-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-forum-title,
.recent-topic-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.recent-forum-link:hover .recent-forum-title,
.recent-topic-link:hover .recent-topic-title {
    color: #ff6b35;
}

.recent-forum-meta,
.recent-topic-meta {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* ============================================
   カスタムホームページスタイル
   ============================================ */

.homepage-custom {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* PC版でヘッダーとヒーローセクションの間の余白を削除 */
.homepage-custom .homepage-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* l-mainのpadding-topも削除 */
.l-main.homepage-custom {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* PC版（769px以上）でヒーローセクションの上の余白を完全にゼロに */
@media (min-width: 769px) {
    .homepage-custom .homepage-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .l-main.homepage-custom {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* 親要素の余白も削除 */
    body.home .homepage-custom .homepage-hero,
    body.page-template-page-homepage .homepage-custom .homepage-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* l-contentsやl-containerの余白も削除 */
    .homepage-custom .l-contents,
    .homepage-custom .l-container,
    .homepage-custom .l-inner {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ===================================== */
/* ヒーローセクション全体のスタイル */
/* ===================================== */
.homepage-hero {
    width: 100%;
    height: 90vh;
    min-height: 90vh;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    text-align: center;
}

/* 背景画像 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: 1;
    transform: none !important;
    will-change: auto;
    /* ヒーローセクションの範囲内に収める */
    overflow: hidden;
}

/* PC版のヒーローセクションの上部を5%カット */
.hero-background-desktop {
    top: -5%;
    height: 105%;
    background-position: center top;
    display: block;
}

/* スマホ版はデフォルトで非表示（メディアクエリで表示） */
.hero-background-mobile {
    display: none;
}

/* クリック可能なボタンエリア */
.hero-clickable-areas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-button-area {
    position: absolute;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.hero-button-area:hover {
    opacity: 0.8;
    background: rgba(255, 107, 53, 0.1);
}

/* PC版のボタン位置（横一列に配置、横長に） */
.hero-button-view-logs {
    /* 画像の「観戦ログを見る」ボタンの位置（左側のボタン） */
    bottom: 25%;
    left: 30%;
    transform: translateX(-50%);
    width: 450px;
    height: 65px;
}

.hero-button-report-log {
    /* 画像の「観戦ログを報告する」ボタンの位置（右側のボタン） */
    bottom: 25%;
    left: 70%;
    transform: translateX(-50%);
    width: 450px;
    height: 65px;
}

/* スマホ版では縦型画像を表示 */
@media (max-width: 768px) {
    .hero-background-desktop {
        display: none !important;
    }
    
    .hero-background-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* スマホ版のヒーローセクション（上下をさらに小さく、余白を完全に削除） */
    .homepage-hero {
        position: relative !important;
        overflow: visible !important;
        height: 50vh !important;
        min-height: 50vh !important;
        max-height: 50vh !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        transform: none !important;
        will-change: auto;
    }
    
    /* スマホ版：クリック可能エリアの高さを親要素に合わせる */
    .hero-clickable-areas {
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10 !important;
    }
    
    /* スマホ版の背景画像を調整（ヒーローセクション内に収める） */
    .hero-background-mobile {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: contain !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        transform: none !important;
        z-index: 1 !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    
    /* スマホ版のボタン位置（上に寄せて少し左にずらす） */
    .hero-button-view-logs {
        /* 画像の中央上部に相対位置で配置（さらに小さく、左下に移動） */
        top: 42% !important;
        left: 38% !important;
        transform: translate(-50%, -50%) !important;
        width: 160px !important;
        height: 40px !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        position: absolute !important;
        display: block !important;
        opacity: 0 !important;
        z-index: 10 !important;
    }
    
    .hero-button-view-logs::before {
        content: '観戦ログを見る' !important;
        display: block !important;
        color: white !important;
        text-align: center !important;
        line-height: 40px !important;
        font-weight: bold !important;
        font-size: 9px !important;
    }
    
    .hero-button-report-log {
        /* 観戦ログを見るボタンの下に相対位置で配置（さらに小さく、左下に移動、左端を揃える） */
        top: 53% !important;
        left: 38% !important;
        transform: translate(-50%, -50%) !important;
        width: 180px !important;
        height: 40px !important;
        box-sizing: border-box !important;
        position: absolute !important;
        display: block !important;
        opacity: 0 !important;
        z-index: 10 !important;
    }
    
    .hero-button-report-log::before {
        content: '観戦ログを報告する' !important;
        display: block !important;
        color: white !important;
        text-align: center !important;
        line-height: 40px !important;
        font-weight: bold !important;
        font-size: 9px !important;
    }
    
    
    /* 小さいスマホ（iPhone SEなど）用の調整 */
    @media (max-width: 375px) {
        .hero-button-view-logs {
            top: 39% !important;
            left: 36% !important;
            width: 140px !important;
            height: 36px !important;
        }
        
        .hero-button-view-logs::before {
            line-height: 36px !important;
            font-size: 8px !important;
        }
        
        .hero-button-report-log {
            top: 50% !important;
            left: 36% !important;
            width: 160px !important;
            height: 36px !important;
        }
        
        .hero-button-report-log::before {
            line-height: 36px !important;
            font-size: 8px !important;
        }
    }
    
    /* 大きいスマホ（iPhone Pro Maxなど）用の調整 */
    @media (min-width: 414px) and (max-width: 768px) {
        .hero-button-view-logs {
            top: 43% !important;
            left: 39% !important;
            width: 170px !important;
            height: 42px !important;
        }
        
        .hero-button-view-logs::before {
            line-height: 42px !important;
            font-size: 9px !important;
        }
        
        .hero-button-report-log {
            top: 54% !important;
            left: 39% !important;
            width: 190px !important;
            height: 42px !important;
        }
        
        .hero-button-report-log::before {
            line-height: 42px !important;
            font-size: 9px !important;
        }
    }
    
    /* スマホ版：ヒーローセクションと次のセクションの間の隙間を完全に削除 */
    .homepage-hero {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* スマホ版：今日の試合セクションの上部パディングを完全に削除 */
    .today-games {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* スマホ版：最初のホームページセクションの上部パディングを完全に削除 */
    .homepage-section:first-of-type {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* スマホ版：すべてのホームページセクションの上部マージン/パディングを削除 */
    .homepage-section {
        margin-top: 0 !important;
    }
}

/* ヒーローセクションのテキストは画像内に含まれているため、CSSでは非表示 */
.hero-content {
    display: none;
}

/* すべての記事を見るボタン - 白色テキストに強制 */
a.btn.btn-outline,
.btn.btn-outline,
a[href*="/category/"].btn.btn-outline,
.section-footer a.btn.btn-outline,
.section-footer .btn.btn-outline,
.homepage-section a.btn.btn-outline,
.homepage-section .btn.btn-outline {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

a.btn.btn-outline:hover,
.btn.btn-outline:hover,
a[href*="/category/"].btn.btn-outline:hover,
.section-footer a.btn.btn-outline:hover,
.section-footer .btn.btn-outline:hover,
.homepage-section a.btn.btn-outline:hover,
.homepage-section .btn.btn-outline:hover {
    background: #fff !important;
    color: #1a1a1a !important;
    border-color: #fff !important;
}

/* より強力な上書き - すべての記事を見るリンク */
a[href*="/category/news/"].btn,
a[href*="/category/news/"].btn.btn-outline,
a[href*="/category/news/"] {
    color: #fff !important;
}

a[href*="/category/news/"].btn:hover,
a[href*="/category/news/"].btn.btn-outline:hover,
a[href*="/category/news/"]:hover {
    color: #1a1a1a !important;
}

/* セクション共通スタイル */
.homepage-section {
    padding: 80px 20px;
}

/* PC版：最初のセクション（今日の試合）の上部パディングを少し残す */
@media (min-width: 769px) {
    .homepage-section:first-of-type,
    .today-games {
        padding-top: 40px !important;
        margin-top: 0 !important;
    }
    
    .homepage-hero {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* スマホ版：最初のセクション（今日の試合）の上部パディングを完全に削除 */
@media (max-width: 768px) {
    .homepage-section:first-of-type,
    .today-games {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

.homepage-section:nth-child(even) {
    background: #1a1a1a;
    color: #fff;
}

/* すべてのホームページセクションをダークに統一 */
.homepage-section {
    background: #1a1a1a !important;
    color: #fff !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 24px;
    text-align: left;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    display: inline-block;
    position: relative;
    text-shadow: none;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.section-description {
    text-align: left;
    font-size: 1rem;
    color: #666;
    margin: 0 0 48px;
    font-weight: 400;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.section-footer .btn {
    display: inline-block;
    margin: 0 auto;
}

/* PC版：すべての試合を見る/すべての記事を見るボタンを大きく */
@media (min-width: 769px) {
    .section-footer .btn.btn-outline,
    .homepage-section .btn.btn-outline,
    a[href*="/category/"].btn.btn-outline,
    a[href*="/game/"].btn.btn-outline {
        padding: 16px 48px !important;
        font-size: 1.1rem !important;
        min-width: 300px !important;
        text-align: center !important;
        display: inline-block !important;
    }
}

/* 最新記事セクション */
.latest-articles {
    background: #1a1a1a;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

/* 最新記事グリッド（PC版：3件表示、スマホ版：1件＋横スクロール） */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* PC版：4件目以降を非表示（メインページの最新記事セクションのみ） */
.homepage-section.latest-articles .latest-articles-grid .article-card:nth-child(n+4) {
    display: none;
}

/* カテゴリページでは全ての記事を表示 */
.category-articles-grid .article-card {
    display: block;
}

.article-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-4px);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.article-thumbnail.placeholder {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.5;
}

.article-content {
    padding: 20px;
    background: #2a2a2a;
    color: #fff;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.article-meta time {
    color: #999;
}

.article-category {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.article-category:hover {
    text-decoration: underline;
}

.article-team {
    background: #1a1a1a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid #ff6b35;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* 最新トピック一覧（ショートコード） */
.recent-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.recent-topics-list li {
    margin: 0;
    padding: 0;
}

.recent-topic-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.recent-topic-link:hover {
    border-left-color: #ff6b35;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recent-topic-team-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.recent-topic-team-logo .team-logo-color {
    width: 100%;
    height: 100%;
}

.recent-topic-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-topic-link:hover .recent-topic-title {
    color: #ff6b35;
}

.recent-topic-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* 30チームロゴセクション */
.team-grid-section {
    background: #1a1a1a;
    color: #fff;
}

/* 人気トピックセクション */
.popular-topics {
    background: #1a1a1a;
    color: #fff;
}

/* カテゴリー別記事セクション */
.category-articles {
    background: #1a1a1a;
    color: #fff;
}

.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    display: inline-block;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff6b35;
}

.category-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.category-title a:hover {
    opacity: 0.7;
}

.articles-list {
    display: grid;
    gap: 20px;
}

.article-item {
    background: #2a2a2a;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #444;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
    max-width: 100%;
    color: #fff;
}

.article-item:hover {
    border-left-color: #ff6b35;
    border-color: #e0e0e0;
}

.article-item .article-link {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.article-thumbnail-small {
    width: 320px;
    min-width: 320px;
    aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.article-thumbnail-small img,
.article-thumbnail-small .article-image-small,
.article-thumbnail-small .wp-post-image {
    /* WordPressのwidth/height属性を完全に無視 */
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    /* 画像のアスペクト比を無視して、コンテナに合わせる */
    aspect-ratio: unset !important;
}

.article-content-small {
    flex: 1;
    min-width: 0;
}

.article-title-small {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.article-item:hover .article-title-small {
    color: #ff6b35;
}

.article-date-small {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================
   レスポンシブ対応（スマホ最適化）
   ============================================ */

/* タブレット以下（768px以下） */
@media (max-width: 768px) {
    /* 最新記事グリッド：スマホ版は横スクロール */
    .latest-articles-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        margin-top: 32px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* iOSのスムーズスクロール */
        scroll-snap-type: x mandatory; /* スナップスクロール */
    }
    
    .latest-articles-grid .article-card {
        flex: 0 0 calc(100% - 32px); /* 1件表示（左右の余白を考慮） */
        min-width: calc(100% - 32px);
        scroll-snap-align: start; /* スナップ位置 */
    }
    
    /* スマホ版：2件目以降も表示 */
    .latest-articles-grid .article-card:nth-child(n+2) {
        display: block;
    }
    
    /* スクロールバーのスタイル（オプション） */
    .latest-articles-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .latest-articles-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 2px;
    }
    
    .latest-articles-grid::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 2px;
    }
    
    /* スマホ版: ヘッダーナビゲーションを非表示、ハンバーガーメニューのみ表示 */
    .l-header__nav {
        display: none !important;
    }
    
    /* SWELLテーマのデフォルトスマホメニューを非表示（重複を避ける） */
    .p-spHeadMenu,
    .l-header__nav--sp,
    .c-drawer,
    .c-drawer__toggle,
    .p-spHeadMenu ul,
    .p-spHeadMenu li {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* ハンバーガーメニューボタンを表示 */
    .l-header__btnMenu {
        display: block !important;
        color: #1a1a1a;
        border: 2px solid #1a1a1a;
        padding: 10px 14px;
        background: transparent;
        cursor: pointer;
        transition: all 0.2s ease;
        border-radius: 0;
        font-size: 1.2rem;
    }
    
    .l-header__btnMenu:hover {
        color: #ff6b35;
        border-color: #ff6b35;
        background: rgba(255, 107, 53, 0.1);
    }
    
    /* ヘッダーの最適化 - モバイル版 */
    .l-header__bar .l-header__inner,
    .l-header__inner {
        padding: 0 15px !important;
        display: flex !important;
        justify-content: space-between !important; /* centerから変更 */
        align-items: center !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        min-height: 60px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important; /* ハンバーガーメニューを絶対配置するため */
    }
    
    /* ナビゲーションと検索ボタンを完全に非表示 */
    .l-header__gnav,
    .l-header__customBtn,
    .c-gnavWrap,
    .c-gnav {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        flex: 0 0 0 !important;
    }
    
    /* ロゴとハンバーガーメニューのみ表示 */
    .l-header__logo {
        flex: 1 1 auto !important; /* 中央に配置するため */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100% - 60px) !important; /* ハンバーガーメニューのスペースを確保 */
        min-width: 0 !important;
        font-size: 1.5rem !important;
        letter-spacing: 0.05em !important;
        flex-shrink: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* ロゴ内のテキストを中央揃え */
        gap: 0 !important; /* アイコンとテキストを一体化 */
    }
    
    /* ハンバーガーメニューボタンを絶対配置で右側に固定 */
    .l-header__menuBtn {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        display: block !important;
        visibility: visible !important;
        z-index: 10 !important;
    }
    
    .l-header__logo::before {
        flex-shrink: 0 !important;
        font-size: 1em !important; /* テキストサイズに完全に合わせる */
        line-height: 1 !important; /* テキストのline-heightに合わせる */
        vertical-align: baseline !important;
        display: inline-block !important;
        margin-right: 0.2em !important; /* アイコンとテキストの間隔を最小限に */
    }
    
    .l-header__logo a,
    .l-header__logo .c-headLogo,
    .l-header__logo .c-headLogo__link {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
        max-width: 100% !important;
        font-size: inherit !important;
        word-break: keep-all !important;
        word-wrap: normal !important;
        line-height: inherit !important; /* 親要素のline-heightを継承 */
    }
    
    .l-header__logo .c-headLogo {
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    /* ハンバーガーメニューボタン */
    .l-header__btnMenu,
    .l-header__menuBtn {
        flex-shrink: 0 !important;
        width: 44px !important;
        min-width: 44px !important;
    }
    
    /* ナビゲーションと検索ボタンを非表示 */
    .l-header__gnav,
    .l-header__customBtn {
        display: none !important;
    }
    
    /* ヒーローセクション */
    .homepage-hero {
        padding: 80px 20px 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
    
    /* セクション */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .homepage-section {
        padding: 60px 20px;
    }
    
    /* 記事グリッド */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-card {
        margin-bottom: 20px;
    }
    
    .article-card .article-content {
        padding: 16px;
    }
    
    .article-card .article-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .article-card .article-meta {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* スマホ版：アイキャッチ画像の修正 */
    .article-thumbnail {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        box-sizing: border-box;
    }
    
    .article-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }
    
    .article-item {
        margin-bottom: 20px;
    }
    
    .article-item .article-link {
        flex-direction: column;
        gap: 16px;
    }
    
    .article-thumbnail-small {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
        flex-shrink: 0;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        box-sizing: border-box;
    }
    
    .article-thumbnail-small img,
    .article-thumbnail-small .article-image-small,
    .article-thumbnail-small .wp-post-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block;
    }
    
    .article-content-small {
        width: 100%;
    }
    
    .article-title-small {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .article-meta {
        font-size: 0.85rem;
    }
    
    /* 最新トピック一覧 */
    .recent-topics-list {
        gap: 12px;
    }
    
    .recent-topic-link {
        padding: 14px;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .recent-topic-team-logo {
        width: 45px;
        height: 45px;
    }
    
    .recent-topic-title {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
    }
    
    .recent-topic-meta {
        font-size: 0.75rem;
        width: 100%;
        text-align: right;
    }
    
    /* チームグリッド */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 16px;
    }
    
    .team-logo {
        width: 70px;
        height: 70px;
    }
    
    .team-name {
        font-size: 13px;
    }
    
    /* トピック一覧 */
    .topics-list {
        gap: 12px;
    }
    
    .topic-item {
        padding: 16px;
    }
    
    .topic-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .topic-meta {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    /* カテゴリー別記事セクション */
    .category-section {
        margin-bottom: 40px;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    /* チームコミュニティページ */
    .communities-header h1 {
        font-size: 2rem;
    }
    
    .communities-header p {
        font-size: 1rem;
    }
    
    /* フッター */
    .l-footer {
        padding: 40px 0 20px;
    }
    
    .l-footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .l-footer__section {
        margin-bottom: 30px;
    }
    
    .l-footer__copyright {
        padding-top: 20px;
        font-size: 0.75rem;
    }
    
    .l-footer__copyright p {
        margin: 8px 0;
    }
    
    .l-footer__copyright a {
        display: block;
        margin: 4px 0;
    }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    /* ヘッダー */
    .l-header__bar .l-header__inner {
        padding: 0 10px !important;
        flex-wrap: nowrap !important;
        min-height: 56px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .l-header__logo {
        font-size: 1.3rem !important; /* 小さいスマホでも読みやすいサイズ */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100vw - 90px) !important; /* ハンバーガーメニューのスペースを確保 */
        min-width: 0 !important;
        letter-spacing: 0.03em !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important; /* アイコンとテキストを一体化 */
        line-height: 1.3rem !important; /* テキストのline-heightを明示的に設定 */
    }
    
    .l-header__logo::before {
        font-size: 1em !important; /* テキストサイズに完全に合わせる */
        line-height: 1 !important; /* テキストのline-heightに合わせる */
        vertical-align: baseline !important;
        display: inline-block !important;
        margin-right: 0.2em !important; /* アイコンとテキストの間隔を最小限に */
    }
    
    /* ハンバーガーメニューボタンを絶対配置で右側に固定 */
    .l-header__menuBtn {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }
    
    /* ナビゲーションと検索ボタンを完全に非表示 */
    .l-header__gnav,
    .l-header__customBtn,
    .c-gnavWrap,
    .c-gnav {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        flex: 0 0 0 !important;
    }
    
    /* ハンバーガーメニューボタンを確実に表示 */
    .l-header__menuBtn {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .l-header__logo a,
    .l-header__logo .c-headLogo,
    .l-header__logo .c-headLogo__link {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
        font-size: inherit !important;
        max-width: 100% !important;
        word-break: keep-all !important;
        word-wrap: normal !important;
        line-height: inherit !important; /* 親要素のline-heightを継承 */
    }
    
    .l-header__logo .c-headLogo {
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    .l-header__logo::before {
        font-size: 1em !important; /* テキストサイズに完全に合わせる */
        flex-shrink: 0 !important;
        margin-right: 0.2em !important; /* アイコンとテキストの間隔を最小限に */
        line-height: 1 !important; /* テキストのline-heightに合わせる */
        vertical-align: baseline !important;
        display: inline-block !important;
    }
    
    /* ハンバーガーメニューボタン */
    .l-header__btnMenu,
    .l-header__menuBtn {
        flex-shrink: 0 !important;
        width: 40px !important;
        min-width: 40px !important;
    }
    
    /* ナビゲーションと検索ボタンを非表示 */
    .l-header__gnav,
    .l-header__customBtn {
        display: none !important;
    }
    
    .l-header__nav a {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    /* ヒーローセクション */
    .homepage-hero {
        padding: 60px 15px 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .hero-cta {
        gap: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* セクション */
    .homepage-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    /* 記事グリッド */
    .articles-grid {
        gap: 12px;
    }
    
    .article-card {
        margin-bottom: 16px;
    }
    
    .article-card .article-content {
        padding: 14px;
    }
    
    .article-card .article-title {
        font-size: 1rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .article-card .article-meta {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .article-card .article-team {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .article-item {
        margin-bottom: 16px;
    }
    
    .article-item .article-link {
        gap: 12px;
        padding: 12px;
    }
    
    .article-thumbnail-small {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
        flex-shrink: 0;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        box-sizing: border-box;
    }
    
    .article-thumbnail-small img,
    .article-thumbnail-small .article-image-small,
    .article-thumbnail-small .wp-post-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block;
    }
    
    .article-title-small {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .article-meta {
        font-size: 0.8rem;
    }
    
    /* 最新トピック一覧 */
    .recent-topics-list {
        gap: 10px;
    }
    
    .recent-topic-link {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recent-topic-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .recent-topic-title {
        font-size: 0.9rem;
        width: 100%;
        -webkit-line-clamp: 3;
    }
    
    .recent-topic-meta {
        font-size: 0.7rem;
        width: 100%;
        text-align: left;
    }
    
    /* チームグリッド */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
    }
    
    .team-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }
    
    .team-name {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* トピック一覧 */
    .topics-list {
        gap: 10px;
    }
    
    .topic-item {
        padding: 12px;
    }
    
    .topic-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .topic-meta {
        font-size: 0.75rem;
    }
    
    /* カテゴリー別記事セクション */
    .category-section {
        margin-bottom: 30px;
    }
    
    .category-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    /* フォーラムページ */
    .bbp-forum-item,
    .bbp-topic-item {
        padding: 12px;
    }
    
    .bbp-forum-logo {
        width: 40px;
        height: 40px;
    }
    
    /* フッター */
    .l-footer {
        padding: 30px 0 15px;
    }
    
    .l-footer__content {
        padding: 0 15px;
    }
    
    .l-footer__section {
        margin-bottom: 24px;
    }
    
    .l-footer__section h3 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .l-footer__section a {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .l-footer__copyright {
        padding: 20px 15px 0;
        font-size: 0.7rem;
        text-align: center;
    }
    
    .l-footer__copyright p {
        margin: 6px 0;
    }
    
    .l-footer__copyright a {
        display: block;
        margin: 4px 0;
    }
    
    /* 記事一覧 */
    .post-item .post-link {
        flex-direction: column;
        gap: 12px;
    }
    
    .post-item .post-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .post-item .post-title {
        font-size: 1.1rem;
    }
    
    /* ページネーション */
    .pagination {
        margin: 30px 0;
    }
    
    .pagination .page-numbers {
        padding: 10px 14px;
        font-size: 0.85rem;
        margin: 0 2px;
    }
    
    /* コンテナのパディング調整 */
    #bbpress-forums,
    .team-communities-page {
        padding: 30px 15px;
    }
    
    /* フォーラムページのヘッダー */
    #bbpress-forums .bbp-header h1 {
        font-size: 1.5rem;
    }
    
    /* チームコミュニティページ */
    .communities-header {
        margin-bottom: 40px;
    }
    
    .communities-header h1 {
        font-size: 1.75rem;
    }
    
    .communities-header p {
        font-size: 0.9rem;
    }
}

.recent-topic-meta {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

/* ============================================
   フッターカスタマイズ
   ============================================ */

.l-footer-custom {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

/* カスタムフッターのスタイル */
.l-footer-custom {
    display: block !important;
    visibility: visible !important;
}

/* SWELLテーマのデフォルトフッターを表示 */
.l-footer {
    display: block !important;
    visibility: visible !important;
    background: #1a1a1a !important;
    color: #fff !important;
}

/* フッター内のテキストを白色に（リンクを除く） */
.l-footer {
    color: #fff !important;
}

.l-footer p,
.l-footer span,
.l-footer div:not(a),
.l-footer li,
.l-footer td,
.l-footer th {
    color: #fff !important;
}

.l-footer a {
    color: #ccc !important;
}

.l-footer a:hover {
    color: #ff6b35 !important;
}

/* カスタムフッターがある場合でもデフォルトフッターを表示 */
body:has(.l-footer-custom) .l-footer:not(.l-footer-custom) {
    display: block !important;
}

.l-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.l-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.l-footer__section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.l-footer__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.l-footer__section ul li {
    margin-bottom: 12px;
}

.l-footer__section a {
    color: #ccc !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.l-footer__section a:hover {
    color: #ff6b35 !important;
}

/* フッター内のすべてのテキストを白色に */
.l-footer p,
.l-footer span,
.l-footer div,
.l-footer li,
.l-footer td,
.l-footer th {
    color: #fff !important;
}

/* フッターのウィジェットエリア */
.l-footer__widgetArea {
    display: block !important;
    visibility: visible !important;
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 40px 0;
}

.w-footer__box {
    color: #fff !important;
}

.w-footer__box * {
    color: #fff !important;
}

.w-footer__box a {
    color: #ccc !important;
}

.w-footer__box a:hover {
    color: #ff6b35 !important;
}

.l-footer .widget,
.l-footer .c-widget {
    color: #fff !important;
}

.l-footer .widget-title,
.l-footer .c-widget__title {
    color: #fff !important;
}

/* フッターメニューを表示 */
.l-footer__nav {
    display: flex !important;
    visibility: visible !important;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.l-footer__nav ul {
    display: flex !important;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.l-footer__nav li {
    margin: 0;
}

.l-footer__nav a {
    color: #ccc !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.l-footer__nav a:hover {
    color: #ff6b35 !important;
}

/* セカンダリフッターメニュー */
.l-footer__nav-secondary {
    display: flex !important;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.l-footer__nav-secondary li {
    margin: 0;
}

.l-footer__nav-secondary a {
    color: #ccc !important;
    text-decoration: none;
}

.l-footer__nav-secondary a:hover {
    color: #ff6b35 !important;
}

/* コピーライト */
.l-footer .copyright {
    color: #fff !important;
    text-align: center;
    margin: 20px 0 0;
}

.l-footer .copyright * {
    color: #fff !important;
}

/* 法的ページ（プライバシーポリシー、利用規約、免責事項、お問い合わせ）のテキスト色を白色に */
.page-privacy-policy .container,
.page-terms-of-service .container,
.page-disclaimer .container,
.contact-page .container {
    background: #1a1a1a !important;
    color: #fff !important;
}

.page-privacy-policy h1,
.page-terms-of-service h1,
.page-disclaimer h1,
.contact-page h1 {
    color: #fff !important;
}

.page-privacy-policy h2,
.page-terms-of-service h2,
.page-disclaimer h2,
.contact-page h2 {
    color: #fff !important;
    border-bottom-color: #444 !important;
}

.page-privacy-policy p,
.page-terms-of-service p,
.page-disclaimer p,
.contact-page p {
    color: #fff !important;
}

.page-privacy-policy li,
.page-terms-of-service li,
.page-disclaimer li,
.contact-page li {
    color: #fff !important;
}

.page-privacy-policy section,
.page-terms-of-service section,
.page-disclaimer section,
.contact-page section {
    color: #fff !important;
}

/* お問い合わせページのフォーム */
.contact-content {
    background: #2a2a2a !important;
    border-color: #444 !important;
}

.contact-content label {
    color: #fff !important;
}

.contact-content input[type="text"],
.contact-content input[type="email"],
.contact-content textarea {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #444 !important;
}

.contact-content input[type="text"]::placeholder,
.contact-content input[type="email"]::placeholder,
.contact-content textarea::placeholder {
    color: #999 !important;
}

.contact-note {
    background: #2a2a2a !important;
    border-color: #444 !important;
}

.contact-note p {
    color: #fff !important;
}

.l-footer__copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85rem;
}

.l-footer__copyright a {
    color: #ff6b35;
    text-decoration: none;
}

.l-footer__copyright a:hover {
    text-decoration: underline;
}

/* フッターのレスポンシブ */
@media (max-width: 768px) {
    .l-footer {
        padding: 40px 0 20px;
    }
    
    .l-footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   記事一覧ページ（アーカイブページ）の改善
   ============================================ */

/* アーカイブページのヘッダー */
.archive-header,
.category-header,
.tag-header {
    background: #1a1a1a !important;
    padding: 60px 20px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 4px solid #ff6b35;
}

.archive-title,
.category-title,
.tag-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 16px;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-description,
.category-description,
.tag-description {
    font-size: 1.1rem;
    color: #999 !important;
    margin: 0;
    line-height: 1.6;
}

/* 記事一覧のスタイル改善 */
.post-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-item {
    background: #2a2a2a !important;
    border: 1px solid #444;
    border-left: 4px solid transparent;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.post-item:hover {
    border-left-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.post-item .post-link {
    display: flex;
    gap: 24px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.post-item .post-thumbnail {
    width: 200px;
    aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
    flex-shrink: 0;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.post-item .post-content {
    flex: 1;
    min-width: 0;
}

.post-item .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff !important;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-item:hover .post-title {
    color: #ff6b35 !important;
}

.post-item .post-excerpt {
    font-size: 0.95rem;
    color: #ccc !important;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item .post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.post-item .post-date {
    color: #999;
}

.post-item .post-category {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.post-item .post-category:hover {
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px 60px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background: #2a2a2a;
    border: 2px solid #444;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* 記事一覧ページのレスポンシブ */
@media (max-width: 768px) {
    .archive-title,
    .category-title,
    .tag-title {
        font-size: 2rem;
    }
    
    .post-item .post-link {
        flex-direction: column;
        gap: 16px;
    }
    
    .post-item .post-thumbnail {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9; /* 320x180のアスペクト比 */
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #1a1a1a;
        box-sizing: border-box;
    }
    
    .post-item .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .post-item .post-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   試合詳細ページのスタイル（コンパクト版）
   ============================================ */

.single-game-page {
    background: #1a1a1a;
    color: #fff;
}

.game-header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid #1a1a1a;
}

.game-header .game-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 16px;
    color: #fff;
}

.game-header .game-date,
.game-header .game-teams,
.game-header .game-status {
    margin: 8px 0;
    font-size: 1rem;
}

.game-header .game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.game-header .game-score {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0 16px;
}

.game-content {
    padding: 30px 20px;
    background: #1a1a1a;
    color: #fff;
}

/* 統合インタラクションセクション */
.game-interaction-section {
    padding: 40px 20px;
    background: #2a2a2a;
    color: #fff;
}

.game-interaction-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.interaction-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.mvp-vote-form,
.experience-log-form {
    background: #2a2a2a;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.mvp-vote-form h3,
.experience-log-form h3 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: #fff;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff !important;
    font-size: 0.95rem;
}

.form-group select,
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group select:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: #1a1a1a;
    color: #fff;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 0.85rem;
}

/* 感情選択ボタン */
.emotion-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.emotion-btn {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    border: 1px solid #444;
    background: #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emotion-btn:hover {
    border-color: #ff6b35;
    transform: scale(1.05);
}

.emotion-btn.active {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.2);
}

/* 結果表示エリア */
.interaction-results {
    max-width: 1000px;
    margin: 0 auto;
}

.results-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.results-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-tab-btn:hover {
    color: #fff;
}

.results-tab-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.results-tab-content {
    display: none;
}

.results-tab-content.active {
    display: block;
}

.mvp-results,
.experience-logs {
    background: #2a2a2a;
    padding: 24px;
    border-radius: 0;
    color: #fff;
}

.mvp-results h3,
.experience-logs h3 {
    font-size: 1.2rem;
    margin: 0 0 20px;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.no-votes,
.no-logs {
    text-align: center;
    color: #999 !important;
    padding: 30px 20px;
    font-size: 0.9rem;
}

.mvp-results-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.mvp-vote-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mvp-vote-item.rank-1 {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.mvp-vote-item.rank-2 {
    border-color: #ff8c42;
    background: rgba(255, 140, 66, 0.05);
}

.mvp-vote-item.rank-3 {
    border-color: #ffa366;
    background: rgba(255, 163, 102, 0.05);
}

.mvp-vote-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.mvp-rank {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
    min-width: 50px;
    text-align: center;
}

.mvp-player {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.mvp-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
    min-width: 60px;
    text-align: right;
}

.mvp-reasons {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #ccc;
}

.mvp-reasons strong {
    color: #fff;
}

/* 新しいランキング表示スタイル */
.mvp-ranking-item {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mvp-ranking-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.mvp-ranking-item.rank-1 {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.mvp-ranking-item.rank-2 {
    border-color: #ff8c42;
    background: rgba(255, 140, 66, 0.05);
}

.mvp-ranking-item.rank-3 {
    border-color: #ffa366;
    background: rgba(255, 163, 102, 0.05);
}

.mvp-ranking-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.mvp-player-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.mvp-vote-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
    min-width: 60px;
    text-align: right;
}

.mvp-details {
    border-top: 1px solid #444;
    padding: 16px;
    background: #222;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.mvp-details-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

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

.mvp-detail-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    border-left: 3px solid #ff6b35;
}

.mvp-detail-reason {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.mvp-detail-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #999;
}

.mvp-detail-time {
    color: #999;
}

.loading {
    text-align: center;
    color: #999;
    padding: 20px;
}

.no-details,
.error {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 0.9rem;
}

.total-votes {
    margin: 0 0 16px;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.experience-logs-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.experience-log-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.experience-log-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.experience-emotion {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.experience-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-comment {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.experience-venue {
    display: inline-block;
    padding: 4px 8px;
    background: #1a1a1a;
    color: #ff6b35;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-top: 4px;
}

.experience-venue.clickable-venue {
    cursor: pointer;
    transition: all 0.2s ease;
}

.experience-venue.clickable-venue:hover {
    background: #ff6b35;
    color: #fff;
    transform: scale(1.05);
}

.experience-log-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 16px;
    padding: 12px;
    background: rgba(255, 107, 53, 0.1);
    border-left: 3px solid #ff6b35;
    border-radius: 4px;
}

/* 会場体験ログモーダル */
.venue-logs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.venue-logs-modal-content {
    background: #2a2a2a;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.venue-logs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #444;
}

.venue-logs-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.venue-logs-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-logs-modal-close:hover {
    background: #444;
    color: #ff6b35;
}

.venue-logs-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.venue-logs-list {
    display: grid;
    gap: 12px;
}

.venue-log-item {
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.venue-log-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.venue-log-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.venue-log-emotion {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.venue-log-game {
    flex: 1;
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.venue-log-date {
    color: #999;
    font-size: 0.85rem;
}

.venue-log-comment {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 8px 0;
}

.venue-log-meta {
    color: #999;
    font-size: 0.8rem;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #444;
}

.delete-experience-log-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.experience-log-item:hover .delete-experience-log-btn {
    opacity: 1;
}

.delete-experience-log-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.delete-experience-log-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.experience-log-item:hover .delete-experience-log-btn {
    opacity: 1;
}

.delete-experience-log-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.experience-author {
    color: #999;
    font-size: 0.85rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .interaction-forms {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .interaction-results {
        grid-template-columns: 1fr !important;
    }
    
    .game-header .game-title {
        font-size: 1.5rem;
    }
    
    .game-interaction-section {
        padding: 30px 16px !important;
    }
    
    .game-interaction-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px !important;
    }
    
    .mvp-vote-form,
    .experience-log-form {
        padding: 20px !important;
        margin-bottom: 0 !important;
    }
    
    .game-interaction-section .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
}

/* モバイルで確実に表示されるように */
.game-interaction-section {
    display: block !important;
    visibility: visible !important;
}

.interaction-forms,
.interaction-results {
    display: block !important;
    visibility: visible !important;
}

.mvp-vote-form,
.experience-log-form {
    display: block !important;
    visibility: visible !important;
}

/* ============================================
   試合を語ろう！ページのスタイル
   ============================================ */

.game-discussion-page {
    background: #1a1a1a;
    color: #fff;
}

.game-discussion-header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 3px solid #1a1a1a;
}

.game-discussion-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0.05em;
    color: #fff;
}

.game-discussion-header .page-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
}

/* PC版：さらに小さく */
@media (min-width: 769px) {
    .game-discussion-header {
        padding: 50px 20px 35px;
    }
    
    .game-discussion-header .page-title {
        font-size: 2.2rem;
    }
    
    .game-discussion-header .page-description {
        font-size: 1.1rem;
    }
}

.game-discussion-content {
    padding: 60px 20px;
}

.game-discussion-content .game-card {
    padding: 20px;
    color: #fff;
}

.game-discussion-content .game-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.game-discussion-content .game-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-discussion-content .game-title a:hover {
    color: #ff6b35;
}

.game-discussion-content .game-date,
.game-discussion-content .game-teams,
.game-discussion-content .game-score,
.game-discussion-content .game-status {
    margin: 8px 0;
    color: #ccc;
    font-size: 0.9rem;
}

.game-discussion-content .game-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.game-discussion-content .btn {
    margin-top: 16px;
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.game-discussion-content .btn:hover {
    background: #e55a2b;
}

.game-discussion-content .no-games {
    text-align: center;
    color: #999;
    padding: 60px 20px;
}

/* 今日の試合セクション */
.today-games {
    background: #1a1a1a;
    color: #fff;
}

/* 日付ナビゲーション */
.game-date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 40px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.date-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #444;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.date-nav-btn:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.date-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.date-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.date-nav-text {
    font-size: 0.9rem;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.date-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.date-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.today-badge {
    background: #ff6b35;
    color: #fff;
}

/* ローディング表示 */
.games-loading {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.games-loading .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.games-loading p {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
}

/* スマホ版：日付ナビゲーション */
@media (max-width: 768px) {
    .game-date-navigation {
        flex-direction: row !important;
        gap: 12px;
        padding: 16px;
        align-items: center;
        justify-content: space-between;
    }
    
    .date-nav-btn {
        width: auto;
        min-width: 60px;
        justify-content: center;
        padding: 10px 16px;
        flex-shrink: 0;
    }
    
    .date-display {
        width: auto;
        flex: 1;
        flex-direction: row !important;
        gap: 6px;
        justify-content: center;
        margin: 0 8px;
        flex-wrap: nowrap !important;
    }
    
    .date-label {
        font-size: 0.9rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .date-badge {
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: #2a2a2a;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    color: #fff;
}

.game-card:hover {
    background: #333;
}

.game-link {
    display: block;
    text-decoration: none;
    color: #fff;
    height: 100%;
}

.game-link * {
    color: #fff;
}

/* ゲームカードヘッダー（時間とステータス） */
.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: transparent;
    border: none;
}

.game-time-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.time-icon {
    font-size: 0.9rem;
}

.game-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    border: none;
}

.status-scheduled {
    background: transparent;
    color: #999;
}

.status-live {
    background: transparent;
    color: #ff6b35;
}

.status-finished {
    background: transparent;
    color: #ccc;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #c62828;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* チーム対戦情報 */
.game-teams-matchup {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.team-color-bar {
    display: none;
}

.team-name-wrapper {
    flex: 1;
    min-width: 0;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff !important;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card .team-name,
.game-link .team-name,
.team-name-wrapper .team-name {
    color: #fff !important;
}

.team-score {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
    min-width: 32px;
    text-align: right;
    text-shadow: none;
}

.game-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    position: relative;
}

.game-vs-divider::before,
.game-vs-divider::after {
    display: none;
}

.vs-text {
    padding: 0 8px;
    font-size: 0.7rem;
    font-weight: 400;
    color: #999;
    text-transform: none;
    letter-spacing: 0;
    background: transparent;
}

.score-separator {
    font-size: 1rem;
    font-weight: 500;
    color: #999;
    padding: 0 4px;
}

.game-card-footer {
    padding: 8px 12px;
    background: transparent;
    border: none;
    text-align: center;
}

.view-details {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    transition: color 0.2s ease;
}

.game-card:hover .view-details {
    color: #ff6b35;
}

.no-games {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .games-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 16px;
        padding: 0 16px 16px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ff6b35 #2a2a2a;
    }
    
    .games-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .games-grid::-webkit-scrollbar-track {
        background: #2a2a2a;
        border-radius: 3px;
    }
    
    .games-grid::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 3px;
    }
    
    .games-grid::-webkit-scrollbar-thumb:hover {
        background: #e55a2b;
    }
    
    .game-card {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        min-width: 280px !important;
        scroll-snap-align: start;
    }
    
    .game-teams-matchup {
        padding: 20px 12px;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .team-score {
        font-size: 1.3rem;
    }
}

.game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-logo-small {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.team-logo-small .team-logo-color {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.vs-separator {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff6b35;
    padding: 0 10px;
}

.game-meta {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.game-time {
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-icon {
    font-size: 1.2rem;
}

.game-action {
    margin-top: 20px;
}

.game-action .btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.no-games-message {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.message-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-games-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.no-games-message p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
}

.game-discussion-footer {
    background: #fff;
    padding: 60px 20px;
    border-top: 4px solid #ff6b35;
    margin-top: 40px;
}

.footer-note {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-note p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 40px;
}

.footer-note .btn {
    display: inline-block;
    margin-top: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .game-discussion-header .page-title {
        font-size: 2rem;
    }
    
    .games-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 16px;
        padding: 0 16px 16px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ff6b35 #2a2a2a;
    }
    
    .games-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .games-grid::-webkit-scrollbar-track {
        background: #2a2a2a;
        border-radius: 3px;
    }
    
    .games-grid::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 3px;
    }
    
    .games-grid::-webkit-scrollbar-thumb:hover {
        background: #e55a2b;
    }
    
    .game-card {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        min-width: 280px !important;
        scroll-snap-align: start;
    }
    
    .game-card {
        padding: 24px;
    }
    
    .team-logo-small {
        width: 60px;
        height: 60px;
    }
    
    .vs-separator {
        font-size: 1.2rem;
    }
}

/* ============================================
   トピックタグ機能のUI改善
   ============================================ */

/* トピックタグのスタイル */
.bbp-topic-tags {
    margin: 20px 0;
    padding: 0;
}

.bbp-topic-tags a {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
}

.bbp-topic-tags a:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* トピック作成フォームのタグ入力欄 */
.bbp-topic-tags-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.bbp-topic-tags-input:focus {
    outline: none;
    border-color: #ff6b35;
}

/* タグ一覧ページ */
.bbp-topic-tag-description {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6b35;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* タグクラウド */
.bbp-topic-tag-cloud {
    margin: 30px 0;
}

.bbp-topic-tag-cloud a {
    display: inline-block;
    padding: 8px 16px;
    margin: 6px 6px 6px 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.bbp-topic-tag-cloud a:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

