:root {
	--sf-blue: #2f6df6;
	--sf-blue-dark: #1747b8;
	--sf-sky: #eaf3ff;
	--sf-line: #c8ccd3;
	--sf-text: #2c3038;
	--sf-muted: #6f7580;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--sf-text);
	background: var(--sf-sky);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-weight: 500;
	letter-spacing: 0;
}

.sf-page {
	position: relative;
	background: var(--sf-sky);
}

.sf-inner {
	width: 100%;
	max-width: 1352px;
	max-height: 440px;
	margin-top: 50px;
	margin-inline: auto;
	padding: 0 16px 16px;
	overflow-y: auto;
}

.sf-decor {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
}

.sf-decor-balloon {
	position: absolute;
	display: block;
	width: auto;
	opacity: 0.75;
	filter: blur(2px);
}

.sf-decor-balloon-1 {
	left: 15%;
	top: 28%;
	height: 220px;
}

.sf-decor-balloon-2 {
	left: 13%;
	top: 50%;
	height: 170px;
}

.sf-decor-balloon-3 {
	left: 22%;
	top: 45%;
	height: 150px;
}

.sf-decor-balloon-4 {
	right: 18%;
	top: 36%;
	height: 150px;
}

.sf-decor-balloon-5 {
	right: 8%;
	top: 50%;
	height: 240px;
}

.sf-main {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
	padding-left: 16px;
	padding-right: 16px;
	padding-bottom: 20px;
	background-image: url("/img/step-form/bg.png");
	background-position: center bottom 90px;
	background-repeat: no-repeat;
	background-size: min(1460px, 80%);
}

.sf-header {
	display: flex;
	justify-content: center;
	gap: 34px;
  margin-inline:auto;
	padding-bottom: 24px;
	text-align: center;
}

.sf-free-badge {
	width: 114px;
	height: 114px;
}

.sf-title {
	margin-top: 10px;
	margin-bottom: 18px;
	color: var(--sf-blue-dark);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
}

.sf-subtitle {
	margin-bottom: 0;
	font-size: 15px;
}

.sf-lead {
	color: var(--sf-blue);
	font-size: 20px;
	letter-spacing: 1.36px;
}

.sf-bird {
	width: 150px;
	height: auto;
}

.sf-progress {
	--sf-progress-rate: 0%;

	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 100%;
	max-width: 384px;
	margin-top: 0;
  margin-inline:auto;
	padding: 0;
	list-style: none;
}

.sf-progress::before,
.sf-progress::after {
	position: absolute;
	top: 42px;
	left: 0;
	height: 2px;
	content: "";
}

.sf-progress::before {
	width: 100%;
	background: var(--sf-line);
}

.sf-progress::after {
	width: var(--sf-progress-rate);
	background: var(--sf-blue);
	transition: width 0.24s ease;
}

.sf-progress li {
	position: relative;
}

.sf-progress li::after {
	position: absolute;
	top: 40px;
	right: -3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sf-line);
	transition: background-color 0.24s ease;
	content: "";
}

.sf-progress-label {
	position: absolute;
	top: 14px;
	right: 0;
	display: none;
	width: max-content;
	color: #b1b5bc;
	font-size: 16px;
	line-height: 1;
	transform: translateX(50%);
}

.sf-progress li.is-current::after,
.sf-progress li.is-done::after {
	background: #2f6df6;
	background: var(--sf-blue);
}

.sf-progress li.is-current .sf-progress-label {
	display: block;
	right: auto;
	left: var(--sf-current-label-left);
	transform: translateX(-50%);
}

.sf-progress li:nth-child(1).is-current .sf-progress-label {
	--sf-current-label-left: 200%;
}

.sf-progress li:nth-child(2).is-current .sf-progress-label {
	--sf-current-label-left: 100%;
}

.sf-progress li:nth-child(3).is-current .sf-progress-label {
	--sf-current-label-left: 0%;
}

.sf-progress li:nth-child(4).is-current .sf-progress-label {
	--sf-current-label-left: -100%;
}

.sf-progress li.is-current .sf-progress-label {
	color: #2f6df6;
	color: var(--sf-blue);
}

.sf-form {
	max-width: 776px;
	margin-inline: auto;
}

.sf-form,
.sf-complete {
	width: 100%;
}

.sf-question,
.sf-complete,
.sf-schedule-guidance {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin-bottom: 40px;
	animation: sf-in 0.24s ease-out both;
}

.sf-question[hidden],
.sf-complete[hidden],
.sf-schedule-guidance[hidden] {
	display: none !important;
}

.sf-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: contain;
}

.sf-question-message {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.sf-question-message-center {
	justify-content: center;
}

.sf-prompt-stack {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-left: 8px;
}

.sf-question-answer {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 100%;
	max-width: 580px;
	margin-left: auto;
}

.sf-prompt {
	display: flex;
	align-items: center;
	max-width: 100%;
	padding: 10px 16px;
	border-radius: 16px 16px 16px 0;
	background: #fff;
	font-size: 16px;
	font-style: normal;
	line-height: 1.5;
}

.sf-prompt-wide {
	width: 100%;
}

.sf-must {
	flex-shrink: 0;
	margin-right: 10px;
	padding: 2px 8px;
	border: 1px solid currentcolor;
	border-radius: 8px;
	color: #ff6b2b;
	font-size: 12px;
	font-style: normal;
}

.sf-optional {
	flex-shrink: 0;
	margin-right: 10px;
	padding: 2px 8px;
	border: 1px solid currentcolor;
	border-radius: 8px;
	color: #b1b5bc;
	font-size: 12px;
	font-style: normal;
}

.sf-prompt strong,
.sf-complete strong {
	color: var(--sf-blue);
}

.sf-options {
	display: grid;
	gap: 8px;
	width: 100%;
	max-width: 580px;
}

.sf-options label {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	align-items: center;
	border: 1px solid var(--sf-blue);
	border-radius: 16px 16px 0 16px;
	background: #fff;
	color: var(--sf-blue);
	font-weight: 700;
	cursor: pointer;
}

.sf-options input {
	justify-self: center;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--sf-blue);
}

.sf-options label:has(input:checked) {
	background: var(--sf-blue);
	color: #fff;
}

.sf-options span {
	overflow-wrap: anywhere;
	padding: 8px 16px 8px 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.sf-options-compact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-options-revenue {
	grid-auto-flow: column;
	grid-template-rows: repeat(5, auto);
}

.sf-options-compact label {
	grid-template-columns: 38px minmax(0, 1fr);
}

.sf-options-compact span {
	font-size: 16px;
}

.sf-input {
	/* 一部共通スタイルの上書き */
	width: 100%;
	min-height: 48px;
	padding: 8px 16px !important;
	border: 1px solid var(--sf-line) !important;
	border-radius: 16px 16px 0 16px !important;
	background: #fff;
	color: var(--sf-text);
	font-size: 15px;
}

select.sf-input {
	appearance: none;
	background-image: url("/img/step-form/arrow-down.svg");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 11px 8px;
	padding-right: 40px !important;
}

.sf-input::placeholder {
	color: #D7D2D2;
}

.sf-textarea {
	display: block;
	height: 168px;
	padding-top: 18px;
	padding-bottom: 18px;
	resize: vertical;
}

.sf-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 580px;
}

.sf-field-grid .sf-input {
	width: 100%;
	margin-left: 0;
}

.sf-field-wide {
	grid-column: 1 / -1;
}

.sf-error {
	color: #d34821;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.sf-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	width: 100%;
	max-width: 580px;
	margin: 0 0 0 auto;
}

.sf-complete-actions {
	display: flex;
	justify-content: center;
	width: 100%;
}

.sf-complete-actions[hidden] {
	display: none !important;
}

.sf-button {
	min-width: 96px;
	height: 48px;
	border: 0;
	border-radius: 12px 12px 0 12px;
	background: var(--sf-blue);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.sf-button:disabled {
	background: #c9c9c9;
	cursor: default;
}

.sf-complete {
	padding-top: 40px;
	margin-bottom: 20px;
}

.sf-page-thanks .sf-main {
	background-position: center bottom;
}

.sf-header-thanks {
	align-items: center;
	padding-left: 13%;
	padding-bottom: 0;
}

.sf-complete-thanks {
	width: fit-content;
	max-width: 800px;
	margin-inline: auto;
	padding-top: 8px;
}

.sf-thanks-actions {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.sf-thanks-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	padding-inline: 24px;
	text-decoration: none;
	border-radius: 12px;
}

.sf-thanks-button:hover {
	text-decoration: none;
	opacity: 1;
}

.sf-schedule-guidance {
	padding-top: 16px;
}

.sf-complete-pic {
	width: 100%;
	height: auto;
	display: block;
}

.sf-complete-submit {
	max-width: 400px;
	width: 100%;
	margin-inline: auto;
	border-radius: 12px;
}

.sf-privacy {
	position: relative;
	margin-bottom: 5px;
	z-index: 1;
	color: #464343;
	font-size: 14px;
	text-align: center;
}

.sf-privacy a {
	color: #464343;
	text-decoration: none;
}

.sf-privacy a img {
	margin-top: 3px;
	margin-left: 2px;
	margin-right: 2px;
}

#footer {
	font-weight: 400;
}

.sf-note {
	color: #464343;
	font-size: 14px;
	text-align: center;
	line-height: 1.71;
}

@media (max-width: 900px) {

	.sf-main {
		background-image: url("/img/step-form/bg_sp.png");
		background-position: center bottom;
		background-size: contain;
	}

	.sf-inner {
		max-height: 350px;
		margin-top: 20px;
		padding-left: 0px;
		padding-right: 0px;
	}

	.sf-header {
		position: relative;
		width: min(100%, 390px);
		padding: 17px 0 12px;
	}

	.sf-free-badge {
		position: absolute;
		top: 0px;
		left: 5%;
		width: 64px;
		height: 64px;
	}

	.sf-free-badge img {
		display: block;
		width: 100%;
		height: auto;
	}

	.sf-title {
		margin-top: 0px;
		margin-bottom: 28px;
		padding-left: 70px;
		font-size: 26px;
		line-height: 1.25;
		white-space: nowrap;
	}

	.sf-subtitle {
		margin-bottom: 4px;
		font-size: 12px;
		line-height: 1.5;
	}

	.sf-lead {
		display: block;
		font-size: 18px;
		line-height: 1.45;
		letter-spacing: 0.88px;
	}

	.sf-bird {
		display: none;
	}

	.sf-progress {
		width: min(100%, 220px);
		height: 48px;
		margin-bottom: 0;
	}

	.sf-progress::before,
	.sf-progress::after {
		top: 34px;
	}

	.sf-progress li::after {
		top: 32px;
		right: -3px;
	}

	.sf-progress-label {
		top: 8px;
		font-size: 16px;
		font-weight: 700;
		line-height: 1;
	}

	.sf-question,
	.sf-complete,
	.sf-schedule-guidance {
		gap: 16px;
		margin-bottom: 40px;
	}

	.sf-avatar {
		width: 48px;
		height: 48px;
	}

	.sf-question-message {
		align-items: flex-start;
		gap: 16px;
	}

	.sf-question-message-center {
		align-items: flex-end;
	}

	.sf-must,.sf-optional {
    padding: 2px 6px;
		font-size: 10px;
	}

	.sf-prompt-stack {
		padding-left: 0;
	}

	.sf-prompt {
		align-items: flex-start;
		font-size: 14px;
	}

	.sf-options,
	.sf-input,
	.sf-field-grid {
		max-width: none;
		width: 100%;
	}

	.sf-input {
		font-size:14px;
	}

	.sf-options span {
    padding: 9px 16px 9px 4px;
		font-size: 14px;
	}

	.sf-options label {
		grid-template-columns: 30px minmax(0, 1fr);
    padding-left: 8px;
	}

	.sf-options-compact {
		grid-template-columns: 1fr;
	}

	.sf-options-revenue {
		grid-auto-flow: row;
		grid-template-rows: none;
	}

	.sf-field-grid {
		grid-template-columns: 1fr;
	}

	.sf-complete-actions {
		width: 100%;
		margin-left: 0;
	}

	.sf-privacy {
		font-size: 10px;
		text-align: left;
		line-height: 1.48;
	}

	.sf-privacy a img {
		width: 10px;
		height: 10px;
		margin-top: 2px;
	}

	.sf-note {
		font-size: 10px;
		text-align: left;
		line-height: 1.48;
	}

	.sf-immedio-placeholder {
		padding: 16px;
	}

	.sf-immedio-title {
		font-size: 18px;
	}
}

@media (max-width: 375px) {
	.sf-free-badge {
		left: 0%;
		width: 58px;
		height: 58px;
	}

	.sf-title {
		padding-left: 54px;
		font-size: 23px;
	}

	.sf-lead {
		font-size: 15px;
		letter-spacing: 0.64px;
	}
}

@keyframes sf-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
