@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 {
    position: relative;
    /* isolation: isolate; */
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-main);
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    font-size: 1.6rem;
    @media (width < 768px) {
      font-size: 1.4rem;
    }
    /* &::after{
      content: "";
      position: fixed;
      top: 150px;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('../img/bg-fixed.jpg') no-repeat top left / cover;
      pointer-events: none;
      @media (width < 768px) {
        top: 0;
      }
    } */
  }
}
main {
  position: relative;
}
.contents-wrap {
  position: relative;
  .fixed-background{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    .bg{
      position: sticky;
      top: 0;
      z-index: -2;
      width: 100%;
      height: 100vh;
      background: url('../img/bg-fixed.jpg') no-repeat top left / cover;
    }
  }
}

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



.mv{
  .mv-inner{
    width: 1360px;
    max-width: 95%;
    margin-inline:auto;
    padding: 3.2rem 0 0;
    position: relative;
    @media (width < 768px) {
      padding: 2.4rem 0 0;
    }
  }
  h1{
    width: 68vw;
    img{
      opacity: 0.7;
      animation: logo-animation 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
    }
    @media (1440px <= width) {
      width: 95rem;
    }
    @media (width < 768px) {
      width: 100%;
      margin-bottom: 18px;
    }
  }
   .mv-text{
    width: 43rem;
    position: absolute;
    margin-top: 3.7rem;
    @media (1440px > width) {
      width: 40rem;
    }
   }
  .swiper-uniform{
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
    @media (width > 768px) {
      -webkit-clip-path: inset(100% 0 0 0);
      clip-path: inset(100% 0 0 0);
      opacity: 0.7;
      animation: logo-animation 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
      margin-top: -5rem;
    }
  }
  .swiper-mv{
    position: relative;
        &:before{
          content: "";
          position: absolute;
          inset: 0;
          width: 33%;
          background: url('../img/logo-mv-text.webp') no-repeat top left / contain;
          position: absolute;
          top: 88px;
          left: 0;
          @media (width < 768px) {
            background: url('../img/logo-mv-text-sp.svg') no-repeat top left / 100%;
            width: 100%;
            top: 0;
          }
        }
    .swiper-slide{
      display: flex;
      gap: 8px;
      @media (width < 768px) {
        margin-top: 7rem;
      }
      .slide-image{
        width: 33.333%;
        &:nth-of-type(2){
          padding-top: 80px;
          @media (width < 768px) {
            padding-top: 32px;
          }
        }
        &:nth-of-type(1){
          padding-top: 160px;
          @media (width < 768px) {
            padding-top: 64px;
          }
        }
        img{
          width: 100%;
          height: auto;
        }
      }
    }
  }
}

@keyframes logo-animation {
  from {
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    opacity: 0.7;
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv h1 img {
    animation: none;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  .mv .swiper-uniform {
    animation: none;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  .uniform-inner > .uniform-top-logo img,
  .uniform-detail .uniform-image .swiper-uniform,
  .item-caps-logo img,
  .item-apparel-logo img,
  .item-others-logo img {
    animation: none;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}


.uniform-inner{
  width: 1360px;
  max-width: 95%;
  margin-inline: auto;
  padding: 0 0 8rem;
  @media (width < 768px) {
    padding: 0 0 4rem;
  }
  > .uniform-top-logo{
    width: 42rem;
    max-width: 61%;
    margin-left: auto;
    margin-bottom: 1.6rem;
    @media (width < 768px) {
      margin-bottom: 0;
    }
    img{
      -webkit-clip-path: inset(100% 0 0 0);
      clip-path: inset(100% 0 0 0);
      opacity: 0.7;
    }
    &.is-active img{
      animation: logo-animation 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    }
  }
  .uniform-flex{
    display: flex;
    margin-bottom: 8rem;
    @media (width < 768px) {
      flex-direction: column;
      gap: 0;
      margin-bottom: 4rem;
    }
    .image{
      width: 50%;
      @media (width < 768px) {
        width: 100%;
      }
      img{
        width: 100%;
        height: auto;
      }
    }
  }
  .uniform-detail{
    display: flex;
    gap: 8rem;
    @media (width < 768px) {
      flex-direction: column;
      gap: 4rem;
    }
    .uniform-image{
      width: 50%;
      max-width: 100%;
      @media (width < 768px) {
        width: 100%;
      }
      .swiper-uniform{
        -webkit-clip-path: inset(0 0 0 0);
        clip-path: inset(0 0 0 0);
        opacity: 1;
        @media (width > 768px) {
          -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0);
          opacity: 0.7;
        }
      }
      img{
        width: 100%;
        height: auto;
      }
      &.is-active .swiper-uniform{
        @media (width > 768px) {
          animation: logo-animation 2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
        }
      }
    }
    .uniform-desc{
      width: calc(100% - 50% - 8rem);
      border-top: 1px solid;
      @media (width < 768px) {
        width: 100%;
      }
      .line-up{
        margin-top: 8px;
        margin-bottom: 8rem;
        font-family: var(--font-en);
        font-size: 1.2rem;
        font-weight: bold;
        text-align: right;
        text-transform: uppercase;
        letter-spacing: 0;
        @media (width < 768px) {
          margin-bottom: 4rem;
        }
      }
      .detail{
        font-size: 1.6rem;
        font-family: var(--font-en);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.01em;
      }
      .uniform-logo{
        width: 42rem;
        max-width: 73%;
        img{
          -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0);
          opacity: 0.7;
        }
        &.is-active img{
          animation: logo-animation 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
        }
      }
      .uniform-title{
        margin-top: 2.4rem;
        margin-bottom: 2.4rem;
        font-size: 2.4rem;
        font-weight: 700;
          @media (width < 768px) {
            margin-top: 1rem;
          }
      }
      .price{
        margin-bottom: 5.6rem;
        font-family: var(--font-en);
        font-size: 3.2rem;
        font-weight: 700;
        letter-spacing: 0;
        @media (width < 768px) {
          margin-bottom: 3.2rem;
        }
        span{
          margin-left: 6px;
          font-family: 'Hiragino Sans', sans-serif;
          font-size: 1.2rem;
          font-weight: bold;
        }
      }
      .btn-primary{
        display: flex;
        align-items: center;
        gap: 1.6rem;
        width: max-content;
        padding: 1.5rem 3.2rem;
        border: 1px solid #B0A974;
        border-radius: 100vmax;
        font-size: 1.4rem;
        font-weight: bold;
        color: #fcfcfc;
        position: relative;
        overflow: hidden;
        z-index: 1;
        &:before, &:after{
          content: "";
          position: absolute;
          inset: 0 -20%;
          transition: opacity 0.4s ease;

        }
        &::after{
          z-index: -1;
          background: linear-gradient(90deg,  #C1BC9A 0%, #8A8241 100%);
          opacity: 1;
        }
        &::before{
          z-index: -2;
          background: linear-gradient(90deg, #8A8241 0%, #C1BC9A 100%);
          opacity: 0.6;
        }
        img{
          transition: transform .4s ease;
        }
        &:hover{
          &::before{
            opacity: 1;
          }
          &::after{
            opacity: 0;
          }
          img{
            transform: translateX(.4rem);
          }
        }
      }
      .btn-secondary-container{
        display: flex;
        margin-top: 3.2rem;
        margin-bottom: 8rem;
        @media (width < 768px) {
          flex-direction: column;
          gap: 0;
          margin-bottom: 4rem;
        }
        .btn-secondary{
          display: flex;
          justify-content: space-between;
          align-items: center;
          width: 50%;
          padding: 1.7rem 1.6rem 1.7rem 2.4rem;
          background: rgba(0,1,33,0.4);
          border-radius: 0;
          border-top: 1px solid #fcfcfc;
          border-bottom: 1px solid #fcfcfc;
          font-size: 1.4rem;
          font-weight: bold;
          color: #fcfcfc;
          @media (width < 768px) {
            width: 83%;
            gap: 2rem;
          }
          img{
            transition: transform .3s ease;
          }
          &:hover img{
            transform: translateX(.4rem);
          }
          &:last-of-type{
            border-left: 1px solid #fcfcfc;
            @media (width < 768px) {
              border-top: none;
              border-left: none;
            }
          }
          img{
            width: 2.4rem;
            height: auto;
          }
        }
      }
    }
  }
}

.bg-top,
.uniform-visitor,
.uniform-third {
  position: relative;
}

.bg-top::before,
.uniform-visitor::before,
.uniform-third::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
  opacity: 0.99;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.bg-top > *, 
.uniform-visitor > *, 
.uniform-third > * {
  position: relative;
  z-index: 1;
}

.bg-top{
  &::before{
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #D6D6D6 100%);
    /* background: linear-gradient(90deg, #FFFFFF 0%, #D6D6D6 100%); */
  }
}

.uniform-visitor{
  color: #fcfcfc;
  &::before{
    background: linear-gradient(90deg, #393A64 0%, #000121 100%);
  }
  .uniform-top-logo{
    width: 53rem;
    max-width: 85%;
    margin-right: auto;
    margin-left: 0;
  }
  .uniform-logo{
    width: 52rem !important;

    @media (width < 768px) {
      max-width: 85% !important;
    }
  }
  .uniform-detail{
    @media (width > 768px) {
      flex-direction: row-reverse;
    }
  }
}

.uniform-third{
  color: #B0A974;
  &::before{
    background: linear-gradient(90deg, #316491 0%, #153856 100%);
  }
  .uniform-top-logo{
    width: 45rem;
    max-width: 70%;
  }
  .uniform-logo{
    width: 45rem !important;
    @media (width < 768px) {
      max-width: 76% !important;
    }
  }
}

/*------- swiper -------*/
.swiper-mv, .swiper-detail, .swiper-uniform{
  overflow: hidden;
}

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


.notice-container {
  position: relative;
  color: #fff;
  &::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #C1BC9A 0%, #8A8241 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1;
    opacity: 0.99;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  > *{
    position: relative;
    z-index: 1;
  }

  .notice-inner{
    display: grid;
    grid-template-columns: auto auto;
    place-items: center;
    gap: 8rem;
    max-width: 866px;
    margin-inline: auto;
    padding: 8rem 0;
    @media (width < 768px) {
      width: 100%;
      grid-template-columns: 1fr;
      place-items: center;
      gap: 3.2rem;
      padding: 4rem 5%;
    }
    .notice-title{
      width: max-content;
      margin-bottom: 2.4rem;
      padding-bottom: 8px;
      border-bottom: 1px solid #fcfcfc;
      font-size: 2.4rem;
      font-weight: bold;
      text-shadow: 0 0 4px #6f682e;
      @media (width < 768px) {
        font-size: 2rem;
      }
    }
    ul{
      li{
        font-size: 1.4rem;
        font-weight: bold;
        text-shadow: 0 0 4px #6f682e;
      }
    }
    .btn{
      display: flex;
      align-items: center;
      gap: 1.6rem;
      width: max-content;
      padding: 1.5rem 3.2rem;
      border: 1px solid #000;
      border-radius: 100vmax;
      font-size: 1.4rem;
      font-weight: bold;
      color: #000;
      position: relative;
      overflow: hidden;
      z-index: 1;
      &:before, &:after{
        content: "";
        position: absolute;
        inset: 0 -20%;
        transition: opacity 0.4s ease;
      }
      &::before{
        z-index: -1;
        background: linear-gradient(90deg, #FFFFFF 0%, #D6D6D6 100%);
        opacity: 1;
      }
      &::after{
        z-index: -2;
        background: linear-gradient(90deg, #d6d6d6 0%, #FFFFFF 100%);
        opacity: 0.7;
      }
      @media (width < 768px) {
        justify-self: start;
        margin-left: 0;
        margin-right: auto;
      }
      img{
        transition: transform .3s ease;
      }
      &:hover {
        opacity: 1;
        &::before{
          opacity: 0;
        }
        &::after{
          opacity: 1;
        }
        img{
          transform: translateX(.4rem);  
        }
      }
    }
  }
}

@supports (-webkit-touch-callout: none) {
  .contents-wrap {
    isolation: auto;
    background: transparent; 
  }

  body {
    &::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -2; 
      background: url('../img/bg-fixed.jpg') no-repeat center / cover;
      display: block;
    }
  }
}


/*------- item list -------*/

.item-caps, .item-others{
  background: linear-gradient(90deg, #F5F5F5 0%, #D1D1D1 100%);
}

.item-apparel{
  background: linear-gradient(90deg, #393A64 0%, #000121 100%);
  color: #fff;
  .item-list-title{
    color: #fff;
  }
}

.item-list-inner{
  width: 128rem;
  max-width: 90%;
  margin-inline: auto;
  padding: 8rem 0;
  @media (width < 768px) {
    padding: 4rem 0;  
  }
}

.item-caps-logo{
  width: 35.5rem;
  height: auto;
  max-width: 67%;
  img{
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    opacity: 0.7;
  }
  &.is-active img{
    animation: logo-animation 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  }
}

.item-apparel-logo{
  width: 62rem;
  height: auto;
  max-width: 93%;
  img{
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    opacity: 0.7;
  }
  &.is-active img{
    animation: logo-animation 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  }
}

.item-others-logo{
  width: 54rem;
  height: auto;
  max-width: 87%;
  img{
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    opacity: 0.7;
  }
  &.is-active img{
    animation: logo-animation 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  }
}

.item-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 3rem;
  @media (width < 768px) {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  li{
    @media (width > 768px) {
      padding-top: calc(var(--item-index, 0) * 32px);
    }
    a{
      transition: .3s ease;
      &:hover{
        opacity: 0.7;
      }
      .item-desc{
        margin-top: 2.4rem;
        @media (width < 768px) {
          margin-top: 1.6rem;
        }
        .price{
          margin-top: 2.4rem;
          font-family: var(--font-en);
          font-weight: bold;
          letter-spacing: 0.01em;
          @media (width < 768px) {
            margin-top: 2rem;
          }
          span{
            font-family: 'Hiragino Sans', sans-serif;
            font-size: 1.2rem;
          }
        }
      }
    }

  }
}