@media screen and (max-width:640px){
body #wrapper{width:100%;}
body #wrapper #headercontent{
	width:100%;position:relative;
	#header_bnr{width:70%;}
	#header_bnr .h1{font-size:10px;}
	#header_bnr span.ads-pc{display:none;}
	#header_login{float:right;}
}
body #wrapper span.ads-mobile{display:block;}
body #wrapper #maincontent{width:100%;max-width:100%;float:none;padding:0 5px;-webkit-box-sizing:border-box;box-sizing:border-box;}
body #wrapper #maincontent .breadcrumbs{
	padding:0 10px;
	& ul{-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto 10px auto;display:-webkit-box;display:-ms-flexbox;display:flex;}
	& ul li.breadcrumbs-list-item-last{text-align:left;}
	& ul li.breadcrumbs-list-item-last::after{display:none;}
}
body #wrapper #maincontent #main{background:none;width:100%;}
body #wrapper #maincontent #main #footer, body #wrapper #maincontent #main .footer-link{display:none;}
body #wrapper #sidebarcontent, 
body #wrapper #sidebarcontent2{
	width:100%;max-width:100%;float:none;overflow-x:hidden;overflow-y:hidden;
	#bansponsor01-2nd{text-align:center;}
	& div p.sectiontitle{text-align:center;}
	& div .clearfix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
	& div .clearfix img{margin-bottom:20px;}
	#bansponsor05 > div > div{width:75%;text-align:center;}
	#bansponsor05 > div > div p.title{display:inline-block;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-position:center left;padding-left:20px;}
	#bansponsor01{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
	.bottom-ads{text-align:center;margin-top:10px;}
}
}

@media screen and (max-width:640px){
body{width:100%;}
body #main{margin-bottom:20px;}
body #main h1{padding:0 5px;}
body #main h1 + img{width:100%;}
body #main table.search-tbl{
	display:block;
	& tbody{
		display:block;
		& tr{display:-webkit-box;display:-ms-flexbox;display:flex;}
		& tr th, tr td{display:block;}
		& tr td select{width:100%;}
		& tr:not(:last-child){-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;}
		& tr:not(:last-child) td{-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;}
		& tr:last-child{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:10px;}
	}
}
body #main table.pagination-table{width:100%;}
body #main table.item-table{
	margin-top:10px;width:100%;
	& tr.item-title th{
		display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;
		& div{float:none !important;}
		& div:first-child{width:100% !important;}
		& div:nth-child(2){width:100% !important;text-align:right;}
	}
	& tr.item-details{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
	& tr.item-details td{float:none;width:100%;text-align:center;display:block;}
	& tr.item-details td table.tbl_tocart tbody {
		& tr{display:-webkit-box;display:-ms-flexbox;display:flex;}
		& tr:first-child th{-webkit-box-flex:1;-ms-flex:1;flex:1;display:block;}
		& tr:first-child td.blank{display:none;}
		& tr:not(:first-child){-ms-flex-wrap:wrap;flex-wrap:wrap;}
		& tr:not(:first-child) td:not(:last-child){-webkit-box-flex:1;-ms-flex:1;flex:1;}
		& tr:not(:first-child) td.blank{width:100%;text-align:center !important;}
	}
	& tr.item-links td{
		display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-left:0 !important;width:100%;
		& a{width:35%;text-align:center;}
		& a:nth-child(3){width:30%;}
		& span.agree-text{font-size:13px;}
	}
}
body #main div.section{max-width:100%;}
.search-tbl th{border-bottom:0px dashed #046;}
}
