/* 適用レイヤー */
@layer base, components, utilities;
/* ベース */
@layer base {
  .inner {
    @media (768px <= width) {
      max-width: 126rem;
      margin: 0 auto;
      padding: 0 3rem;
    }
    @media (width < 768px) {
      margin: 0 5%;
    }
  }
  .read-area {
    background-color: #FFB1B1;
    margin-top: -2.7%;
    padding: 8rem 0;
    @media (width < 768px) {
      margin-top: -7.5%;
      padding: 6rem 0;
    }
  }
  .navigation-area {
    background-color: #fff;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 2.5rem 0;
      @media (width < 768px) {
        overflow-y: auto;
        display: block;
        background-color: #fff;
        width: 100%;
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        >img {
          width: 80%;
          margin: 0 auto;
        }
        >.link-monthly {
          display: block;
          li:first-child {
            margin-top: 0;
            a {
              border-top: none !important;
            }
          }
          li {
            border-left: none !important;
            a {
              justify-content: center;
              width: 35%;
              margin: 2.5rem auto 0;
              padding: 2.5rem 0 0;
              border-top: 1px solid #C8C8C8 !important;
              font-size: 2.4rem;
              span {
                font-size: 5rem;
              }
            }
          }
        }
        >.link-event {
          display: block;
        }
      }
    }
    ul {
      display: flex;
    }
    @media (width < 768px) {
      .nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        .link-monthly {
          li:first-child {
            a {
              padding-left: 0 !important;
            }
          }
          li a {
            padding: .5rem 1rem;
            font-size: 2rem;
            span {
              font-size: 3rem;
            }
          }
        }
      }
    }
    .link-monthly {
      li:first-child {
        border-left: none !important;
        @media (768px <= width) {
          a {
            padding-left: 0 !important;
          }
        }
      }
      @media (768px <= width) {
        li a {
          position: relative;
        }
        li a::after {
          opacity: 0;
          content: '';
          width: 100%;
          height: 1.5rem;
          position: absolute;
          bottom: -.8rem;
          left: 0;
          z-index: -1;
          transition: opacity ease .3s;
        }
        li:hover a::after {
          opacity: 1;
        }
        li:nth-child(1) a::after {
          background-color: #8CDAF7 !important;
        }
        li:nth-child(2) a::after {
          background-color: #FFA94C !important;
        }
        li:nth-child(3) a::after {
          background-color: #7ADF78 !important;
        }
        li:nth-child(4) a::after {
          background-color: #FFDF6B !important;
        }
      }
      li {
        border-left: 1px solid #000 !important;
        @media (768px <= width) {
          padding: .6rem 3rem;
        }
        a {
          display: flex;
          align-items: flex-end;
          font-size: 2.4rem;
          font-weight: bold;
          line-height: .6;
          span {
            font-size: 5rem;
            font-family: var(--font-web);
            font-style: normal;
            letter-spacing: 2;
            line-height: .5;
          }
        }
      }
    }
    .link-event {
      @media (width < 768px) {
        margin-top: 4rem !important;
      }
      li {
        width: 17rem;
        margin-left: 2rem;
        @media (width < 768px) {
          width: 70%;
          margin: 2rem auto 0;
        }
        a {
          display: block;
          border-radius: 1rem;
          padding: 1rem 0;
          color: #fff !important;
          font-size: 1.8rem;
          font-weight: bold;
          text-align: center;
          line-height: 1.4;
          @media (768px <= width) {
            transition: opacity ease .3s;
            &:hover {
              opacity: .6;
            }
          }
          @media (width < 768px) {
            padding: 1.5rem 0;
          }
        }
        .media {
          background-color: #7073CC;
        }
        .camp {
          background-color: #FF7B00;
        }
        .info {
          background-color: #FF5658;
        }
      }
    }
  }
  /* ハンバーガーボタン */
  .hamburger-btn {
    width: 5rem;
    height: 5rem;
    background-color: #F3F3F3 !important;
    border-radius: 1rem;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 99;
    .line {
      width: 2.4rem;
      height: 0.2rem;
      background-color: #000;
      transition: all 0.3s ease;
      transform-origin: center;
    }
  }
  /* 開くボタン（3本線） */
  .hamburger-open-btn {
    @media (768px <= width) {
      display: none;
    }
    @media (width < 768px) {
      display: flex;
    }
  }
  /* 閉じるボタン（バツ印） */
  .hamburger-close-btn {
    margin: 0 0 0 auto !important;
    position: sticky;
    top: 0;
    right: 2rem;
    @media (768px <= width) {
      display: none;
    }
    @media (width < 768px) {
      display: flex;
    }
    .line-top {
      transform: translateY(0.6rem) rotate(45deg);
    }
    .line-middle {
      opacity: 0;
    }
    .line-bottom {
      transform: translateY(-0.6rem) rotate(-45deg);
    }
  }
  /* ナビゲーション開閉制御 */
  .navigation-area {
    nav {
      @media (width < 768px) {
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        &.open {
          transform: translateX(0);
          opacity: 1;
        }
      }
    }
  }
  .coming {
    padding: 10rem 0 !important;
    @media (width < 768px) {
      padding: 5rem 0 8rem !important;
    }
    .inner {
      align-items: center !important;
    }
    .left-block .month-head {
      position: relative !important;
      transform: translateY(0) !important;
    }
  }
  .monthly {
    padding: 25rem 0 10rem;
    @media (width < 768px) {
      padding: 16rem 0 8rem;
    }
    .inner {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 3rem;
      @media (width < 768px) {
        display: block;
      }
    }
    .left-block {
      width: 45%;
      position: sticky;
      top: 12rem;
      @media (width < 768px) {
        width: 100%;
        position: relative;
        top: 0;
      }
      .month-head {
        display: flex;
        align-items: flex-end;
        gap: 3rem;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        transform: translateY(calc(-100% + .8rem));
        .month-number {
          width: 27rem;
          @media (width < 768px) {
            width: 48%;
          }
        }
        .month-image {
          width: calc(100% - 30rem);
          @media (width < 768px) {
            width: 48%;
          }
        }
      }
    }
    .right-block {
      width: calc(55% - 3rem);
      @media (width < 768px) {
        width: 100%;
        margin-top: 4rem;
      }
    }
  }
  .monthly.oct {
    background-color: #8CDAF7;
  }
  .monthly.nov {
    background-color: #FFA94C;
  }
  .monthly.dec {
    background-color: #7ADF78;
  }
  .monthly.jan {
    background-color: #FFDF6B;
  }
  .camp-area {
    background-color: #FFB1B1;
    padding-top: 10rem;
    position: relative;
    overflow: hidden;
    @media (width < 768px) {
      padding-top: 5rem;
    }
    .inner {
      display: flex;
      justify-content: center;
      gap: 10rem;
      position: relative;
      z-index: 2;
      @media (width < 768px) {
        display: block;
        margin-right: 0;
      }
    }
    .month, .chara {
      img {
        width: auto;
      }
    }
    @media (width < 768px) {
      .month {
        img {
          width: 50%;
        }
      }
    }
  }
  footer {
    background: #000121;
    padding: 3rem 0;
    a {
      display: block;
      width: max-content;
      margin: 0 auto;
      img {
        margin: 0 auto 2rem;
      }
    }
    p {
      font-size: 1.2rem;
      color: #fff;
      text-align: center;
    }
  }
}
/* コンポーネント */
@layer components {
  .webfont {
    font-family: var(--font-web);
    font-weight: 400;
    font-style: normal;
  }
  .list-event {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem 1rem;
    .event-item {
      margin: 0;
      a {
        display: block;
        margin: 0;
        padding: 2.5rem 2rem;
        @media (width < 768px) {
          padding: 1rem;
        }
      }
      .day {
        font-size: 2.5rem !important;
        @media (width < 768px) {
          font-size: 1.6rem !important;
        }
      }
      .event-title {
        @media (width < 768px) {
          font-size: 1.2rem;
        }
      }
    }
  }
  .event-item {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0 .6rem rgba(0, 0, 0, .4);
    margin: .6rem;
    &.inactive {
      pointer-events: none;
    }
    a {
      display: block;
      padding: 3.5rem 3rem;
      @media (768px <= width) {
        transition: transform ease .3s;
        &:hover {
          transform: scale(1.03);
        }
      }
      @media (width < 768px) {
        padding: 1rem;
      }
    }
    .event-head {
      .day-wrap {
        display: flex;
        align-items: center;
        gap: 1.5rem;
      }
    }
    .event-title {
      font-weight: bold;
    }
    .event-image {
      margin: 1rem 0;
    }
  }
  .day {
    font-size: 3.4rem;
    font-weight: 900;
    @media (width < 768px) {
      font-size: 2.4rem;
    }
    span {
      font-size: 0.6em;
    }
  }
  .tag {
    span {
      padding: 0.5rem 1rem;
      color: #fff;
      @media (width < 768px) {
        padding: 0.5rem;
        font-size: 1rem;
      }
    }
    .team {
      background-color: rgb(184, 165, 54);
    }
    .ticket {
      background-color: rgb(51, 102, 255);
    }
    .event {
      background-color: rgb(255, 153, 0);
    }
    .fanclub {
      background-color: rgb(255, 0, 51);
    }
    .goods {
      background-color: #239999;
    }
    .streaming {
      background-color: rgb(255, 102, 102);
    }
    .media {
      background-color: rgb(51, 204, 0);
    }
    .entertainment {
      background-color: rgb(204, 51, 153);
    }
    .farm {
      background-color: rgb(131, 200, 241);
    }
    .mascot {
      background-color: rgb(255, 102, 204);
    }
    .bsgravity {
      background-color: rgb(68, 13, 67);
    }
    .bpb {
      background-color: rgb(47, 222, 207);
    }
    .pigns {
      background-color: rgb(0, 0, 153);
    }
    .toreca {
      background-color: rgb(10, 170, 122);
    }
    .other {
      background-color: rgb(102, 102, 102);
    }
  }
  .coming-soon {
    font-size: 8rem;
    font-family: var(--font-web);
    font-style: normal;
    text-align: center;
    letter-spacing: 2;
    line-height: 1;
  }
}
/* ユーティリティ */
@layer utilities {
  .deco-text {
    text-align: center;
    span {
      display: inline-block;
      background-color: #fff;
      border-radius: 1rem;
      box-shadow: .4rem .4rem .3rem rgba(0, 0, 0, .2);
      padding: .4rem 2rem;
      color: var(--text-color);
      font-size: 2.4rem;
      font-weight: 800;
      @media (width < 768px) {
        padding: .4rem 1rem;
        font-size: 1.2rem;
      }
    }
    span:not(:first-child) {
      margin-top: 1.5rem;
    }
  }
  /* Swiper設定 */
  .swiper-button-next,
  .swiper-button-prev {
    background-color: #fff;
    border-radius: 50%;
    width: 5rem !important;
    height: 5rem !important;
    border: 1px solid #A6A6A6 !important;
    @media (width < 768px) {
      width: 3.5rem !important;
      height: 3.5rem !important;
    }
  }
  .swiper-button-next {
    right: 0 !important;
    transform: translateX(50%);
  }
  .swiper-button-prev {
    left: 0 !important;
    transform: translateX(-50%);
  }
  .swiper-button-next::after,
  .swiper-button-prev::after,
  .swiper-button-next::before,
  .swiper-button-prev::before {
    content: '' !important;
    width: 2rem;
    height: .4rem;
    background-color: #939393;
    border-radius: 5px;
    position: absolute;
    @media (width < 768px) {
      width: 1.4rem;
    }
  }
  .swiper-button-next::after {
    transform: rotate(45deg);
    transform-origin: bottom right;
    right: 5px;
    left: 0;
    margin: auto;
  }
  .swiper-button-next::before {
    transform: rotate(-45deg);
    transform-origin: top right;
    right: 5px;
    left: 0;
    margin: auto;
  }
  .swiper-button-prev::after {
    transform: rotate(45deg);
    transform-origin: top left;
    right: 0;
    left: 5px;
    margin: auto;
  }
  .swiper-button-prev::before {
    transform: rotate(-45deg);
    transform-origin: bottom left;
    right: 0;
    left: 5px;
    margin: auto;
  }
  .swiper-pagination {
    padding: 1rem 0;
    bottom: 0 !important;
    transform: translateY(100%) !important;
    @media (width < 768px) {
      bottom: 1rem !important;
    }
    .swiper-pagination-bullet {
      opacity: 1 !important;
      width: 1.2rem !important;
      height: 1.2rem !important;
      background: none!important;
      border: 1px solid #fff!important;
      margin: 0 .8rem !important;
    }
    .swiper-pagination-bullet-active {
      background: #fff !important;
    }
  }

  /* 流れるアニメーション用キーフレーム */
  @keyframes flow-right-to-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  @keyframes flow-left-to-right {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }

  /* linerクラスのスタイル */
  .liner {
    display: flex;
    overflow: hidden;
    position: absolute;
    ul {
      display: flex;
      li {
        width: calc(100vw / 2.5);
        @media (width < 768px) {
          width: calc(100vw / .6);
        }
      }
    }
    img {
      width: 100%;
    }
  }

  .liner.right {
    top: 0;
    ul {
      animation: flow-right-to-left 40s linear infinite both;
    }
  }

  .liner.left {
    bottom: 0;
    ul {
      animation: flow-left-to-right 80s linear infinite both;
    }
  }

}
