@charset "UTF-8";
/* スマートフォンなど狭い画面向け（PCの表示は変えない）。共通の調整は ../common/css/edit-responsive.css */
/* 技能表の下の段（知識・情報）の行に置く削除ボタンは、狭い画面だけで使う（PCでは行の右端の削除ボタンを使う） */
.delete-lower {
	display: none;
}
@media (max-width: 840px) {
	/*
	 * 技能表：肉体・感覚の2列を上の段、精神・社会の2列を下の段に並べて、横スクロールしないようにする。
	 * 各行の後半（精神・社会の欄）を order: 1 で後ろに回し、列を指定して自動で行に詰める
	 * （追加した行も同じ並びになる。行の削除ボタンは上の段・下の段の両方の行の右に置く）
	 */
	.edit-auto form #skills\.B {
		--edit-fit: none;
		display: grid !important;
		grid-template-columns: repeat(4, max-content) max-content;
		justify-content: start;
	}
	#skills\.B > thead, #skills\.B > tbody, #skills\.B tr {
		display: contents;
	}
	#skills\.B th, #skills\.B td {
		display: flex;
		align-items: center;
		white-space: nowrap;
	}
	#skills\.B > thead > tr:nth-child(1) > th {
		grid-column: 1 / -1;
		display: block;
		white-space: normal;
		/* 見出しの文字の長さで列の幅が広がらないようにする（見出しは表の幅に合わせて折り返す） */
		contain: inline-size;
	}
	#skills\.B > thead > tr:nth-child(1) > th > span {
		white-space: normal;
	}
	/* 肉体｜感覚、精神｜社会 */
	#skills\.B > thead > tr:nth-child(2) > :nth-child(1) { grid-column: 1 / 3; }
	#skills\.B > thead > tr:nth-child(2) > :nth-child(2) { grid-column: 3 / 5; }
	#skills\.B > thead > tr:nth-child(2) > :nth-child(3) { grid-column: 1 / 3; order: 1; }
	#skills\.B > thead > tr:nth-child(2) > :nth-child(4) { grid-column: 3 / 5; order: 1; }
	#skills\.B > thead > tr:nth-child(2) > :nth-child(5),
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(9) {
		display: none;
	}
	#skills\.B > thead > tr:nth-child(2) > td {
		justify-content: center;
	}
	/* 技能の行 */
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(1), #skills\.B > tbody > tr > :nth-child(1) { grid-column: 1; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(2), #skills\.B > tbody > tr > :nth-child(2) { grid-column: 2; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(3), #skills\.B > tbody > tr > :nth-child(3) { grid-column: 3; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(4), #skills\.B > tbody > tr > :nth-child(4) { grid-column: 4; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(5), #skills\.B > tbody > tr > :nth-child(5) { grid-column: 1; order: 1; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(6), #skills\.B > tbody > tr > :nth-child(6) { grid-column: 2; order: 1; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(7), #skills\.B > tbody > tr > :nth-child(7) { grid-column: 3; order: 1; }
	#skills\.B > thead > tr:nth-child(n+3) > :nth-child(8), #skills\.B > tbody > tr > :nth-child(8) { grid-column: 4; order: 1; }
	#skills\.B > tbody > tr > :nth-child(9) { grid-column: 5; }
	#skills\.B > tbody > tr > :nth-child(10) { grid-column: 5; order: 1; }
	/* 画面の幅に収まるよう、入力欄を少し小さくする */
	#div\.skills .abc {
		width: 48px;
		font-size: 14px;
		padding: 0 1px;
	}
	#div\.skills .def {
		width: 28px;
		font-size: 14px;
		padding: 0;
	}
	#skills\.B td {
		font-size: 12px;
		padding: 0 1px;
	}
	#div\.skills .name {
		padding-left: 2px;
	}
	/* 一覧の一番左の入力欄を5文字分の幅にする共通の指定は、技能名の欄では外す（ほかの技能名の欄と同じ幅にする） */
	#div\.skills input.abc.edit-list-first {
		min-width: 0 !important;
	}
}
/* それでも画面の幅に収まらない、さらに狭い画面では、入力欄と文字をもう少し小さくする */
@media (max-width: 380px) {
	#div\.skills .abc {
		width: 36px;
		font-size: 13px;
	}
	#div\.skills .def {
		width: 22px;
		font-size: 13px;
	}
	#skills\.B td {
		font-size: 11px;
		padding: 0;
	}
	#skills\.B > tbody > tr > :nth-child(9) input {
		font-size: 11px;
		padding: 0 2px;
	}
}
