@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;1,100;1,800&family=Noto+Sans+JP&display=swap');

body{
    margin: 0;
    font-family: 'JetBrains Mono', 'Noto Sans JP', sans-serif;
}

.text-left{
    text-align: left;
}

main{
    position: relative;
    top: -12px;
    left: -12px;
    width: calc(100vw - 192px);
    height: calc(100vh - 192px);
    margin: 96px;
}

main::before{
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
}

.main-inner{
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: 50px 1fr;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 1px solid #000;
}

.main-head{
    grid-column: 1 / 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background-color: #72f8c5;
    color: #000;
    border-bottom: 1px solid #000;
}

.window-button{
    display: inline-block;
    padding: 12px 4px;
    color: #000;
    cursor: pointer;
}

.main-left,.main-right{
    padding: 24px;
}

.main-left{
    grid-column: 1;
    grid-row: 2;
    position: relative;
    display: flex;
    align-items: center;
}

.main-left::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fffffff8, #ffffffff);
}

.main-right{
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
}

.image{
    position: relative;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.image img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}

.name{
    font-size: 24px;
    font-weight: bold;
}

.wave{
    position:fixed;
    bottom: 0;
    width: 100vw;
    height:50vh;/*何も表示されない場合は各波の親要素に高さを持たせましょう。*/
    z-index: -1;
}

canvas{
    position: absolute;
    bottom: 0;
    left:0;
    width: 100%;
}

.anime{
    position: relative;
    color: rgba(248, 250, 252, 0);
}
.anime::after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #1b1b1b;
    transform: scaleX(0%);
    transform-origin: left;
}
.anime.show{
    animation: in-anime 0.5s ease-in-out forwards;
}
.anime.show::after{
    animation: in-anime-after 0.5s ease-in-out forwards;
}
@keyframes in-anime{
    0%{
        color: rgba(248, 250, 252, 0);
    }
    50%{
        color: rgba(248, 250, 252, 0);
    }
    51%{
        color: #1b1b1b;
    }
    100%{
        color: #1b1b1b;
    }
}
@keyframes in-anime-after{
    0%{
        transform: scaleX(0%);
        transform-origin: left;
    }
    40%{
        transform: scaleX(100%);
        transform-origin: left;
    }
    60%{
        transform: scaleX(100%);
        transform-origin: right;
    }
    100%{
        transform: scaleX(0%);
        transform-origin: right;
    }
}