@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%;
	#footer, .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;}
	.last-links table{width:100%;}
	.last-links table tbody tr{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;}
	.last-links table tbody tr td{display:block;}
	#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;}
	.last-links table{display:block;}
	.last-links table tbody{display:block;}
	.last-links table tbody tr td{display:block;text-align:center;}
	.last-links table tbody tr td a{color:#630;font-weight:bold;text-decoration:underline;}
	.last-links > div:last-child{text-align:center;}
	.bottom-ads{text-align:center;margin-top:10px;}
}
}

@media screen and (max-width:640px){
body .responsive-hidden{display:none;}
body .no-padding{padding-left:0px !important;}
body .full-width{width:168%;}
body .align-center{text-align:center;}
body .flex{display:-webkit-box;display:-ms-flexbox;display:flex;}
body img{max-width:100%;height:auto;}
body #main{
	width:100%;margin-bottom:20px;
	& h1#h1_home{width:100%;padding:0;}
	& img.banner-img{max-width:100%;height:auto;}
	#header-menu-left{float:none;width:auto;}
	#header-menu{width:100%;float:none;}
	#header-menu ul{display:-webkit-box;display:-ms-flexbox;display:flex;}
	#header-menu ul li{float:none;}
	.txt{margin-top:0px !important;padding:0 5px;-webkit-box-sizing:border-box;box-sizing:border-box;}
	& table.link-table{margin-top:10px;width:100%;padding:0 5px;-webkit-box-sizing:border-box;box-sizing:border-box;}
}
body #main table.main-table{
	width:100%;margin-top:10px;
	> tbody tr.main-table-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;}
	> tbody tr.main-table-header th{display:block;text-align:right;}
}
body #main table.main-table > tbody tr.main-table-content{
	display:block;width:100%;
	> td{display:block;}
	> td > div{padding:0 5px !important;-webkit-box-sizing:border-box;box-sizing:border-box;}
	> td > img{max-width:100%;height:auto;padding:5px;-webkit-box-sizing:border-box;box-sizing:border-box;}
}
body #main table.main-table > tbody tr.main-table-content > td table.search-table{
	width:100%;padding:10px 0;
	& tbody tr{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;}
	& tbody tr td{display:block;}
}
body #main table.main-table > tbody tr.main-table-content > td table.dousa{width:100%;}
body #main table.main-table > tbody tr.main-table-content > td table.dousa tbody tr{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;}
body #main table.main-table > tbody tr.main-table-content > td table.dousa tbody tr td, body #main table.main-table > tbody tr.main-table-content > td table.dousa tbody tr th{width:100%;display:block;}
body #main table.main-table > tbody tr.main-table-content > td table.dousa tbody tr {
	
	& td:first-child div, th:first-child div{margin:5px auto 0 auto !important;}
	& td:first-child div#menudetail, th:first-child div#menudetail{width:100%;margin:0px !important;}
	& td:first-child div#menudetail ul, th:first-child div#menudetail ul{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;width:100%;-ms-flex-pack:distribute;justify-content:space-around;}
	& td:first-child div#menudetail ul li, th:first-child div#menudetail ul li{border:1px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px 10px;}
	& td:first-child div#menudetail ul li a, th:first-child div#menudetail ul li a{border:none;background-position:center left;padding:0 0 0 15px;}
}
body #main table.main-table > tbody tr.main-table-content > td table.dousa tbody tr {
	& td:last-child table.tbl_tocart tbody, th:last-child table.tbl_tocart tbody{
		& tr{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
		& tr:first-child td.blank{display:none;}
		& tr:first-child th{-webkit-box-flex:1;-ms-flex:1;flex:1;}
		& tr:not(:first-child){-ms-flex-wrap:wrap;flex-wrap:wrap;}
		& tr:not(:first-child) td.blank{width:100%;}
		& tr:not(:first-child) td:not(.blank){-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:25px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;}
		& tr:not(:first-child) td:not(.blank) input#Text2{text-align:center;}
	}
}
body #main #fontdetail{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;}
body #main #fontdetail table.dousa{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;}
body #main table.tbl_tocart tbody {
	& tr{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
	& tr:first-child td.blank{display:none;}
	& tr:first-child th{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;display:block;}
	& tr:not(:first-child){-ms-flex-wrap:wrap;flex-wrap:wrap;}
	& tr:not(:first-child) td:not(.blank){-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:25px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;}
	& tr:not(:first-child) td:not(.blank) input#Text2{text-align:center;}
	& tr:not(:first-child) td.blank{width:100%;display:block;}
}
body #main table.list{
	width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;
	& tr:nth-child(2){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;}
	& tr:nth-child(2) td{display:block;}
	& tr:nth-child(2) td:first-child{width:100%;text-align:center;}
	& tr:nth-child(2) td:first-child a img{max-width:100%;height:auto;}
	& tr.cart-link-row td{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;}
}
body #main div.section{max-width:100%;} 
}
