/* ============================================================
   チーム・選手一覧ページ専用スタイル
   ============================================================ */

/* ============================================================
   スムーズスクロール設定
   ============================================================ */
html {
    scroll-padding-top: 180px;
}

/* ============================================================
   コンテナ
   ============================================================ */
.teams-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================================
   ジャンプリンク
   ============================================================ */
.jump-links {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.jump-links-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #003366;
}

.jump-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.jump-link {
    display: block;
    padding: 12px 15px;
    background: #f8f8f8;
    color: #003366;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.jump-link:hover {
    background: #003366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* ============================================================
   チームカード
   ============================================================ */
.team-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #003366;
}

.team-icon {
    width: 70px;
    height: 70px;
    background: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    flex-shrink: 0;
}

.team-info {
    flex: 1;
}

.team-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px;
}

.team-player-count {
    color: #666;
    font-size: 0.95em;
}

/* ============================================================
   選手グリッド
   ============================================================ */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.player {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.player:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.player-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    flex-shrink: 0;
    border: 2px solid #ddd;
}

.player-photo.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #999;
    background: #e0e0e0;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-number {
    font-weight: bold;
    color: #003366;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.player-name {
    color: #333;
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 3px;
}

.player-position {
    color: #666;
    font-size: 0.85em;
}

.player-note {
    color: #d32f2f;
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 4px;
}

/* ============================================================
   空データ表示
   ============================================================ */
.no-teams {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.no-teams h2 {
    color: #003366;
    margin-bottom: 10px;
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 140px;
    }
    
    .teams-container {
        padding: 20px 15px;
    }
    
    .team-card {
        padding: 20px;
    }
    
    .team-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .team-name {
        font-size: 1.4em;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .jump-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}