
  @import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@300&family=M+PLUS+Rounded+1c:wght@100;300;500&family=Sora&display=swap');

  *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
  }

  body {
    height: 100%;
    width: 100%;
    background-image: url(/assets/img/main.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  body::after {
    content: "";/* 疑似要素には必要なプロパティ */
    display: block;
    position: absolute;
    background: black;
    width: 100%;
    height: 500vh;
    top: 0;
    left: 0;
    opacity: 0.5;
  }

  .title {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 2.2rem;
    opacity: 0;
  
  }

 .title.active {
    opacity: 1;
    transition: all 3s;
 }

  section {
    position: relative;
    height: 100vh;
    width: 100vh;
    overflow: hidden;
    z-index: 1;
  }

  .img-wrap {
    position: relative;
    top: 40%;
    height: 40%;
    width: 1px;
    overflow: hidden;
    opacity: 0;
  }
 

 .img-wrap.active {
    width: 40vw;
    opacity: 1;
    transition: opacity 1s ,width 2s;
 }

 .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 40vh;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.6);
  }

  .img-wrap.active > .img {
    transform: scale(1);
    transition: 1s ease-out;

  }

  h2 {
    position: absolute;
    font-size: 2.3rem;
    top: 70%;
    z-index: 2;
    letter-spacing: 2px;
    opacity: 0;
    transition: all 0.2s;
  }

  h2.active {
    opacity: 1;
    transition: opacity 3s;    
  }