/* ヘッダー */
body {
  position: relative;
}

.header__logo-box {
  width: 11.4vw;
  position: absolute;
  top: 1.9vw;
  left: 2vw;
  z-index: 999;
}

.header__logo {
  width: 100%;
  height: auto;
}

/* トップビュー */

#topText001 {
  display: inline-block;
  transform: translateY(0vw);
  letter-spacing: 5%;
}

#topText002 {
  display: inline-block;
  transform: translateY(2vw); /* 上に詰めたいとき */
}

.topview__ttl-inner {
  display: inline-block;
  line-height: 1;
  transform: translateY(1vw); /* 調整 */
}

.topview {
  padding-top: 40px;
  overflow: hidden;
}

.topview__inner {
  padding: 0 1.5vw 2.7vw;
  overflow-x: hidden;
  overflow-y: clip;
}

.topview__box {
  padding-bottom: 53.6%;
  position: relative;
}

.topview__back-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.topview__back-img-sp {
  display: none;
  position: absolute;
}

.topview__text-box {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.topview__text-back {
  width: 35.3vw;
  height: 20.5vw;
  background-color: #ffffff;
  -webkit-mask: url(../images/topview/top-text-back-mask.png);
  -webkit-mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask: url(../images/topview/top-text-back-mask.png);
  mask-size: contain;
  mask-position: center center;
  mask-repeat: no-repeat;
}

.topview__ttl {
  text-align: center;
  font-size: 1.66vw;
  line-height: 1.4;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  color: #f0978a;
  font-feature-settings: "palt";
  padding-top: 3vw;
  margin-bottom: -2vw; /* ←ここが重要！ */
}

.topview__ttl-inner {
  display: inline-block;
  line-height: 1;
}

/* .topview__ttl {
  text-align: center;
  font-size: 1.66vw;
  line-height: 1.7;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  color: #f0978a;
  font-feature-settings: "palt";
  padding-top: 2.8vw;
  opacity: 0;
  -webkit-transition: all 0.8s ease-in-out 0.8s;
  transition: all 0.8s ease-in-out 0.8s;
} */

.topview__ttl.fadeInSlideUp {
  opacity: 1;
}

.topview__sub-ttl {
  line-height: 1.2;
  font-size: 2.52vw;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  letter-spacing: 0.042em;
  text-align: center;
  font-feature-settings: "palt";
  margin-top: 3vw;
  opacity: 0;
  -webkit-transition: all 0.8s ease-in-out 0.5s;
  transition: all 0.8s ease-in-out 0.5s;
}

.topview__sub-ttl.fadeInSlideUp {
  opacity: 1;
}

.topview__sub-ttl-large {
  font-size: 3.6vw;
}

.topview__sub-ttl-dunce {
  font-size: 3.06vw;
  letter-spacing: 0.051em;
  color: #f0978a;
}

.danceText.textRotate {
  display: inline-block;
  transform: rotate(0deg);
  -webkit-animation-name: danceText;
  -webkit-animation-duration: 5s;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  animation-name: danceText;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes danceText {
  0% {
    transform: rotate(0deg);
  }
  3% {
    transform: rotate(-20deg);
  }
  6% {
    transform: rotate(20deg);
  }
  9% {
    transform: rotate(-20deg);
  }

  12% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* スマホ */
.topview__sumaho-box {
  width: 6.7vw;
  position: absolute;
  bottom: -3.9%;
  left: 47%;
  transform: translateX(-50%);
  z-index: 100;
}

@keyframes bound {
  0% {
    transform: translateY(0vw);
  }
  88% {
    transform: translateY(0vw);
  }
  94% {
    transform: translateY(-3vw);
  }
  100% {
    transform: translateY(0vw);
  }
}

.topview__sumaho-box::before {
  content: "";
  display: inline-block;
  width: 83%;
  height: 70.1%;
  background-image: url(../images/topview/top-sumaho-boy.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: -2%;
  left: -67%;
  -webkit-animation-name: bound;
  -webkit-animation-duration: 4s;
  -webkit-animation-timing-function: ease-in;
  -webkit-animation-iteration-count: infinite;
  animation-name: bound;
  animation-duration: 4s;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

.topview__sumaho-box::after {
  content: "";
  display: inline-block;
  width: 85%;
  height: 53.5%;
  background-image: url(../images/topview/top-sumaho-zou.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: -2%;
  right: -68%;
  -webkit-animation-name: bound;
  -webkit-animation-duration: 4s;
  -webkit-animation-timing-function: ease-in;
  -webkit-animation-iteration-count: infinite;
  animation-name: bound;
  animation-duration: 4s;
  animation-timing-function: ease-in;
  animation-delay: 2s;
  animation-iteration-count: infinite;
}

.topview__sumaho {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 20;
}

.topview__sumaho-back {
  width: 95%;
  height: 95%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 10px;
  z-index: 10;
}

/* 亀 */
.topview__sumaho-kame {
  position: absolute;
  top: -3vw;
  left: 45%;
  transform: translateX(-50%);
  width: 7vw;
  height: auto;
}

/* タブレット */
.topview__tablet-box {
  width: 13.8vw;
  position: absolute;
  bottom: -3.9%;
  left: 19.5%;
  z-index: 100;
}

.topview__tablet {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 20;
}

.topview__tablet-back {
  width: 95%;
  height: 95%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 10px;
  z-index: 10;
}

.topview__tablet-dog-box {
  width: 6.1vw;
  position: absolute;
  top: -29%;
  left: -4%;
}

.topview__tablet-dog {
  width: 100%;
  height: auto;
}

.topview__oekaki-box {
  width: 16.1vw;
  height: auto;
  position: absolute;
  top: -71%;
  left: 13%;
}

.topview__oekaki {
  width: 100%;
  height: auto;
}

/* PC */
.topview__pc-box {
  width: 39.4vw;
  position: absolute;
  bottom: -3.9%;
  right: 6.1%;
  z-index: 100;
}

.topview__pc {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 20;
}

.topview__pc-back {
  width: 81%;
  height: 95%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 10px;
  z-index: 10;
}

.topview__neko-box {
  width: 5.8vw;
  position: absolute;
  top: -19%;
  left: 37%;
}

@keyframes fadeInOutVer2 {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.topview__neko001 {
  position: absolute;
  width: 100%;
  height: auto;
  opacity: 0;
  animation-name: fadeInOutVer2;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}

.topview__neko002 {
  position: absolute;
  width: 100%;
  height: auto;
  opacity: 0;
  animation-name: fadeInOutVer2;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-delay: 2s;
}

.topview__hata-box {
  width: 12.6vw;
  position: absolute;
  top: 0;
  right: -8.35vw;
}

.topview__hata {
  width: 100%;
  height: auto;
}

/* 太陽 */
.topview__sun-box {
  width: 14.9vw;
  height: 14.9vw;
  position: absolute;
  top: 3.7vw;
  left: 14.6%;
}

.topview__sun-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.topview__sun-face {
  width: 5.7vw;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topview__bird-box {
  width: 3.8vw;
  position: absolute;
  bottom: 30%;
  left: -16vw;
  opacity: 0;
  transition: all 0.4s;
  z-index: 100;
}

.topview__bird-box.fadeIn {
  opacity: 1;
}

.topview__bird {
  width: 3.8vw;
  height: auto;
}

.topview__bird002 {
  width: 3.8vw;
  position: absolute;
  top: 2vw;
  left: -1.8vw;
}

/* 雲 */
.topview__kumo001 {
  width: 9.1vw;
  height: auto;
  position: absolute;
  top: 15.5vw;
  left: 4.3%;
  opacity: 0;
}

.topview__kumo001.fadeInSlideFadeOut {
  -webkit-animation-name: fadeInSlideFadeOut001;
  animation-name: fadeInSlideFadeOut001;
  -webkit-animation-duration: 25s;
  animation-duration: 25s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-delay: 5s;
  animation-delay: 5s;
}

@keyframes fadeInSlideFadeOut001 {
  0% {
    left: 4.3%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  90% {
    left: 40%;
    opacity: 0;
  }
  100% {
    left: 40%;
    opacity: 0;
  }
}

.topview__kumo002 {
  width: 9.1vw;
  height: auto;
  position: absolute;
  top: 3.9vw;
  left: 34.1%;
  opacity: 0;
}

.topview__kumo002.fadeInSlideFadeOut {
  -webkit-animation-name: fadeInSlideFadeOut002;
  animation-name: fadeInSlideFadeOut002;
  -webkit-animation-duration: 28s;
  animation-duration: 28s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
}

@keyframes fadeInSlideFadeOut002 {
  0% {
    left: 34.1%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  90% {
    left: 60%;
    opacity: 0;
  }
  100% {
    left: 60%;
    opacity: 0;
  }
}

.topview__kumo003 {
  width: 9.1vw;
  height: auto;
  position: absolute;
  top: 7.3vw;
  right: 33.9%;
  opacity: 0;
}

.topview__kumo003.fadeInSlideFadeOut {
  -webkit-animation-name: fadeInSlideFadeOut003;
  animation-name: fadeInSlideFadeOut003;
  -webkit-animation-duration: 23s;
  animation-duration: 23s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
}

@keyframes fadeInSlideFadeOut003 {
  0% {
    right: 33.9%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  90% {
    right: 8%;
    opacity: 0;
  }
  100% {
    right: 8%;
    opacity: 0;
  }
}

.topview__kumo004 {
  width: 9.1vw;
  height: auto;
  position: absolute;
  top: 3.6vw;
  right: 19%;
  opacity: 0;
}

@keyframes fadeInSlideFadeOut004 {
  0% {
    right: 19%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  90% {
    right: -6%;
    opacity: 0;
  }
  100% {
    right: -6%;
    opacity: 0;
  }
}

.topview__kumo004.fadeInSlideFadeOut {
  -webkit-animation-name: fadeInSlideFadeOut004;
  animation-name: fadeInSlideFadeOut004;
  -webkit-animation-duration: 28s;
  animation-duration: 28s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-delay: 10s;
  animation-delay: 10s;
}

/* 家 */
.topview__house-box {
  width: 21.9vw;
  position: absolute;
  bottom: -7%;
  left: -2.5vw;
}

.topview__house {
  width: 100%;
  height: auto;
}

/* 花 */
.topview__flower001-box {
  width: 4.74vw;
  position: absolute;
  bottom: -4.6%;
  left: -0.5vw;
}

@keyframes sideSwing {
  0% {
    transform: scale(1, 1);
  }
  90% {
    transform: scale(1, 1);
  }
  95% {
    transform: scale(0.8, 0.8);
  }
  100% {
    transform: scale(1, 1);
  }
}

.topview__flower001-box::before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 4vw;
  background-image: url(../images/topview/top-flower001-flower.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -96%;
  left: 0;
  transform-origin: 50% 100%;
  -webkit-animation-name: sideSwing;
  -webkit-animation-duration: 5s;
  -webkit-animation-iteration-count: infinite;
  animation-name: sideSwing;
  animation-duration: 5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.topview__flower001 {
  width: 100%;
  height: auto;
}

.topview__flower002-box {
  width: 9.7vw;
  position: absolute;
  bottom: -4.6%;
  right: -0.3vw;
  z-index: 200;
}

.topview__flower002-box::before {
  content: "";
  width: 51%;
  height: 4vw;
  background-image: url(../images/topview/top-flower002-flower001.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -100%;
  left: 0;
  transform-origin: 50% 100%;
  -webkit-animation-name: sideSwing;
  -webkit-animation-duration: 5s;
  -webkit-animation-iteration-count: infinite;
  animation-name: sideSwing;
  animation-duration: 5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.topview__flower002-box::after {
  content: "";
  width: 50%;
  height: 4vw;
  background-image: url(../images/topview/top-flower002-flower002.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -109%;
  right: 0;
  transform-origin: 50% 100%;
  -webkit-animation-name: sideSwing;
  -webkit-animation-duration: 5s;
  -webkit-animation-iteration-count: infinite;
  animation-name: sideSwing;
  animation-duration: 5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.topview__flower002 {
  width: 100%;
  height: auto;
}

.topview__chicken-box {
  width: 12.6vw;
  position: absolute;
  bottom: -3.4vw;
  left: 27.1%;
  z-index: 110;
}

.topview__chicken {
  width: 100%;
  height: auto;
}

/* 女の子とうさぎ */
.topview__girl-box {
  width: 8vw;
  height: auto;
  position: absolute;
  bottom: 20.9vw;
  right: 28%;
}

@keyframes sideSwing {
  0% {
    transform: translate(-3px, 0px) rotate(-3deg);
  }
  50% {
    transform: translate(3px, 0px) rotate(3deg);
  }
  100% {
    transform: translate(-3px, 0px) rotate(-3deg);
  }
}
.topview__girl {
  width: 100%;
  height: auto;
  transform-origin: 50% 40%;
  animation-name: sideSwing;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* 木 */
.topview__tree-box {
  width: 15.1vw;
  position: absolute;
  bottom: 22vw;
  right: 4%;
}

.topview__tree {
  width: 100%;
  height: auto;
}

/* 虫 */

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.topview__tree-box::before {
  content: "";
  display: inline-block;
  width: 4vw;
  height: 4vw;
  background-image: url(../images/topview/top-tentoumusi.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 29.7%;
  left: -28.7%;
  opacity: 0;
  animation: fadeInOut 6s infinite 1s;
}

.topview__tree-box::after {
  content: "";
  display: inline-block;
  width: 2.8vw;
  height: 2.8vw;
  background-image: url(../images/topview/top-tyoutyo.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 7.6%;
  left: -55.1%;
  opacity: 0;
  animation: fadeInOut 6s infinite 2.5s;
}

@keyframes insertIn {
  0% {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  51% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.topview__onpu001-box {
  width: 2.4vw;
  height: 2.4vw;
  background-image: url(../images/topview/top-onpu001.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -0.8vw;
  left: -1vw;
  opacity: 0;
  animation-name: insertIn;
  animation-duration: 4s;
  animation-delay: 0.8s;
  animation-iteration-count: infinite;
}

.topview__onpu002-box {
  width: 1.68vw;
  height: 1.68vw;
  background-image: url(../images/topview/top-onpu002.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -0.1vw;
  right: 1.7vw;
  opacity: 0;
  animation-name: insertIn;
  animation-duration: 4s;
  animation-delay: 2.8s;
  animation-iteration-count: infinite;
}

/* テキスト「オドル」 */

.danceText:first-of-type {
  position: relative;
  top: -0.1vw;
}

.danceText:nth-of-type(2) {
  position: relative;
  top: 0.3vw;
}

.danceText:last-of-type {
  position: relative;
  top: -0.6vw;
}

/* ----------------------------------------------------- */

/* レスポンシブ */

/* ----------------------------------------------------- */

@media screen and (max-width: 768px) {
  .header__logo-box {
    width: 17.4vw;
  }

  .topview {
    padding-top: 13px;
  }

  .topview__box {
    height: 94vw;
    padding-bottom: 0;
  }

  .topview__back-img {
    display: none;
  }

  .topview__back-img-sp {
    display: block;
    width: 100%;
    height: 100%;
  }

  .topview__text-box {
    top: 37%;
  }

  .topview__text-back {
    width: 68vw;
    height: 39.5vw;
  }

  .topview__ttl {
    font-size: 2.9vw;
    padding-top: 5.5vw;
  }

  .topview__sub-ttl {
    font-size: 4.8vw;
    margin-top: 4vw;
  }

  #topText002 {
    transform: translateY(3vw);
  }

  .topview__sub-ttl-large {
    font-size: 6.7vw;
  }

  .topview__sub-ttl-dunce {
    font-size: 5.7vw;
  }

  .topview__pc-box {
    width: 43.4vw;
    height: auto;
    right: 0.1%;
    bottom: 0;
  }

  .topview__neko-box {
    top: -17%;
    left: 20%;
  }

  .topview__tablet-box {
    width: 16.5vw;
    left: 14.5%;
    bottom: 0;
  }

  .topview__oekaki-box {
    top: -59%;
  }

  .topview__tablet-dog-box {
    top: -24.5%;
  }

  .topview__sumaho-box {
    width: 10.7vw;
    left: 46%;
    bottom: 0;
    z-index: 110;
  }

  .topview__sumaho-kame {
    top: -5vw;
    width: 11vw;
  }

  .topview__sun-box {
    top: 5.7vw;
    left: 10.6%;
  }

  .topview__house-box {
    width: 21.9vw;
    position: absolute;
    bottom: -1.9%;
    left: -4.5vw;
    z-index: 10;
  }

  .topview__tree-box {
    width: 19.1vw;
    position: absolute;
    bottom: 24.3vw;
    right: 9%;
    z-index: 999;
  }

  .topview__tree-box::after {
    top: -11.4%;
    left: 11.9%;
  }

  .topview__girl-box {
    width: 11vw;
    position: absolute;
    bottom: 22.2vw;
    right: 40%;
    z-index: 0;
  }

  .topview__flower001-box {
    bottom: -0.3%;
    left: -1.6vw;
    z-index: 1;
  }

  .topview__flower001-box::before {
    top: -74%;
  }

  .topview__flower002-box {
    bottom: -0.6%;
    right: -2vw;
    z-index: 1;
  }

  .topview__flower002-box::before {
    top: -67%;
  }

  .topview__flower002-box::after {
    top: -67%;
  }

  .topview__chicken-box {
    bottom: -1.4vw;
    left: 22.1%;
  }
}
