/* Slot Contact Form - Cocoonのスタイルを尊重した最小限の装飾 */

.scf-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 16px 16px; /* 左右・下の余白(本文の余白が無いテーマ設定でも端に付かないように) */
}

.scf-field {
	margin-bottom: 1.2em;
}

.scf-field label {
	display: block;
	font-weight: bold;
	margin-bottom: 0.4em;
}

.scf-machine-filter {
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 16px;
	margin-bottom: 0;
}

/* 機種サジェスト(コンボボックス)
 * リストは重ねずに通常の流れに置き、下の要素を押し下げる(テーマのフッター等と被らない) */
.scf-combo {
	position: relative;
}

.scf-suggest {
	display: block;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	max-height: 190px; /* 約5件分。1件 = padding 0.55em×2 + 行高 */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.scf-suggest li {
	margin: 0;
	padding: 0.55em 0.8em;
	font-size: 15px;
	line-height: 1.4;
}

.scf-suggest-item {
	cursor: pointer;
}

.scf-suggest-item:hover,
.scf-suggest-item.scf-active {
	background: #eef3fa;
}

.scf-suggest-fixed {
	border-top: 1px solid #eee;
	color: #555;
}

.scf-suggest-none {
	color: #888;
	font-size: 13px;
	cursor: default;
}

.scf-field select,
.scf-field input[type="email"],
.scf-field input[type="text"],
.scf-field textarea {
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 16px; /* iOSのズーム防止 */
}

.scf-guide {
	background: #f5f7fa;
	border-left: 4px solid #7aa5d2;
	padding: 1em 1.2em;
	margin: 1.2em 0;
	border-radius: 0 4px 4px 0;
}

.scf-continue-btn,
#scf-submit,
.scf-login-btn {
	display: inline-block;
	padding: 0.7em 1.6em;
	border: none;
	border-radius: 4px;
	background: #333;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s;
}

.scf-continue-btn:hover,
#scf-submit:hover,
.scf-login-btn:hover {
	opacity: 0.8;
	color: #fff;
}

#scf-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 送信処理中の表示(form.js が送信ボタンの下に作る) */
.scf-sending {
	align-items: center;
	gap: 0.7em;
	margin-top: 1em;
	padding: 0.9em 1.1em;
	border: 1px solid #b9c7d6;
	border-radius: 4px;
	background: #eef3f8;
}

.scf-spinner {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	border: 3px solid #b9c7d6;
	border-top-color: #333;
	border-radius: 50%;
	animation: scf-spin 0.8s linear infinite;
}

@keyframes scf-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.scf-spinner { animation-duration: 2.4s; }
}

.scf-result {
	white-space: pre-line; /* メッセージ中の改行を反映 */
	margin-top: 1em;
	padding: 0.9em 1.1em;
	border-radius: 4px;
}

.scf-result.scf-success {
	background: #eaf6ec;
	border: 1px solid #7cbf8a;
}

.scf-result.scf-error {
	background: #fdeeee;
	border: 1px solid #d98080;
}

/* (v1.13.11〜) キャリアメール宛の返信不達の注意(メール欄の直下に付ける) */
.scf-email-warn {
	margin: -0.4em 0 0.6em;
	padding: 8px 10px;
	background: #fff8e1;
	border: 1px solid #f0d58a;
	border-left: 4px solid #e0a800;
	border-radius: 4px;
	color: #6b4e00;
	font-size: 0.9em;
	line-height: 1.6;
}

/* キャリア注意の下の「設定方法の一例」折りたたみ(黄色い注意の外の別枠) */
.scf-email-guide-wrap {
	margin: 0 0 1em;
}

/* 送信完了メッセージの下に複製した設定方法(下の余白は .scf-wrap の padding で取る) */
.scf-email-guide-wrap.scf-result-guide {
	margin-top: 0.6em;
	margin-bottom: 0;
}

.scf-email-guide {
	padding: 8px 10px;
	background: #fafafa;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.9em;
	line-height: 1.6;
}

.scf-email-guide summary {
	cursor: pointer;
}

/* テーマ(本文中の ol / li の字下げ)に負けないよう !important で左右の余白を消す */
.scf-email-guide .scf-email-guide-steps {
	list-style: none !important;
	margin: 8px 0 0 !important;
	padding: 0 !important;
}

.scf-email-guide .scf-email-guide-step {
	margin: 0 0 16px !important;
	padding: 0 !important;
}

/* 2つ目以降の手順の上に区切り線 */
.scf-email-guide .scf-email-guide-step + .scf-email-guide-step {
	border-top: 1px solid #ddd;
	padding-top: 16px !important;
}

/* 「手順N」のラベル */
.scf-email-guide-cap {
	display: inline-block;
	padding: 2px 10px;
	background: #1f4e79;
	color: #fff;
	border-radius: 4px;
	font-size: 1.1em;
	font-weight: bold;
	line-height: 1.5;
}

.scf-email-guide-text {
	margin: 4px 0 6px;
	overflow-wrap: anywhere;
}

.scf-email-guide img {
	display: block;
	width: 100%;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.scf-login-required {
	text-align: center;
	padding: 2em 1em;
	background: #f5f7fa;
	border-radius: 6px;
}

/* ボット対策の入力欄(ハニーポット)。人間には見せない。display:none だと無視するボットがいるため画面外に置く */
.scf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
