@charset "UTF-8";
/* ブレイド・オブ・アルカナ（boa）とリインカーネーション（boare）共通。boa3 は ../../boa3/css/boa3_mobile.css
 * スマートフォンなど狭い画面向け（PCの表示は変えない）。共通の調整は ../common/css/edit-responsive.css */
@media (max-width: 840px) {
	/*
	 * 基本情報：項目名｜入力欄｜項目名｜入力欄 の4列にして、
	 * 氏名・プレイヤーの右に消費経験点、生年と没年を横に、性別・身長・体重の右に瞳・髪・肌の色を置く
	 * （edit-responsive.js が style で grid-column や order を指定するので、位置は !important で決める）
	 */
	#base > tbody {
		grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
	}
	#base > tbody > tr:nth-child(1) > :nth-child(1) { grid-area: 1 / 1 !important; }
	#base > tbody > tr:nth-child(1) > :nth-child(2) { grid-area: 1 / 2 !important; }
	#base > tbody > tr:nth-child(1) > :nth-child(3) { grid-area: 1 / 3 / 3 / 4 !important; }
	#base > tbody > tr:nth-child(1) > :nth-child(4) { grid-area: 1 / 4 / 3 / 5 !important; }
	#base > tbody > tr:nth-child(1) > :nth-child(5) { grid-area: 16 / 1 / 17 / 5 !important; }
	#base > tbody > tr:nth-child(2) > :nth-child(1) { grid-area: 2 / 1 !important; }
	#base > tbody > tr:nth-child(2) > :nth-child(2) { grid-area: 2 / 2 !important; }
	/* 生年｜没年、堕ちた年代 */
	#base > tbody > tr:nth-child(3) > :nth-child(1) { grid-area: 3 / 1 !important; }
	#base > tbody > tr:nth-child(3) > :nth-child(2) { grid-area: 3 / 2 !important; }
	#base > tbody > tr:nth-child(3) > :nth-child(3) { grid-area: 3 / 3 !important; }
	#base > tbody > tr:nth-child(3) > :nth-child(4) { grid-area: 3 / 4 !important; }
	#base > tbody > tr:nth-child(3) > :nth-child(5) { grid-area: 4 / 1 !important; }
	#base > tbody > tr:nth-child(3) > :nth-child(6) { grid-area: 4 / 2 / 5 / 5 !important; }
	/* 種族～所属は1行に1項目 */
	#base > tbody > tr:nth-child(4) > :nth-child(1) { grid-area: 5 / 1 !important; }
	#base > tbody > tr:nth-child(4) > :nth-child(2) { grid-area: 5 / 2 / 6 / 5 !important; }
	#base > tbody > tr:nth-child(4) > :nth-child(3) { grid-area: 6 / 1 !important; }
	#base > tbody > tr:nth-child(4) > :nth-child(4) { grid-area: 6 / 2 / 7 / 5 !important; }
	#base > tbody > tr:nth-child(4) > :nth-child(5) { grid-area: 7 / 1 !important; }
	#base > tbody > tr:nth-child(4) > :nth-child(6) { grid-area: 7 / 2 / 8 / 5 !important; }
	#base > tbody > tr:nth-child(5) > :nth-child(1) { grid-area: 8 / 1 !important; }
	#base > tbody > tr:nth-child(5) > :nth-child(2) { grid-area: 8 / 2 / 9 / 5 !important; }
	#base > tbody > tr:nth-child(5) > :nth-child(3) { grid-area: 9 / 1 !important; }
	#base > tbody > tr:nth-child(5) > :nth-child(4) { grid-area: 9 / 2 / 10 / 5 !important; }
	#base > tbody > tr:nth-child(5) > :nth-child(5) { grid-area: 10 / 1 !important; }
	#base > tbody > tr:nth-child(5) > :nth-child(6) { grid-area: 10 / 2 / 11 / 5 !important; }
	/* 性別・身長・体重｜瞳・髪・肌の色 */
	#base > tbody > tr:nth-child(6) > :nth-child(1) { grid-area: 11 / 1 !important; }
	#base > tbody > tr:nth-child(6) > :nth-child(2) { grid-area: 11 / 2 !important; }
	#base > tbody > tr:nth-child(6) > :nth-child(3) { grid-area: 12 / 1 !important; }
	#base > tbody > tr:nth-child(6) > :nth-child(4) { grid-area: 12 / 2 !important; }
	#base > tbody > tr:nth-child(6) > :nth-child(5) { grid-area: 13 / 1 !important; }
	#base > tbody > tr:nth-child(6) > :nth-child(6) { grid-area: 13 / 2 !important; }
	#base > tbody > tr:nth-child(7) > :nth-child(1) { grid-area: 11 / 3 !important; }
	#base > tbody > tr:nth-child(7) > :nth-child(2) { grid-area: 11 / 4 !important; }
	#base > tbody > tr:nth-child(7) > :nth-child(3) { grid-area: 12 / 3 !important; }
	#base > tbody > tr:nth-child(7) > :nth-child(4) { grid-area: 12 / 4 !important; }
	#base > tbody > tr:nth-child(7) > :nth-child(5) { grid-area: 13 / 3 !important; }
	#base > tbody > tr:nth-child(7) > :nth-child(6) { grid-area: 13 / 4 !important; }
	/* 特徴・設定 */
	#base > tbody > tr:nth-child(8) > :nth-child(1) { grid-area: 14 / 1 !important; }
	#base > tbody > tr:nth-child(8) > :nth-child(2) { grid-area: 14 / 2 / 15 / 5 !important; }
	#base > tbody > tr:nth-child(9) > :nth-child(1) { grid-area: 15 / 1 !important; }
	#base > tbody > tr:nth-child(9) > :nth-child(2) { grid-area: 15 / 2 / 16 / 5 !important; }
	#base\.exp {
		height: 100%;
	}
	/* 3列目・4列目の欄も2列目と同じく左寄せにそろえる（消費経験点は中央のまま） */
	#base .baseshort:not(#base\.exp) {
		text-align: left;
	}

	/*
	 * 能力値：体格・反射を左、共感・知性・希望を右の2列に並べる
	 * （行は表の行の順、列は空いている所に左から詰めて置く。右の列は2行目から）
	 */
	#ability {
		--edit-fit: none;
	}
	#ability > tbody {
		display: grid;
		grid-template-columns: repeat(10, auto);
		justify-content: start;
	}
	#ability > tbody > tr {
		display: contents;
	}
	#ability > tbody > tr > [colspan="2"] { grid-column-end: span 2; }
	#ability > tbody > tr > [colspan="3"] { grid-column-end: span 3; }
	#ability > tbody > tr > [rowspan="2"] { grid-row-end: span 2; }
	#ability > tbody > tr:nth-child(1) > * { grid-row-start: 1; }
	#ability > tbody > tr:nth-child(2) > * { grid-row-start: 2; }
	#ability > tbody > tr:nth-child(3) > * { grid-row-start: 3; }
	#ability > tbody > tr:nth-child(4) > * { grid-row-start: 4; }
	#ability > tbody > tr:nth-child(5) > * { grid-row-start: 5; }
	#ability > tbody > tr:nth-child(6) > * { grid-row-start: 6; }
	#ability > tbody > tr:nth-child(7) > * { grid-row-start: 7; }
	#ability > tbody > tr:nth-child(8) > * { grid-row-start: 8; }
	#ability > tbody > tr:nth-child(9) > * { grid-row-start: 9; }
	#ability > tbody > tr:nth-child(10) > * { grid-row-start: 10; }
	#ability > tbody > tr:nth-child(11) > * { grid-row-start: 11; }
	#ability > tbody > tr:nth-child(12) > * { grid-row-start: 12; }
	#ability > tbody > tr:nth-child(13) > * { grid-row-start: 2; }
	#ability > tbody > tr:nth-child(14) > * { grid-row-start: 3; }
	#ability > tbody > tr:nth-child(15) > * { grid-row-start: 4; }
	#ability > tbody > tr:nth-child(16) > * { grid-row-start: 5; }
	#ability > tbody > tr:nth-child(17) > * { grid-row-start: 6; }
	#ability > tbody > tr:nth-child(18) > * { grid-row-start: 7; }
	#ability > tbody > tr:nth-child(19) > * { grid-row-start: 8; }
	#ability > tbody > tr:nth-child(20) > * { grid-row-start: 9; }
	#ability > tbody > tr:nth-child(21) > * { grid-row-start: 10; }
	#ability > tbody > tr:nth-child(22) > * { grid-row-start: 11; }
	#ability > tbody > tr:nth-child(23) > * { grid-row-start: 12; }
	#ability > tbody > tr:nth-child(24) > * { grid-row-start: 13; }
	#ability > tbody > tr:nth-child(25) > * { grid-row-start: 14; }
	#ability > tbody > tr:nth-child(26) > * { grid-row-start: 15; }
	#ability > tbody > tr:nth-child(27) > * { grid-row-start: 16; }
	/* 左右の列で行の高さが変わっても、文字や入力欄は上下中央に置く */
	#ability > tbody > tr > * {
		display: flex;
		align-items: center;
	}
	#ability > tbody > tr > .skillhead {
		justify-content: flex-end;
	}
	/* 技能Lvの●は、表のときと同じく間をあけて並べる */
	#ability > tbody > tr > td[colspan="2"] {
		gap: 4px;
	}
	/* 右の列の左端に少し間をあける */
	/* 右の列は左の列より行が多いので、左の列が終わった行でも右の列（6～10列目）に置くよう、セルごとに列を決める */
	#ability > tbody > tr:nth-child(n+13) > th[rowspan] { grid-column-start: 6; }
	#ability > tbody > tr:nth-child(n+13) > td[rowspan] { grid-column-start: 7; }
	#ability > tbody > tr:nth-child(n+13) > th.ablhead:nth-child(3),
	#ability > tbody > tr:nth-child(n+13) > td:not([rowspan]):not([colspan]):nth-child(1) { grid-column-start: 8; }
	#ability > tbody > tr:nth-child(n+13) > th.ablhead:nth-child(4),
	#ability > tbody > tr:nth-child(n+13) > td:not([rowspan]):not([colspan]):nth-child(2) { grid-column-start: 9; }
	#ability > tbody > tr:nth-child(n+13) > th.ablhead:nth-child(5),
	#ability > tbody > tr:nth-child(n+13) > td:not([rowspan]):not([colspan]):nth-child(3) { grid-column-start: 10; }
	#ability > tbody > tr:nth-child(n+13) > th.skillhead { grid-column-start: 6; }
	#ability > tbody > tr:nth-child(n+13) > td[colspan="2"] { grid-column-start: 9; }
	#ability > tbody > tr:nth-child(n+13) > th:first-child {
		margin-left: 4px;
	}

	/* 副能力値と因果律を横に並べる */
	.edit-auto form #div\.subability {
		float: left !important;
	}
	.edit-auto form #div\.lifepath {
		overflow: hidden;
		margin-left: 0;
		padding-left: 2px;
	}
	#subability, #lifepath {
		--edit-fit: none;
	}
	#subability th {
		font-size: 12px;
		padding: 1px;
	}
	#subability input {
		width: 2.6em;
		font-size: 14px;
		padding: 0;
	}
	#lifepath {
		width: 100%;
	}
	#lifepath textarea {
		width: 100% !important;
		box-sizing: border-box;
	}

	/* 経験点合計の見出しが折り返さないよう、メモ欄を縮める */
	#exptotal {
		--edit-fit: none;
		display: table;
		width: 100%;
	}
	#exptotal th {
		white-space: nowrap;
	}
	#exptotal textarea {
		width: 100% !important;
		box-sizing: border-box;
	}
	#exptotal input {
		width: 3em;
	}

	/* ファミリア・トループ、エピック：見出しを折り返さない（入りきらない分は横スクロール） */
	#familia, #epic {
		--edit-fit: none;
	}
	#familia th, #epic th {
		white-space: nowrap;
	}
}
/* 能力値を2列に並べると画面の幅に収まらない、さらに狭い画面では、能力値欄の文字と入力欄を少し小さくする */
@media (max-width: 380px) {
	/* 能力値・技能Lvの見出しは経験点が5桁になることがあるので、さらに小さくする */
	#ability > tbody > tr:first-child > th {
		font-size: 10px;
		letter-spacing: 0;
	}
	#ability > tbody > tr:nth-child(n+13) > th:first-child {
		margin-left: 2px;
	}
	#ability th {
		font-size: 11px;
		padding: 0 1px;
		white-space: nowrap;
	}
	#ability .ablvalue {
		width: 30px;
		height: 26px;
		font-size: 16px;
	}
	#ability .ablbase {
		width: 24px;
		font-size: 13px;
		padding: 0;
	}
	#ability img {
		width: 12px;
		height: 12px;
	}
	#ability > tbody > tr > td[colspan="2"] {
		gap: 2px;
	}
}
/* 能力値の右の列にも、左の列と同じ「能力値｜技能Lv」の見出しを付ける（経験点は左の列だけに出す） */
@media (max-width: 840px) {
	#ability > tbody::before,
	#ability > tbody::after {
		grid-row: 1;
		background-color: #333;
		color: #fff;
		font-weight: bold;
		font-size: 12px;
		padding: 1px;
		border-right: 1px solid #000;
		border-bottom: 1px solid #000;
		white-space: nowrap;
	}
	#ability > tbody::before {
		content: "能力値";
		grid-column: 6 / 9;
		margin-left: 4px;
		text-align: left;
	}
	#ability > tbody::after {
		content: "技能Lv";
		grid-column: 9 / 11;
		text-align: left;
	}
	/* メモ欄の表を画面の幅いっぱいにして、メモの入力欄を広げる */
	.edit-auto form #exptotal {
		display: table !important;
		width: 100%;
	}
	#exptotal td:has(> textarea) {
		width: 100%;
	}
}
@media (max-width: 380px) {
	#ability > tbody::before,
	#ability > tbody::after {
		font-size: 10px;
		padding: 0 1px;
	}
	#ability > tbody::before {
		margin-left: 2px;
	}
}
