@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-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 (width < 768px) {
      font-size: 1.4rem;
    }
  }
}


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

.breadcrumb{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 2rem 0;
  background: #14080A;
  @media (width < 768px) {
    display: block;
  }
  li{
    @media (width < 768px) {
      border-top: 1px solid #fff;
      &:last-child{
        border-bottom: 1px solid #fff;
      }
    }
    a{
      position: relative;
      color: #fff;
      text-decoration: none;
      font-size: 1.8rem;
      font-weight: 700;
      transition: all 0.3s ease;
      @media (768px <= width) {
        &:hover{
          color: #d0271b;
          text-decoration: underline;
        }
      }
      @media (width < 768px) {
        display: block;
        width: 100%;
        padding: 1rem 4rem 1rem 1.5rem;
        text-align: center;
        &::after {
          content: "";
          position: absolute;
          right: 1.5rem;
          top: 50%;
          width: 0.8rem;
          height: 0.8rem;
          border-right: 0.2rem solid #fff;
          border-bottom: 0.2rem solid #fff;
          transform: translateY(-60%) rotate(45deg);
        }
      }
    }
  }
}

.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;
  }
}

.sale-date{
  width: 100%;
  margin-inline: auto;
  padding: 6rem 3rem;
  background: #14080A;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  @media (width < 768px) {
    width: 100%;
    padding: 4rem 5%;
    font-size: 1.2rem;
  }
}


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

.ctn{
  padding-top: 15rem ;
  @media (width < 768px) {
    padding-top: 8rem;
    padding-inline: 5%;
  }
  .ctn-title{
    margin-bottom: 9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    @media (width < 768px) {
      margin-bottom: 4rem;
    }
    h2{
      margin-bottom: 3rem;
      font-size: 3.6rem;
      color: #fff;
        @media (width < 768px) {
          font-size: 3rem;
        }
      span{
        font-size: 2.2rem;
        @media (width < 768px) {
          font-size: 1.6rem;
        }
      }
    }
  }
  .ctn-subtitle{
    font-size: 1.6rem;
    text-align: center;
    color: #fff;
    @media (width < 768px) {
      font-size: 1.2rem !important;
    }
    + .ctn-subtitle{
      margin-top: 1.5rem;
    }
  }
}

.ctn-anniversary,
.ctn-online{
  padding-bottom: calc(10rem + var(--section-overlap));
}

.ctn-online,
.ctn-lottery{
  margin-top: calc(-1 * var(--section-overlap));
}

.ctn-anniversary{
  padding-top:5rem;
  z-index: 10;
}

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

.ctn-lottery{
  padding-bottom: 10rem;
  z-index: 30;
}


.bg-sticky{
  min-height: 100vh;
  position: relative;
  z-index: 1;
  .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-ani{
        background-image: url('../img/bg-ani.webp');
        @media (width < 768px) {
          background-image: url('../img/bg-ani-sp.webp');
        }
      }
      &.bg-online{
        background: no-repeat left top / cover;
        background-image: url('../img/bg-online.webp');
        @media (width < 768px) {
          background-image: url('../img/bg-online-sp.webp');
        }
      }
      &.bg-lottery{
        background-image: url('../img/bg-lottery.webp');
        @media (width < 768px) {
          background-image: url('../img/bg-lottery-sp.webp');
        }
      }
    }
  }
}

.list{
  display: grid;
  width: min(98rem, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 6rem 4rem;
  @media (width < 768px) {
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  }
  a{
    display: block;
    text-decoration: none;
    color: #fff;
    &:hover{
      img{
        transform: scale(1.05);
      }
    }
  }
  .thumbnail{
    overflow: hidden;
    img{
      transform: scale(1);
      transition: transform 0.3s ease;
    }
  }
  .text-box{
    padding: 2rem 1.5rem;
    background: rgba(20, 8, 10, 0.8);
    @media (width < 768px) {
      padding: 1.5rem 1rem;
    }
    .price{
      margin-top: 2rem;
      font-size: 2.2rem;
      color: #B8A536;
      @media (width < 768px) {
        font-size: 1.6rem;
      }
      span{
        font-size: 1.1rem;
      }
    }
  }
}