@charset "UTF-8";


@font-face{
    src: url(../font/font2.ttf);
    font-family: "style";
}

body{
    padding: 0;
    margin: auto;
    font-family: "style", sans-serif;
    text-align: center;
    color: gray;
    font-weight: 700;
    animation-name: first_fadain;
    animation-duration: 5s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}


@keyframes first_fadain{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

div{
    box-sizing: border-box;
/*
    border: solid 1px red;
*/
}
a{
    text-decoration: none;
    color: inherit;
}

#top{
    width: 100%;
    height: 70px;
    padding: 20px;
    text-align: center;
    letter-spacing: 2px;
    font-size: 16px;
}

.short_deco_line{
    width: 100px;
    height: 1px;
    background-color: gray;
    margin: auto;
}
.category_block{
    display: block;
    position: relative;
    width: 100%;
    height: 100px;
    text-align: center;
    margin: 75px auto;
}
.category_box{
    margin: auto;
    width: 100%;
    max-width: 240px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    border: solid 1px gray;
    font-size: 14px;
    letter-spacing: 2px;
}
.category_box .deco_line{
    position: absolute;
    margin: auto;
    left: -25px;
    bottom: 0;
    top: 0;
    width: 50px;
    height: 1px;
    background-color: gray;
}

.item_block{
    width: 100%;

    height: auto;
    text-align: center;
    font-size: 0;
    margin: auto;
}

.item_box{
    position: relative;
    display: inline-block;
    width: 100vmin;
    max-width: 420px;
    height: 100vmin;
    max-height: 420px;
    margin-bottom: 10px;
}


@media screen and (min-width: 420px){
    .item_box{
        padding:4px;
    }

}

.item_box img{
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}










/*image modal*/
#image_modal{
    position: fixed;
    margin: auto;
    left:0;
    right:0;
    bottom:0;
    top:0;
    width: 100vw;
    height: 100vh;
    z-index: 40;
    background-color:white;
    animation-name: fadeInOpc;
    animation-iteration-count: 1;
    animation-duration: 1s;
    overflow: hidden;
}

@keyframes fadeInOpc{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

#image_modal #close_btn{
    z-index: 52;
    position: fixed;
    margin: auto;
    left:0;
    right:0;
    width: 100%;
    height: 75px;
    box-sizing: border-box;
    background-image: url(../image/icon/close.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}
#image_modal #close_btn_cover{
    z-index: 53;
    position: fixed;
    margin: auto;
    left:0;
    right:0;
    width: 100%;
    height: 100px;
    display: none;
}


#image_modal #next_btn{
    z-index: 51;
    position: fixed;
    top:0;
    right:0;
    width: 15%;
    max-width: 100px;
    height: 100%;

    background-image: url(../image/icon/arrow_right.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
}
#image_modal #pre_btn{
    z-index: 51;
    position: fixed;
    top:0;
    left:0;
    width: 15%;
    max-width: 100px;
    height: 100%;
    background-image: url(../image/icon/arrow_left.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position:center;
    opacity: 0.4;
}
#image_modal #image_modal_img{
    z-index: 45;
    position: absolute;
    margin: auto;
    left:0;
    right:0;
    bottom:0;
    top:0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#image_modal #loader{
    position: absolute;
    display: inline-block;
    margin: auto;
    left:0;
    right:0;
    bottom:0;
    top:0;
    width: 100px;
    height: 100px;
    z-index: 46;
    background-color: white;
    border: solid 1px black;
    opacity: 0.6;
    animation-name: loading;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#image_modal #title_area{
    position: fixed;
    display: inline-block;
    z-index: 50;
    margin: auto;
    left:0;
    right:0;
    bottom:0;
    width: 100%;
    height: 75px;
    line-height: 75px;
    font-size: 16px;
    box-sizing: border-box;
    color:black;
    text-shadow: 0px 0px 5px white;
    text-align: center;
}

@keyframes loading{
    0%{
        transform: rotateY(0deg);
    }
    100%{
        transform: rotateY(360deg);
    }
}


