/* ===========================================
   業者一覧 フロントエンド用CSS
   =========================================== */

/* コンテナ */
.bl-container {
	margin: 20px 0;
	font-size: 14px;
	line-height: 1.6;
}

/* =====================
   PC用テーブル
   ===================== */
.bl-table-wrap {
	max-width: 750px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.bl-table {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	border: 1px solid #fde5e5;
}

.bl-table thead tr {
	background: #f8d0ce;
}

.bl-table th {
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	border: 1px solid #fde5e5;
	white-space: nowrap;
	color: #333;
}

.bl-table td {
	padding: 10px 12px;
	border: 1px solid #fde5e5;
	vertical-align: middle;
	font-size: 13px;
}

.bl-table tbody tr:nth-child(odd) {
	background: #fefafb;
}

.bl-table tbody tr:hover {
	background: #f5f5f5;
}

/* 業者名 */
.bl-table .bl-name {
	font-weight: 600;
	white-space: nowrap;
}

/* HP */
.bl-table .bl-hp {
	text-align: center;
}

.bl-table .bl-hp a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.bl-hp-img {
	max-width: 80px;
	max-height: 36px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

/* 評価 */
.bl-table .bl-rating {
	text-align: center;
	white-space: nowrap;
}

.bl-stars {
	display: inline;
}

.bl-star-full {
	color: #FFC107;
}

.bl-star-empty {
	color: #ddd;
}

/* 半星（0.5単位評価） */
.bl-star-half {
	position: relative;
	display: inline-block;
	color: #ddd;
}

.bl-star-half::before {
	content: '★';
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	overflow: hidden;
	color: #FFC107;
}

.bl-rating-num {
	margin-left: 4px;
	font-weight: 600;
	color: #333;
}

/* 住所 */
.bl-table .bl-address {
	font-size: 12px;
	max-width: 200px;
}

/* 買取方法 */
.bl-table .bl-method {
	text-align: center;
	font-size: 12px;
}

/* 手数料 */
.bl-table .bl-commission {
	text-align: center;
	font-size: 12px;
}

/* 列幅調整 */
.bl-th-name { width: 20%; }
.bl-th-hp { width: 10%; }
.bl-th-rating { width: 12%; }
.bl-th-address { width: 25%; }
.bl-th-method { width: 18%; }
.bl-th-commission { width: 15%; }

/* =====================
   SP用トグルリスト
   ===================== */
.bl-sp-container {
	display: none;
}

/* SPヘッダー行 */
.bl-sp-header-row {
	display: flex;
	background: #f8d0ce;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #fde5e5;
	border-bottom: none;
}

.bl-sp-th-name {
	flex: 1;
	padding-left: 20px;
}

.bl-sp-th-hp {
	width: 50px;
	text-align: center;
}

.bl-sp-th-rating {
	width: 90px;
	text-align: center;
}

/* SPアイテム */
.bl-sp-item {
	border: 1px solid #fde5e5;
	border-bottom: none;
}

.bl-sp-item:last-child {
	border-bottom: 1px solid #fde5e5;
}

.bl-sp-header {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	cursor: pointer;
	background: #fff;
	transition: background 0.2s;
}

.bl-sp-header:hover {
	background: #f9f9f9;
}

/* トグルアイコン */
.bl-sp-toggle-icon {
	display: inline-block;
	width: auto;
    margin-right: 8px;
	font-size: 10px;
	color: #999;
	transition: transform 0.2s;
	flex-shrink: 0;
}

.bl-sp-toggle-icon::before {
	content: '▶';
}

.bl-sp-item.is-open .bl-sp-toggle-icon {
	transform: rotate(90deg);
}

.bl-sp-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bl-sp-hp {
	width: 50px;
	text-align: center;
	flex-shrink: 0;
}

.bl-sp-hp a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.bl-sp-hp a .bl-hp-img {
	max-width: 46px;
	max-height: 28px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.bl-sp-rating {
	width: 90px;
	text-align: center;
	font-size: 12px;
	flex-shrink: 0;
}

.bl-sp-rating .bl-stars {
	font-size: 11px;
}

/* SP詳細セクション */
.bl-sp-detail {
	display: none;
	padding: 12px 16px 12px 28px;
	background: #f9f9f9;
	border-top: 1px solid #eee;
}

.bl-sp-item.is-open .bl-sp-detail {
	display: block;
}

.bl-sp-detail dl {
	margin: 0;
}

.bl-sp-detail dt {
	font-weight: 600;
	font-size: 12px;
	color: #666;
	margin-top: 8px;
}

.bl-sp-detail dt:first-child {
	margin-top: 0;
}

.bl-sp-detail dd {
	margin: 2px 0 0 0;
	font-size: 13px;
}

/* =====================
   レスポンシブ切り替え
   ===================== */
@media screen and (max-width: 768px) {
	.bl-table-wrap {
		display: none;
	}

	.bl-sp-container {
		display: block;
	}
}
