/*
Theme Name: Rookie Plus Child
Theme URI: https://www.themeboy.com/rookie-plus/
Template: rookie-plus
Author: ThemeBoy
Author URI: https://www.themeboy.com
Description: Rookie Plus is a fully responsive theme made for sports organisations looking to use the SportsPress plugin. Once you’ve installed the theme and SportsPress, you'll be able to select a preset for your sport and demo content to help you get started on building your sports website.
Tags: one-column,two-columns,three-columns,left-sidebar,right-sidebar,flexible-header,buddypress,custom-background,custom-colors,custom-header,custom-menu,editor-style,featured-images,footer-widgets,full-width-template,rtl-language-support,sticky-post,theme-options,threaded-comments,translation-ready,blog,entertainment,news
Version: 1.6.1.1746135227
Updated: 2025-05-02 06:33:47

*/


/* タブコンテナ */

.custom-tabs {
    margin-top: 20px;
}


/* custom-tabs-nav の下のマージンをなくす */

.custom-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    /* 下線の重複を防ぐために-1px */
    display: flex;
    border-bottom: 1px solid #ccc;
    flex-wrap: wrap;
    /* タブが多い場合に折り返す */
}

.custom-tab-item {
    margin-right: 5px;
    margin-bottom: 0;
    /* インラインスタイルを削除した場合 */
}

.custom-tab-item .tab-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    /* インラインスタイルを削除した場合 */
    background-color: #000;
    /* インラインスタイルを削除した場合 */
    border: 1px solid #ccc;
    border-top: 8px solid #0039a3;
    /* インラインスタイルを削除した場合 */
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s ease;
    margin-bottom: 0;
    /* インラインスタイルを削除した場合 */
}

.custom-tab-item .tab-link:hover {
    background-color: #333;
    /* ホバー時の色 */
    color: #eee;
}

.custom-tab-item .tab-link.is-active {
    background-color: #fff;
    border-color: #ccc;
    color: #000;
    font-weight: bold;
    border-bottom: 1px solid #fff;
    /* アクティブタブの下線を目立たせる */
    border-top: 8px solid #0039a3;
    /* アクティブ時も上線を維持 */
}


/* タブコンテンツ */

.custom-tab-contents {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
}

.custom-tab-content {
    display: none;
    /* デフォルトで非表示 */
}

.custom-tab-content.is-active {
    display: block;
    /* アクティブなコンテンツのみ表示 */
}


/* テーブルのスタイル */

.custom-posts-table {
    width: 100%;
    border-collapse: collapse;
    /* セルのボーダーを結合 */
    margin-top: 15px;
}

.custom-posts-table th,
.custom-posts-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.custom-posts-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.custom-posts-table tr:nth-child(even) {
    background-color: #f9f9f9;
    /* 偶数行の背景色 */
}

.custom-posts-table tr:hover {
    background-color: #e9e9e9;
    /* ホバー時の背景色 */
}


/* チーム名カラムのリンクスタイル */

.custom-posts-table td a {
    text-decoration: none;
    color: #0073aa;
}

.custom-posts-table td a:hover {
    text-decoration: underline;
}


/* SportsPress Event Blocks カスタマイズ */

.sp-event-title {
    color: #0039a3;
    font-weight: bold;
    margin-top: 10px;
}

.sp-event-results {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 8px 0;
}

.sp-event-date {
    color: #666;
    font-size: 0.9em;
}

.sp-event-league,
.sp-event-season,
.sp-event-venue {
    color: #888;
    font-size: 0.8em;
    margin: 2px 0;
}

.sp-table-caption {
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: center;
    /* キャプションのセンタリング */
    color: #333;
}


/* SportsPress Event Match Record Styles */

.event-match-record {
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.match-record-title {
    color: #28a745;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e0e0e0;
}

.match-record-container {
    text-align: center;
    margin-top: 1em;
}

.match-record-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 1em 2em;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-record-link:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.match-record-link i {
    font-size: 1.2em;
}

.match-record-text {
    font-size: 1.1em;
}


/* SportsPress Event Game Photo Styles */

.event-game-photo {
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0039a3;
}

.game-photo-title {
    color: #0039a3;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e0e0e0;
}

.game-photo-container {
    margin-top: 1em;
}

.game-photo-single {
    text-align: center;
}

.game-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5em;
    margin-top: 1em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.game-photo-item {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.game-photo-link {
    display: block;
    text-decoration: none;
}

.game-photo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.game-photo-link:hover .game-photo-image {
    transform: scale(1.05);
}

.game-photo-caption {
    margin: 0.8em;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    line-height: 1.4;
}


/* レスポンシブ対応 */

@media screen and (max-width: 768px) {
    .game-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 1em;
    }
    .game-photo-image {
        height: 150px;
    }
    .event-game-photo,
    .event-match-record {
        margin: 1.5em 0;
        padding: 1em;
    }
    .game-photo-title,
    .match-record-title {
        font-size: 1.2em;
    }
    .match-record-link {
        padding: 0.8em 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .game-photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
    .game-photo-image {
        height: 200px;
    }
    .match-record-link {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
}