@charset "UTF-8";

html {
  font-size: 62.5%;
}

body {
  background: #140d0c;
  color: #efefef;
  text-align: center;
  width: 100%;
}

section {
  margin: 5rem auto 5rem;
}

h2 {
  font-size: 4rem;
  margin-bottom: 5rem;
  position: relative;
  letter-spacing: 0.1em;
}

h2::after {
  content: "";
  display: inline-block;
  position: absolute;
  height: 1px;
  width: 4rem;
  background-color: #efefef;
  bottom: 0px;
  left: calc(50% - 2rem)
}

table {
  text-align: center;
  margin: 0 auto;
  border-collapse: collapse;
}

th {
  font-size: 2.4rem;
}

td {
  font-size: 1.6rem;
  padding: 1rem;
}

/*---------------------------header*/
header h1{
  font-size: 6.4rem;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 1px #000;
}

header p {
  font-size: 1.6rem;
}

header .header-image img{
  width: 25%;
  height: 12rem;
}


header .header-text{
  width: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  background: radial-gradient( rgba(255,255,255,1) 10%, rgba(0,0,0,0) 50%);
  padding: 0 3rem 1rem 3rem;
}


/*---------------------------team*/
.team-table {
  width: 60%;
}

.team-table span {
  font-size: 3.2rem;
}

.team-table td {
  width: calc(100% / 6);
  padding: 1rem 0.3rem;
}

.team-table td.center {
  font-size: 1.4rem;
}

.team-table td.core {
  border-left: 1px solid #efefef;
  letter-spacing: 0.1em;
}

.team-table td.next {
  border-right: 1px solid #efefef;
  letter-spacing: 0.1em;
}

.team-table td {
  border-bottom: 1px solid #efefef;
}

.team-table th {
  height: 2em;
  font-size: 2.4rem;
}

.team-table td.big {
  font-size: 1.8rem;
  font-weight: bold;
}

.team-table td.small {
  font-size: 1.4rem;
}

/*---------------------------schedule*/
#schedule .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#schedule table {
  margin-bottom: 5rem;
  width: 30%;
}

#schedule th {
  background: url(images/gray.png);
}

#schedule table td {
  font-size: 2.4rem;
}

#schedule table td.dc,
#schedule table td.pd,
#schedule table td.rr,
#schedule table td.st {
  font-weight: bold;
  letter-spacing: 0.2em;
}

#schedule .schedule-table .side td {
  padding: 0;
  font-size: 1.6rem;
}

#schedule .schedule-table td.center {
  font-size: 1.6rem;
  width: 28%;
}

#schedule .schedule-table td.center button {
  font-size: 1.2rem;
  width: 100%;
  padding: 0.2rem 0.4rem;
  background: #efefef;
  color: #333333;
  border: 1px solid #333333;
  cursor: pointer;
}

#schedule .schedule-table td.center button:hover {
  background: #333333;
  border: 1px solid #efefef;
  color: #efefef;
}

* {
    box-sizing: border-box;
}

.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow-y: auto;
  transition: all 0.4s;
  z-index: 10;
}
.modal__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
}
.modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal__cont {
  position: relative;
  display: flex;
  justify-content: space-around;
}

.modal__cont img {
  width: 40%;
}

.modal__close {
  background-color: rgba(255, 255, 255, 0);
  cursor: pointer;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}

.modal.is-show {
  opacity: 1;
  visibility: visible;
}


/*---------------------------result*/

#result-table {
  width: 70%;
}

#result-table th {
  padding: 1rem;
}

#result-table .team-name {
  width: 15%;
  letter-spacing: 0.2em;
  font-size: 3.2rem;
}

#result tr:nth-child(2n+1) {
  border-bottom: 1px solid #efefef;
}

#result p {
  display: block;
  width: 70%;
  margin: 1rem auto 0;
  text-align: right;
}

/*---------------------------background*/
.dc {
  background-image: url(images/red.png);
  background-size: cover;
}

.pd {
  background-image: url(images/orange.png);
  background-size: cover;
}

.rr {
  background-image: url(images/green.png);
  background-size: cover;
}

.st {
  background-image: url(images/blue.png);
  background-size: cover;
}

/*---------------------------footer*/
footer {
  padding: 5rem 0 3rem;
}

/*---------------------------media*/
@media screen and (max-width: 1024px) {
  .team-table {
    width: 80%;
  }
  .team-table td.small {
    font-size: 1.2rem;
  }

  #schedule table {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .team-table {
    width: 95%;
  }


  #schedule table {
    width: 45%;
  }

  #result p {
    display: inline-block;
    margin: 1rem 1rem 0;
    text-align: right;
    right: 0;
    position: absolute;
  }


}

@media screen and (max-width: 426px) {
  header h1 {
    font-size: 2.4rem;
    margin-top: 1rem;
  }

  header .header-image img{
    width: 25%;
    height: 8rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .team-table span {
    font-size: 2.4rem;
  }

  .team-table th {
    height: 2em;
    font-size: 1.6rem;
  }

  .team-table td.big {
  font-size: 1.4rem;
}

  .team-table td {
    font-size: 1.2rem;
  }

  .team-table td.center {
    width: 10%;
  }

  #schedule table {
    width: 80%;
  }

  .modal__cont {
    position: relative;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
  }

  .modal__cont img {
    width: 80%;
    gap: 2rem;
  }

  #result {
    overflow-x: scroll;
  }
}



