/* ホームページのカルテ — 管理/フロント共通スタイル（コムネット紫アクセント） */
.hpkarte-wrap { max-width: 920px; }
.hpk-badge { font-size: 1.1em; }
.hpk-lead { color: #555; }
.hpk-scope { font-size: 13px; color: #8e6fc0; font-weight: normal; }

.hpk-inputrow { display: flex; gap: 8px; margin: 14px 0; }
.hpk-inputrow input[type=text] {
	flex: 1; padding: 10px 12px; font-size: 15px;
	background: #fff;
	border: 1px solid #9a86bd; border-radius: 6px;
}
.hpk-inputrow input[type=text]:focus {
	border-color: #5b3d8c; outline: none;
	box-shadow: 0 0 0 3px rgba(91,61,140,.15);
}
.hpk-inputrow .button-primary,
.hpkarte-front .button-primary {
	background: #3d2568 !important;
	border: 1px solid #2a1a48 !important;
	color: #fff !important;
	height: auto; padding: 10px 26px;
	font-weight: 700; font-size: 15px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
	text-shadow: 0 1px 1px rgba(0,0,0,.25);
	cursor: pointer;
}
.hpk-inputrow .button-primary:hover,
.hpkarte-front .button-primary:hover {
	background: #2a1a48 !important;
	border-color: #1c1030 !important;
	box-shadow: 0 3px 9px rgba(0,0,0,.32);
}
.hpk-inputrow .button-primary:focus,
.hpkarte-front .button-primary:focus {
	outline: 2px solid #b79fe0; outline-offset: 2px;
}

.hpk-status { min-height: 22px; margin: 6px 0; }
.hpk-loading { color: #5b3d8c; }
.hpk-err { color: #e53935; font-weight: bold; }

.hpk-fatal {
	background: #fdecea; border: 1px solid #e53935; color: #b71c1c;
	padding: 12px 14px; border-radius: 6px; margin: 12px 0; font-weight: bold;
}

/* スコアカード */
.hpk-scorecard {
	display: flex; align-items: center; gap: 20px;
	background: #fff; border: 2px solid #5b3d8c; border-radius: 12px;
	padding: 18px 22px; margin: 16px 0;
}
.hpk-gauge {
	width: 118px; height: 118px; border-radius: 50%;
	display: flex; align-items: baseline; justify-content: center;
	background:
		radial-gradient(closest-side, #fff calc(100% - 12px), transparent calc(100% - 12px) 100%),
		conic-gradient(var(--c) calc(var(--v) * 1%), #e9e2f5 0);
	flex: 0 0 auto;
}
.hpk-score-num { font-size: 34px; font-weight: 800; color: #333; }
.hpk-score-den { font-size: 14px; color: #999; }
.hpk-verdict .hpk-flag { font-size: 20px; font-weight: 800; }
.hpk-verdict .hpk-msg { color: #444; margin-top: 4px; }

.hpk-cat { margin: 14px 0; }
.hpk-cat h3 { color: #5b3d8c; border-bottom: 2px solid #eee; padding-bottom: 4px; }
.hpk-cat ul { list-style: none; margin: 8px 0 0; padding: 0; }
.hpk-cat li { padding: 5px 0; border-bottom: 1px dotted #eee; }
.hpk-ic { margin-right: 4px; }

.hpk-manual {
	background: #f6f3fb; border-radius: 8px; padding: 14px 18px; margin-top: 18px;
}
.hpk-manual h3 { margin-top: 0; color: #6a5a8a; font-size: 14px; }
.hpk-manual h4 { margin: 10px 0 4px; color: #5b3d8c; }
.hpk-manual ul { margin: 0; padding-left: 4px; list-style: none; color: #666; }

.hpk-table .hpk-url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpk-meta { border-collapse: collapse; margin: 10px 0 16px; }
.hpk-meta th { text-align: left; padding: 4px 14px 4px 0; color: #666; white-space: nowrap; vertical-align: top; }
.hpk-meta td { padding: 4px 0; }

.hpk-pager { margin: 16px 0; }
.hpk-page { display: inline-block; padding: 4px 10px; margin-right: 4px; border: 1px solid #cbb8e6; border-radius: 4px; text-decoration: none; }
.hpk-page.current { background: #5b3d8c; color: #fff; border-color: #5b3d8c; }

.hpk-gate { background: #f6f3fb; padding: 20px; border-radius: 8px; text-align: center; }

/* ハニーポット：人には見えないが、フォームを自動入力するボットには見える隠しフィールド */
.hpk-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* ============================================================
   診断結果 → 相談・料金への動的導線（フロント側のみ）
   サイトのCTA（インディゴ #5866D9）に合わせ、結果からそのまま
   「おすすめ修正・料金・相談」へ進めるようにする。
   ============================================================ */
/* スコア別のおすすめ提案 */
.hpkarte-front .hpk-reco {
	border: 2px solid #5866D9; border-left-width: 6px; border-radius: 10px;
	background: #f1f2ff; padding: 16px 18px; margin: 16px 0;
}
.hpkarte-front .hpk-reco--bad  { border-color: #e53935; background: #fdecec; }
.hpkarte-front .hpk-reco--warn { border-color: #e0920b; background: #fff7e8; }
.hpkarte-front .hpk-reco__title { font-weight: 800; font-size: 1.1em; color: #1f2440; }
.hpkarte-front .hpk-reco__body  { margin: 6px 0 12px; color: #333; line-height: 1.8; }

/* 共通ボタン */
.hpkarte-front .hpk-btn {
	display: inline-block; text-decoration: none; font-weight: 800;
	border-radius: 10px; padding: 11px 20px; font-size: 14px; line-height: 1.4;
}
.hpkarte-front .hpk-btn--cta { background: #5866D9; color: #fff !important; border: 1px solid #414DB8; }
.hpkarte-front .hpk-btn--cta:hover { background: #414DB8; }
.hpkarte-front .hpk-btn--outline { background: #fff; color: #414DB8 !important; border: 2px solid #5866D9; }
.hpkarte-front .hpk-btn--outline:hover { background: #f1f2ff; }

/* 各項目の「こう直せます（修正＋料金＋相談）」 */
.hpkarte-front .hpk-fix {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px;
	background: #f6f6fc; border-left: 4px solid #5866D9;
}
.hpkarte-front .hpk-fix--bad  { border-left-color: #e53935; }
.hpkarte-front .hpk-fix--warn { border-left-color: #e0920b; }
.hpkarte-front .hpk-fix__label {
	font-size: 11px; font-weight: 800; color: #414DB8; background: #e7e9ff;
	border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.hpkarte-front .hpk-fix__name  { font-weight: 700; color: #1f2440; }
.hpkarte-front .hpk-fix__price { font-weight: 800; color: #414DB8; font-variant-numeric: tabular-nums; }
.hpkarte-front .hpk-fix__cta {
	margin-left: auto; text-decoration: none; font-weight: 800; font-size: 13px;
	color: #fff !important; background: #5866D9; border-radius: 8px; padding: 7px 14px; white-space: nowrap;
}
.hpkarte-front .hpk-fix__cta:hover { background: #414DB8; }

/* 末尾の総合導線 */
.hpkarte-front .hpk-cta-band {
	margin: 22px 0 4px; padding: 20px; border-radius: 12px; text-align: center;
	background: #1f2440; color: #fff;
}
.hpkarte-front .hpk-cta-band__lead { margin: 0 0 14px; font-weight: 700; }
.hpkarte-front .hpk-cta-band__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hpkarte-front .hpk-cta-band .hpk-btn--outline { background: transparent; color: #fff !important; border-color: #fff; }
.hpkarte-front .hpk-cta-band .hpk-btn--outline:hover { background: rgba(255,255,255,.12); }

@media (max-width: 600px) {
	.hpkarte-front .hpk-fix__cta { margin-left: 0; width: 100%; text-align: center; }
}
