:root {
  --text: #33363b;
  --accent: #ff6623;
  --bg-light: rgba(238, 238, 244, 0.85);
  --bg-dark: #101728;
  --card-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-light);
  color: var(--text);
  font-size: 16px;
}

.container {
  width: min(1200px, calc(100% - 60px));
  margin-inline: auto;
}

.detail-container {
  width: min(1000px, calc(100% - 160px));
  margin-inline: auto;
}

.player-head__title {
  margin: 0;
  padding: 50px 0 40px;
  line-height: 1.15;
}

.player-head__title .en {
  color: #171c26;
}

.player-head__sub {
  margin-top: 10px;
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

.player-hero__visual {
  position: relative;
  width: min(1000px, 100%);
  margin-inline: auto;
}

.player-hero__image {
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
}

.player-hero__lazy,
.player-hero__lazy img {
  display: block;
  width: 100%;
}

.player-hero__lazy img {
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.player-hero__lazy.PC {
  display: block;
}

.player-hero__lazy.SP {
  display: none;
}

.player-hero__info {
  position: absolute;
  left: 0;
  bottom: 35px;
  text-align: left;
}

.player-hero__name {
  display: inline-block;
  margin: 0 0 20px -98px;
  padding: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  border-radius: 5px;
}

.player-hero__tags {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.player-hero__tags li {
  width: fit-content;
  margin: 0;
  padding: 5px 14px;
  background: var(--accent);
  color: #111;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 3px;
}

.player-hero__tags li:first-child {
  margin-left: -30px;
  font-size: 32px;
}

.player-hero__tags li:nth-child(2) {
  margin-left: -57px;
  font-size: 24px;
}

.player-hero__tags li:nth-child(3) {
  margin-left: 17px;
  font-size: 24px;
}

.player-profile {
  margin-top: 45px;
  margin-bottom: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.player-profile__lead {
  padding: 65px 60px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-align: left;
}

.player-profile__lead p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.player-profile__facts {
  border-radius: 8px;
  background: #fff;
  padding: 10px 0;
  text-align: left;
  overflow: hidden;
}

.player-profile__row {
  margin: 0 28px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid #dedede;
}

.player-profile__row:first-child {
  border-top: none;
}

.player-profile__row dt {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(122, 122, 122, 1);
}

.player-profile__row dt span {
  font-size: 11px;
}

.player-profile__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #111;
}

.player-video {
  margin-top: 58px;
  margin-bottom: 58px;
}

.player-video .mov-outer.innter {
  width: 100%;
}

.player-video .yt-player,
.player-video .mov-inner {
  width: 100%;
}

.player-video .mov-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #d9d9d9;
  overflow: hidden;
}

.player-video .yt-playlist-embed,
.player-video .yt-playlist-embed iframe {
  width: 100%;
  height: 100%;
}

.player-video__caption {
  margin: 10px 0 0;
  text-align: left;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
}

.player-video__caption time {
  margin-right: 10px;
}

.player-gallery {
  margin-top: 44px;
  margin-bottom: 70px;
}

.player-gallery figure {
  margin: 0;
}

.player-gallery__lazy,
.player-gallery__lazy img {
  width: 100%;
  display: block;
}

.player-gallery__lazy img {
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: contain;
  object-position: center center;
}

.player-detail .player-gallery__main {
  display: block;
  width: 100%;
  max-width: 732px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.player-detail .player-gallery__main .player-gallery__lazy {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-position: center center !important;
}

.player-gallery__thumbs {
  margin: 35px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* CMS構造: player-gallery__items */
.player-gallery__items {
  display: grid;
  grid-template-columns: minmax(0, 732px);
  gap: 20px;
  justify-content: center;
}

.player-gallery__items > .player-gallery__item {
  width: 100%;
}

/* 2枚以上は2列・各486px */
.player-gallery__items:has(> .player-gallery__item:nth-child(2)) {
  width: min(992px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-gallery__items:has(> .player-gallery__item:nth-child(2)) > .player-gallery__item {
  width: 100%;
  max-width: 486px;
}

/* 奇数枚で余る最後の1枚は中央配置 */
.player-gallery__items:has(> .player-gallery__item:nth-child(2)):has(> .player-gallery__item:nth-child(odd):last-child) > .player-gallery__item:last-child {
  grid-column: 1 / -1;
  width: min(486px, 100%);
  justify-self: center;
}

/* 複数枚時は2列・各486pxで並べる */
.player-gallery:has(.player-gallery__thumbs figure) {
  display: grid;
  grid-template-columns: repeat(2, 486px);
  gap: 20px;
  justify-content: center;
  align-items: start;
}

.player-gallery:has(.player-gallery__thumbs figure) .player-gallery__main {
  width: 486px;
  max-width: 486px;
  margin: 0 !important;
}

.player-gallery:has(.player-gallery__thumbs figure) .player-gallery__thumbs {
  margin: 0;
  width: auto;
  display: contents;
}

.player-gallery:has(.player-gallery__thumbs figure) .player-gallery__thumbs > figure {
  width: 486px;
}

.related-players {
  background: var(--bg-dark);
  padding: 55px 0;
}

.related-players__inner {
  width: min(1200px, calc(100% - 60px));
  margin-inline: auto;
}

.related-players__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.related-slider {
  margin-top: 30px;
}

.related-splide {
  width: 100%;
}

.related-splide .splide__slide {
  width: auto;
  min-width: 0;
}

.related-card {
  position: relative;
  display: block;
  aspect-ratio: 280 / 350;
  min-height: 0;
  container-type: inline-size;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background-color: #13213a;
  box-shadow: var(--card-shadow);
}

.related-card__media,
.related-card__media img {
  width: 100%;
  height: 100%;
  display: block;
}

.related-card__media {
  position: absolute;
  inset: 0;
}

.related-card__media img {
  object-fit: contain;
}

.player-detail .lazy {
  aspect-ratio: 700 / 466;
  background-repeat: no-repeat !important;
background-position: top center;
    background-size: cover !important;
  border-radius: 8px;
}

.related-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.1) 12%, rgba(7, 10, 19, 0.28) 54%, rgba(6, 9, 16, 0.92) 100%);
}

.related-card__content {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(10px, 1.95vw, 20px);
  text-align: left;
}

.related-card__name {
  margin: 0;
  font-size: clamp(12px, 1.95vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}

.related-card__sport {
  margin-top: clamp(4px, 0.6vw, 6px);
  display: inline-flex;
  align-items: center;
  min-height: clamp(16px, 1.95vw, 20px);
  padding: 0 clamp(6px, 0.8vw, 8px);
  border-radius: 3px;
  background: var(--accent);
  font-size: clamp(10px, 1.37vw, 14px);
  font-weight: 700;
}

.related-card__catchcopies {
  margin: clamp(4px, 0.6vw, 6px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.related-card__catchcopy {
  margin: 0;
  font-size: clamp(10px, 1.37vw, 14px);
  line-height: 1.4;
}

@supports (container-type: inline-size) {
  .related-card__content {
    padding: clamp(10px, 7.15cqw, 20px);
  }

  .related-card__name {
    font-size: clamp(12px, 7.15cqw, 20px);
  }

  .related-card__sport {
    margin-top: clamp(4px, 2.15cqw, 6px);
    min-height: clamp(16px, 7.15cqw, 20px);
    padding: 0 clamp(6px, 2.9cqw, 8px);
    font-size: clamp(10px, 5cqw, 14px);
  }

  .related-card__catchcopies {
    margin-top: clamp(4px, 2.15cqw, 6px);
  }

  .related-card__catchcopy {
    font-size: clamp(10px, 5cqw, 14px);
  }
}

.related-slider__controls {
margin: 22px 0 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.related-slider__arrow {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .related-slider__arrow:hover {
    opacity: 0.7;
  }
}

.related-slider__arrow img {
  width: 50px;
  height: 50px;
  display: block;
}

.related-slider__arrow[disabled] {
  opacity: 0.3;
  cursor: default;
}

.related-slider__list-link {
  margin: 28px 0 0;
  text-align: center;
}

.related-slider__list-link a {
  display: inline-flex;
  align-items: stretch;
  min-width: 320px;
  min-height: 76px;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.related-slider__list-link a:visited {
  color: var(--text);
}

.related-slider__list-link a .related-slider__list-icon {
  width: 72px;
  border-left: 1px solid rgba(51, 54, 59, 0.25);
  background: rgba(51, 54, 59, 1) url("../img/ico_run_w.svg") center / 24px no-repeat;
}

.related-slider__list-text {
  width: calc(100% - 56px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) and (hover: hover) {
  .related-slider__list-link a:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(255, 102, 35, 0.2);
  }

  .related-slider__list-link a:hover:visited {
    color: var(--accent);
  }

  .related-slider__list-link a:hover .related-slider__list-icon {
    border-left-color: var(--accent);
    background-color: var(--accent);
    background-image: url("../img/ico_sprint_w.svg");
    background-size: 57%;
    transform: translateX(1px);
  }
}

.related-slider__empty {
  margin: 0;
  color: #d8dceb;
  text-align: center;
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(1200px, calc(100% - 20px));
  }

  .detail-container {
    width: min(1000px, calc(100% - 40px));
  }

  .player-hero.detail-container {
    width: 100%;
  }

  .player-head__title {
    padding: 30px 0;
  }

  .player-head__sub {
    font-size: 13px;
  }

  .player-hero__visual {
    width: 100%;
  }

  .player-hero__image {
    border-radius: 6px;
  }

  .player-detail .player-hero__lazy {
    aspect-ratio: 375 / 477 !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .player-detail .player-hero__lazy img {
    aspect-ratio: 375 / 477 !important;
    object-fit: cover;
    object-position: center center;
  }

  .player-hero__lazy.PC {
    display: none;
  }

  .player-hero__lazy.SP {
    display: block;
  }

  .player-hero__info {
    left: 0;
    bottom: 18px;
  }

  .player-hero__name {
    margin: 0 0 7px 0;
    padding: 8px 10px;
    font-size: 40px;
  }

  .player-hero__tags {
    margin-top: 8px;
    gap: 6px;
  }

  .player-hero__tags li {
    margin-left: 0;
    padding: 4px 8px;
    font-size: 16px;
  }

  .player-hero__tags li:first-child,
  .player-hero__tags li:nth-child(2) {
    font-size: 16px;
  }

  .player-hero__tags li:first-child {
    margin-left: 23px;
    margin-bottom: 0;
    font-size: 20px;
  }

  .player-hero__tags li:nth-child(2) {
    margin-left: 13px;
    font-size: 16px;
  }

  .player-hero__tags li:nth-child(3) {
    margin-left: 30px;
    font-size: 16px;
  }

  .player-profile {
    margin-top: 18px;
    margin-bottom: 28px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-profile__lead {
    padding: 30px 20px;
    border-radius: 6px;
  }

  .player-profile__lead p {
    font-size: 14px;
    line-height: 1.85;
  }

  .player-profile__facts {
    border-radius: 6px;
    background: #fff;
  }

  .player-profile__row {
    margin: 0;
    padding: 14px 20px;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .player-profile__row dt {
    font-size: 14px;
    line-height: 1.5;
  }

  .player-profile__row dd {
    font-size: 14px;
    line-height: 1.35;
  }

  .player-video {
    margin-top: 10px;
    margin-bottom: 28px;
  }

  .player-video .mov-inner {
    min-height: 200px;
  }

  .player-video__caption {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.45;
  }

  .player-video__caption time {
    margin-right: 6px;
  }

  .player-gallery {
    margin-top: 14px;
    margin-bottom: 34px;
  }

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

  .player-gallery__thumbs {
    display: grid;
    margin-top: 20px;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-gallery__items {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-gallery__items:has(> .player-gallery__item:nth-child(2)) {
    grid-template-columns: 1fr;
  }

  .player-gallery__items > .player-gallery__item {
    width: 100%;
    justify-self: stretch;
    grid-column: auto;
  }

  .player-gallery__items:has(> .player-gallery__item:nth-child(2)):has(> .player-gallery__item:nth-child(odd):last-child) > .player-gallery__item:last-child {
    width: 100%;
    justify-self: stretch;
    grid-column: auto;
  }

  .player-gallery:has(.player-gallery__thumbs figure) {
    display: block;
  }

  .player-gallery:has(.player-gallery__thumbs figure) .player-gallery__main {
    width: 100%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .player-gallery:has(.player-gallery__thumbs figure) .player-gallery__thumbs {
    display: grid;
    margin-top: 20px;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-gallery:has(.player-gallery__thumbs figure) .player-gallery__thumbs > figure {
    width: 100%;
  }

  .related-players {
    padding: 22px 0 34px;
  }

  .related-players__inner {
    width: min(1200px, calc(100% - 20px));
  }

  .related-players__title {
    font-size: 24px;
  }

  .related-slider {
    margin-top: 14px;
  }

  .related-splide .splide__slide {
    width: 172px;
    min-width: 172px;
  }

  .related-card {
    aspect-ratio: 4 / 5;
    min-height: 0;
    border-radius: 10px;
  }

  .related-card__content {
    padding: 12px 10px 11px;
  }

  .related-card__name {
    font-size: 14px;
  }

  .related-card__sport {
    margin-top: 6px;
    min-height: 16px;
    padding: 0 6px;
    font-size: 10px;
  }

  .related-card__catchcopies {
    margin-top: 6px;
    gap: 2px;
  }

  .related-card__catchcopy {
    font-size: 10px;
    line-height: 1.4;
  }

  .related-slider__controls {
    margin-top: 10px;
    gap: 12px;
  }

  .related-slider__arrow img {
    width: 50px;
    height: 50px;
  }

  .related-slider__list-link {
    margin-top: 14px;
  }

  .related-slider__list-link a {
    width: 260px;
    min-width: 260px;
    aspect-ratio: 320 / 76;
    min-height: 0;
  }

  .related-slider__list-link a .related-slider__list-icon {
    width: 58px;
    background-size: 20px;
  }
}
