/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Description: Steamゲーム統計表示用子テーマ
*/

.chart-spacer{
	height:35px;
}

/* ================================
   チャートコントロールボタンの中央揃え
=============================== */
.chart-controls {
    text-align: center;
    display: flex;
	height:35px;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chart-controls button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    flex-shrink: 0; /* ボタンが縮まないように */
}

.chart-controls button:hover {
    background: #0052a3;
}

.chart-controls button.active {
    background: #004080;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .chart-controls {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .chart-controls button {
        width: 200px;
        max-width: 100%;
    }
}

/* ================================
   円グラフのデータ不足表示 - 中央揃え
=============================== */
#langPieChart {
    position: relative;
}

/* データ不足時のメッセージを中央表示 */
.chart-wrapper:has(#langPieChart) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* 高さを確保 */
}

/* データ不足メッセージのスタイル */
.no-data-message {
    text-align: center;
    color: rgba(128, 128, 128, 0.7);
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
}

/* ================================
   ゲーム基本情報テーブル - コンパクト化
=============================== */
.game-info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9fbfd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 0.9em;
}

.game-info-table th {
    background-color: #cfe0ec;
    color: #2b4f63;
    text-align: left;
    border: 1px solid #d3d7dc;
    padding: 8px 12px;
    font-weight: 600;
    white-space: nowrap;
    width: 100px; /* 固定幅にしてコンパクトに */
}

.game-info-table td {
    border: 1px solid #d3d7dc;
    padding: 8px 12px;
    background-color: #fff;
}

/* タグセルの特別スタイル */
.game-info-table td:has(.game-tag-link) {
    padding: 6px 12px;
}

/* タグを折り返し表示 */
.game-info-table .game-tag-link,
.game-info-table .game-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px 3px 2px 0;
    font-size: 0.7rem;
    line-height: 1.2;
}

/* ================================
   モバイルでのテーブル改善
=============================== */
@media (max-width: 768px) {
    .game-info-table {
        font-size: 0.85em;
    }
    
    .game-info-table th,
    .game-info-table td {
        padding: 6px 8px;
    }
    
    .game-info-table th {
        width: 80px; /* モバイルではさらにコンパクトに */
    }
    
    /* タグをさらにコンパクトに */
    .game-info-table .game-tag-link,
    .game-info-table .game-tag {
        padding: 3px 6px;
        font-size: 0.65rem;
        margin: 1px 2px 1px 0;
    }
}

/* テーブルをよりコンパクトに */
.game-info-table {
    font-size: 0.85em;
    line-height: 1.3;
}

.game-info-table th {
    padding: 6px 10px;
    width: 90px;
    font-size: 0.85em;
}

.game-info-table td {
    padding: 6px 10px;
}

/* 特定の行をコンパクトに */
.game-info-table tr {
    height: 36px; /* 行の高さを固定 */
}

/* タグ行だけ高さを自動に */
.game-info-table tr:has(.game-tag-link) {
    height: auto;
    min-height: 40px;
}

.game-info-table tr:has(.game-tag-link) td {
    padding: 4px 10px;
}



/* ================================
   ゲームセクション基本スタイル
=============================== */
.entry-content .game-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.entry-content .game-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 2px solid #66c0f4;
    padding-bottom: 10px;
}

/* ================================
   モバイル：全部1列に縦積み！
=============================== */
@media (max-width: 768px) {
    /* ゲーム情報の左右レイアウト → 縦積み */
    .game-info-grid {
        display: block !important;
    }
    
    /* チャート2列グリッド → 縦積み */
    .charts-grid {
        display: block !important;
    }
    
    /* チャートアイテムを縦に並べる */
    .chart-item {
        margin-bottom: 1rem;
    }
    
    /* スタットリストのグリッド解除 */
    .stats-list {
        display: block !important;
    }
    
    /* スタットアイテムを縦積み */
    .stats-item {
        margin-bottom: 1rem;
    }
    
    /* チャートの高さを少し小さく */
    .chart-wrapper {
        height: 200px;
    }
    
    /* 全体の余白をコンパクトに */
    .game-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    /* さらに小さい画面ではもっとコンパクトに */
    .game-section {
        padding: 12px;
    }
    
    .chart-wrapper {
        height: 180px;
    }
}

/* ================================
   レビューグラデーションバー
=============================== */
#review-gradient {
    position: relative;
    margin: auto;
    width: 300px;
    height: 35px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

#review-gradient .bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#review-gradient .bar div {
    flex: 1;
}

#review-gradient .bar div:nth-child(1) { background-color: #0066CC; }
#review-gradient .bar div:nth-child(2) { background-color: #3399FF; }
#review-gradient .bar div:nth-child(3) { background-color: #66C0F4; }
#review-gradient .bar div:nth-child(4) { background-color: #99D0FF; }
#review-gradient .bar div:nth-child(5) { background-color: #B9A074; }
#review-gradient .bar div:nth-child(6) { background-color: #E27C5D; }
#review-gradient .bar div:nth-child(7) { background-color: #D05A3B; }
#review-gradient .bar div:nth-child(8) { background-color: #C03A2D; }
#review-gradient .bar div:nth-child(9) { background-color: #A82A1F; }

#review-gradient .labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-weight: 500;
    color: #666;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    #review-gradient {
        width: 180px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    #review-gradient {
        width: 180px;
        font-size: 10px;
    }
}

/* ================================
   2カラムレイアウト
=============================== */
.entry-content .game-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.entry-content .game-info-left img.game-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.entry-content .steam-widget-wrapper iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* ================================
   ゲーム情報テーブル
=============================== */
.entry-content .game-info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9fbfd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.entry-content .game-info-table th {
    background-color: #cfe0ec;
    color: #2b4f63;
    text-align: left;
    border: 1.2px solid #d3d7dc;
    padding: 12px 15px;
    font-weight: 600;
    white-space: nowrap;
}

.entry-content .game-info-table td {
    border: 1.2px solid #d3d7dc;
    padding: 12px 15px;
    background-color: #fff;
}

/* ================================
   チャートグリッド
=============================== */
.entry-content .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.entry-content .chart-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entry-content .chart-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
}

/* ================================
   AIレビュー分析ブロック
=============================== */
.entry-content #summary {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-left: 4px solid #66c0f4;
    padding: 12px;
    border-radius: 8px;
    margin: 12px auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.entry-content #summary h2 {
    font-size: 1.8em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #66c0f4;
    color: #222;
    text-align: center;
}

.entry-content .summary-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.entry-content .summary-text strong {
    color: #2b4f63;
}

/* サマリー表をコンパクトに */
.summary-compact {
    font-size: 15px;
    line-height: 1.4;
}
.summary-compact ul {
    margin: 0 0 6px;
    padding-left: 16px;
}
.summary-compact ul li {
    margin: 0 0 3px;
    line-height: 1.4;
}
.summary-compact ul li span {
    font-weight: 600;
}
.summary-note {
    margin-top: 6px;
    line-height: 1.4;
}

.summary-note-block h5 {
    margin: 8px 0 4px;
    font-size: 15px;
}
.summary-note-block {
    margin-top: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 32px;
}
.summary-card {
    border: 1px solid #e7eef5;
    border-radius: 6px;
    background: #f9fcff;
    padding: 10px 12px;
    text-align: center;
}
.summary-positive,
.summary-negative {
    color: inherit;
    font-weight: 600;
}
.summary-strong {
    font-weight: 700;
}
.summary-card .main {
    font-weight: 700;
}
.summary-card .summary-block {
    margin-bottom: 10px;
}
.summary-card .summary-block:last-child {
    margin-bottom: 0;
}
.summary-card h4 {
    text-align: center;
}
.summary-right .side-block {
    margin-bottom: 8px;
}
.summary-right .side-block h5 {
    margin: 0 0 4px;
    font-size: 14px;
}
.summary-right .side-block p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}
.summary-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
}
.summary-highlight .highlight-item {
    padding: 10px 12px;
    border: 1px solid #e7eef5;
    border-radius: 6px;
    background: #f9fcff;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.summary-highlight .label {
    font-weight: 700;
    color: #1f3a56;
}
.summary-highlight .main {
    font-weight: 600;
}
.summary-highlight .value-strong {
    font-weight: 700;
    font-size: 1.1em;
}
.summary-highlight .muted {
    color: #666;
    font-size: 0.92em;
}

@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
.summary-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
}
.summary-highlight .highlight-item {
    padding: 10px 12px;
    border: 1px solid #e7eef5;
    border-radius: 6px;
    background: #f9fcff;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.summary-highlight .label {
    font-weight: 700;
    color: #1f3a56;
}
.summary-highlight .main {
    font-weight: 600;
}
.summary-highlight .value-strong {
    font-weight: 700;
    font-size: 1.1em;
}
.summary-highlight .muted {
    color: #666;
    font-size: 0.92em;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ニュースセクション - Steam公式風
=============================== */
.game-news {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #4c9ac0;
    border-radius: 8px;
    padding: 0;
    margin-top: 2em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
}

.game-news h2 {
    background: linear-gradient(90deg, #4c9ac0 0%, #66c0f4 100%);
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 600;
    padding: 15px 25px;
    margin: 0;
    border-bottom: 1px solid #3a6a8a;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.game-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-news li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #2a475e;
}

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

.game-news a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c7d5e0;
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.game-news a:hover {
    background: rgba(102, 192, 244, 0.1);
    color: #ffffff;
}

.news-date {
    color: #8ba5b7;
    font-size: 0.85em;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Arial', sans-serif;
}

/* ニュースアイテムのインタラクション */
.game-news a:hover .news-date {
    background: rgba(76, 154, 192, 0.3);
    color: #c7d5e0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .game-news a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-date {
        align-self: flex-end;
    }
    
    .game-news h2 {
        padding: 12px 20px;
        font-size: 1.2em;
    }
}

/* ニュースアイコン追加 */
.game-news h2::before {
    content: "📰";
    margin-right: 10px;
    font-size: 1.1em;
}

/* ホバー時の矢印アイコン */
.game-news a::after {
    content: "→";
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #66c0f4;
}

.game-news a:hover::after {
    opacity: 1;
}

.stats-list {
    display: grid;
    /* 最小250pxのカラムを自動敷き詰め。よりカードらしさを出せる */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ニュース項目の交互背景色 */
.game-news li:nth-child(even) a {
    background: rgba(255,255,255,0.01);
}

.game-news li:nth-child(odd) a {
    background: rgba(255,255,255,0.03);
}

/* ================================
   ゲームタグ - Steam風デザイン
=============================== */
.game-tag-link,
.game-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    font-size: 0.8rem;
    color: #c7d5e0 !important;
    background: linear-gradient(135deg, #495a70 0%, #3a4a5e 100%);
    border: 1px solid #5a7a9a;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 500;
}

.game-tag-link:hover {
    background: linear-gradient(135deg, #5a7a9a 0%, #495a70 100%);
    border-color: #66c0f4;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* タグの角を少し丸める */
.game-tag-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #66c0f4;
    border-radius: 50%;
    opacity: 0.7;
}

/* ================================
   スタットカード - モダングリッドレイアウト
=============================== */
.stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.stats-item {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #4c9ac0;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg);
    z-index: 1;
}

.stats-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(76, 154, 192, 0.3);
    border-color: #66c0f4;
}

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

.stats-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.stats-item:hover .stats-thumb {
    transform: scale(1.05);
}

.stats-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stats-title {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

.stats-excerpt {
    font-size: 0.85rem;
    color: #8ba5b7;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.stats-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #2a475e;
    font-size: 0.75rem;
    color: #66c0f4;
}

/* デフォルト画像用のスタイル */
.stats-thumb[style*="background:"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #495a70, #3a4a5e) !important;
    color: #c7d5e0;
    font-size: 0.9rem;
}

/* ================================
   ランキングページ（tabs + table）
=============================== */
.steam-ranking {
    background: var(--ast-global-color-4, #ffffff);
    color: var(--ast-global-color-3, #1f2937);
    border-radius: 18px;
    border: 1px solid var(--ast-border-color, #e2e8f0);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
    padding: 24px;
    margin: 32px 0;
}

.steam-ranking-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 16px;
    background: #f1f5fb;
    border-radius: 12px;
    gap: 12px;
}

.steam-ranking-head .heading-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ast-global-color-3, #1f2937);
}

.steam-ranking-head .heading-actions {
    display: inline-flex;
    gap: 10px;
}

.ranking-sort-button {
    border: 1px solid rgba(4, 107, 210, 0.2);
    background: #edf4ff;
    color: var(--ast-global-color-2, #475569);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ranking-sort-button:hover {
    border-color: var(--ast-global-color-0, #046bd2);
    color: var(--ast-global-color-0, #046bd2);
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.2);
    background: #e1edff;
}

.sort-indicator {
    color: var(--ast-global-color-0, #046bd2);
    display: inline-block;
    width: 1em;
    text-align: center;
}


.steam-ranking-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steam-ranking-card {
    display: grid;
    grid-template-columns: 50px 80px 1fr repeat(2, minmax(140px, max-content)) 90px;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--ast-border-color, #e2e8f0);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.row-rank {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ast-global-color-0, #046bd2);
}

.row-thumb img {
    width: 70px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.row-info a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ast-global-color-3, #1f2937);
    text-decoration: none;
}

.row-info a:hover {
    color: var(--ast-global-color-0, #046bd2);
}

.row-info small {
    display: block;
    color: var(--ast-global-color-2, #475569);
    font-size: 0.8rem;
    margin-top: 2px;
}

.row-rating {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(4, 107, 210, 0.12);
    border: 1px solid rgba(4, 107, 210, 0.3);
    color: var(--ast-global-color-0, #046bd2);
}

.row-metric {
    display: flex;
    flex-direction: column;
    color: var(--ast-global-color-2, #475569);
    font-size: 0.85rem;
}

.row-metric strong {
    font-size: 1.2rem;
    color: var(--ast-global-color-3, #1f2937);
}

.row-link a {
    color: var(--ast-global-color-0, #046bd2);
    text-decoration: none;
    font-weight: 600;
}

.row-link a:hover {
    text-decoration: underline;
}

.steam-ranking-meta {
    margin-top: 18px;
    color: var(--ast-global-color-2, #475569);
    font-size: 0.9rem;
}

@media (max-width: 921px) {
    .steam-ranking-head,
    .steam-ranking-card {
        grid-template-columns: 40px 60px 1fr;
        row-gap: 10px;
    }
    .steam-ranking-head {
        justify-items: flex-start;
    }
    .steam-ranking-head .heading {
        display: none;
    }
    .steam-ranking-card {
        padding: 12px;
    }
    .steam-ranking-card > .row-metric,
    .steam-ranking-card > .row-link {
        grid-column: span 3;
    }
}

@media (max-width: 544px) {
    .steam-ranking {
        padding: 16px;
    }
    .steam-ranking-head {
        display: none;
    }
    .steam-ranking-rows {
        gap: 10px;
    }
    .steam-ranking-card {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .row-thumb {
        order: 2;
    }
    .row-info {
        order: 1;
    }
    .row-metric {
        order: 3;
        flex-direction: row;
        justify-content: space-between;
        border-top: 1px solid var(--ast-border-color, #e2e8f0);
        padding-top: 6px;
        margin-top: 6px;
    }
    .row-link {
        order: 4;
    }
}

/* ================================
   レスポンシブ対応
=============================== */
@media (max-width: 1200px) {
    .stats-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stats-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .stats-content {
        padding: 16px;
    }
    
    .stats-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-thumb {
        height: 140px;
    }
}

/* ================================
   スタットカード - 余白調整
=============================== */
.stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.stats-item {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #4c9ac0;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
}

.stats-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(76, 154, 192, 0.3);
    border-color: #66c0f4;
}

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

.stats-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.stats-item:hover .stats-thumb {
    transform: scale(1.05);
}

.stats-content {
    padding: 15px; /* パディングを少し減らしてコンパクトに */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* タイトルを中央揃え */
}

.stats-title {
    font-size: 1.1rem;
    margin: 0; /* 余白を完全に削除 */
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    text-align: center;
}

/* 文章部分を非表示 */
.stats-excerpt {
    display: none !important;
}

/* メタ情報も非表示 */
.stats-meta {
    display: none !important;
}

/* デフォルト画像用のスタイル */
.stats-thumb[style*="background:"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #495a70, #3a4a5e) !important;
    color: #c7d5e0;
    font-size: 0.9rem;
}

