
header,article,nav,section,footer{
	width:100%;
	display:block;
}
header h1{
	background: -webkit-gradient(linear,left top,left bottom,from(#33CCFF),to(#0066CC));
	background: -moz-linear-gradient(top,#33CCFF,#0066CC);
	font-size:1.5em;
	padding:0 8px;
	color:white;
	text-shadow: 3px 3px 0 #000;
	height:1.8em;
	line-height:1.8em;
}

@media screen and (min-width: 800px) {
    div.Main{
        width:800px;
        margin:auto;
        border:solid #999 1px;
        background:white;
    }
    body{
    }
    nav.flx div{
        width:calc(33.3% - 4px);
        margin:2px 1px 1px 1px;
    }
 }

 @media screen and (max-width: 799px) {
    div.Main{
        width:100%;
        margin:auto;
        border:none;
    }
    nav.flx div{
        width:calc(50% - 4px);
        margin:2px 1px 1px 1px;
    }
 }
header h1 a{
text-decoration:none;
}

footer h1{
	background: -webkit-gradient(linear,left top,left bottom,from(#0066CC),to(#33CCFF));
	background: -moz-linear-gradient(top,#0066CC,#33CCFF);
	font-size:1em;
	padding:5px;
	color:white;
}
.messagebox{
	text-align:center;
	margin:0.3em;
	padding:0.3em;
	font-weight: bold;
	font-size:1em;
	border-style:outset;
	border-width:5px;
	border-color:#33CCFF;
}
nav{
	display:block;
	font-size:1em;
	text-align:left;
	font-weight:bold;
}
nav h1{
	text-align:center;
	font-size:1.3em;
	text-shadow:1px 1px 1px #666;
	color:white;
	background: -webkit-gradient(linear,left top,left bottom,from(#33CCFF),to(#0066CC));
	background: -moz-linear-gradient(top,#33CCFF,#0066CC);
	line-height:2.3em;
}
nav h2{
	text-align:left;
	font-size:1.3em;
	text-shadow:1px 1px 1px #666;
	color:white;
	background: -webkit-gradient(linear,left top,left bottom,from(#33CCFF),to(#0066CC));
	background: -moz-linear-gradient(top,#33CCFF,#0066CC);
	line-height:2.3em;
}

nav h3{
	text-align:center;
	font-size:1.3em;
	text-shadow:1px 1px 1px #666;
	color:white;
	background: -webkit-gradient(linear,left top,left bottom,from(#FF0000),to(#CC0000));
	background: -moz-linear-gradient(top,#FF0000,#CC0000);
	line-height:2.3em;
}


nav ul li{
	border:solid 1px #ccc;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	text-decoration: none;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.70, #e0e0e0), color-stop(0.30, #f0f0f0), color-stop(0.00, #fff));
background: -webkit-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
background: -moz-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
background: -o-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
background: -ms-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
background: linear-gradient(to bottom, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);


}
.unlink{
	padding:1em;
	display:block;
	background:white;
}
nav ul li a{
	padding:1em;
	background:url(https://www.keirin-mobile.jp/Android/image/link-icon_b.png) no-repeat right center;
	-webkit-background-size:18px 13px;
	-moz-background-size:18px 13px;
	background-size:20px;
	text-decoration: none;
	display:block;
}
nav ul li.plain{
	padding:1em;
	
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	text-decoration: none;
	line-height:1.1em;
}
nav ul li a span{
	padding:1em;
	color:#999999;
	font-size:0.8em;
	font-weight:normal;
}
nav.flx{
    width:100%;
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
nav.flx h1,h2{width: 100%;}
nav.flx div{
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.70, #e0e0e0), color-stop(0.30, #f0f0f0), color-stop(0.00, #fff));
    background: -webkit-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
    background: -moz-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
    background: -o-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
    background: -ms-linear-gradient(top, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 30%, #e0e0e0 70%);

	border:solid 1px #ccc;
}
nav.flx div a{

	padding:1em;
	background:url(https://www.keirin-mobile.jp/Android/image/link-icon_b.png) no-repeat right center;
	-webkit-background-size:18px 13px;
	-moz-background-size:18px 13px;
	background-size:20px;
	text-decoration: none;
	display:block;
}

select {
height:32px;
}

nav li select {
padding:8px 5px;
}

input[type=text] {
height:28px;
}

.fsg{
	height:1em;
	padding: 0 0.3em;
}
.member{
	margin:auto;
	width:95%;
	border:solid 1px #999;
	text-align:center;
	line-height:1.4em;
}
.member th{
	background-color:#FFCCCC;
	border:solid 1px #999;
}
.member .sen{
	text-align:left;
	padding: 0 0 0 0.3em;
}
.member td{
	border:solid 1px #999;
	padding:0.5em 0.2em;
	background:white;
}
#nighter {
    width: 100%;
}

#nighter th {
    vertical-align: top;
}
#nighter th, #nighter td {
    border-bottom: 1px dashed #AAAAAA;
    padding: 5px 2px;
}

#nighter th {
    background: none repeat scroll 0 0 #F0F0F0;
    border-right: 1px dashed #AAAAAA;
    padding: 5px 0;
}
