/*
 * Theme Name: Code Tikuwa
 * Author: Shogo Kawahara
 * Author URI: http://www.bucyou.net
 * Version: 1.6
 * */

html {
	margin: 0;
	padding: 0;

	background-position: left;
	background-image: url('images/back.jpg');
	background-repeat: repeat-y;
	background-attachment: fixed;
	height: auto;
	margin: 0px auto;

	font-family: 'Arimo', sans-serif;
}

img{
	max-width: 100%;
	height: auto;
}

article, nav.pager {
	background-color: #FDFDFD;
	width: 510px;
	padding: 10px;
	margin: 30px 58px;
	border-radius: 10px;
}
.clear {
	clear: both;
}

article h2 {

}

article h2 a {
	color: #666;
}

article {
	color: #666;
	font-size: 11px;
	line-height: 2em;
}

article p {
	margin: 3px 5px;
}
article .alignleft {
	float: left;
}
article .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}
article .alignright {
	float: right;
}
#main-nav {
	display: block;
}

#mobile-nav {
	display: none;
}

#nav-logo {
	position: fixed;
	right: 0;
	bottom: 0px;
	z-index: 1;
}

#nav-recover {
	position: fixed;
	z-index: 5;
	right: 260px;
	bottom: 320px;
}

#nav-works {
	position: fixed;
	z-index: 2;
	right: 330px;
	bottom: 240px;
}

#nav-profile {
	position: fixed;
	z-index: 3;
	right: 210px;
	bottom: 260px;
}

#btn-email {
	position: fixed;
	z-index: 4;
	right: 80px;
	bottom: 50px;
}

#btn-facebook {
	position: fixed;
	z-index: 4;
	right: 40px;
	bottom: 50px;
}

@media screen and (max-width: 1035px), screen and (max-height: 500px) {
	#main-nav {
		display: none;
	}

	#mobile-nav {
		display: block;
		color: #FFFFFF;
		position: fixed;
		top: 0px;
		width: 100%;
	}

	#mobile-nav a {
		color: white;
		text-decoration: none;
	}

	#mobile-nav h1 {
		font-size: 1.5em;
		padding: 15px;
		text-align: center;
		box-shadow: 0px 1px 3px #AAA;
		background-color: #000000;
	}

	#mobile-nav ul {
		box-shadow: 0px 1px 3px #CCC;
		background-color: #000000;
		height: 50px;
	}

	#mobile-nav li {
		font-size: 1em;
		padding: 20px 5px 20px 20px;
		float: left;
	}

	#mobile-nav .expand-mobile-nav {
		display: none;
	}

	html {
		background-position: center;
	}

	article:first-child {
		margin: 130px auto 30px auto;
	}

	article, nav.pager {
		width: 510px;
		padding: 10px;
		margin: 30px auto;
		border-radius: 10px;
	}
}

@media screen and (max-width: 550px) {
	html {
		background-image: url('images/back-small.jpg');
	}

	#mobile-nav h1 {
		font-size: 1em;
		padding: 15px;
		text-align: center;
	}

	#mobile-nav ul.hide-small-mobile {
		display: none;
	}

	#mobile-nav ul {
		box-shadow: 0px 1px 3px #CCC;
		background-color: #000000;
		opacity: 0.8;
		height: auto;
	}

	#mobile-nav li {
		font-size: 1em;
		padding: 20px 5px 20px 20px;
		float: none;
	}

	#mobile-nav .expand-mobile-nav {
		display: block;
	}

	#mobile-nav .expand-mobile-nav a {
		font-size: 0.8em;
		font-weight: bold;
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow: 1px 1px 3px 3px #666 inset;
		position: fixed;
		top: 10px;
		right: 5px;
		padding: 5px;
	}

	article:first-child {
		margin: 60px auto 30px auto;
	}

	article, nav.pager {
		width: 200px;
		padding: 10px;
		margin: 30px auto;
		border-radius: 10px;
	}
}

@media screen and (max-height: 320px) {
	#mobile-nav li {
		font-size: 1em;
		padding: 10px 5px 10px 20px;
	}
}
