@charset "UTF-8";
/*
 * SRS系（モノトーンミュージアム・アルシャードセイヴァーなど）編集画面の狭い画面（スマートフォンなど）向けの調整
 * PCでの見た目は srs.css のまま。edit-responsive.css より後に読み込むこと。
 */
@media (max-width: 840px) {
	/* 能力値計算・能力値表示：入力欄を狭めて画面幅に収め、横スクロールを出さない */
	#abl, #div\.abilities table {
		display: table !important;
		width: 100% !important;
		overflow: visible !important;
	}
	#abl th {
		padding: 1px 0;
	}
	/* 列の幅は、初期クラス・特殊能力（加護など）・手入力の列を決め、残りを能力値の列で等分する */
	#abl {
		table-layout: fixed;
	}
	#abl > thead > tr:first-child > th:first-child {
		width: 24%;
	}
	#abl > thead > tr:first-child > th:nth-last-child(2) {
		width: 16%;
	}
	#abl > thead > tr:first-child > th:last-child {
		width: 11%;
	}
	#abl th {
		font-size: 7.5pt;
	}

	#abl td.input, #div\.abilities td.input {
		min-width: 0;
		padding: 1px;
	}
	#abl input[type=text], #abl select, #div\.abilities input[type=text] {
		width: 100% !important;
		min-width: 0;
		box-sizing: border-box;
	}
	#abl input[type=button] {
		padding: 1px 2px;
	}
	/* 表の中にある「初期クラスデータ反映」ボタンは列の幅で折り返す */
	#abl #abl\.update {
		width: 100% !important;
		white-space: normal;
		font-size: 8pt;
	}

	/*
	 * 戦闘修正値（ベースへの修正値～合計）：複数の表で列をそろえているので、
	 * PCと同じ幅のまま並べ、欄全体で1つの横スクロールにする。項目名は折り返さない。
	 */
	#div\.battleAbility {
		overflow-x: auto;
	}
	#div\.battleAbility table {
		display: table !important;
		width: max-content !important;
		max-width: none !important;
		overflow: visible !important;
	}
	#div\.battleAbility th, #div\.battleAbility td {
		white-space: nowrap;
	}
	#battlebuttons {
		position: sticky;
		left: 0;
		width: calc(100vw - 16px) !important;
	}
}

/* ライフパス（特徴の表を含む）・ミッション（クエスト）・コネクションの表は画面の幅いっぱいにし、入力欄も広げる */
@media (max-width: 840px) {
	#div\.lifepath\.setthings, #div\.lifepath\.settings, #div\.lifepath\.quest, #div\.lifepath\.connection {
		float: none !important;
		margin-right: 0 !important;
	}
	#lifepath, #div\.lifepath\.setthings > table:not([id]), #lifepath\.quest, #lifepath\.connection {
		display: table !important;
		width: 100% !important;
		overflow: visible !important;
	}
	#lifepath input[type=text], #lifepath textarea, #div\.lifepath\.setthings > table:not([id]) input[type=text] {
		width: 100% !important;
		box-sizing: border-box;
	}
	#lifepath\.quest td:first-child {
		width: 100%;
	}
	#lifepath\.connection td:has(> .name) {
		width: 60%;
	}
	#lifepath\.connection td:has(> .relation) {
		width: 40%;
	}
	#lifepath\.quest td:first-child > input[type=text], #lifepath\.connection .name, #lifepath\.connection .relation {
		width: 100% !important;
		box-sizing: border-box;
	}
}
