/* ================================================================================

	共通CSS

================================================================================ */
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

/* 基本タグ */
* {
	background: transparent;
}

body {
	font-size: 0.9em;
	font-family: YuGothic, "Hiragino Kaku Gothic ProN", Meiryo;
}

div {
	margin-left: auto;
	margin-right: auto;
}
}

hr {
	border: 0;
	border-top: 2px dashed #6ba8e5;
}

a {
	color:#003399;
}

a:hover {
	color:#66ccff;
}

h1 {
	font-size: 1.2em;
}

/* テーブルとか */
table {
	table-layout: fixed;
	border-collapse: collapse;
	
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

caption {
	font-size: 120%;
	font-weight: bold;
	margin-bottom: .2em;
}

td, th {
	border: solid 1px #999;
	text-align: center;
	vertical-align: center;
	padding: .5em 0;
}

th {
	background-color: #eee;
}

/* フォームとか */
form {
	margin: 0;
}

input, button, textarea, select, .customSelect { 
	vertical-align: middle; 
}

input[type="button"], input[type="submit"], input[type="text"], input[type="password"], select, .customSelect {
	height: 2em;
}

input[type="button"], input[type="submit"] {
	padding: 0 .7em;
	text-align: center;
}

input[type="text"], input[type="password"], textarea {
	padding: 0 .2em;
	background-color: #fff;
	border: 1px solid #999;
}

input[type="text"]:hover, input[type="password"]:hover, textarea:hover {
	border: 1px solid #666;
}

select option {
	background-color: #fff;
}

textarea {
	resize: none;
}

/* 汎用グラデーション */
input[type="button"], input[type="submit"], select, #datepicker, .customSelect {
	border: 1px solid #bbbbbb;
	border-radius: 2px;
	box-shadow: 0 -1px 0 #ffffff inset, 1px 1px 0 rgba(0, 0, 0, 0.05);
	color: #333333;
	cursor: pointer;
	text-decoration: none;
	text-shadow: 0 1px 0 #ffffff;
	
	background: #feffe8; /* Old browsers */
	background: -moz-linear-gradient(top,  #ffffff 10%, #e5e5e5 66%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(10%,#ffffff), color-stop(66%,#e5e5e5)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffffff 10%,#e5e5e5 66%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 10%,#e5e5e5 66%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 10%,#e5e5e5 66%); /* IE10+ */
	background: linear-gradient(to bottom,  #ffffff 10%,#e5e5e5 66%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-8 */
}

/* 汎用グラデーション オンマウス時 */
input[type="button"]:hover, input[type="submit"]:hover, select:hover, #datepicker:hover, .customSelect:hover
.truefile:hover ~ input[type="button"].fakefile {
	border: 1px solid #888888;
	
	background: #f9f9f9;
	background: -moz-linear-gradient(top, #fcfcfc, #e1e1e1);
	background: -webkit-linear-gradient(top, #fcfcfc, #e1e1e1);
	background: -o-linear-gradient(top, #fcfcfc, #e1e1e1);
	background: linear-gradient(to bottom, #fcfcfc, #e1e1e1);
	color: #333;
}

/* 汎用グラデーション クリック時 */
input[type="button"]:active, input[type="submit"]:active, select:active, #datepicker:active, .customSelect:active
.truefile:active ~ input[type="button"].fakefile {
	border: 1px solid #777;
	
	background: -moz-linear-gradient(top, #e1e1e1, #f9f9f9);
	background: -webkit-linear-gradient(top, #e1e1e1, #f9f9f9);
	background: -o-linear-gradient(top, #e1e1e1, #f9f9f9);
	background: linear-gradient(to bottom, #e1e1e1, #f9f9f9);
	color: #333;
}

/* ================================================================================

	id

================================================================================ */

/* ヘッダ部分 */
#header {
	padding: 10px 15px;
	
	/*min-width: 1000px;	/* 画面を縮めたときに崩れないように */
}

#header-title {
	font-size: 2em;
	font-weight: bold;
}

.menu {
	font-size: 18px;
	padding: 10px 10px;
}

/* メイン表示部分 */
#main {
	/*margin: 0 10%;*/
	margin-right: 50px;
	margin-left: 50px;
}

#menu {
	vertical-align: top;
	padding-top: 10px;
	font-size: 1.4em;
	width: 220px;
}

/* フッタ部分 */
#footer {
}

#header, #main, #footer {
	min-width: 800px;
}

/* ================================================================================

	class

================================================================================ */
.horizontal-box {
	float: left;
}

.horizontal-box-rev {
	float: right;
	text-align: right;
}

.clearfix:after {
	content: "";
	clear: both;
	display: block;
}

div.check-group label, div.radio-group label {
	display: block;
	cursor: pointer;
	overflow: hidden;
	height: 26px;
	line-height: 26px;
	padding: 0 0 0 26px;
}

div.radio-group label {
	background: url(../img/radio.gif) no-repeat left top;
}
div.check-group label {
	background: url(../img/checkbox.gif) no-repeat left top;
}

div.check-group label.checked, div.radio-group label.checked {
	background-position: left bottom;
}

div.check-group div, div.radio-group div {
	position: relative;
}

div.check-group input, div.radio-group input {
	position: absolute;
	left: 0px;
	outline:none;
    opacity: 0;
    filter:alpha(opacity=0);
}

.filebuttonbox, .upload-box input {
	height: 2em;	/* 高さをそろえる */
}

.filebuttonbox, input[type="button"].fakefile {
	width: 3.5em;		/* 幅をそろえる */
}

.filebuttonbox {
	overflow: hidden;	/* クリッピング */
	position: relative;
}
.truefile {
	height: 300px;
	font-size: 300px;
	
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;	/* 背面に表示 */
	
	opacity: 0;
	filter:alpha(opacity=0);
	
	cursor: pointer;
}

input[type="button"].fakefile {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;	/* 前面に表示 */
	
	cursor: text;
}

.filetext {
	width: 100px;
}

.filebuttonbox, .filetext {
	margin-right: .3em;
}

.divtable {
	display: table;
	width: 100%;
	margin: auto;
	table-layout: fixed;
}

.divcell {
	display: table-cell;
}

.customSelect {
	padding: 0 .3em;
    line-height: 1.9em;
}

.customSelect:after {
    position: absolute;
    top: .2em;
    right: .7em;
    display: block;
    font-size: .6em;
    color: #7db7e5;
    content: "▼";
}