@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;
    color: var(--text-main);
    font-optical-sizing: auto;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    background: var(--pink-light);
  }
}

@layer components {
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
    transition: opacity 0.6s ease, transform 1s ease, filter 0.6s ease;
  }
  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .btn {
    display: grid;
    grid-template-columns: 1fr auto;
    background: linear-gradient(94deg, #0566B1 4.88%, #00599D 95.12%);
    color: #fff;
    padding: 16px 40px;
    width: fit-content;
    border-radius: 50px;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    span {
      display: block;
    }
    .en {
      font-size: var(--fz-18);
    }
    .jp {
      font-size: var(--fz-12);
    }
    &::after {
      content: "";
      display: block;
      background: #fff;
      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);
    }
    &:hover {
      &::after {
        transform: scale(1.2) rotate(135deg);
      }
    }
  }
  .ticket-btn {
    position: fixed;
    display: block;
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(94deg, #0566B1 4.88%, #00599D 95.12%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    margin: 0 auto;
    padding-top: 10px;
    opacity: 0;
    transition: all .5s var(--ease);
    z-index: 100;
    @media (768px <= width) {
      display: none;
    }
    span {
      display: block;
      line-height: 1.3;
    }
    .en {
      font-size: var(--fz-18);
    }
    .jp {
      font-size: var(--fz-12);
    }
    &::after {
      content: "";
      display: block;
      background: #fff;
      mask-image: var(--icon-dot-mask);
      mask-size: var(--icon-size-sm) var(--icon-size-sm);
      mask-repeat: no-repeat;
      width: var(--icon-size-sm);
      height: var(--icon-size-sm);
      transition: var(--transition-default);
    }
    &.is-visible {
      opacity: 1;
    }
  }
  .title-main {
    font-weight: 400;
    line-height: 1.2;
    color: var(--blue);
    text-align: center;
    span {
      display: block;
    }
    .jp {
      font-size: var(--fz-16);
      margin-top: 30px;
    }
    .en {
      font-size: var(--fz-70);
      margin-top: 10px;
      font-family: var(--font-en);
    }
    &::before {
      content: "";
      display: block;
      background: var(--blue);
      mask-image: var(--icon-dot-mask);
      mask-size: var(--icon-size-lg) var(--icon-size-lg);
      mask-repeat: no-repeat;
      width: var(--icon-size-lg);
      height: var(--icon-size-lg);
      transition: var(--transition-default);
      margin: 0 auto;
    }
    + * {
      margin-top: 40px;
    }
  }
  .title-sub {
    color: var(--blue);
    text-align: center;
    font-family: var(--font-en);
    font-size: var(--fz-60);
    font-weight: 400;
    line-height: 1.2;
    &::after{
      content: '';
      display: block;
      background: var(--blue);
      mask:
        var(--icon-dot-mask) 0 center / var(--icon-size-md) var(--icon-size-md) no-repeat,
        var(--icon-dot-mask) 30px center / var(--icon-size-md) var(--icon-size-md) no-repeat,
        var(--icon-dot-mask) 60px center / var(--icon-size-md) var(--icon-size-md) no-repeat;
      width: 74px;
      height: 14px;
      transition: var(--transition-default);
      margin: 20px auto 0;
    }
    + * {
      margin-top: 40px;
    }
  }
  .text-box {
    > * + * {
      margin-top: 16px;
    }
  }
  .text-main {
    color: var(--blue);
    text-align: center;
    font-size: var(--fz-20);
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: .07em;
  }
  .has-zigzag-top,
  .has-zigzag-bottom {
    --zigzag-color: var(--pink-pale);
    --zigzag-width: 30px;
    --zigzag-height: 15px;
    position: relative;
  }
  .has-zigzag-top::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--zigzag-height));
    left: 0;
    width: 100%;
    height: var(--zigzag-height);
    background:
      linear-gradient(45deg, var(--zigzag-color) 50%, transparent 50%) 0 0,
      linear-gradient(-45deg, var(--zigzag-color) 50%, transparent 50%) calc(var(--zigzag-width) / 2) 0;
    background-size: calc(var(--zigzag-width) / 2) var(--zigzag-height);
    background-repeat: repeat-x;
    background-position: center;
  }
  .has-zigzag-bottom::after {
    content: "";
    position: absolute;
    bottom: calc(-1 * var(--zigzag-height));
    left: 0;
    width: 100%;
    height: var(--zigzag-height);
    background:
      linear-gradient(135deg, var(--zigzag-color) 50%, transparent 50%) 0 0,
      linear-gradient(-135deg, var(--zigzag-color) 50%, transparent 50%) calc(var(--zigzag-width) / 2) 0;
    background-size: calc(var(--zigzag-width) / 2) var(--zigzag-height);
    background-repeat: repeat-x;
    background-position: center;
  }
  section {
    padding: 60px 0;
  }
  .kv {
    overflow: hidden;
    img {
      width: 100%;
      opacity: 0;
      filter: blur(6px);
      transition: opacity 1.5s var(--ease), filter 1.5s var(--ease);
    }
    &.is-visible img {
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
    }
  }
  .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;
    background: var(--blue);
    border-radius: 50px;
    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 {
      display: block;
      width: 16px;
      height: 1px;
      background: #fff;
      transition: all .4s ease;
    }
    &.is-open {
      span:nth-child(1) {
        transform: rotate(45deg) translate(2px, 2px);
      }
      span:nth-child(2) {
        transform: rotate(-45deg) translate(3px, -3px);
      }
    }
  }
  header {
    background:
      repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 0px,
        rgba(255, 255, 255, 0.3) 1px,
        transparent 1px,
        transparent 40px
      ),
      linear-gradient(180deg, #FFCFDD 0%, #FFABC3 100%);
    @media (768px <=width) {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: 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;
      }
    }
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('/ex/pinkfulday/2026/assets/img/nav-img-01.webp') no-repeat center top 20px / 90% auto, url('/ex/pinkfulday/2026/assets/img/nav-img-01.webp') no-repeat center bottom 20px / 90% auto;
      @media (width < 768px) {
        content: none;
      }
    }
    nav {
      background: var(--pink-pale);
      max-width: 90%;
      @media (768px <= width) {
        width: calc( 300px, 40vw, 500px);
        padding: 50px;
      }
      @media (width < 768px) {
        padding: 30px;
      }
    }
    h1 {
      a {
        display: block;
      }
      img {
        margin: 0 auto;
      }
    }
    .nav-list {
      margin-top: 30px;
      color: var(--blue);
      > li {
        position: relative;
        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          width: 100%;
          height: 1px;
          margin: 0 auto;
          background: repeating-linear-gradient(
            to right,
            var(--blue) 0 4px,
            transparent 4px 8px
          );
        }
        > a {
          display: block;
          padding: 16px 0;
          display: grid;
          grid-template-columns: auto 1fr;
          gap: 16px;
          align-items: center;
          font-size: var(--fz-20);
          font-weight: 600;
          letter-spacing: .1em;
          transition: var(--transition-default);
          .en {
            width: fit-content;
            letter-spacing: 0;
            margin-right: .2em;
          }
          &::before {
            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);
          }
          &:hover {
            &::before {
              transform: scale(1.2) rotate(135deg);
            }
          }
        }
      }
    }
    .date-list {
      margin-left: 32px;
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: -10px;
      padding-bottom: 16px;
      a {
        font-size: var(--fz-16);
        font-weight: 600;
        letter-spacing: .05em;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 6px;
        &::before {
          content: "";
          display: block;
          width: 7px;
          height: 7px;
          border: 1px solid var(--blue);
          border-radius: 7px;
            transition: var(--transition-default);
        }
        &:hover {
          &::before {
            background: var(--blue);
          }
        }
      }
    }
    .btn {
      margin: 40px auto 0;
      .jp {
        text-align: center;
      }
      .en {
        font-size: var(--fz-30);
        line-height: 1.2;
      }
    }
  }
  .content-wrap {
    position: relative;
    z-index: 20;
    box-shadow: 0 -20px 20px 0 rgba(230, 44, 127, 0.30);
  }
  #concept {
    background: url('/ex/pinkfulday/2026/assets/img/concept-bg.webp') no-repeat center / cover;
    padding: 120px 0;
    @media (width < 768px) {
      padding: 80px 0;
    }
    .concept-box {
      width: 80%;
      margin: 0 auto;
      background: var(--pink-pale);
      padding: 50px 0;
      position: relative;
      @media (width < 768px) {
        width: 86%;
      }
      &::before, &::after {
        content: "";
        position: absolute;
        width: 50%;
        height: auto;
        aspect-ratio: 117 / 23;
        left: 50%;
        transform: translateX(-50%);
        @media (width < 768px) {
          width: 60%;
        }
      }
      &::before {
        background: url('/ex/pinkfulday/2026/assets/img/concept-bg-top.webp') no-repeat center bottom / contain;
        bottom: calc( 100% - 1px );
      }
      &::after {
        background: url('/ex/pinkfulday/2026/assets/img/concept-bg-bottom.webp') no-repeat center top / contain;
        top: calc( 100% - 1px );
      }
    }
    .text-box {
      color: var(--blue);
      text-align: center;
      font-size: var(--fz-18);
      font-weight: 500;
      line-height: 2.5em;
      padding: 0 clamp(16px, 3vw, 50px);
      span {
        display: inline-block;
      }
    }
    .logo {
      margin-top: 40px;
      img {
        margin: 0 auto;
      }
    }
  }
  #uniform {
    --zigzag-color: var(--pink-light);
    padding: 60px 0 0;
    .uniform-box {
      padding: 0 0 70px;
      &.is-kitty {
        margin-top: 60px;
        background: linear-gradient(180deg, #A3DEFC 0%, #CDE8F5 100%);
        --zigzag-color: #A3DEFC;
      }
      &.is-pinkful {
        background: linear-gradient(180deg, #FFC1DA 0%, #FFD7E7 100%);
        --zigzag-color: #FFC1DA;
      }
      .text-box {
        width: 80%;
        margin: 0 auto;
        color: var(--blue);
        font-size: var(--fz-18);
        font-weight: 600;
        line-height: 1.8;
      }
      .btn {
        margin-top: 20px;
      }
    }
    .uniform-img {
      padding: 30px 0;
      position: relative;
      overflow: hidden;
      img {
        position: relative;
        opacity: 0;
        transform: scale(1.1) translateY(30px);
        transition: opacity .6s var(--ease), transform 1s var(--ease);
        &:nth-child(n+2) {
          position: absolute;
          top: 30px;
          left: 0;
        }
        &.is-visible {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }
    }
  }
  #comingsoon {
    --zigzag-color: var(--pink-light);
    .sns-icon {
      a {
        margin: 40px auto 0;
        width: 50px;
        height: 50px;
        background: var(--blue);
        border-radius: 50%;
        padding: 8px;
        display: grid;
        place-content: center;
        transition: var(--transition-default);
        img {
          width: 23px;
        }
        &:hover {
          transform: scale(1.1);
        }
      }
    }
    .img-box {
      margin-top: 60px;
    }
  }
  #news {
    background: var(--pink);
    padding-bottom: 80px;
    .news-list {
      width: 80%;
      margin: 40px auto 0;
      max-height: 260px;
      overflow-y: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      position: relative;
      z-index: 1;
      &::-webkit-scrollbar {
        display: none;
      }
      &::after {
        content: "";
        width: 100%;
        height: 140px;
        background: linear-gradient(180deg, transparent 0%, var(--pink) 90%);
        position: sticky;
        bottom: 0;
        left: 0;
        z-index: 10;
        pointer-events: none;
        display: block;
        margin-top: -60px;
      }
      li {
        color: var(--blue);
        font-size: var(--fz-18);
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 30px 0;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          width: 100%;
          height: 1px;
          margin: 0 auto;
          background: repeating-linear-gradient(
            to right,
            var(--blue) 0 4px,
            transparent 4px 8px
          );
        }
        &:nth-child(1) {
          padding-top: 0;
        }
        &:last-child {
          &::after {
            display: none;
          }
        }
      }
      a {
        padding-bottom: 2px;
        background: linear-gradient(90deg, var(--blue), var(--blue)) no-repeat left bottom;
        background-size: 100% 1px;
        transition: all .4s var(--ease);
        &:hover {
          background-size: 0 1px;
        }
      }
    }
  }
  footer {
    background: var(--blue);
    padding: 40px 0 20px;
    a {
      display: block;
      transition: var(--transition-default);
      &:hover {
        transform: scale(1.1);
      }
    }
    .logo {
      width: 170px;
      margin: 0 auto;
      @media (width < 768px) {
        width: 130px;
      }
      img {
        margin: 0 auto;
      }
      a:hover {
        transform: scale(1.05);
      }
    }
    .sns-list {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 30px;
      margin-top: 40px;
      img {
        width: 100%;
      }
      .x a { width: 18px; }
      .instagram a { width: 20px; }
      .youtube a { width: 26px; }
      .facebook a { width: 28px; margin: 0 -2px; }
      .note a { width: 36px; margin: 0 -8px; }
    }
    small {
      display: block;
      text-align: center;
      margin-top: 60px;
      color: #fff;
      font-size: 11px;
    }
  }
}

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