/* 共通コンポーネント(c-*)。ページ側での上書き禁止。バリエーションはModifierで追加する */

/* サイトヘッダー。TBS共通ヘッダー直下から画面上端まで追従するオーバーレイ */
.c-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.c-header__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 8px 0;
}

.c-header__logo img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.c-header__logo:hover {
  position: relative;
  top: 3px;
}

/* MENUボタン(赤い正方形+白2本線+MENU) */
.c-header__menu-btn {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--color-red);
}

.c-header__menu-line {
  position: absolute;
  left: 6px;
  width: 21px;
  height: 2px;
  background: var(--color-white);
}

.c-header__menu-line:nth-child(1) { top: 7px; }
.c-header__menu-line:nth-child(2) { top: 14px; }

.c-header__menu-label {
  position: absolute;
  top: 17.4px;
  left: 0;
  width: 100%;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--color-white);
  text-align: center;
  line-height: normal;
}

@media (min-width: 991.98px) {
  .c-header {
    overflow-x: clip;
  }

  .c-header__inner {
    padding: 16px 20px 0;
  }

  .c-header__logo img {
    width: 120px;
    height: 120px;
  }

  .c-header__menu-btn {
    width: 56px;
    height: 56px;
  }

  .c-header__menu-line {
    left: 9px;
    width: 39px;
    height: 4px;
  }

  .c-header__menu-line:nth-child(1) { top: 10.6px; }
  .c-header__menu-line:nth-child(2) { top: 22.6px; height: 4px; }

  .c-header__menu-label {
    top: 30px;
    font-size: 18px;
  }
}

/* ハンバーガーメニュー。SP: 全画面 / PC: 右側パネル。赤背景+テクスチャ(mix-blend overlay) */
.c-menu-wrap {
  display: contents;
}

.c-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background-color: var(--color-red);
  background-image: url(../img/common_menu_texture.webp);
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.c-menu.is-closing {
  visibility: visible;
  opacity: 1;
  animation: c-menu-close 0.4s forwards;
}

@keyframes c-menu-close {
  0% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-8%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 991.97px) {
  .c-header {
    height: 1px;
  }

  .c-header.is-menu-open {
    position: fixed;
    top: var(--menu-header-top);
    right: 0;
    left: 0;
    width: 100%;
  }

  .c-menu-wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    height: var(--menu-panel-max-height, 100dvh);
    overflow: hidden;
    pointer-events: none;
  }

  .c-menu-wrap.is-open {
    pointer-events: auto;
  }

  .c-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 100%;
    max-height: 100%;
    pointer-events: auto;
    overscroll-behavior: contain;
  }

  .c-menu__inner {
    min-height: 100%;
  }

  .c-menu__sns,
  .c-menu__note {
    flex-shrink: 0;
  }
}

.c-menu__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 90px 0 24px;
}

/* 閉じるボタン */
.c-menu__close {
  position: absolute;
top: 12px;
    right: 10px;
  width: 46px;
  height: 40px;
}

.c-menu__close-line {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  background: var(--color-white);
}

.c-menu__close-line:nth-child(1) { transform: rotate(45deg); }
.c-menu__close-line:nth-child(2) { transform: rotate(-45deg); }

.c-menu__close-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-white);
  text-align: center;
  line-height: normal;
}

.c-menu__close-icon {
  display: none; /* PC専用のユニオン型×アイコン */
}

/* ナビ */
.c-menu__nav {
  display: flex;
  flex-direction: column;
  /* gap: 15px; */
}

.c-menu__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-white);
  gap: 68px;
      padding: 13px 28px;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .c-menu__item a:hover {
    background-color: var(--color-menu-link-hover);
  }
}

.c-menu__item-text {
  display: flex;
  flex-direction: column;
}

.c-menu__item-en {
  font-family: var(--font-en);
  font-size: 24px;
  line-height: normal;
}

/* 英字と日本語を詰める。日本語がないHOMEには適用しない */
.c-menu__item-en:not(:last-child) {
  margin-bottom: -8px;
}

/* HOME(先頭)だけ次項目との間隔が広い */
.c-menu__item:first-child {
  margin-bottom: 8px;
}

.c-menu__item-jp {
  font-size: 14px;
  line-height: normal;
}

.c-menu__item-arrow {
  width: 16px;
  height: 24px;
  transform: rotate(180deg); /* 元SVGは左向き → 右向きに */
}

/* SNS */
.c-menu__sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 40px;
}

.c-menu__sns a {
  display: flex;
  align-items: center;
}

.c-menu__sns-x img        { width: 24px; height: 25px; object-fit: contain; }
.c-menu__sns-instagram img { width: 29px; height: 29px; }
.c-menu__sns-youtube img  { width: 48px; height: 41px; object-fit: contain; }
.c-menu__sns-tiktok img   { width: 23px; height: 28px; }

.c-menu__note {
  margin-top: 13px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: center;
}

@media (min-width: 991.98px) {
  .c-menu {
    position: absolute;
    left: auto;
    top: 0;
    right: 0;
    bottom: auto;
  }

  .c-menu__inner {
    padding: 120px 0px 40px 0px;
  }

  /* 閉じるボタン: 赤い正方形+ユニオン×+MENU */
  .c-menu__close {
    top: 32px;
    right: 29px;
    width: 78px;
    height: 80px;
  }

  .c-menu__close-line {
    display: none;
  }

  .c-menu__close-icon {
    display: block;
    position: absolute;
    top: 7px;
    left: 50%;
    width: 32px;
    height: 33px;
    margin-left: -16px;
  }

  .c-menu__close-label {
    bottom: 18px;
  }
.c-menu__item a {padding: 13px 56px;}
  /* .c-menu__nav {
    gap: 18.5px;
  } */

  .c-menu__item:first-child {
    margin-bottom: 3.5px;
  }

  .c-menu__item-en {
    font-size: 36px;
  }

  .c-menu__item-jp {
    font-size: 16px;
  }

  .c-menu__item-arrow {
    width: 22px;
    height: 34.8px;
  }
.c-menu__sns-x img{width: 33px;height: 34px;}
.c-menu__sns-instagram img{width: 37px;height: 37px;}
.c-menu__sns-youtube img {width: 60px;height: 51px; }
.c-menu__sns-tiktok img{width: 31px;height: 36px;}
}

@media (min-width: 991.98px) and (max-height: 917.98px) {
  .c-menu {
    max-height: var(--menu-panel-max-height, 100vh);
  }
}

/* フッター。紺背景+赤いTAP!!ボタン+黄色コピーライトバー */
.c-footer {
  position: relative;
  background: var(--color-blue);
  overflow: hidden;
}

.c-footer__inner {
  position: relative;
  height: 374px;
}

/* TAP!!テキスト(Teko・PとJPの!を詰めるトラッキング) */
.c-footer__tap-text {
  position: absolute;
  top: 214px;
  left: calc(50% + 1.5px);
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 24.3px;
  line-height: normal;
  color: var(--color-white);
  white-space: nowrap;
}

.c-footer__tap-text .-p  { letter-spacing: -6.8px; }
.c-footer__tap-text .-ex1 { font-size: 21.3px; letter-spacing: -14.9px; }
.c-footer__tap-text .-ex2 { font-size: 21.3px; }

.c-footer__tap-arrows {
  position: absolute;
  top: 248.5px;
  left: calc(50% - 2.5px);
  transform: translateX(-50%);
  width: 55px;
  height: 10px;
}

.c-footer__tap-btn {
  position: absolute;
  top: 264px;
  left: calc(50% + 2px);
  transform: translateX(-50%);
  width: 174px;
  height: 174px;
}

.c-footer__tap-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-footer__copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 16px 20px;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 11px;
  line-height: 1.5;
}

.c-footer__copy a {
  text-decoration: underline;
}

@media (min-width: 991.98px) {
  .c-footer__inner {
    height: 731px;
  }

  .c-footer__tap-text {
    top: 490px;
    left: calc(50% - 3px);
    font-size: 32px;
  }

  .c-footer__tap-text .-p  { letter-spacing: -9px; }
  .c-footer__tap-text .-ex1 { font-size: 30px; letter-spacing: -21px; }
  .c-footer__tap-text .-ex2 { font-size: 30px; }

  .c-footer__tap-arrows {
    top: 543px;
    left: calc(50% - 12.5px);
    width: 109px;
    height: 21px;
  }

  .c-footer__tap-btn {
    top: 559px;
    left: calc(50% - 10px);
    width: 296px;
    height: 296px;
  }

  .c-footer__copy {
    font-size: 14px;
    line-height: 2;
  }
}

/* ページタイトル。英字Teko大+日本語トラッキング広め・白・中央 */
.c-page-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-white);
}

/* テキストボックス高さ固定のため、flexで中央寄せして高さを一致させる */
.c-page-title__en {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  gap: calc(30vw / 3.75);
  line-height: normal;
  font-size: 48px;
  margin-bottom: -20px;
}

.c-page-title__jp {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
   letter-spacing: 8px;
  line-height: normal;
}

/* SPの英字が大きい版(選手一覧・相関図見出し) */
/* .c-page-title--lg .c-page-title__en {
  font-size: 48px;
} */

/* 用語集の見出し(赤) */
.c-page-title--red {
  color: var(--color-red);
}

.c-page-title--red .c-page-title__en {
  height: 36px;
  font-size: 40px;
}

@media (min-width: 991.98px) {
  .c-page-title__en,
  .c-page-title--lg .c-page-title__en,
  .c-page-title--red .c-page-title__en {
    font-size: 75px;
    margin-bottom: -20px;
  }

  .c-page-title__jp {
    font-size: 16px;
    letter-spacing: 8px;
  }
}

/* チーム見出し。国旗+チーム名(Teko)+ストライプ装飾。チーム別カラーはModifier */
.c-team-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-white);
}

.c-team-nav__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.c-team-nav__flag {
  width: 43px;
  height: 29px;
  object-fit: cover;
}

.c-team-nav__name {
  display: flex;
  align-items: center;
  font-family: var(--font-en);
  font-size: 32px;
  line-height: 1.5;
  white-space: nowrap;
}

.c-team-nav__stripes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 0 0;
  min-width: 1px;
}

.c-team-nav__stripes span {
  display: block;
  height: 3px;
  background: var(--stripe-outer);
}

.c-team-nav__stripes span:nth-child(2) {
  height: 14px;
  background: var(--stripe-mid);
}

/* SPは先頭ストライプなし(LEGENDSのみ表示) */
.c-team-nav__stripes--head {
  display: none;
}

.c-team-nav--japan-red {
  --stripe-outer: var(--color-blue);
  --stripe-mid: var(--color-red);
}

/* JAPAN BlueはFigma上PC/SPで配色が反転している(そのまま再現) */
.c-team-nav--japan-blue {
  --stripe-outer: var(--color-white);
  --stripe-mid: var(--color-blue);
}

.c-team-nav--japan-u20 {
  --stripe-outer: var(--color-blue);
  --stripe-mid: var(--color-yellow);
}

.c-team-nav--usa {
  --stripe-outer: var(--color-team-usa-red);
  --stripe-mid: var(--color-white);
}

.c-team-nav--germany {
  --stripe-outer: var(--color-team-germany-black);
  --stripe-mid: var(--color-team-germany-red);
}

.c-team-nav--australia {
  --stripe-outer: var(--color-team-australia-green);
  --stripe-mid: var(--color-team-australia-yellow);
}

.c-team-nav--poland {
  --stripe-outer: var(--color-team-usa-red);
  --stripe-mid: var(--color-team-poland-yellow);
}

.c-team-nav--france {
  --stripe-outer: var(--color-team-france-red);
  --stripe-mid: var(--color-white);
}

/* LEGENDSはゴールドグラデーション。国旗なしでSPも先頭ストライプあり */
.c-team-nav--legends {
  --stripe-outer: linear-gradient(to right, #F3D590, #8D7C54);
  --stripe-mid: linear-gradient(to right, #FADF97, #948459);
}

.c-team-nav--legends .c-team-nav__stripes--head {
  display: flex;
  flex: 0 0 44px;
}

/* 先頭側はグラデーションの向きが逆 */
.c-team-nav--legends .c-team-nav__stripes--head span {
  background: linear-gradient(to left, #F3D590, #8D7C54);
}

.c-team-nav--legends .c-team-nav__stripes--head span:nth-child(2) {
  background: linear-gradient(to left, #FADF97, #948459);
}

@media (min-width: 991.98px) {
  .c-team-nav {
    gap: 17px;
  }

  .c-team-nav__label {
    gap: 12px;
  }

  .c-team-nav__flag {
    width: 79px;
    height: 52px;
  }

  .c-team-nav__name {
    height: auto;
    font-size: 64px;
  }

  .c-team-nav__stripes {
    gap: 6.3px;
  }

  .c-team-nav__stripes span {
    height: 9.8px;
  }

  .c-team-nav__stripes span:nth-child(2) {
    height: 19.7px;
  }

  .c-team-nav__stripes--head {
    display: flex;
    flex: 0 0 34.4px;
  }

  .c-team-nav--japan-blue {
    --stripe-outer: var(--color-blue);
    --stripe-mid: var(--color-white);
  }

  .c-team-nav--legends {
    --stripe-outer: linear-gradient(to right, #FFE69B, #CFA16C);
    --stripe-mid: linear-gradient(to right, #FFE69B, #CFA16C);
  }

  .c-team-nav--legends .c-team-nav__stripes--head {
    flex-basis: 34.4px;
  }

  .c-team-nav--legends .c-team-nav__stripes--head span,
  .c-team-nav--legends .c-team-nav__stripes--head span:nth-child(2) {
    background: linear-gradient(to left, #FFE69B, #CFA16C);
  }
}

/* チームタグ(選手詳細ヒーロー)。チーム別カラーはc-team-navと同じ変数で指定 */
.c-team-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10.4px;
  color: var(--color-white);
}

.c-team-tag__label {
  display: flex;
  align-items: center;
  gap: 8.3px;
  flex-shrink: 0;
}

.c-team-tag__flag {
  width: 50px;
  height: 33.4px;
  object-fit: cover;
}

.c-team-tag__name {
  display: flex;
  align-items: center;
  height: 33.4px;
  font-family: var(--font-en);
  font-size: 38.2px;
  line-height: 1.5;
  white-space: nowrap;
}

.c-team-tag__stripes {
  display: flex;
  flex-direction: column;
  gap: 6.3px;
  width: 25px;
  flex: 0 0 25px;
}

.c-team-tag__stripes--head {
  flex: 0 0 25px;
}

.c-team-tag__stripes span {
  display: block;
  height: 9.7px;
  background: var(--stripe-outer);
}

.c-team-tag__stripes span:nth-child(2) {
  height: 19.5px;
  background: var(--stripe-mid);
}

.c-team-tag--japan-red {
  --stripe-outer: var(--color-blue);
  --stripe-mid: var(--color-red);
}

/* JAPAN Blueはc-team-navと同じくPC/SPで配色が反転 */
.c-team-tag--japan-blue {
  --stripe-outer: var(--color-white);
  --stripe-mid: var(--color-blue);
}

.c-team-tag--japan-u20 {
  --stripe-outer: var(--color-blue);
  --stripe-mid: var(--color-yellow);
}

.c-team-tag--usa {
  --stripe-outer: var(--color-team-usa-red);
  --stripe-mid: var(--color-white);
}

.c-team-tag--germany {
  --stripe-outer: var(--color-team-germany-black);
  --stripe-mid: var(--color-team-germany-red);
}

.c-team-tag--australia {
  --stripe-outer: var(--color-team-australia-green);
  --stripe-mid: var(--color-team-australia-yellow);
}

.c-team-tag--poland {
  --stripe-outer: var(--color-team-usa-red);
  --stripe-mid: var(--color-team-poland-yellow);
}

.c-team-tag--france {
  --stripe-outer: var(--color-team-france-red);
  --stripe-mid: var(--color-white);
}

/* LEGENDSはゴールドグラデーション(c-team-navと同配色)。国旗なし */
.c-team-tag--legends {
  --stripe-outer: linear-gradient(to right, #F3D590, #8D7C54);
  --stripe-mid: linear-gradient(to right, #FADF97, #948459);
}

.c-team-tag--legends .c-team-tag__stripes--head span {
  background: linear-gradient(to left, #F3D590, #8D7C54);
}

.c-team-tag--legends .c-team-tag__stripes--head span:nth-child(2) {
  background: linear-gradient(to left, #FADF97, #948459);
}

@media (min-width: 991.98px) {
  .c-team-tag {
    display: flex;
    justify-content: flex-start;
    gap: clamp(10.4px, 1.04vw, 15px);
  }

  .c-team-tag--japan-blue {
    --stripe-outer: var(--color-blue);
    --stripe-mid: var(--color-white);
  }

  .c-team-tag--legends {
    --stripe-outer: linear-gradient(to right, #FFE69B, #CFA16C);
    --stripe-mid: linear-gradient(to right, #FFE69B, #CFA16C);
  }

  .c-team-tag--legends .c-team-tag__stripes--head span,
  .c-team-tag--legends .c-team-tag__stripes--head span:nth-child(2) {
    background: linear-gradient(to left, #FFE69B, #CFA16C);
  }

  .c-team-tag__label {
    gap: clamp(8.3px, 0.83vw, 12px);
    flex-shrink: 0;
  }

  .c-team-tag__flag {
    width: clamp(50px, 5vw, 72px);
    height: clamp(33.4px, 3.33vw, 48px);
  }

  .c-team-tag__name {
    height: clamp(33.4px, 3.33vw, 48px);
    font-size: clamp(38.2px, 3.82vw, 55px);
  }

  .c-team-tag__stripes {
    width: auto;
    flex: 1 0 0;
    min-width: 1px;
    gap: clamp(6.3px, 0.63vw, 9px);
  }

  .c-team-tag__stripes--head {
    flex-basis: clamp(25px, 2.5vw, 36px);
  }

  .c-team-tag__stripes--tail {
    flex: 0 0 clamp(25px, 2.5vw, 36px);
  }

  .c-team-tag__stripes span {
    height: clamp(9.7px, 0.97vw, 14px);
  }

  .c-team-tag__stripes span:nth-child(2) {
    height: clamp(19.5px, 1.94vw, 28px);
  }
}

/* Q&Aアコーディオン(details/summary。開閉アニメーションは対応ブラウザのみ) */
.c-qa {
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  interpolate-size: allow-keywords;
}

.c-qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.3s, content-visibility 0.3s allow-discrete;
}

.c-qa[open]::details-content {
  block-size: auto;
}

.c-qa__q {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  list-style: none;
}

.c-qa__q::-webkit-details-marker {
  display: none;
}

.c-qa__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 44px;
  font-family: var(--font-en);
  font-size: 48px;
  line-height: normal;
  text-align: center;
}

.c-qa__text {
  flex: 1 0 0;
  min-width: 1px;
  font-size: 14px;
  line-height: 25px;
}

.c-qa__arrow {
  flex-shrink: 0;
  width: 9px;
  height: 13px;
  transform: rotate(-90deg);
  transition: transform 0.3s;
}

.c-qa[open] .c-qa__arrow {
  transform: rotate(90deg);
}

.c-qa__a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-top: 24px;
  align-items: center;
}

@media (min-width: 991.98px) {
  .c-qa {
    padding: 10px 20px;
    background: var(--color-black);
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  }

  .c-qa__q {
    gap: 20px;
  }

  .c-qa__mark {
    width: auto;
    height: auto;
  }

  .c-qa__text {
    font-size: 16px;
  }

  .c-qa__arrow {
    width: 17px;
    height: 25px;
  }

  .c-qa__a {
    gap: 20px;
    padding-top: 20px;
  }
}

/* 相関図導線。暗転させたチャート写真の上に見出しとボタン */
.c-chart-cta {
  position: relative;
  padding: 26px 0 80px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../../players/img/players_chart_bg.webp);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 230%;
}

.c-chart-cta__inner {
  position: relative;
  z-index: 1;
}

.c-chart-cta__title {
  padding: 24px 0;
}

.c-chart-cta__btn {
  margin-inline: auto;
}

.c-chart-cta__back {
  margin: 30px auto 0;
}

@media (min-width: 991.98px) {
  .c-chart-cta {
    padding: 136px 0 80px;
    background-position: center, 49.75% 35.5%;
    background-size: cover;
  }

  .c-chart-cta__title {
    padding: 0;
  }

  .c-chart-cta__btn {
    margin-top: 40px;
  }

  .c-chart-cta__back {
    margin-top: 40px;
  }
}

/* 選手カード。写真のトリミング率と名前サイズはinlineカスタムプロパティで指定 */
.c-player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 138 / 170;
  padding: 5px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
  color: var(--color-white);
}

.c-player-card__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.c-player-card__photo img {
  position: absolute;
  left: var(--pl-sp);
  top: var(--pt-sp);
  width: var(--pw-sp);
  height: var(--ph-sp);
  max-width: none;
}

.c-player-card__photo .lazy {
  background-size: var(--pw-sp) var(--ph-sp);
  background-position: var(--bgx-sp) var(--bgy-sp);
}

.c-player-card__photo .lazy img {
  display: none;
}

.c-player-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 21.635%, #5C5C5C 100%);
  mix-blend-mode: multiply;
}

.c-player-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

.c-player-card__catch {
  font-size: 12px;
  line-height: 1.1;
}

.c-player-card__name {
  font-size: var(--name-size-sp, 20px);
  line-height: 1.5;
  letter-spacing: var(--name-track, normal);
}

/* SPで2行に折り返す長い名前 */
.c-player-card__name--wrap {
  line-height: 1.2;
}

@media (min-width: 991.98px) {
  .c-player-card {
    aspect-ratio: 213 / 284;
    padding: 10px;
    box-shadow: none;
  }

  .c-player-card__photo img {
    left: var(--pl);
    top: var(--pt);
    width: var(--pw);
    height: var(--ph);
  }

  .c-player-card__photo .lazy {
    background-size: var(--pw) var(--ph);
    background-position: var(--bgx) var(--bgy);
  }

  .c-player-card__body {
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  }

  .c-player-card__catch {
    font-size: 16px;
    line-height: 1.5;
  }

  .c-player-card__name {
    font-size: var(--name-size, 32px);
    line-height: 1.5;
    white-space: nowrap;
  }
}

@media (min-width: 991.98px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .c-player-card__photo img,
  .c-player-card__photo .lazy {
    transition: transform 0.3s ease;
  }

  .c-player-card:hover .c-player-card__photo img,
  .c-player-card:hover .c-player-card__photo .lazy {
    transform: scale(1.04);
  }
}

/* ボタン。ピル型・テクスチャ背景+赤枠+紺文字、赤い下層で立体感 */
.c-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  height: 48px;
  border: 2px solid var(--color-btn-red);
  border-radius: 100px;
  background: url(../img/common_btn_bg.png) center / 100% 100%;
  box-shadow: 0 5px 0 var(--color-btn-red);
  color: var(--color-blue);
  font-weight: 900;
  font-size: 16px;
  line-height: normal;
}

.c-btn__arrow {
  width: 10px;
  height: 15px;
}

/* 戻る系(矢印が左・テキストの前) */
.c-btn--back .c-btn__arrow {
  order: -1;
  width: 9px;
  height: 13px;
  transform: rotate(180deg);
}

/* 赤バリアント */
.c-btn--red {
  background: var(--color-btn-red);
  border-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 5px 0 var(--color-blue);
}

/* ボタン内アイコン(YouTube等) */
.c-btn__icon {
  width: 17px;
  height: 17px;
}

@media (min-width: 991.98px) {
  .c-btn {
    width: 300px;
    height: 66px;
    box-shadow: 0 7px 0 var(--color-btn-red);
  }

  .c-btn--red {
    box-shadow: 0 7px 0 var(--color-blue);
  }

  /* トップページの標準サイズ */
  .c-btn--md {
    height: 60px;
    box-shadow: 0 6px 0 var(--color-btn-red);
  }

  .c-btn--md.c-btn--red {
    box-shadow: 0 6px 0 var(--color-blue);
  }
}

@media (min-width: 991.98px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .c-btn {
    overflow: hidden;
  }

  .c-btn:hover,
  .c-btn:focus-visible {
    translate: 0 3px;
  }

  .c-btn::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: -40%;
    bottom: -40%;
    left: -45%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
    transform: translateX(-100%) skewX(-20deg);
    pointer-events: none;
  }

  .c-btn:not(.c-btn--red):hover::before,
  .c-btn:not(.c-btn--red):focus-visible::before {
    animation: c-btn-shine .28s ease-out both;
  }

  .c-btn:not(.c-btn--red):hover,
  .c-btn:not(.c-btn--red):focus-visible {
    box-shadow: 0 4px 0 var(--color-btn-red);
  }

  .c-btn--md:not(.c-btn--red):hover,
  .c-btn--md:not(.c-btn--red):focus-visible {
    box-shadow: 0 3px 0 var(--color-btn-red);
  }

  .c-btn--red:hover,
  .c-btn--red:focus-visible {
    box-shadow: 0 4px 0 var(--color-blue);
  }

  .c-btn--md.c-btn--red:hover,
  .c-btn--md.c-btn--red:focus-visible {
    box-shadow: 0 3px 0 var(--color-blue);
  }

  @keyframes c-btn-shine {
    to {
      transform: translateX(550%) skewX(-20deg);
    }
  }
}

/* セクション見出し。‹‹‹ EN ››› + 日本語。矢印装飾・ストライプ装飾のバリエーションあり */
.c-heading {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: var(--color-white);
}

.c-heading__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.c-heading__en {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 48px;
  line-height: 0.8;
  white-space: nowrap;
}

.c-heading__jp {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:15px;
  letter-spacing: 3px;
  line-height: normal;
  white-space: nowrap;
}

/* 赤文字(MOVIEセクション) */
.c-heading--red {
  color: var(--color-red);
}

/* 矢印装飾あり(‹‹‹ ›››)。疑似要素+背景画像で実装(imgタグは使わない) */
.c-heading--arrows::before,
.c-heading--arrows::after {
  content: '';
  display: block;
  width: 186px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
  background: no-repeat center / contain;
}

.c-heading--arrows-repeat {
  position: relative;
  overflow: hidden;
}

.c-heading--arrows-repeat .c-heading__text {
  position: relative;
}

.c-heading--arrows-repeat .c-heading__text::before,
.c-heading--arrows-repeat .c-heading__text::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 100vw;
  height: 32px;
  background-size: auto 100%;
  background-repeat: repeat-x;
  pointer-events: none;
}

.c-heading--arrows-repeat .c-heading__text::before {
  right: calc(100% + 196px);
  background-image: url(../img/common_heading_arrow-left-repeat.svg);
  background-position: right center;
}

.c-heading--arrows-repeat .c-heading__text::after {
  left: calc(100% + 196px);
  background-image: url(../img/common_heading_arrow-right-repeat.svg);
  background-position: left center;
}

.c-heading--arrows::before {
  background-image: url(../img/common_heading_arrow-left-sp.svg);
}

.c-heading--arrows::after {
  background-image: url(../img/common_heading_arrow-right-sp.svg);
}

/* ストライプ装飾あり。テキスト幅を内容に合わせ、ストライプとの重なりを防ぐ */
.c-heading--stripes {
  align-items: stretch;
}

.c-heading--stripes .c-heading__text {
  width: max-content;
}

@media (min-width: 991.98px) {
  .c-heading {
    gap: 20px;
  }

  .c-heading__text {
    width: 330px;
  }

  .c-heading__en {
    height: 80px;
    font-size: 96px;
  }

  .c-heading__jp {
    height: 19px;
    font-size: 16px;
    letter-spacing: 8px;
  }

  .c-heading--arrows::before,
  .c-heading--arrows::after {
    width: 649px;
    height: 83px;
    margin-top: 0;
  }

  .c-heading--arrows::before {
    background-image: url(../img/common_heading_arrow-left.svg);
  }

  .c-heading--arrows::after {
    background-image: url(../img/common_heading_arrow-right.svg);
    transform: scaleX(-1);
  }

  .c-heading--arrows-repeat .c-heading__text::before,
  .c-heading--arrows-repeat .c-heading__text::after {
    top: 0;
    height: 83px;
  }

  .c-heading--arrows-repeat .c-heading__text::before {
    right: calc(100% + 669px);
  }

  .c-heading--arrows-repeat .c-heading__text::after {
    left: calc(100% + 669px);
  }

  /* 紺背景セクション用(紺→赤グラデーションの矢印。PCのみ画像が異なる) */
  .c-heading--arrows-navy::before {
    background-image: url(../img/common_heading_arrow-left-navy.svg);
  }

  .c-heading--arrows-navy::after {
    background-image: url(../img/common_heading_arrow-right-navy.svg);
  }
}

/* ストライプ装飾(NEWS & TOPICS)。黄色バー3本をグラデーションで描き、画面端まで伸ばす */
.c-heading--stripes::before,
.c-heading--stripes::after {
  content: '';
  flex: 1 0 0;
  min-width: 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    var(--color-yellow) 0 16.67%,
    transparent 16.67% 27.78%,
    var(--color-yellow) 27.78% 72.22%,
    transparent 72.22% 83.33%,
    var(--color-yellow) 83.33% 100%
  );
}

@media (min-width: 991.98px) {
  .c-heading--stripes::before,
  .c-heading--stripes::after {
    height: 92px;
    background: linear-gradient(
      to bottom,
      var(--color-yellow) 0 15px,
      transparent 15px 25px,
      var(--color-yellow) 25px 67px,
      transparent 67px 77px,
      var(--color-yellow) 77px 92px
    );
  }
}

/* カルーセル。CSS scroll-snap + 前後ボタン(assets/js/carousel.js) */
.c-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.c-carousel__arrow {
  flex-shrink: 0;
  display: flex;
}

.c-carousel__arrow img {
  width: 29px;
  height: 45px;
}

.c-carousel__arrow--next img {
  transform: rotate(180deg);
}

.c-carousel__track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* デザインにスクロールバーなし */
}

.c-carousel__track::-webkit-scrollbar {
  display: none;
}

.c-carousel__track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* SP時、data-carousel-sp-limit を超える項目を非表示(carousel.jsが付与) */
@media (max-width: 991.97px) {
  .c-carousel__item--sp-hidden {
    display: none;
  }
}

/* 記事カード(サムネ+日付+タイトル) */
.c-news-card {
  display: flex;
  gap: 12px;
  color: var(--color-white);
  text-align: left; /* button利用時も左揃えを保つ */
}

/* 明るい背景用の濃色文字(選手詳細MOVIE) */
.c-news-card--dark {
  color: var(--color-blue);
}

.c-news-card__thumb {
  position: relative;
  flex-shrink: 0;
  width: calc(120vw / 3.2);
  background: var(--color-white);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.c-news-card__thumb img,
.c-news-card__thumb .lazy {
  display: block;
  width: 100%;
  height: 100%;
}

.c-news-card__thumb .lazy {
  position: absolute;
  inset: 0;
}

.c-news-card__thumb img {
  object-fit: contain;
}

.c-news-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.c-news-card__date {
  font-size: calc(12vw / 3.75);
  line-height: 1.5;
}

.c-news-card__title {
 font-size: calc(14vw / 3.75);
  line-height: 1.5;
  /* SPのみ3行でクランプ */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (min-width: 991.98px) {
  .c-news-card {
    flex-direction: column;
    gap: 7px;
  }

  .c-news-card__thumb {
    width: 100%;
  }
.c-news-card__date{
  font-size: 12px;
}
  .c-news-card .c-news-card__title {
    -webkit-line-clamp: unset; /* PCはクランプなし(全文表示) */
    font-size: 14px;
  }

  .c-news-card__body {
    gap: 7px;
  }

  .c-news-card--dark {
    color: var(--color-black);
  }
}

/* MOVIEエリア(金属板背景+ギザギザ上縁+見出し+YouTube再生リスト+チャンネルボタン)。
   上のセクションへの食い込み量は --movie-overlap で調整(基本は縁の高さ分。トップはGOODSに深く重ねるため大きい)。
   カードはYouTubeポップアップ(modal_ver8)互換の news-video/news-item マークアップ */
.c-movie {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(15, 24, 57, 0) 0%, rgba(15, 24, 57, 0) 38%, rgba(15, 24, 57, 0.28) 100%),
    url(../img/metal.png);
  background-repeat: no-repeat, repeat;
  background-position: center top, center top;
  background-size: 100% 100%, 20px;
}

/* 上端のギザギザ縁。食い込み部分に金属板の続きを描く */
.c-movie::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  background-image:
    linear-gradient(90deg, rgba(15, 24, 57, 0) 0%, rgba(15, 24, 57, 0) 38%, rgba(15, 24, 57, 0.28) 100%),
    url(../img/metal.png);
  background-repeat: no-repeat, repeat;
  background-position: center top, center top;
  background-size: 100% 100%, 20px;
}

.c-movie-card__title {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* カード高に収まる3行でクランプ */
  overflow: hidden;
  text-shadow: 1px 1px 3px #fff;
}

.c-movie__list .news-item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-placeholder);
  overflow: hidden;
  margin-bottom: 10px;
}

.c-movie__list .news-item-image img,
.c-movie__list .news-item-image .lazy {
  display: block;
  width: 100%;
  height: 100%;
}

.c-movie__list .news-item-image .lazy {
  position: absolute;
  inset: 0;
}

.c-movie__list .news-item-image img {
  object-fit: cover;
}

@media (min-width: 991.98px) {
  .c-movie {
    --movie-overlap: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: calc(-1 * var(--movie-overlap));
    padding: calc(66px + var(--movie-overlap)) 0 86px;
  }

  .c-movie::before {
    top: calc(var(--movie-overlap) - 52px);
    height: 52px;
    background-size: 100% 100%, 20px;
    background-position: center top, center calc(52px - var(--movie-overlap));
    -webkit-mask-image: linear-gradient(#000, #000), url(../img/top_goods_edge_pc.png);
    mask-image: linear-gradient(#000, #000), url(../img/top_goods_edge_pc.png);
    -webkit-mask-size: 100% 100%, auto 52px;
    mask-size: 100% 100%, auto 52px;
    -webkit-mask-position: top, top left;
    mask-position: top, top left;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .c-movie__list {
    display: flex;
    gap: 40px;
    width: min(100% - 30px, 1080px);
    margin-inline: auto;
  }

  /* 中間幅ではカードを縮めて3枚を収める */
  .c-movie__list > li {
    flex: 0 1 332px;
    min-width: 0;
  }

  .c-movie__btn {
    margin: auto;
  }
}

@media (min-width: 991.98px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .c-movie__list .news-item-image > img,
  .c-movie__list .news-item-image > .lazy {
    transition: transform 0.3s ease;
  }

  .c-movie__list .news-video:hover .news-item-image > img,
  .c-movie__list .news-video:hover .news-item-image > .lazy {
    transform: scale(1.04);
  }
}

@media (max-width: 991.97px) {
  .c-movie {
    --movie-overlap: 20px;
    margin-top: calc(-1 * var(--movie-overlap));
    padding: calc(48px + var(--movie-overlap)) 0 56px;
    background-image:
      radial-gradient(circle at left bottom, rgba(15, 24, 57, 0.32) 0%, rgba(15, 24, 57, 0.2) 36%, rgba(15, 24, 57, 0) 72%),
      url(../img/metal.png);
    background-size: 100% 100%, 3%;
  }

  .c-movie::before {
    top: calc(var(--movie-overlap) - 20px);
    height: 20px;
    background-image:
      linear-gradient(transparent, transparent),
      url(../img/metal.png);
    background-size: 100% 100%, 3%;
    -webkit-mask-image: linear-gradient(#000, #000), url(../img/top_goods_edge_sp.svg);
    mask-image: linear-gradient(#000, #000), url(../img/top_goods_edge_sp.svg);
    -webkit-mask-size: 100% 100%, auto 20px;
    mask-size: 100% 100%, auto 20px;
    -webkit-mask-position: top, top left;
    mask-position: top, top left;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .c-movie__heading {
    margin-bottom: 24px;
  }

  .c-movie__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: calc(16vw / 3.75);
    margin-inline: auto;
  }

  .c-movie__list .news-video {
    display: block;
    color: var(--color-blue);
    text-decoration: none;
  }

  .c-movie__list .news-item {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .c-movie__list .news-item-image {
    flex-shrink: 0;
    width: calc(120vw / 3.2);
  }

  .c-movie-card__title {
    color: var(--color-blue);
    font-size: calc(14vw / 3.75);
    font-weight: inherit;
  }

  .c-movie__btn {
    width: min(100%, 286px);
    margin: 32px auto 0;
  }
}

@media (min-width: 769px) and (max-width: 991.97px) {
  .c-movie .c-movie-card__title {
    font-size: calc(11vw / 3.75);
  }
}

/* モーダル(YouTubeポップアップ用) */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.c-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.c-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.c-modal__body {
  position: relative;
  width: min(90vw, 960px);
}

.c-modal__player {
  aspect-ratio: 16 / 9;
  background: var(--color-black);
}

.c-modal__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.c-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
}

.c-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--color-white);
}

.c-modal__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.c-modal__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

body.is-modal-open {
  overflow: hidden;
}

/* タグ。ピル型。選択状態=黄色背景+黒枠+紺文字 */
.c-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 15px;
  border: 2px solid var(--color-white);
  border-radius: 23.5px;
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.c-tag.is-active {
  background: var(--color-yellow);
  border-color: var(--color-black);
  color: var(--color-blue);
}

@media (min-width: 991.98px) {
  .c-tag {
    padding: 5px 15px;
    font-size: 16px;
  }
}

/* ページネーション。Teko数字+現在ページに黄色サークル。SPサイズはFigmaに無いためPC約0.7倍 */
.c-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.c-pager[hidden] {
  display: none;
}

.c-pager__num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  font-family: var(--font-en);
  font-size: 22px;
  line-height: 1;
  color: var(--color-white);
}

.c-pager__num.is-current {
  box-sizing: border-box;
  padding-left: 4px;
  padding-top: 4px;
  color: #201838;
}

.c-pager__num.is-current::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  background: url(../img/common_pager_current.svg) center / contain no-repeat;
  z-index: -1;
}

.c-pager__arrow {
  display: flex;
}

.c-pager__arrow img {
  width: 18px;
  height: 27px;
}

.c-pager__arrow--next img {
  transform: scaleX(-1);
}

/* 端ページの矢印。位置を保持して数字列の中央位置を固定 */
.c-pager__arrow--disabled {
  visibility: hidden;
}

@media (min-width: 991.98px) {
  .c-pager {
    gap: 34px;
  }

  .c-pager__num {
    width: 57px;
    height: 63px;
    font-size: 32px;
  }

  .c-pager__num.is-current {
    padding-left: 6px;
    padding-top: 6px;
  }

  .c-pager__num.is-current::before {
    width: 63px;
    height: 63px;
  }

  .c-pager__arrow img {
    width: 26px;
    height: 39px;
  }
}
