@charset "utf-8";

/* ------------------------------
　　　　  　選手スタッフ　ページ          
   ------------------------------ */
.player img {
  width: 200px;
  display: block;
}

.player {
  display: flex;
  background-color: #036938;
  color: #fff;
  padding: 10px;
}

.profile {
  padding: 15px;
}

.profile big {
  font-size: 40px;
  margin: 0 25px 0 5px;
}

.profile p:first-of-type {
  font-size: 18px;
}

.profile p:nth-of-type(2) {
  font-size: 26px;
  margin-top: 10px;
}

.profile p:nth-of-type(3) {
  margin-top: 13px;
}

.profile p:nth-of-type(4) {
  font-size: small;
}

.player-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(auto, 300px);
  gap: 5px;
  margin-bottom: 40px;
}

/* ------------------------------
　　　　      モーダル          
   ------------------------------ */
/* .player-list .player:hover {
  opacity: 0.7;
  cursor: pointer;
} */

.modal-player-list {
  padding: 0 20px;
  max-width: 800px;
  position: relative;
  display: flex;
}

.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #00000090;
  visibility: hidden;
  opacity: 0;
  z-index: 100;
  transition: all 0.3s;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
  transition: all 0.3s;
}

.modal-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000090;
}

.modal-player-list .player {
  display: none;
  background-color: #333;
  padding: 10px;
}

.player.active {
  display: block;
}

.modal-opened {
  overflow-y: hidden;
  /*背景を固定*/
}

.num-of-player {
  color: #fff;
  text-align: center;
  position: absolute;
  bottom: -30px;
  right: 45%;
}

/* モーダル内レイアウト */
/* .modal-player-list .player {
  /* display block済み 
} */
.modal-player-list .player .box-top {
  display: flex;
  width: 100%;
}

.modal-player-list .player .box-top img {
  width: 300px;
}

.modal-player-list .player .box-top .profile img {
  height: 50px;
  width: 50px;
  margin-top: 10px;
}

.modal-player-list .player .box-top .profile img:hover {
  scale: 1.1;
}

.modal-player-list .player .box-bottom {
  display: flex;
  flex-direction: row;
}

.modal-player-list .player .box-bottom img {
  margin-top: 10px;
  margin-right: 10px;
}

.modal-player-list .player .box-bottom img:last-of-type {
  margin-right: 0px;
}

/* 　モーダル　操作ボタン　*/
#closeBtn {
  position: absolute;
  width: 50px;
  height: 50px;
  top: -16%;
  right: -5%;
  background-color: transparent;
  /* border-radius: 5px; */
  /* border: 1px solid #999; */
  cursor: pointer;
  transition: .3s;
  z-index: 1;
}

#closeBtn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 4px;
  background-color: #ddd;
  transform: translate(-50%, -50%) rotate(45deg);
}

#closeBtn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 4px;
  background-color: #ddd;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.closeText {
  position: absolute;
  color: #fff;
  top: 100%;
  right: 0%;
}

/* #prevBtn,
#nextBtn {
  position: absolute;
  color: transparent;
  width: 50px;
  height: 50px;
  transform: translateY(-50px);
  background-color: transparent;
  transition: .3s;
} */
#prevBtn {
  background: url(../image/icons8-arrow-lt-regular-100fff.png) no-repeat;
  background-size: cover;
  background-position: center;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 50;
  opacity: 0;
  /* border-radius: 5px; */
}

#nextBtn {
  background: url(../image/icons8-arrow-gt-regular-100fff.png) no-repeat;
  background-size: cover;
  background-position: center;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 50;
  opacity: 0;
}

#prevBtn:hover,
#nextBtn:hover {
  cursor: pointer;
  /* opacity: .3; */
  transition: 0.3s;
  background-color: #ffffff40;
  border-radius: 5px;
}

#prevBtn {
  left: -50px;
}

#nextBtn {
  right: -50px;
}

#prevBtn.active,
#nextBtn.active {
  opacity: 1;
}


/* --------------------------------------------------- */
/* タブレット */
@media (max-width: 960px) {

  .player-list .player {
    align-items: center;
  }

  .player-list .player img {
    width: 50%;
  }

  /* モーダル */

  .modal-player-list {
    padding: 0px;
    max-width: 520px;
  }

  .modal-player-list .player .box-top img {
    width: 250px;
    margin: auto;
  }

  .modal-player-list .player .box-top .profile {
    padding: 10px 10px 0 10px;
  }

  .modal-player-list .player .box-bottom {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .modal-player-list .player .box-bottom img {
    margin-top: 10px;
    width: 48%;
  }

  #closeBtn {
    top: -16%;
    right: -5%;
  }

}

/* --------------------------------------------------- */
/* スマホ */
@media (max-width: 520px) {

  .player-list {
    grid-template-columns: 1fr;
  }

  .player {
    padding: 20px 5%;
}

  .player-list .player img {
    width: 25%;
  }

  /* モーダル */
  .modal-player-list {
    max-width: 300px;
  }

  .modal-player-list .player .box-top {
    flex-direction: column;
  }

  .modal-player-list .player .box-top .profile {
    padding: 0;
  }

  .modal-player-list .player .box-top img {
    display: none;
    /* width: 150px;
    margin: auto; */
  }

  .profile {
    padding: 0 0 0 20px;
  }

  .profile big {
    font-size: 30px;
    margin: 0 30px 0 5px;
  }

  .profile p:first-of-type {
    font-size: 17px;
    margin-top: 0;
  }

  .profile p:nth-of-type(2) {
    font-size: 20px;
    margin-top: 5px;
  }

  .profile p:nth-of-type(3) {
    font-size: 13px;
    margin-top: 5px;
  }

  .profile p:nth-of-type(4) {
    font-size: small;
  }

  .modal-player-list .player .box-top .profile img {
    height: 40px;
    width: 40px;
    margin-top: 5px;
  }

  .modal-player-list .player .box-bottom img {
    margin-top: 5px;
    width: 100%;
  }

  .modal-player-list .player .box-bottom img:nth-of-type(3) {
    display: none;
  }

  #closeBtn {
    top: -10%;
    right: -5%;
  }

  /* #prevBtn,
  #nextBtn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
  } */
  #prevBtn {
    left: -30px;
    width: 30px;
  }

  #nextBtn {
    right: -30px;
    width: 30px;
  }

}


/* 備忘録 */

/* ボタン端のつや? */
/* #prevBtn.active::after,
#nextBtn.active::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

/* 矢印画像使った方法 */
/* 
#prevBtn::after {
  content: url(../image/icons8-arrow-lt-regular-100fff.png);
  width: 10px;
  height: 10px;
  right: -20px;
  /* position: absolute;
  top: 30%;
  right: -20px;
  width: 20px;
  height: 20px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg); relative設定できない
} */
/* 
#nextBtn::after {
  content: url(../image/icons8-arrow-gt-regular-100fff.png);
  width: 10px;
  height: 10px;
  right: -20px;
  /* position: absolute;
  top: 30%;
  right: -20px;
  width: 20px;
  height: 20px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg); relative設定できない 
} */