/* Sales Guard for CF7 : ダイアログと入力欄の案内（スマホでも押しやすい大きさ） */
.sgcf7-hp, .sgcf7-note { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
html.sgcf7-lock, html.sgcf7-lock body { overflow: hidden; }

/* 入力欄の案内 */
.sgcf7-badge {
	display: inline-block; margin: 0 6px 4px 0; padding: 1px 8px; border-radius: 4px;
	font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: middle;
}
.sgcf7-badge.sgcf7-is-req { background: #c0392b; color: #fff; }
.sgcf7-badge.sgcf7-is-opt { background: #e6e6e6; color: #333; }
.sgcf7-guide { margin: 4px 0 0; font-size: 14px; color: #444; line-height: 1.5; }
.sgcf7-count { margin-left: 6px; white-space: nowrap; color: #666; }
.sgcf7-count.sgcf7-over { color: #b00020; font-weight: 700; }
.sgcf7-contact-note { margin: 4px 0 0; font-size: 14px; color: #444; }

/* ダイアログ */
.sgcf7-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0, 0, 0, .55);
	display: flex; align-items: center; justify-content: center;
	padding: 12px; box-sizing: border-box;
}
.sgcf7-overlay[hidden] { display: none; }

.sgcf7-dialog {
	background: #fff; color: #222; width: 100%; max-width: 520px;
	max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	border-radius: 10px; padding: 18px 16px 20px; box-sizing: border-box;
	font-size: 16px; line-height: 1.7; box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.sgcf7-dialog:focus { outline: none; }
.sgcf7-title { margin: 0 0 8px; font-size: 1.2em; line-height: 1.4; }

.sgcf7-notice {
	margin: 12px 0; padding: 10px 12px; border-left: 5px solid #c0392b;
	background: #fdecea; color: #5c1a12; font-size: 15px;
}
.sgcf7-notice p { margin: 0 0 8px; }
.sgcf7-notice p:last-child { margin-bottom: 0; font-weight: 700; }
.sgcf7-fs { border: 1px solid #ccc; border-radius: 8px; margin: 12px 0; padding: 8px 10px 10px; min-width: 0; }
.sgcf7-fs legend { font-weight: 700; padding: 0 6px; }
.sgcf7-opt {
	display: flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 6px 8px; margin: 4px 0;
	border: 1px solid #ddd; border-radius: 8px; cursor: pointer;
}
.sgcf7-opt:hover { background: #f4f7fb; }
.sgcf7-opt input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; }
.sgcf7-opt span { flex: 1 1 auto; }

.sgcf7-err { color: #b00020; font-weight: 700; margin: 8px 0 0; min-height: 1.4em; }
.sgcf7-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sgcf7-confirm, .sgcf7-cancel {
	min-height: 52px; font-size: 17px; border-radius: 8px; cursor: pointer; padding: 8px 14px;
}
.sgcf7-confirm { background: #1a5fb4; color: #fff; border: 0; font-weight: 700; }
.sgcf7-confirm:disabled { opacity: .6; cursor: wait; }
.sgcf7-cancel { background: #fff; color: #222; border: 2px solid #555; }

/* 方針を最後まで読んでから同意 */
.sgcf7-policy-locked input[type="checkbox"] { opacity: .5; cursor: pointer; }
.sgcf7-policy-locked label { cursor: pointer; }
.sgcf7-policy-hint { display: inline-block; margin: 2px 0 0 8px; font-size: 13px; line-height: 1.5; color: #555; vertical-align: middle; }
.sgcf7-policy-hint[hidden] { display: none; }
.sgcf7-dialog.sgcf7-policy {
	display: flex; flex-direction: column; overflow: hidden; max-width: 640px;
	height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: 760px;
}
.sgcf7-policy-body {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 15px; line-height: 1.8; background: #fafafa;
}
.sgcf7-policy-body:focus { outline: 3px solid #1a5fb4; outline-offset: 1px; }
.sgcf7-policy-body p { margin: 0 0 10px; }
.sgcf7-policy-body * { max-width: 100%; box-sizing: border-box; }
/* 写した中身についているテーマの「高さ・スクロール」の指定を打ち消す（本文の枠だけがスクロールするように）。画像・動画などはそのまま */
.sgcf7-policy-body *:not(img):not(svg):not(video):not(iframe):not(canvas):not(picture):not(object):not(embed) {
	height: auto !important; max-height: none !important; min-height: 0 !important;
	overflow: visible !important;
}
.sgcf7-policy-body .sgcf7-dup-title { display: none !important; }
.sgcf7-policy-note { margin: 8px 0 0; font-size: 14px; color: #5c1a12; font-weight: 700; text-align: center; }
.sgcf7-policy-note[hidden] { display: none; }
.sgcf7-policy .sgcf7-foot { flex: 0 0 auto; }
.sgcf7-policy-agree:disabled { opacity: .45; cursor: not-allowed; }

@media (min-width: 600px) {
	.sgcf7-foot { flex-direction: row-reverse; }
	.sgcf7-foot button { flex: 1 1 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.sgcf7-dialog { animation: sgcf7-in .15s ease-out; }
	@keyframes sgcf7-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
