:root {
  --content-width: 375px;
  --border-width: 16px;
  --bg-4-inner-height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Helvetica Neue", sans-serif;
  color: #fff;
  background: #0a0a14;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

main {
  box-sizing: content-box;
  border: var(--border-width) solid #000;
  border-radius: calc(20px + var(--border-width));
  width: var(--content-width);
  margin: 50px auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.7);
}
@media (max-width: 700px) {
  main {
    width: 100%;
    border: none;
    margin: auto;
    border-radius: unset;
  }
}

.section {
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* ====== 背景スタック（fixed, 各 bg は重ねて表示） ====== */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* pointer-events: none; */
}

.bg-layer {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  will-change: transform;
  height: 100%;
  opacity: 0;
}

.bg-layer.bg-1 {
  opacity: 1;
}

.bg-follow-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
}

.bg-left-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(50% - var(--content-width) / 2 - var(--border-width));
  height: 100%;
  z-index: 100;
  padding: 10px;
}

.bg-right-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(50% - var(--content-width) / 2 - var(--border-width));
  height: 100%;
  z-index: 100;
  padding: 10px;
}

.bg-1 {
  background-image: url(../images/intro/bg/bg_pc.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-1-img__logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.bg-1-img__cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.bg-1-img__logo {
  max-width: 340px;
}

.bg-1-img__cta {
  width: 100%;
  max-width: 400px;
}

.bg-1-img__img01 {
  max-width: 320px;
  position: absolute;
  bottom: -15px;
  right: -30px;
}

.bg-1-img__cta-btn {
  position: relative;
  display: block;
}

.bg-2 {
  background-image: url(../images/playland/bg/bg_pc.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.bg-2-img__img01 {
  max-width: min(208px, 15vw);
  position: absolute;
  top: -85px;
  right: 0;
  transform: rotate(-90deg);
}

.bg-2-img__img02 {
  max-width: min(153px, 7.5vw);
  /* max-width: min(153px, 11vw); */
  position: absolute;
  left: min(80px, 5vw);
  bottom: -70px;
  transform: rotate(-10deg);
}

.bg-2-img__img03 {
  max-width: min(389px, 25vw);
  position: absolute;
  bottom: -20px;
}

.bg-2-img__logo {
  max-width: 200px;
  margin-bottom: 20px;
}
.bg-2-img__logo--left {
  max-width: 393px;
  position: relative;
  z-index: 1;
}

.bg-2-img__img04--left {
  max-width: min(70px, 5vw);
  position: absolute;
  top: 90px;
  left: min(115px, 7vw);
}

.bg-2-img__img05--left {
  max-width: min(101px, 8vw);
  position: absolute;
  top: 150px;
  left: min(100px, 7vw);
  right: 0;
  margin: auto;
}

.bg-2-img__img04--right {
  max-width: min(65px, 4vw);
  position: absolute;
  left: min(100px, 7vw);
  top: 140px;
}

.bg-2-img__img05--right {
  max-width: min(75px, 5vw);
  position: absolute;
  right: min(120px, 8vw);
  bottom: 100px;
}

.bg-2-img__cta-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.bg-3 {
  background-image: url(../images/toystation/bg/bg_pc.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.bg-3-img__cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.bg-3-img__logo {
  max-width: min(340px, 23vw);
}

.bg-3::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/toystation/bg/bg-pc-02.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: upAndDown 5s infinite;
}

.bg-4 {
  background-image: url(../images/footer/bg/ptn.jpg);
  background-size: contain;
  background-position: center;
  background-repeat: repeat-x;
}

.bg-4__inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--bg-4-inner-height, 100%);
}

.bg-4-img__img01 {
  max-width: min(61px, 4vw);
  position: absolute;
  top: 100px;
  left: min(130px, 7vw);
}
.bg-4-img__img02 {
  max-width: min(37px, 3vw);
  position: absolute;
  top: 170px;
  left: min(80px, 5vw);
}
.bg-4-img__img03 {
  max-width: min(101px, 6vw);
  position: absolute;
  top: 0;
  left: 0;
  right: 100px;
  bottom: 0;
  margin: auto;
}
.bg-4-img__img04 {
  max-width: min(85px, 5vw);
  position: absolute;
  top: 350px;
  right: 50px;
  bottom: 0;
  margin: auto;
  transform: rotate(20deg);
}
.bg-4-img__img05 {
  max-width: min(74px, 5vw);
  position: absolute;
  top: 190px;
  left: 100px;
}
.bg-4-img__img06 {
  max-width: min(122px, 10vw);
  position: absolute;
  top: 20px;
  right: 50px;
}
.bg-4-img__img07 {
  max-width: min(129px, 10vw);
  position: absolute;
  top: 50px;
  right: 50px;
}
.bg-4-img__img08 {
  max-width: min(295px, 20vw);
  position: absolute;
  bottom: 10px;
  left: 50px;
}
.bg-4-img__img09-container {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: calc(50% - var(--content-width) / 2 - var(--border-width));
  height: fit-content;
}
.bg-4-img__img09 {
  max-width: min(224px, 15vw);
  display: block;
  margin: 0 auto;
  transform: translateY(110%);
}

.cta-btn-icon {
  max-width: 13px;
  position: absolute;
  top: 0;
  right: 25px;
  bottom: 0;
  margin: auto;
}

.is-visible .bg-4-img__img09 {
  animation: bounce 1.5s forwards;
}

.bg-container .cta-btn-icon {
  max-width: min(13px, 1vw);
  position: absolute;
  top: 0;
  right: min(31px, 3vw);
  bottom: 0;
  margin: auto;
}

.default-appear {
  transform: scale(0);
  transition: transform 0.4s ease-in-out;
}

.is-visible.default-appear {
  transform: scale(1);
}

.bg-4-img__img06 {
  animation-delay: 0s;
}
.bg-4-img__img07 {
  animation-delay: 0.5s;
}
.bg-4-img__img08 {
  animation-delay: 1s;
}

/* bg-2-img__img01 は元の rotate(-90deg) を維持したままシェイク */
@keyframes shake-img01 {
  0% {
    transform: rotate(-90deg);
  }
  50% {
    transform: rotate(-80deg);
  }
  100% {
    transform: rotate(-90deg);
  }
}
/* bg-2-img__img02 は元の rotate(-10deg) を維持したままシェイク */
@keyframes shake-img02 {
  0% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

.bg-2-img__img01 {
  animation: shake-img01 1.5s steps(1, end) infinite;
  animation-delay: 0s;
}
.bg-2-img__img02 {
  animation: shake-img02 1.5s steps(1, end) infinite;
  animation-delay: 0.5s;
}
.bg-2-img__img03 {
  animation: shake 1.5s steps(1, end) infinite;
  animation-delay: 1s;
}
