/* アップルの公式ページを同じく背景は黒にしています */
body {
    background: #000;
}
/* 上下左右中央揃えしています */
.container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 100vh;
}

.textMaskBox {
    margin: 0 auto;
    max-width: 800px; /*別に必要ないですww*/
    background: url('./textmaskbg.jpg'); /*背景の指定*/
    /*font-familyはアップルの公式ページと同じものにしています。*/
    font-family: "SF Pro Display","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
    font-weight: bold;
    -webkit-background-clip: text;/*テキストでマスク*/
    background-clip: text;/*テキストでマスク*/
    -webkit-animation: bgAnim 20s alternate infinite ease-in-out;
            animation: bgAnim 20s alternate infinite ease-in-out;
}

@-webkit-keyframes bgAnim {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }

}

@keyframes bgAnim {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }

}

.textMaskBox h2 {
    margin: 0;
    color: #bbffbd;/*画像の色の薄い色を入れてみました*/
    font-size: 72px;
}

.textMask {
    display: inline;/*これが無いとスマホで表示されない*/
    margin: 0;
    color: transparent;/*透明にして背景が見えるようにする*/
    font-size: 48px;
    line-height: 1;
}

/* ------------------------------- */
/* -------------スマホ------------- */
/* ------------------------------- */
@media screen and (max-width: 480px) {
    .container {
        height: auto;
    }
    .textMaskBox h2 {
        font-size: 48px;
    }
    .textMask {
        font-size: 32px;
    }
}