/* 新年用CSS */
#container {
    position: relative;
}

.newyear {
    position: relative;
}

.newyear .layer_bg,
.newyear .layer_img {
    opacity: 0;
    visibility: hidden;
}
.newyear .layer_bg {
    transition: all .8s ease-in;
}
.newyear .layer_img {
    transition: all 1.2s ease-in;
}
.newyear.active .layer_bg,
.newyear.active .layer_img  {
    opacity: 1;
    visibility: visible;
}

.layer_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index:1000;
    cursor: pointer;
}
.layer_img {
    position: absolute;
    top: 85px;
    left :0;
    right: 0;
    width: 90%;
    max-width: 800px;
    height:auto;
    margin: auto;
    text-align: center;
    z-index: 100000;
}

.layer_img .btn_close {
    position:absolute;
    top: 5%;
    right: 3.5%;
    background:url("/images/close_btn.png") no-repeat;
    width:85px;
    height:16px;
    cursor: pointer;
}
.layer_img .btn_close:hover {
    background:url("/images/close_btn_o.png") no-repeat;
}

.layer_img img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}
.layer_img img.wide {}
.layer_img img.sp {display: none;}

@media print, screen and (max-width: 750px) {
    .layer_img {
        top: 0;
        max-width: 570px;
        height:auto;
        margin-top: 90px;
    }
    .layer_img .btn_close {
        position:absolute;
        top: 3%;
        right: 4%;
    }
    .layer_img img.wide {display: none;}
    .layer_img img.sp {display: inline-block;}
}


