:root {
  --text: rgba(51, 54, 59, 1);
  --accent: rgba(255, 102, 35, 1);
  --bg-light: rgba(238, 238, 244, 0.4);
  --bg-dark: rgba(23, 28, 38, 1);
  --card-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #111;
  background:
    url("../img/bg_grid.png") repeat,
    linear-gradient(
      135deg,
      #F2F2F5 10%,
      #F4E19A 53%,
      #F6C37C 100%
    ),
    #F2F2F5;
  background-size: 65px 65px, auto, auto;
}

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

.maintitle {
  padding: 50px 0;
}

#profsheet-title {
  margin: 40px auto 20px auto;
  max-width: 998px;
  height: auto;
  aspect-ratio: 1497 / 245;
  background: url(../../spotlight/img/prof_title.png) no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
}

.filter-area {
  padding-bottom: 42px;
}

.sport-filter {
  position: relative;
  width: min(360px, 100%);
  margin-inline: auto;
}

.sport-filter__button {
  width: 100%;
  height: 55px;
  border: 2px solid #262626;
  border-radius: 10px;
  background: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.sport-filter__arrow {
  width: 13px;
  height: 13px;
  border-right: 2px solid #222;
  border-bottom: 2px solid #222;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}

.sport-filter.is-open .sport-filter__arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.sport-filter__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
  position: absolute;
  inset: calc(100% + 2px) 0 auto;
  z-index: 5;
}

.sport-filter.is-open .sport-filter__list {
  display: block;
}

.sport-filter__item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  cursor: pointer;
}

.sport-filter__item:hover,
.sport-filter__item:focus-visible {
  background: #f6f6f6;
}

.sport-filter__item.is-selected::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: url("../img/ico_check.svg") center / contain no-repeat;
  flex: 0 0 auto;
}

.cards-wrap {
  padding: 60px 0;
}

.profsheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.profsheet-card {
  display: block;
  overflow: hidden;
  cursor: pointer;
}

/* ブラウザ既定のフォーカスリング（iOS Safari では青枠）を消す。
   :focus-visible 用の指定だけだと、:focus にしか反応しないエンジンで
   既定の青枠が出てしまうため、先に既定を落としてから下で出し直す。
   順序が逆になると（同詳細度なので）青枠が復活するので注意。 */
.profsheet-card:focus {
  outline: none;
}

.profsheet-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* タップでモーダルを開いた場合は、閉じたあとにリングを出さない。
   <dialog> を閉じるとブラウザが自動でフォーカスを元のカードへ戻すが、
   WebKit（iOS Safari）はこの復帰フォーカスも :focus-visible と判定するため、
   指で操作しただけなのにカードが枠で囲まれて見える。
   キーボードで開いた場合はフォーカス位置を示す必要があるのでリングを残す。
   付け外しは profsheet.js の restoreFocusAfterClose() が行う。 */
.profsheet-card.is-focus-silent:focus-visible {
  outline: none;
}

.profsheet-card__media {
  position: relative;
  display: block;
  aspect-ratio: 900 / 600;
  overflow: hidden;
  background-position: top center !important;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
}

.profsheet-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.profsheet-card__content {
  padding: 10px 20px 20px;
  text-align: center;
  color: var(--text);
}

.profsheet-card__name {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.profsheet-card__sport {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.profsheet-empty {
  margin: 0;
  padding: 30px 0;
  text-align: center;
  color: #d8dceb;
}

.more-btn {
  text-align: center;
  margin-top: 30px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0.5em;
  border-bottom: 3px solid var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.more-link::after {
  display: inline-block;
  content: "";
  margin: auto 0 -0.2em 0.2em;
  width: 1.2em;
  height: 1.2em;
  background: url(../../img/top/news_more.png) center center no-repeat;
  background-size: cover;
  vertical-align: baseline;
}

@media (hover: hover) {
  .more-link:hover {
    transform: translateY(4px);
    opacity: 0.7;
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .profsheet-card__content {
    padding: clamp(10px, 1.25vw, 14px);
  }

  .profsheet-card__name {
    margin-top: 4px;
    font-size: clamp(13px, 1.6vw, 18px);
    line-height: 1.25;
  }

  .profsheet-card__sport {
    min-height: 18px;
    margin-top: 0;
    padding: 0 6px;
    font-size: clamp(10px, 1.1vw, 12px);
  }

}

@media (max-width: 767.98px) {
  body {
    background-size: 33px 33px, auto, auto;
  }

  .maintitle {
    padding: 30px 0;
  }

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

  #profsheet-title {
  margin: 4.0vw 1% 6.0vw 1%;
  }

  .filter-area {
    padding-bottom: 28px;
  }

  .sport-filter {
    width: 280px;
    max-width: 100%;
  }

  .sport-filter__button,
  .sport-filter__item {
    color: var(--text);
  }

  .sport-filter__button {
    height: 43px;
    font-size: 12px;
  }

  .cards-wrap {
    padding: 28px 0 120px;
  }

  .profsheet-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
  }

  .profsheet-card {
    border-radius: 10px;
  }

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

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

  .profsheet-card__sport {
    min-height: 16px;
    font-size: 10px;
  }

  .more-btn {
    margin-top: 20px;
  }

}
