:root {
  --text-color: #000;
  --bg-color: #fff;
  --font-size: 1.6rem;
  --wrapper-padding-inline: 3rem;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-size: 62.5%;
  line-height: 1.7;
  scrollbar-gutter: stable;
}

body {
  color: var(--text-color);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  margin: 0;
  font-size: var(--font-size);
  min-height: 100dvh;
  min-width: 320px;
  overflow-x: hidden;
}

p,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

dt,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

picture,
figure {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

.wrapper {
  max-width: calc(var(--wrapper-padding-inline) + 100rem + var(--wrapper-padding-inline));
  margin: 0 auto;
  padding: 3em var(--wrapper-padding-inline);
  @media (min-width: 768px) {
    padding-block: 8em;
  }
}

@media (max-width: 767px) {
  .hidden-sm {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hidden-md {
    display: none !important;
  }
}

.first-view {
  background-image: url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-first-view.webp");
  background-size: cover;
  background-position: center;

  .wrapper {
    max-width: 100%;
    height: 100%;
    padding: 0;

    @media (min-width: 768px) {
      padding-inline: var(--wrapper-padding-inline);
      max-width: calc(var(--wrapper-padding-inline) + calc(100rem / 1.75) + var(--wrapper-padding-inline));
    }

    @media (min-width: 1024px) {
      max-width: calc(var(--wrapper-padding-inline) + calc(190.8rem / 2) + var(--wrapper-padding-inline));
    }
  }

  @media (min-width: 571px) {
    background-image: url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-first-view_lg.webp");
  }

  picture {
    display: block;
  }
}

.main-section-1 {
  @media (min-width: 768px) {
    background-image: url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-section-1_lg.webp");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: calc(657.6rem / 2);
  }

  .wrapper {
    @media (max-width: 767px) {
      padding-inline: 0;
    }
    @media (min-width: 768px) {
      max-width: calc(var(--wrapper-padding-inline) + calc(129.2rem / 2) + var(--wrapper-padding-inline));
    }
  }

  picture {
    display: block;
  }

  .button {
    text-align: center;
    margin-top: 2em;
    @media (max-width: 767px) {
      padding-inline: 2.5rem;
    }
  }
}

.main-section-2 {
  background-image: linear-gradient(to right, rgba(250, 77, 109, 0.1), rgba(95, 107, 241, 0.1));
  display: grid;
  grid-template-rows: 0fr;
  /*opacity: 0;*/
  transition: 1s ease-in-out;
  &.is-open {
    grid-template-rows: 1fr;
    /*opacity: 1;*/
  }

  .inner {
    overflow-y: hidden;
  }

  .wrapper {
    @media (max-width: 767px) {
      padding-inline: 0;
    }
    @media (min-width: 768px) {
      max-width: calc(var(--wrapper-padding-inline) + calc(150rem / 2) + var(--wrapper-padding-inline));
      padding-block: 5em;
    }
  }

  .button {
    text-align: center;
    margin-top: 2em;
    @media (max-width: 767px) {
      padding-inline: 2.5rem;
    }
  }
}

.video-section {
  background-size: 18px auto, cover, 18px auto;
  background-position: bottom center, center center, top center;
  background-repeat: repeat-x, no-repeat, repeat-x;
  background-image: url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-border.png"), url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-video-section.webp"), url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-border.png");

  .wrapper {
    padding-block: 4em;
  }

  h3 {
    line-height: 1;
    text-align: center;
  }

  .img-text-video-section {
    max-width: calc(55.7rem / 2);
    width: 100%;
  }

  .video-container {
    --border-color: #cc6699;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    margin-top: 1.5em;
    position: relative;
    max-width: 44.2rem;
    width: 100%;
    margin-inline: auto;

    span {
      position: absolute;
      width: 2.2rem;
      aspect-ratio: 1;
      border: 5px solid var(--border-color);
      z-index: -1;

      &:nth-child(1) {
        top: 0;
        left: 0;
        border-bottom: 0;
        border-right: 0;
      }

      &:nth-child(2) {
        top: 0;
        right: 0;
        border-bottom: 0;
        border-left: 0;
      }

      &:nth-child(3) {
        bottom: 0;
        left: 0;
        border-top: 0;
        border-right: 0;
      }

      &:nth-child(4) {
        bottom: 0;
        right: 0;
        border-top: 0;
        border-left: 0;
      }
    }
  }

  iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    width: 100%;
    height: auto;
    vertical-align: middle;
  }
}

.live-information {
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  background-image: url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-live-information.webp");
  @media (min-width: 768px) {
    background-image: url("https://sbisec.akamaized.net/sbisec/images/static/2025/music_bank_cp251024_bg-live-information_lg.webp");
  }

  .wrapper {
    padding-block: 3em;
  }

  .inner {
    --bg-color: #fff;
    background-color: var(--bg-color);
    padding: 3em 2em;
    border: 1px solid #3399cc;
    display: grid;
    place-content: center;
  }

  h3 {
    text-align: center;
    line-height: 1;
  }

  .img-text-live-information {
    max-width: calc(67.3rem / 2);
    width: 100%;
  }

  p {
    font-size: clamp(1rem, calc(10vw / 3.2), 1.7rem);
    max-width: 51em;
    margin-top: 2em;
  }
}

.how-to-entry {
  --bg-color: #000;
  --font-size: 1.4rem;

  background-image: linear-gradient(to right, rgba(250, 77, 109, 0.1), rgba(95, 107, 241, 0.1));
  font-size: var(--font-size);
  color: var(--text-color);

  h3 {
    --text-color: #5f6ff1;
    --font-size: 3.2rem;
    font-size: var(--font-size);
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
  }

  ol {
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
    list-style: none;
    padding-left: 0;
    @media (min-width: 768px) {
      margin-top: 5rem;
    }

    li {
      position: relative;

      &:not(:first-child) {
        margin-top: 6rem;
      }

      &:not(:last-child) {
        &::after {
          background-color: #cc6699;
          content: "";
          width: 4.8rem;
          height: 2.9rem;
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translate(-50%, 150%);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
        }
      }
    }
  }

  .item-step {
    --bg-color: #fff;
    background-color: var(--bg-color);
    border: 1px solid #cc6699;
    padding: 1.5em 2.2rem 4rem;
  }

  p {
    --font-size: clamp(1.1rem, calc(11vw / 3.2), 1.3rem);
    text-align: left;
    margin-inline: auto;
    max-width: max-content;
    font-size: var(--font-size);

    &.text-button-top {
      --font-size: clamp(1.3rem, calc(13vw / 3.2), 2rem);
      font-weight: 600;
      margin-top: 1.5rem;
      font-size: var(--font-size);
      letter-spacing: calc(30rem / 1000);
      line-height: 1.3;
    }

    &.text-step1 {
      margin-top: 1em;
      @media (min-width: 768px) {
        text-align: center;
      }
    }

    &.text-step3 {
      margin-top: 1.2em;
    }
  }

  .link {
    --text-color: #5f6ff1;
    color: var(--text-color);
  }

  .img-text-step01,
  .img-text-step02,
  .img-text-step03 {
    max-width: calc(80.6rem / 2);
    width: 100%;
    @media (min-width: 768px) {
      max-width: calc(80.4rem / 2);
    }
  }
}

.campaign-info {
  --text-color: #585858;
  --bg-color: #706f6f;
  --border-color: #a5a5a5;
  --font-size: 1.4rem;

  font-size: var(--font-size);
  background-color: #fff;
  color: var(--text-color);

  h3 {
    --font-size: 3.2rem;
    font-size: var(--font-size);
    color: var(--text-color);
    text-align: center;
  }

  dl {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1em;
    @media (min-width: 768px) {
      margin-top: 3.5em;
    }

    dt {
      --text-color: #fff;
      --font-size: 2rem;
      font-size: var(--font-size);
      color: var(--text-color);
      background-color: var(--bg-color);
      text-align: center;
      font-weight: 600;
      padding: 0.2em 1em;
    }

    dd {
      --font-size: 1.2rem;
      font-size: var(--font-size);
      padding: 1em 1.5em;
      margin-left: 0;
      @media (min-width: 768px) {
        --font-size: 1.4rem;
        padding: 1em 3em;
      }
    }
  }
}

.footer {
  --background-color: #f0f0f0;
  --font-size: 1.2rem;

  font-size: var(--font-size);
  background-color: var(--background-color);

  @media (min-width: 768px) {
    --font-size: 1rem;
  }

  .wrapper {
    padding-inline: 3.5rem;
    @media (min-width: 768px) {
      padding-block: 6em;
    }
  }

  p {
    line-height: 1.5;

    &.footer-info {
      margin-top: 4em;
      line-height: 1.7;
    }

    &.copyright {
      margin-top: 4em;
      text-align: center;
      line-height: 1.7;

      small {
        font-size: 100%;
      }
    }
  }

  h4 {
    &:not(:first-child) {
      margin-top: 2em;
    }
  }
}

.button {
  margin-top: 1em;
}

.btn-entry {
  --text-color: #fff;
  --font-size: clamp(1.5rem, calc(15vw / 3.2), 2.6rem);

  color: var(--text-color);
  font-size: var(--font-size);
  font-weight: 600;
  line-height: 1.2;
  border-radius: 100vw;
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.1em center, center center;
  background-size: 4rem auto, 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ctitle%3Eアセット 430%3C/title%3E%3Crect width='48' height='48' fill='none'/%3E%3Cpath d='M21,15l7.45,7.45a2.2,2.2,0,0,1,0,3.1L21,33' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E"), linear-gradient(to right, rgba(250, 77, 109, 1), rgba(95, 107, 241, 1));
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.6em 1.5em 0.6em 1em;
  text-decoration: none;
  width: 100%;
  max-width: 15em;
  letter-spacing: calc(160rem / 1000);

  @media (min-width: 768px) {
    --font-size: 2.6rem;
    background-size: 6rem auto, 100% 100%;
    padding-right: 1.5em;
  }
}

.btn-primary {
  --bg-color: #fa4d6d;
  --text-color: #fff;
  --font-size: clamp(1.8rem, calc(18vw / 3.2), 2.6rem);

  background-color: var(--bg-color);
  font-size: var(--font-size);
  color: var(--text-color);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.5em 1em;
  border-radius: 1rem;
  width: 100%;
  cursor: pointer;
  @media (min-width: 768px) {
    width: 45rem;
  }

  &.icon {
    position: relative;
    padding-right: 2em;

    &::before,
    &::after {
      position: absolute;
      top: 50%;
      right: 0.5em;
      content: "";
      width: 2rem;
      height: 2px;
      background-color: #fff;
      transition: 0.2s ease-in-out;
    }

    &::before {
      transform: translate(-50%, -50%);
    }

    &::after {
      transform: translate(-50%, -50%) rotate(-90deg);
    }
  }

  &.is-active {
    &.icon {
      &::after {
        opacity: 0;
      }
    }
  }
}
