@charset "Shift_JIS";

#modal-outer {
	width:100%;
	height:120%;
	position:fixed;
	top:0;
	left:0;
	visibility:hidden;
	opacity:0;
	background:none;
	transition:.5s;
}
#modal-outer.is-open {
	background:rgba(0,0,0,.8);
	visibility:visible;
	opacity:1;
	z-index:999999;
}
#modal {
	width:852px;
	height:400px;
	position:fixed;
	top:800px;
	left:50%;
    display: flex;
	margin-left:-426px;
	opacity:0;
	transition:.5s;
	transition-delay:.5s;
}
#modal a {
    display: block;
    width: 400px;
    height: 400px;
}
#modal a img {
    width: 100%;
    height: auto;
}
#modal #modal-info {
    width: 452px;
    height: 400px;
    box-sizing: border-box;
    padding: 30px 20px;
    position: relative;
}
#modal #modal-info h3 {
    font-size: 16px;
    line-height: 1.5em;
    margin: 0 0 15px 0;
}
#modal #modal-info a {
    display: block;
    width: 240px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin: 20px auto;
    background: #C82527;
    color: #fff;
    position: absolute;
    bottom: 30px;
    left: 50%;
    margin-left: -120px;
}
#modal-outer.is-open #modal {
	position:fixed;
	top:50%;
	margin-top:-200px;
	background:#fff;
	opacity:1;
}
#cross {
	display:block;
	position:absolute;
	top:10px;
	right:10px;
	width:20px;
	height:20px;
	cursor:pointer;
    z-index: 9999;
}
#cross:before {
	content:'';
	display:block;
	width:28px;
	height:2px;
	background:rgba(0,0,0,.5);
	position:absolute;
	top:9px;
	left:-4px;
	transform:rotate(45deg);
	-webkit-transform:rotate(45deg);
	-moz-transform:rotate(45deg);
	-o-transform:rotate(45deg);
	-ms-transform:rotate(45deg);
	border-radius:.5px;
}
#cross:after {
	content:'';
	display:block;
	width:28px;
	height:2px;
	background:rgba(0,0,0,.5);
	position:absolute;
	top:9px;
	left:-4px;
	transform:rotate(-45deg);
	-webkit-transform:rotate(-45deg);
	-moz-transform:rotate(-45deg);
	-o-transform:rotate(-45deg);
	-ms-transform:rotate(-45deg);
	border-radius:.5px;
}
@media screen and (max-width: 767px) {
    #modal-outer {
        width:100%;
        height:120%;
        position:fixed;
        top:0;
        left:0;
        visibility:hidden;
        opacity:0;
        background:none;
        transition:.5s;
    }
    #modal-outer.is-open {
        background:rgba(0,0,0,.8);
        visibility:visible;
        opacity:1;
        z-index:99999;
    }
    #modal {
        width:80%;
        height:auto;
        position:fixed;
        display: block;
        top:500px;
        left:10%;
        margin-left:0;
        opacity:0;
        transition:.5s;
        transition-delay:.5s;
    }
    #modal a {
        width: 100%;
        height: auto;
    }
    #modal a img {
        width: 100%;
        height: auto;
    }
#modal #modal-info a {
    display: block;
    width: 80%;
    height: 28px;
    line-height: 28px;
    text-align: center;
    margin: 20px auto;
    background: #C82527;
    color: #fff;
    position: static;
    margin-left: auto;
    margin: 10px auto 0 auto;
}
    #modal-outer.is-open #modal {
        position:fixed;
        top:100px;
        margin-top:0;
        background:#fff;
        opacity:1;
    }
    #modal #modal-info {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px 15px;
    position: relative;
}
#modal #modal-info h3 {
    font-size: 12px;
    line-height: 1.5em;
    margin: 0 0 10px 0;
}
    #modal #modal-info p {
    font-size: 9px;
}
    #cross {
        display:block;
        position:absolute;
        top:10px;
        right:10px;
        width:20px;
        height:20px;
        cursor:pointer;
    }
    #cross:before {
        content:'';
        display:block;
        width:28px;
        height:2px;
        background:rgba(0,0,0,.5);
        position:absolute;
        top:9px;
        left:-4px;
        transform:rotate(45deg);
        -webkit-transform:rotate(45deg);
        -moz-transform:rotate(45deg);
        -o-transform:rotate(45deg);
        -ms-transform:rotate(45deg);
        border-radius:.5px;
    }
    #cross:after {
        content:'';
        display:block;
        width:28px;
        height:2px;
        background:rgba(0,0,0,.5);
        position:absolute;
        top:9px;
        left:-4px;
        transform:rotate(-45deg);
        -webkit-transform:rotate(-45deg);
        -moz-transform:rotate(-45deg);
        -o-transform:rotate(-45deg);
        -ms-transform:rotate(-45deg);
        border-radius:.5px;
    }
}