/* デン・モーターズ お問い合わせフォーム */
.den-cf {
	--den-accent: #111;
	--den-error: #d93025;
	--den-ok: #188038;
	--den-border: #c9ccd1;
	--den-bg: #fff;
	max-width: 760px;
	margin: 2.5em auto 3.5em;
	padding: 0 16px;
	box-sizing: border-box;
	color: #222;
	line-height: 1.7;
}
.den-cf *, .den-cf *::before, .den-cf *::after { box-sizing: border-box; }
.den-cf[hidden], .den-cf [hidden] { display: none !important; }

/* サイト側の「段落は中央揃え」を打ち消し、フォーム内は左揃えに */
.den-cf,
.den-cf .den-cf__form p,
.den-cf .den-cf__label,
.den-cf .den-cf__hint,
.den-cf .den-cf__error,
.den-cf .den-cf__suggest,
.den-cf .den-cf__summary,
.den-cf .den-cf__admin-notice,
.den-cf .den-cf__noscript { text-align: left; }
/* 送信ボタン周り・完了メッセージは中央のまま */
.den-cf .den-cf__actions,
.den-cf .den-cf__actions p,
.den-cf .den-cf__done,
.den-cf .den-cf__done p { text-align: center; }

.den-cf__admin-notice {
	margin: 0 0 1em; padding: .7em 1em; font-size: 13px;
	background: #fff4e5; border: 1px solid #f0b86e; color: #7a4a00; border-radius: 4px;
}
.den-cf__noscript {
	margin: 0 0 1em; padding: .8em 1em; background: #fdecea; color: var(--den-error); border-radius: 4px;
}

/* フォーム全体を白いカードに */
.den-cf__form {
	padding: 2.4em 2.2em 2.2em;
	background: #fff;
	border: 1px solid #e3e5e8;
	border-top: 4px solid var(--den-accent);
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}

/* ハニーポット（画面外へ） */
.den-cf__hp {
	position: absolute !important; left: -9999px !important; top: auto;
	width: 1px; height: 1px; overflow: hidden;
}

/* フィールド */
.den-cf__field { margin: 0 0 1.7em; }
.den-cf__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.den-cf__label {
	display: flex; align-items: center; gap: .6em;
	margin: 0 0 .55em; padding: 0; font-weight: 700; font-size: 16px; line-height: 1.5;
}
.den-cf__badge {
	display: inline-block; padding: .1em .6em; font-size: 12px; font-weight: 700;
	line-height: 1.6; border-radius: 3px; color: #fff;
}
.den-cf__badge--req { background: var(--den-error); }
.den-cf__badge--opt { background: #8a8f98; }

.den-cf__input {
	display: block; width: 100%;
	padding: .8em .95em; font-size: 16px; /* 16px未満だとiOSで自動ズームされる */
	line-height: 1.5; color: #222; background: #fcfcfd;
	border: 1px solid var(--den-border); border-radius: 6px;
	transition: border-color .15s, box-shadow .15s, background .15s;
	-webkit-appearance: none; appearance: none;
}
.den-cf__input::placeholder { color: #9aa0a6; }
.den-cf__input:focus {
	outline: none; border-color: var(--den-accent); background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}
.den-cf__textarea { min-height: 9em; resize: vertical; }

.den-cf__hint { margin: .45em 0 0; font-size: 13px; color: #666; line-height: 1.6; }
.den-cf__error {
	margin: .45em 0 0; font-size: 13px; font-weight: 700; color: var(--den-error);
}
.den-cf__error:empty { display: none; }
.den-cf__suggest { margin: .45em 0 0; font-size: 13px; color: #7a4a00; }
.den-cf__suggest button {
	margin-left: .4em; padding: .1em .7em; font-size: 13px; cursor: pointer;
	border: 1px solid #c58a2a; background: #fff; color: #7a4a00; border-radius: 3px;
}

/* 入力状態 */
.den-cf__field.is-invalid .den-cf__input { border-color: var(--den-error); background: #fff8f7; }
.den-cf__field.is-invalid .den-cf__input:focus { box-shadow: 0 0 0 3px rgba(217, 48, 37, .18); }
.den-cf__field.is-valid .den-cf__input {
	border-color: var(--den-ok);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23188038' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .8em center; background-size: 1.2em;
	padding-right: 2.6em;
}
.den-cf__field.is-valid .den-cf__textarea { background-position: right .8em top .9em; }

/* ラジオ（タップしやすいカード型） */
.den-cf__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.den-cf__choice {
	position: relative; flex: 1 1 160px; margin: 0; cursor: pointer;
}
.den-cf__choice input {
	position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.den-cf__choice span {
	display: flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 54px; padding: .6em 1em; font-size: 15px; text-align: center;
	background: #fcfcfd; border: 1px solid var(--den-border); border-radius: 6px;
	transition: background .15s, border-color .15s, color .15s;
}
.den-cf__choice span::before {
	content: ""; flex: none; width: 1.1em; height: 1.1em;
	border: 2px solid #9aa0a6; border-radius: 50%; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.den-cf__choice:hover span { border-color: #888; }
.den-cf__choice input:checked + span {
	background: var(--den-accent); border-color: var(--den-accent); color: #fff; font-weight: 700;
}
.den-cf__choice input:checked + span::before {
	border-color: #fff; box-shadow: inset 0 0 0 3px var(--den-accent); background: #fff;
}
.den-cf__choice input:focus-visible + span { outline: 3px solid rgba(0, 0, 0, .3); outline-offset: 2px; }
.den-cf__field.is-invalid .den-cf__choice span { border-color: var(--den-error); }

/* ---------- プライバシーポリシー（送信ボタンの直前） ---------- */
.den-cf__policy {
	margin: 2.2em 0 1.6em; padding-top: 1.8em;
	border-top: 1px solid #e3e5e8;
}
/* サイト既存の #contact_02 用スタイルを、フォーム内用に打ち消す */
.den-cf .den-cf__policy #contact_02 {
	width: auto; max-width: none; height: auto; margin: 0; padding: 0;
	border: 0; background: none; text-align: left;
}
.den-cf .den-cf__policy #contact_02 h3 {
	margin: 0 0 .7em; padding: 0; font-size: 18px; line-height: 1.5;
	letter-spacing: .08em; text-align: center; border: 0; background: none;
}
.den-cf .den-cf__policy #contact_02 h3::before,
.den-cf .den-cf__policy #contact_02 h3::after { content: none; display: none; }
.den-cf .den-cf__policy #contact_02 .p_cen {
	margin: 0 0 1em; font-size: 13px; line-height: 1.8; text-align: center; color: #444;
}
.den-cf .den-cf__policy .contact_02_box {
	width: auto; max-width: none; height: 230px; max-height: 230px; margin: 0;
	padding: 1em 1.2em; overflow-y: auto; -webkit-overflow-scrolling: touch;
	background: #f7f7f8; border: 1px solid #dcdfe3; border-radius: 6px;
	font-size: 13px; line-height: 1.8; text-align: left; color: #333;
}
.den-cf .den-cf__policy .contact_02_box br { display: none; }
.den-cf .den-cf__policy .contact_02_box h4 {
	margin: 1.1em 0 .35em; padding: 0; font-size: 14px; line-height: 1.6; font-weight: 700;
}
.den-cf .den-cf__policy .contact_02_box h4:first-child { margin-top: 0; }
.den-cf .den-cf__policy .contact_02_box ul { margin: 0 0 .6em; padding: 0; list-style: none; }
.den-cf .den-cf__policy .contact_02_box li { margin: 0 0 .25em; padding: 0; }
.den-cf .den-cf__policy .contact_02_box .list_style li { padding-left: 1.1em; position: relative; }
.den-cf .den-cf__policy .contact_02_box .list_style li::before {
	content: "・"; position: absolute; left: 0; top: 0;
}
.den-cf .den-cf__policy .contact_02_box p { margin: 0 0 .6em; }
.den-cf .den-cf__policy .contact_02_box a,
.den-cf .den-cf__policy .contact_02_box a:visited {
	color: #333 !important; text-decoration: underline; word-break: break-all;
}
.den-cf .den-cf__policy .contact_02_box a:hover { color: #000 !important; }

/* エラーまとめ */
.den-cf__summary {
	margin: 0 0 1.2em; padding: .9em 1em; font-size: 14px; font-weight: 700;
	color: var(--den-error); background: #fdecea; border: 1px solid #f5b5af; border-radius: 6px;
}
.den-cf__summary:focus { outline: none; }

/* 送信ボタン */
.den-cf__actions { text-align: center; }
.den-cf__note { margin: 0 0 1.1em; font-size: 13px; color: #444; line-height: 1.7; }
.den-cf__submit {
	position: relative; display: block; width: 100%; max-width: 420px; margin: 0 auto;
	padding: 1.1em 1em; font-size: 17px; font-weight: 700; letter-spacing: .12em;
	color: #fff; background: var(--den-accent); border: 0; border-radius: 6px; cursor: pointer;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
	transition: background .15s, transform .05s, box-shadow .05s, opacity .15s;
}
.den-cf__submit:hover { background: #333; }
.den-cf__submit:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.den-cf__submit:focus-visible { outline: 3px solid rgba(0, 0, 0, .35); outline-offset: 3px; }
.den-cf__submit[disabled] { opacity: .65; cursor: wait; }
.den-cf__submit.is-sending .den-cf__submit-text::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .6em;
	vertical-align: -.15em; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
	border-radius: 50%; animation: den-cf-spin .7s linear infinite;
}
@keyframes den-cf-spin { to { transform: rotate(360deg); } }

.den-cf__recaptcha { margin: 1em 0 0; font-size: 11px; color: #777; line-height: 1.6; }
.den-cf .den-cf__recaptcha a,
.den-cf .den-cf__recaptcha a:visited {
	color: #555 !important; text-decoration: underline !important; background: none !important;
}
.den-cf .den-cf__recaptcha a:hover { color: #111 !important; }

/* 送信完了 */
.den-cf__done {
	padding: 2.4em 1.4em; text-align: center; background: #f1f8f3;
	border: 1px solid #b7dcc0; border-radius: 8px;
}
.den-cf__done:focus { outline: none; }
.den-cf__done p { margin: .5em 0; font-size: 14px; }
.den-cf__done .den-cf__done-title { font-size: 20px; font-weight: 700; color: var(--den-ok); }

/* =====================================================================
 * 案内エリア（フォーム上部）
 * ===================================================================== */
.den-intro {
	max-width: 760px; margin: 1.6em auto 0; padding: 0 16px;
	color: #222; line-height: 1.8; box-sizing: border-box;
}
.den-intro *, .den-intro *::before, .den-intro *::after { box-sizing: border-box; }

.den-intro .den-intro__lead {
	margin: 0 0 1.5em; font-size: 18px; font-weight: 700; line-height: 1.7; text-align: center;
}
.den-intro .den-intro__sub {
	display: block; margin-top: .5em; font-size: 13px; font-weight: 400; color: #555; line-height: 1.8;
}
.den-intro .den-intro__req {
	display: inline-block; margin: 0 .2em; padding: .05em .6em;
	font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.6;
	color: #fff; background: #d93025; border-radius: 3px; vertical-align: .1em;
}

.den-intro .den-intro__cards {
	display: flex; gap: 16px; margin: 0 0 16px; padding: 0; list-style: none;
}
.den-intro .den-intro__card {
	flex: 1 1 0; margin: 0; padding: 1.3em 1.4em 1.2em; list-style: none;
	background: #fff; border: 1px solid #e3e5e8; border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.den-intro .den-intro__head { display: flex; align-items: center; gap: .75em; margin: 0 0 .75em; }
.den-intro .den-intro__icon {
	flex: none; width: 42px; height: 42px; border-radius: 50%;
	background-color: #f0f0f2; background-repeat: no-repeat; background-position: center; background-size: 22px;
}
.den-intro .den-intro__icon--mail {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}
.den-intro .den-intro__icon--alert {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16.5v.01'/%3E%3C/svg%3E");
}
.den-intro .den-intro__ttl {
	margin: 0; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: left;
}
.den-intro .den-intro__txt {
	margin: 0; font-size: 14px; line-height: 1.9; text-align: left; color: #333;
}
.den-intro .den-intro__txt strong {
	font-weight: 700; color: #111;
	background: linear-gradient(transparent 62%, #ffe27a 62%);
}

/* 電話ボタン */
.den-intro .den-intro__tel,
.den-intro .den-intro__tel:visited {
	display: flex; flex-direction: column; align-items: center; gap: .15em;
	padding: 1.1em 1em 1.15em; color: #fff !important; background: #111;
	border-radius: 8px; text-decoration: none !important;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
	transition: background .15s, transform .05s, box-shadow .05s;
}
.den-intro .den-intro__tel:hover { background: #333; }
.den-intro .den-intro__tel:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.den-intro .den-intro__tel-label { font-size: 13px; line-height: 1.6; opacity: .85; text-align: center; }
.den-intro .den-intro__tel-num {
	display: flex; align-items: center; justify-content: center; gap: .45em;
	font-size: 30px; font-weight: 700; letter-spacing: .06em; line-height: 1.3;
}
.den-intro .den-intro__tel-num::before {
	content: ""; flex: none; width: .8em; height: .8em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 600px) {
	.den-intro { margin-top: 1.2em; padding: 0 10px; }
	.den-intro .den-intro__lead { font-size: 16px; }
	.den-intro .den-intro__cards { flex-direction: column; gap: 12px; }
	.den-intro .den-intro__tel-num { font-size: 26px; }
}

@media (max-width: 600px) {
	.den-cf { margin: 1.8em auto 2.5em; padding: 0 10px; }
	.den-cf__form { padding: 1.6em 1.1em 1.4em; }
	.den-cf__choice { flex-basis: 100%; }
	.den-cf .den-cf__policy #contact_02 .p_cen { text-align: left; }
	.den-cf .den-cf__policy .contact_02_box { height: 200px; max-height: 200px; padding: .9em 1em; }
}
@media (prefers-reduced-motion: reduce) {
	.den-cf * { transition: none !important; animation: none !important; }
}