@media screen and (min-width: 641px){
	body {
		max-width: 800px;
	}

	div#ReplayTitle {
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow:0px 0px 5px;
		text-align: center;
		font-size: 300%;
	}

	div#ReplayContext {
		display: grid;
		grid-template-columns: 155px 1fr;
	}

	div#ReplayBody{
/*
		display: inline-block;
		width:635px;
		vertical-align: top;
*/
		grid-column: 2 / 3;
		margin-top:5px;
		margin-left:1px;
		margin-bottom: 5px;
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow:0px 0px 5px;
	}

	div#ReplayIndex {
/*
		position: relative;
		width: 155px;
		display: inline-block;
*/
		grid-column: 1 / 2;
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow:0px 0px 5px;
		margin-top:5px;
		overflow: hidden;
	}

	ul#ReplayIndexItems{
		padding: 1px;
		margin: 1px 0px;
	}

	ul#ReplayIndexItems li{
		list-style: none;
		border-top: solid 1px #ccc;
		border-left: solid 1px #ccc;
		border-bottom: solid 1px #999;
		border-right: solid 1px #999;
		border-radius: 5px;
		padding: 5px 1px;
	}

	div#TopPage {
		width: 100%;
		border-top: 1px solid #999;
		background-color: #999;
		display: inline-block;
		margin-top:5px;
		padding: 5px 0;
		text-align: center;
	}

	div#IndexOpen {
		display: none;
	}

	h1{
		margin-top: 10px;
		margin-bottom: 1px;
		border-top: 2px solid black;
		border-bottom: 2px solid black;
	}

	h2{
		margin-top: 8px;
		margin-bottom: 1px;
		border-bottom: 1px solid black;
	}

	h3{
		margin-top: 6px;
		margin-bottom: 1px;
	}
}
@media screen and (max-width:640px){
	body{
		width:100%;
		margin: 0;
	}

	div#ReplayTitle {
		position: relative;
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow:0px 0px 5px;
		text-align: center;
		font-size: x-Large;
		width:100%;
	}

	div#ReplayBody{
		width:100%;
		margin-top:5px;
		margin-bottom: 5px;
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow:0px 0px 5px;
	}

	div#ReplayIndex {
		position: relative;
		width: 100%;
		border: 1px solid #999;
		border-radius: 5px;
		box-shadow:0px 0px 5px;
		margin-top:5px;
		overflow: hidden;
	}

	ul#ReplayIndexItems{
		padding: 1px;
		margin: 1px 0px;
	}

	ul#ReplayIndexItems li{
		width:100%;
		list-style: none;
		border-top: solid 1px #ccc;
		border-left: solid 1px #ccc;
		border-bottom: solid 1px #999;
		border-right: solid 1px #999;
		border-radius: 5px;
		padding: 5px 1px;
	}

	div#TopPage {
		width: 49%;
		display: inline-block;
		border-top: 1px solid #999;
		background-color: #999;
		padding: 5px 0;
		text-align: center;
	}

	div#IndexOpen {
		width: 49%;
		display: inline-block;
		padding: 5px 0;
		text-align: center;
	}

	h1{
		font-size: large;
		margin-top: 10px;
		margin-bottom: 1px;
		border-top: 2px solid black;
		border-bottom: 2px solid black;
	}

	h2{
		font-size: medium;
		margin-top: 8px;
		margin-bottom: 1px;
		border-bottom: 1px solid black;
	}

	h3{
		font-size: medium;
		margin-top: 6px;
		margin-bottom: 1px;
	}
}

div#ReplayContext{
	position: relative;
}

ul#ReplayIndexItems li {
	cursor: pointer;
}

ul#ReplayIndexItems li:hover{
	background-color: #ccc;
}

div#ReplayArea {
	position: relative;
	padding: 5px;
}

div#ToPageTop {
	position:relative;
	padding: 5px;
	text-align: right;
	background-color: #999;
}


/*
 *	リプレイ本文のキャラクター名
 */
th.Name {
	border: 1px solid lightgray;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	background-color: lightgray;
	width: 5em;
}

/*
 *	リプレイ本文の台詞部分
 */
td.Text {
	border: 1px solid lightgray;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	background-color: white;
}

/*
 *	画像、ヘックスグリッド表示領域
 */
div.Figure {
	border: 1px solid black;
	margin: 0 auto;
}

/*
 *	リプレイ本文表示部分
 */
table.ReplayText{
	margin-bottom: 1px;
	margin-bottom: 1px;
	table-layout: fixed;
	width: 100%;
}

/*
 *	セリフ表示内のテーブル
 */
table.InCommentTable{
	border-collapse: collapse;
	border: 1px solid black;
	margin: 0 5px;
}

table.InCommentTable th {
	border: 1px solid black;
	padding: 1px 3px;
	background-color: #ccc;
}

table.InCommentTable td {
	border: 1px solid black;
	padding: 1px 3px;
}

/*
 *	セリフ内水平線
 */
hr.MinusLine {
	border-width: 1px 0 0 0; /* 太さ */
	border-style: solid;     /* 線の種類 */
	border-color: darkgray;      /* 線の色 */
	height: 1px;             /* IE6用対策 */
	clear: both;             /* IE6用対策 */
}

hr.UnderbarLine {
	border-width: 1px 0 0 0; /* 太さ */
	border-style: solid;     /* 線の種類 */
	border-color: darkgray;      /* 線の色 */
	height: 1px;             /* IE6用対策 */
	clear: both;             /* IE6用対策 */
}

hr.EqualLine {
	border-width: 3px 0 0 0; /* 太さ */
	border-style: solid;     /* 線の種類 */
	border-color: darkgray;      /* 線の色 */
	height: 1px;             /* IE6用対策 */
	clear: both;             /* IE6用対策 */
}

hr.AstahLine{
	border-width: 6px 0 0 0; /* 太さ */
	border-style: solid;     /* 線の種類 */
	border-color: darkgray;      /* 線の色 */
	height: 1px;             /* IE6用対策 */
	clear: both;             /* IE6用対策 */
}
