@import url("reset.css");

body{
	margin:0px;
	height:100%;
}

.clear{ clear:both} 

#content_main{
	width:100%;
    height:auto !important;
	margin:0;
	background-image:url(img/bg.jpg);
	background-repeat:no-repeat;
	background-position:center top;
}

#content_main .WRAPPER{
	position:relative;
	margin:0 auto;
	max-width:960px;
}

#content_main .WRAPPER .KV{
	position:absolute;
}

#content_main .WRAPPER .logo{
	margin-top: 20px;
	margin-left: 0px;
	right: 22px;
	position: absolute;
}

img#logo{width:170px; height:80px;}

#content_main .WRAPPER .theme1{
	position:relative;
	float:left;
	width:63.7%;
	margin-top:25px;
}

#content_main .WRAPPER .theme2{
	position:relative;
	float:left;
	width:31.2%;
	margin-top:10px;
	margin-left:10%;
}

#content_main .WRAPPER .form{
	position:relative;
	float:left;
	margin-top:180px;
	width:100%;
	/*
	border-radius: 10px;
	border:rgba(255, 255, 255, 0.5) 1px solid; 
	background-color:rgba(46, 166, 223, 0.5);  */
}

img#table_title_h{visibility:hidden; position:absolute;}
img#table_title_s{visibility:visible; position:relative;}

#content_main .WRAPPER .form .table_title{
	position:relative;
	float:left;
	width:31%;
	margin-left:8%;
}

#content_main .WRAPPER .form .table_form{
	position:relative;
	float:left;
	width:60%;
	height:200px;
	margin-top:20px;
	padding-top:10px;
	background-image:url(img/form_bg.png);
	/*
	border-radius: 10px;
	border:rgba(255, 255, 255, 0.5) 1px solid; 
	background-color:rgba(46, 166, 223, 0.5);*/
}

#content_main .WRAPPER .BOX{
	position:relative;
	max-width:960px;
	float:left;
	padding:10px 0px 20px 10%;
}

#content_main .WRAPPER .BOX_text{
	position:relative;
	width:28%;
	float:left;
	padding:0 15px;
}

img#text_title{width:250px; height:40px;}

#content_main .WRAPPER .BOX_text h1{
	height:20px;
}

#content_main .WRAPPER .BOX_text p{
	font-family: "微軟正黑體","新細明體", Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height:22px;
}


/*===FOOTER區===*/
#FOOTER, #FOOTER_aff{
	position:relative;
	margin:0 auto;
	text-align:center;
	background-color:#E45B87;
	bottom: 0;
	height: 70px;/*脚部的高度*/
	clear:both;
}

img#footer_1, img#footer_3{
	width:610px;
	margin-top:-10px;
	/*width:63%;*/
}
	
img#footer_2{
	width:350px;
	margin-top:-10px;
	/*width:37%;*/
}
/*===FOOTER區END===*/

/* Tablet Portrait size to standard 960 (devices and browsers) */
/* 平板 */
@media only screen and (min-width: 768px) and (max-width: 959px) {
#content_main{
	background-image:url(img/bg_s.jpg);
	background-repeat:repeat;
}

#content_main .WRAPPER .form .table_title{
	margin-left:4%;
}
#content_main .WRAPPER .form .table_form{
	padding-top:20px;
}
#content_main .WRAPPER .BOX{
	padding:10px 0px 20px 2%;
}

/*===FOOTER區===*/
#FOOTER{
	height:60px;
}

img#footer_1{
	margin-top:-2.5%;
	max-width:60%;
	/*width:63%;*/
}
	
img#footer_2{
	margin-top:-2.5%;
	max-width:40%;
	/*width:37%;*/
}
/*===FOOTER區END===*/
}

/* All Mobile Sizes (devices and browser) */
/* 所有手機、平板直式 */
@media only screen and (max-width: 767px) {
#content_main{
	background-image:url(img/bg_s.jpg);
	background-repeat:repeat;
}

#content_main .WRAPPER .form{
	margin-top:140px;
}

#content_main .WRAPPER .form .table_title{
	margin-left:4%;
}

#content_main .WRAPPER .form .table_form{
	padding-top:10px;
}

#content_main .WRAPPER .BOX{
	padding:10px 0px 20px 0%;
}

img#text_title{width:200px; height:32px;}

/*===FOOTER區===*/
#FOOTER{
	height:100px;
}

img#footer_1{
	/*max-width:450px;*/
	margin-top:-2%;
	width:70%;
}
	
img#footer_2{
	/*max-width:280px;*/
	margin-top:-5%;
	width:50%;
}
/*===FOOTER區END===*/


}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
/* 手機(橫式) 和 平板(直式) */
@media only screen and (min-width: 450px) and (max-width: 600px) {

img#logo{width:136px; height:64px;}

#content_main .WRAPPER .KV{
	padding-top:70px;
}

#content_main .WRAPPER .theme1{
	width:57%;
	margin-top:90px;
}

#content_main .WRAPPER .theme2{
	width:43%;
	margin-top:5px;
	margin-left:1%;
}

#content_main .WRAPPER .form{
	margin-top:100px;
}

img#table_title_s{visibility:hidden; position:absolute;}
img#table_title_h{visibility:visible; position:relative;}

#content_main .WRAPPER .form .table_title{width:98%; margin-left:1%;}

#content_main .WRAPPER .form .table_form{width:99%; margin-top:0px;}

#content_main .WRAPPER .BOX{
	padding:5px 0px 10px 2%;
}

#content_main .WRAPPER .BOX_text{
	width:90%;
	padding:0 15px;
}

img#text_title{width:250px; height:40px;}

#FOOTER_aff{
	height:50px;
}
img#footer_3{
	/*max-width:450px;*/
	margin-top:-10px;
	width:445px;
}
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
/* 手機(直式) */
@media only screen and (max-width: 449px) {
img#logo{width:102px; height:42px;}

#content_main .WRAPPER .KV{
	padding-top:70px;
}

#content_main .WRAPPER .theme1{
	width:57%;
	margin-top:80px;
}

#content_main .WRAPPER .theme2{
	width:43%;
	margin-top:5px;
	margin-left:1%;
}

#content_main .WRAPPER .form{
	margin-top:50px;
}

img#table_title_s{visibility:hidden; position:absolute;}
img#table_title_h{visibility:visible; position:relative;}

#content_main .WRAPPER .form .table_title{width:98%; margin-left:1%;}

#content_main .WRAPPER .form .table_form{width:99%; margin-top:0px;}

#content_main .WRAPPER .BOX{
	padding:5px 0px 10px 2%;
}

#content_main .WRAPPER .BOX_text{
	width:90%;
	padding:0 15px;
}

img#text_title{width:250px; height:40px;}

/*===FOOTER區===*/
#FOOTER{
	height:80px;/*脚部的高度*/
}

#FOOTER_aff{
	height:50px;
}
img#footer_3{
	/*max-width:450px;*/
	margin-top:-5px;
	width:85%;
}

img#footer_1{
	margin-top:-3%;
	width:100%;
}
	
img#footer_2{
	margin-top:-8%;
	width:100%;
}
/*===FOOTER區END===*/

}

@media only screen and (max-width: 340px) {
#content_main .WRAPPER .logo{
	right: 5px;
	background-color:rgba(255,255,255,0.7);
}

#content_main .WRAPPER .KV{
	padding-top:70px;
}

#content_main .WRAPPER .theme1{
	width:65%;
	margin-top:70px;
}

#content_main .WRAPPER .theme2{
	background-color:rgba(255, 255, 255, 0.9);
}

#content_main .WRAPPER .form .table_title{width:75%; margin-left:5%;}

img#table_title_h{visibility:hidden; position:absolute;}
img#table_title_s{visibility:visible; position:relative;}
#content_main .WRAPPER .form{
	margin-top:30px;
}
#content_main .WRAPPER .form .table_form{
	height:280px;
}
}