body {

    font-family: "Helvetica", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Yu Gothic, "游ゴシック", "メイリオ", Meiryo, sans-serif;

}

img {

    max-width: 100%;
    vertical-align: bottom;
}

li {

    list-style-type: none;
}

a {

    text-decoration: none;
}
.container {

    max-width: 700px;
    padding: 0 10px;
    margin: 20px auto;
}

.container span {

    font-size: 0.875rem;
}

.text-style {

    font-size: 1.125rem;
}

.invisible {

    display: none;
}


h2 {

    position: relative;
    margin-bottom: 10px;
}

h2::after {

    position: absolute;
    content: "";
    border-bottom: 2px dotted #ccc;
    height: 1px;
    width: 80%;
    bottom: -5px;
    left: 0;
    
}

.main-image {

    margin: 10px 0;
    width: 100%;
    position: relative;
}

.main-image p {

    position: absolute;
    left: 10px;
    bottom: 5px;
}

.image-list {

    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
    
}

.image-list li {

    width: 13%;
    padding: 3px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.image-list li:not(:nth-child(7n+7)) {

    margin-right: 1.5%;
}

.back-btn {

    display: none;

    
}



@media  screen and (max-width:600px) {

    .main-image {

        margin: 0 auto;
        width: 100%;
    }

    .image-list {

        justify-content: flex-start;
        margin-bottom: 15px;

    }

    .image-list li {

        width: 19.7%;
        padding: 0;
        margin-bottom: 0.35%;
    }

    .image-list li:not(:nth-child(5n+5)) {

        margin-right: 0.35%;
    }

    .image-list li:nth-child(5n+5) {

        margin-right: 0;
    }

    .back-btn {

        width: 100%;
        background: #121212;
        text-align: center;
        color: #fff;
        display: block;
        padding: 2%;
        margin: 0 auto;
        border: 1px solid #fff;
        transition: 0.3s;
    }

    .back-btn:hover {

        background: #fff;
        color: #121212;
        border: 1px solid #121212;
    }

}    