/* ============================================
   PLAYERS PAGE
   ============================================ */

/* ページヘッダー */
.page-hero {
  position: relative;
  height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 70px;
  padding-bottom: 36px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}

.page-hero-bg::after {
  content: 'PLAYERS';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 160px;
  font-weight: 900;
  color: rgba(41, 182, 216, 0.05);
  letter-spacing: -5px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.page-hero-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 3px;
  line-height: 1;
}

/* ============================================
   ポジションボタン
   ============================================ */
.pos-tabs-wrap {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}

.pos-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pos-tabs a {
  display: inline-block;
  width: 160px;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 24px;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  line-height: 1.3;
  text-align: center;
}

.pos-tabs a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.pos-tabs a:hover .pos-tab-ja,
.pos-tabs a:hover .pos-tab-en { color: var(--white); }

.pos-tab-ja {
  display: block;
  font-size: 9px;
  color: #999;
  letter-spacing: 1px;
}

.pos-tab-en {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 1px;
}

/* ============================================
   セクション共通
   ============================================ */
.players-body {
  padding: 60px 0 80px;
  background: #f0f0f0;
}

/* ============================================
   ポジションセクション見出し
   ============================================ */
.position-section {
  margin-bottom: 64px;
  scroll-margin-top: 148px;
}

.position-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 24px;
  border-bottom: none;
}

.pos-label-ja {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  font-weight: 400;
}

.pos-label-en {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 2px;
  line-height: 1;
}

/* ============================================
   ロスターグリッド
   ============================================ */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* ============================================
   ロスターカード（縦型）
   ============================================ */
.roster-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
  background: #1a1a1a;
}

.roster-card:hover { transform: translateY(-4px); }

.roster-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #2a2a2a;
  flex-shrink: 0;
  position: relative;
}

.roster-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  pointer-events: none;
}


.roster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.roster-img-2 {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.roster-card:hover .roster-img-1 { transform: scale(1.04); }
.roster-card:hover .roster-img-2 { opacity: 1; transform: scale(1.04); }

.roster-detail {
  padding: 0 14px;
  height: 52px;
  background: #1a1a1a;
  margin-top: -52px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.roster-num-name {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.roster-num {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.roster-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  text-align: center;
}

.roster-num-name .roster-name {
  padding-left: 36px;
}

.roster-staff-info {
  width: 100%;
  text-align: center;
}

/* スタッフカードは役職名が長い場合があるため高さ可変 */
.roster-detail:has(.roster-staff-info) {
  height: auto;
  min-height: 52px;
  padding: 8px 14px;
}

@media (max-width: 640px) {
  .roster-detail:has(.roster-staff-info) {
    min-height: 44px;
    margin-top: -44px;
  }
}

.roster-pos {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.captain-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: var(--accent, #ff6b35);
  color: var(--white);
  padding: 1px 5px;
  letter-spacing: 1px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 1024px) {
  .roster-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .roster-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .page-hero { height: 180px; padding-bottom: 24px; }
  .page-title { font-size: 40px; }

  .pos-tabs-wrap { padding: 14px 0; }
  .pos-tabs { gap: 6px; padding: 0 16px; }
  .pos-tabs li { width: calc(33.333% - 4px); }
  .pos-tabs a {
    width: 100%;
    padding: 8px 4px;
  }
  .pos-tab-ja { font-size: 8px; }
  .pos-tab-en { font-size: 10px; }

  .position-section { scroll-margin-top: 120px; }

  .roster-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .roster-num { font-size: 20px; }
  .roster-name { font-size: 14px; }
  .roster-num-name .roster-name { padding-left: 26px; }
  .roster-detail { height: 44px; margin-top: -44px; }
}
