@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap');

/* header */
@media screen and (min-width:1041px) {
	#wrapper.fullwith {
		width: 100%;
	}
}
@media screen and (min-width:768px) and (max-width:1040px) {
    /*
	#wrapper.fullwith {
		max-width: 1040px;
        width:100%!important:
	} */
}
@media screen and (min-width:768px) {
    .splay { display: none; }
	.fullwith #header {
		width: 1040px;
		background: url(../img/sb2010/tophead_toppage2.png) no-repeat;
		margin: 0 auto;
	}
}
@media screen and (max-width:767px) {
	#wrapper.fullwith {
		width: 100%;
	}
    .pclay { display: none; }
    .fullwith #header { 
        max-width: 100%;
        margin: 0 auto;
        padding: 20px 0 20px 5px;
        background: none!important;
        width:auto!important;
    }
    .fullwith #header h1 {
        font-size: 13px;
		position:inherit; 
		bottom: 0;
		margin-left: 0;
		left: 0;
		width: auto;
    }
    .fullwith header.full {
		height: auto;
		background: none;
	}
    .fullwith #header img { max-width: 100%; }
    .fullwith #header .sp_headmenu {
        background: url(../img/sp_headmenu.png);
        background-repeat: no-repeat;
        background-size: 100%;
        margin: 10px 0 0;
    }
    .fullwith #header .sp_headmenu ul {
        width: auto;
		padding: 0;
		margin: 0;
		position:inherit; 
		top: 0;
		left: 0;
    }
    .fullwith #header .sp_headmenu ul li {
        display: inline-block;
        margin: 0 10px 0 15px; 
        float: none;
    }
    .fullwith #header .sp_headmenu ul li a {
        color: #fff;
        font-size: 10px;
        display: initial;
		height: auto;
		width: auto;
		text-indent: 0;
    }
}

/* contest page */
body.photocontest-page .title { font-family: 'Yusei Magic', sans-serif; line-height: 1.5em; }
@media screen and (max-width:767px) {
    #main .con_fv img { width: 100%; object-fit: cover; height: 300px; }
    #photolist-page.photocontest-page .photolist .image-box { float: none; }
    #photolist-page .photolist img { max-width: 100%; height: auto; }
    #photolist-page.photocontest-page .photolist .image-box img {
        border-radius: 0;
        object-fit: cover; 
        
    }
    #photolist-page.photocontest-page .photolist .photo-number p {
        letter-spacing: -0.1em;
        margin: 14px 0 2px;
        height: 50px;
    }
    /* grand prix */
    .grandprix_gold { 
        text-align: center;
        margin: 100px auto 50px;
        padding: 0 10px;
    }
    .grandprix_gold p {
        color: #ebcd64;
        font-size: 20px;
        font-weight: bold;
    }
    .grandprix_silver,
    .grandprix_bronze { 
        margin: 50px auto;
        padding: 0 10px;
    }
    .grandprix_silver .box,
    .grandprix_bronze .box {
        text-align: center;
        margin: 50px auto;
    }
    .grandprix_silver .box p {
        color: #d6d1c6;
        font-size: 20px;
        font-weight: bold;
    }
    .grandprix_bronze .box p {
        color: #ff989c;
        font-size: 20px;
        font-weight: bold;
    }
    .grandprix_gold img,
    .grandprix_silver img,
    .grandprix_bronze img {
        max-width: 100%;
        width: auto;
    }
    .grandprix_gold p span,
	.grandprix_silver p span,
    .grandprix_bronze p span {
		margin-left: 15%;
	}
    .entry_link {
		margin: 0 auto;
		text-align: right;
        padding: 0 10px;
	}
	.entry_link p {
		vertical-align: middle;
    	font-size: 18px;
	}
    .entry_link p img {
		vertical-align: middle;
	}
}
@media screen and (min-width:481px) and (max-width:767px) {
    #photolist-page.photocontest-page .photolist {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #photolist-page.photocontest-page .photolist .image-box {
        margin:2%;
        padding:1%;
        border:1px solid #fff;
        font-size: 16px;
        line-height: 20px;
        text-align: center;
        color: #0a0a0a;
        border-radius: 3px;
        width: 43%;
        box-shadow: 2px 2px 6px #b7b7b7;
        background-color: #fbfbfb;
    }
}
@media screen and (max-width:480px) {
    #photolist-page.photocontest-page .photolist {
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    #photolist-page.photocontest-page .photolist .image-box {
        margin:10% auto;
        padding:1%;
        border:1px solid #fff;
        font-size: 16px;
        line-height: 20px;
        text-align: center;
        color: #0a0a0a;
        border-radius: 3px;
        width: 90%;
        box-shadow: 2px 2px 6px #b7b7b7;
        background-color: #fbfbfb;
        display: block;
    }
}

/* footer */
@media screen and (max-width:767px) {
    #footer-in {
        max-width:100%;
        margin:0 auto;
        padding:18px 15px;
        text-align:left;
    }
    #footer-in img {
        max-width: 100%;
        height: auto;
    }
    #footer-in #f-link {
        margin-top: 10px;
    }
    #footer-in #f-link ul {
        padding: 10px 0;
    }
    #footer-in #f-link ul li {
        padding: 0;
    }
    #footer-in #f-info #fnavi {
        margin:16px 0 0 0;
        width:53%;
    }
    #footer-in #f-info #fnavi li {
        background:url(../img/brit_fnavi.gif) no-repeat left center;
        padding:2px 0 2px 2px;
        font-size:10px;
    }
    #footer-in #f-info #faddr{
        margin-top:16px;
        width:47%;
    }
}