@charset "UTF-8";

/***************************************
 * 目次
 *
 * 1. 基本スタイル
 * 2. ナビゲーション
 * 3. 認証関連
 * 4. UI要素
 * 5. テーブル関連
 * 6. フォーム要素
 * 7. モーダル・ダイアログ
 * 8. 通知・メッセージ
 * 9. ドロワー
 * 10. ユーティリティ
 * 11. 検索関連
 * 12. ステッパー
 ***************************************/

/***************************************
 * 1. 基本スタイル
 ***************************************/
.backRed {
	background-color: red;
}

/***************************************
 * 2. ナビゲーション
 ***************************************/
/* ナビバーのロゴ */
.navbar-brand img {
	height: 45px;
	width: auto;
}

/* ドロップダウンメニュー */
.navbar-nav .dropdown-menu {
	display: none;
	top: 70% !important;
	z-index: 9999 !important;
}

.navbar-nav .dropdown:hover .dropdown-menu {
	display: block;
}

/* ハンバーガーメニューアイコン */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
	.navbar-nav .dropdown-menu {
			display: none;
			position: static;
			float: none;
	}

	.navbar-nav .dropdown:hover .dropdown-menu {
			display: block;
	}

	.navbar-nav .dropdown-menu.show {
			display: block;
	}
	body {
		overflow-x: hidden;
	}

	.navbar-nav {
			flex-wrap: wrap;
	}
}

/***************************************
 * 3. 認証関連
 ***************************************/
/* ログイン画面 */
.login-logo {
	max-width: 300px;
	align-self: center;
	margin-bottom: 2rem;
}

/***************************************
 * 4. UI要素
 ***************************************/
/* ボタン類 */
.eye-button, .row-edit-button {
	border: 0;
	background: none;
}

.row-edit-button {
	color: #007bff;
}

.eye-button[data-value="1"] i::before {
    content: "\f070";
}

.eye-button[data-value="0"] i::before {
	content: "\f06e";
}

.plain-button {
	border: 0;
	background: none;
	padding: 0;
}

/* 固定ボタン */
.fixed-buttons {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	display: flex;
	gap: 16px;
}

.fixed-buttons .btn {
	margin-top: 10px;
	padding: 10px;
	font-size: 24px;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

#to-top {
	display: none;
}

.btn:disabled:hover {
	cursor: not-allowed;
}

/***************************************
 * 5. テーブル関連
 ***************************************/

/* 横スクロール可能テーブル */
.table-responsive {
	overflow-x: scroll !important;
}

/* 横スクロール可能テーブル */
.table-responsive table {
	table-layout: fixed;
}

/* 行クリック */
.table-row-clickable {
	cursor: pointer;
}

.table-row-clickable tr[data-row-id]:hover, .table-row-clickable tr[data-id]:hover {
	background-color: color-mix(in sRGB, var(--primary), transparent 80%) !important;
}

.table-hover tr[data-row-id]:hover, .table-hover tr[data-id]:hover {
	background-color: color-mix(in sRGB, var(--primary), transparent 80%) !important;
}

/* テーブルボタン */
.table-up-button {
	border-radius: 5px 5px 0px 0px !important;
	position: relative;
	border-bottom: 0 !important;
}

/* テーブルラッパー */
.table-wrapper {
	overflow-x: auto;
}

.table-wrapper table {
	width: 100%;
}

/* マスターテーブル */
.mst-table th {
	min-width: 100px;
}

.mst-table thead {
	position: sticky;
	top: 0;
}

/* 詳細テーブル */
.detail-table td {
	vertical-align: middle;
}

.detail-table thead {
	position: sticky;
	top: 0;
}

.detail-table tfoot {
	background-color: #fff !important;
}

.detail-table tbody tr:hover {
	background-color: color-mix(in sRGB, var(--primary), transparent 80%) !important;
}

.detail-table td input[type="text"], .detail-table td select {
	width: 100%;
	line-height: 1.5;
	font-size: 1.1em;
	height: 2.5em;
}

.detail-table tr:has(input[name$="[delete_flag]"]:checked) td {
	background-color: var(--dark);
}

.detail-table tr:has(input[name$="[delete_flag]"]:checked) input[type="text"] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.detail-table tr:has(input[name$="[delete_flag]"]:checked) textarea {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.detail-table tr:has(input[name$="[delete_flag]"]:checked) select {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* チェックボックス全選択 */
*[id^='chkAll'] {
	cursor: pointer;
}

/* 検索条件 */
.list-search-form {
	margin-bottom: 1rem;
}

.list-search-form.showForward {
	display: flex;
	justify-content: center;
	padding: 1rem;
}

.list-search-form.showForward .collapse {
	display: block;
	position: fixed;
	top: 10%;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
	z-index: 5000;
	max-width: 80vw;
}

#collapseAccessibilityField_search-field .default-search-form {
	margin-bottom: 1rem;
}

/***************************************
 * 6. フォーム要素
 ***************************************/
/* 編集可能セル */
.editable-cell {
	cursor: pointer;
	position: relative;
	transition: opacity 0.3s;
}

.editable-cell:hover {
	opacity: 0.7;
}

.editable-cell::before {
	content: "\f044";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	width: 20px;
	height: 20px;
	top: 0;
	bottom: 0;
	right: 5px;
	margin: auto 0;
	opacity: 0.6;
}

/* ファイルアップロード */
.file-group-radio-button {
	width: 33% !important;
  padding: 5px;
}

/* チェックボックス */
.form-check-input {
	position: relative;
	transform: scale(1.3);
	margin-right: 0.5rem !important;
	margin-left: 0 !important;
}

/* 日付ピッカー */
.datepicker-container.input-group {
	flex-wrap: nowrap;
}
.datepicker-container.input-group input {
	border-right: 0 !important;
}
.datepicker-container.input-group:has(input:disabled) .ui-datepicker-trigger,
.datepicker-container.input-group:has(input[readonly]) .ui-datepicker-trigger {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.ui-datepicker-trigger {
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	display: inline-block;
	font-weight: 400;
	text-align: center;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-color: transparent;
	border: 1px solid transparent;
	padding: .375rem .75rem;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: .25rem;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-color: var(--primary);
	color: var(--primary);
}

.ui-datepicker-trigger::after {
	content: "\f073";
	font-family: "Font Awesome 6 Free";
	font-style: normal;
	font-weight: normal;
	font-size: 16px;
	display: inline-block;
	text-decoration: inherit;
	color: var(--primary);
}

.ui-datepicker-trigger:hover {
	background-color: var(--primary) !important;
	color: #fff !important;
}

.ui-datepicker-trigger:hover::after {
	color: #fff !important;
}

.datepicker-container:has(.form-control-sm) .ui-datepicker-trigger {
	font-size: 0.8rem;
	height: calc(1.5em + .5rem + 2px);
	padding: .25rem .5rem;
	font-size: .875rem;
	line-height: 1.2;
}

.datepicker-container {
	display: flex;
}

/* ドロップアップロード機能 */
.UploadArea {
	margin: 10px auto 0;
	width: 85%;
	height: 300px;
	position: relative;
	border: 1px dotted rgba(0, 0, 0, .4);
	text-align: center;
	display: none;
}

.UploadArea:hover {
	background-color: rgba(144, 144, 144, .1);
	border: 1px dotted rgba(0, 0, 0, .6);
}

.DragOver {
	border: 1px solid rgba(0, 0, 0, .9);
}

.UploadArea i {
	position: absolute;
	font-size: 160px;
	opacity: .1;
	width: 100%;
	left: 0;
	top: 40px;
}

.UploadArea i.fa-check-circle {
	display: none;
}

.UploadArea p {
	width: 100%;
	position: absolute;
	top: 220px;
	opacity: .8;
}

#UploadFile, .UploadFile {
	top: 0;
	left: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
}

#btn-Upload, .btn-Upload {
	display: none;
}

p.ErrorMessage {
	color: red;
	display: none;
	margin: 20px 0 0;
}

.UploadAreaNext {
	margin: 20px 0 0;
	text-align: center;
}

.upload-file-preview {
	width: 85%;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.upload-file-preview a {
	text-decoration: none;
	color: var(--primary);
	border: 1px solid var(--primary);
	border-radius: 9999px;
	padding: 5px 10px;
}

select[readonly] {
	cursor: not-allowed;
	pointer-events: none;
}

/* チェックボックスでdisabledとreadonlyが指定されているものは操作無効 */
input[type='checkbox']:disabled, input[type='checkbox'][readonly] {
	cursor: not-allowed;
	pointer-events: none;
}

/* ラジオボタン */
.form-radio-input {
	transform: scale(1.3);
	margin-right: 0.2rem !important;
	margin-left: 0 !important;
}

.form-radio-label {
	margin-right: 0.4rem !important;
	margin-left: 0 !important;
}

.form-radio-group {
	display: flex;
	flex-wrap: wrap;
	row-gap: 0px;
	column-gap: 16px;
}

/* パスワード要件のスタイル */
.password-requirements {
	background-color: #f8f9fa;
	padding: 10px;
	margin: 10px 0;
}

.password-requirements ul {
	list-style: none;
	padding-left: 0;
}

.password-requirements li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 5px;
	transition: color 0.3s ease;
}

.password-requirements li::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
}

.password-requirements li.valid {
	color: #28a745;
}

.password-requirements li.valid::before {
	content: "\f00c";
	font-weight: 900;
	color: #28a745;
}

.password-requirements li.invalid {
	color: #6c757d;
}

.password-requirements li.invalid::before {
	content: "\f00d" !important;
	color: #6c757d;
}

/***************************************
 * 7. モーダル・ダイアログ
 ***************************************/
/* モーダルの背景 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7) !important;
	z-index: 9999;
	display: none;
}

.modal-overlay .modal-overlay-content {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-content {
	max-height: 700px;
	overflow-y: scroll;
	position: relative;
}

.modal-header {
	position: sticky;
	top: 0;
	background: white;
	z-index: 1000;
}

.modal-footer {
	position: sticky !important;
	bottom: 0;
	background-color: #fff;
}

/* ダイアログボタン */
.dialog-open-button {
	display: block;
	width: 100%;
	height: calc(1.5em + .75rem + 2px);
	padding: .375rem .75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: .25rem;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	position: relative;
	overflow: hidden;
}

.dialog-open-button::after {
	content: "\f002";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	width: 1.5em;
	height: 1.5em;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
}

.dialog-open-button:active {
	background-color: #e9ecef;
}

.dialog-open-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dialog-open-button:has(> input:disabled) {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

.dialog-open-button input[type="text"] {
	width: 100%;
	pointer-events: none;
	border: none;
	background: transparent;
}

/***************************************
 * 8. 通知・メッセージ
 ***************************************/
/* トースト */
.toast-container {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 5000;
}

/* メッセージボックス */
#modalMessage p {
	font-weight: bold;
	white-space: pre-wrap;
}

#modalMessage p.danger {
	color: var(--danger);
}

#modalMessage p.warning {
	color: var(--info);
}

/* ローディングボックス */
#loading-box {
	z-index: 9999;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: none;
	background: rgba(255, 255, 255, 0.7);
}

#loading-box .loading-box-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(3);
}

/***************************************
 * 9. ドロワー
 ***************************************/
.drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	height: 100vh;
	background: white;
	z-index: 1030;
	transition: right 0.3s ease-in-out;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	overscroll-behavior-y: contain;
}

.drawer.show {
	right: 0;
}

.drawer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1020;
	display: none;
}

.drawer-backdrop.show {
	display: block;
}

.drawer-header {
	position: sticky;
	top: 0;
	background: var(--dark);
	color: white;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10;
}

.drawer-body {
	padding: 1rem;
	padding-bottom: 5rem;
}

.drawer-footer {
	position: fixed;
	width: inherit;
	bottom: 0;
	background: white;
	padding: 1rem;
	border-top: 1px solid #dee2e6;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	z-index: 10;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
	.drawer {
		width: 100%;
		height: 100dvh;
	}

	.drawer-footer {
		position: relative;
		bottom: 0;
	}
}

/***************************************
 * 10. ユーティリティ
 ***************************************/
/* データコンテナ */
.data-container {
	display: none !important;
}

/* ツールチップ */
.tooltip-container{
	position: relative;
	cursor: pointer;
	display: inline-block;
}

.tooltip-container .tooltip-text {
	display: none;
	position: absolute;
	padding: 10px;
	font-size: 12px;
	line-height: 1.6em;
	color: #fff;
	border-radius: 5px;
	background: #000;
	width: fit-content;
}

.tooltip-container .tooltip-text:before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	border: 15px solid transparent;
	border-top: 15px solid #000;
	margin-left: -15px;
}

.tooltip-container:hover .tooltip-text{
	display: inline-block;
	bottom: 140%;
	left: 0;
	right: 0;
	margin: auto;
}

/* ページネーション */
ul.pagination {
	margin: 0;
}

/* プレースホルダー */
::-webkit-input-placeholder {
	color: #aaa !important;
}
:-moz-placeholder {
	color: #aaa !important;
}
::-moz-placeholder {
	color: #aaa !important;
}
:-ms-input-placeholder {
	color: #aaa !important;
}

/* フォームエラー */
.invalid-feedback {
	position: absolute;
	background: rgba(255, 255, 255, 1);
	border-radius: 5px;
	padding: 5px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
	z-index: 1000;
	width: fit-content;
	animation: FeedBackFadeOut 1s ease-in-out;
	animation-fill-mode: forwards;
	animation-delay: 5s;
	white-space: nowrap;
}

.invalid-feedback.show {
	opacity: 1 !important;
	visibility: visible !important;
}

/* 日付ピッカーのエラーメッセージ */
.datepicker-container .invalid-feedback {
	top: 100%
}

.d-flex .invalid-feedback {
	top: 100%
}

@keyframes FeedBackFadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
		visibility: hidden;
	}
}

/* 入力タイプ */
.type-decimal, .type-piece {
	text-align: right;
}

.type-decimal.minus-value {
	color: var(--danger);
}

.type-number {
	-webkit-appearance: none !important;
	margin: 0 !important;
	-moz-appearance:textfield !important;
}

/***************************************
 * 11. 検索関連
 ***************************************/
 .search-form-table td {
	padding: 8px;
}
.search-form-table td label {
	font-size: 14px !important;
}

/***************************************
 * 12. ステッパー
 ***************************************/

/* ステッパースタイル */
.bs-stepper {
	margin-bottom: 20px;
	padding: 12px 16px;
}

.bs-stepper-header {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 auto;
	max-width: 800px;
	gap: 8px;
}

.bs-stepper .step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 70px;
}

.bs-stepper .line {
	width: 60px;
	height: 1px;
	background-color: #e9ecef;
	margin-top: 14px;
}

.bs-stepper .step.active~.line {
	background-color: #e9ecef;
}

.bs-stepper .step.active+.line,
.bs-stepper .step.completed+.line {
	background-color: var(--primary);
}

.bs-stepper .step-trigger {
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	cursor: default;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bs-stepper .step-circle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #f8f9fa;
	color: #6c757d;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
	margin-bottom: 6px;
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
	font-size: 0.85em;
}

.bs-stepper .step.active .step-circle {
	background-color: var(--primary);
	color: white;
	border-color: var(--primary);
}

.bs-stepper .step.completed .step-circle {
	background-color: var(--primary);
	color: white;
	border-color: var(--primary);
	font-size: 0.75em;
}

.bs-stepper .step.completed .step-circle i {
	font-size: 0.85em;
}

.bs-stepper .step-text {
	color: #6c757d;
	font-size: 0.8em;
	text-align: center;
	font-weight: normal;
}

.bs-stepper .step.active .step-text {
	color: var(--primary);
	font-weight: 500;
}

.bs-stepper .step.completed .step-text {
	color: var(--primary);
}

@media (max-width: 576px) {
	.bs-stepper {
		padding: 10px 16px;
	}

	.bs-stepper .step {
		min-width: 30px;
		flex: unset;
	}

	.bs-stepper .step-text {
		font-size: 0.75em;
	}

	.bs-stepper .step-circle {
		width: 24px;
		height: 24px;
		font-size: 0.8em;
	}

	.bs-stepper .line {
		width: 24px;
		margin-top: 12px;
	}
}