@layer base, components, utilities;

@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-main);
    font-size: var(--fz-16);
    line-height: 1.6;
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    background: var(--blue, #6FD2F6);
    color: var(--black, #111);
  }
}

@layer components {
  @keyframes fade-in-pop {
    0% {
      opacity: 0;
      transform: translate3d(0, 24px, 0);
    }
    70% {
      opacity: 1;
      transform: translate3d(0, -2px, 0);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .fade-in {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
  }
  .fade-in.is-visible {
    animation: fade-in-pop .62s cubic-bezier(.2, .85, .25, 1) forwards;
  }

  .container {
    @media (768px <=width) {
      display: grid;
      grid-template-columns: 1fr clamp(400px, 50vw, 600px);
      align-items: flex-start;
    }
  }
  .toggle-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 2px solid var(--black, #111);
    background: var(--blue, #6FD2F6);
    z-index: 100;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 110;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    &.is-visible {
      opacity: 1;
      pointer-events: auto;
    }
    @media (768px <=width) {
      display: none;
    }
    span {
      position: absolute;
      left: 50%;
      top: 50%;
      display: block;
      width: 16px;
      height: 2px;
      background: var(--black, #111);
      transform-origin: center;
      transition: transform .4s ease;
      &:nth-child(1) {
        transform: translate(-50%, calc(-50% - 4px));
      }
      &:nth-child(2) {
        transform: translate(-50%, calc(-50% + 4px));
      }
    }
    &.is-open {
      span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(135deg);
      }
      span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-135deg);
      }
    }
  }

  .mv {
    overflow: hidden;
    position: relative;
    z-index: 30;
    img {
      width: 100%;
      /* opacity: 0;
      filter: blur(6px);
      transition: opacity 1.5s var(--ease), filter 1.5s var(--ease); */
    }
  }

  .title-style-01 {
    font-size: var(--fz-20);
    font-weight: 700;
    line-height: 1.4;
    @media (width < 768px) {
      font-size: var(--fz-18);
    }
    &::before, &::after {
      content: "";
      display: block;
      background: url('/ex/summerevent/2026/assets/img/bg-ttl-01.webp') repeat-x
      center;
      background-size: contain;
      width: 100%;
      height: 10px;
    }
    &::after {
      transform: scale(-1);
    }
    span {
      display: block;
      padding: 8px 4px;
    }
  }

  .title-style-02 {
    span {
      display: block;
      background: var(--yellow, #FED23D);
      color: var(--black, #111);
      font-size: var(--fz-20);
      font-weight: 700;
      width: fit-content;
      margin-inline: auto;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 16px;
      padding: 4px;
      line-height: 1;
      @media (width < 768px) {
        font-size: var(--fz-18);
      }
      &::before, &::after {
        content: "";
        display: block;
        background: url('/ex/summerevent/2026/assets/img/bg-ttl-02.webp') no-repeat
        center;
        background-size: contain;
        width: 100%;
        height: 20px;
        aspect-ratio: 1 / 1;
      }
    }
  }

  .category-box {
    position: relative;
    width: fit-content;
    height: 38px;
    background-color: #ffffff;
    border: 2px solid #1a1a1a;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 8px 3px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    &::before {
      content: "";
      position: absolute;
      top: 12px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: #1a1a1a;
    }

    &::after {
      content: "";
      position: absolute;
      top: 4px;
      left: 6px;
      right: 6px;
      height: 4px;
      background-image:
        radial-gradient(circle closest-side, #1a1a1a 99%, transparent 100%),
        radial-gradient(circle closest-side, #1a1a1a 99%, transparent 100%);
      background-size: 4px 4px;
      background-position: left center, right center;
      background-repeat: no-repeat;
    }
  }
  .modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
    &.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity .3s ease, visibility 0s;
      .modal__content {
        transform: translateY(0);
      }
    }
    .modal__bg {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(17, 17, 17, 0.80);
      backdrop-filter: blur(4px);
      z-index: -1;
    }
    .modal__content {
      width: 600px;
      max-width: 94%;
      padding-bottom: 3vh;
      display: flex;
      flex-direction: column;
      gap: 8px;
      transform: translateY(16px);
      transition: transform .3s ease;
    }
    .modal-close-btn {
      display: block;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      position: relative;
      margin-left: auto;
      &::before, &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 1px;
        background: #fff;
      }
      &::before {
        transform: translate(-50%, -50%) rotate(45deg);
      }
      &::after {
        transform: translate(-50%, -50%) rotate(-45deg);
      }
      span {
        display: none;
      }
    }
    .modal__box {
      border: 2px solid black;
      background: var(--yellow, #FED23D);
      position: relative;
      padding: 6px;
      padding-top: calc( ( 100% * 100 / 1032 ) + 6px );
      &::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 8px;
        width: calc(100% - 12px);
        aspect-ratio: 1032 / 100;
        background: url('/ex/summerevent/2026/assets/img/deco-calendar-top.webp') no-repeat center;
        background-size: 100% 100%;
      }
    }
    .modal__inner {
      background:  #fff;
      border: 2px solid var(--black, #111);
      padding: 32px 16px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: var(--gray) transparent;
      overscroll-behavior-y: contain;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: auto;
      touch-action: pan-y;
      max-height: calc( 86vh - 60px );
      &::-webkit-scrollbar {
        width: 6px;
      }
      &::-webkit-scrollbar-track {
        background: transparent;
      }
      &::-webkit-scrollbar-thumb {
        background: var(--blue);
        border-radius: 999px;
      }
    }
    .modal__media {
      &::after{
        content: "";
        display: block;
        background: var(--blue);
        mask-image: var(--icon-dot-mask);
        mask-size: var(--icon-size-default) var(--icon-size-default);
        mask-repeat: no-repeat;
        width: var(--icon-size-default);
        height: var(--icon-size-default);
        transition: var(--transition-default);
        margin: 40px auto;
      }
    }
    .modal__body {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .calendar-item {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 24px;
      padding: 16px 0;
      border-top: 1px dashed var(--black, #111);
      border-bottom: 1px dashed var(--black, #111);
      .date {
        font-size: var(--fz-20);
        font-weight: 700;
        line-height: 1;
        font-family: var(--font-title);
        @media (width < 768px) {
          font-size: var(--fz-18);
        }
        span {
          font-size: var(--fz-32);
        }
        &.sat {
          color: var(--blue, #6FD2F6);
        }
        &.sun {
          color: #EE5656;
        }
      }
      .event-time {
        color: var(--black, #111);
        font-size: var(--fz-12);
        font-weight: 700;
      }
      .event-icon {
        display: flex;
        gap: 8px;
        li {
          --icon-size-default: 40px;
          width: var(--icon-size-default);
          height: var(--icon-size-default);
        }
      }
      + * {
        margin-top: 16px;
      }
    }
    .text-area {
      margin-top: 16px;
      > * + * {
        margin-top: 8px;
      }
    }
    .btn-area {
      margin-top: 16px;
      display: flex;
      justify-content: center;
      gap: 24px;
      @media (width < 768px) {
        gap: 16px;
      }
      .btn {
        margin: 0;
      }
    }
  }

  header {
    background: url('/ex/summerevent/2026/assets/img/bg-menu.webp') no-repeat center;
    background-size: cover;
    @media (768px <= width) {
      position: sticky;
      top: 0;
      height: 100vh;
      display: grid;
      place-content: center;
      z-index: 10;
    }
    @media (width < 768px) {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      z-index: 100;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px 0;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.3s ease, visibility 0s linear 0.3s;
      &.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.3s ease, visibility 0s 0s;
      }
    }
  }
  .ticket-btn {
    @media (width < 768px) {
      position: fixed;
      bottom: 16px;
      right: 16px;
      z-index: 100;
      width: clamp(120px, 30vw, 160px);
    }
    &.sp {
      @media (width < 768px) {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
      }
      &.is-visible {
        @media (width < 768px) {
          opacity: 1;
          pointer-events: auto;
        }
      }
    }
  }
  nav {
    width: fit-content;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 40px 40px;

    border: 2px solid black;
    box-shadow: 0 0 0 6px var(--yellow, #FED23D), 0 0 0 8px black;
    background:  #fff;
    margin: 8px;
    @media (width < 768px) {
      overflow-y: auto;

      scrollbar-width: thin;
      scrollbar-color: var(--gray) transparent;
      overscroll-behavior-y: contain;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: auto;
      touch-action: pan-y;
    }
    h1 {
      margin-inline: auto;
      @media (768px <= width) {
        width: 358px;
      }
    }
    .nav-list {
      border-top: 1px dashed var(--black, #111);
      margin: 24px 0;
      li {
        border-bottom: 1px dashed var(--black, #111);
      }
    }
    li > a {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      padding: 8px;
      font-weight: 700;
      @media (768px <= width) {
        gap: 32px;
      }
      span {
        display: block;
        line-height: 1;
      }
      .title {
        font-family: var(--font-title);
        font-size: var(--fz-24);
      }
      .text {
        font-size: var(--fz-14);
        margin-top: 4px;
      }
      .arrow {
        background: var(--blue, #6FD2F6);
        border: 2px solid var(--black, #111);
        border-radius: 20px;
        width: 26px;
        height: 26px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s var(--ease);
      }
      &:hover {
        .arrow {
          transform: translateX(4px);
        }
      }
    }
    .no-link a {
      cursor: default;
      pointer-events: none;
      background: #7C7C7C33;
      color: var(--gray, #7C7C7C);
      .arrow {
        background: var(--gray, #7C7C7C);
      }
    }
    .ticket-btn {
      width: 143px;
      margin: 0 auto;
      transition: opacity 0.3s var(--ease);
      &:hover {
        opacity: .5;
      }
      @media (width < 768px) {
        display: none;
      }
    }
  }

  main {
    section {
      &:nth-child(odd) {
        background: var(--blue, #6FD2F6);
        .section-title {
          background: url('/ex/summerevent/2026/assets/img/bg-summer.webp') no-repeat center top;
          background-size: 100% auto;
        }
        .section-content-box {
          background: var(--yellow, #FED23D);
        }
      }
      &:nth-child(even) {
        background: var(--yellow, #FED23D);
        .section-title {
          background: url('/ex/summerevent/2026/assets/img/bg-wave.webp') no-repeat center top;
          background-size: 100% auto;
        }
        .section-content-box {
          background: var(--blue, #6FD2F6);
        }
      }
    }
  }

  @-webkit-keyframes bound {
    0% {
        opacity: 0;
        transform: translateY(50%) scale(1.2, .8)
    }
    40% {
        opacity: 1;
        transform: translateY(-10%)
    }
    70% {
        opacity: 1;
        transform: translateY(5%) scale(1.2, .8)
    }
    to {
        opacity: 1;
        transform: none
    }
  }

  @keyframes bound {
    0% {
      opacity: 0;
      transform: translateY(50%) scale(1.2, .8);
    }
    40% {
      opacity: 1;
      transform: translateY(-10%);
    }
    70% {
      opacity: 1;
      transform: translateY(5%) scale(1.2, .8);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes bound-soft {
    0% {
      opacity: 0;
      transform: translateY(16%);
    }
    60% {
      opacity: 1;
      transform: translateY(-2%);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .section-title {
    font-family: var(--font-title);
    text-align: center;
    padding: 80px 0 32px;
    line-height: 1;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    @media (768px <= width) {
      font-size: var(--fz-56);
    }
    @media (width < 768px) {
      font-size: var(--fz-40);
      padding: 56px 0 32px;
    }
    .char {
      display: inline-block;
      opacity: 0;
    }
    &.is-visible .char {
      animation: bound .6s cubic-bezier(.33, 1, .68, 1) forwards;
      animation-delay: calc(var(--char-index, 0) * .03s + 0s);
    }
    &:not(.fade-in) .char {
      animation: bound .6s cubic-bezier(.33, 1, .68, 1) forwards;
      animation-delay: calc(var(--char-index, 0) * .03s + 0s);
    }
  }

  .btn {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 2px solid var(--black, #111);
    text-align: center;
    font-weight: 700;
    width: 230px;
    line-height: 1;
    border-radius: 50px;
    margin-inline: auto;
    transition: background 0.3s var(--ease);
    .text {
      font-size: var(--fz-16);
      padding: 14px;
      @media (width < 768px) {
        font-size: var(--fz-14);
        padding: 12px 0;
      }
    }
    .arrow {
      background: var(--blue, #6FD2F6);
      border: 2px solid var(--black, #111);
      border-radius: 50px;
      aspect-ratio: 1 / 1;
      height: calc( 100% + 4px );
      margin: -2px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    &:hover {
      background: var(--blue, #6FD2F6);
      .arrow {
        background: #fff;
      }
    }
    &.is-ticket {
      background: var(--red, #EA5534);
      color: #fff;
      .arrow {
        background: var(--yellow, #FED23D);
      }
      &:hover {
        background: var(--yellow, #FED23D);
        .arrow {
          background: var(--red, #EA5534);
        }
      }
    }
  }

  .inner {
    width: 90%;
    margin-inline: auto;
    @media (768px <= width) {
      padding: 8px 0 80px;
    }
    @media (width < 768px) {
      padding: 8px 0 40px;
    }
  }

  .section-content-box {
    border: 2px solid var(--black, #111);
    padding: 6px;
    width: 100%;
    .content-title {
      font-family: var(--font-title);
      font-size: var(--fz-40);
      line-height: 1;
      text-align: center;
      @media (width < 768px) {
        font-size: var(--fz-32);
      }
      .line {
        display: inline-block;
        opacity: 0;
      }
      &.is-visible .line {
        animation: bound-soft .45s cubic-bezier(.33, 1, .68, 1) forwards;
        animation-delay: calc(var(--line-index, 0) * .08s + 0s);
      }
      &:not(.fade-in) .line {
        animation: bound-soft .45s cubic-bezier(.33, 1, .68, 1) forwards;
        animation-delay: calc(var(--line-index, 0) * .08s + 0s);
      }
      + * {
        margin-top: 8px;
      }
    }
    .box-inner {
      border: 2px solid var(--black, #111);
      background: #fff;
      padding: 32px 16px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
  }

  .box-inner.calendar-head {
    position: relative;
    margin-top: calc( (100% * 100 / 1032) + 16px);
    &::before {
      content: "";
      position: absolute;
      left: -2px;
      bottom: 100%;
      width: calc(100% + 4px);
      aspect-ratio: 1032 / 100;
      background: url('/ex/summerevent/2026/assets/img/deco-calendar-top.webp') no-repeat center;
      background-size: 100% 100%;
    }
  }

  .box-head-calendar {
    display: grid;
    grid-template-columns: 1fr auto;
    font-family: var(--font-title);
    align-items: center;
    line-height: 1;
    .month {
      font-size: var(--fz-40);
      @media (width < 768px) {
        font-size: var(--fz-24);
      }
      span {
        font-size: var(--fz-56);
        @media (width < 768px) {
          font-size: var(--fz-40);
        }
      }
    }
    .en {
      font-size: var(--fz-40);
      color: var(--blue, #6FD2F6);
      @media (width < 768px) {
        font-size: var(--fz-24);
      }
    }
  }

  .calendar-list {
    border-top: 2px dashed var(--black, #111);
    .calendar-item {
      display: grid;
      grid-template-columns: 8em 1fr 32px;
      align-items: center;
      gap: 24px;
      padding: 16px 0;
      border-bottom: 2px dashed var(--black, #111);
      cursor: pointer;
      @media (width < 768px) {
        grid-template-columns: 6em 1fr 24px;
      }
      &:hover {
        .modal-btn {
          &::before {
            transform: rotate(180deg);
          }
          &::after {
            transform: rotate(270deg);
          }
        }
      }
    }
    .date {
      font-size: var(--fz-20);
      font-weight: 700;
      line-height: 1;
      font-family: var(--font-title);
      @media (width < 768px) {
        font-size: var(--fz-16);
      }
      span {
        font-size: var(--fz-32);
        margin-right: .1em;
        @media (width < 768px) {
          font-size: var(--fz-20);
        }
      }
      &.sat {
        color: var(--blue, #6FD2F6);
      }
      &.sun {
        color: #EE5656;
      }
    }
    .event-icon {
      display: flex;
      gap: 24px;
      @media (width < 768px) {
        gap: 8px;
      }
      li {
        --icon-size-default: 56px;
        width: var(--icon-size-default);
        height: var(--icon-size-default);
        @media (width < 768px) {
          --icon-size-default: 32px;
        }
      }
    }
    .modal-btn {
      width: 32px;
      height: 32px;
      border: 2px solid var(--black, #111);
      border-radius: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: var(--fz-14);
      color: #fff;
      cursor: pointer;
      @media (width < 768px) {
        width: 24px;
        height: 24px;
      }
      &::before, &::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 2px;
        background: var(--black, #111);
        transition: transform 0.3s var(--ease);
        @media (width < 768px) {
          width: 10px;
        }
      }
      &::after {
        transform: rotate(90deg);
      }
    }
  }

  #event {
    .inner {
      position: relative;
      padding-bottom: calc((100% * 170 / 532) - 40px);
      &::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 100%;
        aspect-ratio: 532 / 170;
        background: url('/ex/summerevent/2026/assets/img/deco-player-03.webp') no-repeat center;
        background-size: 100% 100%;
        transform: translateX(-50%);
        z-index: 2;
      }
    }
    .deco-01 {
      position: relative;
      z-index: 20;
      &::before {
        content: "";
        position: absolute;
        right: -40px;
        bottom: calc( 100% - 8px );
        width: 220px;
        max-width: 46%;
        aspect-ratio: 220 / 195;
        background: url('/ex/summerevent/2026/assets/img/deco-player-01.webp') no-repeat center;
        background-size: 100% 100%;
        z-index: -1;
      }
    }
    .event-calendar {
      margin-top: calc((100% * 170 / 532) - 30px);
      position: relative;
      &::before {
        content: "";
        position: absolute;
        bottom: calc( 100% + 2px );
        width: 100%;
        aspect-ratio: 532 / 170;
        background: url('/ex/summerevent/2026/assets/img/deco-player-02.webp') no-repeat center;
        background-size: 100% 100%;
      }
    }
  }

  #ticket {
    .ticket-list {
      display: flex;
      flex-direction: column;
      gap: 32px;
    }
    a {
      transition: opacity 0.3s var(--ease);
      &:hover {
        opacity: .6;
      }
    }
  }

  #news {
    .news-list {
      border: 2px solid var(--black, #111);
      background: #fff;
      padding: 8px 32px 8px 16px;
      display: grid;
      grid-template-columns: 4em 1fr;
      max-height: 260px;
      overflow-y: auto;

      scrollbar-width: thin;
      scrollbar-color: var(--gray) transparent;
      overscroll-behavior-y: contain;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: auto;
      touch-action: pan-y;
      > * {
        border-bottom: 1px dashed var(--black, #111);
        padding: 24px 0;
        &:last-of-type {
          border-bottom: none;
        }
      }
      dt {
        color: var(--gray, #7C7C7C);
        font-size: var(--fz-16);
        font-weight: 700;
        font-family: var(--font-title);
      }
    }
    .movie-area {
      margin-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
      }
    }
  }

  footer {
    padding: 80px 0 40px;
    background: var(--black, #111);
    @media (width < 768px) {
      padding: 56px 0 40px;
    }
    .inner {
      padding: 0;
    }
    .logo {
      width: 160px;
      margin: 0 auto;
      @media (width < 768px) {
        width: 120px;
      }
    }
    small {
      display: block;
      text-align: center;
      font-size: var(--fz-12);
      color: #fff;
      margin-top: 40px;
    }
  }
}

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