/*
Theme Name: koei
Theme URI: 
Description: 光栄ホームのテーマ
Author: rnsk
Version: 1.2
*/

/* デフォルトスタイルクリア */
@import "css/reset.css";

/* ここから基本設定 */

/* Tell the browser to render HTML 5 elements as block */
header, footer, aside, nav, article, section {
	display: block;
}

body {
	font: normal 13px/1.5 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Verdana, 'ＭＳ Ｐゴシック', sans-serif;
	height: 100%;
	color: #333333;
	border-top: solid 5px #0250A5;
}

a {
	color: #333333;
	text-decoration: none;
	font-weight: bold;
}

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

a img:hover {
//	background-color: #fff;
	filter: alpha(opacity=70);
	-moz-opacity: 0.7;
	opacity: 0.7;
}

small {
	font-size: 90%;
}

.mt10 { margin-top: 10px; }
.mb10 { margin-bottom: 10px; }
.mt5 { margin-top: 5px; }
.mb5 { margin-bottom: 5px; }

.hide { display: none; }

.textl { text-align: left; }
.textr { text-align: right; }
.textc { text-align: center; }

.imgl, .imgr, .imgholder {
	display: block;
	margin: 0;
	padding: 4px;
	background-color: #fff;
	border: 1px solid #ccc;
	float: left;
}

.imgl {
	float: left;
	margin: 0 8px 8px 0;
	clear: left;
}

.imgr {
	float: right;
	margin: 0 0 8px 8px;
	clear: right;
}

img.thumbnail {
  width: 133px;
  height: 100px;
}

img.thumbnail_m {
  width: 180px;
  height: 130px;
}

img.thumbnail_s {
  width: 120px;
  height: 90px;
}

.clear {
	clear: both;
	font-size: 0px;
	line-height: 0%;
	height: 0px
}

.readmore {
	font-size: 12px;
	line-height: 14px;
	padding: 1px 18px 0 0;
	margin-top: 10px;
	background: url('images/circle.png') center right no-repeat;
	text-align: right;
}

.readmore a {
	color: #0250A5;
	display: inline;
}

.readmore a:hover {
	color: #ff9900;
}

.price {
	color: #ff0000;
	margin-top: 10px;
	text-align: right;
	font-weight: bold;
}

.red {
	font-weight: bold;
	color: #ff0000;
}

/*----wrapper----*/
#wrapper {
	width: 860px;
	margin: 0 auto;
	padding: 0;
	background-color: #fff;
	min-height: 100%;
	position: relative;

	-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 30px #ddd;

	position: relative;
	behavior: url(/koei/css/PIE.htc);
}

/*----header----*/
#wrapper > header {
	width: 820px;
	height: 160px;
	padding: 20px;
	margin: 0;
	background: url('images/header_top.png') no-repeat;
//	float: left;
	clear: both;
}

#wrapper > header h1 {
	float: left;
}

#wrapper > header h2, #wrapper > header p {
	float: right;
}

#wrapper > header h2 {
	font-size: 12px;
	line-height: 1.2;
	margin-bottom: 5px;
}

/*----news----*/
section#news {
	width: 810px;
	height: 20px;
	padding: 5px;
	margin: 0 20px;
	background-color: #fff;

	-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 5px #ddd;
	clear: both;

	position: relative;
	behavior: url(/koei/css/PIE.htc);
}

section#news p {
	border-left: solid 8px #0250A5;
	padding-left: 10px;
}

/*----nav----*/
nav {
	width: 200px;
	margin: 20px 0 20px 20px;
	float: left;
}

nav ul {
	list-style: none;
	display: block;
}

nav ul li {
	width: 186px;
	height: 25px;
	display: block;
	background: url('images/nav.png') no-repeat;
	margin-bottom: 5px;
	padding: 5px 7px;
}

nav ul li.detail {
	width: 184px;
	height: auto;
	display: block;
	background: none;
	background-color: #EEEEFF;
	border: 1px solid #ccc;
	padding: 5px 7px;
	font-size: 10px;

	/* css3 border radius */
	-webkit-border-bottom-right-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-radius-bottomright: 5px;
	-moz-border-radius-bottomleft: 5px;
//	border-radius: 5px;
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;

	position: relative;
	behavior: url(/koei/css/PIE.htc);
}

nav ul li.detail_bl {
	background-color: #ccc;
}

nav ul li.detail_bl a {
	color:#333;
}

nav ul li.detail_r {
	background-color: #ffeee6;
}

nav ul li.detail_r a {
	color: #BA0000;
}

nav ul li.black {
	background: url('images/nav_bl.png') no-repeat;
}

nav ul li.red {
	background: url('images/nav_r.png') no-repeat;
}

nav ul li a {
	color: #fff;
	display: block;
	padding: 8px 0 0;
	text-decoration: none;
}

nav ul li.black a {
	color: #ffff00;
}

nav ul li a span {
	float: right;
	font-size: 10px;
	margin: -8px 0 0;
}

nav ul li a:hover {
	color: #ff9900;
}

nav ul li.active a {
}

/*----contents----*/
#contents {
	width: 600px;
	min-height: 650px;
	margin: 20px;
	padding: 0;
	float: right;
	clear: right;
}

.contentl, .contentr {
	width: 295px;
	margin-top: 10px;
	margin-right: 10px;
	float: left;
}

.contentr {
	margin-right: 0;
	clear: right;
}

/*----box----*/
.box {
	border: 1px solid #999;
	padding: 10px;
//	margin-bottom: 10px;
}

.box > article {
	background-color: #EEEEFF;
	padding: 15px;
}

.box > article.backbl {
	background-color: #ccc;
}

.box > article.backr {
	background-color: #FFEEE6;
}

.box > article h2 {
	color: #0250A5;
	font-size: 16px;
	text-indent: 20px;
	background: url('images/forward.png') center left no-repeat;
	border-bottom: 1px solid #0250A5;
	margin: 0 0 10px 0;
	padding: 5px 0;
}

.box > article.backbl h2 {
	color: #313131;
	border-bottom: 1px solid #313131;
}

.box > article.backr h2 {
	color: #BA0000;
	border-bottom: 1px solid #BA0000;
}

/*----gallery----*/
.gallery {
	width: 100%;
	margin-top: 10px;
	clear: right;
	float: left;
}

.gallery .popupImage img {
	float: left;
}

.gallery .popupImage {
	margin: 0 9px 5px 0;
}

.gallery .popupImage:nth-child(4n) {
	margin: 0;
}

/*----table----*/
table {
	width: 100%;
	border-collapse: collapse;
	vertical-align: top;
	margin-top: 10px;
	border: 1px solid #ccc;
}

table td img {
	margin-right: 5px;
	float: left;
}

table td img:last-child {
//	margin-right: 0;
//	clear: right;
}

table thead th, table tbody th {
	color: #FFFFFF;
	background-color: #0250A5;
	border: 1px solid #ccc;
	vertical-align: middle;
	white-space: nowrap;
}

table tbody td {
	vertical-align: top;
	border: 1px solid #ccc;
}
	
table thead th, table tbody th, table tbody td {
	padding: 5px;
}

table .w250 {
	width: 250px;
}

table .w200 {
	width: 200px;
}

table .w150 {
	width: 150px;
}

table .w100 {
	width: 100px;
}

table .w80 {
	width: 80px;
}

table .w50 {
	width: 50px;
}

table .date {
	text-align: center;
}

table .num {
	text-align: right;
}

/*----form----*/
form td th, form td td {
	border: none;
	padding: 2px;
	font-weight: normal;
	color: #333;
	background-color: #fff;
}

form th, form td {
	text-align: left;
	vertical-align: top;
}

input[type="text"], input[type="password"], .textareawrap {
	padding: 2px;
	border: 1px solid #999;
//	background-color: #eee;
}

input[type="submit"], input[type="reset"], input[type="button"] {
	border: 1px solid #999;
	background-color: #fff;
	font-weight: bold;
	margin: 10px 0;
	padding: 2px 5px;
	color: #333;
}

input[type="text"] {
	width: 200px;
}

input[type="password"], input.num, input.min {
	width: 100px;
}

textarea {
	width: 100%;
	border: none;
	background-color: transparent;
}

form img.captchaImg {
	vertical-align: middle;
}

form input.captchaText {
	width: 100px;
	height: 20px;
}

/*----footer----*/
#wrapper > footer {
	width: 820px;
	padding: 20px;
	background-color: #999999;
	color: #fff;
	clear: both;
	text-align: center;
	font-size: 12px;
}

#wrapper > footer a {
	color: #fff;
	font-weight: normal;
}

#wrapper > footer a:hover {
	text-decoration: underline;
}

#footer_menu1 li, #footer_menu2 li {
	display: inline;
	margin-right: 5px;
	padding-right: 5px;
	border-right: 1px solid #fff;
}

#footer_menu1 li:last-child, #footer_menu2 li:last-child {
	margin-right: 0;
	padding-right: 0;
	border-right: none;
}