@charset "utf-8";

*{
	padding: 0;
	margin: 0;
}

p, li, dt, dd, th, td, address, blockquote, cite, pre, code, h1, h2, h3, h4, h5, h6, strong, em, small, input, textarea{
	font-size: 100%;
	font-weight: normal;
	font-style: normal;
}

img{
	vertical-align: bottom;
	border: none;
}

table{
	border-collapse: collapse;
}

ul, ol{
	list-style: none;
}

br{
	letter-spacing: 0;
}

/* -------- */

.center{ text-align: center;}
.right{ text-align: right;}
.left{ text-align: left;}

.small{ font-size: 80%;}
.large{ font-size: 110%;}
.bold{ font-weight: bold;}

.clickable{ cursor: pointer;}

.clear{ clear: both;}

.clearfix{ *zoom: 1;}
.clearfix:after{
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

.mt2{ margin-top: 2px !important;}
.mt4{ margin-top: 4px !important;}
.mt8{ margin-top: 8px !important;}
.mt16{ margin-top: 16px !important;}
.mt24{ margin-top: 24px !important;}
.mt32{ margin-top: 32px !important;}
.mt48{ margin-top: 48px !important;}
.mt64{ margin-top: 64px !important;}

.mb2{ margin-bottom: 2px !important;}
.mb4{ margin-bottom: 4px !important;}
.mb8{ margin-bottom: 8px !important;}
.mb16{ margin-bottom: 16px !important;}
.mb24{ margin-bottom: 24px !important;}
.mb32{ margin-bottom: 32px !important;}
.mb48{ margin-bottom: 48px !important;}
.mb64{ margin-bottom: 64px !important;}

.mtb2{ margin-top: 2px !important; margin-bottom: 2px !important;}
.mtb4{ margin-top: 4px !important; margin-bottom: 4px !important;}
.mtb8{ margin-top: 8px !important; margin-bottom: 8px !important;}
.mtb16{ margin-top: 16px !important; margin-bottom: 16px !important;}
.mtb24{ margin-top: 24px !important; margin-bottom: 24px !important;}
.mtb32{ margin-top: 32px !important; margin-bottom: 32px !important;}
.mtb48{ margin-top: 48px !important; margin-bottom: 48px !important;}
.mtb64{ margin-top: 64px !important; margin-bottom: 64px !important;}

.mw480{ width: 100%; max-width: 480px;}
.mw640{ width: 100%; max-width: 640px;}
.mw790{ width: 100%; max-width: 790px;}
.mw810{ width: 100%; max-width: 810px;}

/* ---------------- body ---------------- */

body{
	background: #000 none;
	font-family: Helvetica, Verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	font-size: 15px;
	font-weight: normal;
	font-style: normal;
	letter-spacing: 0.1em;
	line-height: 1.0;
	text-align: center;
	min-width: 320px;
}

em{
	font-size: 110%;
	font-weight: bold;
}

a{
	color: #f66;
	text-decoration: underline;
	-webkit-transition: color 0.16s ease;
	transition: color 0.16s ease;
}

a:hover{
	color: #666;
	text-decoration: none;
}

blockquote{
	background: #eee none;
	padding: 2px 20px;
}

pre > code{
	display: block;
	background: #eee none;
	font-family: "Courier", monospace;
	line-height: 1.4;
	word-wrap: normal;
	white-space: pre;
	overflow: scroll;
	padding: 20px;
}

ul.stt{
	list-style: disc none outside;
	padding-left: 1.2em;
}

ol.stt{
	list-style: decimal none outside;
	padding-left: 1.6em;
}

dl.compact dt{
	float: left;
	width: 10em;
	font-weight: bold;
}

dl.compact dd{
	margin-left: 10em;
	padding-bottom: 4px;
}

.article div.result{
	border: 1px solid #ccc;
	line-height: 1.4;
	word-wrap: normal;
	white-space: pre;
	overflow: scroll;
	padding: 20px;
}

/* ---------------- #wrapper ---------------- */

/*
	1: div#top_graphic
	10: div#main, div#footer
	20: div#header
*/

#wrapper{
	position: relative;
	background: #eee url(../img/bg.png) repeat scroll left top;
	width: 100%;
	overflow: hidden;
}

div.sd{
	max-width: 860px;
	width: 88%;
	padding: 2px 0;
	margin: 0 auto;
}

/* -------- */

#top_graphic{
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	max-height: 800px;/* js */
	overflow: hidden;
}

#top_graphic img{
	width: 100%;
}

/* ---------------- #header ---------------- */

#header{
	position: relative;
	z-index: 20;
	padding: 168px 0 2px 0;
	margin-bottom: 64px;
}

#logo{
	font-size: 80px;
	letter-spacing: 1px;
	height: 80px;
	overflow: hidden;
}

#logo a{
	color: #000;
	text-decoration: none;
}

#logo img{
	width: 80px;
	height: 80px;
	margin-right: 14px;
}

/* -------- */

ul#global_nav{
	position: fixed;
	top: 0;
	left: 0;
	background: #000 none;
	font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	color: #ccc;
	width: 100%;
	padding: 12px 0;
	text-align: right;
}

ul#global_nav > li{
	display: inline-block;
	margin-right: 16px;
	margin-left: 4px;
}

ul#global_nav > li a{
	color: #ccc;
	opacity: 1.0;
	text-decoration: none;
	-webkit-transition: opacity 0.16s ease;
	transition: opacity 0.16s ease;
}

ul#global_nav > li a:hover{
	opacity: 0.6;
}

ul#global_nav > li.nau a{
	color: #f66;
}

/* ---------------- #main ---------------- */

#main{
	position: relative;
	z-index: 10;
	background: #fff none;
	color: #333;
	line-height: 1.6;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.4);
	padding-top: 24px;
	padding-bottom: 48px;
	text-align: left;
}

#main > .inner{
	margin-right: 4%;
	margin-left: 4%;
}

#main > .inner > .section,
#main > .inner > .article{
	border-bottom: 1px solid #eee;
	padding-bottom: 8px;
	margin-bottom: 32px;
}

/* -------- */

#topicpath{
	font-size: 80%;
}

#topicpath a{
	margin-right: 4px;
}

#topicpath h1{
	display: inline;
}

/* -------- */

#main h2 > a,
#main h3 > a,
#main h4 > a{
	color: #333;
	text-decoration: none;
	opacity: 1.0;
	-webkit-transition: opacity 0.16s ease;
	transition: opacity 0.16s ease;
}

#main h2 > a:hover,
#main h3 > a:hover,
#main h4 > a:hover{
	opacity: 0.6;
}

#main h2{
	font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	font-size: 200%;
	line-height: 1.4;
	letter-spacing: 1px;
	margin: 32px 0;
}

#main h3{
	position: relative;
	left: -4.35%;
	font-size: 160%;
	line-height: 1.4;
	border-left: 8px solid #333;
	padding: 2px 0 2px 24px;
	margin: 32px 0;
}

#main h4{
	font-size: 160%;
	line-height: 1.4;
	margin: 32px 0 24px 0;
}

#main > .inner > .section p,
#main > .inner > .section dl,
#main > .inner > .section ul,
#main > .inner > .section ol,
#main > .inner > .article p,
#main > .inner > .article dl,
#main > .inner > .article ul,
#main > .inner > .article ol{
	margin-top: 16px;
	margin-bottom: 16px;
}

#main .social_btn li{
	display: inline-block;
	overflow: hidden;
	margin-right: 8px;
}

#main .social_btn li.hatena{ width: 130px;}
#main .social_btn li.twitter{ width: 110px;}
#main .social_btn li.fb{ width: 120px;}
#main .social_btn li.gplus{ width: 90px;}
#main .social_btn li.pocket{ width: 110px;}

/* -------- */

div.fb-like-box, div.fb-comments{
    background: #fff none;
	max-width: 640px;
}

div.fb-like-box, div.fb-like-box iframe[style], div.fb-like-box span{
    width: 100% !important;
}

div.fb-comments, div.fb-comments iframe[style], div.fb-comments span{
    width: 100% !important;
}

/* ---------------- #footer ---------------- */

div#footer{
	position: relative;
	z-index: 10;
	background: #000 none;
	color: #ccc;
	font-size: 90%;
	line-height: 1.6;
	padding-bottom: 32px;
	margin-top: 56px;
	text-align: left;
}

p#copyright{
	font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	margin: 16px 0;
}

/* ---------------- responsive ---------------- */

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

	dl.compact dt{
		clear: none;
		float: none;
		width: 100%;
		font-weight: bold;
		margin-top: 8px;
	}

	dl.compact dt:first-child{
		margin-top: 0;
	}

	dl.compact dd{
		margin-left: 1em;
	}

	/* -------- */

	#wrapper{
		border-top: 8px solid #000;
	}

	#top_graphic{
		position: static;
		max-height: 240px;
	}

	/* -------- */

	#header{
		padding-top: 64px;
		margin-bottom: 24px;
	}

	ul#global_nav{
		position: static;
		background: transparent none;
		color: #333;
		width: 82%;
		box-shadow: none;
		padding: 0;
		margin: 24px auto 0 auto;
		text-align: left;
	}
	
	ul#global_nav > li{
		display: block;
		width: 48%;
		border-bottom: 1px dotted #999;
		padding: 0;
		margin-left: 52%;
	}

	ul#global_nav > li.odd{
		float: left;
		margin-left: 0;
	}

	ul#global_nav > li a{
		display: block;
		color: #333;
		padding: 8px 4px;
	}

	ul#global_nav > li a:hover{
		color: #ccc;
	}
}
