/*========= Common Variables ===============*/
:root {
	--ftc-color: #9E1226;
	--ftc-hover-color: #780024;
	--ftc-middle-color: #d9b0be;
	--ftc-light-color: #f3e4e7;
	--button-disable-color: #9d9d9d;
}

/*========= Common Styles ===============*/
/* タイトル以降要素 画面共通 ※横幅の1remはdatatableのmarginと相殺するために必要。 */
body {
	/* 画面最下部のボタンをタブレットで押しやすくなるように対応 */
	margin-bottom: 5rem;
}

div.main-div {
	margin: 0.5rem 1rem;
}

/* ラベル共通 */
label {
	margin-bottom: 0 !important;
}

/* リスト共通 */
ul {
	list-style-type: none;
	padding-left: 0;
}

/* 定義 リスト(definition list)共通*/
dl {
	margin-bottom: 0;
}

/* 定義 言葉(definition term)共通 */
dt {
	margin-bottom: 2px;
	font-size: 0.75rem;
}

/* 定義 説明(definition description)共通 */
dd {
	margin-left: 4px;
	margin-bottom: 4px;
}

/*========= Input ===============*/
/* 読み取り専用共通 */
input:read-only {
	background-color: #DDD;
	border: 1px solid;
	border-color: revert;
	border-radius: 2px;
}

/*========= Input > Date Picker ===============*/
/* 背景色をデフォルトに戻す */
input.date-picker:read-only {
	background-color: revert;
}

/* DatePicker用入力欄 */
input.date-picker {
	background: no-repeat url(../image/icon/calendar.svg);
	background-position: 5px 50%;
	padding-left: 30px;
	width: 9rem;
}

/*========= Input > Datalist ===============*/
/* datalist用入力欄(デフォルトの三角を消す) */
input::-webkit-calendar-picker-indicator {
	opacity: 0;
	display: none;
}

/* datalist用入力欄(コンボボックス風アイコンを表示) */
input.input-for-datalist {
	cursor: pointer;
	background: no-repeat url(../image/icon/caret-down-square.svg);
	background-size: auto;
	background-position: right 5px bottom 50%;
	border: 1px solid dimgray;
	border-radius: 2px;
}

/*========= Textarea ===============*/
/* テキストエリア(高さ自動調節) */
textarea.flex-area {
	resize: none;
}

/*========= Buttons ===============*/
/* ボタン */
button[type="button"], button[type="submit"] {
	background-color: var(--ftc-color);
	border: 1px solid transparent;
	border-radius: 3px;
	color: white;
	padding: 0.375rem 0.75rem;
}

/* ボタン(ホバー時) */
button[type="button"]:hover, button[type="submit"]:hover {
	background-color: var(--ftc-hover-color);
}

/* ボタン(フォーカス時) */
button:focus {
	outline: 0;
}

/* ボタン(非活性) */
button:disabled, button:disabled:hover {
	background-color: var(--button-disable-color);
}

/* 送信無しボタン */
button[type="button"].not-submit {
	background-color: #efefef;
	border: 1px solid dimgray;
	color: black;
	padding: 0px 4px;
}

/* 送信無しボタン(ホバー時) */
button[type="button"].not-submit:hover {
	background-color: lightgray;
}

/*========= Links ===============*/
a.easy-link {
	padding: 0.25rem 0;
}

a.easy-link:hover {
	color: darkblue;
	text-decoration: none;
}

/*========= File Select ===============*/
/* ファイル選択ボタンに重ねるラベル(見た目をボタンに寄せる) */
label.select-file {
	margin: 0;
	background-color: #EFEFEF;
	padding: 4px 8px;
	border: solid 1px rgb(133, 133, 133);
	border-radius: 2px;
}

/* ファイル選択ラベル(ホバー時) */
label.select-file:hover {
	background-color: #e6eae6;
	cursor: pointer;
}

/* ファイル選択ラベル(アクティブ時) */
label.select-file:active {
	background-color: #EFEFEF;
}

label.select-file span {
	vertical-align: middle;
}

label.select-file svg.select-file-icon {
	width: 30px;
	height: 30px;
}

/*========= Search Form ===============*/
td.td-input {
	display: flex;
	align-items: center;
}

td.td-input>* {
	margin-right: 5px;
}

/* 余白列 */
td.td-margin {
	padding: 0 5px;
}

/* 検索条件 外枠 */
.search-area {
	border: 1px solid gray;
	border-radius: 0.5em;
	margin-bottom: 1rem;
}

/* 検索条件 ヘッダー */
.search-header {
	color: white;
	background: gray;
	border-bottom: 1px solid gray;
	border-radius: 5px 5px 0px 0px;
	padding: 3px 10px;
}

/* 検索条件 コンテンツ */
.search-contents {
	padding: 3px 10px;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
}

.search-contents table:not(.table) {
	margin-right: 1rem;
}

/* 検索条件 行間 */
.search-contents table tr td {
	vertical-align: text-top;
}

/*========= Input Form ===============*/
/* 入力エリア */
div.input-area {
	display: flex;
	flex-wrap: wrap;
}

/* 入力エリア リスト */
div.input-area>ul {
	padding: 0 0.25rem;
	margin-bottom: 0;
}

/* 入力エリア内 入力・選択欄 サイズ調整 */
div.input-area input[type="text"],
div.input-area input[type="number"],
div.input-area input[type="password"],
div.input-area select {
	height: 2.5rem;
}

/* ボタンエリア */
div.button-area {
	margin-top: 0.5rem;
}

/* for tablet(~991px) */
@media screen and (max-width:991px) {
	dd {
		display: block;
	}
	div.button-area {
		text-align: center;
		display: flex;
		justify-content: center;
	}
	div.button-area>button {
		margin: 0 3px;
		width: 50%;
	}
}

/* for smartphone(~575px) */
@media screen and (max-width:575px) {
	div.input-area>ul {
		padding: 0;
	}
	div.input-area>ul,
	div.button-area>button {
		width: 100%;
	}
	div.input-area input[type="text"],
	div.input-area input[type="number"],
	div.input-area input[type="password"],
	div.input-area select {
		width: 100%;
	}
}

/*========= Keypad ===============*/
div.keypad-popup{
	z-index: 2000;
}

/* jQuery keypadのcssを上乗せ*/
div.keypad-popup button.keypad-key,
div.keypad-popup button.keypad-special {
	margin: 4px;
	padding: 0em;
	border-radius: 0.25em;
	color: #333;
	font-size: 32px;
	box-shadow: 0 1px 2px black;
	background-color: #f4f4f4;
	touch-action: manipulation;
}

/* BACK, CLEAR */
div.keypad-popup button.keypad-special.keypad-back,
div.keypad-popup button.keypad-special.keypad-clear {
	background-color: lightgray;
	width: 3em;
}

/* OK(CLOSE&TAB) */
div.keypad-popup button.keypad-special.keypad-ok {
	background-color: lightgreen;
	width: 3em;
}

/* ZERO */
div.keypad-popup button.keypad-special.keypad-zero {
	background-color: #f4f4f4;
	width: 4.25em;
}

/* ボタンホバー・アクティブ時 */
div.keypad-popup button:hover,
div.keypad-popup button:active,
div.keypad-popup button:forcus {
	outline: 1px solid gray;
	border-radius: 0.25em;
}

/* 入力欄の背景色をデフォルトに戻す */
input.keypad-integer:read-only, input.keypad-decimal:read-only {
	background-color: revert;
}

/*========= Status stamp===============*/
div.stamp > svg {
	width: 20px;
	height: 20px;
	margin-right: 4px;
}

div.stamp {
	border: 1px solid;
	padding: 2px 8px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: space-evenly;
	width: 92px;
}

div.stamp.check-ok {
	border-color: green;
	color: green;
	fill: green;
	background-color: #CCFFCC;
}

div.stamp.check-ng {
	border-color: #454545;
	color: #454545;
	fill: #454545;
	background-color: #EEE;
}

/*========= Others ===============*/
/* 必須マーク */
.required::after {
	content: "*";
	color: red;
	font-weight: bold;
	margin-left: 3px;
}

/* 入力欄 サイズ大 */
.input-long {
	width: 400px;
}

/* 入力欄 サイズ小 */
.input-short {
	width: 200px;
}

/* 破線 */
div.horizontal-dashed-line {
	width: 100%;
	border-top: 1px dashed lightgray;
	margin: 0.25rem 0;
}

/* 日付項目 波ダッシュ */
.tilde::after {
	content: "～";
}

/* 画面上部メッセージ */
div.disp-msg {
	color: red;
	white-space: pre-line;
}

/* 入力欄エラーメッセージ */
div.err-msg {
	color: red;
	font-size: 80%;
	white-space: pre;
}

.error-style {
	background-color: var(--ftc-light-color) !important;
}

/* カメラアイコン */
#cameraIcon {
	width: 30px;
	height: 30px;
}

/* カメラアイコン(ホバー、アクティブ時) */
#cameraIcon:hover, #cameraIcon.active {
	fill: gray;
	cursor: pointer;
}

/* for smartphone and tablet(~991px) */
@media screen and (max-width: 991px) {
	div.main-div {
		margin: 0.25rem 1rem;
	}
	.input-items>.search-contents>table>tbody>tr {
		display: block;
	}
	.input-items>.search-contents>table>tbody>tr>td.td-margin {
		padding: 0;
	}
	.search-contents table {
		margin-right: 0;
	}
	.input-long {
		width: 100%;
	}
	.input-short {
		width: 100%;
	}
}