@charset "UTF-8";

/*全ページ共通
-----------------------------------------*/

/* reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}
img {
		max-width:100%;
		height:auto;
	}






body{
	font-size: 13px;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	line-height: 1.9;
	color: #CACFCD;
	background-color: #29322d;
}

a {
	text-decoration: none;
	color: #CACFCD;
}

.container{
	margin: 0;
	padding: 0;
}
#wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 25px 0;
}

#header{
	overflow: hidden;
	zoom:1;
	margin-bottom: 24px;
}

#header .container {
	padding:0 0 20px;
	overflow:hidden;
}

h1{
	width: 177px;
	height: 23px;
	float: left;
	padding-top:6px;
}

h1 a:hover img {
	opacity: 0.3;
	filter: alpha(opacity=80);
}

#modal-checkbox,#modal-open {
  display: none;
}
#modal-content {
	float: right;
}
#gNavi {
	list-style: none;
}

#gNavi li{
	float: left;
	padding-right: 25px;
	padding-top:16px;
	font-size:11px;
	font-weight:bold;
	letter-spacing:1px;
}

#gNavi li:last-child {
	padding-right:0;
}

#gNavi li a {
	color:#CACFCD;
}

#gNavi li a:hover {
	opacity:0.8;
	filter: alpha(opacity=80);
}

#mainINDEX img{
	padding-left: 25px;
	padding-top: 12px;
}
#contents{
  overflow: hidden;
}


#footer{
	text-align: right;
	font-size:80%;
	padding:60px 0 16px 0;
}

.clearfix {width:100%;}
.clearfix:after {
  content: ""; 
  display: block; 
  clear: both;
 }

.center {
	text-align:center;
}

.right {
	text-align:right;
}

.left {
	text-align:left;
}




@media only screen and (max-width: 900px) {
	#header,#contents {
		padding: 0 16px;
	}
	#footer {
		padding-right: 16px;
		padding-left: 16px;
	}
}

/* スマホ */
@media only screen and (max-width: 640px) {
	html{
		font-size: 62.5%;
		}
	
	body{
		font-size: 1.4rem;
		width:100%;
		padding:0;
		}
		
	img {
		max-width:100%;
		height:auto;
	}
	#wrapper {
		padding: 0;
	}
		
	#header{
		background-color: #29322d;
		text-align: center;
		display: block;
	}
	#header .container {
		padding: 0;
	}
	
	#header h1 {
		float:none;
		text-align:center;
		display:inline-block;
		padding-top:24px;
	}
	
	#header h1 img {
		width:85%;
	}
	
	#gNavi {
		overflow: hidden;
		zoom:1;
		list-style: none;
		margin:0 auto;
	}
	
	#gNavi li{
		float: none;
		margin: 0;
		padding: 8px 0;
		font-size: 12px;
		color: #29322d;
		letter-spacing:1px;
		border-bottom: 1px solid;
	}
	#gNavi li:last-child {
		border-bottom:none;
	}
	
	#gNavi li a{
		display: block;
		box-sizing: border-box;
		padding:1rem 2rem;
		color: #29322d;
		font-weight:bold;
	}
	
	#main {
		padding-top:4%;
	}	

	#modal-checkbox {
	  display: none;
	}
	#modal-open {
	  cursor: pointer;
	  display: inline-block;
	  height: 36px;
	  width: 32px;
	  position: absolute;
	  top: 16px;
	  right: 16px;
	  z-index: 100;
	}
	#modal-content {
		display: none;
		float: none;
	  overflow: auto;
	  position: fixed;
	  top: 64px;
	  left: 5%;
	  right: 5%;
	  z-index: 40;
	  background: #CACFCD;
	  transition: all 0.3s ease-in-out 0s;
	  /*transform: translate(-50%, -50%);*/
	  opacity: 0;
	  box-shadow: 0 0 24px rgba(0, 0, 0, 0.16);
	}
	#modal-checkbox:checked ~ #modal-content {
	  opacity: 1;
	  display: block;
	}
	#modal-close {
	  display: none;
	  position: fixed;
	  z-index: 39;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: #000;
	  opacity: 0;
	  transition: all 0.3s ease-in-out 0s;
	}
	#modal-checkbox:checked ~ #modal-close {
	  display: block;
	  opacity: 0.6;
	}

	/*ハンバーガー*/
	#modal-open span {
	  background:  #CACFCD;
	  border-radius: 4px;
	  display: block;
	  height: 6%;
	  position: absolute;
	  left: 50%;
	  top: 50%;
	  margin: -1% 0 0 -42%;
	  transition: all 0.3s ease-in-out 0s;
	  width: 84%;
	}
	#modal-open span::before,
	#modal-open span::after {
	  -webkit-transform: rotate(0);
	  background: #CACFCD;
	  border-radius: 4px;
	  content: "";
	  display: block;
	  height: 100%;
	  left: 50%;
	  margin: -2% 0 0 -50%;
	  position: absolute;
	  top: 50%;
	  transform: rotate(0);
	  transition: all 0.3s ease-in-out;
	  width: 100%;
	}
	#modal-open span::before {
	  margin-top: -30%;
	}
	#modal-open span::after {
	  margin-top: 24%;
	}
	#modal-checkbox:checked ~ #modal-open span {
	  background: rgba(51, 51, 51, 0);
	}
	#modal-checkbox:checked ~ #modal-open span::before,
	#modal-checkbox:checked ~ #modal-open span::after {
	  content: "";
	  display: block;
	  height: 100%;
	  left: 50%;
	  margin: -8% 0 0 -42%;
	  position: absolute;
	  top: 50%;
	  width: 100%;
	}
	#modal-checkbox:checked ~ #modal-open span::before {
	  -webkit-transform: rotate(-45deg);
	          transform: rotate(-45deg);
	}
	#modal-checkbox:checked ~ #modal-open span::after {
	  -webkit-transform: rotate(45deg);
	          transform: rotate(45deg);
	}

	#contents {
		padding: 0 6%;
	}
	#footer {
		padding: 6% 6% 2% 6%;
	}
 
}

