@charset "UTF-8";

/* ページ全体 */
:root {
	--six: #00005f; /* ネイビー */
	--five: #08089f; /* 濃いめの青 */
	--four: #2424e1; /* 普通の青 */
	--three: #6767e0; /* 薄い青 */
	--two: #ababe7; /* より薄い青 */
	--one: #eaeaf7; /* ほぼ白 */
	background-color: var(--one);
	color: #000000;
	line-height: 150%;
}

/* 日本語フォントを適用する範囲。https://ja.wikipedia.org/wiki/Unicode 参照 */
@font-face {
	font-family: "Nihongo";
	src: url("/u/fonts/SawarabiGothic-Regular.ttf") format("truetype");
	unicode-range: U+2E80-9FFF;
}

/* タイ文字 */
@font-face {
	font-family: "Thai";
	src: url("/u/fonts/Niramit-Medium.ttf") format("truetype");
	unicode-range: U+0E00-0E7F;
}

/* ビルマ文字 */
@font-face {
	font-family: "Myanmar";
	src: url("/u/fonts/NotoSansMyanmar-Medium.ttf") format("truetype");
	unicode-range: U+1000-109F;
}

/* デーヴァナーガリー */
@font-face {
	font-family: "Devanagari";
	src: url("/u/fonts/NotoSans-Medium.ttf") format("truetype");
	unicode-range: U+0900-097F;
}

/* ベンガル文字 */
@font-face {
	font-family: "Bengali";
	src: url("/u/fonts/NotoSansBengali-Medium.ttf") format("truetype");
	unicode-range: U+0980-09FF;
}

/* ナスタアリーク体 */
@font-face {
	font-family: "Nastaliq";
	src: url("/u/fonts/NotoNastaliqUrdu-Regular.ttf") format("truetype");
}

body {
	font-family: Nihongo, Thai, Myanmar, Devanagari, Bengali, Arial, sans-serif;
	margin: 0px;
}
@media screen and (max-width: 999px) {
	body {
		font-size: 20pt;
		line-height: 150%;
	}
}
@media screen and (min-width: 1000px) {
	body {
		font-size: 12pt;
	}
	body:before {
		content: "Running\Ain\A boards";
		color: #ffffff;
		font-size: 28em;
		line-height: 70%;
		font-weight: bold;
		white-space: pre;
		position: fixed;
		bottom: 0px;
		left: 0px;
		text-align: left;
	}
}

/* ハイパーリンク */
a:link {
	color: var(--four);
	text-decoration: none;
}
a:active {
	color: #ff6600;
	text-decoration: line-through;
}
a:visited {
	color: #660099;
	text-decoration: none;
}
a:focus, a:hover {
	color: #009933;
	text-decoration: underline;
}

/* ヘッダ */
header {
	height: 100px;
	margin: 0px;
	padding: 0px 0px 0px 10px;
	text-align: left;
	background-color: var(--six);
	color: #ffffff;
}
h1 {
	float: left;
	margin: 0px;
	text-align: left;
}
@media screen and (max-width: 999px) {
	#logo {
		display: inline-block;
	}
	#logo img {
		width: 400px;
		height: 100px;
	}
	/* 検索フォームを切り替えるやつ */
	#s-switch, #s-form, #s-switch:checked~#logo {
		display: none;
	}
	#s-button {
		display: inline-block;
		border-left: 1px solid #ffffff;
		float: right;
	}
	#s-button span {
		display: block;
		width: 100px;
		height: 100px;
		background-image: url(/img/schb-white.svg);
		background-size: contain;
		cursor: pointer;
	}
	#s-switch:checked~#s-button span {
		background-image: url(/img/schb-cancel.svg);
		background-size: contain;
	}
	#s-switch:checked~#s-form {
		display: inline-block;
		float: left;
		width: calc(100% - 101px);
		padding: 20px 0px 19px 0px;
		height: 100px;
		box-sizing: border-box;
		line-height: 100%;
	}
}
@media screen and (min-width: 1000px) {
	#logo {
		display: inline-block;
		margin-top: 25px;
		height: 75px;
		width: 300px;
	}
	#logo img {
		width: 300px;
		height: 75px;
	}
	/* 検索フォーム */
	#s-switch {
		display: none;
	}
	#s-form {
		display: inline-block;
		width: 400px;
		float: right;
		line-height: 100%;
	}
}

/* ページタイトル */
h2 {
	margin: 20px 10px 10px 10px;
	padding: 0px 0px 5px 15px;
	text-align: left;
	font-size: 200%;
	font-weight: normal;
	line-height: 110%;
	border-bottom: solid 1px var(--three);
}
/* 大見出し */

h3 {
	margin: 15px 0px 5px 0px;
	padding: 2px;
	text-align: left;
	text-indent: 1em;
	box-shadow: 1px 1px 3px #666666;
	background-color: var(--three);
	color: #ffffff;
}

/* 小見出し */
h4 {
	margin: 15px 0px 5px 12px;
	padding: 2px 0px 2px 1em;
	border: solid var(--three);
	border-width: 0px 0px 1px 10px;
	background-color: var(--one);
	font-weight: bold;
	font-size: 85%;
	line-height: 100%;
}

/* ヘッダ～フッタ包括 */
@media screen and (max-width: 999px) {
	#all {
		margin: 0px auto;
		padding: 0px;
		text-align: center;
		background-color: #ffffff;
		width: 100%;
	}

	#main {
		margin: 0px 5px;
		width: calc(100% - 10px);
	}
}
@media screen and (min-width: 1000px) {
	#all {
		box-shadow: 0px 0px 10px #444444;
		margin: 0px auto;
		background-color: #ffffff;
		padding: 0px;
		text-align: center;
		width: 950px;
		position: relative;
		top: 0px;
		left: 0px;
	}

	#main {
		margin: 0px 10px 0px 20px;
		width: calc(100% - 30px);
	}
}

/* メイン部分 */
#main {
	padding: 0px 0px 6px 0px;
	text-align: left;
	background-color: #ffffff;
	border: var(--three) solid;
	border-width: 1px 0px;
}

/* パンくずリスト */
.pkz {
	margin: 0px auto;
	padding: 8px 15px 6px 30px;
	text-align: left;
	background-color: #ffffff;
	color: #000000;
	font-size: 95%;
	line-height: 110%;
}

/* 本文 */
.txt {
	padding-left: 1.5em;
}

/* 段落 */
p {
	margin: 10px 2px 10px 1.5em;
	line-height: 170%;
	text-indent: 0.8em;
}
.p p {
	margin: 0px;
}

/* リストに余白いらない */
ul {
	margin: 0px;
	padding: 0px;
}

/* ツールボックス */
#tbx {
	width: 130px;
	position: fixed;
	right: 15px;
	bottom: 10px;
	padding: 0.3em;
	text-align: center;
	background-color: #ffffff;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #999999;
	color: #000000;
}
div#tbx>ul>li {
	display: block;
	text-align: center;
}
.tool {
	margin: 10px 0px;
}
div#tbx a:visited {
	color: #0033ff;
}

/* ソーシャルボタン */
.jaa {
	display: inline-block;
	text-align: center;
	overflow: hidden;
	_zoom: 1;
	margin: 0px;
	clear: both;
}
.jaa li {
	list-style-type: none;
	width: 40px;
	height: 40px;
	float: left;
	position: relative;
}
.jaa li a {
	display: block;
	width: 40px;
	height: 40px;
	position: absolute;
	bottom: 0;
}
.jaa img {
	width: 40px;
	height: 40px;
}
@media screen and (max-width: 999px) {
	.jaa li {
		width: 60px;
		height: 60px;
	}
	.jaa li a {
		width: 60px;
		height: 60px;
	}
	.jaa img {
		width: 60px;
		height: 60px;
	}
}
@media screen and (min-width: 1000px) {
	.vlrilla {
		display: none;
	}
}

/* フッタ */
footer {
	margin: 0px auto;
	padding: 10pt 0px;
	background-color: var(--six);
	color: #ffffff;
	font-size: 85%;
}
footer a:link, footer a:visited {
	color: #ffffff;
	text-decoration: none;
}
footer a:active, footer a:focus, footer a:hover {
	text-decoration: underline;
}

/* 一番上に戻るボタン */
@media screen and (max-width: 999px) {
	#ttt {
		display: none;
	}
}
@media screen and (min-width: 1000px) {
	#ttt {
		width: 60px;
		height: 60px;
		position: fixed;
		right: 10px;
		bottom: 10px;
		background-color: var(--two);
		background-image: url("/img/tothetop.svg");
		background-size: contain;
		border-radius: 60px;
		opacity: 0.6;
	}
	#ttt a {
		position: relative;
		display: block;
		width: 60px;
		height: 60px;
	}
}

/* 画像 */
img {
	border: none;
}
.thumb {
	width: 320px;
	height: 240px;
}
.thumb-t {
	width: 180px;
	height: 240px;
}

/* トップページのメニューや更新履歴など */
.m ul {
	display: table;
	width: calc(100% - 10px);
	margin-left: 10px;
}
.m ul li {
	display: table-cell;
	padding: 3px;
	vertical-align: middle;
	border-bottom: solid 1px var(--three);
}
.m ul li:first-child {
	width: 142px;
	padding-left: 1em;
}
.m ul li:last-child {
	width: calc(100% - 159px);
}

/* おまけのメニュー */
.o ul li {
	padding: 8px 3px;
}
.o ul li:first-child {
	width: 273px;
	text-align: center;
}
.o ul li:last-child {
	width: calc(100% - 290px);
}
.m ul:last-child li {
	border: none;
}

/* トップ画像 */
#t {
	text-align: center;
	padding: 12px 0px 0px 0px;
}

/* トップ画像集 */
.ti {
	width: 100%;
	text-align: center;
	padding: 7px 0px 3px 0px;
	border-bottom: solid 1px var(--three);
}
.ti ul {
	width: 100%;
	display: table;
}
.ti ul li {
	display: table-cell;
	margin: 0px;
	padding: 5px;
	vertical-align: top;
	text-align: left;
	line-height: 140%;
}
.ti ul li p {
	margin: 10px 3px 3px 2em;
	font-size: 85%;
	text-indent: 0px;
}
.ti ul li:last-child {
	display: table-cell;
	width: 60%;
	font-size: 85%;
}
.ti:last-child {
	border: none;
}

/* 会社のメニュー */
.cmn {
	display: table;
	width: 100%;
}
.cmn li {
	display: table-cell;
	padding: 3px;
	border-bottom: solid 1px var(--three);
}
.cmn li:first-child {
	width: 150px;
	padding-left: 1.5em;
	vertical-align: middle;
}

/* 会社のメニュー（非常ボタン用） */
#hata .cmn li:first-child {
	font-weight: bold;
}
#hata ul:last-child li {
	border: none;
	padding-bottom: 0.5em;
}

/* 路線記号の○など */
.lmk {
	font-weight: bold;
	font-family: monospace;
}

/* 更新履歴の（概要部分）←これ */
.kgy {
	font-size: 95%;
}

/* 駅名標・非常停止ボタン表示部分 */
.nko {
	margin: 0px 0px 0px 20px;
	padding: 0px;
}
@media screen and (max-width: 999px) {
	.nko {
		margin: 0px;
	}
}
@media screen and (min-width: 1000px) {
	.nko {
	margin: 0px 0px 0px 20px;
	}
}
.nko>li {
	display: inline-block;
}
.nko>li:nth-child(3n+1), .nko>li:nth-child(3n+2) {
	vertical-align: middle;
	width: calc(100% - 343px);
	float: right;
	padding: 3px 3px 3px 15px;
	border-bottom: solid 1px var(--three);
	overflow-y: auto;
}
.nko>li:nth-child(3n+1) {
	height: 70px;
}
.nko>li:nth-child(3n+1) a {
	font-size: 85%;
}
.nko>li:nth-child(3n+2) {
	height: 161px;
}
.nko>li:nth-child(3n) {
	margin-right: 5px;
	padding: 2px 0px 3px 0px;
	height: 240px;
	width: 320px;
	text-align: center;
}
.nko>li:nth-child(3n) a {
	display: inline-block;
	height: 240px;
	width: 320px;
}

/* 会社名注釈（東海道本線（JR東海）など） */
.cn {
	font-size: smaller;
}

/* ○○さんから提供 */
.gvn {
	font-size: 75%;
}

/* 五十音索引表示部分 */
#gjo {
	display: table;
	margin-left: 10px;
	width: calc(100% - 10px);
}
#gjo ul {
	display: table-row;
	border-bottom: solid 1px red;
}
#gjo ul li {
	display: table-cell;
	padding: 2px 0px 2px 5px;
	border-bottom: solid 1px var(--three);
	empty-cells: hide;
	font-size: 13pt;
}

@media screen and (max-width: 999px) {
	#gjo ul li {
		font-size: 18pt;
	}
}
@media screen and (min-width: 1000px) {
	#gjo ul li {
		font-size: 13pt;
	}
}

#gjo ul li.slk {
	border: none;
}
#gjo ul li:nth-child(1) {
	width: 280px;
	padding-left: 12px
}
#gjo li:nth-child(2) {
	width: 200px;
}
#gjo li:nth-child(3) {
	width: calc(100% - 502px);
}

/* 駅名標トップの目次 */
#cl {
	border-collapse: collapse;
	width: 100%;
}
#cl td {
	border-bottom: solid 1px var(--three);
	vertical-align: top;
}
#cl tr td.gr {
	width: 120px;
	padding-left: 1.5em;
	vertical-align: middle;
}
#cl tr td.ew {
	width: 2.5em;
	vertical-align: middle;
	text-align: center;
}
#cl tr:last-child td {
	border: none;
}

/* 国外リスト */
.um {
	margin: 0px;
	padding: 0px;
}
.um li {
	display: list-item;
	list-style: none;
	margin: 0px;
	padding: 3px 0px;
}
.um li span {
	font-size: smaller;
}
.um ul {
	margin-left: 5em;
}
.mkj .um ul li {
	margin: 0px;
	padding: 0px;
}

/* 同階層ページ用目次 */
ul.mkj, div.mkj {
	display: table;
	background-color: var(--one);
	border: 1px #6666cc solid;
	margin: 1em auto;
	padding: 0.3em 0px;
	box-shadow: 4px 2px 2px #cccccc, -2px -1px 3px #eeeeee;
}
ul.mkj>li {
	display: table-cell;
	text-align: left;
	font-size: 95%;
	color: #000000;
	line-height: 1.5em;
	padding: 0.3em 0.5em;
}

/* 同階層ページ用目次（カテゴリ分けするやつ） */
.dtr {
	display: table-row;
	border-bottom: 59px #6666cc solid;
}
.dtr div {
	display: table-cell;
	margin-right: 1em;
	text-align: left;
	font-size: 95%;
	color: #000000;
	line-height: 1.5em;
	padding: 0.3em 0.5em;
}
.dtr div:first-child {
	text-align: right;
}
.dtr div ul {
	display: table;
}
.dtr div ul li {
	display: table-cell;
	margin-right: 1em;
	color: #000000;
	line-height: 1.5em;
	padding: 0px 0.5em;
}

/* 目次の次で<p>を使うと注釈になる。<p class="ck">を使うと注釈になるし、次のに区切り線も付く */
.mkj+p, p.ck {
	text-align: center;
	margin: 10px 2px;
	text-indent: 0px;
	font-size: 90%;
	line-height: 130%;
}
p.ck+ul.nko>li:first-child {
	border-top: solid 1px var(--three);
}

/* 東急大井町線用 */
ul+p.ck {
	margin-top: 5px;
}

/* 現在のページへのリンク */
a.nyt {
	color: #000000;
	text-decoration: none;
	cursor: text;
	font-weight: bold;
}

/* 五十音索引目次 */
.gmk {
	margin: 10px auto;
	border: 1px #6666cc solid;
	border-collapse: collapse;
	box-shadow: 6px 3px 3px #cccccc, -2px -1px 3px #eeeeee;
}
.gmk td {
	text-align: center;
	padding: 4px;
	background-color: #eeeeff;
	color: #000000;
	border: 1px #6666cc solid;
	font-size: 110%;
}
.gmk td:empty {
	background-color: #f9f9ff;
}
.gmk td.nyt {
	background-color: #ccccff;
}
.gmk td.nyt a {
	color: #000000;
	text-decoration: none;
	cursor: text;
	font-weight: bold;
}

/* プロフィールの表 */
.prf {
	margin: 5px 2px 5px 15px;
	border-collapse: collapse;
	width: calc(100% - 20px);
}
.prf th {
	text-align: left;
	background: #ffffff;
	font-weight: bold;
	border: 1px var(--three) solid;
	color: #000000;
	padding: 2px 4px;
	text-indent: 0px;
	width: 8em;
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
}
.prf td {
	border: 1px var(--three) solid;
	padding: 2px 4px;
}

/* 右寄せ（更新履歴のリンクとか） */
.ry {
	text-align: right;
}

/* 海外駅名標の路線図 */
#rm {
	padding: 8px 5px;
	margin: 0px 2px;
	text-align: right;
	border-bottom: solid 1px var(--three);
}

/* 海外駅名標の路線図（<h3>の次には下線つけない） 
h3+p#rm {
	border:none;
}*/

/* フィンランド語bot用 */
.fbot {
	margin: 3px;
	padding: 0px 0px 0px 4em;
}
ul.qa {
	list-style-type: none;
	margin: 3px;
	padding: 0px 2px 0px 18px !important;
}
ul.qa li:nth-child(2n+1):before {
	content: "Q. ";
}
ul.qa li:nth-child(2n+1) {
	font-weight: bold;
}
ul.qa li:nth-child(2n):before {
	content: "―― A. ";
}
ul.qa li:nth-child(2n) {
	margin: 0px 0px 1em 2em;
	text-indent: 1em;
}
ul.qa li:last-child {
	margin-bottom: 0px;
}

/* エラーページ */
.vrh {
	margin: 50pt 0px;
	font-size: 28pt;
	line-height: 250%;
	text-align: center;
}
.vrh p {
	margin: 0px;
	text-indent: 0px;
}

/* 404 用 */
.vrh p.v404 {
	margin: 28pt 0px;
	font-size: 20pt;
	line-height: 110%;
}

/* モンゴル文字用 */
.mongol {
	font-size: 105%;
	line-height: 1em;
	writing-mode: vertical-lr;
	-webkit-writing-mode: vertical-lr;
	-o-writing-mode: vertical-lr;
	-ms-writing-mode: tb-lr;
	writing-mode: tb-lr;
	vertical-align: text-top;
}

/* ナスタアリーク体 */
.nastaliq {
	font-size: 125%;
	font-family: Nastaliq;
	line-height: 280%;
}

/* pre タグ（サイトマップ用） */
pre {
	margin: 10px 30px;
	border: 1px dashed #6666ff;
	font-size: 85%;
}