html,
body {
	height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background: #eff0f3;
}

/*--------------------------------
 * navi 
---------------------------------*/

.hero nav.navbar {
	background: #fff;
}

nav.navbar {
	border-top: 4px solid #3e8ed0;
}

.navbar-item,
.navbar-link {
	font-size: 15px;
	font-weight: 700;
}

.navbar-item img.logo {
	max-height: 100%;
}

.navi-search-form {
	position: relative;
	width: 600px;
}

.navi-search-form .search-btn {
	position: absolute;
	top: 5px;
	right: 16px;
	margin: 0;
	padding: 0 10px 0 0;
	cursor: pointer;
	font-size: 25px;
	line-height: 49px;
	border: none;
	color: #ccc;
	background-color: rgba(255, 255, 255, 0);
}

.navi-search-form .search-btn::before {
	font-family: "Font Awesome 6 Free";
	content: "\f002";
	font-weight: 900;
	font-size: 18px;
}


/*--------------------------------
 * content
---------------------------------*/

.hero.is-fullheight .hero-body.center-false {
	align-items: start;
}

.hero-body {
	padding: 1rem 3.5rem;
}

.pagination {
	margin-top: 3rem;
}

/* list */
.queue-status {
	color: #fff;
}

.queue-pending {
	background-color: #546e7a;
}

.queue-checking {
	background-color: #ff8f00;
}

.queue-processing {
	background-color: #ff8f00;
}

.queue-completed {
	background-color: #4caf50;
}

.queue-error {
	background-color: #f44336;
}

.queue-str-pending:after {
	content: '未処理';
}

.queue-str-checking:after {
	content: '確認待ち';
}

/* .queue-str-processing:after {
	content: '処理中';
} */

.queue-str-completed:after {
	content: '完了';
}

.queue-str-error:after {
	content: 'error';
}

/* viewer */
img {
	max-width: 100%;
}

.item_viewer embed {
	width: 100%;
	height: 100vh;
}


/*--------------------------------
 * footter
---------------------------------*/

.footer {
	padding: 1rem;
	border-top: 4px solid #3e8ed0;
}


/*--------------------------------
 * table
---------------------------------*/

.column-center tr th,
.column-center tr td {
	text-align: center;
	vertical-align: middle;
}

.table th {
	font-weight: bold !important;
	text-align: center !important;
}

.table td {
	vertical-align: middle;
}

.top-center tbody td:first-child {
	text-align: center;
}

.top-bold tbody td:first-child {
	font-weight: bold;
}


/*--------------------------------
 * Upload
---------------------------------*/

.upload-area {
	position: relative;
	height: 280px;
	border: 2px dashed #dcdcdc;
}

.upload-area .upload-area-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateY(-50%) translateX(-50%);
	-webkit- transform: translateY(-50%) translateX(-50%);
}


/*--------------------------------
 * Toggle
---------------------------------*/

.toggle_switch {
	position: relative;
	width: 60px;
	height: 30px;
	border-radius: 50px;
	overflow: hidden;
	cursor: pointer;
}

.toggle_switch input[type=checkbox] {
	display: none;
}

.toggle_switch:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	background: #455a64;
	-webkit-transition: 0.2s ease-out;
	transition: 0.2s ease-out;
}

.toggle_switch:after {
	content: "OFF";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 26px;
	height: 26px;
	display: block;
	border-radius: 50px;
	background: #fff;
	box-shadow: 0 9px 28px -6px rgba(0, 0, 0, 0.3);
	-webkit-transition: 0.2s ease-out;
	transition: 0.2s ease-out;
	text-align: center;
	padding: 8px 0 0;
	line-height: 1;
	font-size: 10px;
	font-weight: bold;
	color: #455a64;
	letter-spacing: .5px;
	box-sizing: border-box;
}

.toggle_switch.checked:before {
	background: #00c853;
}

.toggle_switch.checked:after {
	content: "ON";
	left: 32px;
	padding: 8px 0 0 0;
	box-shadow: 0 9px 28px -6px rgba(0, 0, 0, 0.5);
	color: #2e7d32;
}


/*--------------------------------
 * common 
---------------------------------*/

.w100 {
	width: 100%;
}

.w60 {
	width: 60%;
}

.w50 {
	width: 49%;
}

.w40 {
	width: 30%;
}

.w30 {
	width: 30%;
}

.w25 {
	width: 25%;
}

.w20 {
	width: 20%;
}

.w15 {
	width: 15%;
}

.w10 {
	width: 10%;
}

.w5 {
	width: 5%;
}

.w100px {
	width: 100px;
}

.w150px {
	width: 150px;
}

.w200px {
	width: 200px;
}

.h100 {
	height: 100%;
}

.h100vh {
	height: 100vh;
}

.mh200px {
	min-height: 200px;
}

.wc3 {
	width: 33.33%;
	width: -webkit-calc(100% / 3);
	width: -moz-calc(100% / 3);
	width: calc(100% / 3);
}

.wc4 {
	width: 25%;
	width: -webkit-calc(100% / 4);
	width: -moz-calc(100% / 4);
	width: calc(100% / 4);
}

.wc5 {
	width: 20%;
	width: -webkit-calc(100% / 5);
	width: -moz-calc(100% / 5);
	width: calc(100% / 5);
}

.m-02 {
	margin: 0.25rem;
}

.m-05 {
	margin: 0.5rem;
}

.m-10 {
	margin: 1rem;
}

.m-15 {
	margin: 1.5rem;
}

.m-20 {
	margin: 2rem;
}

.mt-02 {
	margin-top: 0.25rem;
}

.mt-05 {
	margin-top: 0.5rem;
}

.mt-10 {
	margin-top: 1rem;
}

.mt-15 {
	margin-top: 1.5rem;
}

.mt-20 {
	margin-top: 2rem;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.mb-02 {
	margin-bottom: 0.25rem !important;
}

.mb-05 {
	margin-bottom: 0.5rem !important;
}

.mb-10 {
	margin-bottom: 1rem !important;
}

.mb-15 {
	margin-bottom: 1.5rem !important;
}

.mb-20 {
	margin-bottom: 2rem !important;
}

.mr-02 {
	margin-right: 0.25rem;
}

.mr-05 {
	margin-right: 0.5rem;
}

.mr-10 {
	margin-right: 1rem;
}

.mr-15 {
	margin-right: 1.5rem;
}

.mr-20 {
	margin-right: 2rem;
}

.ml-02 {
	margin-left: 0.25rem;
}

.ml-05 {
	margin-left: 0.5rem;
}

.ml-10 {
	margin-left: 1rem;
}

.ml-15 {
	margin-left: 1.5rem;
}

.ml-20 {
	margin-left: 2rem;
}

.p-02 {
	padding: 0.25rem;
}

.p-05 {
	padding: 0.5rem;
}

.p-10 {
	padding: 1rem;
}

.p-15 {
	padding: 1.5rem;
}

.p-20 {
	padding: 2rem;
}

.pt-02 {
	padding-top: 0.25rem;
}

.pt-05 {
	padding-top: 0.5rem;
}

.pt-10 {
	padding-top: 1rem;
}

.pt-15 {
	padding-top: 1.5rem;
}

.pt-20 {
	padding-top: 2rem;
}

.pb-02 {
	padding-bottom: 0.25rem;
}

.pb-05 {
	padding-bottom: 0.5rem;
}

.pb-10 {
	padding-bottom: 1rem;
}

.pb-15 {
	padding-bottom: 1.5rem;
}

.pb-20 {
	padding-bottom: 2rem;
}

.pr-02 {
	padding-right: 0.25rem;
}

.pr-05 {
	padding-right: 0.5rem;
}

.pr-10 {
	padding-right: 1rem;
}

.pr-15 {
	padding-right: 1.5rem;
}

.pr-20 {
	padding-right: 2rem;
}

.pl-02 {
	padding-left: 0.25rem;
}

.pl-05 {
	padding-left: 0.5rem;
}

.pl-10 {
	padding-left: 1rem;
}

.pl-15 {
	padding-left: 1.5rem;
}

.pl-20 {
	padding-left: 2rem;
}

.bold {
	font-weight: bold;
}

.font-small {
	font-size: 12px;
}

.red {
	color: #e53935;
}

/*--------------------------------
 * itemの詳細画面
---------------------------------*/
.kv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .75rem 1.25rem;
	border: none;
	border-radius: .75rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	user-select: none;
}

.kv-btn:active {
	transform: translateY(1px);
}

/* green: データ取得 */
.kv-btn--success {
	background: #24a148;
	/* 緑 */
	color: #fff;
}

.kv-btn--success:hover {
	opacity: .92;
}

/* red: 格納 */
.kv-btn--danger {
	background: #d64545;
	/* 赤系 */
	color: #fff;
}

.kv-btn--danger:hover {
	opacity: .92;
}

/* Sections (cards-like) */
.kv-section {
	background: #fff;
	border-radius: .75rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
	padding: 1rem 1.25rem;
}

.kv-section--muted {
	background: #f5f6f8;
	/* グレー背景（SharePoint欄） */
	box-shadow: none;
}

.kv-section__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: .5rem;
}

.kv-section__body {
	font-size: .95rem;
	overflow: auto;
}

/* Code / Pre style for data dump */
.kv-pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: .9rem;
}

.kv-code {
	display: inline-block;
	padding: .25rem .5rem;
	border-radius: .5rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: .9rem;
}

/* Utility */
.is-hidden {
	display: none !important;
}

/* spacing helpers (必要なら) */
.mt-4 {
	margin-top: 1.5rem;
}

.mt-5 {
	margin-top: 2rem;
}

.mb-4 {
	margin-bottom: 1.5rem;
}

/*--------------------------------
 * sharepoint表示用
---------------------------------*/
#sp-radio-group {
	display: grid;
	gap: 5px;
}

#sp-radio-group label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: all 0.2s ease;
}

#sp-radio-group label:hover {
	background: #f5faff;
	border-color: #3399ff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#sp-radio-group input[type="radio"] {
	flex-shrink: 0;
}

#sp-radio-group span {
	flex: 1;
	font-family: monospace;
	font-size: 0.9rem;
	color: #333;
	white-space: normal;
	word-break: break-all;
	overflow-wrap: anywhere;
}

#sp-radio-group span:hover {
	white-space: normal;
	word-break: break-all;
}

/* sharepoint新規・既存表示 */
.badge-new {
	background-color: #e53935;
	color: #fff;
	border-radius: 0.5rem;
	padding: 0.15rem 0.5rem;
	margin-left: 0.5rem;
	font-size: 0.875rem;
	line-height: 1;
}

.badge-existing {
	background-color: yellowgreen;
	color: #fff;
	border-radius: 0.5rem;
	padding: 0.15rem 0.5rem;
	margin-left: 0.5rem;
	font-size: 0.875rem;
	line-height: 1;
}


.page-title-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: #f5f5f5;
	font-weight: 600;
	color: #363636;
}

.toggle-btn {
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 1rem;
	margin-left: 0.5rem;
}

.toggle-icon {
	display: inline-block;
	cursor: pointer;
	font-size: 0.9rem;
	margin-left: 0.5rem;
	line-height: 1;
	padding: 0;
	user-select: none;
}


.hidden {
	display: none;
}

/* スピナー */
#loading-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9999;
	text-align: center;
	padding-top: 200px;
	font-size: 20px;
	color: #333;
}

.spinner {
	border: 8px solid #f3f3f3;
	border-top: 8px solid #3498db;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/*--------------------------------
 * Responsive Table
---------------------------------*/

@media screen and (max-width: 768px) {
	.table-container {
		overflow-x: auto;
	}

	.table td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: bold;
		display: inline-block;
		width: 120px;
	}

	.table tbody td {
		display: block;
		text-align: left !important;
		padding-left: 140px;
		position: relative;
		min-height: 40px;
	}

	.table tbody td[data-label]::before {
		position: absolute;
		left: 10px;
		top: 50%;
		transform: translateY(-50%);
	}

	.table tbody td:first-child {
		border-top: 2px solid #dbdbdb;
	}

	.table tbody td:last-child {
		border-bottom: 2px solid #dbdbdb;
	}

	.table thead {
		display: none;
	}

	.table tbody tr {
		display: block;
		margin-bottom: 10px;
	}

	.table tbody td.has-text-centered[data-label="ID"] {
		text-align: left !important;
		font-weight: bold;
		background-color: #f5f5f5;
		padding-left: 10px;
	}

	.table tbody td.has-text-centered[data-label="ID"]::before {
		display: none;
	}

	/* モバイルでのタグ表示調整 */
	.tags {
		flex-wrap: wrap;
	}

	.tag.is-small {
		font-size: 0.65rem;
	}
}

/*--------------------------------
 * Media Query
---------------------------------*/

/* 480px以下 */
@media screen and (max-width: 480px) {

	.hero.is-fullheight .hero-body {
		display: block;
		padding: 0;
	}

	.hero-body {
		padding: 1rem 0.5rem;
	}

	.box {
		padding: 0.75rem;
	}

	/* 絞り込みボタンの調整 */
	.button.is-small {
		padding: 0.25rem 0.5rem;
		font-size: 0.75rem;
	}

}