@charset "utf-8";

/* ========== ページ全体 ========== */

body {
	margin: 0px;
	padding: 8px 8px 12px 8px; /* top right bottom left */
	color: #ffffff;
	background: url(back.png);
	font-family: sans-serif, sans-serif;
	font-size: 100%;
}

/* ========== mainブロック ========== */

/* 基本は幅720ピクセルで表示 */
div#main {
	margin: 0px auto 0px auto; /* top right bottom left */
	width: 720px;
}

/* レスポンシブ */
/* 画面幅が760ピクセル以下なら、画面に合わせて表示幅を縮める */
@media screen and (max-width: 760px) {
	div#main {
		width: 100%;
	}
}

/* ========== bannerブロック ========== */

div#banner {
	text-align: center;
}

/* ========== headerブロック ========== */

div#header {
	border: 1px solid #808080;
	margin: 4px 0px 8px 0px; /* top right bottom left */
	padding: 0px;
}

div#header img#icon {
	margin: 0px 8px 0px 0px;
	vertical-align: -10px;
}

div#header h1 {
	color: #000000;
	background-color: #e0e0e8;
	margin: 0px 0px 0px 0px;
	padding: 8px 8px 8px 12px;
}

div#header p {
	color: #000000;
	background-color: #ffffff;
	margin: 0px 0px 0px 0px;
	padding: 8px 4px 8px 16px;
}

/* ========== naviブロック ========== */

div#navi {
	text-align: center;
	margin: 4px 0px 8px 0px; /* top right bottom left */
	padding: 0px 4px 0px 4px;
	color: white;
}

div#navi a {
	color: white;
}

div#navi a:hover {
	background-color: #707090;
}

/* ========== contentsブロック ========== */

div#contents {
	color: #000000;
	background-color: #ffffff;
	padding-bottom: 4px;
	margin-bottom: 8px;
}

div#contents h2, 
div#contents h3 {
	background-color: #e0e0e8;
	margin: 0px;
	padding: 4px 4px 1px 12px;	/* top right bottom left */
}

div#contents p {
	margin: 8px 8px 8px 16px;	/* top right bottom left */
	padding: 4px;
}

div#contents strong {
	color: #f04040;
	font-weight: bold;
}

div#contents b {
	color: #4040f0;
	font-weight: bold;
}

div#contents a:hover {
	background-color: #e8e8f0;
}

/* ========== footerブロック ========== */

div#footer {
	color: white;
	margin: 0 0 0 0;
	padding: 0px 4px 0 0;
	text-align: right;
}

div#footer a {
	color: white;
}

div#footer a:hover {
	background-color: #707090;
}

/* ========== table 関連 ========== */

table {
	border-collapse: collapse;
	line-height: 133%;
	margin: 16px 12px 16px 12px;	/* top right bottom left */
	padding: 4px;
}

th {
	background: #f0f0f0;
	border: 1px solid gray;
	padding: 4px 8px 3px 8px;   /* top right bottom left */
	white-space: nowrap;
	text-align: left;
}

td {
	background: #ffffff;
	border: 1px solid gray;
	padding: 2px 8px 2px 8px;   /* top right bottom left */
	word-wrap: break-word;
}

td.val {
	word-break: break-all;
}

td.inp {
	padding: 2px;
}

td.inp input {
	border: 1px solid #C0C0C0;
	font-size: 90%;
}

/* ========== テーブルの中を分割するためのテーブル ========== */

table.inner {
	margin: 0px;
	padding: 0px;
}

table.inner td {
	margin: 0px;
	padding: 0px;
	border-style: none;
}

/* ========== form 関連 ========== */

form {
	margin: 0px;
	padding: 0px;
}

input {
	margin: 0px;
	padding: 1px 2px 1px 2px;  /* top right bottom left */
	font-family: sans-serif, sans-serif;
	font-size: 90%;
}

input[type=checkbox] {
	vertical-align: middle;
}

button {
	background-color: #e0e0e8;
	border-radius: 5px;
	font-size: 100%;
	padding: 2px 8px 2px 8px;  /* top right bottom left */
	margin: 0px 0px 12px 0px;
}

button:active {
	background-color: #f8d8d8;
	transform: translate(1px, 2px);
}

/* ========== リスト関連 ========== */

ul, ol {
	margin-top: 8px;
	margin-bottom: 8px;
	margin-right: 24px;
	line-height: 175%;
}

/* UL内で段組み、変数"--w"で段幅を指定 */
/* 参考：https://qiita.com/kumazo/items/d492383c89b02c4b835e */
/*
  使い方:
	<ul class="multicol" style="--w:100px;">
	<li><span>1段目</span><span>2段目</span>...
	</ul>
*/
ul.multicol span {
	float: left;
	width: var(--w);
}

/* ========== その他 ========== */

/* ヘルプ用のpre要素 */
pre.help {
	margin: 8px 12px 16px 12px;	/* top right bottom left */
	padding: 4px 8px 4px 4px;
	line-height: 150%;
}

/* 実験ページ表示用のiframe要素、変数"--h"で高さ指定 */
/*
  使い方:
	<iframe class="sample" style="--h:200px;" src="表示するURL"></iframe>
*/
iframe.sample {
	margin: 4px 0px 4px 0px;
	width: 100%;
	height: var(--h);
	border: 1px dashed black;
}
