/* ぼうそうファミリア比較表 — フロント表示
 * 配色: メインピンク #ff5c93 / アクセント #ff85b3
 * フォントサイズは全て 0.85em に統一（コンテナで指定し、子要素は継承）
 */

.bosohikaku {
	--bh-pink: #ff5c93;
	--bh-pink-2: #ff85b3;
	--bh-pink-soft: #fde7f0;
	--bh-shadow: rgba( 255, 92, 147, 0.35 );
	--bh-text: #4a4a4a;
	--bh-border: #f6d3e2;
	max-width: 1080px;	box-sizing: border-box;
	font-size: 0.8em;
	-webkit-font-smoothing: antialiased;
}
.bosohikaku *,
.bosohikaku *::before,
.bosohikaku *::after {
	box-sizing: border-box;
	font-size: inherit; /* 全要素 0.85em に統一 */
}

/* ===== ヘッダー ===== */
.bosohikaku-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.bh-lead {
	color: var(--bh-pink);
	font-weight: 600;
	line-height: 1.6;
}
.bh-title {
	grid-column: 2;
	text-align: center;
	margin: 0;
	font-weight: 800;
	color: #3a3a3a;
	letter-spacing: 0.02em;
	white-space: nowrap;
	font-size: 1.7em;
}
.bh-title-hl {
	color: var(--bh-pink);
	border-bottom: 4px solid #ffd54a;
	padding-bottom: 2px;
	margin-left: 4px;
}
.bh-badge {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 2px solid var(--bh-pink);
	color: var(--bh-pink);
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 700;
	line-height: 1.4;
}
.bh-badge .bh-chat {
	flex: 0 0 auto;
}

/* ===== テーブル ===== */
.bosohikaku-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 14px;
}
.bosohikaku-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	min-width: 880px;
}
.bosohikaku-table th,
.bosohikaku-table td {
	padding: 12px 8px;
	vertical-align: middle;
	text-align: center;
	border-bottom: 1px solid var(--bh-border);
	white-space: nowrap;
}

/* ヘッダー行 */
.bosohikaku-table thead th {
	background: var( --bh-pink );
	color: #fff;
	font-weight: 700;
	line-height: 1.3;
	border-bottom: none;
	position: sticky;
	top: 0;
}
.bosohikaku-table thead th:first-child {
	border-top-left-radius: 12px;
}
.bosohikaku-table thead th:last-child {
	border-top-right-radius: 12px;
}
.bh-th-sub {
	display: block;
	font-weight: 500;
	opacity: 0.95;
}

/* 行の色（交互） */
.bosohikaku-table tbody tr:nth-child(even) td {
	background: #fff;
}
.bosohikaku-table tbody tr:nth-child(odd) td {
	background: #fffafc;
}
.bosohikaku-table tbody tr:hover td {
	background: var(--bh-pink-soft);
}

/* ===== 1列目（アプリ）を横スクロール時に固定 ===== */
.bosohikaku-table th:first-child,
.bosohikaku-table td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	box-shadow: 2px 0 4px rgba( 0, 0, 0, 0.05 );
}
.bosohikaku-table thead th:first-child {
	z-index: 3; /* 左上の角（縦・横とも固定）を最前面に */
}
.bosohikaku-table thead th {
	z-index: 2; /* ヘッダー行を本文セルより前面に */
}

/* ===== アプリ名（アイコンの下に名前） ===== */
.bh-app {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}
.bh-app-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	object-fit: cover;
	flex: 0 0 auto;
	box-shadow: 0 2px 5px rgba( 0, 0, 0, 0.1 );
}
.bh-app-name {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
}
.bh-app-title {
	color: #333;
}
.bh-app-sub {
	color: #999;
}

/* ===== テキスト / 統計 ===== */
.bh-text {
	line-height: 1.5;
}
.bh-stat {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.3;
}
.bh-stat-main {
	color: #333;
}
.bh-stat-sub {
	color: #888;
}
.bh-col-feature .bh-text {
	color: #555;
	display: inline-block;
	text-align: left;
}

/* ===== 安全性 ===== */
.bh-safety {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.bh-safety-lines {
	display: inline-flex;
	flex-direction: column;
	color: #555;
	text-align: left;
	line-height: 1.4;
}

/* ===== ★評価 ===== */
.bh-rating {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}
.bh-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	height: 1em;
}
.bh-stars::before {
	content: "\2605\2605\2605\2605\2605";
	color: #f3d4e0;
	letter-spacing: 2px;
}
.bh-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
}
.bh-stars-fill::before {
	content: "\2605\2605\2605\2605\2605";
	color: var(--bh-pink);
	letter-spacing: 2px;
}
.bh-rating-num {
	color: var(--bh-pink);
}

/* ===== 公式サイトボタン（JS リンク span.jump） ===== */
.bosohikaku .bh-col-link .jump {
	display: inline-block;
	background: linear-gradient( 135deg, var(--bh-pink) 0%, var(--bh-pink-2) 100% );
	color: #fff;
	padding: 8px 18px;
	border-radius: 999px;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	font-weight: bold;
	text-decoration: none;
}
.bosohikaku .bh-col-link .jump:hover {
	transform: translateY( -1px );
	box-shadow: 0 5px 12px var( --bh-shadow );
}

/* アイコンの JS リンクラッパー */
.bh-app .jump {
	display: inline-flex;
	cursor: pointer;
	flex: 0 0 auto;
}

/* ===== 注釈 ===== */
.bh-note {
	margin: 12px 4px 0;
	color: #999;
	line-height: 1.6;
}

/* ===== レスポンシブ ===== */
@media ( max-width: 768px ) {
	.bosohikaku-header {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.bh-lead {
		text-align: center;
	}
	.bh-title {
		grid-column: 1;
		white-space: normal;
	}
	.bh-badge {
		justify-self: center;
	}
}
