/*
Theme Name: OceanWP Child
Theme URI: http://example.com/oceanwp-child

Description: OceanWP 子テーマ
Author: 俺
Author URI: http://example.com

Template: oceanwp
Version: 1.0.0
Text Domain: oceanwp-child

/*-------------------------------------------------
/* 全トピック／フォーラム一覧のカード風デザイン */
/* タブボタン */
.home-tabs-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.home-tabs-buttons .tab-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.home-tabs-buttons .tab-btn.active,
.home-tabs-buttons .tab-btn:hover {
    background: #333;
    color: #fff;
}

/* タブコンテンツ */
.home-tab-content {
    display: none;
    margin-bottom: 30px;
}
.home-tab-content.active {
    display: block;
}

/* 投稿アイテム */
.home-post-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: 0.3s;
}
.home-post-item:hover {
    background: #f9f9f9;
}
.home-post-item h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}
.home-post-item p.post-excerpt {
    font-size: 14px;
    color: #555;
}
.home-post-item p.post-date {
    font-size: 12px;
    color: #999;
}

/* bbPress 掲示板 */
.home-forum-section {
    margin-top: 40px;
}
.home-forum-section .bbp-forum-title,
.home-forum-section .bbp-topic-title {
    font-weight: bold;
}
.home-forum-section .bbp-topic-title a:hover,
.home-forum-section .bbp-forum-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* レスポンシブ */
@media(max-width:768px){
    .home-tabs-buttons {
        flex-direction: column;
    }
    .home-post-item {
        font-size: 14px;
    }
}


/** ===========================
 * bbPress フル統合デザイン for Fixlei
 * 固定ページショートコード＋サイドバー対応
 * =========================== */

/** フォーラム全体ラッパー（コンテナ幅に合わせる） **/
#bbpress-forums {
    max-width: 1200px; /* コンテンツ幅に統一 */
    width: 90%;
    margin: 0 auto 40px auto; /* 中央揃え＋下余白 */
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}

/** サイドバー内ショートコードの場合も幅を100%に調整 **/
.sidebar #bbpress-forums {
    width: 100%;
    max-width: none;
}

/** フォーラムタイトル **/
#bbpress-forums a.bbp-forum-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
    margin-bottom: 5px;
}

#bbpress-forums a.bbp-forum-title:hover {
    color: #ff4545;
    background-color: #fff0f0;
    text-decoration: none;
}

/** トピックタイトル **/
#bbpress-forums a.bbp-topic-title {
    font-size: 16px;
    color: #444444;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#bbpress-forums a.bbp-topic-title:hover {
    color: #1e90ff;
    background-color: #e6f0ff;
}

/** 投稿者名・日付・メタ情報 **/
#bbpress-forums .bbp-author-name,
#bbpress-forums .bbp-topic-meta {
    font-size: 13px;
    color: #777777;
    margin-top: 4px;
}

/** 投稿内容抜粋 **/
#bbpress-forums .bbp-topic-content {
    color: #555555;
    font-size: 14px;
    margin-top: 4px;
}

/** ページネーション **/
#bbpress-forums .bbp-pagination {
    text-align: center;
    margin-top: 20px;
}

#bbpress-forums .bbp-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333333;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-pagination a:hover {
    background-color: #ff4545;
    color: #ffffff;
}

/** 新規トピックボタン **/
#bbpress-forums .bbp-submit-wrapper input[type="submit"],
#bbpress-forums .bbp-submit-wrapper button {
    background-color: #1e90ff;
    color: #fff;
    border-radius: 4px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/** フォーラムリストのボーダー **/
#bbpress-forums ul.forum, 
#bbpress-forums ul.topics {
    border-top: 1px solid #e0e0e0;
}

#bbpress-forums li.bbp-forum, 
#bbpress-forums li.bbp-topic {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

/** モバイル対応 **/
@media (max-width: 768px) {
    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums a.bbp-topic-title {
        font-size: 15px;
        padding: 8px 10px;
    }

    #bbpress-forums {
        padding: 15px;
        width: 95%;
    }

    #bbpress-forums .bbp-pagination a {
        padding: 5px 10px;
        margin: 0 2px;
    }
}

/** サイドバーと並んだ場合の余白調整 **/
.content-left-sidebar #bbpress-forums,
.content-right-sidebar #bbpress-forums {
    margin-bottom: 20px;
}

/** ===========================
 * ショートコードで呼び出す場合の注意
 * [bbp-forum-index] を固定ページ内に置く
 * サイドバー併設なら幅100%に自動調整
 * =========================== */


/*-------------------------------------------------*/
