@charset "UTF-8";
/* スマートフォンなど狭い画面向け（PCの表示は変えない）。共通の調整は ../common/css/edit-responsive.css */
@media (max-width: 840px) {
	/* ユニット全景は、PCと同じ大きさの枠を js/skyship-mobile.js が画面の幅に収まるよう縮小（zoom）して表示する */
	.edit-auto #unitframe {
		width: 642px;
		height: 400px;
		max-width: none;
		float: none !important;
		display: block;
	}

	/* 燃素カウンターは横に並べる（見出しを上に置き、その下に「!」から6までを左から並べる） */
	#phlogiston {
		--edit-fit: none;
	}
	.edit-auto form #phlogiston {
		display: block !important;
	}
	.edit-auto form #phlogiston > tbody {
		display: flex;
		flex-direction: row-reverse;
		flex-wrap: wrap-reverse;
		justify-content: flex-end;
	}
	.edit-auto form #phlogiston > tbody > tr {
		display: contents;
	}
	#phlogiston > tbody > tr > th {
		order: 1;
		flex: 0 0 100%;
		box-sizing: border-box;
	}
	/* 見出しは縦書き用（「｜」で伸ばす）なので、横書きの文字に置き換える */
	#phlogiston > tbody > tr > th > .phlogistontitle {
		display: none;
	}
	#phlogiston > tbody > tr > th::before {
		content: "燃素カウンター";
		font-weight: bold;
		font-size: 14px;
	}
	/* 7つのマスは見出しと同じ幅を分け合って1行に並べる。文字はPCより小さくする */
	#phlogiston > tbody > tr > td {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		flex: 1 1 0;
		width: auto !important;
		min-width: 0;
		height: 36px !important;
		font-size: 16px !important;
	}

	/* 搭乗者リスト：URL欄を狭くして名前の欄を広げる。追加ボタンは左に寄せる */
	#members .url {
		width: 4em !important;
		min-width: 0 !important;
	}
	#members td:has(> span[id$=".link"]) {
		min-width: 9em;
	}
	#base .add-below {
		text-align: left;
	}
}
