.dispblock {
	display:block;
}
.SCOselected {
	background-color: #0FBE7C!important;
	color: ivory!important;
	font-weight: bold!important;
}
.SCOexclusive {
	background-color: #666666!important;
	color: ivory!important;
	font-weight: bold!important;
}
.hidden-by-sco { display: none !important;
}

/* Extra13・Field2の行スタイル */
.extra13-row,
.field2-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0.5em;
}

.extra13-row select,
.extra13-row input,
.field2-row input {
    background: #fff;
    transition: border-color 0.18s ease;
	height: 3em;
}

/* 最初の要素：左側の角丸のみ */
.extra13-row select,
.field2-row input:first-child {
    border-radius: 0.5em 0 0 0.5em;
}

/* 中間の要素：角丸なし、左ボーダーなし */
.extra13-row input:not(:last-child),
.field2-row input:not(:first-child):not(:last-child) {
    border-radius: 0;
    border-left: none;
}

/* 最後の要素：右側の角丸のみ、左ボーダーなし */
.extra13-row input:last-child,
.field2-row input:last-child {
    border-radius: 0 0.5em 0.5em 0;
    border-left: none;
}

/* フォーカス時 */
.extra13-row select:focus,
.extra13-row input:focus,
.field2-row input:focus {
    outline: none;
    z-index: 1;
    position: relative;
}

/* サイズ調整 */
.extra13-row select {
    flex: 0 1 auto;
    min-width: 180px;
}

.extra13-row input[type="text"]:nth-of-type(1) {
    flex: 0 1;
    min-width: 150px;
}

.extra13-row input[type="text"]:nth-of-type(2) {
    flex: 1 2 auto;
    min-width: 200px;
}

.field2-row input:first-child {
    flex: 0 0 150px;
    min-width: 120px;
}

.field2-row input:last-child {
    flex: 1 1 auto;
    min-width: 200px;
}

/* Field1の行スタイル */
.field1-row {
    margin-bottom: 0.5em;
}

.field1-row input {
    width: 100%;
    border: 1px solid #EAEAEA;
    border-radius: 0.5em;
    background: #fff;
	height: 3em;
}

.field1-row input:focus {
    outline: none;
    border-color: #a22041;
}













/* 作品登録フォーム用スタイル */

/* 検索フィールド */
#SFED {
	width: 100%;
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: 0.5em;
	font-size: 1em;
}

#SFED:focus {
	outline: none;
	border-color: #4a90e2;
}

/* ローディングスピナー */
.loading-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2em;
	color: #666;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #FEB645;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg);
}
	100% { transform: rotate(360deg);
}
}

.loading-spinner p {
	margin-top: 1em;
	font-size: 0.9em;
}


.search-results {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.result-item {
	border: 1px solid #ddd;
	border-radius: 0.5em;
	padding: 1em;
	background: #f9f9f9;
	transition: background 0.2s;
}

.result-item:hover {
	background: #f0f0f0;
}

.result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5em;
}

.sco-badge {
	display: inline-block;
	padding: 0.2em 0.6em;
	background: #FEB645;
	color: white;
	border-radius: 0.5em;
	font-size: 0.85em;
	font-weight: bold;
}

.release-date {
	color: #666;
	font-size: 0.9em;
}

.result-title {
	font-size: 1.1em;
	margin-bottom: 0.5em;
}

.result-title strong {
	font-weight: bold;
}

.result-title .subtitle {
	color: #666;
	margin-left: 0.5em;
}

.result-DETAILS {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 0.75em;
}

.result-DETAILS div {
	margin: 0.2em 0;
}

.result-actions {
	display: flex;
	gap: 0.5em;
}

.no-results,
.error {
	padding: 1em;
	text-align: center;
	color: #666;
	font-style: italic;
}

.error {
	color: #d9534f;
}

/* 動的入力フィールド */
.dynamic-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.field1-row,
.field2-row {
	display: flex;
	gap: 0;
	align-items: center;
}

.field1-row input,
.field2-row input {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 0.5em;
}

.field2-row input[data-type="key"] {
	flex: 0 0 30%;
}

.field2-row input[data-type="value"] {
	flex: 1;
}


.extra13-row {
	display: flex;
	gap: 0;
	margin-bottom: 0.5em;
	align-items: center;
}

.extra13-row select {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 0.5em 0 0 0.5em;
}

.extra13-row input[name^="tempE13_"] {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	width: 8em;
}

.extra13-row input[name^="tempT_"] {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 0 0.5em 0.5em 0;
}

.regist_footer.fixed_on {
	position: sticky;
	bottom: -5px;
	z-index: 110;
	margin-left: auto;
	margin-right: auto;
}
.flex1 {
	flex: 1;
} 

/* 確認画面スタイル */
.confirmation-view {
	padding: 2em;
}

.confirmation-view h2 {
	margin-bottom: 1em;
	font-size: 1.5em;
	border-bottom: 2px solid #4a90e2;
	padding-bottom: 0.5em;
}

.confirm-content {
	display: flex;
	flex-direction: column;
	gap: 0.8em;
}

.confirm-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 1em;
	padding: 0.5em;
	border-bottom: 1px solid #eee;
}

.confirm-row .CardLabel {
	font-weight: bold;
	color: #555;
}

.confirm-row .CardValue {
	color: #333;
}

.suggest-item {
	padding: 0.5em;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}
.posirelative {
	position: relative;
}
.MBIDfield {
	width: 100px;
	background-color: #f0f0f0;
	cursor: not-allowed;
}
.MkName-row, .BrandLabel-row {
	display: flex;
	margin-bottom: 0.5em;
	position: relative;
}
.MBIDfield {
	border-radius: 0.5em 0 0 0.5em!important;
	flex: 1;
	background-color:rgba(95, 91, 91, 0.2)!important;
}
.MBnamefield {
	border-radius: 0 0.5em 0.5em 0!important;
	flex: 3;
}
#tempE13_I_NEW_MP {
	width: 13rem;
	border-left: 0;
	border-right: 0;
}
/* CSS：.note は初期で非表示、.note.visible で表示にする */
.note {
	display: none;
	margin-top: 0.4em;
	font-size: 0.9em;
	opacity: 0.95;
	background:#f6f6f6;
	padding:0.4em;
	border-radius:0.5em;
  }
  
  /* 表示用クラス */
  .note.visible {
	display: block;
  }
  














/* MBサジェスト用CSS */
.mb-suggest-box {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mb-suggest-box.hidden {
	display: none;
}

.mb-suggest-option {
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.mb-suggest-option:last-child {
	border-bottom: none;
}

.mb-suggest-option:hover {
	background-color: #f5f5f5;
}

.mb-suggest-buttons {
	margin-top: 6px;
	display: flex;
	gap: 8px;
}

.mb-apply-here,
.mb-apply-both, .select-work-btn {
	padding: 4px 12px;
	font-size: 12px;
	border: 1px solid #0FBE7C;
	background: #fff;
	color: #0FBE7C;
	cursor: pointer;
	border-radius: 3px;
}

.mb-apply-here:hover,
.mb-apply-both:hover, .select-work-btn:hover {
	background: #0FBE7C;
	color: #fff;
}

.MkName-row,
.BrandLabel-row {
	position: relative;
}



.edit-footer {
	left: 0;
	right: 0;
	z-index: 1000;
}
.plus-input-container {
	display:inline-block;
	/*float:right;*/
	margin-left:auto;
}
.plus-input {
	width:200px;padding:3px;
}
.geneplus {
	display:flex;align-items:center;justify-content:space-between;
}
/* EXISTINGDATA 高さ管理用CSS */

#EXISTINGDATA {
	position: relative;
	display: block;
	width: 100%;
	box-sizing: border-box;
	transition: height 160ms ease;
	overflow: auto;
	z-index: auto;
}

/* 高さクラス（100px単位） */
#EXISTINGDATA.h-0    { height: 0;      overflow: hidden; }
#EXISTINGDATA.h-100  { height: 100px;  overflow: visible; }
#EXISTINGDATA.h-200  { height: 200px;  overflow: visible; }
#EXISTINGDATA.h-300  { height: 300px;  overflow: visible; }
#EXISTINGDATA.h-400  { height: 400px;  overflow: visible; }
#EXISTINGDATA.h-500  { height: 500px;  overflow: visible; }
#EXISTINGDATA.h-600  { height: 600px;  overflow: visible; }
#EXISTINGDATA.h-700  { height: 700px;  overflow: visible; }
#EXISTINGDATA.h-800  { height: 800px;  overflow: visible; }
#EXISTINGDATA.h-900  { height: 900px;  overflow: visible; }
#EXISTINGDATA.h-1000 { height: 1000px; overflow: visible; }
#EXISTINGDATA.h-1100 { height: 1100px; overflow: visible; }
#EXISTINGDATA.h-1200 { height: 1200px; overflow: visible; }
#EXISTINGDATA.h-1300 { height: 1300px; overflow: visible; }
#EXISTINGDATA.h-1400 { height: 1400px; overflow: visible; }
#EXISTINGDATA.h-1500 { height: 1500px; overflow: visible; }
#EXISTINGDATA.h-1600 { height: 1600px; overflow: visible; }
#EXISTINGDATA.h-1700 { height: 1700px; overflow: visible; }
#EXISTINGDATA.h-1800 { height: 1800px; overflow: visible; }
#EXISTINGDATA.h-1900 { height: 1900px; overflow: visible; }
#EXISTINGDATA.h-2000 { height: 2000px; overflow: visible; }
#EXISTINGDATA.h-2100 { height: 2100px; overflow: visible; }
#EXISTINGDATA.h-2200 { height: 2200px; overflow: visible; }
#EXISTINGDATA.h-2300 { height: 2300px; overflow: visible; }
#EXISTINGDATA.h-2400 { height: 2400px; overflow: visible; }
#EXISTINGDATA.h-2500 { height: 2500px; overflow: visible; }
#EXISTINGDATA.h-2600 { height: 2600px; overflow: visible; }
#EXISTINGDATA.h-2700 { height: 2700px; overflow: visible; }
#EXISTINGDATA.h-2800 { height: 2800px; overflow: visible; }
#EXISTINGDATA.h-2900 { height: 2900px; overflow: visible; }
#EXISTINGDATA.h-3000 { height: 3000px; overflow: visible; }
#EXISTINGDATA.h-3100 { height: 3100px; overflow: visible; }
#EXISTINGDATA.h-3200 { height: 3200px; overflow: visible; }
#EXISTINGDATA.h-3300 { height: 3300px; overflow: visible; }
#EXISTINGDATA.h-3400 { height: 3400px; overflow: visible; }
#EXISTINGDATA.h-3500 { height: 3500px; overflow: visible; }
#EXISTINGDATA.h-3600 { height: 3600px; overflow: visible; }
#EXISTINGDATA.h-3700 { height: 3700px; overflow: visible; }
#EXISTINGDATA.h-3800 { height: 3800px; overflow: visible; }
#EXISTINGDATA.h-3900 { height: 3900px; overflow: visible; }
#EXISTINGDATA.h-4000 { height: 4000px; overflow: visible; }
#EXISTINGDATA.h-4100 { height: 4100px; overflow: visible; }
#EXISTINGDATA.h-4200 { height: 4200px; overflow: auto; } /* 最大値 */
#EXISTINGDATA.h-max  { height: 4200px; overflow: auto; } /* 最大値エイリアス */

/* 検索結果アイテムのスタイル */
.search-results {
	display: block;
	width: 100%;
}

.result-item {
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.result-item:hover {
	background: #f5f5f5;
}


.no-results {
	padding: 20px;
	text-align: center;
	color: #666;
}