/* =============================================
   お問い合わせページ
   ============================================= */

/* ── ヒーロー ── */
.p-contact-hero {
	position: relative;
	height: 349px;
	overflow: hidden;
}

.p-contact-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.p-contact-hero__bg--sp {
	display: none;
}

.p-contact-hero__badge {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	gap: var(--sp-xs);
	background-color: var(--c-white);
	padding: var(--sp-xs) var(--sp-md) var(--sp-xs) 344px;
	border-radius: 0 var(--sp-md) 0 0;
}

.p-contact-hero__badge-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #91664C;
	color: var(--c-white);
}

.p-contact-hero__badge-title {
	font-family: var(--f-sans);
	font-size: var(--fs-2xl);
	font-weight: 700;
	color: var(--c-black);
	letter-spacing: var(--ls-normal);
}

/* ── フォームセクション ── */
.p-contact-form {
	padding: var(--sp-2xl) var(--sp-md);
	background-color: var(--c-white);
}

.p-contact-form__inner {
	max-width: 782px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--sp-xl);
	align-items: center;
}

/* リード文 */
.p-contact-form__lead {
	display: flex;
	flex-direction: column;
	gap: var(--sp-sm);
	text-align: center;
	color: var(--c-black);
}

.p-contact-form__lead-heading {
	font-family: var(--f-sans);
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: var(--lh-normal);
	letter-spacing: var(--ls-normal);
}

.p-contact-form__lead-text {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: normal;
	line-height: var(--lh-normal);
	letter-spacing: var(--ls-normal);
	text-align: left;
}

/* ── CF7 フォームスタイル ── */
.p-contact-form__body {
	width: 100%;
}

/* CF7が自動挿入するbrを非表示 */
.p-contact-form__body .wpcf7-form br {
	display: none;
}

/* 各フィールドの間隔 */
.p-contact-form__body .wpcf7-form p {
	margin-bottom: var(--sp-lg);
}

/* ラベル */
.p-contact-form__body label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-xs);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 700;
	color: var(--c-black);
	margin-bottom: var(--sp-xs);
}

/* 必須バッジ */
.p-cf7-required {
	display: inline-block;
	background-color: var(--c-madder);
	color: var(--c-white);
	font-size: var(--fs-xs);
	font-weight: 700;
	padding: 0 var(--sp-xs);
	border-radius: 4px;
	line-height: var(--lh-normal);
}

/* 任意バッジ */
.p-cf7-optional {
	display: inline-block;
	background-color: var(--c-accent-3);
	color: var(--c-white);
	font-size: var(--fs-xs);
	font-weight: 700;
	padding: 0 var(--sp-xs);
	border-radius: 4px;
	line-height: var(--lh-normal);
}

/* テキスト入力 */
.p-contact-form__body input[type="text"],
.p-contact-form__body input[type="email"],
.p-contact-form__body input[type="tel"] {
	width: 100%;
	padding: 8px var(--sp-sm);
	background-color: var(--c-base);
	border: none;
	border-radius: var(--sp-xs);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	color: var(--c-black);
	outline: none;
	transition: box-shadow 0.2s;
}

.p-contact-form__body input[type="text"]:focus,
.p-contact-form__body input[type="email"]:focus,
.p-contact-form__body input[type="tel"]:focus,
.p-contact-form__body textarea:focus {
	box-shadow: 0 0 0 2px var(--c-accent-3);
}

/* テキストエリア */
.p-contact-form__body textarea {
	width: 100%;
	min-height: 270px;
	padding: var(--sp-sm);
	background-color: var(--c-base);
	border: none;
	border-radius: var(--sp-xs);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	color: var(--c-black);
	resize: vertical;
	outline: none;
	transition: box-shadow 0.2s;
}

/* チェックボックス */
.p-contact-form__body .wpcf7-checkbox {
	display: flex;
	flex-direction: column;
}

.p-contact-form__body .wpcf7-checkbox .wpcf7-list-item {
	display: block;
	margin-bottom: 4px;
}

.p-contact-form__body .wpcf7-checkbox .wpcf7-list-item label {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--sp-sm);
	font-weight: 500;
	margin-bottom: 0;
	/* align-items: flex-start; */
}

.p-contact-form__body .wpcf7-checkbox input[type="checkbox"] {
	width: 24px;
	height: 24px;
	border: 2px solid var(--c-black);
	border-radius: 2px;
	appearance: none;
	cursor: pointer;
	flex-shrink: 0;
}

.p-contact-form__body .wpcf7-checkbox input[type="checkbox"]:checked {
	background-color: var(--c-accent-2);
	border-color: var(--c-accent-2);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23382710' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
	background-size: var(--sp-sm);
	background-position: center;
	background-repeat: no-repeat;
}

.p-contact-form__body .wpcf7-checkbox .wpcf7-list-item-label {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-black);
}

/* 同意チェックボックス エリア */
.p-cf7-consent {
	/* background-color: var(--c-base); */
	padding: var(--sp-sm);
	border-radius: var(--sp-xs);
	/* margin-bottom: var(--sp-md); */
}

.p-cf7-consent p {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-black);
	margin-bottom: var(--sp-sm) !important;
}

.p-cf7-consent a {
	text-decoration: underline;
	color: var(--c-black);
}

.p-cf7-consent-check {
	display: flex;
	justify-content: center;
}

.p-cf7-consent-check .wpcf7-acceptance input[type="checkbox"] {
	width: 32px;
	height: 32px;
	border: 1px solid #767676;
	border-radius: 2px;
	appearance: none;
	cursor: pointer;
}

.p-cf7-consent-check .wpcf7-acceptance input[type="checkbox"]:checked {
	background-color: var(--c-accent-2);
	border-color: var(--c-accent-2);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23382710' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
	background-size: var(--sp-md);
	background-position: center;
	background-repeat: no-repeat;
}

.p-cf7-consent-check .wpcf7-list-item-label {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-black);
}

/* 送信ボタン */
.p-contact-form__body input[type="submit"] {
	display: block;
	width: 330px;
	max-width: 100%;
	margin: 0 auto;
	padding: var(--sp-sm) var(--sp-xl);
	background-color: var(--c-accent-2);
	border: none;
	border-radius: var(--sp-xs);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 700;
	color: var(--c-black);
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s;
	position: relative;
	overflow: hidden;
}

.p-contact-form__body input[type="submit"]:hover {
	opacity: 0.85;
}

.p-contact-form__body input[type="submit"].is-disabled {
	background-color: #ccc;
	color: #999;
	cursor: not-allowed;
	pointer-events: none;
}

/* バリデーションエラー */
.p-contact-form__body .wpcf7-not-valid-tip {
	color: var(--c-madder);
	font-size: var(--fs-sm);
	margin-top: 4px;
}

.p-contact-form__body .wpcf7-response-output {
	border-radius: var(--sp-xs);
	padding: var(--sp-sm);
	text-align: center;
}

/* ── 電話お問い合わせ ── */
.p-contact-form__phone {
	width: 100%;
	max-width: 660px;
	background-color: var(--c-base);
	border-radius: var(--sp-xs);
	padding: var(--sp-sm);
	display: flex;
	flex-direction: column;
	gap: var(--sp-xs);
}

.p-contact-form__phone-title {
	font-family: var(--f-sans);
	font-size: var(--fs-xl);
	font-weight: 700;
	color: var(--c-black);
}

.p-contact-form__phone-row {
	display: flex;
	align-items: flex-end;
	gap: var(--sp-md);
	flex-wrap: wrap;
}

.p-contact-form__phone-number {
	display: flex;
	align-items: center;
	color: var(--c-black);
}

.p-contact-form__phone-icon {
	font-size: 48px;
	flex-shrink: 0;
}

.p-contact-form__phone-number a {
	font-family: 'Futura', sans-serif;
	font-size: var(--fs-3xl);
	font-weight: 700;
	letter-spacing: var(--ls-wide);
	line-height: 1.2;
	color: inherit;
	text-decoration: none;
}

.p-contact-form__phone-info {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-black);
	line-height: var(--lh-normal);
	margin: 0 auto;
}

.p-contact-form__phone-info p {
	margin: 0;
}

/* ── 確認画面（モーダル） ── */
.p-cf7-confirm__overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: var(--sp-sm);
	overflow-y: auto;
}

.p-cf7-confirm__dialog {
	background: var(--c-white);
	border-radius: var(--sp-sm);
	padding: var(--sp-md);
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
}

.p-cf7-confirm__title {
	font-family: var(--f-sans);
	font-size: var(--fs-xl);
	font-weight: 700;
	color: var(--c-black);
	text-align: center;
	margin-bottom: var(--sp-xs);
}

.p-cf7-confirm__desc {
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	color: var(--c-black);
	text-align: center;
	margin-bottom: var(--sp-sm);
}

.p-cf7-confirm__fields {
	display: flex;
	flex-direction: column;
	gap: var(--sp-xs);
	margin-bottom: var(--sp-sm);
}

.p-cf7-confirm__row {
	border-bottom: 1px solid var(--c-base);
	padding-bottom: var(--sp-xs);
}

.p-cf7-confirm__label {
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--c-black);
	margin-bottom: 4px;
}

.p-cf7-confirm__value {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	color: var(--c-black);
	margin: 0;
}

.p-cf7-confirm__value--long {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	color: var(--c-black);
	white-space: pre-wrap;
	margin: 0;
	background: none;
	border: none;
	padding: 0;
}

.p-cf7-confirm__actions {
	display: flex;
	flex-direction: column;
	gap: var(--sp-sm);
	align-items: center;
}

.p-cf7-confirm__btn {
	padding: var(--sp-sm) var(--sp-lg);
	border-radius: var(--sp-xs);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s;
	border: none;
}

.p-cf7-confirm__btn:hover {
	opacity: 0.85;
}

.p-cf7-confirm__btn--back {
	background: var(--c-base);
	color: var(--c-black);
}

.p-cf7-confirm__btn--submit {
	background: var(--c-accent-2);
	color: var(--c-black);
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* ── サンクスページ ── */
.p-contact-thanks {
	padding: var(--sp-3xl) var(--sp-md);
	background-color: var(--c-white);
}

.p-contact-thanks__inner {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-lg);
	text-align: center;
}

.p-contact-thanks__icon {
	color: var(--c-accent-4);
}

.p-contact-thanks__heading {
	font-family: var(--f-sans);
	font-size: var(--fs-xl);
	font-weight: 700;
	color: var(--c-black);
}

.p-contact-thanks__body {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--c-black);
	line-height: var(--lh-normal);
	text-align: left;
}

.p-contact-thanks__body p {
	margin-bottom: var(--sp-sm);
}

.p-contact-thanks__phone {
	background-color: var(--c-base);
	border-radius: var(--sp-xs);
	padding: var(--sp-sm) var(--sp-lg);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	color: var(--c-black);
}

.p-contact-thanks__phone p {
	margin: 0;
}

.p-contact-thanks__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--sp-sm) var(--sp-xl);
	background-color: var(--c-accent-2);
	border-radius: var(--sp-xs);
	text-decoration: none;
	color: var(--c-black);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	font-weight: 700;
	transition: opacity 0.2s;
	position: relative;
	overflow: hidden;
}

.p-contact-thanks__btn:hover {
	opacity: 0.85;
	color: var(--c-black);
}

/* =============================================
   レスポンシブ: タブレット
   ============================================= */
@media (max-width: 1024px) {
	.p-contact-hero__badge {
		padding-left: var(--sp-xl);
	}
}

/* =============================================
   レスポンシブ: スマホ
   ============================================= */
@media (max-width: 767px) {
	.p-contact-hero {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.p-contact-hero__bg--pc {
		display: none;
	}

	.p-contact-hero__bg--sp {
		display: block;
	}

	.p-contact-hero__badge {
		padding-left: var(--sp-md);
		border-radius: 0 var(--sp-sm) 0 0;
	}

	.p-contact-hero__badge-title {
		font-size: var(--fs-xl);
	}

	.p-contact-form {
		padding: 32px var(--sp-sm) var(--sp-xl);
	}

	.p-contact-form__inner {
		gap: var(--sp-lg);
	}

	.p-contact-form__lead {
		gap: var(--sp-sm);
	}

	.p-contact-form__lead-heading {
		font-size: 1.3rem;
	}

	.p-contact-form__lead-text {
		line-height: 1.9;
		letter-spacing: 1px;
	}

	/* ラベル */
	.p-contact-form__body label {
		font-size: var(--fs-lg);
		letter-spacing: 1px;
	}

	/* チェックボックステキスト */
	.p-contact-form__body .wpcf7-checkbox .wpcf7-list-item-label {
		letter-spacing: 1px;
		line-height: 1.9;
	}

	/* 送信ボタン: 330px固定 */
	.p-contact-form__body input[type="submit"] {
		width: 330px;
	}

	/* 電話ボックス: 縦並び */
	.p-contact-form__phone {
		padding: 8px;
	}

	.p-contact-form__phone-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.p-contact-form__phone-icon {
		font-size: 32px;
	}

	.p-contact-form__phone-number a {
		font-size: 2.3rem;
		letter-spacing: 3.7px;
	}

	.p-contact-form__phone-info {
		letter-spacing: 1px;
		line-height: 1.9;
	}
}

/* ── 規約・ポリシーリンク ── */
.p-contact-form__policy-note {
	font-size: var(--fs-sm);
	color: var(--c-text);
	margin-bottom: var(--sp-md);
}

.p-contact-form__policy-note a {
	color: var(--c-matcha);
	text-decoration: underline;
}
