body {
    margin: 0;
    padding: 0;
    font-family: "Canva Sans", Arial, Helvetica, sans-serif;
}



.wrapper {
    position: relative;
}

svg {
    display: block;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
}



.scrollElement {
    position: absolute;
    height: 120000px;
    width: 100%;
    top: 0;
    z-index: 4;
}

.btn {
    position: fixed;
    bottom: 5%;
    right: 0px;
    transform: translateX(-50%);
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 0.5rem 0.7em;
    background-color: transparent;
    color: #ffffff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    transition: all .3s;
    z-index: 11;
}

.btn_works {
    left: 100px;
    right: unset;
    text-decoration: none;
}

.btn:hover {
    background: #ffffff;
    color: #1B1734;
}

/* MARK: ---0-490 Mobile */
@media (max-width: 490px) {

    #text,
    #arrow {
        transform-origin: 50% 50%;
        transform: translateY(-120px) scale(0.8);
    }

    #info2 {
        transform-origin: 50% 50%;
        transform: translateY(-120px) scale(0.8);
    }
}



#endingText {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  font-size: 32px;
  color: #000;
  z-index: 10;
}

.sawarabi-gothic-regular {
  font-family: "Sawarabi Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/*レスポンシブ*/
@media (max-width: 768px) {
  svg #title2 {
    transform: scale(0.6);
    transform-origin: center;
  }
}
@media (max-width: 768px) {
  svg #title3 {
    transform: scale(0.6);
    transform-origin: center;
  }
}

/*章*/
@media (max-width: 768px) {
  svg #issyou image {
    transform: translate(-120px, -400px) scale(1.2);
    transform-origin: center;
  }
}

@media (max-width: 768px) {
  svg #nisyou image {
    transform: translate(-200px, -200px) scale(2);
    scale: 0.6;
  }
}

@media (max-width: 768px) {
  svg #sansyou image {
    transform: translate(-200px, -200px) scale(2);
    scale: 0.6;
  }
}

/*文字*/
@media (max-width: 768px) {
  svg #moji1 foreignObject > div {
    transform: translate(-52%, -50%) !important;
  }
}

@media (max-width: 768px) {
  svg #moji2 foreignObject > div {
    transform: translate(-52%, -50%) !important;
  }
}

@media (max-width: 768px) {
  svg #moji3 foreignObject > div {
    transform: translate(-52%, -50%) !important;
  }
}

@media (max-width: 768px) {
  svg #moji4 foreignObject > div {
    transform: translate(-52%, -50%) !important;
  }
}

@media (max-width: 768px) {
  svg #moji5 foreignObject > div {
    transform: translate(-52%, -50%) !important;
  }
}

@media (max-width: 768px) {
  svg #moji6 foreignObject > div {
    transform: translate(-52%, -50%) !important;
  }
}

/*2章*/
@media (max-width: 768px) {
  svg #cloud8 {
    x: 50%;
    transform: translateX(-50%) translateY(-20%) scale(0.7);
    transform-origin: center;
    transform-box: fill-box;
  }
}

@media (max-width: 768px) {
  svg #cloud7 {
    x: 50%;
    transform: translateX(-50%) translateY(-20%) scale(0.7);
    transform-origin: center;
    transform-box: fill-box;
  }
}


/*アニメ、画像*/
@media (max-width: 768px) {
  svg #hon image {
    transform: translate(-180px, -170px) scale(0.7);
    transform-origin: center;
    transform-box: fill-box;
  }
}

@media (max-width: 768px) {
  svg #bousatsu image {
    x: 50%;
    y: 50%;
    transform: translate(-35%, -53%) scale(0.8);
    transform-origin: center;
    transform-box: fill-box;
  }
}

@media (max-width: 768px) {
  svg #mizuyari image {
    x: 50%;
    y: 40%;
    transform: translate(-50%, -45%) scale(0.8);
    transform-origin: center;
    transform-box: fill-box;
  }
}

@media (max-width: 768px) {
  #maku image {
    width: 400px;
    height: 400px;

    /* 中央＋さらに下寄り */
    transform: translate(-200px, -87px);
  }
  #aikon {
  position: fixed;
  top: 16px;      /* ← 左上からの余白 */
  left: 16px;
  width: 140px !important;    /* ← スマホ用サイズ */
  height: auto;
  cursor: pointer;
  z-index: 9999;
}
}

@media (max-width: 768px) {
  #title image {
    width: 245px;          /* 350 × 0.7 */
    height: 245px;
    transform: translate(-122.5px, -175px); /* 元translate × 0.7 */
  }
}

@media (max-width: 768px) {
  #yamaue image {
    width: 480px;          /* 800 × 0.6 */
    height: 480px;
    transform: translate(-240px, -250px); /* 元translate × 0.6 */
  }
}

@media (max-width: 768px) {
  #ura image {
    width: 480px;          /* 800 × 0.6 */
    height: 480px;
    transform: translate(-240px, -150px); /* 元translate × 0.6 */
  }
}