@charset "UTF-8";
/*
 * キャラクター一覧画面のレイアウト
 * PCでは従来どおりの固定幅（説明 465px、表 800px）で表示し、
 * 画面幅が狭いとき（スマートフォンなど）は縦に並べて画面幅に合わせる。
 */

/* ---- PC（従来の見た目） ---- */
.list-desc {
	float: left;
	width: 465px;
}
.list-side {
	float: left;
}
.list-ad {
	float: right;
	font-size: 9pt;
}
.list-tools,
.list-pager,
.list-table {
	width: 800px;
}
#searchbox {
	float: right;
}

/* 標準モードで互換モード時の見た目を保つための調整（standards-compat.css から移したもの） */
form {
	margin-bottom: 1em;
}
.kana {
	display: block;
}

/* ---- 狭い画面 ---- */
@media (max-width: 840px) {
	body {
		width: auto;
		height: auto;
	}

	/* 説明・広告は縦に並べる */
	.list-desc,
	.list-side,
	.list-ad {
		float: none;
		width: auto;
	}
	.list-ad img {
		max-width: 100%;
		height: auto;
	}

	/* 新規作成・検索・ページ送り・表は画面幅に合わせる */
	.list-tools,
	.list-pager,
	.list-table {
		width: auto;
	}
	#searchbox {
		float: none;
		clear: both;
		height: auto;
		padding-top: 6px;
		line-height: 2.2;
	}
	#searchbox form {
		margin-bottom: 0.5em;
	}
	/* 入力欄の文字が小さいと、iPhone では入力時に画面が拡大されるため 16px にする */
	#searchbox input,
	#searchbox select {
		height: auto;
		font-size: 16px;
	}
	#searchbox input[type=text] {
		width: 8em;
	}

	/* 完全一致のプルダウンから クリア ボタンまでは右寄せ */
	.search-actions {
		display: block;
		text-align: right;
	}

	/* 表の上の 件数切り替え と 検索 は横に並べる（DataTables は狭い画面で縦に並べるため上書き） */
	div.dt-container > div.dt-layout-row:first-child {
		display: flex;
		align-items: center;
	}
	div.dt-container > div.dt-layout-row:first-child > div.dt-layout-cell {
		display: flex;
		align-items: center;
	}
	div.dt-container > div.dt-layout-row:first-child > div.dt-layout-cell > * {
		margin: 0;
	}
	div.dt-container .dt-length select,
	div.dt-container .dt-search input {
		font-size: 16px;
	}
	div.dt-container .dt-search input {
		width: 6em;
	}

	/* 表：列は隠さず、表の部分だけを横スクロールにする */
	.list-table .dt-layout-table > .dt-layout-cell {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.list-table table.dataTable {
		min-width: 640px;
	}
	table.dataTable > thead > tr > th {
		padding: 3px 6px;
	}
	table.dataTable > tbody > tr > td {
		padding: 4px 6px;
	}
	/* 先頭の2列（プレイヤー名・名前など）は折り返さず、3列目以降は一定の幅で折り返す */
	.list-table table.dataTable > tbody > tr > td:nth-child(-n+2) {
		white-space: nowrap;
	}
	.list-table table.dataTable > tbody > tr > td:nth-child(n+3) {
		min-width: 10em;
	}
	.list-table table.dataTable .list-col-outline {
		min-width: 14em;
	}
}
