﻿/* シムシティ攻略向けCSS */

/* ページ共通の設定 */
* { /* デフォルトの余白情報を統一 */
	margin:0;
	padding:0;
	}
a[href]:active {color:red;} /* リンクの色 */
a[href]:hover {color:red;}
a[href]{
	text-underline-position: under;
}


a[href].nolnkbar{ /*下線不要 */
	text-decoration: none;
	border-bottom: 0px solid;
}

a[href]:visited.nolnkchange {color:blue;} /* リンクの色 */
a[href]:hover.nolnkchange {color:red;}

a[href]:link.menuheadlnk {color:#FFFFFF; } /* リンクの色 */
a[href]:visited.menuheadlnk {color:#FFFFFF;} /* リンクの色 */
a[href]:hover.menuheadlnk {color:red;}



body {
	background-image: url('img/back.png');
	font-family:sans-serif;
}
p {
	margin-bottom: 10px;
}

h1 {
	font-size : medium;
	font-weight: normal;
}

h2 {
	font-size : medium;
	font-weight : bold;
	border-bottom : 1px dashed;
	margin-bottom: 10px;
	clear:both;
}
h3 {
	font-size : medium;
	font-weight : bold;
	margin-bottom: 5px;
	clear:both;
	}

h4 {
	font-size : medium;
	}
}
ul {
	margin: 0 0 0 2em;
	padding: 0;
}
li {
	margin-left: 2em;
	margin-bottom: 5px;

}
table {
	border: 1px solid #000000;
}
td {
	border-style: solid;
	border-width: 1px;
	width: auto;
	height: auto;
}

#undermenu{
	/*メニュー部*/
	max-width: 1900px;
	min-width: 320px;
/*	background-color: #FFFF00; /* レイアウト確認用 */
/*	margin: auto;*/
    bottom: 0;
    margin-top: 650px;
	position: fixed;	
}
.undermenu_in{
	/*メニュー部*/
	box-sizing:border-box;	
	width: 100%;
/*	padding: 0px 15px 0px 15px;*/
/*	background-color: #FF00FF; /* レイアウト確認用 */
	display: table;
	table-layout: fixed;
}

.undermenu_button{ /*ボタン部分*/
	/*メニュー部*/
	border: 2px solid black;
	border-right: none;
	display: table-cell;
	text-align: center;
	background-color: #EFEFEF;
}

.undermenu_button:last-child{ /*端っこだけ*/
	border: 2px solid black;
}


.undermenu_button span{
	margin: auto;
/*	background-color: green;*/
}


#out {
	/* 外レイアウト枠 */
	margin: auto;
	width: auto;
	max-width: 1900px;
	min-width: 320px;
	display: table;
/*	background-color: #FF0000; /* レイアウト確認用 */

}

/*メニューと本文の配置*/

#menu{
	/*メニュー部*/
	padding: 10px 0px 10px 15px;
	width: auto; 
/*	background-color: #FFFF00; /* レイアウト確認用 */
	display: table-cell;
	vertical-align: top;
}

#main {
	/* メイン部分 */
	padding: 10px 15px 80px 15px;
	width: 100%;
	min-height: 550px;
/* 	background-color: #00FFFF; /* レイアウト確認用 */
	display: table-cell;
	vertical-align: top;
}

#main_head {
	border: 2px solid black;
	font-size : medium;
	font-weight : bold;
	background-color: #808000;
	color: #FFFFFF;
	font-weight: normal;
	padding: 5px 10px 5px 10px;
}
/* メニュー内の表示 */
#menu_title {
	/* メニュータイトル部分 */
	border: 2px solid black;
	padding: 5px 10px 5px 10px;
	background-color: #808000;
	color: #FFFFFF;
	width: 195px;
}
.menu_head {
	/* メニュー見出し部分 */
	border: 2px solid black;
	font-size : medium;
	font-weight : bold;
	background-color: #808000;
	color: #FFFFFF;
	font-weight: normal;
	padding: 5px 10px 5px 10px;
	margin-top :10px;
	width: 195px;
 	display: table;

}
.menu_list {
	/* メニューリスト部分 */
	padding: 5px 10px 5px 10px;
	border-color: black;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-width: 2px;
	border-bottom-width: 2px;
	border-left-width: 2px;
	background-color : #EFEFEF;
	width: 195px;
 	display: table;
}

.menu_list_l {
	display: table-cell;
	vertical-align: top;
	float: left;
}
.menu_list_r {
	padding-left: 10px;
 	display: table-cell;
	vertical-align: top;
	float: left;

}

@media screen and (max-width: 800px) { /*800px以下で左メニュー飾り画像外す　*/
	.menu_list_l{
	display: none;
	}
	#menu_title,.menu_head,.menu_list {
	width: 165px;
	}
}

@media screen and (min-width: 550px) { /*500px以上で下メニュー非表示　*/
	#undermenu{
	display: none;
	}
}

@media screen and (max-width: 549px) { /*549px以下で一般メニュー非表示　*/
	#menu{
	display: none;
	}
}


@media screen and (max-width: 400px) { /* 400px以下は下メニュー文字小さく　*/
.undermenu_button span{
		font-size: small;
		}
}




#main_content {
	/* メイン部分 */
	padding: 10px 15px 10px 15px;
	min-height: 400px;
	line-height: 1.8; /*	background-color : #EFEFEF;*/;
	background-color: #FFFFFF;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-width: 2px;
	border-bottom-width: 2px;
	border-left-width: 2px;
}

.clear:after {
  content: ".";  /* 新しい要素を作る */
  display: block;  /* ブロックレベル要素に */
  clear: both;
  height: 0;
  visibility: hidden;
}

.clear {
  min-height: 1px;
}

* html .clear {
  height: 1px;
  /*\*//*/
  height: auto;
  overflow: hidden;
  /**/
}

.image-caption {
	border-style: dotted;
	border-width: 1px;
	width: 420px;
	object-fit: contain;
	padding: 10px 5px 0px 5px;
	margin: 0px 0px 10px 0px;
	background-color: #EFEFEF;
	font-size: small;
	text-align: center;
}

.image-caption2x {
	border-style: dotted;
	border-width: 1px;
	max-width: 840px;
	padding: 10px 5px 0px 5px;
	margin: 0px 0px 10px 0px;
	background-color: #EFEFEF;
	font-size: small;
	text-align: center;
}

span {
   display: inline-block;
}

/* レスポンシブに対応 */
img {
	max-width: 100%;
	height: auto;
}

.scrtbl { /*でかいテーブルはスクロールさせる*/
	width: calc(95vw - 300px);
	overflow: auto;	
	white-space:nowrap

}	

@media screen and (max-width: 800px) { /*一般メニュー非表示状態のテーブルスクロール幅　*/
	.scrtbl { /*でかいテーブルはスクロールさせる*/
		width: calc(95vw - 280px);
	}
}

	
@media screen and (max-width: 549px) { /*一般メニュー非表示状態のテーブルスクロール幅　*/
	.scrtbl { width: 80vw; }
}

table {
table-layout: fixed;
word-break: break-all;
word-wrap: break-all;
}


p{
	overflow-wrap: break-word;	
}


