/* FC 成長記録アクスタ サンプル受付 */
.fcgs {
	/* 設置先ページのオレンジ（--fc-orange）があればそれに合わせ、無ければ SWELL のメインカラー */
	--fcgs-main: var(--fc-orange, var(--color_main, #e8507a));
	--fcgs-text: var(--color_text, #333);
	--fcgs-line: #e3e3e3;
	--fcgs-bg: #fafafa;
	--fcgs-err: #c62828;
	max-width: 1040px;
	margin: 3em auto;
	padding: 0 16px;
	color: var(--fcgs-text);
	scroll-margin-top: 80px;
}
.fcgs *, .fcgs *::before, .fcgs *::after { box-sizing: border-box; }

.fcgs-head { text-align: center; margin-bottom: 1.6em; }
.fcgs-eyebrow { margin: 0; font-size: .8em; font-weight: 700; letter-spacing: .2em; color: var(--fcgs-main); }
.fcgs-title { margin: .3em 0 .6em; font-size: 1.5em; line-height: 1.4; }
.fcgs .fcgs-title::before, .fcgs .fcgs-title::after { content: none; } /* SWELL の見出し装飾を打ち消す */
.fcgs .fcgs-hero { margin: 0 auto 1.2em; max-width: 730px; }
.fcgs .fcgs-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fcgs-lead { margin: 0 auto; max-width: 40em; font-size: .95em; line-height: 1.8; }

.fcgs-slots {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 768px) {
	.fcgs-slots { grid-template-columns: repeat(3, 1fr); }
}
.fcgs-slots > li { margin: 0; padding: 0; }
.fcgs-slots > li::before { content: none; }

.fcgs-slot {
	position: relative;
	background: #fff;
	border: 1px solid var(--fcgs-line);
	border-radius: 12px;
	padding: 14px !important;
}
.fcgs-slot.is-error { border-color: var(--fcgs-err); }
/* スマホ：写真と入力欄を横並びにして縦長になりすぎないようにする */
@media (max-width: 767px) {
	.fcgs-slot {
		display: grid;
		grid-template-columns: 120px 1fr;
		column-gap: 12px;
		align-items: start;
	}
	.fcgs-slot-no, .fcgs-progress, .fcgs-slot-err { grid-column: 1 / -1; }
	.fcgs-slot .fcgs-fields { margin-top: 0; }
	.fcgs-drop-empty { font-size: .8em; }
	.fcgs-drop-icon { width: 36px; height: 36px; font-size: 18px; }
}
.fcgs-slot-no { margin: 0 0 8px; font-weight: 700; font-size: .9em; }

.fcgs-drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	border: 2px dashed var(--fcgs-line);
	border-radius: 10px;
	background: var(--fcgs-bg);
	cursor: pointer;
	overflow: hidden;
	transition: border-color .2s, background .2s;
}
.fcgs-drop:hover, .fcgs-drop.is-drag { border-color: var(--fcgs-main); background: #fff; }
.fcgs-slot.has-file .fcgs-drop { border-style: solid; }
.fcgs-file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.fcgs-file:disabled { cursor: default; }
.fcgs-drop-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: .9em;
	text-align: center;
	pointer-events: none;
}
.fcgs-drop-empty small { color: #888; font-size: .8em; }
.fcgs-drop-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--fcgs-main);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	margin-bottom: 4px;
}
.fcgs-preview {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	pointer-events: none;
}
.fcgs-preview[hidden], .fcgs-drop-empty[hidden] { display: none; }

.fcgs-fields { margin-top: 12px; display: grid; gap: 10px; }
.fcgs-field { display: grid; gap: 4px; margin: 0; }
.fcgs-label { font-size: .85em; font-weight: 700; }
.fcgs-age, .fcgs-height {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	font-size: 16px; /* iOS のズーム防止 */
}
.fcgs-unit { display: flex; align-items: center; gap: 6px; }
.fcgs-unit span { flex: none; }
.fcgs-scale { margin: 0; min-height: 1.4em; font-size: .85em; color: var(--fcgs-main); font-weight: 700; }

.fcgs-progress { height: 6px; margin-top: 10px; border-radius: 3px; background: #eee; overflow: hidden; }
.fcgs-progress span { display: block; width: 0; height: 100%; background: var(--fcgs-main); transition: width .2s; }
.fcgs-progress[hidden] { display: none; }

.fcgs-slot-err, .fcgs-err { margin: 8px 0 0; color: var(--fcgs-err); font-size: .85em; line-height: 1.6; }
.fcgs-slot-err:empty, .fcgs-err:empty { display: none; }

.fcgs-notes { margin: 1.4em 0 0; padding-left: 1.2em; font-size: .85em; line-height: 1.8; color: #555; }

.fcgs-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 1.4em 0 0;
	padding: 14px;
	border-radius: 10px;
	background: var(--fcgs-bg);
	font-size: .9em;
	line-height: 1.7;
	cursor: pointer;
}
.fcgs-consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; }

.fcgs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.fcgs-actions { margin-top: 1.4em; text-align: center; }
.fcgs-actions[hidden] { display: none; }
/* 設置先のページが「button{color:inherit}」等を指定していても文字色が負けないよう、.fcgs を付けて優先度を上げる */
.fcgs .fcgs-submit, .fcgs .fcgs-reset {
	display: inline-block;
	min-width: 280px;
	max-width: 100%;
	padding: 16px 28px;
	border: none;
	border-radius: 999px;
	background: var(--fcgs-main);
	color: #fff;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .2s;
}
.fcgs-submit:hover { opacity: .85; }
.fcgs-submit:disabled { opacity: .6; cursor: wait; }

.fcgs-done {
	margin-top: 1.6em;
	padding: 20px;
	border: 2px solid var(--fcgs-main);
	border-radius: 12px;
	background: #fff;
	text-align: center;
	line-height: 1.8;
}
.fcgs-done[hidden] { display: none; }
.fcgs-done p { margin: 0 0 .5em; }
.fcgs-done-title { font-weight: 700; font-size: 1.15em; color: var(--fcgs-main); }
.fcgs-done-code strong { font-size: 1.3em; letter-spacing: .05em; }
.fcgs-done-next { font-size: .9em; }
.fcgs .fcgs-reset {
	min-width: 0;
	margin-top: .5em;
	padding: 10px 20px;
	background: #fff;
	color: var(--fcgs-text);
	border: 1px solid #ccc;
	font-weight: 400;
	font-size: .85em;
}

.fcgs.is-done .fcgs-slot { opacity: .75; }
.fcgs.is-busy .fcgs-drop { cursor: wait; }

/* Web deco ページの確認リストに入る行 */
.fcgs-summary-item { font-weight: 700; }

/* ---------- セット（お子様1人分）: 1.2.0 ---------- */
.fcgs-sets { display: grid; gap: 20px; }
.fcgs-set { border: 1px solid var(--fcgs-line); border-radius: 16px; background: #fff; padding: 18px 16px 16px; }
.fcgs-set.is-done { border-color: var(--fcgs-main); }
.fcgs-set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fcgs-set-no { margin: 0; font-weight: 700; font-size: 1.05em; color: var(--fcgs-main); }
.fcgs .fcgs-set-remove { border: 1px solid #ccc; border-radius: 999px; background: #fff; color: var(--fcgs-text); padding: 6px 14px; font-size: .8em; cursor: pointer; }
.fcgs .fcgs-set-remove[hidden] { display: none; }
.fcgs-name-field { display: block; max-width: 420px; margin: 0 0 4px; }
.fcgs-name-field .fcgs-label small { font-weight: 400; margin-left: .3em; }
.fcgs .fcgs-name { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; background: #fff; font-size: 16px; }
.fcgs-set.is-name-error .fcgs-name { border-color: var(--fcgs-err); }
.fcgs-name-err, .fcgs-set-err { margin: 4px 0 0; color: var(--fcgs-err); font-size: .85em; line-height: 1.6; min-height: 0; }
.fcgs-set .fcgs-slots { margin-top: 12px; }
.fcgs-set-done { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--fcgs-bg); font-size: .92em; line-height: 1.7; }
.fcgs-set-done[hidden] { display: none; }
.fcgs-set-done strong { font-size: 1.1em; letter-spacing: .04em; }
.fcgs-set-done-mark { color: var(--fcgs-main); font-weight: 700; margin-right: .3em; }
.fcgs-set-done-summary { display: block; font-size: .92em; }
.fcgs-set.is-done .fcgs-slot { opacity: .75; }
.fcgs-add-wrap { margin: 18px 0 0; text-align: center; }
.fcgs .fcgs-add { border: 2px dashed var(--fcgs-main); border-radius: 12px; background: #fff; color: var(--fcgs-main); padding: 14px 22px; font-weight: 700; font-size: 1em; cursor: pointer; min-width: 280px; max-width: 100%; }
.fcgs .fcgs-add[hidden] { display: none; }
.fcgs .fcgs-add:disabled { opacity: .5; cursor: wait; }
.fcgs-add-note { margin: 6px 0 0; font-size: .82em; color: #777; }
.fcgs-done-count { margin-left: .3em; font-size: .9em; }
