/**
 * パターンH: 選手カードCSS
 * Phase 1: Week 14-16 - 選手詳細ページUI改善
 */

/* ===========================================
   パターンH: パターンD+G統合カード
   =========================================== */
.player-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  width: 100%;
}

/* ヘッダー（パターンDスタイル完全採用） */
.hero-bg-h {
  background: var(--color-primary-800, #243b53);
  position: relative;
  padding: 40px;
  min-height: 200px;
}

/* ランク別背景色（ゲームレアリティ風 - variables.css参照） */
/* S (rank_id=7): 暖色 */
.player-card.rank-7 .hero-bg-h { background: var(--rank-s-bg); }
/* 特A (rank_id=1): 金 */
.player-card.rank-1 .hero-bg-h { background: var(--rank-tokua-bg); }
/* A (rank_id=2): 金系統 */
.player-card.rank-2 .hero-bg-h { background: var(--rank-a-bg); }
/* A- (rank_id=8): 金系統（暗め） */
.player-card.rank-8 .hero-bg-h { background: var(--rank-a-minus-gradient); }
/* B+ (rank_id=3): 紫（明るめ） */
.player-card.rank-3 .hero-bg-h { background: var(--rank-b-plus-gradient); }
/* B (rank_id=4): 紫 */
.player-card.rank-4 .hero-bg-h { background: var(--rank-b-bg); }
/* B- (rank_id=5): 紫（暗め） */
.player-card.rank-5 .hero-bg-h { background: var(--rank-b-minus-gradient); }
/* C+ (rank_id=6): 青（明るめ） */
.player-card.rank-6 .hero-bg-h { background: var(--rank-c-plus-gradient); }
/* C (rank_id=9): 青 */
.player-card.rank-9 .hero-bg-h { background: var(--rank-c-bg); }
/* C- (rank_id=10): 青（暗め） */
.player-card.rank-10 .hero-bg-h { background: var(--rank-c-minus-gradient); }
/* D (rank_id=11): シルバー */
.player-card.rank-11 .hero-bg-h { background: var(--rank-d-bg); }
/* E (rank_id=12): 黒 */
.player-card.rank-12 .hero-bg-h { background: var(--rank-e-bg); }
/* ランク未設定: グレー */
.player-card.rank-null .hero-bg-h { background: var(--rank-null-bg); }

/* 背景パターン */
.hero-overlay-h {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content-h {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: white;
}

.hero-left-h {
  flex: 1;
}

.rank-large-h {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  opacity: 0.3;
  margin-bottom: 10px;
}

/* H1: 選手名 + チーム */
.hero-name-h {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 選手名（1行目） */
.hero-name-line {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}

/* チーム + 学年（2行目） */
.hero-team-line {
  display: block;
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.4;
  margin-top: 8px;
  margin-bottom: 12px;
}

.hero-team-line a {
  color: white;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

.hero-team-line a:hover {
  border-bottom-color: white;
}

/* 学年 */
.hero-grade-h {
  margin-left: 16px;
}

/* 未承認バナー */
.unapproved-banner-h {
  display: inline-block;
  background: #f59e0b;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ポジション */
.hero-positions-h {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.position-pill-h {
  padding: 4px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ドラフト指名情報 */
.hero-draft-h {
  margin-top: 16px;
}

.draft-banner-h {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 8px;
  font-weight: bold;
  margin-right: 8px;
  margin-bottom: 8px;
}

.hero-right-h {
  text-align: right;
}

.hero-stats-h {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.hero-stat-h {
  text-align: center;
}

.stat-num-h {
  display: block;
  font-size: 2.0rem;
  font-weight: bold;
  line-height: 1;
}

.stat-label-h {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

.hero-stat-h.speed .stat-num-h {
  color: #fde047;
}

.hero-meta-h {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  opacity: 0.9;
}

/* ヘッダー内編集ボタン */
.edit-player-button-hero-h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.edit-player-button-hero-h:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.edit-player-button-hero-h .pi {
  font-size: 0.85rem;
}

/* メインコンテンツ */
.main-content-h {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 24px;
}

/* 右カラムがない場合、左カラムをフル幅に */
.player-card.no-right-column .main-content-h {
  grid-template-columns: 1fr;
}

.left-column-h,
.right-column-h {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* セクション共通（Cスタイルのアイコン付き） */
.info-section-h,
.career-section-h,
.draft-section-h,
.chart-section-h {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}

.section-title-h {
  font-size: 0.9rem;
  font-weight: bold;
  color: #334155;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-h .pi {
  color: var(--color-primary-700, #334e68);
}

/* プロフィール情報グリッド */
.info-grid-compact-h {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row-h {
  display: flex;
  gap: 16px;
}

.info-item-h {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.info-label-h {
  font-size: 0.85rem;
  color: #64748b;
}

.info-value-h {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

/* 球歴タイムライン */
.career-timeline-h {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.career-item-h {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.career-marker-h {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
}

.career-dot-h {
  width: 12px;
  height: 12px;
  background: var(--color-primary-700, #334e68);
  border-radius: 50%;
  flex-shrink: 0;
}

.career-line-h {
  width: 2px;
  flex: 1;
  background: #cbd5e1;
  margin-top: 4px;
}

.career-content-h {
  flex: 1;
}

.career-name-h {
  color: var(--color-primary-700, #334e68);
  text-decoration: none;
  font-weight: 500;
}

.career-name-h:hover {
  text-decoration: underline;
}

.career-year-h {
  font-size: 0.85rem;
  color: #64748b;
  margin-left: 8px;
}

/* 能力値チャート */
.ability-chart-h {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ability-row-h {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ability-label-h {
  width: 60px;
  font-size: 0.85rem;
  color: #475569;
  flex-shrink: 0;
}

.ability-bar-container-h {
  flex: 1;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.ability-bar-h {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-700, #334e68), var(--color-primary-600, #486581));
  border-radius: 10px;
  transition: width 0.3s ease;
}

.ability-value-h {
  width: 80px;
  text-align: right;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

/* 評価チャート */
.eval-chart-h {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eval-row-h {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eval-label-h {
  width: 80px;
  font-size: 0.8rem;
  color: #475569;
  flex-shrink: 0;
}

.eval-bar-container-h {
  flex: 1;
  height: 16px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.eval-bar-h {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 8px;
  transition: width 0.3s ease;
}

.eval-score-h {
  width: 36px;
  text-align: right;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
}

/* 総合評価 */
.total-score-h {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-primary-800, #243b53);
  border-radius: 12px;
  color: white;
}

.score-circle-h {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value-h {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.score-label-h {
  font-size: 0.75rem;
  opacity: 0.8;
}

.score-info-h {
  flex: 1;
}

.score-count-h {
  opacity: 0.9;
}

/* 選手紹介セクション */
.section-introduction-h {
  padding: 24px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.introduction-fallback-h {
  padding: 16px;
}

.introduction-fallback-h .section-title-h {
  margin-bottom: 16px;
}

.contributor-info-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.ugc-badge-h {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.contributor-name-h {
  font-weight: 600;
  color: var(--color-primary-700, #334e68);
}

.highlight-text-h {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-primary-700, #334e68);
}

.highlight-text-h p {
  margin: 0;
  color: var(--color-primary-800, #243b53);
  font-weight: 500;
  line-height: 1.6;
}

.outline-text-h {
  padding: 8px 0;
}

.outline-text-h p {
  margin: 0;
  color: #374151;
  line-height: 1.8;
  white-space: pre-wrap;
}

.no-content-h {
  padding: 24px;
  text-align: center;
  color: #9ca3af;
}

.no-content-h p {
  margin: 0;
}

/* フッター（明るい背景に変更） */
.footer-h {
  background: #f8fafc;
  padding: 16px 24px;
  color: #334155;
  border-top: 1px solid #e2e8f0;
}

.footer-row-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.footer-row-h:last-child {
  border-bottom: none;
}

.footer-label-h {
  width: 60px;
  font-size: 0.85rem;
  color: #64748b;
  flex-shrink: 0;
  padding-top: 4px;
}

.footer-tags-container-h {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tags-h {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tag-h {
  display: inline-block;
  padding: 4px 12px;
  background: #e2e8f0;
  border-radius: 16px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #334155;
  transition: background 0.2s;
}

.footer-tag-h:hover {
  background: #cbd5e1;
}

.footer-tag-h.title {
  background: #fef3c7;
  color: #92400e;
}

/* タググループ別の色分け */
.footer-tag-h.tag-group-1 {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.footer-tag-h.tag-group-2 {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.footer-tag-h.tag-group-3 {
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #7c3aed;
}

.footer-tag-h.tag-group-4 {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.footer-tag-h.tag-group-5 {
  background: #fce7f3;
  border: 1px solid #fbcfe8;
  color: #be185d;
}

/* タグ編集リンク */
.tag-edit-link-h {
  color: var(--color-primary-700, #334e68);
  text-decoration: underline;
  font-size: 0.85rem;
}

.tag-edit-link-h:hover {
  color: var(--color-primary-800, #243b53);
}

.tag-edit-iframe-h {
  margin-top: 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e2e8f0;
}

.no-tags-h {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* タグ行専用スタイル */
.tags-row-h {
  flex-direction: column;
  align-items: flex-start;
}

.tags-row-h .footer-label-h {
  width: auto;
  margin-bottom: 8px;
}

/* 投稿者情報 */
.footer-value-h {
  flex: 1;
  font-size: 0.9rem;
  color: #334155;
}

.registuser-name-h {
  color: #dc2626;
  font-weight: 600;
}

.registuser-guest-h {
  color: #64748b;
}

/* 選手情報編集ボタン */
.edit-row-h {
  justify-content: center;
  padding: 16px 0;
}

.edit-player-button-h {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.edit-player-button-h:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.edit-player-button-h .pi {
  font-size: 1rem;
}

/* Week 19-20: ログイン誘導リンク */
.tag-login-required-h {
  color: #fbbf24;
}

.tag-login-required-h:hover {
  color: #fcd34d;
}

/* 注目機能（旧スカウト） */
.follow-row-h {
  align-items: flex-start;
}

.follow-container-h {
  flex: 1;
  min-width: 200px;
}

/* SSRフォールバック表示 */
.follow-ssr-fallback {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.follow-count-ssr {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
}

.follow-users-ssr {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

/* レスポンシブ対応: md以下で1列化（lgではサイドバーが消えて幅が広がるため2列維持） */
@media (max-width: 768px) {
  .hero-content-h {
    flex-direction: column;
    gap: 24px;
  }

  .hero-right-h {
    text-align: left;
  }

  .hero-stats-h {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-meta-h {
    justify-content: flex-start;
  }

  .main-content-h {
    grid-template-columns: 1fr;
  }

  .hero-name-line {
    font-size: 2rem;
  }

  .rank-large-h {
    font-size: 2.5rem;
  }
}

/* Week 23-24: SNSシェアボタン（上部バー） */
.share-bar-h {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
}

.share-label-h {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.share-buttons-h {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-btn-h {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  text-decoration: none;
}

.share-btn-h:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-btn-h:active {
  transform: scale(0.95);
}

.share-x-h {
  background: #000000;
}

.share-x-h:hover {
  background: #1a1a1a;
}

.share-facebook-h {
  background: #1877f2;
}

.share-facebook-h:hover {
  background: #166fe5;
}

.share-line-h {
  background: #00b900;
}

.share-line-h:hover {
  background: #00a600;
}

.share-copy-h {
  background: #6b7280;
}

.share-copy-h:hover {
  background: #4b5563;
}

/* SNSシェアバーのレイアウト調整 */
.share-bar-h {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.share-left-h {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ヘッダー用編集ボタン */
.edit-player-button-header-h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.edit-player-button-header-h:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}

/* 2カラムレイアウト */
.main-content-h.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  background: white;
}

.right-column-h {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 大会セクション */
.tournament-section-h {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.tournament-tags-h {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tournament-tag-h {
  display: inline-block;
  padding: 6px 12px;
  background: #e2e8f0;
  color: var(--color-primary-800, #243b53);
  border-radius: 16px;
  font-size: 0.85rem;
}

/* 受賞歴セクション */
.awards-section-h {
  background: #fffbeb;
  border-radius: 8px;
  padding: 16px;
}

.awards-tags-h {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.award-tag-h {
  display: inline-block;
  padding: 6px 12px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 16px;
  font-size: 0.85rem;
  border: 1px solid #fde68a;
}

@media (max-width: 768px) {
  .main-content-h.two-column {
    grid-template-columns: 1fr;
  }

  .share-bar-h {
    flex-direction: column;
    align-items: flex-end;
  }

  .edit-player-button-header-h {
    width: 100%;
    justify-content: center;
  }

  /* ドラフト指名バッジ縮小 */
  .hero-draft-h {
    margin-top: 10px;
  }

  .draft-banner-h {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
  }
}

/* ヘッダー内能力値バー */
.ability-bars-h {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  max-width: 320px;
  margin-left: auto;
}

.ability-bar-item-h {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ability-name-h {
  width: 80px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.ability-bar-wrapper-h {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  min-width: 100px;
}

.ability-bars-h .ability-bar-h {
  height: 100%;
  border-radius: 4px;
}

/* 高い値（70%以上）: 青→黄→赤 */
.ability-bars-h .ability-bar-h.bar-high {
  background: var(--ability-bar-high);
  animation: barGrowHigh 1.2s ease-out both;
}

/* 中くらいの値（40-69%）: 青→黄 */
.ability-bars-h .ability-bar-h.bar-mid {
  background: var(--ability-bar-mid);
  animation: barGrowMid 1s ease-out both;
}

/* 低い値（40%未満）: 青のまま */
.ability-bars-h .ability-bar-h.bar-low {
  background: var(--ability-bar-low);
  animation: barGrowLow 0.8s ease-out both;
}

@keyframes barGrowHigh {
  0% { width: 0%; background: var(--ability-bar-low); }
  40% { background: var(--ability-bar-mid); }
  100% { background: var(--ability-bar-high); }
}

@keyframes barGrowMid {
  0% { width: 0%; background: var(--ability-bar-low); }
  100% { background: var(--ability-bar-mid); }
}

@keyframes barGrowLow {
  0% { width: 0%; background: var(--ability-bar-low); }
  100% { background: var(--ability-bar-low); }
}

/* 各バーに遅延を付けて順番に表示 */
.ability-bar-item-h:nth-child(1) .ability-bar-h { animation-delay: 0.1s; }
.ability-bar-item-h:nth-child(2) .ability-bar-h { animation-delay: 0.2s; }
.ability-bar-item-h:nth-child(3) .ability-bar-h { animation-delay: 0.3s; }
.ability-bar-item-h:nth-child(4) .ability-bar-h { animation-delay: 0.4s; }
.ability-bar-item-h:nth-child(5) .ability-bar-h { animation-delay: 0.5s; }
.ability-bar-item-h:nth-child(6) .ability-bar-h { animation-delay: 0.6s; }

.ability-bars-h .ability-value-h {
  width: 70px;
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 1024px) {
  .ability-bars-h {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero-bg-h {
    padding: 24px;
  }

  .hero-name-line {
    font-size: 1.5rem;
  }

  .hero-team-line {
    font-size: 1rem;
  }

  .stat-num-h {
    font-size: 1.5rem;
  }

  .main-content-h {
    padding: 16px;
  }

  .info-row-h {
    flex-direction: column;
    gap: 8px;
  }

  .footer-row-h {
    flex-direction: column;
    gap: 8px;
  }

  .footer-label-h {
    width: auto;
  }
}

/* パンくずリストは common-components.css に移動 */

/* ===========================================
   一般タグシステム（style.cssから移植）
   ※固定タグ(.footer-tag-h.tag-group-*)とは別
   使用箇所: PlayerInfo, TagEdit, PlayerListPane等
   =========================================== */

/* タグコンテナ */
.tag {
  line-height: 2.0em;
  font-size: 12px;
}

/* タググループ共通スタイル */
.gr1, .gr2, .gr3, .gr4, .gr5 {
  display: inline-block;
  font-weight: 300;
  margin: 1px 2px;
  padding: 2px 4px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* ボタン用タグスタイル */
button.gr1, button.gr2, button.gr3, button.gr4, button.gr5 {
  font-size: 12px;
  width: auto;
}

/* ホバー共通 */
.gr1:hover, .gr2:hover, .gr3:hover, .gr4:hover, .gr5:hover {
  border: 2px solid;
  border-color: #939393 #E0E0E0 #E0E0E0 #939393;
  margin: 0;
}

/* グループ1: 投手特徴（青） */
.gr1 {
  background: linear-gradient(to bottom, #40a4fb 0%, #0066ff 100%);
  color: #fff;
}
.gr1:hover {
  background: #0056d8;
}
.tag .gra1,
.tag a.gr1 {
  color: #fff;
  text-decoration: none;
}

/* グループ2: 打者特徴（緑） */
.gr2 {
  background: linear-gradient(to bottom, #08d308 0%, #00a100 100%);
  color: #fff;
}
.gr2:hover {
  background: #339900;
}
.tag .gra2,
.tag a.gr2 {
  color: #fff;
  text-decoration: none;
}

/* グループ3: 守備特徴（オレンジ） */
.gr3 {
  background: linear-gradient(to bottom, #ff954e 0%, #d85600 100%);
  color: #fff;
}
.gr3:hover {
  background: #cc6600;
}
.tag .gra3,
.tag a.gr3 {
  color: #fff;
  text-decoration: none;
}

/* グループ4: 性格・人物（黄） */
.gr4 {
  background: linear-gradient(to bottom, #ffed87 0%, #eac700 100%);
  color: #333;
}
.gr4:hover {
  background: #e9c700;
}
a.gra4,
.tag a.gr4 {
  color: #333;
  text-decoration: none;
}

/* グループ5: その他（グレー） */
.gr5 {
  background: linear-gradient(to bottom, #bebebe 0%, #5d5d5d 100%);
  color: #fff;
}
.gr5:hover {
  background: #555;
}
.tag .gra5,
.tag a.gr5 {
  color: #fff;
  text-decoration: none;
}

/* グループなし */
.tag .gr {
  background: gray;
  margin: 1px;
  color: #fff;
}

/* ===========================================
   バッジ・球歴スタイル
   PlayerCard.inc.tplから移動（2026-02-02）
   =========================================== */

/* 未登録チームバッジ */
.unregistered-team-badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 0.65em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

/* 引退・進路不明バッジ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.65em;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.status-badge.retired {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.status-badge.unknown-career {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

/* 球歴の引退表示 */
.career-name-h.career-retired {
  color: #6b7280;
  font-style: italic;
}

/* 球歴のチームページアイコン */
.career-team-icon-h {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  width: 20px;
  height: 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  color: #0284c7;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.career-team-icon-h:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}
