/*------reset------------*/

*{
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-decoration: none;
}

/*--------コンテンツ開始----------*/

body{
	background: #d5db61;
	position: relative;
}

/*--------ヘッダー---------------*/

header{
	width: 100%;
	position: relative;
	overflow: hidden;
	background: #000;
	box-sizing: border-box;
	margin: 0 auto 330px auto;
	background: rgba(0,0,0,0.3);
	border-bottom: 6px dashed #fff;
	border-left: 6px dashed #fff;
	border-right: 6px dashed #fff;
	max-width: 1200px;
}

div.header_content{
	width: 100%;
	height: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
	text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

p.logo{
	margin-bottom: 30px;
}

p.logo > a{
	color: #fff;
	font-weight: bold;
	font-size: 40px;
}

h1{
	font-size: 20px;
	color: #fff;
}

h2{
	margin-bottom: 40px;
	font-size: 30px;
}

/*-----メインイメージ-------*/

/* position: fixed; で画面一杯にメイン画像配置、z-indexで奥行きを一つ下げて、コンテンツを前に出す */

div.main_img{
	width: 100%;
	height: 500px;
	position: absolute;
	left: 0;
	right: 0;
	top: 70px;
	margin: auto;
	max-width: 1100px;
	border: 6px dashed #fff;
	z-index: -1;
}

div.main_img > p{
	width: 100%;
	height: 100%;
	overflow: hidden;
	max-height: 400px;
	box-sizing: border-box;
}

div.main_img > p > img{
	width: 100%;
	height: 100%;
	vertical-align: bottom;
	position: absolute;
}

/* 全体を覆っている箱（ラッパーなどの代わり） iron_case = 鉄の箱 */

div.iron_case{
	width: 100%;
	background: transparent;
	background: rgba(0,0,0,0.3);
	margin: 0 auto;
}

/* メインコンテンツ開始 */

div.main_content{
	width: 100%;
	margin: 0 auto 20px auto;
	overflow: hidden;
	color: #fff;
	background: transparent; /*<== メインコンテンツ背景色*/
	text-align: center;
	border: 6px dashed #fff;
	box-sizing: border-box;
	max-width: 1200px;
}


/* コンテンツを内包している箱 content_box */

div.content_box{
	width: 100%;
	padding: 30px 0;
	box-sizing: border-box;
	margin: 0 auto;
	overflow: hidden;
	border-bottom: 3px double #fff;
}

/* コンテンツ：テキスト部分 */

div.text_box{
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
	line-height: 2.0;
}

/* コンテンツ：画像部分 

div.img_box{
	width: 30%;
	overflow: hidden;
}

div.img_box > p{
	width: 100%;
	height: 100%;
}

div.img_box > p > img{
	width: 100%;
	height: 100%;
	vertical-align: bottom;
}

*/

/* 左回りこみ、右回り込み　をクラスの付与で分ける */

div.left{
	float: left;
}

div.right{
	float: right;
}

/* フッター */

footer{
	width: 100%;
	background: #000;
	box-sizing: border-box;
	border-top: 6px dashed #fff;
	border-left: 6px dashed #fff;
	border-right: 6px dashed #fff;
	max-width: 1200px;
	margin: 0 auto;
}

footer > p{
	width: 100%;
	margin: 0 auto;
	text-align: center;
	padding: 50px 0;
	box-sizing: border-box;
	color: #fff;
	font-size: 20px;
}

footer > p > a{
	font-weight: bold;
	color: #fff;
}

/* レスポンシブ　少し広い幅から、スマホ用に対応させる */

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

	div.main_content{
		border-radius: 0;
	}
	
}

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

	header{
		margin-left: 0;
		width: 100%;
		border-radius: 0;
		margin-bottom: 10px;
	}

	p.logo{
		text-align: center;
	}

	h1{
		text-align: center;
	}

	div.main_img{
		position: static;
		height: auto;
		border: none;
	}

	div.main_img > p{
		position: static;
		margin-bottom: 10px;
		height: auto;
		max-height: none;
	}

	div.main_img > p > img{
		vertical-align: bottom;
		height: auto;
		position: static;
	}

	div.header_content{
		
	}

	/* 背景色を透過させるための箱 color_box */

	div.color_box:first-child{
		width: 100%;
		background: transparent;
		float: none;
		margin: 0;
	}

	/* ボックスごとに透過率を変えることで、色を変化させる。 */

	div.color_box:nth-child(2){
		width: 100%;
		background: rgba(0,0,0,0.2);
		float: none;
		margin: 0;
	}

	div.color_box:nth-child(3){
		width: 100%;
		background: rgba(0,0,0,0.4);
		float: none;
		margin: 0;
	}

	div.color_box:nth-child(4){
		width: 100%;
		background: rgba(0,0,0,0.6);
		float: none;
		margin: 0;
	}

	div.color_box:nth-child(5){
		width: 100%;
		background: rgba(0,0,0,0.8);
		float: none;
		margin: 0;
	}

	div.color_box:nth-child(6){
		width: 100%;
		background: rgba(0,0,0,1);
		float: none;
		margin: 0;
	}

	div.color_box:first-child, div.color_box:nth-child(2), div.color_box:nth-child(3),
	div.color_box:nth-child(4), div.color_box:nth-child(5), div.color_box:nth-child(6){
		border: none;
		background: #000;
		border-radius: 0;
	}

	footer{
		margin: 0;
		width: 100%;
		border: none;
		border-radius: 0;
	}

}


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

	header{
		margin-bottom: 10px;
	}

	div.header_content{
		padding: 50px 20px 50px 20px;
	}

	h1{
		font-size: 16px;
	}

	div.text_box{
		width: 100%;
	}

	div.img_box{
		width: 100%;
	}

	div.left{
		float: none;
	}

	div.right{
		float: none;
	}

	div.content_box{
		padding: 50px 10px;
	}

	footer > p{
		font-size: 15px;
	}

	h2{
		font-size: 24px;
	}

}

/* カラーチェンジ */

body{
	background: #4b8654;
}

header, footer{
	background: rgba(200,44,221,0.8);
}

div.color_box:first-child,
div.color_box:nth-child(2),
div.color_box:nth-child(3),
div.color_box:nth-child(4),
div.color_box:nth-child(5),
div.color_box:nth-child(6){
	background: rgba(200,44,221,0.8);
}