@charset "utf-8";


/*全体の設定
---------------------------------------------------------------------------*/
body {
	color: #333;	/*全体の文字色*/
	margin: 0px;
	padding: 0px;
	font: 14px/2 "メイリオ", Meiryo, "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro";	/*文字サイズ、行間、フォントファミリー*/
	background: #fff;	/*背景色*/
}
h1,h2,h3,h4,h5,p,ul,ol,li,dl,dt,dd,form,figure{
	margin: 0px;
	padding: 0px;
}
ul{
	list-style-type: none;
}
img {
	border: none;
	vertical-align: bottom;
}
input,textarea,select {
	font-size: 1em;
}
form {
	margin: 0px;
}
table {
	border-collapse:collapse;
	font-size: 100%;
	border-spacing: 0;
}

/*リンク（全般）設定
---------------------------------------------------------------------------*/
a {
	color: #333;	/*リンクテキストの色*/
}
a:hover {
	color: #0c3ecc;			/*マウスオン時の文字色*/
	text-decoration: none;	/*マウスオン時に下線を消す設定。残したいならこの１行削除。*/
}

/*ヘッダー（サイト名ロゴが入ったブロック）
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header {
	width: 100%;	/*幅*/
	background: #0c3ecc url(../images/bg1.png);	/*背景色、背景壁紙の読み込み*/
	-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.7);	/*影。右・下・ぼかし幅・色を設定*/
	box-shadow: 0px 0px 10px rgba(0,0,0,0.7);	/*同上*/
	margin-bottom: 30px;
}
header #inner {
	width: 970px;	/*幅*/
	height: 80px;	/*高さ*/
	margin: 0 auto;
	position: relative;
}
/*ロゴ画像*/
header h1 img {
	position: absolute;
	left: 30px;	/*ヘッダーブロックに対して左から30pxの場所に配置*/
	top: 25px;	/*ヘッダーブロックに対して上から25pxの場所に配置*/
}


/*コンテナー
---------------------------------------------------------------------------*/
#container {
	width: 970px;
	margin: 0 auto;
}

/*トップページのスライドショー
---------------------------------------------------------------------------*/
#mainimg {
	clear: left;
	width: 100%;
	height: auto;
	position: relative;
	margin-bottom: 30px;
}

/*コンテンツ（main,subを囲むブロック）
---------------------------------------------------------------------------*/
#contents {
	clear: both;
}

/*メインコンテンツ
---------------------------------------------------------------------------*/
#main {
	float: left;	/*左側に回り込み*/
	width: 640px;	/*メインコンテンツ幅*/
	padding-bottom: 30px;
}
/*mainコンテンツのh2タグの設定*/
#main h2 {
	clear: both;
	margin-bottom: 15px;
	font-size: 100%;
	color: #fff;	/*文字色*/
	background: #000 url(../images/bg1.png);	/*背景色、背景画像の読み込み*/
	padding: 3px 10px;	/*上下、左右へとる余白*/
}
/*mainコンテンツのh2タグの１文字目の設定*/
#main h2::first-letter {
	border-left: 4px solid #0c3ecc;	/*左側の線の幅、線種、色*/
	padding-left: 8px;	/*線と１文字目の間にとる余白*/
}
/*mainコンテンツのh3タグの設定*/
#main h3 {
	clear: both;
	margin-bottom: 15px;
	font-size: 100%;
	background: #fff;	/*背景色（古いブラウザだとここの色のみが出ます）*/
	background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e5e5e5));	/*グラデーション*/
	background: -webkit-linear-gradient(#fff, #e5e5e5);	/*同上*/
	background: linear-gradient(#fff, #e5e5e5);			/*同上*/
	padding: 2px 15px;	/*上下、左右へとる余白*/
	border: 1px solid #ccc;	/*枠線の幅、線種、色*/
}
/*mainコンテンツの段落タグ設定*/
#main p {
	padding: 0.5em 15px 1em;	/*左から、上、左右、下への余白*/
}
#main p + p {
	padding-top: 0px;
}
#main h2 + p,
#main h3 + p {
	padding-top: 0px;
	margin-top: -5px;
}


/*サブコンテンツ
---------------------------------------------------------------------------*/
#sub {
	float: right;	/*右側に回り込み*/
	width: 300px;	/*サブコンテンツ幅*/
	padding-bottom: 30px;
}
/*subコンテンツ内のh2タグ設定*/
#sub h2 {
	font-size: 100%;
	padding: 8px 10px;		/*上下、左右への余白*/
	border-bottom: 3px solid #0c3ecc;	/*下線の幅、線種、色*/
	background: #111;	/*背景色（古いブラウザだとここの色のみが出ます）*/
	background: -webkit-gradient(linear, left top, left bottom, from(#222), to(#111));	/*グラデーション*/
	background: -webkit-linear-gradient(#222, #111);	/*同上*/
	background: linear-gradient(#222, #111);			/*同上*/
	color: #fff;		/*文字色*/
	margin-bottom: 1px;
}

/*サブコンテンツ内のメニュー
---------------------------------------------------------------------------*/
/*メニュー全体の設定*/
#sub ul.submenu {
	margin-bottom: 15px;	/*メニューブロックの下にあけるスペース*/
}
/*メニュー１個ごとの設定*/
#sub ul.submenu li a {
	text-decoration: none;
	display: block;
	padding: 2px 10px;	/*上下、左右への余白*/
	background: #484848;	/*背景色*/
	margin-bottom: 1px;	/*メニュー同士の隙間*/
	color: #fff;	/*文字色*/
}
/*マウスオン時*/
#sub ul.submenu li a:hover {
	background: #0c3ecc;	/*背景色*/
	color: #fff;	/*文字色*/
}

/*フッター設定
---------------------------------------------------------------------------*/
footer {
	clear: both;
	text-align: center;
	padding-top: 15px;
	padding-bottom: 15px;
	background: #0c3ecc;
	color: #fff;
}
footer .pr {
	display: block;
	font-size: 80%;
}
footer a {
	text-decoration: none;
	color: #fff;
}
footer a:hover {
	color: #fff;
}


/*PAGE TOP設定
---------------------------------------------------------------------------*/
#pagetop {
	clear: both;
}
#pagetop a {
	color: #FFF;		/*文字色*/
	background: #333;	/*背景色*/
	text-decoration: none;
	text-align: center;
	width: 60px;		/*ボックス幅*/
	line-height: 60px;	/*高さ*/
	display: block;
	float: right;
	letter-spacing: 0.1em;	/*文字間隔を少し広めにとる設定。*/
}
/*マウスオン時*/
#pagetop a:hover {
	background-color: #666;	/*背景色*/
	color: #FFF;			/*文字色*/
}

/*広告設定*/
.ad1 {
 text-align: center;
 padding-top: 8px;
 padding-bottom: 8px;
}
.ad2 {
 text-align: center;
 padding-top: 8px;
 padding-bottom: 30px;
}
.ad3 {
 padding-top: 8px;
 padding-bottom: 8px;
}


/*その他
---------------------------------------------------------------------------*/
.look {
	background: #dcdcdc;
}
.mb15,
.mb1em {
	margin-bottom: 15px;
}
.clear {
	clear: both;
}
ul.disc {
	padding: 0em 25px 1em;
	list-style: disc;
}
.color1 {
	color: #0c3ecc;
}
.pr {
	font-size: 10px;
}
.btn {
	font-size: 13px;
}
.wl {
	width: 96%;
}
.ws {
	width: 50%;
}
.c {
	text-align: center;
}
.r {
	text-align: right;
}
.big1 {
	font-size: 130%;
}
img {
	max-width: 100%;
	height: auto;
}



/*ここからタブレット用（481px～800px）環境の設定
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media (min-width:481px) and (max-width:800px){

/*ヘッダー（サイト名ロゴが入ったブロック）
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header #inner {
	width: auto;
}
/*ロゴ画像*/
header h1 img {
	position: absolute;
	left: 30px;
	top: 35px;
}

/*コンテナー
---------------------------------------------------------------------------*/
#container {
	width: auto;
	margin: 10px;
}


/*main,subコンテンツ
---------------------------------------------------------------------------*/
#main, #sub {
	float: none;
	width: auto;
	clear: both;
}


/*その他
---------------------------------------------------------------------------*/
/*<body class="s-n">指定の場合にsubブロックを表示させない設定*/
body.s-n #sub {
	display: none;
}

}



/*ここからスマートフォン用（480px以下）環境の設定
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media (max-width : 480px){

/*ヘッダー（サイト名ロゴが入ったブロック）
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header #inner {
	width: auto;
	height: auto;
	padding-bottom: 20px;
	text-align: center;
}
/*ロゴ画像*/
header h1 img {
	position: static;
	margin-bottom: 15px;
}

/*コンテナー
---------------------------------------------------------------------------*/
#container {
	width: auto;
	margin: 10px;
}


/*main,subコンテンツ
---------------------------------------------------------------------------*/
#main, #sub {
	float: none;
	width: auto;
	clear: both;
}
/*mainコンテンツの段落タグ設定*/
#main p {
	padding: 0.5em 5px 1em;
}


/*その他
---------------------------------------------------------------------------*/
.ws {
	width: 96%;
}
/*<body class="s-n">指定の場合にsubブロックを表示させない設定*/
body.s-n #sub {
	display: none;
}


}
