/* =========================================
   Player Card Display Plugin  styles
   画像＋下部カラー帯(番号＋名前＋ローマ字＋矢印)
   ========================================= */

/* メインカラー：カード下部の帯色(ここを変えればOK) */
:root {
  --player-card-accent: #17314c; /* ネイビー系 */
} 

/* 一覧のグリッドレイアウト */
.s-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 16px;
}

/* タブレット・スマホでも最低2列表示 */
@media (max-width: 768px) {
  .s-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px auto;
    padding: 0 12px;
  }
}

/* カード本体 */
.s-pro-container {
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* .staff-card も見た目は同じにしておく */
.s-pro-container.s-staff-card {
}

/* hover アニメーション */
.s-pro-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 内側ラッパー */
.s-pro-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 画像(アイキャッチ) */
.s-pro-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 下部のカラー帯エリア(横並びレイアウト) */
.s-pro-p {
  background-color: var(--player-card-accent);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  min-height: 100px;
  height: 100px;
}

/* 左側の情報エリア(番号と名前グループを横並び) */
.s-pro-info {
  display: flex;
  align-items: center;
  column-gap: 16px;
  flex: 1;
}

/* 背番号 */
.s-pro-number {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
}

/* 名前＋ローマ字のグループ(縦並び) */
.s-pro-text {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  flex: 1;
  min-width: 0;
}

/* 名前(日本語) */
.s-pro-h3.s-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

/* ローマ字 */
.s-pro-romaji {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin: 0;
  line-height: 1.2;
}

/* 右側の矢印 */
.s-pro-arrow {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

/* スマホでのフォントサイズ調整 */
@media (max-width: 599px) {
  .s-pro-p {
    padding: 12px 14px;
    min-height: 90px;
    height: 90px;
  }
  .s-pro-info {
    column-gap: 12px;
  }
  .s-pro-number {
    font-size: 22px;
  }
  .s-pro-h3.s-name {
    font-size: 16px;
  }
  .s-pro-romaji {
    font-size: 11px;
  }
  .s-pro-arrow {
    font-size: 24px;
  }
}

/* 極小サイズでもカードサイズを調整 */
@media (max-width: 380px) {
  .s-wrapper {
    gap: 12px;
    padding: 0 8px;
  }
  .s-pro-p {
    padding: 10px 12px;
    min-height: 85px;
    height: 85px;
  }
  .s-pro-number {
    font-size: 20px;
  }
  .s-pro-h3.s-name {
    font-size: 14px;
  }
  .s-pro-romaji {
    font-size: 10px;
  }
  .s-pro-arrow {
    font-size: 20px;
  }
}

/* =========================================
   選手詳細ページ用スタイル
   ========================================= */

.s-player-detail-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.s-player-detail-container {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* ヘッダー部分 */
.s-player-detail-header {
  background: #ffffff;
}

.s-player-header-content {
  display: flex;
  flex-direction: column;
}

.s-player-image-section {
  width: 100%;
  background: #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.s-player-detail-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.s-player-name-section {
  background-color: var(--player-card-accent);
  color: #ffffff;
  padding: 30px 40px;
  text-align: left;
}

.s-player-detail-number {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1;
}

.s-player-detail-name {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.s-player-detail-romaji {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
  margin-top: 8px;
}

/* 詳細情報セクション */
.s-player-detail-info {
  padding: 40px;
  background: #ffffff;
}

.s-player-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  margin-bottom: 40px;
}

.s-player-info-item {
  border-bottom: 3px solid var(--player-card-accent);
  padding-bottom: 12px;
}

.s-info-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--player-card-accent);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.s-info-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* 経歴セクション */
.s-player-career-section {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.s-career-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--player-card-accent);
  padding: 18px 30px;
  margin: 0;
  letter-spacing: 0.1em;
  text-align: center;
}

.s-career-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  padding: 30px;
  text-align: left;
  margin: 0;
}

.s-career-content p {
  margin: 0;
  padding: 0;
}

.s-career-content p:first-child {
  margin-top: 0;
}

/* 戻るリンク */
.s-player-back-link {
  text-align: center;
  padding: 20px 0 30px;
}

.s-back-button {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--player-card-accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.s-back-button:hover {
  background-color: #0f2338;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* タブレット対応 */
@media (max-width: 768px) {
  .s-player-detail-wrapper {
    margin: 20px auto;
    padding: 0 15px;
  }

  .s-player-image-section {
    padding: 30px 15px;
  }

  .s-player-detail-image {
    max-width: 400px;
  }

  .s-player-name-section {
    padding: 25px 30px;
  }

  .s-player-detail-number {
    font-size: 36px;
  }

  .s-player-detail-name {
    font-size: 26px;
  }

  .s-player-detail-romaji {
    font-size: 16px;
  }

  .s-player-detail-info {
    padding: 30px 25px;
  }

  .s-player-info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .s-career-title {
    font-size: 20px;
    padding: 15px 20px;
  }

  .s-career-content {
    font-size: 15px;
    padding: 25px 20px;
  }

  .s-back-button {
    padding: 12px 35px;
    font-size: 14px;
  }
}

/* スマホ対応 */
@media (max-width: 480px) {
  .s-player-detail-wrapper {
    margin: 10px auto;
    padding: 0 10px;
  }

  .s-player-image-section {
    padding: 20px 10px;
  }

  .s-player-detail-image {
    max-width: 100%;
  }

  .s-player-name-section {
    padding: 20px 20px;
  }

  .s-player-detail-number {
    font-size: 32px;
  }

  .s-player-detail-name {
    font-size: 22px;
  }

  .s-player-detail-romaji {
    font-size: 14px;
  }

  .s-player-detail-info {
    padding: 25px 20px;
  }

  .s-player-info-grid {
    gap: 20px;
  }

  .s-info-value {
    font-size: 16px;
  }

  .s-career-title {
    font-size: 18px;
    padding: 12px 15px;
  }

  .s-career-content {
    font-size: 14px;
    padding: 20px 15px;
  }
}