*{
    box-sizing: border-box;
    color: white;
}

body{
    height: 100%;
    width: 100%;
    background-color: aqua;
    background: linear-gradient(-45deg, #EA225E, #C22286, #612E8D);
    background-size: 200% 200%;
    animation: GradientBackground 21s ease infinite;
    font-family: 'Inter Tight', sans-serif;
}




/* オーバーレイ設定 */
body:after{
    content: "";
    position: absolute;
    background-color: black;
    top: 0;
    left: 0;
    opacity: 0.4;
    width: 100%;
    height: 500vh;
    z-index: -1;
}




/***************************************
*               .title
****************************************/
.title{
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0px 0px 10px #000000;
    font-size: 1.5rem;
    opacity: 0;
}

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


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

/* 画像の動きはdivの大きさを変更して表示を行う */
.img-wrap{
    position: relative;
    top: 40%;
    height: 40%;
    width: 1px;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0px 0px 29px 10px rgba(0,0,0,0.6);
}
.img-wrap.active {
    width: 40vw;
    height: 40%;
    opacity: 1;
    border-radius: 10px;
    transition: opacity 1s , width 2s;
}
.img{
    position: absolute;
    top: 0;
    left: 0;
    width: 40vw;
    height: 100%;
    background-size: cover;
    background-position: center;

    /* アクション属性付与時に適性に戻す */
    transform: scale(1.6);
}

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

h2{
    position: absolute;
    top: 65%;
    font-size: 3rem;
    z-index: 100;
    opacity: 0;
    transition: all 0.2s;
    text-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}


h2.active{
    opacity: 1;
    text-shadow: 3px 3px 3px rgba(0,0,0,0.3);
    transition: all 3s;
}