@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/*
Theme Name: Cocoon Child TCG
Template: cocoon-master
Description: トレーディングカードゲーム価格比較システム用Cocoon子テーマ
Version: 1.0.0
Author: TCG Price System
*/

/* 
このファイルは子テーマの識別のために必要です
実際のスタイルはインラインで記述しています
*/

/* ランキングテーブル共通スタイル */
.tcg-ranking-table-container {
    margin: 20px 0;
}

.tcg-ranking-controls {
    margin-bottom: 20px;
}

.ranking-tab,
.stat-tab,
.chart-tab {
    transition: all 0.3s ease;
}

.ranking-tab:hover,
.stat-tab:hover,
.chart-tab:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tcg-card-page,
    .tcg-title-page,
    .tcg-link-page {
        padding: 10px !important;
    }
    
    .control-tabs {
        flex-direction: column !important;
    }
    
    .ranking-tab,
    .stat-tab,
    .chart-tab {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px !important;
    }
}

/* お気に入りボタン */
#tcg-favorite-btn {
    transition: all 0.3s ease;
}

#tcg-favorite-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#tcg-favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ローディングアニメーション */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* テーブルホバー効果 */
tbody tr:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease;
}

/* グラフコンテナ */
#tcg-price-chart {
    max-width: 100%;
    height: auto !important;
}

/* 内部リンク */
.tcg-internal-links a {
    transition: all 0.3s ease;
}

.tcg-internal-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* メッセージ表示 */
#tcg-favorite-message {
    transition: opacity 0.3s ease;
}

/* ページネーション */
.page-btn {
    transition: all 0.2s ease;
}

.page-btn:hover {
    transform: scale(1.1);
}

/* ソート可能なヘッダー */
.sortable-header {
    user-select: none;
}

.sortable-header:hover {
    background-color: #0056b3 !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}