@media screen and (max-width:767px){

	*{
		margin: 0px;
		padding: 0px;
		}

	a:link{
		color: black;
		}

	a:visited{
		color: blue;
		}

	a:hover{
		color: green;
		}

	a:active{
		color: red;
		}

	html,body{
		margin: 0 auto;
		height: 100%;
		min-height: 100%;
		background-image: url(../img/bg.jpg);
		box-sizing: border-box;
		font-size: 62.5%; font-size: 10px; font-size: 1.0rem;
		font-family:'$B%R%i%.%N3Q%4(B Pro W3','Hiragino Kaku Gothic Pro','$B%a%$%j%*(B',Meiryo,'$B#M#S(B $B#P%4%7%C%/(B',sans-serif;
		}

		div#container{
			position: relative;
			margin: 0 auto;
			width: 100%;
			height: auto;
			}

		div#header{
			width: 100%;
			height: auto;
			background-image: url(../img/bg-header.jpg);
			background-position: center;
			background-repeat: repeat-y;
			}

			#header img{
				float: right;
				max-width: 150px;
				padding-right: 10px;
			}

		div#main{
			width: 100%;
			height: auto;
			background-image: url(../img/bg-main.jpg);
			background-position: center;
			background-repeat: repeat-y;
			}

		p.teikyubi{
			position: relative;
	    font-weight: bold;
	    text-shadow: 2px 2px 1px white,
	    -2px 2px 1px white,
	    2px -2px 1px white,
	    -2px -2px 1px white;
			z-index: 0;
			padding-bottom: 10px;
			padding-top: 10px;
			}

		div#fotter{
			width: 100%;
			height: auto;
			margin-left: auto;
			margin-right: auto;
			background-color: black;
			}

		#fotter p{
			color: white;
		}

		#fotter img{
			float: right;
		}

		div#submain{
			width: 100%;
			height: auto;
			background-image: url(../img/bg-submain2.jpg);
			background-position: center;
			background-repeat: repeat-y;
			}

		#submain img{
			max-width: 100%;
		}

		table.specification{
			font-size: 1.5em;
			border-collapse: separate;
			}
		table.specification caption{
			text-align: right;
			}
		table.specification th{
			background-color: white;
			text-align: center;
			color: black;
			}
		table.specification td{
			background-color: white;
			text-align: center;
			color: black;
			}
}

@media screen and (min-width:768px){

	*{
		margin: 0px;
		padding: 0px;
		}

	a:link{
		color: black;
		}

	a:visited{
		color: blue;
		}

	a:hover{
		color: green;
		}

	a:active{
		color: red;
		}

	html,body{
		margin: 0 auto;
		height: 100%;
		min-height: 100%;
		background-image: url(../img/bg.jpg);
		font-size: 62.5%; font-size: 10px; font-size: 1.0rem;
		font-family:'$B%R%i%.%N3Q%4(B Pro W3','Hiragino Kaku Gothic Pro','$B%a%$%j%*(B',Meiryo,'$B#M#S(B $B#P%4%7%C%/(B',sans-serif;
		}

		div#container{
			position: relative;
			margin: 0 auto;
			width: 100%;
			height: auto;
			}

		div#header{
			width: 100%;
			height: auto;
			background-image: url(../img/bg-header.jpg);
			background-position: center;
			background-repeat: repeat-y;
			}

			#header img{
				float: right;
			}

		div#main{
			width: 100%;
			height: auto;
			background-image: url(../img/bg-main.jpg);
			background-position: center;
			background-repeat: repeat-y;
			}

					p.teikyubi{
						position: relative;
				    font-weight: bold;
				    text-shadow: 2px 2px 1px white,
				    -2px 2px 1px white,
				    2px -2px 1px white,
				    -2px -2px 1px white;
						z-index: 0;
						padding-bottom: 10px;
						}

		div#fotter{
			width: 100%;
			height: auto;
			margin-left: auto;
			margin-right: auto;
			background-color: black;
			}

		#fotter p{
			color: white;
		}

		#fotter img{
			float: right;
		}

		div#submain{
			width: 100%;
			height: auto;
			background-image: url(../img/bg-submain2.jpg);
			background-position: center;
			background-repeat: repeat-y;
			}

			#submain img{
			max-width: 100%;
			}

			table.specification{
				font-size: 1.5em;
				border-collapse: separate;
				}
			table.specification caption{
				text-align: right;
				}
			table.specification th{
				background-color: white;
				text-align: center;
				color: black;
				}
			table.specification td{
				background-color: white;
				text-align: center;
				color: black;
				}

}

@media screen and (min-width:1024px){


*{
	margin: 0px;
	padding: 0px;
	}

a:link{
	color: black;
	}

a:visited{
	color: blue;
	}

a:hover{
	color: green;
	}

a:active{
	color: red;
	}

html,body{
	margin: 0 auto;
	height: 100%;
	min-height: 100%;
	background-image: url(../img/bg.jpg);
	font-size: 62.5%; font-size: 10px; font-size: 1.0rem;
	font-family:'$B%R%i%.%N3Q%4(B Pro W3','Hiragino Kaku Gothic Pro','$B%a%$%j%*(B',Meiryo,'$B#M#S(B $B#P%4%7%C%/(B',sans-serif;
	}

div#container{
	position: relative;
	margin: 0 auto;
	width: 1000px;
	height: auto;
	border-color: gray;
	border-bottom-width: 50px;
	}

div#header{
	width: 100%;
	height: 140px;
	background-image: url(../img/bg-header.jpg);
	background-position: center;
	background-repeat: repeat-y;
	}

#header img{
	position: absolute;
	left: 790px;
	top: 20px;
	}


div#main{
	width: 1000px;
	height: 600px;
	background-image: url(../img/bg-main.jpg);
	background-position: center;
	background-repeat: repeat-y;
	}

	#main p{
		padding-top: 30px;
		padding-left:5%;
		}

		p.teikyubi{
			position: relative;
	    font-weight: bold;
	    text-shadow: 2px 2px 1px white,
	    -2px 2px 1px white,
	    2px -2px 1px white,
	    -2px -2px 1px white;
			z-index: 0;
			padding-bottom: 10px;
			padding-right: 5%;
			font-size: x-large;
			}

div#fb{
	width: 300px;
	height: 600px;
	float: right;
	background-position: center;
	background-repeat: repeat-y;
	}

div#fotter{
	width: 1000px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	background-color: black;
	}

#fotter p{
	color: white;
	position: relative;
	margin-left: 20px;
	padding-top: 10px;
	}

#fotter img{
	position: relative;
	margin-right: 20px;
	margin-top: 10px;
	}

div#submain{
	width: 1000px;
	height: auto;
	background-image: url(../img/bg-submain2.jpg);
	background-position: center;
	background-repeat: repeat-y;
	}

#submain p{
	margin-left: 100px;
	margin-right: 100px;
	}

#submain img{
	margin-left: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}

h1{
	padding-top: 30px;
	margin-left: 30px;
	margin-right: 30px;
	border-bottom-style: double;
	border-bottom-color: white;
	border-bottom-width: 5px;
	}

h2{
	border-bottom-style: solid;
	border-bottom-color: white;
	border-bottom-width: 1px;
	margin-left: 50px;
	margin-right: 50px;
	margin-top: 20px;
	margin-bottom: 20px;
	}

table.specification{
	margin-top: 3px;
	margin-bottom: 3px;
	margin-left: 100px;
	width: auto;
	height: auto;
	border-collapse: separate;
	border-spacing: 3px;
	}
table.specification caption{
	text-align: right;
	}
table.specification th,td{
	padding: 4px 6px;
	}
table.specification th{
	background-color: white;
	text-align: center;
	white-space: nowrap;
	color: black;
	}
table.specification td{
	background-color: white;
	text-align: center;
	white-space: nowrap;
	color: black;
	}


}
