@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 {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    -webkit-font-smoothing: 
    antialiased;
    line-height: 1.6;
    letter-spacing: 0.08em;
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
    @media (width < 768px) {
      font-size: 1.4rem;
    }
    &:before{
      content: "";
      display: block;
      background-image: url('../img/bg-main.webp');
      background-repeat: no-repeat;
      background-size: cover;
      width: 100%;
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      z-index: -1;
      @media (width < 768px) {
        background-image: url('../img/bg-main-sp.jpg');
        background-size: cover;
      }
    }
  }
}

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


/* =================================
          header & footer
================================= */

.header{
  z-index: 999;
  @media (768px <= width) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin-inline: auto;
    margin-top: -4rem;
    padding: 1rem 2.6rem;
    background: #fff;
    border-radius: 100vmax;
    position: sticky;
    top: 10px;
    .logo{
      width: 15rem;
      height: auto;
    }
  }
  @media (width < 768px) {
    position: fixed;
    top: 0;
    right: 0;
    .logo{
      margin-top: 10rem;
    }
  }
}

.global-nav{
  @media (width < 768px) {
    width: 100%;
    height: 100vh;
    padding: 13rem 0 0 5rem;
    background: rgba(255,255,255,0.9);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    position: fixed;
    top: 0;
    left: 0;
  }
  ul{
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    @media (width < 768px) {
      flex-direction: column;
      gap: 3rem;
    }
    li{
      a{
        color: var(--color-navy);
        font-family: 'Kanit', sans-serif;
        font-size: 2rem;
        font-weight: 700;
        font-style: italic;
        text-transform: uppercase;
        transition: all 0.3s;
        &:hover{
          color: var(--color-gold);
        }
      }
    }
  }
}

.menu-toggle-container {
  position: relative;
  z-index: 101; 
  cursor: pointer;
  width: 46px;
  height: 46px;
  background: var(--color-navy);
  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.3s ease;
      &:nth-child(2) { 
        top: 10px; 
      }
    }
  }
}

.nav-open{
  .menu-toggle{
    span{
      &:nth-child(1){
        transform: translateY(7px) rotate(45deg);
      }

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

footer {
  position: relative;
  z-index: 2;
  .pagetop {
    background: var(--color-gold);
    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: #000121;
    display: block;
    color: #fff;
    font-size: 1.2rem;
    padding: 30px 0;
    text-align: center;
    width: 100%;
    @media (width < 768px) {
      font-size: 1rem;
    }
  }
}


/* =================================
          contents
================================= */

.bg-sticky{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  .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-event{
        background-image: url('../img/bg-event.jpg');
        @media (width < 768px) {
          background-image: url('../img/bg-event-sp.jpg');
        }
      }
      &.bg-goods{
        background-image: url('../img/bg-goods.jpg');
        @media (width < 768px) {
          background-image: url('../img/bg-goods-sp.jpg');
        }
      }
      &.bg-movie{
        background-image: url('../img/bg-movie.jpg');
        @media (width < 768px) {
          background-image: url('../img/bg-movie-sp.jpg');
        }
      }
      &.bg-photo{
        background-image: url('../img/bg-photo.jpg');
        @media (width < 768px) {
          background-image: url('../img/bg-photo-sp.jpg');
        }
      }
    }
  }
}

/* .ctn-goods,
.ctn-movie{
  min-height: 120vh;
  @media (width < 768px) {
    min-height: auto;
  }
} */

.mv{
  background: url('../img/bg-mv.webp') no-repeat center top;
  background-size: cover;
}

/* NEWS */
.ctn-news{
  padding: 12rem 0;
  @media (width < 768px) {
    padding: 6rem 0;
  }
  .news-list{
    display:grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem 3rem;
    width: 76rem;
    max-height: 16rem;
    margin-inline: auto;
    padding: 2.4rem 4rem;
    background: #fff;
    overflow-y: auto;
    @media (width < 768px) {
      width: 90%;
      grid-template-columns: 1fr;
      margin-inline: auto;
      padding: 2.4rem;
    }
    dt{
      display: flex;
      align-items: center;
      gap: 16px;
      font-family: "Kanit", sans-serif;
      font-weight: 600;
      font-style: italic;
      font-size: 1.6rem;
      color: var(--color-navy);
      padding-left: 60px;
      &:has(span){
        padding-left: 0;
      }
      @media (width < 768px) {
        padding-left: 0;
      }
      span{
        display: inline-block;
        width: 50px;
        padding: 0 6px;
        text-align: center;
        background: var(--color-navy);
        border-radius: 100vmax;
        color: #fff;
        font-size: 1.2rem;
        font-weight: 800;
        font-style: italic;
        text-align: center;
      }
    }
    dd{
      font-size: 1.4rem;
      font-weight: 600;
      a{
        color: var(--color-gold);
        transition: all 0.3s;
        &:hover{
          color: var(--color-navy);
        }
      }
    }
  }
}

:root{
  --section-overlap: 100vh;
}


.ctn-event, .ctn-movie, .ctn-goods, .ctn-photo{
  padding: 12rem 3rem ;
  position: relative;
  @media (width < 768px) {
    padding: 8rem 5%;
  }
}


.ctn-event{
  z-index: 10;
}

.ctn-goods{
  z-index: 20;
}

.ctn-movie{
  z-index: 30;
}

.ctn-photo{
  z-index: 40;
}

.ctn-event,
.ctn-goods,
.ctn-movie{
  padding-bottom: calc(12rem + var(--section-overlap));
}

.ctn-goods,
.ctn-movie,
.ctn-photo{
  margin-top: calc(-1 * var(--section-overlap));
}



.bnr-orichike{
  transition: all 0.3s;
  &:hover{
    opacity: 0.8;
  }
  @media (width < 768px) {
    width: 70%;
  }
}


.section-title{
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  font-size: 9.4rem;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(-2deg) translateZ(0);
  @media (width < 768px) {
    font-size: 6rem;
  }
  &.title-blue{
    background: linear-gradient(to bottom, #62627A 50%, #000020 50.1%);
    background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  }
  &.title-gold{
    background: linear-gradient(to bottom, #dbd0a0 50%, #bea947 50.1%);
    background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  }
}

.section-subtitle{
  margin-bottom: 6.4rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  text-align: center;
  @media (width < 768px) {
    margin-top: 5px;
    margin-bottom: 3rem;
    font-size: 1.3rem;
  }
  &.subtitle-blue{
    color: var(--color-navy);
  }
  &.subtitle-gold{
    color: var(--color-gold);
  }
}

/* schedule */
.ctn-schedule{
  padding: 12rem 0;
  background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 61.01%);
  @media (width < 768px) {
    padding: 8rem 0;
  }
  .schedule-list{
    width: 96rem;
    margin-inline: auto;
    margin-bottom: 8rem;
    padding: 4.8rem;
    border: 5px solid var(--color-navy);
    @media (width < 768px) {
      width: 90%;
      padding: 4rem 1.4rem;
    }
    .schedule-item{
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 4rem;
      @media (width < 768px) {
        flex-direction: column;
        gap: 0;
        &:first-of-type{
          padding-bottom: 3rem;
          border-bottom: 3px solid var(--color-navy);
        }
      }
      + .schedule-item{
        margin-top: 5rem;
        @media (width < 768px) {
          margin-top: 3rem;
        }
      }
      .game{
        display: flex;
        align-items: center;
        gap: 4rem;
        border-right: 4px solid var(--color-navy);
        padding-right: 6rem;
        @media (width < 768px) {
          flex-direction: column;
          gap: 2rem;
          padding-right: 0;
          padding-bottom: 3rem;
          margin-bottom: 3rem;
          border-bottom: 3px solid;
          border-right: none;
        }
      }
    }
  }
}

.btn-wrap{
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 3rem;
  @media (width < 768px) {
    flex-direction: column;
    gap: 2rem;
  }
  .btn{
    display: block;
    width: 20rem;
    padding: 1.4rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    transition: 0.3s;
    @media (width < 768px) {
      width: 100%;
    }
    &.btn-l{
      width: 30rem;
    }
    &.btn-blue{
      border: 1px solid #fff;
      background: var(--color-navy);
      color: #fff;
      &:hover{
        background: var(--color-gold); ;
        color: #fff;
      }
    }
    &.btn-white{
      border: 1px solid #fff;
      background: #fff;
      color: var(--color-navy);
      &:hover{
        background: var(--color-navy);
        color: #fff;
      }
    }
  }
}

.list{
  display: grid;
  place-content: center;
  &.col-event{
    width: min(96rem, 100%);
    margin-inline: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.2rem;
  }
  &.col-movie{
    width: min(100rem, 100%);
    margin-inline: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }
  &.col-goods{
    width: min(75rem, 100%);
    margin-inline: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.2rem;
  }
  &.col-photo{
    width: min(120rem, 100%);
    margin-inline: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    li{
      overflow: hidden;
      img{
        transform: scale(1);
        transition: all 0.5s;
        &:hover{
          transform: scale(1.1);
        }
      }
    }
    .title{
      display: grid;
      place-content: center;
      place-items: center;
      background: url('../img/photo/bg-date.jpg') no-repeat center center;
      background-size: cover;
      font-family: "Kanit", sans-serif;
      font-size: 2.6rem;
      font-weight: 600;
      font-style: italic;
      color: #fff;
      text-align: center;
    }
  }
  li{
    a{
      .thumbnail{
        overflow: hidden;
        img{
          width: 100%;
          transform: scale(1);
          transition: all 0.5s;
        }
      }
      &:hover{
        img{
          transform: scale(1.1);
        }
      }
    }

    .text-box{
      background: var(--color-navy);
      color: #fff;
      padding: 2.5rem 2.3rem;
      font-size: 1.4rem;
      .title{
        margin-bottom: 1.6rem;
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--color-gold);
      }
      .price{
        margin-top: 1.6rem;
        font-family: "Inter", sans-serif;
        font-size: 2.8rem;
        font-weight: 800;
        span{
          font-size: 1.4rem;
          font-weight: 400;
        }
      }
      .date{
        margin-bottom: 1rem;
        font-family: "Kanit", sans-serif;
        font-size: 1.6rem;
        font-weight: 600;
        font-style: italic;
        color: var(--color-gold);
      }
      .movie-title{
        margin-bottom: 1rem;
        font-size: 1.6rem;
        font-weight: 600;
        @media (width < 768px) {
          font-size: 1.4rem;
        }
      }
    }
  }

  @media (width < 768px) {
    &.col-event,
    &.col-movie,
    &.col-goods {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    &.col-photo {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}


.coming-soon {
  margin: 13rem 0;
  text-align: center;
  font-family: "Kanit", sans-serif;
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-navy);
  @media (width < 768px) {
    margin: 8rem 0 0;
    font-size: 4rem;
  }
}

