@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;
    background: #fff;
    border: 1px solid #000;
    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);
            }
          }
        }
      }
    }
}

nav{
  width: 37rem;
  margin-inline: auto;
  padding: 4rem;
  background: #fff;
  border: 1px solid #000;
  @media (width < 768px) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 9rem 4rem 4rem;
    margin: 0;
    border: none;
    z-index: 999;
    background: #fff;
    color: #000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    &.is-open {
      transform: translateX(0);
    }
  }
  .nav-list{
    li{
      padding-left: 25px;
      background-image: linear-gradient(to right, #000 6px, transparent 2px);
      background-size: 10px 1.2px;
      background-repeat: repeat-x;
      background-position: bottom 0.1em left 0;
      font-size: 2.4rem;
      font-weight: bold;
      position: relative;
      @media (width < 768px) {
        font-size: 2rem;
        color: #000;
      }
      &:last-child{
        background-image: none;
      }
      + li{
        margin-top: 1.2rem;
      }
      &:before {
        content: "";
        display: block;
        width: 12px;
        height: 12px;
        background: #e70012;
        position: absolute;
        left: 2px;
        top: 11px;
        transform: rotate(45deg);
        z-index: 1000;
      }
      a{
        display: block;
        padding-bottom: 1.2rem;
        transition: .3s;
        &:hover{
          opacity: 0.7;
        }
      }
    }
    ul{
      padding-top: 5px;
      margin-left: -25px;
      @media (width < 768px) {
        margin-left: 0;
      }
      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;
        }
      }
    }
  }
}

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




.btn{
  display: block;
  position: relative;
  width: 34rem;
  margin-top: 3rem;
  margin-inline: auto;
  padding: 1.6rem 5.2rem 1.6rem 3.8rem;
  border-radius: 100vmax;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN",  sans-serif;
  font-weight: bold;
  transition: .3s;
  @media (width < 780px) {
    width: 90%;
  }
  &:before{
    content: "";
    width: 8px;
    height: 1px;
    background: #fff;
    position: absolute;
    top: 50%;
    right: 40px;
  }
  &:after{
    content: "";
    position: absolute;
    top: 50%;
    right: 40px;
    width: 8px;
    height: 8px;
    background: #e70012;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
  }
  &:hover{
    border: 1px solid #e70012;
    background: #e70012;
  }
  &:hover:after{
    background: #fff;
    transform: translateY(-50%) translateX(6px) rotate(45deg);
  }
  &:hover:before{
    background: #fff;
    transform: translateX(-8px);
  }
}
.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-colk.webp') no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
    @media (width < 780px) {
      width: 100%;
    }
  }
  .nav-container{
    background: url('../img/bg-nav.webp') no-repeat center center;
    background-size: cover;
    align-items: center;
    width: 58.6111%;
    height: 100vh;
    padding-top: 6.6rem;
    position: sticky;
    top: 0;
    z-index: 1;
    @media (width < 768px) {
      background: none;
      width: 0;
      height: 0;
      padding: 0;
      position: static;
    }
    .btn{
      background: #e70012;
      border: 1px solid #e70012;
      @media (width < 768px) {
        position: fixed;
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
        width: auto;
        margin: 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
      }
      &:after,&:before{
        background: #fff;
      }
      &:hover{
        background: #fff;
        color: #e70012;
      }
      &:hover:after{
        background: #e70012;
        transform: translateY(-50%) translateX(6px) rotate(45deg);
      }
      &:hover:before{
        background: #e70012;
        transform: translateX(-8px);
      }
      @media (width < 768px) {
        &.is-visible {
          opacity: 1;
          visibility: visible;
          pointer-events: auto;
          transform: translateY(0);
        }
      }
    }
  }
  .main-content{
    width: 41.3889%;
    flex: 0 0 41.3889%;
    overflow: clip;
    position: relative;
    z-index: 1;
    @media (width < 780px) {
      width: 100%;
    }
    .inner{
      padding: 0 3rem;
      position: relative;
      z-index: 1;
      @media (width < 780px) {
        padding: 0 5%;
      }
    }
  }
}

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

.content-title{
  display: flex;
  align-items: center;
  width: max-content;
  margin-bottom: 2.4rem;
  padding-right: 1.4rem;
  background: #fff;
  border: 1px solid #000;
  
  .tag{
    display: grid;
    place-content: center;
    place-items: center;
    width: 25px;
    height: 70px;
    padding: 4px;
    background: #000;
    @media (width < 780px) {
      width: 20px;
      height: 70px;
    }
    p{
      font-family: var(--font-en);
      font-size: 1.2rem;
      font-weight: bold;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0;
      line-height: 1;
      writing-mode: sideways-lr;
      @media (width < 780px) {
        font-size: 1rem;
      }
    }
  }
  .title{
    margin-left: 1.2rem;
    font-size: 4rem;
    font-weight: bold;
    color: #000;
    @media (width < 780px) {
        font-size: 2.4rem;
      }
  }
}

body.is-observe-ready .content-title {
  -webkit-clip-path: inset(0 calc(100% - 25px) 0 0);
  clip-path: inset(0 calc(100% - 25px) 0 0);
}

body.is-observe-ready .content-title .title {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

body.is-observe-ready .content-title.is-visible {
  animation: contentTitleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-observe-ready .content-title.is-visible .title {
  animation: contentTitleTextReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes contentTitleReveal {
  from {
    -webkit-clip-path: inset(0 calc(100% - 25px) 0 0);
    clip-path: inset(0 calc(100% - 25px) 0 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes contentTitleTextReveal {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-observe-ready .content-title,
  body.is-observe-ready .content-title .title {
    animation: none;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

.box{
  padding: 4rem 3rem;
  @media (width < 780px) {
    padding: 5rem 5%;
  }
  &.box-black{
    background: #000;
    color: #fff;
  }
  &.box-white{
    background: #fff;
    color: #000;
    .box-title{
      background-image: linear-gradient(to right, #000 6px, transparent 2px);
      background-size: 10px 1.2px; 
    }
  }
  .box-content{
    + .box-content{
      margin-top: 8rem;
    }
    position: relative;
    &:before{
      content: "";
      display: block;
      width: 32px;
      height: 32px;
      background: #e70012;
      position: absolute;
      left: -40px;
      top: -25px;
       @media (width < 780px) {
        width: 26px;
        height: 26px;
        top: -30px;
        left: -26px;
      }
    }
    img{
      margin-top: 3rem;
      @media (width < 780px) {
        margin-top: 2rem;
      }
    }
  }
}

.box-title{
  scroll-margin-top: 170px;
  display: inline-block;
  width: 100%;
  background-image: linear-gradient(to right, #fff 6px, transparent 2px);
  background-size: 10px 1.2px; 
  background-repeat: repeat-x;
  background-position: bottom 0.1em left 0;
  padding-bottom: 2.4rem;
  @media (width < 780px) {
    padding-bottom: 1.6rem;
  }
    h3{
      font-size: 2.4rem;
      font-weight: bold;
      line-height: 1.6;
      letter-spacing: 0.08em;
      @media (width < 780px) {
        font-size: 2rem;
      }
    }
    .campaign-tag{
      width: max-content;
      padding: 5px 8px;
      background: #e70012;
      font-size: 1.8rem;
      font-weight: bold;
      color: #fff;
      @media (width < 780px) {
        font-size: 1.4rem;
      }
    }
    p{
      margin-top: 1rem;
      font-weight: bold;
    }
}

.game-date{
  padding: 6rem 0 8rem;
  background: url('../img/bg-game.webp') no-repeat center center;
  background-size: cover;
  .game-date-desc{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 53rem;
    margin-inline: auto;
    margin-top: 20rem;
    padding: 2rem 3rem;
    padding-left: 6rem;
    background: #fff;
    font-weight: 600;
    letter-spacing: 0;
    @media (width < 780px) {
      width: 100%;
      padding: 2rem 1rem 2rem 4rem;
    }
    .date{
      font-family: var(--font-en);
      font-size: 5.6rem;
      font-weight: bold;
      line-height: 1;
      position: relative;
      @media (width < 780px) {
        font-size: 3rem;
      }
      &:before {
        content: "";
        display: block;
        width: 16px;
        height: 16px;
        background: #e70012;
        position: absolute;
        left: -29px;
        top: 32px;
        transform: rotate(45deg);
        @media (width < 780px) {
          width: 12px;
          height: 12px;
          left: -24px;
          top: 14px;
        }
      }
    }
    .sun{
      font-family: var(--font-en);
      font-size: 2.4rem;
      font-weight: bold;
      margin-left: 0.8rem;
      color: #e70012;
      @media (width < 780px) {
        font-size: 1.4rem;
      }
    }
    .detail{
      font-size: 1.8rem;
      @media (width < 780px) {
        font-size: 1.4rem;
      }
    }
    .stadium{
      @media (width < 780px) {
        font-size: 1.2rem;
      }
    }
    .team{
      display: flex;
      align-items: center;
      .vs{
        margin-right: 1.4rem;
        font-family: var(--font-en);
        font-size: 2rem;
        @media (width < 780px) {
          font-size: 1.6rem;
        }
      }
    }
  }
}

.uniform{
  scroll-margin-top: 80px;
  padding: 7rem 0 10rem;

  .content-title{
    margin-top: -90px;
  }
}

.legend-ob{
  scroll-margin-top: 80px;
  padding: 6rem 0 10rem;
  background: url('../img/bg-gray.webp') no-repeat center center;
  background-size: cover;
  color: #fff;
    .content-title{
    margin-top: -90px;
  }
  .ob-list{
    margin-top: 2.4rem;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    + .ob-list{
      margin-top: 2.4rem;
    }
    .modal-item{
      min-width: 20rem;
      cursor: pointer;
      .name{
        font-weight: bold;
        margin-top: 1.6rem;
      }
      .ob-image{
        position: relative;
        &:after{
          content: "";
          width: 4rem;
          height: 4rem;
          background: url('../img/icon-modal-open.webp') no-repeat center center;
          background-size: contain;
          position: absolute;
          right: 0;
          bottom: 0;
        }
        img{
          width: 100%;
          height: auto;
        }
      }
    }
  }
}

.event{
  padding-bottom: 10rem;
  @media (width < 780px) {
    padding-bottom:  8rem;
  }
  .content-title{
    margin-top: -20px;
  }
}

.gourmet, .news{
  scroll-margin-top: 80px;
  padding: 7rem 0 10rem;
  @media (width < 780px) {
    padding: 7rem 0 8rem;
  }
  .content-title{
    margin-top: -90px;
  }
}

.goods, .campaign{
  scroll-margin-top: 80px;
  padding: 7rem 0 10rem;
  background: url('../img/bg-gray.webp') no-repeat center center;
  background-size: cover;
  @media (width < 780px) {
    padding: 7rem 0 8rem;
  }
    .content-title{
    margin-top: -90px;
  }
}

.news{
  .news-container{
    padding: 5rem 3rem 4rem;
    background: #000;
    color: #fff;
    position: relative;
    @media (width < 780px) {
      padding: 5rem 5%;
    }
    &:before{
      content: "";
      display: block;
      width: 32px;
      height: 32px;
      background: #e70012;
      position: absolute;
      left: -10px;
      top: 15px;
    }
    .news-list{
      max-height: 24rem;
      overflow-x: auto;
      li{
        position: relative;
        margin-bottom: 1rem;
        padding-bottom: 2rem;
        padding-right: 7rem;
        background-image: linear-gradient(to right, #fff 6px, transparent 2px);
        background-size: 10px 1.2px;
        background-repeat: repeat-x;
        background-position: bottom 0.1em left 0;
        @media (width < 780px) {
          padding-right: 4rem;
        }
        &:after{
          content: "";
          position: absolute;
          top: 50%;
          right: 2rem;
          width: 1.2rem;
          height: 1.2rem;
          border-top: 2px solid #e70012;
          border-right: 2px solid #e70012;
          transform: translateY(-50%) rotate(45deg);
        }
        a{
          transition: .3s;
          &:hover{
            opacity: 0.7;
          }
        }
        .date{
          margin-bottom: 5px;
          font-family: var(--font-en);
          font-size: 1.4rem;
          font-weight: bold;
          color: #a4a4a4;
          letter-spacing: 0;
        }
      }
    }
  }
}
