@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, font, 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,figure { margin: 0; padding: 0; background: transparent; border: 0; outline: 0; font-size: 1em; }
body, table, input, textarea, select, option { font-family: HiraKakuProN-W3; font-size: 1em; } article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, figure  { display: block; } ol, ul { list-style: none; } blockquote, q { quotes: none; } :focus { outline: 0; } ins { text-decoration: none; } del { text-decoration: line-through; }

table{ border-collapse:collapse; border-spacing:0; }

/* BASE ========== */
.main{
	max-width: 670px;
	position: relative;
	margin: 0 auto;
}

nav{
	float: left;
	width: 60px;
}

section, aside{
	float: right;
	width: 600px;
}

header, footer{
	float: none;
	width: 100%;
	clear: both;
}

@media ( max-width: 669px ){
	.main{
		max-width: 600px;
		position: relative;
		margin: 0 auto;
	}

	nav{
		float: none;
		width: 100%;
	}

	section, aside{
		float: none;
		width: 100%;
	}

	header, footer{
		float: none;
		width: 100%;
	}
}

body{
	background: url(/bg.gif) repeat;
	background-size: 1px;
	color: #fff;
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: 100%;
	font-family: Arial, Helvetica, sans-serif;
}

img{
	border: 0;
}

h1, h2{
	font-weight: normal;
	text-align: center;
}

h1{
	margin: 20px auto 0;
	font-size: 28px;
	text-shadow: 3px 3px 1px rgba(255,153,204,.5);
}

h2{
	margin: 20px auto;
	font-size: 24px;
	color: #f9c;
}

h2::before{
	content: "= ";
}

h2::after{
	content: " =";
}

h3{
	margin: 15px auto;
	font-weight: normal;
	font-size: 20px;
}

h4{
	margin: 10px auto;
	font-weight: normal;
	font-size: 16px;
}

p, li{
	font-size: 16px;
	margin: 5px auto;
}

strong{
	color: #f9c;
	font-size: 120%;
	font-weight: normal;
}

span{
	color: #9f9;
	font-size: 14px;
}

a{
	color: #9ff;
	text-decoration: border;
}

/* LAYOUT ========== */
header{
	margin-top: 2px;
	line-height: 1;
	display: table;
}

header ul{
	display: table-row;
}

header li{
	display: table-cell;
}

.icon{
	width: 60px;
}

footer{
	height: 2.5em;
	line-height: 2.5em;
	text-align: center;
}

section #last_mod,
section #counter{
	text-align: right;
}

section #twitter{
	text-align: center;
}

section > h3,
form > h3{
	border-left: 8px solid #ff9;
	border-bottom: 1px solid #ff9;
	padding-left: 8px;
}

section > h4,
form > h4{
	color: #9f9;
	border-bottom: 1px solid #999;
}

section > p,
section > dl{
	margin-bottom: 1em;
}

section, nav{
	margin-top: 1.5em;
}

nav li p{
	display: none;
}

#navi-icon{
	position: absolute;
	bottom: 0px;
	left: 0px;
}

@media ( max-width: 669px ){
	nav ul{
		border-left: 1px solid #666;
		border-top: 1px solid #666;
	}

	nav ul li{
		float: left;
		width: 50%;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
		        box-sizing: border-box;
		border-right: 1px solid #666;
		border-bottom: 1px solid #666;
	}

	nav li p{
		margin: 5px 5px 0 5px;
		font-size: 14px;
		line-height: 1.5;
		display: inline;
	}

	#navi-icon{
		position: relative;
		float: left;
		margin-top: 10px;
	}
}

nav li{
	height: 100%;
	list-style: none;
	overflow: hidden;
}

nav li img{
	float: left;
}

nav li a{
	text-decoration: none;
	display: block;
	overflow: hidden;
}

header > ul > li{
	height: 100%;
	list-style: none;
	overflow: hidden;
}

footer > ul > li{
	height: 100%;
	border-bottom: none;
	list-style: none;
	overflow: hidden;
	font-size: 14px;
}

ol.decimal{
	list-style-type: decimal;
	margin-left: 25px;
	margin-bottom: 1em;
}

ul.disc{
	list-style-type: disc;
	margin-left: 20px;
	margin-bottom: 1em;
}

ul.circle{
	list-style-type: circle;
	margin-left: 20px;
	margin-bottom: 1em;
}

section #diary{
	text-align: right;
}

#diary a{
	color: #9ff;
}

dl{
	width: 95%;
	position: relative;
	margin: 5px auto;
	border: 1px solid #666;
	border-bottom: none;
}

dt{
	border-bottom: 1px dashed #666;
	font-size: 16px;
	color: #ff9;
	margin: 5px auto;
}

dd{
	font-size: 16px;
	padding-left: 20px;
	border-bottom: 1px solid #666;
	margin: 5px auto;
}

blockquote{
	width: 95%;
	position: relative;
	margin: 5px auto;
	border: 1px solid #666;
	font-size: 16px;
}

.vw{
	    -ms-writing-mode: tb-rl;
	-webkit-writing-mode: vertical-rl;
}

.back_next{
	display: table;
	width: 100%;
}

.back_next ul{
	display: table-row;
}

.back_next li{
	display: table-cell;
	font-size: 14px;
}

li.back{
	text-align: left;
}

li.next{
	text-align: right;
}

li.root{
	text-align: center;
}

/* TABS ========== */
#aside{
	padding 0;
	background: url(/bg.gif) repeat;
	background-size: 1px;
	-webkit-border-radius: 0;
	border-radius: 0;
	font-size: 14px;
	overflow: hidden;
}

#aside p{
	display: inline;
	line-height: 1.5;
}

#aside li{
	font-size: 14px;
}

.ui-widget-content{
	border: 0;
}

.ui-widget-header{
	border: 0;
	border-bottom: 1px solid #ccc;
	-webkit-border-radius: 0;
	border-radius: 0;
	background: none;
}

.ui-tabs .ui-tabs-panel{
	background: #fff;
}

/* TICKER ========== */
.ticker{
	margin: 0 auto;
	width: 95%;
	max-width: 570px;
	text-align: left;
	border: #666 1px solid;
	position: relative;
	overflow: hidden;
	background-color:#000;
}

.ticker ul{
	width: 100%;
	position: relative;
}

.ticker ul li{
	width: 100%;
	display: none;
	font-size: 14px;
}

.ticker ul li a{
	color: #fff;
	text-decoration: none;
}

/* TABLES ========== */
table{
	width: 100%;
	text-align: left;
	border: 1px solid #666;
	background-color: #300;
	border-collapse: separate;
	font-size: 16px;
}

table th{
	font-weight: normal;
}

table thead th{
	border-bottom: 1px solid #666;
	border-right: 1px solid #333;
	padding: 5px 10px;
}

table tbody th,
table tbody td{
	border-bottom: 1px solid #666;
	border-right: 1px solid #333;
	padding: 5px 10px;
	background-color: #030;
}

table tbody tr:nth-child(even) th,
table tbody tr:nth-child(even) td {
	background-color: #003;
}

table tbody tr:last-child th,
table tbody tr:last-child td {
	border-bottom: none;
}

table thead th:last-child,
table tbody th:last-child,
table tbody td:last-child{
	border-right: none;
}

.caption{
	color: #fc9;
}
