/**
 * Contact Form 7 共通スタイル（fmv-cf7-* マークアップ用）
 */

/* CF7 デフォルト CSS が無いページでも hidden fieldset を隠す */
.wpcf7-form .hidden-fields-container {
	display: none !important;
}

.wpcf7-response-output[aria-hidden="true"]:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.fmv-form-card .wpcf7-form,
.fmv-inquiry__form .wpcf7-form,
.dpi-form-card .wpcf7-form {
	display: block !important;
	grid-template-columns: unset !important;
	gap: 0 !important;
}

/* --- レイアウト --- */
.fmv-cf7-grid {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 3.2vw, 22px);
}

.fmv-cf7-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(18px, 3.2vw, 22px);
}

@media (min-width: 680px) {
	.fmv-cf7-row--half {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(20px, 3.5vw, 28px);
		row-gap: clamp(18px, 2.8vw, 22px);
		align-items: start;
	}

	.fmv-cf7-row--half .fmv-cf7-label {
		min-height: 2.75em;
	}
}

.fmv-cf7-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.fmv-cf7-field > p {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fmv-cf7-field > p > br {
	display: none;
}

.fmv-cf7-intro {
	margin: 0 0 2px;
	font-size: clamp(0.875rem, 0.3vw + 0.82rem, 0.9375rem);
	line-height: 1.65;
	color: #4b5563;
}

/* --- ラベル --- */
.fmv-cf7-label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: clamp(0.875rem, 0.32vw + 0.8rem, 0.9375rem);
	font-weight: 700;
	margin: 0;
	color: #15171c;
	letter-spacing: 0.02em;
	line-height: 1.45;
}

.fmv-cf7-label--required::after {
	content: "必須";
	display: inline-block;
	padding: 2px 7px;
	background: var(--fmv-lp-cta, #8b1a2e);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	border-radius: 4px;
	line-height: 1.35;
	letter-spacing: 0.06em;
	flex-shrink: 0;
}

.fmv-cf7-hint {
	font-size: 0.78rem;
	color: #6b7280;
	line-height: 1.5;
}

/* --- 入力欄（統一） --- */
.fmv-form-card .wpcf7-form-control-wrap,
.fmv-inquiry__form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.fmv-cf7-input,
.fmv-cf7-select,
.wpcf7-form .fmv-cf7-input,
.wpcf7-form .fmv-cf7-select,
.fmv-form-card .wpcf7-form-control:not(.wpcf7-submit):not(textarea),
.fmv-inquiry__form .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):not(textarea) {
	width: 100%;
	height: 48px;
	min-height: 48px;
	max-height: none;
	border-radius: 10px;
	border: 1.5px solid #d1d5db;
	padding: 0 14px;
	font-size: 16px;
	font-family: inherit;
	line-height: 1.4;
	margin: 0;
	box-sizing: border-box;
	background: #fff;
	color: #111827;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

@media (min-width: 680px) {
	.fmv-cf7-input,
	.fmv-cf7-select,
	.wpcf7-form .fmv-cf7-input,
	.wpcf7-form .fmv-cf7-select,
	.fmv-form-card .wpcf7-form-control:not(.wpcf7-submit):not(textarea),
	.fmv-inquiry__form .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):not(textarea) {
		font-size: 0.9375rem;
	}
}

.fmv-cf7-select,
.wpcf7-form .fmv-cf7-select,
.fmv-form-card select.wpcf7-form-control:not(.wpcf7-submit) {
	cursor: pointer;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
}

.wpcf7-form textarea.wpcf7-form-control,
.wpcf7-form textarea.custom-textarea,
.fmv-cf7-textarea,
.wpcf7-form .fmv-cf7-textarea,
.fmv-form-card textarea.wpcf7-form-control,
.fmv-inquiry__form textarea.wpcf7-form-control {
	display: block;
	width: 100%;
	height: 120px !important;
	min-height: 120px;
	max-height: 200px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1.5px solid #d1d5db;
	font-size: 16px;
	font-family: inherit;
	line-height: 1.6;
	margin: 0;
	box-sizing: border-box;
	background: #fff;
	color: #111827;
	resize: vertical;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fmv-cf7-input::placeholder,
.fmv-cf7-textarea::placeholder,
.wpcf7-form .fmv-cf7-input::placeholder,
.wpcf7-form .fmv-cf7-textarea::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.fmv-cf7-input:hover,
.fmv-cf7-select:hover,
.fmv-cf7-textarea:hover,
.wpcf7-form .fmv-cf7-input:hover,
.wpcf7-form .fmv-cf7-select:hover,
.wpcf7-form .fmv-cf7-textarea:hover,
.fmv-form-card .wpcf7-form-control:not(.wpcf7-submit):hover {
	border-color: #9ca3af;
}

.fmv-cf7-input:focus,
.fmv-cf7-select:focus,
.fmv-cf7-textarea:focus,
.wpcf7-form .fmv-cf7-input:focus,
.wpcf7-form .fmv-cf7-select:focus,
.wpcf7-form .fmv-cf7-textarea:focus,
.fmv-form-card .wpcf7-form-control:not(.wpcf7-submit):focus {
	outline: none;
	border-color: #16263f;
	box-shadow: 0 0 0 3px rgba(22, 38, 63, 0.12);
	background: #fff;
}

.fmv-cf7-file,
.wpcf7-form .fmv-cf7-file {
	height: auto;
	min-height: auto;
	padding: 8px 0;
	font-size: 0.875rem;
	color: #4b5563;
	border: 0;
	background: transparent;
}

/* 添付画像3列 — ラベル高さ差でファイル欄がずれないようにする */
.fmv-cf7-row--attachments {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(16px, 3vw, 20px);
	align-items: stretch;
}

@media (min-width: 640px) {
	.fmv-cf7-row--attachments {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fmv-cf7-field--attachment {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	height: 100%;
}

.fmv-cf7-field--attachment .fmv-cf7-label {
	margin: 0;
}

.fmv-cf7-file-hint {
	margin: 0;
	min-height: 1.35em;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	color: #6b7280;
}

.fmv-cf7-file-hint--spacer {
	visibility: hidden;
	user-select: none;
}

.fmv-cf7-field--attachment .wpcf7-form-control-wrap {
	margin-top: auto;
	width: 100%;
}

.fmv-cf7-field--attachment .fmv-cf7-file,
.fmv-cf7-field--attachment input[type="file"].fmv-cf7-file {
	width: 100%;
	max-width: 100%;
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* --- チェックボックス --- */
.fmv-cf7-checkboxes .wpcf7-list-item {
	margin: 0 0 8px;
}

.fmv-cf7-checkboxes .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 0.9375rem;
	color: #374151;
	margin: 0;
	cursor: pointer;
}

/* --- 送信 --- */
.fmv-cf7-actions {
	padding-top: clamp(16px, 3vw, 22px);
	margin-top: 2px;
	border-top: 1px solid #e5e7eb;
}

.fmv-cf7-actions > p {
	margin: 0;
}

.fmv-cf7-submit,
.wpcf7-form input[type="submit"].fmv-cf7-submit,
.fmv-form-card .wpcf7-submit {
	display: block;
	margin: 0 auto;
	width: min(100%, 320px);
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.05em;
	height: 52px;
	min-height: 52px;
	border-radius: 999px;
	border: 0;
	background: var(--fmv-lp-cta, #8b1a2e);
	color: #fff;
	box-shadow: 0 4px 14px rgba(139, 26, 46, 0.28);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.fmv-cf7-submit:hover,
.wpcf7-form input[type="submit"].fmv-cf7-submit:hover,
.fmv-form-card .wpcf7-submit:hover {
	background: var(--fmv-lp-cta-dark, #6e1424);
	box-shadow: 0 6px 18px rgba(139, 26, 46, 0.34);
}

.fmv-cf7-submit:active,
.wpcf7-form input[type="submit"].fmv-cf7-submit:active,
.fmv-form-card .wpcf7-submit:active {
	transform: translateY(1px);
}

/* --- バリデーション・レスポンス --- */
.fmv-form-card .wpcf7-not-valid-tip,
.fmv-inquiry__form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #8b1a2e;
	font-weight: 600;
}

.fmv-form-card .wpcf7-response-output,
.fmv-inquiry__form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	color: #111827;
}

.fmv-form-card .wpcf7-spinner,
.fmv-inquiry__form .wpcf7-spinner,
.dpi-form-card .wpcf7-spinner {
	display: block;
	margin: 14px auto 0;
}

/* ============================================================
   dp-contact — お問い合わせフォーム（CF7）
   ============================================================ */

.dp-contact {
	display: flex;
	flex-direction: column;
	gap: clamp(24px, 4vw, 32px);
}

.dp-contact__intro {
	margin: 0 0 4px;
	font-size: 0.8125rem;
	line-height: 1.75;
	color: #64748b;
}

.dp-contact__intro p {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.dp-contact__intro p + p {
	margin-top: 0.35em;
}

.dp-contact__intro a {
	color: var(--fmv-lp-accent, #16263f);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.14em;
}

.dp-contact__intro a:hover {
	text-decoration: none;
}

.dp-contact__form {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2.8vw, 20px);
}

.dp-field {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

@media (min-width: 720px) {
	.dp-field:not(.dp-field--attachment) {
		grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
		align-items: start;
		gap: 12px 20px;
	}

	.dp-field--tel .dp-field__input {
		max-width: 280px;
	}
}

.dp-field__label {
	margin: 0;
	font-size: clamp(0.875rem, 0.32vw + 0.8rem, 0.9375rem);
	font-weight: 700;
	line-height: 1.5;
	color: #15171c;
}

@media (min-width: 720px) {
	.dp-field:not(.dp-field--attachment) .dp-field__label {
		padding-top: 12px;
	}
}

.dp-field__hint {
	margin: -2px 0 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #94a3b8;
}

.dp-field__required {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	background: var(--fmv-lp-cta, #8b1a2e);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	border-radius: 4px;
	line-height: 1.35;
	letter-spacing: 0.06em;
	vertical-align: middle;
}

.dp-field__input .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.dp-field__input .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
	width: 100%;
	min-height: 48px;
	border-radius: 10px;
	border: 1.5px solid #e2e8f0;
	padding: 0 14px;
	font-size: 16px;
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
	background: #fff;
	color: #111827;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-field__input select.wpcf7-form-control {
	cursor: pointer;
	padding-right: 40px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
}

.dp-field__input textarea.wpcf7-form-control {
	min-height: 120px;
	height: 120px;
	padding: 12px 14px;
	resize: vertical;
}

.dp-field__input .wpcf7-form-control:not([type="file"]):hover {
	border-color: #cbd5e1;
}

.dp-field__input .wpcf7-form-control:focus {
	outline: none;
	border-color: var(--fmv-lp-accent, #16263f);
	box-shadow: 0 0 0 3px rgba(22, 38, 63, 0.1);
}

/* 添付画像 — Bento カード3列 */
.dp-attachments {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 4px;
	padding-top: 22px;
	border-top: 1px solid #eef1f5;
}

@media (min-width: 640px) {
	.dp-attachments {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}
}

.dp-field--attachment {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 12px;
}

.dp-field--attachment .dp-field__label {
	font-size: 0.8125rem;
	padding-top: 0;
}

.dp-field--attachment .dp-field__input {
	margin-top: auto;
}

.dp-field--attachment input[type="file"].dp-file,
.dp-field--attachment input[type="file"].wpcf7-form-control {
	display: block;
	width: 100%;
	min-height: auto;
	height: auto;
	padding: 10px 12px;
	border: 1.5px dashed #d1d5db;
	border-radius: 8px;
	background: #fafbfc;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #64748b;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.dp-field--attachment input[type="file"]:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.dp-field--attachment input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 6px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	color: #334155;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.dp-field--attachment input[type="file"]::file-selector-button:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

/* 送信 */
.dp-contact__submit {
	margin-top: 4px;
	padding-top: 28px;
	border-top: 1px solid #eef1f5;
	text-align: center;
}

.dp-contact__submit > p {
	margin: 0;
}

.dp-contact__submit .wpcf7-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--fmv-lp-cta, #8b1a2e);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.dp-contact__submit .wpcf7-submit:hover {
	background: var(--fmv-lp-cta-dark, #6e1424);
	box-shadow: 0 4px 12px rgba(139, 26, 46, 0.2);
}

.dp-contact__submit .wpcf7-submit:active {
	transform: translateY(1px);
}

/* LINE 相談カード */
.dp-contact__line {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.dp-contact__line-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 22px 20px;
	border-radius: 14px;
	background: linear-gradient(145deg, #f0fdf4 0%, #f8fafc 55%, #fff 100%);
	border: 1px solid #d1fae5;
	text-align: center;
}

@media (min-width: 600px) {
	.dp-contact__line-card {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		padding: 20px 22px;
		text-align: left;
	}
}

.dp-contact__line-logo {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

/* PC のみ QR 表示（スマホはボタンタップで友だち追加） */
.dp-contact__line-qr {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	text-decoration: none;
}

@media (min-width: 768px) {
	.dp-contact__line-qr {
		display: flex;
	}
}

.dp-contact__line-qr img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 8px;
	border: 2px solid #e8f8ec;
	background: #fff;
	object-fit: contain;
	transition: transform 0.15s ease;
}

.dp-contact__line-qr:hover img {
	transform: scale(1.03);
}

.dp-contact__line-qr-caption {
	font-size: 0.6875rem;
	font-weight: 600;
	color: #06c755;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
}

.dp-contact__line-text {
	flex: 1;
	min-width: 0;
}

.dp-contact__line-title {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.45;
	color: #0f172a;
}

.dp-contact__line-desc {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #64748b;
}

.dp-contact__line-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: min(100%, 200px);
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 10px;
	background: #06c755;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(6, 199, 85, 0.2);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

@media (min-width: 600px) {
	.dp-contact__line-btn {
		flex-shrink: 0;
		margin-left: auto;
	}
}

.dp-contact__line-btn:hover {
	background: #05b34c;
	color: #fff;
	box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25);
}

.dp-contact__line-btn:active {
	transform: translateY(1px);
}

.dp-contact__line-btn-label {
	line-height: 1.3;
}

.dp-contact__line-btn-id {
	font-size: 0.6875rem;
	font-weight: 600;
	opacity: 0.9;
	letter-spacing: 0.02em;
}

.dpi-form-card .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.8125rem;
	color: #8b1a2e;
	font-weight: 600;
}

.dpi-form-card .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-align: center;
}

/* ============================================================
   サンクスページ
   ============================================================ */

.dpi-thanks {
	padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 4vw, 1.75rem) clamp(3rem, 10vw, 5rem);
	background: #fff;
}

.dpi-thanks__inner {
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
}

.dpi-thanks__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #8b1a2e;
}

.dpi-thanks__h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.35;
	color: #111827;
}

.dpi-thanks__lead {
	margin: 0 0 1.5rem;
	font-size: clamp(0.9375rem, 0.3vw + 0.88rem, 1rem);
	line-height: 1.8;
	color: #4b5563;
}

.dpi-thanks__card {
	margin-bottom: 1.75rem;
	padding: clamp(1.1rem, 3vw, 1.5rem);
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e8edf2;
	text-align: left;
}

.dpi-thanks__note {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #374151;
}

.dpi-thanks__contact {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.dpi-thanks__contact li {
	display: grid;
	gap: 2px;
}

.dpi-thanks__contact-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: #6b7280;
	letter-spacing: 0.04em;
}

.dpi-thanks__contact a {
	color: #111827;
	font-weight: 700;
	text-decoration: none;
}

.dpi-thanks__contact-meta {
	font-size: 0.8125rem;
	color: #6b7280;
}

.dpi-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.dpi-thanks__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.dpi-thanks__btn--primary {
	background: var(--fmv-lp-cta, #8b1a2e);
	color: #fff;
}

.dpi-thanks__btn--ghost {
	border: 1.5px solid #d1d5db;
	color: #374151;
	background: #fff;
}
