@charset "UTF-8";
/* =========================================================
 * SaaSレビューブロック
 * ショートコード [saas_review id="..."] の出力スタイル
 * SWELLのCSS変数（--color_main 等）を尊重しつつ、未定義環境向けにフォールバック
 * ========================================================= */

.hbz-saas-review {
	--hbz-saas-bg: #ffffff;
	--hbz-saas-border: #e6e8ec;
	--hbz-saas-text: var(--color_text, #2b2b2b);
	--hbz-saas-muted: #6b7280;
	--hbz-saas-soft: #f7f8fa;
	--hbz-saas-accent: var(--color_main, #2589d0);
	--hbz-saas-cta: #ff7a00;
	--hbz-saas-cta-hover: #e96f00;
	--hbz-saas-star: #f5b400;
	--hbz-saas-star-empty: #e2e5ea;
	--hbz-saas-radius: 14px;
	--hbz-saas-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);

	box-sizing: border-box;
	max-width: 720px;
	margin: 2em auto;
	padding: 24px;
	background: var(--hbz-saas-bg);
	color: var(--hbz-saas-text);
	border: 1px solid var(--hbz-saas-border);
	border-radius: var(--hbz-saas-radius);
	box-shadow: var(--hbz-saas-shadow);
	line-height: 1.7;
	font-size: 15px;
}

.hbz-saas-review *,
.hbz-saas-review *::before,
.hbz-saas-review *::after {
	box-sizing: border-box;
}

/* ---------- PR表記 ---------- */
.hbz-saas-pr {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -8px -8px 16px;
	padding: 6px 10px;
	background: var(--hbz-saas-soft);
	border-radius: 8px;
	font-size: 12px;
	color: var(--hbz-saas-muted);
}
.hbz-saas-pr-tag {
	display: inline-block;
	padding: 2px 8px;
	background: #d4d8df;
	color: #444;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 11px;
	line-height: 1.4;
}

/* ---------- ヘッダー（ロゴ＋名称） ---------- */
.hbz-saas-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}
.hbz-saas-logo {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hbz-saas-soft);
	border-radius: 10px;
	overflow: hidden;
}
.hbz-saas-logo .hbz-saas-logo-img,
.hbz-saas-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.hbz-saas-title-wrap {
	flex: 1 1 auto;
	min-width: 0;
}
.hbz-saas-category {
	display: inline-block;
	padding: 2px 10px;
	background: rgba(37,137,208,0.08);
	background: color-mix(in srgb, var(--hbz-saas-accent) 12%, transparent);
	color: var(--hbz-saas-accent);
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	margin-bottom: 6px;
}
.hbz-saas-name {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--hbz-saas-text);
	border: none;
	padding: 0;
}

/* ---------- 総合評価 ---------- */
.hbz-saas-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	margin-bottom: 18px;
	background: linear-gradient(135deg, rgba(245,180,0,0.06), rgba(255,122,0,0.06));
	border: 1px solid #f3e9c6;
	border-radius: 10px;
}
.hbz-saas-total-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--hbz-saas-muted);
}
.hbz-saas-total-value {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hbz-saas-total-num {
	font-size: 28px;
	font-weight: 800;
	color: var(--hbz-saas-star);
	letter-spacing: 0.02em;
	line-height: 1;
}
.hbz-saas-total-num-max {
	font-size: 14px;
	color: var(--hbz-saas-muted);
	font-weight: 600;
	margin-left: 2px;
}

/* ---------- 5項目スコア ---------- */
.hbz-saas-scores {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
	margin: 0 0 20px;
	padding: 16px 18px;
	background: var(--hbz-saas-soft);
	border-radius: 10px;
}
.hbz-saas-score-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 4px 0;
}
.hbz-saas-score-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--hbz-saas-text);
	margin: 0;
}
.hbz-saas-score-value {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.hbz-saas-score-num {
	font-size: 14px;
	font-weight: 700;
	color: var(--hbz-saas-star);
	min-width: 2.4em;
	text-align: right;
}

/* ---------- 星評価 ---------- */
.hbz-saas-stars {
	position: relative;
	display: inline-block;
	color: var(--hbz-saas-star-empty);
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
	font-family: "Hiragino Sans", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}
.hbz-saas-stars--sm { font-size: 16px; }
.hbz-saas-stars--lg { font-size: 24px; }
.hbz-saas-stars-bg,
.hbz-saas-stars-fg {
	display: inline-block;
}
.hbz-saas-stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--hbz-saas-star);
	width: 0;
}

/* ---------- リスト（おすすめポイント／こんな人に） ---------- */
.hbz-saas-list {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-left: 4px solid var(--hbz-saas-accent);
	background: var(--hbz-saas-soft);
	border-radius: 0 8px 8px 0;
}
.hbz-saas-list.hbz-saas-targets {
	border-left-color: var(--hbz-saas-cta);
}
.hbz-saas-list-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--hbz-saas-text);
	border: none;
	padding: 0;
}
.hbz-saas-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hbz-saas-list li {
	position: relative;
	padding-left: 24px;
	margin: 4px 0;
	font-size: 14px;
	line-height: 1.6;
}
.hbz-saas-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.55em;
	width: 12px;
	height: 6px;
	border-left: 2px solid var(--hbz-saas-accent);
	border-bottom: 2px solid var(--hbz-saas-accent);
	transform: rotate(-45deg);
}
.hbz-saas-list.hbz-saas-targets li::before {
	border-color: var(--hbz-saas-cta);
}

/* ---------- CTAボタン ---------- */
.hbz-saas-cta-wrap {
	margin-top: 22px;
	text-align: center;
}
.hbz-saas-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 280px;
	max-width: 100%;
	padding: 16px 28px;
	font-size: 17px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--hbz-saas-cta);
	border: none;
	border-radius: 999px;
	box-shadow: 0 6px 0 rgba(0,0,0,0.08), 0 12px 22px rgba(255,122,0,0.28);
	transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hbz-saas-cta:hover,
.hbz-saas-cta:focus {
	background: var(--hbz-saas-cta-hover);
	transform: translateY(-1px);
	color: #fff !important;
	text-decoration: none !important;
}
.hbz-saas-cta:active {
	transform: translateY(1px);
	box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 6px 12px rgba(255,122,0,0.22);
}
.hbz-saas-cta-arrow {
	font-size: 18px;
	font-weight: 700;
	transition: transform 0.2s ease;
}
.hbz-saas-cta:hover .hbz-saas-cta-arrow {
	transform: translateX(3px);
}
.hbz-saas-cta-sub {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--hbz-saas-muted);
}
.hbz-saas-cta-note {
	margin: 6px 0 0;
	font-size: 11px;
	color: #9ca3af;
}

/* ---------- レスポンシブ（〜600px） ---------- */
@media (max-width: 600px) {
	.hbz-saas-review {
		padding: 18px 16px;
		font-size: 14px;
	}
	.hbz-saas-header {
		gap: 12px;
	}
	.hbz-saas-logo {
		width: 56px;
		height: 56px;
	}
	.hbz-saas-name {
		font-size: 19px;
	}
	.hbz-saas-total {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 14px;
	}
	.hbz-saas-total-value {
		width: 100%;
		justify-content: flex-start;
	}
	.hbz-saas-total-num {
		font-size: 26px;
	}
	.hbz-saas-stars--lg { font-size: 22px; }
	.hbz-saas-scores {
		grid-template-columns: 1fr;
		gap: 4px 0;
		padding: 14px;
	}
	.hbz-saas-cta {
		width: 100%;
		min-width: 0;
		padding: 14px 20px;
		font-size: 16px;
	}
}

/* ---------- 印刷時 ---------- */
@media print {
	.hbz-saas-review {
		max-width: 100%;
		margin: 0 0 16px;
		padding: 12px;
		border: 1px solid #999;
		box-shadow: none;
		background: #fff;
		color: #000;
		page-break-inside: avoid;
		break-inside: avoid;
	}
	.hbz-saas-pr {
		background: transparent;
		border: 1px solid #ccc;
	}
	.hbz-saas-total,
	.hbz-saas-scores,
	.hbz-saas-list {
		background: transparent !important;
		border: 1px solid #ccc !important;
	}
	.hbz-saas-stars {
		color: #aaa;
	}
	.hbz-saas-stars-fg {
		color: #000;
	}
	.hbz-saas-cta {
		background: #fff !important;
		color: #000 !important;
		border: 2px solid #000 !important;
		box-shadow: none !important;
	}
	.hbz-saas-cta::after {
		content: " (" attr(href) ")";
		font-size: 11px;
		font-weight: normal;
	}
}
