/* ローディング画面 */
#loading {
    width: 100vw;
    height: 100vh;
    transition: all 1s;
    background-color: rgb(255, 255, 255);
  /* 以下のコードを追加 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.container{
    margin: 0 auto;
}

.monitor {
    background-image:url(images/loader.css/loader.png);
    background-repeat:  no-repeat;                
    position: relative;
    height: 224.5px;
    overflow: hidden;
}
.monitor:before {
    content: "";
    position: absolute;
    width: 5%;
    top: 0;
    left: -5%;
    bottom: 0;
    background: #ffffff;
    -webkit-animation: monitor 1.2s infinite linear;
    animation: monitor 1.2s infinite linear;
}
.monitor__top, .monitor__bottom {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
}

.monitor__bottom {
    transform: rotate(180deg);
}

@-webkit-keyframes monitor {
    0% {
        left: -5%;
    }
    100% {
        left: 100%;
    }
}
@keyframes monitor {
    0% {
        left: -5%;
    }
    100% {
        left: 100%;
    }
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */


/* コンテンツ部分の装飾 */
.gallery {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* img {
    width: 100%;
    height: 200px;
    object-fit: cover;
} */

.loaded {
    opacity: 0;
    visibility: hidden;
}


@media screen and (max-width: 768px) {
    /* ローディング画面 */
#loading {
    width: 100vw;
    height: 100vh;
    transition: all 1s;
    background-color: rgb(255, 255, 255);
  /* 以下のコードを追加 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.container{
    margin: 0 auto;
}

.monitor {
    background-image:url(images/loader.css/loader.png);
    background-repeat:  no-repeat;                
    position: relative;
    height: 224.5px;
    width: 100%;
    overflow: hidden;
}
.monitor:before {
    content: "";
    position: absolute;
    width: 5%;
    top: 0;
    left: -5%;
    bottom: 0;
    background: #ffffff;
    -webkit-animation: monitor 1.2s infinite linear;
    animation: monitor 1.2s infinite linear;
}
.monitor__top, .monitor__bottom {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
}

.monitor__bottom {
    transform: rotate(180deg);
}

@-webkit-keyframes monitor {
    0% {
        left: -5%;
    }
    100% {
        left: 100%;
    }
}
@keyframes monitor {
    0% {
        left: -5%;
    }
    100% {
        left: 100%;
    }
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */


/* コンテンツ部分の装飾 */
.gallery {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* img {
    width: 100%;
    height: 200px;
    object-fit: cover;
} */

.loaded {
    opacity: 0;
    visibility: hidden;
}
}