@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap");

:root {
  --lp-text-black: #2f2f2f;
  --lp-base-black: #000000;
  --lp-base-white: #ffffff;
  --lp-base-gray01: #d9d9d9;
  --lp-base-primary: #6e0268;
  --lp-base-secondary: #a73190;
  --lp-base-gold: #b9a673;
  --lp-base-red: #c50b0b;
  --lp-base-gk1st: #639ec3;

  --lp-btn-platinum: #00b1b9;
  --lp-btn-sanga_crew: #ff6666;

  --lp-font-en: "Rajdhani", sans-serif;
}

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-size: 1.6rem;
  font-optical-sizing: auto;
  font-feature-settings: "palt";
  line-height: 1.6;
  @media (width < 768px) {
    font-size: 1.4rem;
  }
}

main {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  overflow: clip;
  background: var(--lp-base-primary);
  div {
    box-sizing: border-box;
  }
  img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .d-flex {
    display: flex;
  }
  h3.text-head {
    object-fit: cover;
    text-align: center;
    background: var(--lp-base-black);
    padding: 0.8rem;
    font-size: 1.8rem;
    color: var(--lp-base-white);
    margin-bottom: 0;
  }
  .narrow {
    @media (768px <= width) {
      width: 85%;
      margin-inline: auto;
    }
  }
}

section {
  box-sizing: border-box;
  position: relative;
  color: var(--lp-base-white);
  clip-path: inset(0);
  width: 100%;
  height: 100%;
  @media (768px <= width) {
    padding: 10rem 5rem;
  }
  @media (width < 768px) {
    padding: 4rem 1.6rem;
  }
  .section-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    @media (768px <= width) {
      background-image: url(../img/bg-base-pc.webp);
      background-position: center center;
    }
    @media (width < 768px) {
      background-image: url(../img/bg-base-sp.webp);
      background-position: bottom center;
    }
  }
  .inner {
    margin-inline: auto;
    @media (768px <= width) {
      width: 80%;
      max-width: 120rem;
    }
    @media (width < 768px) {
      padding: 0;
    }
  }
  .section-title {
    text-align: center;
    margin-bottom: 2.4rem;
    h2 {
      font-family: var(--lp-font-en);
      font-weight: 500;
      font-size: 8rem;
      line-height: 1;
      @media (width < 768px) {
        font-size: 16vw;
        border: none;
        margin-bottom: 0;
      }
    }
    p {
      font-size: 1.2rem;
      font-weight: bold;
      line-height: 1.24;
      letter-spacing: 0.15rem;
      @media (width < 768px) {
        font-size: 2.4vw;
      }
    }
  }
  .attention-list {
    li {
      text-indent: -1.25em;
      padding-left: 1.25em;
      &::before {
        content: "※";
        padding-right: 0.25em;
      }
      &:not(:last-child) {
        margin-bottom: 0.25rem;
      }
    }
  }
}

/* メインビジュアル */
.mv-section {
  padding: 0;
  line-height: 0;
}

/* コンセプト */
.concept-section {
  position: relative;
  color: var(--lp-base-white);
  .section-bg-wrapper {
    @media (768px <= width) {
      background-image: url(../img/bg-concept-pc.webp);
    }
    @media (width < 768px) {
      background-image: url(../img/bg-concept-sp.webp);
      background-position: center center;
    }
  }
  .inner {
    position: relative;
    z-index: 10;
  }
  .concept-text {
    margin-bottom: 4rem;
    @media (768px <= width) {
      font-size: 2rem;
      font-style: normal;
      line-height: 220%;
      letter-spacing: 0.5rem;
      text-align: center;
      p:not(:last-child) {
        margin-bottom: 1rem;
      }
      p:first-child {
        font-weight: bold;
        font-size: 3.2rem;
        line-height: 240%;
      }
    }
    @media (width < 768px) {
      font-size: 4.2vw;
      font-style: normal;
      line-height: 220%;
      letter-spacing: 0.5rem;
      p:not(:last-child) {
        margin-bottom: 1rem;
      }
      p:first-child {
        text-align: center;
        font-weight: bold;
        font-size: 7vw;
        line-height: 240%;
      }
    }
  }

  /* スケジュール */
  .schedule-wrapper {
    .schedule-list {
      margin-bottom: 4rem;
      div {
        display: table;
        width: 100%;
        border-bottom: 1px solid var(--lp-base-white);
        background: #ffffff20;
        dt,
        dd {
          text-align: left;
          padding: 1.2rem 2rem;
          display: table-cell;
          font-weight: bold;
          font-size: 1.6rem;
          @media (width < 768px) {
            padding: 1.2rem;
          }
        }
        dt {
          width: 40%;
        }
        dd {
          width: 60%;
        }
      }
    }
  }
}

/* プレゼント */
.present-section {
  color: var(--lp-base-black);
  .section-bg-wrapper {
    @media (768px <= width) {
      background-image: url(../img/bg-present-pc.webp);
    }
    @media (width < 768px) {
      background-image: url(../img/bg-present-sp.webp);
      background-position: center center;
    }
  }
  .text-head {
    font-weight: bold;
    span {
      font-family: var(--lp-font-en);
      font-size: 3rem;
      display: inline-block;
      padding: 0 0.5rem;
    }
  }
  .d-flex {
    margin-top: 2rem;
    @media (768px <= width) {
      gap: 2rem;
      align-items: center;
      .text-box {
        width: 65%;
      }
      .img-box {
        width: calc(100% - (45% + 2rem));
      }
    }
    @media (width < 768px) {
      flex-direction: column-reverse;
    }
  }
  .text-box {
    p:not(:last-child) {
      margin-bottom: 1rem;
    }
    @media (768px <= width) {
      line-height: 1.8;
      font-size: 1.8rem;
      letter-spacing: 0.125rem;
    }
    @media (width < 768px) {
      line-height: 1.6;
      font-size: 1.6rem;
      letter-spacing: 0.125rem;
    }
  }
}

/* 各ユニフォーム詳細 */
.uniform-section-wrapper {
  position: relative;
  .select-button {
    opacity: 0;
    transition: opacity 0.3s ease;
    &.is-visible {
      opacity: 1;
    }
    @media (768px <= width) {
      background: #4b0644c2;
      border-radius: 0 1rem 1rem 0;
      flex-direction: column;
      left: 0rem;
      top: 4rem;
      position: fixed;

      .nav-btn {
        position: relative;
        display: block;
        font-size: 2.4rem;
        font-family: var(--lp-font-en);
        font-weight: 700;
        color: var(--lp-base-white);
        padding: 1.5rem 2rem;
        border: none;
        cursor: pointer;
        transition:
          transform 0.2s ease,
          background-color 0.2s ease;
        span {
          position: relative;
          z-index: 10;
          color: var(--lp-base-white);
          display: block;
          line-height: 1;
        }
        &::before {
          content: "";
          inset: 0;
          position: absolute;
          top: 0;
          right: 0;
          background: var(--lp-base-white);
          border-radius: 0 1rem 1rem 0;
          transform: scaleX(0);
          opacity: 0;
          transform-origin: left center;
          transition: all 0.2s ease;
        }
        &.is-active {
          span {
            color: var(--lp-base-primary);
          }
          &::before {
            opacity: 1;
            transform: scaleX(100%);
          }
        }
      }
    }
    @media (width < 768px) {
      position: fixed;
      bottom: 0rem;
      display: flex;
      width: 100%;
      height: 5.5rem;
      border-radius: 1rem 1rem 0 0;
      border-top: 2px solid #9b008b99;
      border-right: 2px solid #9b008b99;
      border-bottom: 2px solid #9b008b99;
      background: #7f0072ec;
      .nav-btn {
        color: var(--lp-base-white);
        width: calc(100% / 3);
        padding: 0 1.5rem;
        display: block;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: left;
        border-radius: 1rem 1rem 0 0;
        p {
          text-align: left;
        }
        span {
          font-family: var(--lp-font-en);
          display: block;
          line-height: 1;
          font-weight: bold;
        }
        &.is-active {
          color: var(--lp-base-primary);
          background: var(--lp-base-white);
          box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
        }
      }
    }
  }
}

.uniform-section {
  @media (768px <= width) {
    padding: 4rem 4rem 8rem;
  }
  @media (width < 768px) {
    padding: 3rem 1.6rem 8rem;
  }
  .inner {
    position: relative;
    z-index: 10;
    /* clip-path: inset(0); */
  }
  h3 {
    border: none;
    width: 100%;
    margin: 0 auto 4rem;
    @media (width < 768px) {
      width: 95%;
    }
  }
  .d-flex {
    @media (768px <= width) {
      flex-direction: row;
      gap: 6rem;
      .uniform-item {
        width: 45%;
      }
      .text-item {
        width: calc(55% - 6rem);
      }
    }
    @media (width < 768px) {
      flex-direction: column;
    }
  }
  .text-item {
    display: flex;
    flex-direction: column;
    gap: 6.4rem;
    align-items: center;
  }
  .number-area {
    width: 90%;
    border: 2px solid var(--lp-base-black);
    padding: 2.4rem;
  }
  .detail-area {
    width: 100%;
  }
  .size-box {
    color: var(--lp-base-black);
    display: flex;
    align-items: center;
    padding: 2rem 1.5rem;
    justify-content: space-between;
    background-color: #d9d9d9;

    font-weight: bold;
    dt {
      font-size: 1.6rem;
      letter-spacing: 0.1rem;
    }
    dd {
      font-size: 1.5rem;
      span {
        padding-left: 1rem;
      }
    }
    @media (width < 768px) {
      dt {
        font-size: 3vw;
      }
      dd {
        font-size: 3.4vw;
      }
    }
  }
  .price-box {
    color: var(--lp-base-white);
    margin-bottom: 2rem;
    border-right: 1px solid var(--lp-base-gray01);
    border-left: 1px solid var(--lp-base-gray01);
    div {
      display: table;
      width: 100%;
    }
    dt,
    dd {
      padding: 1.2rem 1.5rem;
      display: table-cell;
      vertical-align: middle;
      border-bottom: 1px solid var(--lp-base-gray01);
    }
    dt {
      width: 32%;
      font-weight: bold;
      font-size: 1.4rem;
    }
    dd {
      width: calc((100% - 32%) / 2);
      &:first-of-type {
        background-color: var(--lp-base-black);
      }
      span {
        display: inline-block;
        font-size: 3rem;
        font-family: var(--lp-font-en);
        font-weight: 500;
        &::first-letter {
          font-size: 2rem;
        }
      }
      &:not(span) {
        font-size: 1.2rem;
        font-weight: 600;
      }
    }
    .price-header dd {
      font-size: 1.3rem;
      font-weight: bold;
    }
    @media (width < 768px) {
      dt,
      dd {
        padding: 1rem;
      }
      dt {
        width: 26%;
        font-size: 2.5vw;
        white-space: nowrap;
      }
      dd {
        width: calc((100% - 26%) / 2);
        span {
          font-size: 6vw;
          &::first-letter {
            font-size: 4vw;
          }
        }
        &:not(span) {
          font-size: 2vw;
        }
      }
      .price-header dd {
        font-size: 2.5vw;
      }
    }
  }
  .schedule-box {
    margin-bottom: 2rem;
  }
  .btn-wrapper {
    text-align: center;
    .buy-btn {
      display: inline-flex;
      width: 80%;
      background: var(--lp-base-white);
      padding: 1.5rem 1rem;
      border-radius: 0.5rem;
      font-weight: bold;
      align-items: center;
      justify-content: center;
      margin: 0.5rem;
      overflow: clip;
      box-shadow: 0 2px 6px #3c3c3ca6;
      border: 2px solid var(--lp-base-white);
      transition: transform 0.2s ease;
      span {
        color: var(--lp-base-primary);
        text-align: center;
        display: inline-block;
        font-size: 1.5rem;
        position: relative;
        z-index: 10;
        transition: color 0.2s ease;
        &:after {
          content: "";
          display: inline-block;
          width: 0.9rem;
          aspect-ratio: 1 / 1;
          background-color: var(--lp-base-primary);
          border-radius: 50%;
          margin-left: 0.5rem;
          position: relative;
          z-index: -1;
        }
      }
      &.platinum {
        span {
          color: var(--lp-btn-platinum);
          &:after {
            background-color: var(--lp-btn-platinum);
          }
        }
      }
      &.crew {
        span {
          color: var(--lp-btn-sanga_crew);
          &:after {
            background-color: var(--lp-btn-sanga_crew);
          }
        }
      }
      &:hover {
        border-color: var(--lp-base-primary);
        span {
          color: var(--lp-base-white);

          &:after {
            transform: scale(200);
            transition: transform 1.4s ease;
          }
        }
      }
      &:active {
        box-shadow: none;
        transform: translateY(4px);
      }
    }
    @media (width < 768px) {
      .buy-btn {
        width: 70%;
      }
    }
  }
}

.uniform-section.active {
  transform: translateY(0);
  opacity: 1;
}

#fp_1st {
  .number-area {
    background-color: var(--lp-base-primary);
  }
  .section-bg-wrapper {
    @media (768px <= width) {
      background-image: url(../img/bg-fp1st-pc.webp);
    }
    @media (width < 768px) {
      background-image: url(../img/bg-fp1st-sp.webp);
    }
  }
}

#fp_2nd {
  background-color: #eeeeee;
  .section-bg-wrapper {
    @media (768px <= width) {
      background-image: url(../img/bg-fp2nd-pc.webp);
    }
    @media (width < 768px) {
      background-image: url(../img/bg-fp2nd-sp.webp);
    }
  }
  .price-box {
    color: var(--lp-base-black);
    dd:first-of-type {
      color: var(--lp-base-white);
      background-color: var(--lp-base-primary);
    }
  }
  .number-area {
    background-color: #eeeeee;
  }
}

#gk_1st {
  .section-bg-wrapper {
    @media (768px <= width) {
      background-image: url(../img/bg-gk1st-pc.webp);
    }
    @media (width < 768px) {
      background-image: url(../img/bg-gk1st-sp.webp);
    }
  }
  background-color: var(--lp-base-gk1st);
  .price-box {
    color: var(--lp-base-black);
    dd:first-of-type {
      color: var(--lp-base-white);
      background-color: var(--lp-base-primary);
    }
  }
  .number-area {
    background-color: var(--lp-base-gk1st);
  }
}

/* 注意事項 */
.attention-section {
  position: relative;
  color: var(--lp-base-white);
  background-color: var(--lp-base-primary);
  &::before {
    content: "";
    inset: 0;
    position: absolute;
    left: 0;
    top: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    @media (768px <= width) {
      background-image: url(../img/bg-base-pc.webp);
    }
    @media (width < 768px) {
      background-image: url(../img/bg-base-pc.webp);
    }
  }
  .inner {
    position: relative;
    z-index: 10;
  }
  .attention-list-wrapper {
    position: relative;
    padding: 3.2rem;
    &::before {
      content: "";
      inset: 0;
      position: absolute;
      top: 0;
      left: 0;
      background: #000000;
    }
  }
  .attention-list {
    position: relative;
    z-index: 10;
    font-size: 1.4rem;
  }
}

/* 親要素の重なりと立体感を設定 */
.uniform-item {
  position: relative;
  perspective: 1000px;
  .sticky-item {
    position: sticky;
    top: 4rem;
  }
  .rotate-button {
    display: block;
    width: 6rem;
    aspect-ratio: 1 /1;
    z-index: 100;
    position: absolute;
    background-color: var(--lp-base-white);
    border-radius: 1rem;
    right: 0;
    bottom: 0.25rem;
    z-index: 0;
    &::after {
      content: "";
      inset: 0;
      left: 0;
      background: url(../img/btn.svg) no-repeat center center;
      background-size: 60%;
      z-index: 10;
      position: absolute;
    }
    &:hover {
      transform: scale(120%);
      background-color: #b9a673;
    }
  }

  @media (width < 768px) {
    margin-bottom: 4rem;
    .rotate-button {
      width: 4rem;
      bottom: 0.5rem;
    }
  }
}

/* フロントとバック共通のスタイル */
.uniform-image {
  width: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease; /* ひっくり返るスピード */

  img {
    transform: scale(115%);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.493));
  }
}

/* 初期状態の配置 */
.uniform-image.front {
  transform: rotateY(0deg);
}

.uniform-image.back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg); /* 最初から裏返しておく */
}

/* --- ボタンが押された時（is-flippedクラスがついた時） --- */
.uniform-item.is-flipped .front {
  transform: rotateY(-180deg); /* 表面が裏返る */
}

.uniform-item.is-flipped .back {
  transform: rotateY(0deg); /* 裏面が正面を向く */
}

[data-animation="slideUp"] {
  opacity: 0;
  transform: translateY(15%);
  transition:
    opacity 0.4s ease-in,
    transform 0.4s ease-in;

  &.isAnimated {
    transform: translateY(0);
    opacity: 1;
  }
}

[data-animation="section-title"] {
  h2 {
    opacity: 0;
    transform: translateY(15%);
    transition:
      opacity 0.4s ease-in,
      transform 0.4s ease-in;
  }
  p {
    opacity: 0;
    transform: translateY(-15%);
    transition:
      opacity 0.4s 0.4s ease-in,
      transform 0.4s 0.4s ease-in;
  }

  &.isAnimated {
    h2,
    p {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

[data-animation="concept-text"] {
  p {
    transform: translateY(30%);
    opacity: 0;
    transition:
      opacity 0.4s ease-in,
      transform 0.4s ease-in;
    transition-delay: calc((sibling-index() - 1) * 0.25s);
  }

  &.isAnimated {
    p {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

[data-animation="concept-schedule"] {
  div {
    transform: translateY(50%);
    opacity: 0;
    transition:
      opacity 0.4s ease-in,
      transform 0.4s ease-in;
    transition-delay: calc((sibling-index() - 1) * 0.3s);
  }

  &.isAnimated {
    div {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

[data-animation="uniform-title"] {
  opacity: 0;
  transform: translateY(80%), scaleY(0);
  transform-origin: center top;
  transition:
    transform 0.4s ease-in,
    opacity 0.8s ease-in;
  transition-delay: 1.2s;
  &.isAnimated {
    opacity: 1;
    transform: translateY(0), scale(1);
  }
}

[data-animation="attention-list"] {
  &::before {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center bottom;
    transition: all 1s ease-in;
    transition-delay: 1s;
  }
  .attention-list li {
    transform: translateY(30%);
    opacity: 0;
    transition:
      opacity 0.4s ease-in,
      transform 0.4s ease-in;
    transition-delay: calc((sibling-index() - 1) * 0.1s);
  }

  &.isAnimated {
    &::before {
      opacity: 0.2;
      transform: scaleY(1);
    }
    .attention-list li {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(15%);
  }
  100% {
    transform: translateY(0);
  }
}
