@charset "UTF-8";

h2,
h3{
	font-weight:normal;
	font-size:2.3rem;
	margin-bottom:15px;
}
h3{ font-size: 1.5rem; margin-bottom: 20px; }
h2 span{ font-size:1.5rem; }
h3 span{ font-size: 0.9rem; }

header{
	width: 100%;
	background-color: transparent;
	position: fixed;
	top: 0;
	left: 0;
	z-index:100;
	background-color: #FFF;
	border-bottom: 1px solid #ccc;
}
header h1{ letter-spacing: -1px; }
header h1,
header h1 a{ color: #9f9f9f; }
header nav { height: 50px; line-height: 50px; }
header nav h1{ float:left; font-size: 2.6rem; margin-right:15px; margin-left: 10px; }
header nav ul{ float: left; }
header nav ul li{ float: left; margin-right: 5px; font-size: 1.2rem; }
header nav ul li:last-child{ margin-right: 0; }
main{ width:100%; padding: 70px 15px 80px; box-sizing: border-box; }
footer{ position: absolute; bottom: 0; width: 100%; height: 50px; line-height: 50px; }

#toppage .toppageContents{
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translateY(-50%) translateX(-50%);
	transform: translateY(-50%) translateX(-50%);
}
#toppage header{ background: none; position: static; border-bottom: none;}
#toppage header h1{ text-align: center; font-size: 38px; text-shadow: 3px 2px 3px rgba(32, 32, 32, 0.4); color: #FFF; }
#toppage main{ padding: 0; margin-top: 10px; }
#toppage nav ul{ text-align: center; }
#toppage nav ul li{ display: inline-block; margin-right: 3px; }
#toppage nav ul li:last-child{ margin-right: 0; }


#aboutpage .profile{ margin-top: 15px; }
#aboutpage .profile h3{ margin-bottom: 10px; }
#aboutpage .profile dl dt{ border-top: 1px dashed #555; padding-top: 5px; }
#aboutpage .profile dl dd{ margin-left: 1.0em; padding-bottom: 5px; }

#workspage main ul li{
	float:left;
	width:48%;
	height:auto;
	margin-bottom: 20px;
}
#workspage main ul li:nth-child(2n){
	float: right;
}
#workspage main ul li a{ 
	display: block;
	-webkit-box-shadow: 7px 7px 5px -5px #777;
	-moz-box-shadow: 7px 7px 5px -5px #777;
	box-shadow: 7px 7px 5px -5px #777;
}
#workspage main ul li .data{
	margin-top: 8px;
	text-align: center;
	font-size: 1.2rem;
}
#workspage main ul li .data span{ font-size: 1.0rem; margin-left: 5px; }

/* fancybox */
#fancybox-title-inside{
	background-color: #FFF;
	color: #000;
}
#fancybox-title-inside .access{ display: none; }

#contactpage form p{ margin-bottom: 15px; }
#contactpage #formWrap dl{ border-bottom: 1px dashed #555; padding-bottom: 10px; margin-bottom: 10px; }
#contactpage #formWrap dl.lastChild{ border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
#contactpage #formWrap dl dd{ margin-left: 1.0em; }


/* ===========================================================
   640px 以上
============================================================*/
@media screen and (min-width: 640px) {
	#aboutpage .profile dl dt{ padding-top: 10px; margin-bottom: 5px; }
	#aboutpage .profile dl dd{ padding-bottom: 10px; }

	#workspage main ul li{
		width:30%;
		margin-right:5%;
	}
	#workspage main ul li:nth-child(2n){
		float: left;
	}
	#workspage main ul li:nth-child(3n){
		margin-right: 0;
	}

	#contactpage form{ max-width: 600px; }
}


/* ===========================================================
   860px 以上
============================================================*/
@media screen and (min-width: 860px) {
	h2,
	h3{
		font-size:2.6rem;
		margin-bottom:20px;
	}
	h3{ font-size: 1.5rem; margin-bottom: 30px; }
	h2 span{ font-size:1.5rem; }
	h3 span{ font-size: 1.0rem; }
	header nav { width: 860px; margin: 0 auto; }
	header nav h1{ font-size: 3.0rem; margin-right:50px; margin-left: 0; }
	header nav ul li{ font-size:1.5rem; margin-right: 20px; }
	main{ width:860px; margin:0 auto; padding: 70px 0 120px; }

	#toppage main{ margin-top: 20px; }
	#toppage nav ul li{ margin-right: 20px; }
	#toppage nav ul li:last-child{ margin-right: 0; }

	#aboutpage .profile{ margin-top: 30px; }

	#workspage main ul li{
		width:200px;
		height:240px;
		margin-right:20px;
		margin-bottom: 0;
	}
	#workspage main ul li:nth-child(3n){
		margin-right: 20px;
	}
	#workspage main ul li:nth-child(4n),
	#workspage main ul li.endCol{
		margin-right:0px;
	}
	#workspage main ul li a{
		-webkit-box-shadow: 10px 10px 5px -5px #777;
		-moz-box-shadow: 10px 10px 5px -5px #777;
		box-shadow: 10px 10px 5px -5px #777;
	}
	#fancybox-title-inside .access{ display: inline-block; }
}
