/* 姿勢評価エンジン フロントUI（最小スタイル。テーマに合わせて調整可） */
.pdx-app {
	max-width: 680px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
	color: #333;
	line-height: 1.7;
}

.pdx-heading,
.pdx-result-type {
	font-size: 1.5rem;
	margin: 0 0 8px;
}

.pdx-lead {
	margin: 0 0 24px;
	color: #666;
}

.pdx-q {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 16px;
}

.pdx-q--error {
	border-color: #e05a5a;
	background: #fdf1f1;
}

.pdx-q-title {
	font-weight: 700;
	padding: 0;
	margin: 0 0 10px;
}

.pdx-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
}

.pdx-choice:hover {
	background: #eef4fa;
}

.pdx-choice input {
	margin-top: 4px;
}

.pdx-msg {
	color: #e05a5a;
	min-height: 1.2em;
	margin: 4px 0 8px;
}

.pdx-submit,
.pdx-again {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: #719eef;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}

.pdx-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.pdx-again {
	background: #6b7684;
	margin-top: 20px;
}

/* 結果 */
.pdx-result-eyebrow {
	color: #888;
	margin: 0 0 4px;
}

.pdx-result-usertext {
	color: #555;
	margin: 0 0 20px;
}

.pdx-scores {
	margin: 0 0 24px;
}

.pdx-score {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
}

.pdx-score-label {
	flex: 0 0 96px;
	font-size: 0.85rem;
}

.pdx-score-bar {
	display: block;
	flex: 1 1 auto;
	height: 10px;
	background: #eef0f3;
	border-radius: 6px;
	overflow: hidden;
}

.pdx-score-fill {
	/* span で描画される大人向けフローでも width/height を効かせるため block 指定 */
	display: block;
	height: 100%;
	background: #719eef;
	border-radius: 6px;
	width: 0;
	transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdx-score-val {
	flex: 0 0 44px;
	text-align: right;
	font-size: 0.85rem;
	color: #555;
}

.pdx-section {
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 16px;
	background: #eef4fa;
}

.pdx-section--menu {
	background: #fff3ea;
}

.pdx-section-title {
	font-size: 1.05rem;
	margin: 0 0 8px;
}

.pdx-section-body {
	margin: 0;
}

.pdx-note {
	color: #888;
	font-size: 0.85rem;
}

/* 大人向け診断フロー（STEP02）に埋め込むときの多肢選択ボタン。 */
.measure-choice--multi {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.measure-choice--multi .measure-choice-btn {
	flex: 1 1 calc(50% - 8px);
	min-width: 140px;
}

/* 選択済みの回答（見返したときに分かるように）。 */
.measure-choice--multi .measure-choice-btn.is-active {
	background: #719eef;
	border-color: #719eef;
	color: #fff;
}

/* フロー内の結果ブロックの余白調整。 */
.measure-result .pdx-result-type {
	margin-top: 4px;
}

.measure-result .pdx-scores {
	margin-top: 16px;
}

/* 姿勢骨格｜年齢（骨格タイプの直上に表示） */
.pdx-posture-age {
	text-align: center;
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #eef4fa;
	border-radius: 12px;
}

.pdx-posture-age-label {
	margin: 0 0 2px;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: #555;
}

.pdx-posture-age-value {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #719eef;
}

.pdx-posture-age-value .pdx-age-unit {
	font-size: 1rem;
	font-weight: 500;
	margin-left: 2px;
}
