/*
 * Chouchou Estimate Simulator — フロント用CSS
 * 白背景 × オレンジのアクセント、スマホ最優先
 *
 * ★ ブランドカラーを変えたい場合は下の :root の値だけ変えればOK
 */
:root {
	--cces-orange: #f08300;        /* メインのオレンジ（ロゴに合わせて調整可） */
	--cces-orange-dark: #d97400;   /* ホバー時の少し濃いオレンジ */
	--cces-orange-pale: #fff4e5;   /* 淡いオレンジ（背景アクセント） */
	--cces-ink: #3a3330;           /* 文字色（真っ黒より少し柔らかい茶系） */
	--cces-ink-soft: #8a807a;      /* 補足文字 */
	--cces-line: #f0e8e0;          /* 枠線 */
	--cces-radius: 14px;           /* 角丸の大きさ */
}

/* ===== 全体の箱 ===== */
.cces {
	max-width: 560px;
	margin: 0 auto;
	padding: 20px 16px 16px;
	background: #fff;
	border: 1px solid var(--cces-line);
	border-radius: var(--cces-radius);
	color: var(--cces-ink);
	line-height: 1.6;
	box-sizing: border-box;
	/* SWELLなどテーマのスタイルに影響されにくいようリセット */
	font-feature-settings: "palt";
}
.cces *, .cces *::before, .cces *::after { box-sizing: border-box; }

/* ===== 進捗 ===== */
.cces-counter {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cces-orange);
	letter-spacing: 0.05em;
}
.cces-bar {
	height: 8px;
	background: var(--cces-orange-pale);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 20px;
}
.cces-bar-fill {
	height: 100%;
	background: var(--cces-orange);
	border-radius: 999px;
	transition: width 0.35s ease;
}

/* ===== 質問ステップ ===== */
.cces-step { display: none; }
.cces-step.is-active { display: block; animation: cces-in 0.3s ease; }
@keyframes cces-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cces-step.is-active { animation: none; }
	.cces-bar-fill { transition: none; }
}

.cces-q {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
}

/* ===== 選択肢ボタン ===== */
.cces-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.cces-choice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	min-height: 60px;              /* スマホで押しやすいサイズ */
	padding: 12px 14px;
	background: #fff;
	border: 2px solid var(--cces-line);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--cces-ink);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}
.cces-choice:hover { border-color: var(--cces-orange); }
.cces-choice:focus-visible { outline: 3px solid var(--cces-orange-pale); border-color: var(--cces-orange); }
.cces-choice.is-selected {
	border-color: var(--cces-orange);
	background: var(--cces-orange-pale);
}
.cces-choice-price {
	font-size: 12px;
	font-weight: 500;
	color: var(--cces-ink-soft);
}
.cces-choice.is-selected .cces-choice-price { color: var(--cces-orange-dark); }
.cces-hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--cces-ink-soft);
}

/* 選択肢が長い1問目などは縦1列にしたい場合、下の2行のコメントを外す
.cces-choices { grid-template-columns: 1fr; }
*/

/* ===== 汎用ボタン ===== */
.cces-btn {
	display: block;
	width: 100%;
	min-height: 54px;
	margin-top: 16px;
	padding: 14px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}
.cces-btn-primary {
	background: var(--cces-orange);
	border: none;
	color: #fff !important;       /* テーマのリンク色に負けないように */
	box-shadow: 0 4px 14px rgba(240, 131, 0, 0.3);
}
.cces-btn-primary:hover { background: var(--cces-orange-dark); }
.cces-btn-ghost {
	background: #fff;
	border: 2px solid var(--cces-line);
	color: var(--cces-ink-soft);
}
.cces-btn-ghost:hover { border-color: var(--cces-ink-soft); }

/* ===== フッター（戻る＋現在の概算） ===== */
.cces-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px dashed var(--cces-line);
}
.cces-back {
	background: none;
	border: none;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cces-ink-soft);
	cursor: pointer;
}
.cces-back:disabled { opacity: 0.35; cursor: default; }
.cces-running {
	margin: 0;
	font-size: 13px;
	color: var(--cces-ink-soft);
}
.cces-running span {
	font-weight: 700;
	color: var(--cces-orange-dark);
}

/* ===== 結果画面 ===== */
.cces-result { text-align: center; }
.cces-result-eyebrow {
	margin: 8px 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cces-orange);
	letter-spacing: 0.1em;
}
.cces-result-price {
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}
.cces-summary {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #fbf8f4;
	border-radius: 12px;
	font-size: 13px;
	text-align: left;
	color: var(--cces-ink);
}
.cces-summary p { margin: 2px 0; }
.cces-summary strong { color: var(--cces-orange-dark); font-weight: 700; }

/* 僚太から一言（吹き出し風） */
.cces-comment {
	position: relative;
	margin: 0 0 16px;
	padding: 16px;
	background: var(--cces-orange-pale);
	border-radius: 12px;
	text-align: left;
}
.cces-comment-title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--cces-orange-dark);
	letter-spacing: 0.08em;
}
.cces-comment-body { margin: 0; font-size: 14px; }

.cces-notice {
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--cces-ink-soft);
	text-align: left;
}

/* ===== バナー [chouchou_estimate_banner] ===== */
.cces-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 560px;
	margin: 0 auto;
	padding: 16px 18px;
	background: #fff;
	border: 2px solid var(--cces-orange);
	border-radius: var(--cces-radius);
	text-decoration: none !important;
	color: var(--cces-ink) !important;
	transition: background 0.15s ease, transform 0.15s ease;
}
.cces-banner:hover {
	background: var(--cces-orange-pale);
	transform: translateY(-2px);
}
.cces-banner-badge {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--cces-orange);
	border-radius: 50%;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
.cces-banner-text { display: flex; flex-direction: column; }
.cces-banner-title { font-size: 17px; font-weight: 700; }
.cces-banner-sub { font-size: 12px; color: var(--cces-ink-soft); }
.cces-banner-arrow {
	margin-left: auto;
	font-size: 20px;
	font-weight: 700;
	color: var(--cces-orange);
}

/* ===== 480px以上（タブレット・PC）で少しゆったり ===== */
@media (min-width: 480px) {
	.cces { padding: 28px 28px 20px; }
	.cces-q { font-size: 22px; }
	.cces-result-price { font-size: 30px; }
}
