﻿/* スクロールバーが出て中心位置がページによって変わることを防ぐ */
html {
  overflow-y:scroll;
}

/* ヘッダのメニューとそれ以下の階層構造に関する設定 */
#menu{
	margin-left: 0;
	margin-right: auto;
	padding-left: 0;
	background-color: #dddddd;
}

#menu li { /* トップページ　～　関連サイト のデザイン */
	list-style-type: none;
  position: relative;
  float: left;
  width: 157px;
  height: 30px;
	line-height: 30px;
  border: solid 1px #ffffff;
	background-color: #dddddd;
  font-weight: bold;
	text-align: center;
	vertical-align: middle;
}

#menu li a{
	display: block;
	text-decoration: none;
	font-size: 1.1em;
}

#menu li:hover {
  color: #ffaa00;
}

#menu li ul { /* トップページ　～　関連サイト の各項目 */
  display: none;
  position: absolute;
  top: 30px;
  left: -1px;
  padding: 2px;
  width: 200px;
  background: #eeeeee;
  border: solid 1px #ffffff;
	font-size: 0.75em;
}

/*
 トップページ　～　関連サイト の各項目のサブメニュー 
 ここではカリキュラムの下の統計学シラバスなどの項目を指す
*/
#menu li ul li {
  margin: 0;
  padding: 0;
  width: 200px;
	height: 30px;
  border: none;
	text-align: left;
  border: solid 1px #ffffff;
}

/*
 サブメニューのリンクに対する設定
*/

#menu li ul li a {
  display: inline-block;
	padding-left: 10px;
  width: 190px;
  height: 30px;
}

/*
 サブメニューの項目にマウスを重ねたときの設定
*/

#menu li ul li:hover {
  color: #ffaa00;
}

/* 各ページの見出し等の設定 */

h1{
	font-size: 1.25em;
	background-color: #dddddd;
}

h2{
	font-size: 1.1em;
	border-left: solid 22px #66aa66;
	padding-left: 5px;
}

#main p{
	margin-left: 15px;
	margin-right: 20px;
}

h3{
	font-size: 1em;
	border-left: solid 20px #66aa66;
	padding-left: 5px;
	margin-left: 10px;
}

div#header{
	margin-bottom: 20px;
}

div#container{
	border: solid 2px #bbffaa;
	padding: 20px;
	width: 957px;
	margin-left: auto;
	margin-right: auto;
}

/*
table#table_header th{
	background-color: #dddddd;
	width: 155px;
	height: 30px;
}

table#table_header a{
	text-decoration: none;
	font-size: 1.1em;
	display: block;
	color: #33aa88;
}
*/

/* Topへ戻るへのリンクを設定する */
div#totop {
	text-align: right;
	margin-bottom: 15px;
}

div#footer{
	background-color: #dddddd;
	margin-top: 5px;
	text-align: right;
}

a{
	color: #33aa88;
}

a:hover{
	color: #ffaa00;
}

div#main{
	clear: both;
	padding-top: 10px;
}

/* サイト内検索のテーブルを右側に配置 */
div#search table{
	margin-right: 0px;
	margin-left: auto;
}


