@layer base, components, utilities;

@layer base {
  html {
    scroll-behavior: smooth;
    @media (768px <= width) {
      font-size: min(calc(100vw / 118), 10px);
    }
    @media (width < 768px) {
      font-size: calc(100vw / 37.5);
    }
  }

  body {
    --page-bg-image: url('../img/bg-main.jpg');
    background: #14080a;
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    -webkit-font-smoothing: 
    antialiased;
    line-height: 1.6;
    letter-spacing: 0.08em;
    @media (768px <= width) {
      min-width: 1100px;
    }
    @media (width < 768px) {
      font-size: 1.4rem;
    }
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--page-bg-image) center center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
    transition: background-image 0.5s ease;
  }

  body.bg-main {
    --page-bg-image: url('../img/bg-main.jpg');
    @media (width < 768px) {
      --page-bg-image: url('../img/bg-main-sp.jpg');
    }
  }

  body.bg-warning {
    --page-bg-image: url('../img/bg-warning.jpg');
    @media (width < 768px) {
      --page-bg-image: url('../img/bg-warning-sp.jpg');
    }
  }
}

@layer utilities {
  @media (768px <= width) {
    .sp { display: none !important; }
  }
  @media (width < 768px) {
    .pc { display: none !important; }
  }
}

.nav-container{
  padding: 1rem;
  background: #14080A;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  @media (width < 768px) {
    padding: 0;
    border-radius: 100vmax;
    position: fixed;
    top: 8px;
    right: 8px;
  }
}

.global-nav{
  @media (width < 768px) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  }
  ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    padding: 1rem 20px;
    font-size: 1.8rem;
    @media (width < 768px) {
      flex-direction: column;
      gap: 3rem;
      font-size: 1.6rem;
    }
    li{
      font-family: "Kadwa", serif;
      font-weight: bold;
      text-transform: uppercase;
      a{
        transition: 0.3s;
        &:hover{
          color: var(--color-red);
          text-decoration: underline;
        }
      }
    }
  }
}

.menu-toggle-container {
  position: relative;
  z-index: 101; 
  cursor: pointer;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  .menu-toggle {
    width: 24px;
    height: 16px;
    position: relative;
    span{
      position: absolute;
      width: 100%;
      height: 2px;
      background: #fff;
      left: 0;
      transition: all 0.4s ease;
      &:nth-child(1) { 
        top: 0; 
      }
      &:nth-child(2) { 
        top: 7px; 
      }
      &:nth-child(3) { 
        top: 14px; 
      }
    }
  }
}

.nav-open{
  .menu-toggle{
    span{
      &:nth-child(1){
        transform: translateY(7px) rotate(45deg);
      }
      &:nth-child(2){
        opacity: 0;
      }
      &:nth-child(3){
        transform: translateY(-7px) rotate(-45deg);
      }
    }
  }
  .global-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

footer{
  position: relative;
  z-index: 2;
  .pagetop {
    background: #000;
    width: 100%;
    a {
      display: block;
      width: 100%;
      text-align: center;
      padding: 30px 0 10px;
      &::before { 
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(-45deg);
      }
    }
  }
  small {
    background-color: #fff;
    display: block;
    color: #000;
    font-size: 1.2rem;
    padding: 30px 0;
    text-align: center;
    width: 100%;
    @media (width < 768px) {
      font-size: 1rem;
    }
  }
}

/*----------------------------------
-----------   contents   -----------
----------------------------------*/

.bg-sticky{
  position: relative;
  .bg-sticky-inner{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    pointer-events: none;
    .bg{
      background: no-repeat top right / cover;
      width: 100%;
      height: 100vh;
      position: sticky;
      top: 0;
      z-index: -1;
      pointer-events: none;
      &.bg-history{
        background-image: url('../img/bg-history.jpg');
        @media (width < 768px) {
          background-image: url('../img/bg-history-sp.jpg');
        }
      }
      &.bg-profile{
        background-image: url('../img/bg-profile.gif');
        background-position: 30vw -60px;
        background-color: #000;
        @media (width < 768px) {
          background-position: 50% 0;
        }
      }
      &.bg-profile-img{
        background-image: url('../img/img-profile-hirano.webp');
        background-size: cover;
      }
    }
  }
}

.ctn-photo,.ctn-wallpaper,.ctn-ticket,.ctn-special-event{
  padding: 9rem 3rem 10rem;
  @media (width < 768px) {
    padding: 6rem 5%;
  }
}

.section-title{
  margin-bottom: 4rem;
  font-family: "Kadwa", serif;
  font-size: 6rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  line-height: 60px;
  @media (width < 768px) {
    margin-bottom: 3rem;
    font-size: 4rem;
    line-height: 40px;
  }
  span{
    font-family: "Hiragino Sans", sans-serif;
    font-size: 1.4rem;
  }
}

.btn{
  display: block;
  width: 28rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border: 1px solid #fff;
  text-align: center;
  transition: 0.3s;
  @media (width < 768px) {
    margin-bottom: 1rem;
  }
  &:hover{
    background: #fff;
    color: #000;
  }
}

.ctn-news{
  padding: 6rem 3rem;
  background: #14080A;

  @media (width < 768px) {
    padding: 3rem 3% 5rem;
  }

  .bnr{
    display: block;
    width: max-content;
    margin: 3rem auto 6rem;
    transition: 0.3s;
    @media (width < 768px) {
      margin: 2rem auto 4rem;
      width: 100%;
    }
    &:hover{
      opacity: 0.8;
    }
  }
  .ps__rail-y{
    opacity: 0.7;
  }
  .ps__rail-y:hover,
  .ps__rail-y.ps--clicking,
  .ps__rail-y:focus,
  .ps__rail-y:hover > .ps__thumb-y,
  .ps__rail-y.ps--clicking > .ps__thumb-y,
  .ps__rail-y:focus > .ps__thumb-y{
    background-color: transparent;
    opacity: 1;
  }
  .ps__thumb-y{
    background-color: #bba536;
    opacity: 1;
  }
  .ps__rail-y:hover > .ps__thumb-y,
  .ps__rail-y.ps--clicking > .ps__thumb-y,
  .ps__rail-y:focus > .ps__thumb-y{
    background-color: #bba536;
    opacity: 1;
  }
  .news-box{
    width: 76rem;
    max-height: 16rem;
    margin-inline: auto;
    padding: 2.4rem 4rem;
    position: relative;
    overflow: hidden;
    @media (width < 768px) {
      width: 100%;
      padding: 2rem;
    }
  }
  .news-list{
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem 3rem;
    width: 100%;
    max-height: none;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    @media (width < 768px) {
      width: 100%;
      grid-template-columns: 1fr;
      margin-inline: auto;
    }
    dt{
      font-family: "Geom", sans-serif;
      font-size: 1.8rem;
      font-weight: 800;
    }
    dd{
      color: #c3c3c3;
    }
  }
}

.ctn-ticket{
  background: linear-gradient(180deg, rgba(20, 8, 10, 0.50) 0%, #14080A 100%);
  font-weight: 600;
  text-align: center;
  .game-team{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3.6rem;
    @media (width < 768px) {
      gap: 2rem;
      margin-bottom: 2rem;
    }
    img{
      width: 13rem;
      height: auto;
      @media (width < 768px) {
        width: 9rem;
      }
    }
    .vs{
      font-family: "Kadwa", serif;
      font-size: 3rem;
      font-weight: 700;
      @media (width < 768px) {
        font-size: 2.4rem;
      }
    }
  }
  .game-date{
    margin-bottom: 4rem;
    @media (width < 768px) {
      margin-bottom: 3rem;
    }
    .date{
      display:flex;
      align-items: center;
      justify-content: center;
      font-family: "Geom", sans-serif;
      font-size: 5rem;
      font-weight: 700;
      @media (width < 768px) {
        margin-bottom: 1rem;
        font-size: 3.6rem;
      }
      span{
        display: block;
        margin-left: -5px;
        font-family: "Kadwa", serif;
        font-size: 2.4rem;
        transform: rotate(-90deg);
        @media (width < 768px) {
          font-size: 1.6rem;
          margin-left: -3px;
        }
      }
    }
  }
  .bnr{
    img{
      width: 32rem;
      @media (width < 768px) {
        width: 24rem;
        height: auto;
      }
    }
  }
}

.ctn-profile{
  clip-path: fill-box;
  position: relative;
  z-index: 1;
  .profile-inner{
    padding-bottom: calc(100vh - 6rem);
    position: relative;
    @media (width < 768px) {
      grid-template-columns: 1fr;
      padding-bottom: 0;
    }
  }
  .name-container{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
    color: #000;
    
    .num{
      font-family: "Geom", sans-serif;
      font-size: 12rem;
      font-weight: 900;
      line-height: 1;
      @media (width <= 1290px) {
        font-size: 9rem;
      }
      @media (width < 768px) {
        font-size: 7rem;
      }
    }
    h3{
      font-size: 6rem;
      font-weight: 700;
      line-height: 1.2;
      @media (width <= 1290px) {
        font-size: 4.8rem;
      }
      @media (width < 768px) {
        font-size: 3.6rem;
      }
      span{
        display: block;
        font-family: "Kadwa", serif;
        font-size: 1.6rem;
        font-weight: 700;
        @media (width <= 1290px) {
          font-size: 1.4rem;
        }
        @media (width < 768px) {
          font-size: 1.2rem;
        }
      }
    }
  }
  .profile-text{
    box-sizing: border-box;
    max-width: 100%;
    padding: 26rem 0 14rem 5rem;
    @media (1500px <= width) {
      padding: 26rem 0 14rem 10vw;
    }
    @media (width <= 1290px) {
      padding-left: 2rem;
    }
    @media (width < 768px) {
      width: 100%;
      max-width: 100%;
      background: url('../img/bg-profile.jpg') top left / cover no-repeat;
      box-sizing: border-box;
      padding: 3rem 5% 3rem;
      margin-top: -21rem;
      z-index: 3;
      position: relative;
    }
    .logo-profile{
      max-width: 48rem;
      @media (width <= 1350px) {
        max-width: 45rem;
      }
      @media (width <= 1290px) {
        max-width: 35rem;
      }
      @media (width < 768px) {
        max-width: 100%;
      }
    }
    dl{
      display: grid;
      grid-template-columns: 12rem 1fr;
      gap: 1rem 2rem;
      margin-top: 2rem;
      font-weight: 600;
      color: #000;
      @media (width <= 1290px) {
        grid-template-columns: 10rem 1fr;
      }
      @media (width < 768px) {
        grid-template-columns: 8rem 1fr;
        font-size: 1.2rem;
      }
      dt{
        font-family: "Geom", sans-serif;
        font-size: 1.6rem;
        font-weight: 600;
        text-align: left;
        @media (width <= 1290px) {
          font-size: 1.4rem;
        }
        @media (width < 768px) {
          font-size: 1.2rem;
        }
      }
    }
    @media (768px <= width) {
      order: 1;
    }
  }
  .profile-img{
    padding-top: 4rem;
    overflow: hidden;
    img{
      display: block;
      width: 100%;
      max-width: 100%;
      margin-left: 8.5rem;
    }
  }
}

.ctn-stats{
  position: relative;
  z-index: 3;
  margin-top: calc(-100vh + 6rem);
  padding: 6rem 3rem 9rem;
  background: rgba(20, 8, 10, 0.9);
  @media (width < 768px) {
    margin-top: 0;
    padding: 2rem 5% 6rem;
  }
  .data-wrap{
    @media (width > 768px) {
      max-width: 119rem;
      margin-inline: auto;
      margin-bottom: 7rem;
    }
    @media (width < 768px) {
      margin-bottom: 5rem;
    }
    .text{
      font-family: "Geom", sans-serif;
      font-size: 15rem;
      font-style: italic;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.10);
      line-height: 1;
      transform: translateX(-6rem);
      @media (width < 768px) {
        font-size: 8rem;
        transform: none;
      }
    }
    .data-table{
      width: 100%;
      margin-top: -10rem;
      @media (width < 768px) {
        margin-top: -4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      table{
        width: 100%;
        tr{
          &:nth-last-child(2){
            background: #8d7f2d;
          }
          &:last-of-type{
            background: rgba(178, 23, 11, 0.80);
          }
          th,td{
            font-size: 1.2rem;
            font-weight: 600;
            text-align: center;
            word-break: keep-all;
            padding: 0.6rem;
          }
          th{
            color: #b8a536;
          }
        }
      }
    }
  }
  a{
    display: block;
    width: 24rem;
    padding-bottom: 1rem;
    position: relative;
    margin-inline: auto;
    border-bottom: 1px solid #fff;
    transition: 0.3s;
    &:hover::after{
      right: 3%;
    }
    &:after{
      content: "";
      display: block;
      color: #fff;
      line-height: 1;
      width: 0.6em;
      height: 0.6em;
      box-sizing: border-box;
      transform: translateY(-50%) rotate(45deg);
      position: absolute;
      top: 50%;
      right: 5%;
      border-width: 0.15em 0.15em 0px 0px;
      border-style: solid solid none none;
      border-color: currentcolor;
      border-image: none;
      border-left: 0px;
      border-bottom: 0px;
      transition: 0.4s;
    }
  }
}

.ctn-history{
  padding: 0 3rem;
  position: relative;
  .ctn-inner{
      max-width: 120rem;
      margin-inline: auto;
      padding: 9rem 0;
     @media (width < 768px) {
      padding: 6rem 5% 0;
     }
  }
  .section-title{
    text-align: left;
  }

  .history-wrap{
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 5rem;
    @media (width < 768px) {
      grid-template-columns: 4rem 4fr;
      gap: 3rem;
    }
    + .history-wrap{
      margin-top: 5rem;
      @media (width < 768px) {
        margin-top: 2rem;
      }
    }
    .year-wrap{
      display: flex;
      flex-direction: column;
      align-items: center;
      p{
        font-size: 6rem;
        font-family: "Geom", sans-serif;
        font-weight: 600;
        text-align: center;
        line-height: 1;
        position: relative;
        @media (width < 768px) {
          font-size: 2.6rem;
        }
      }
      span{
        display: block;
        width: 2px;
        height: 100%;
        margin-top: 3rem;
        background: #fff;
      }
    }
    .detail-wrap{
      margin-bottom: 2rem;
      font-weight: 700;
        .date{
          display: block;
          width: max-content;
          margin-bottom: 7px;
          padding: 0 3px;
          background: #fff;
          font-family: "Geom", sans-serif;
          font-size: 1.8rem;
          font-weight: 500;
          color: var(--color-red);
          &:not(:first-child){
            margin-top: 2rem;
          }
          @media (width < 768px) {
            font-size: 1.2rem;
          }
        }

      .img-wrap{
        margin: 1rem 0 2rem;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
         @media (width < 768px) {
          margin-top: 0;
          grid-template-columns: 1fr;
          gap: 1.5rem;
         }
         &:not(:first-child){
          margin-top: 3rem;
        }
        .img-box{
          img{
            width: 100%;
            height: auto;
          }
        }
      }
    }
  }

  .swiper{
    width: 40%;
    position: sticky;
    right: 0;
    bottom: 0;
    margin-left: auto;
    margin-right: 0;
    margin-top: -50%;
    z-index: -1;
    @media (width < 768px) {
      width: 100%;
      margin-top: -100%;
    }
    img{
      display: block;
      width: 100%;
      height: auto;
    }
  }
}

.ctn-special-event{
  .btn{
    margin-bottom: 0;
  }
  .event-list{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    place-content: center;
    gap: 5rem;
    width: min(105rem, 100%);
    margin-inline: auto;
    margin-bottom: 6rem;
    padding-top: 2rem;
    @media (width < 768px) {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding-top: 0;
    }
    .event-title{
      margin: 2rem 0 1.5rem;
      font-size: 2rem;
      font-weight: 600;
      color: #bba536;
    }
    .text{
      line-height: 2;
    }
  }
}

.ctn-goods{
  position: relative;
  scroll-margin-top: 8rem;
  a{
    display: block;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 11rem 0px;
    color: #000;
    transition: 0.3s;
    @media (width < 768px) {
      padding: 3rem 02.4rem 12rem;
    }
    &::before{
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0px;
      left: 0px;
      background: url(../img/bg-goods.webp) center center / cover no-repeat;
      transition: 0.3s;
      @media (width < 768px) {
        background: url(../img/bg-goods-sp.webp) center center / cover no-repeat;
      }
    }
    @media (width > 768px) {
      &:hover::before{
        background: url(../img/bg-goods-hover.webp) center center / cover no-repeat;
        @media (width < 768px) {
          background: url(../img/bg-goods-hover-sp.jpg) center center / cover no-repeat;
        }
      }
      &:hover .arrow{
        opacity: 1;
      }
    }

    .ctn-inner {
      position: relative;
      z-index: 1;
      max-width: 120rem;
      margin-inline: auto;
      h2{
        font-family: "Geom", sans-serif;
        font-size: 6rem;
        font-weight: 700;
        transition: 0.3s;
        @media (width < 768px) {
          font-size: 4.5rem;
        }
      }
    }
    .arrow{
      display: inline-block;
      vertical-align: middle;
      color: #000;
      line-height: 1;
      width: 5em;
      height: 5em;
      box-sizing: border-box;
      transform: translateY(-50%) rotate(45deg);
      position: absolute;
      top: 50%;
      right: 10%;
      border-width: 0.3em 0.3em 0px 0px;
      border-style: solid solid none none;
      border-color: currentcolor;
      border-image: none;
      border-left: 0px;
      border-bottom: 0px;
      opacity: 0.3;
      transition: opacity 0.3s;
      @media (width < 768px) {
        width: 3em;
        height: 3em;
        top: auto;
        bottom: 20px;
        left: 10px;
      }
    }
  }
}



.warning{
  position: relative;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.warning-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.8rem;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  @media (width < 768px) {
    height: 1rem;
  }
  &.warning-line-top {
    top: 0;
  }
  &.warning-line-bottom {
    bottom: 0;
  }
}

.warning-container {
  display: flex;
  gap: 2rem;
  padding: 3.6rem 0 3rem;
  @media (width < 768px) {
    padding: 1.2rem 0 1rem;
  }
  img{
    width: 100%;
    height: auto;
  }
}


.ctn-movie{
  padding: 10rem 3rem 5rem;
  @media (width < 768px) {
    padding: 6rem 5% 2rem;
  }
  .list{
    display: grid;
    place-content: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6rem 4rem;
    width: min(109rem, 100%);
    margin-inline: auto;
    @media (width < 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 3rem 2rem;
    }
    li{
      transition: 0.3s;
      &:hover{
        opacity: 0.8;
      }
      .text-box{
        .date{
          margin-top: 1rem;
          font-family: "Geom", sans-serif;
          font-size: 1.4rem;
          font-weight: 600;
          @media (width < 768px) {
            font-size: 1.1rem;
          }
        }
        .title{
          margin: 1rem 0 1.5rem;
          font-size: 2rem;
          font-weight: 600;
          color: #bba536;
          @media (width < 768px) {
            font-size: 1.6rem;
            margin: 0.5rem 0 1rem;
          }
        }
        .text{
          line-height: 2;
          @media (width < 768px) {
            font-size: 1.2rem;
          }
        }
      }
    }
  }
}

.ctn-photo{
  .list{
    display: grid;
    place-content: center;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    width: min(109rem, 100%);
    margin-inline: auto;
    @media (width < 768px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    li{
      transition: 0.3s;
      &:hover{
        opacity: 0.8;
      }
    }
    .title{
      display: grid;
      place-content: center;
      place-items: center;
      background: var(--color-red);
      font-family: "Kadwa", serif;
      font-size: 2rem;
      font-weight: 600;
      color: #fff;
      text-align: center;
      text-transform: uppercase;
      @media (width < 768px) {
        font-size: 1.4rem;
      }
    }
    img{
      width: 100%;
      height: auto;
    }
  }
}

.ctn-wallpaper{
  background: #9e1a10;
  ul{
    display: grid;
    place-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
    width: min(110rem, 100%);
    margin-inline: auto;
    @media (width < 768px) {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
    li{
      filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
      .dls{
        display: flex;
        text-align: center;
        a{
          display: inline-block;
          vertical-align: top;
          font-size: 16px;
          font-family: "Roboto Condensed", sans-serif;
          letter-spacing: 0.08em;
          color: fff;
          flex: 1 1 0%;
          padding: 10px 0px;
          transition: 0.3s;
          &:first-child{
            background: var(--color-red);
          }
          &:last-child{
            background: #000;
          }
        }
      }
    }
  }
}