.bootstrap-select {
	max-width: 1000px !important;
}

/* ========================================
   通常時のキャラ名（暗色テーマ）
======================================== */
.combatant_name_s {
	font-size: 18px;
	font-weight: bold;
	padding: 0 !important;
	margin: 0 !important;
	color: #f5f5f5 !important;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
	transition: color 0.15s ease, text-shadow 0.15s ease;
	height: 1em;	/* 旧ブラウザ用フォールバック */
	height: 1lh;	/* 対応ブラウザでは行の高さに連動 */
}
.combatant_name_s img {
	width: 24px !important;
	height: 24px !important;
}

/* ========================================
   hover時（白背景時）→ 黒文字で見やすく
======================================== */
.bootstrap-select .dropdown-item:hover .combatant_name_s,
.bootstrap-select .dropdown-item:focus .combatant_name_s {
	color: #111 !important;
	text-shadow: 0 0 2px rgba(255,255,255,0.4);
	font-weight: 700 !important;
}

/* ========================================
   active状態（青背景時）→ 白文字固定
======================================== */
.bootstrap-select .dropdown-item.active .combatant_name_s,
.bootstrap-select .dropdown-item.active:focus .combatant_name_s {
	color: #ffffff !important;
	text-shadow: none !important;
	font-weight: 700 !important;
}

/* ========================================
   disabled状態（非選択）
======================================== */
.bootstrap-select .dropdown-item.disabled .combatant_name_s {
	color: #777 !important;
	opacity: 0.7 !important;
	text-shadow: none !important;
}

/* hover時に強制的に黒文字化 */
.bootstrap-select .dropdown-menu.show .dropdown-item:hover .combatant_name_s,
.bootstrap-select .dropdown-menu.show .dropdown-item:focus .combatant_name_s,
.bootstrap-select .dropdown-menu.inner li:hover .combatant_name_s,
.bootstrap-select .dropdown-menu.inner li:focus .combatant_name_s {
	color: #fff !important;
	text-shadow: 0 0 2px rgba(255, 255, 255, 0.3) !important;
	font-weight: 700 !important;
}

/* active時は白で固定 */
.bootstrap-select .dropdown-menu.show .dropdown-item.active .combatant_name_s,
.bootstrap-select .dropdown-menu.show .dropdown-item.active:focus .combatant_name_s {
	color: #ffffff !important;
	text-shadow: none !important;
	font-weight: 700 !important;
}

@supports (-webkit-touch-callout: none) {
	/* Safari対策：親とドロップダウンの関係をリセット */
	.bootstrap-select {
		position: relative !important;
	}
	
	.bootstrap-select .dropdown-menu {
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		transform: none !important;
		z-index: 9999 !important;
		overflow: visible !important;
	}
	
	/* 内部リスト（ここが高さ0になるのが原因） */
	.bootstrap-select .dropdown-menu.inner {
		display: block !important;
		max-height: 60vh !important;
		overflow-y: auto !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	/* 親要素のoverflow制限を解除 */
	.select_area {
		overflow: visible !important;
	}
}

/*--------------------------------------------------------------
>>> Bootstrap-Select 本体ボタン（選択部分）
---------------------------------------------------------------*/
.bootstrap-select {
	width: 100% !important;
	position: relative !important;
}
.bootstrap-select .btn {
	background-color: #2a2a2a !important;
	color: #e8e8e8 !important; /* 明るめに変更 */
	border: 1px solid #444 !important;
	border-radius: 6px !important;
	padding: 10px 14px !important;
	font-size: 1rem;
	text-align: left;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
	transition: all 0.25s ease;
}

/* hover / focus時 */
.bootstrap-select .btn:hover,
.bootstrap-select .btn:focus {
	border-color: #4da3ff !important;
	box-shadow: 0 0 6px rgba(77,163,255,0.5) !important;
	color: #4da3ff !important;
	background-color: #2f2f2f !important;
}

/* プレースホルダー／選択前テキスト（明るく） */
.bootstrap-select .filter-option-inner-inner {
	color: #e8e8e8 !important;
	font-weight: 500;
}

/*--------------------------------------------------------------
>>> ドロップダウンメニュー部分
---------------------------------------------------------------*/

/* ボタンとドロップダウン幅を一致させる */
.bootstrap-select .dropdown-menu {
	width: 100% !important;
	min-width: 100% !important;
	left: 0 !important;
	right: 0 !important;
	top: 100% !important;
	transform: none !important;
	background-color: #1f1f1f !important;
	border: 1px solid #333 !important;
	border-radius: 6px !important;
	box-shadow: 0 0 10px rgba(0,0,0,0.7);
	padding: 0;
	margin-top: 6px; /* ボタンとの間にわずかな余白 */
	z-index: 9999 !important;
}

/* 検索ボックス */
.bootstrap-select .bs-searchbox {
	padding: 8px 10px;
	border-bottom: 1px solid #333;
}

.bootstrap-select .bs-searchbox input {
	background-color: #2a2a2a !important;
	color: #f5f5f5 !important;
	border: 1px solid #444 !important;
	border-radius: 5px;
	padding: 6px 10px;
	width: 100%;
}

.bootstrap-select .bs-searchbox input::placeholder {
	color: #aaa !important;
}

/* グループラベル（例: アスラ, リサーチ班） */
.bootstrap-select .dropdown-header {
	background-color: #252525 !important;
	color: #9ecbff !important;
	font-weight: bold;
	font-size: 0.9rem;
	border-bottom: 1px solid #333;
	padding: 8px 12px;
}

/*--------------------------------------------------------------
>>> 項目（キャラ名＋画像など）
---------------------------------------------------------------*/
.bootstrap-select .dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #e8e8e8 !important;
	background-color: transparent !important;
	padding: 8px 12px;
	font-weight: 500;
	transition: all 0.2s ease;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
/* 内部リスト部分を安全にスクロール可能に */
.bootstrap-select .dropdown-menu .inner {
	max-height: 70vh !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

/* hover時 */
.bootstrap-select .dropdown-item:hover,
.bootstrap-select .dropdown-item:focus {
	background-color: #4da3ff !important;
	color: #fff !important;
	text-shadow: none !important;
}

/* active状態（選択中） */
.bootstrap-select .dropdown-item.active,
.bootstrap-select .dropdown-item:active {
	background-color: #4da3ff !important;
	color: #fff !important;
	font-weight: 600;
}

/* disabled（選択不可） */
.bootstrap-select .dropdown-item.disabled,
.bootstrap-select .dropdown-item:disabled {
	color: #777 !important;
	opacity: 0.8;
}

/* muted文字（半透明無効化） */
.bootstrap-select .dropdown-item .text-muted,
.bootstrap-select .dropdown-item.text-muted {
	color: #e8e8e8 !important;
	opacity: 1 !important;
}

/* サムネイル画像 */
.bootstrap-select .dropdown-item img {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	margin-right: 10px;
	flex-shrink: 0;
}

/* 属性アイコンや点 */
.bootstrap-select .dropdown-item i,
.bootstrap-select .dropdown-item .attr-icon,
.bootstrap-select .dropdown-item .dot {
	filter: brightness(1.2) contrast(1.2);
	margin-right: 6px;
}

/* 補足テキスト（small） */
.bootstrap-select .dropdown-item small {
	font-size: 0.95rem !important;
	color: #ccc !important;
}

/* ========================================
   Bootstrap-select v1.13.x 白文字強制対応
   ======================================== */
/* ドロップダウン開閉ボタンの表示テキスト */
.bootstrap-select .filter-option,
.bootstrap-select .filter-option .filter-option-inner,
.bootstrap-select .filter-option .filter-option-inner-inner {
	color: #fff !important;
	font-family: "nicokaku_v2", sans-serif;
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

/* ドロップダウン内のリスト要素全般 */
.bootstrap-select .dropdown-menu > li > a,
.bootstrap-select .dropdown-menu > li > a span.text,
.bootstrap-select .dropdown-menu.inner > li > a span.text {
	color: #fff !important;
	font-family: "nicokaku_v2", sans-serif;
	text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

/* hover と active 時の色を固定 */
.bootstrap-select .dropdown-menu > li > a:hover,
.bootstrap-select .dropdown-menu > li.active > a {
	background-color: rgba(0, 120, 255, 0.3) !important;
	color: #fff !important;
}

/*--------------------------------------------------------------
>>> スクロールバー調整
---------------------------------------------------------------*/
.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar {
	width: 8px;
}

.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-thumb {
	background-color: #4da3ff;
	border-radius: 4px;
}

.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-track {
	background-color: #222;
}

/*--------------------------------------------------------------
>>> キャラ名視認性 MAX 強化（Bootstrap-Select override）
---------------------------------------------------------------*/
/* キャラ名（テキスト全般） */
.select_area .bootstrap-select .dropdown-item .text,
.select_area .bootstrap-select .dropdown-item span,
.select_area .bootstrap-select .dropdown-item {
	color: #f0f0f0 !important; /* 最明度 */
	font-weight: 600 !important;
	opacity: 1 !important;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* muted指定の打ち消し（Bootstrapが自動適用） */
.select_area .bootstrap-select .dropdown-item.text-muted,
.select_area .bootstrap-select .dropdown-item .text-muted,
.select_area .bootstrap-select .dropdown-item small.text-muted {
	color: #f0f0f0 !important;
	opacity: 1 !important;
}

/* hover時は白文字でより明るく */
.select_area .bootstrap-select .dropdown-item:hover,
.select_area .bootstrap-select .dropdown-item:hover span {
	color: #ffffff !important;
	text-shadow: none !important;
}

/* active（選択中） */
.select_area .bootstrap-select .dropdown-item.active,
.select_area .bootstrap-select .dropdown-item.active span {
	color: #ffffff !important;
	font-weight: 700 !important;
}

/* disabledキャラでも見やすく */
.select_area .bootstrap-select .dropdown-item.disabled,
.select_area .bootstrap-select .dropdown-item.disabled span {
	color: #999 !important;
	opacity: 0.8 !important;
}

/* グループヘッダー（例: アスラ） */
.select_area .bootstrap-select .dropdown-header {
	color: #8ac9ff !important;
	font-weight: 700;
	letter-spacing: 0.03em;
	background: #202020 !important;
	border-bottom: 1px solid #2d2d2d;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.media-body {
	vertical-align: middle; /* 縦中央寄せ */
}

/* 戦闘員名称 */
.text {
	font-size: 20px;
	font-weight: bold;
}

/*--------------------------------------------------------------
>>> スマホ用スタイル
---------------------------------------------------------------*/
@media (max-width: 480px) {
	.bootstrap-select .dropdown-item .combatant_name_s {
		color: #fff !important;
	}
	
	/* ========================================
	Bootstrap-select v1.13.x 白文字強制対応
	======================================== */
	/* ドロップダウン開閉ボタンの表示テキスト */
	.bootstrap-select .filter-option,
	.bootstrap-select .filter-option .filter-option-inner,
	.bootstrap-select .filter-option .filter-option-inner-inner {
		font-size: 14px;
		color: #fff !important;
		font-family: "nicokaku_v2", sans-serif;
		text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
	}
	
	/* ドロップダウン内のリスト要素全般 */
	.bootstrap-select .dropdown-menu > li > a,
	.bootstrap-select .dropdown-menu > li > a span.text,
	.bootstrap-select .dropdown-menu.inner > li > a span.text {
		font-size: 14px;
		color: #fff !important;
		font-family: "nicokaku_v2", sans-serif;
		text-shadow: 0 0 4px rgba(0,0,0,0.6);
	}
	
	/* hover と active 時の色を固定 */
		.bootstrap-select .dropdown-menu > li > a:hover,
		.bootstrap-select .dropdown-menu > li.active > a {
		font-size: 14px;
		background-color: rgba(0, 120, 255, 0.3) !important;
		color: #fff !important;
	}
	
	.text {
		font-size: 14px !important;
		font-weight: bold;
	}
	
	.combatant_name_s {
		font-size: 14px;
		font-weight: bold;
	}
	
	/* ドロップダウン展開内の画像 */
	.bootstrap-select .dropdown-menu li img.media-object {
		width: 50px !important;
		height: 50px !important;
	}
	
	/* メニュー内の行自体が大きすぎる場合は調整 */
	.bootstrap-select .dropdown-menu li a {
		padding: 4px 8px !important;
	}
	
	/* 選択中ボタン側の画像（閉じてる時）
	.bootstrap-select .dropdown-toggle img {
		width: 50px !important;
		height: 50px !important;
	} */
	
	.combatant_name_s img {
		width: 20px !important;
		height: 20px !important;
	}
}