/* 姿勢評価エンジン フロント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 #e6e6e4;
	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;
}

/* 質問文と回答の間に挿入する参考動画（単体ページ /posture 用。
   大人向け診断フロー側は wellness-design テーマの .measure-video を使う）。 */
.pdx-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0 0 14px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.pdx-video-media {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
	object-fit: cover;
}

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

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

.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: #34312f;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}

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

.pdx-again {
	background: #6e6a64;
	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: #34312f;
	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: #f3ede6;
}

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

.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: #34312f;
	border-color: #34312f;
	color: #fff;
}

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

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

/* 姿勢骨格スコア（姿勢骨格｜年齢の直上に表示） */
.pdx-posture-score {
	text-align: center;
	margin: 0 0 12px;
	padding: 14px 16px;
	background: #f3ede6;
	border-radius: 12px;
}

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

.pdx-posture-score-value {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #34312f;
}

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

/* 姿勢骨格｜年齢（骨格タイプの直上に表示） */
.pdx-posture-age {
	text-align: center;
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #f3ede6;
	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: #34312f;
}

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

/* 骨格タイプ別の解説画像（タイプ写真＋危険性の写真を横並び）
   flexで組むことで、画像が1枚だけのタイプ（N・D）は自動的に中央1枚になる。 */
.pdx-type-images {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 0 0 20px;
}

.pdx-type-figure {
	flex: 1 1 0;
	min-width: 0;
	max-width: 320px;
	margin: 0;
}

.pdx-type-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

@media (max-width: 768px) {
	.pdx-result-type {
		font-size: 20px;
	}

	.pdx-type-images {
		gap: 8px;
	}
}
