/* HBS150 Phase E: 初回属性アンケート スタイル（確定仕様版） */

.hbs150-survey-overlay {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background-color: rgba( 30, 20, 20, 0.45 );
	opacity: 0;
	transition: opacity 0.25s ease;
	padding: 0;
}
.hbs150-survey-overlay.is-visible {
	opacity: 1;
}
body.hbs150-survey-lock {
	overflow: hidden;
}

.hbs150-survey-dialog {
	background: #fffaf9;
	width: 100%;
	max-width: 480px;
	border-radius: 20px 20px 0 0;
	padding: 24px 20px calc( 24px + env( safe-area-inset-bottom, 0px ) );
	box-shadow: 0 -4px 24px rgba( 0, 0, 0, 0.15 );
	transform: translateY( 12px );
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	max-height: 86vh;
	overflow-y: auto;
}
.hbs150-survey-overlay.is-visible .hbs150-survey-dialog {
	transform: translateY( 0 );
	opacity: 1;
}

@media ( min-width: 640px ) {
	.hbs150-survey-overlay {
		align-items: center;
	}
	.hbs150-survey-dialog {
		border-radius: 20px;
		max-height: 80vh;
	}
}

.hbs150-survey-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 8px;
	color: #2a2a2a;
}
.hbs150-survey-badge {
	display: inline-block;
	font-size: 12px;
	color: #8a5a00;
	background: #fff3d6;
	border-radius: 999px;
	padding: 2px 10px;
	margin-bottom: 8px;
}
.hbs150-survey-progress {
	font-size: 12px;
	color: #999;
	margin: 0 0 12px;
}
.hbs150-survey-qlabel {
	font-size: 15px;
	font-weight: 700;
	color: #e3000b;
	margin: 0 0 12px;
}

/* 2026-09-09 トミタプロデュース指示：おしごと設問の赤ラベル下に表示する黒文字の注意書き用スタイル */
.hbs150-survey-qnote {
	font-size: 13px;
	font-weight: 400;
	color: #333;
	margin: -6px 0 12px;
}

.hbs150-survey-field {
	margin-bottom: 16px;
}

.hbs150-survey-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.hbs150-survey-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid #e6dcdb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	position: relative;
}
.hbs150-survey-option input[type="radio"] {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}
.hbs150-survey-option__label {
	font-size: 15px;
	color: #2a2a2a;
}
.hbs150-survey-option.is-selected {
	border-color: #e3000b;
	background: #fff5f5;
	font-weight: 700;
}
.hbs150-survey-option.is-selected::after {
	content: "✓";
	position: absolute;
	right: 14px;
	color: #e3000b;
	font-weight: 700;
}

.hbs150-survey-select {
	width: 100%;
	min-height: 48px;
	font-size: 16px; /* iOSの自動ズームを防ぐため16px以上 */
	padding: 10px 14px;
	border: 2px solid #e6dcdb;
	border-radius: 12px;
	background: #fff;
	color: #2a2a2a;
	appearance: auto;
}
.hbs150-survey-select:focus {
	outline: 2px solid #e3000b;
	outline-offset: 1px;
	border-color: #e3000b;
}

.hbs150-survey-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.hbs150-survey-btn {
	min-height: 48px;
	border-radius: 999px;
	font-size: 15px;
	padding: 0 20px;
	border: none;
	cursor: pointer;
}
.hbs150-survey-btn--primary {
	background: #e3000b;
	color: #fff;
	font-weight: 700;
	flex: 1 1 auto;
}
.hbs150-survey-btn--primary:disabled {
	background: #e6b3b6;
	cursor: not-allowed;
}
.hbs150-survey-btn--text {
	background: transparent;
	color: #666;
	text-decoration: underline;
	padding: 0 8px;
}
@media ( prefers-reduced-motion: reduce ) {
	.hbs150-survey-overlay,
	.hbs150-survey-dialog {
		transition: none;
	}
}

/* v1.2.0: 確定モックに合わせた全5問一画面UI。データ送信は既存処理。 */
.hbs150-survey-dialog--all { max-width:620px; width:calc(100% - 24px); background:#fffbed; border-radius:9px; padding:22px 30px 30px; max-height:78vh; overflow-y:auto; }
.hbs150-survey-dialog--all .hbs150-survey-title { font-size:15px; padding-bottom:14px; border-bottom:1px solid #eee8d8; }
.hbs150-survey-section { border-bottom:1px solid #eee8d8; padding:13px 0 16px; }
.hbs150-survey-section-title { font-size:16px; font-weight:700; color:#555; margin:0 0 12px; }
.hbs150-survey-section-note { margin:0 0 10px 32px; font-size:12px; line-height:1.7; color:#666; }
.hbs150-survey-choices { display:flex; flex-wrap:wrap; gap:8px; padding-left:38px; }
.hbs150-survey-choice { display:inline-flex; align-items:center; justify-content:center; position:relative; min-height:37px; padding:7px 12px; border:1px solid #d3d3d3; border-radius:5px; background:white; font-size:14px; color:#555; cursor:pointer; }
.hbs150-survey-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.hbs150-survey-choice:has(input:checked) { background:#fbe7e7; border-color:#b84b53; color:#8e1721; }
.hbs150-survey-choice:focus-within { outline:2px solid #a11; outline-offset:2px; }
.hbs150-survey-section .hbs150-survey-select { margin-left:38px; max-width:300px; min-height:45px; }
.hbs150-survey-dialog--all > .hbs150-survey-btn--primary { width:100%; margin-top:24px; border-radius:4px; }
@media(max-width:639px) { .hbs150-survey-overlay { align-items:center; } .hbs150-survey-dialog--all { max-height:88vh; padding:18px 16px 24px; } .hbs150-survey-choices { padding-left:8px; gap:6px; } .hbs150-survey-section .hbs150-survey-select { margin-left:8px; max-width:calc(100% - 8px); } .hbs150-survey-section-note { margin-left:8px; } }

/* v1.2.1 (2026-10-08): v0.1.8承認済みモックの外観を復元。
 * UI限定。回答値、GA4/dataLayer、LocalStorage、Ajax処理には変更なし。 */
.hbs150-survey-dialog--all { background:#fffbea; border-radius:8px; padding:24px 30px 30px; color:#444; }
.hbs150-survey-intro-wrap { display:flex; align-items:flex-start; gap:14px; margin-bottom:18px; }
.hbs150-survey-hippy { width:81px; height:auto; flex:0 0 81px; object-fit:contain; }
.hbs150-survey-dialog--all .hbs150-survey-title { flex:1; font-size:16px; font-weight:400; line-height:1.8; color:#333; border:0; padding:0; margin:0; }
.hbs150-survey-section { border-color:#eee; }
.hbs150-survey-section-title { color:#555; border:0; font-size:18px; font-weight:600; }
.hbs150-survey-section-note { color:#666; font-size:13px; }
.hbs150-survey-choice:has(input:checked) { background:#ededed; border-color:#8a8a8a; color:#555; }
.hbs150-survey-choice:focus-within { outline:2px solid #26896D; outline-offset:2px; }
.hbs150-survey-dialog--all .hbs150-survey-select { border-color:#d7d7d7; box-shadow:none; }
.hbs150-survey-dialog--all > .hbs150-survey-btn--primary { background:#508A88; border-radius:5px; color:white; }
.hbs150-survey-dialog--all > .hbs150-survey-btn--primary:hover:not(:disabled) { background:#467a78; }
.hbs150-survey-dialog--all > .hbs150-survey-btn--primary:disabled { background:#d3d3d3; color:white; }
@media(max-width:639px) { .hbs150-survey-intro-wrap { gap:9px; } .hbs150-survey-hippy { width:72px; flex-basis:72px; } }
