@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 {
    background: #f8f8f8;
    font-family: var(--font-main);
    font-size: 1.6rem;
    color: var(--text-main);
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    -webkit-font-smoothing: 
    antialiased;
    line-height: 1.6;
    letter-spacing: 0.08em;
    @media (width < 768px) {
      font-size: 1.4rem;
    }
  }
}

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


.menu-toggle-container {
    position: fixed;
    top: 3rem;
    left: 3rem;
    z-index: 1000;
    width: 5rem;
    height: 5rem;
    padding: 2.6rem 2rem;
  border: 1px solid #000;
    background: linear-gradient(180deg, #BABABA 0%, #FFF 50%, #BABABA 100%);
    cursor: pointer;
    transition: 0.3s;
    .menu-toggle {
      position: relative;
      width: 3rem;
      height: 1rem;
      span {
        position: absolute;
        left: 0;
        display: block;
        width: 100%;
        height: 2px;
        background: #000;
        transition: transform 0.3s ease;

        &:nth-child(1) {
          top: 0;
        }
        &:nth-child(2) {
          top: 1rem;
        }
      }
    }

    p {
      margin-top: 5px;
      font-family: var(--font-en);
      font-size: 1.2rem;
      font-weight: 300;
      text-align: center;
      letter-spacing: 0;
    }

    @media (width < 768px) {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 5rem;
      height: 5rem;
      padding: 0;
      top: 2rem;
      left: auto;
      right: 2rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: all 0.4s ease;
      
      &.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      &.is-open {
        .menu-toggle {
          span {
            &:nth-child(1) {
              top: 0.5rem;
              transform: rotate(45deg);
            }

            &:nth-child(2) {
              top: 0.5rem;
              transform: rotate(-45deg);
            }
          }
        }
      }
    }
}

.bnr-ticket{
  width: 15rem;
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 1000;
  @media (width < 768px) {
    width: 14rem;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;

    &.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
  }
  a{
    transition: .3s;
    &:hover{
      opacity: 0.7;
    }
  }
}

.player-left{
  width: 60vh;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.player-right{
  width: 49vh;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
}



footer{
  background: #000;
  color: #fff;
  text-align: center;
  .footer-inner{
    padding: 8rem 0 4rem;
    .copyright{
      font-size: 1rem;
    }
  }
}


.btn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 34rem;
  margin-top: 3rem;
  margin-inline: auto;
  padding-left: 3.8rem;
  background: #fff;
  border: 3px solid #000;
  color: #000;
  font-weight: bold;
  transition: .3s;
  @media (width < 780px) {
    width: 90%;
    padding-left: 2.4rem;
  }
}

.btn-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 50px;
  color: #000;
  transition: color .3s ease;
  flex-shrink: 0;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    clip-path: polygon(30% -0.2px, 100.2% -0.2px, 100.2% 100.2%, -0.2px 100.2%);
  }

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 0.9rem;
    height: 0.9rem;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-60%, -50%) rotate(45deg);
    pointer-events: none;
  }
}

.btn:hover .btn-icon-wrap {
  color: #949494;
}

.main-container{
  display: flex;
  flex-flow: row-reverse;
  width: 100%;
  position: relative;
  z-index: 2;
  @media (width < 780px) {
    display: block;
  }
  &::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 41.3889%;
    height: 100vh;
    background: url('../img/bg-contents.webp') no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
    @media (width < 780px) {
      width: 100%;
    }
  }
  .sec-nav{
    width: 58.6111%;
    height: 100vh;
    background: url('../img/bg-sec-nav.webp') top center no-repeat;
    background-size: cover;
    position: sticky;
    top: 0;
    z-index: 1;
    @media (width < 780px) {
      width: 0;
      height: 0;
      background: none;
      position: static;
      overflow: visible;
    }
  }
  nav{
  height: 100vh;
  position: relative;
  z-index: 1;
  @media (width < 768px) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 11rem 4rem 4rem;
    margin: 0;
    border: none;
    z-index: 999;
    background: url('../img/bg-sec-nav.webp') no-repeat center center;
    background-size: cover;
    color: #000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    &.is-open {
      transform: translateX(0);
    }
  }
  .nav-logo{
    width: 37rem;
    margin-inline: auto;
  }
  .nav-list{
    width: 37rem;
    margin-inline: auto;
    padding: 4rem;
    li{
      font-size: 2.4rem;
      font-weight: 800;
      position: relative;
      @media (width < 768px) {
        font-size: 2rem;
        color: #000;
      }
      &:last-child{
        border-bottom: none;
      }
      + li{
        margin-top: 1.2rem;
      }
      .nav-label{
        display: flex;
        align-items: center;
        gap: 0.8rem;
      }
      a{
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding-bottom: 1.2rem;
        transition: .3s;
        img{
          width: 19px;
        }
        &:hover{
          opacity: 0.7;
        }
      }
      .nav-label{
        img{
          width: 19px;
        }
      }
    }
    ul{
      padding-top: 5px;
      li{
        padding-left: 0;
        padding-bottom: 0;
        background-image: none;
        font-size: 1.6rem;
        font-weight: bold;
        margin-top: 0;
        a{
          line-height: 1;
        }
        @media (width < 768px) {
          color: #000;
          font-size: 1.4rem;
        }
        &:before{
          display: none;
        }
      }
    }
  }
  }
  .nav-container{
    background: url('../img/bg-nav.webp') no-repeat center center;
    background-size: 70%;
    align-items: center;
    padding-top: 7.4rem;
    @media (width < 768px) {
      background: none;
      width: 0;
      height: 0;
      padding: 0;
      position: static;
    }
  }
  .main-content{
    width: 41.3889%;
    flex: 0 0 41.3889%;
    overflow: clip;
    position: relative;
    z-index: 1;
    @media (width < 780px) {
      width: 100%;
    }
    .inner{
      padding: 6rem 3rem 6.4rem;
      position: relative;
      z-index: 1;
      @media (width < 780px) {
        padding: 5rem 5%;
      }
    }
  }
}

.mv{
  position: relative;
  z-index: 999;
}

.content-title{
  width: 100%;
  margin-bottom: 2.4rem;
  .title{
    margin-left: 1.2rem;
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    color: #000;
    @media (width < 780px) {
        font-size: 2.4rem;
      }
  }
}

body.is-observe-ready {
  .fadein-target {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;

    &.is-fadein {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-observe-ready .fadein-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



.box{
  padding: 4rem 3rem;
  border: 3px solid #000;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
  color: #000;
  + .box{
    margin-top: 3.2rem;
  }
  @media (width < 780px) {
    padding: 3rem 5%;
  }
  &:has(> .box-container){
    padding-bottom: 0;
  }
  .box-container{
    &:nth-child(2){
      background: #f2f2f2;
      margin-inline: -3rem;
      padding-inline: 3rem;
      @media (width < 780px) {
        margin-inline: -5%;
        padding-inline: 5%;
      }
    }
  }
  .box-content{
    .box-desc{
      text-align: left;
      .box-desc-title{
        font-size: 1.8rem;
        font-weight: bold;
        @media (width < 780px) {
          font-size: 1.4rem;
        }
      }
      .desc-text{
        margin-top: 1.4rem;
      }
    }
  }
}

.box-title{
  width: 100%;
  margin-bottom: 2.4rem;
    h3{
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 5px;
      @media (width < 780px) {
        align-items: flex-start;
      }
      img{
        width: 19px;
        height: auto;
        padding-top: 8px;
      }
      margin-bottom: 2.4rem;
      font-size: 2.4rem;
      font-weight: bold;
      color: #000;
      text-align: center;
      line-height: 1.6;
      letter-spacing: 0;
      @media (width < 780px) {
        font-size: 2rem;
      }
    }
  h4{
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 8px;
    border-bottom: 1px solid #000;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
      @media (width < 780px) {
        font-size: 1.6rem;
      }
  }
}


.guest{
  .guest-date{
    font-family: var(--font-en);
    font-size: 3.8rem;
    span{
      margin-left: 6px;
      font-size: 2.4rem;
    }
  }
  .guest-place{
    margin-bottom: 1.2rem;
    padding-bottom: 2rem;
    font-size: 2.4rem;
    font-weight: bold;
    border-bottom: 1px solid #000;
    text-align: center;
    h3{
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
      img{
        width: 19px;
      }
    }
  }
  .guest-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 8px;
    color: #fff;
    .modal-item{
      width: 48%;
      cursor: pointer;
      .name{
        padding: 8px 1rem;
        font-weight: bold;
        background: linear-gradient(0deg, #4A4A4A 0%, #000 100%);
      }
      .guest-image{
        position: relative;
        img{
          width: 100%;
          height: auto;
        }
      }
    }
  }
}

.goods-list{
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  li{
    flex-shrink: 0;
  }
}


.uniform-swiper {
  position: relative;
  margin-top: 3rem;
  padding-bottom: 2rem !important;
  overflow: hidden;

  @media (width < 780px) {
    margin-top: 2rem;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
  }

  .uniform-swiper-pagination {
    bottom: 0.8rem;

    .swiper-pagination-bullet {
      width: 26px;
      height: 3px;
      margin: -1rem 0.5rem !important;
      background: #d9d9d9;
      border: 1px solid #d9d9d9;
      border-radius: 0;
      opacity: 1;
    }

    .swiper-pagination-bullet-active {
      background: #797979;
      border: 1px solid #797979;
    }
  }
}


.uniform, .event, .gourmet, .news{
  background: url('../img/bg-gray.webp') no-repeat center center;
  background-size: cover;
}

.news{
  .news-container{
    padding: 4rem 3rem;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    color: #000;
    position: relative;
    @media (width < 780px) {
      padding: 5rem 5%;
    }
    .news-list{
      max-height: 25rem;
      overflow-x: auto;
      li{
        position: relative;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        padding-right: 3rem;
        border-bottom: 1px solid #000;

        @media (width < 780px) {
          padding-right: 4rem;
        }
        a{
          transition: .3s;
          &:hover{
            opacity: 0.7;
          }
        }
        .date{
          margin-bottom: 5px;
          font-family: var(--font-en);
          font-size: 1.4rem;
          font-weight: bold;
          color: #000;
        }
      }
    }
  }
}

.coming-soon{
  margin: 1rem 0;
  font-family: var(--font-en);
  font-size: 2rem;
  text-align: center;
  @media (width < 780px) {
    font-size: 1.8rem;
  }
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
}