#bg_subpage{

  /*position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background:url(../img/subpage/bg_subpage.jpg) no-repeat top center;
  margin:0;
  padding:0;
  border:0;
  height: 100%;
  min-height: 100%;

	-moz-background-size:100%;
	background-size:cover;
    min-height:100%;
    height:auto !important;*/
}



img.bgmax {
	min-height: 100%;
	min-width: 1020px;
	width: 100%;
	height: auto;
	position: fixed;
	top: 0;
	left: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
}
@media screen and (max-width: 1020px){
	img.bgmax {
	left: 50%;
	margin-left: -510px; } 
}



.mainContents{
	width:800px;
	margin:0 auto;
}
.mainContents h2{
	width:60px;
	height:300px;
	float:left;
	margin:0 0 0 40px;
	text-indent:-9999px;
}
.mainContents .rightWrap{
	width:682px;
	float:right;
	padding:0 10px 10px 0;
	font-size:10pt;
	color:#000033;
}

.mainContents .scroll{
	height:720px;
	overflow-y:auto;
}

.mainContents .rightWrap .contentsTop{
	background:url(../img/subpage/right_bg_top.png) no-repeat 0 0;
	height:16px;
	font-size:1px;
	margin:0;
}
.mainContents .rightWrap .contents{
	background:url(../img/subpage/right_bg_middle.png) repeat-y 0 0;
	text-align:left;
	padding:0;
}
.mainContents .rightWrap .contents p{
	padding:0 20px 10px 20px;
}
.mainContents .rightWrap .contentsBottom{
	background:url(../img/subpage/right_bg_bottom.png) no-repeat 0 0;
	height:40px;
	font-size:1px;
}



html,body {
	height: 100%;
	margin: 0;
}


#bg_subpage {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto;
	position: relative;
}

#footer2 {
	height: 150px;
	width:100%;
	margin:0 auto;
	position: absolute;
	bottom: -50px;
}

* html #footer2 {
	bottom:expression(document.getElementById("bg_subpage").offsetHeight % 2 == 0 ? 0 : -1);
}


.mainContents{
	margin-bottom:120px;
}