@charset "UTF-8";
/* ==========================================================================
   お問い合わせ（フォーム・送信完了）
   ========================================================================== */

:root {
	--contact-line: linear-gradient(90deg, #7bddff 0%, #ffb3cb 100%);
	--contact-text: #474747;
	--contact-input-bg: #f4f4f4;
	--contact-placeholder: #d9d9d9;
	--contact-error: #d9534f;
}

/* --------------------------------------------------------------------------
   フォーム
   -------------------------------------------------------------------------- */
.p-contact {
	padding: 131px 0 200px;
}

.p-contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 784px);
	column-gap: 40px;
	align-items: start;
}

.p-contact__title {
	padding-top: 4px;
	font-size: 36px;
	font-weight: 700;
	line-height: 45px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.p-contact__lead {
	color: var(--contact-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: 0;
}

.p-contact-form {
	margin-top: 27px;
}

/* ハニーポット */
.p-contact-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.p-contact-form__alert {
	margin-bottom: 20px;
	padding: 16px 20px;
	border: 1px solid var(--c-pink);
	background: rgba(233, 142, 137, 0.1);
	color: var(--contact-error);
	font-size: 15px;
	line-height: 1.6;
}

.p-contact-form__alert[hidden] {
	display: none;
}

/* 行 */
.p-contact-form__row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 54px minmax(0, 463px);
	column-gap: 20px;
	align-items: start;
	padding: 20px 0;
}

.p-contact-form__row:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--contact-line);
}

.p-contact-form__label {
	grid-column: 1;
	padding-top: 17.5px;
	color: var(--contact-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 23px;
	letter-spacing: 0;
}

.p-contact-form__req {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 29px;
	padding: 0 10px;
	border-radius: 10px;
	background: var(--c-pink);
	color: var(--c-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.094em;
	white-space: nowrap;
}

.p-contact-form__row .p-contact-form__req {
	grid-column: 2;
	margin-top: 14.5px;
}

.p-contact-form__field {
	grid-column: 3;
	min-width: 0;
}

.p-contact-form__row--textarea .p-contact-form__label {
	padding-top: 0;
}

.p-contact-form__row--textarea .p-contact-form__req {
	margin-top: 0;
}

/* 入力欄 */
.p-contact-form__input,
.p-contact-form__select select {
	display: block;
	width: 100%;
	height: 58px;
	padding: 0 25px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--contact-input-bg);
	color: var(--contact-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.3s, background-color 0.3s;
}

.p-contact-form__textarea {
	height: 220px;
	padding-top: 14px;
	padding-bottom: 14px;
	resize: vertical;
}

.p-contact-form__input::placeholder {
	color: var(--contact-placeholder);
	opacity: 1;
}

.p-contact-form__input:focus,
.p-contact-form__select select:focus {
	outline: none;
	border-color: var(--c-blue);
	background: var(--c-white);
}

.p-contact-form__select {
	position: relative;
}

.p-contact-form__select select {
	padding-right: 56px;
	cursor: pointer;
}

.p-contact-form__select select:invalid {
	color: var(--contact-placeholder);
}

.p-contact-form__select option {
	color: var(--contact-text);
}

.p-contact-form__select-arrow {
	position: absolute;
	top: 50%;
	right: 25px;
	color: var(--contact-placeholder);
	font-size: 16px;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.p-contact-form__error {
	color: var(--contact-error);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.05em;
}

.p-contact-form__error:empty {
	display: none;
}

.p-contact-form__field .p-contact-form__error {
	margin-top: 8px;
}

.is-error .p-contact-form__input,
.is-error .p-contact-form__select select {
	border-color: var(--c-pink);
	background: #fdf3f2;
}

/* 同意・送信 */
.p-contact-form__submit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-top: 64px;
	padding: 30px 20px;
	background: rgba(233, 142, 137, 0.1);
}

.p-contact-form__agree {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
}

.p-contact-form__check {
	position: absolute;
	width: 26px;
	height: 26px;
	margin: 0;
	opacity: 0;
}

.p-contact-form__agree-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--contact-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0.028em;
	cursor: pointer;
}

.p-contact-form__agree-label a {
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.3s;
}

.p-contact-form__agree-label a:hover {
	color: var(--c-blue);
}

.p-contact-form__check-icon {
	position: relative;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
}

.p-contact-form__check-icon img {
	position: absolute;
	inset: 0;
	width: 26px;
	height: 26px;
}

.p-contact-form__check-on {
	opacity: 0;
	transition: opacity 0.2s;
}

.p-contact-form__check:checked + .p-contact-form__agree-label .p-contact-form__check-on {
	opacity: 1;
}

.p-contact-form__check:checked + .p-contact-form__agree-label .p-contact-form__check-off {
	opacity: 0;
}

.p-contact-form__check:focus-visible + .p-contact-form__agree-label .p-contact-form__check-icon {
	outline: 2px solid var(--c-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.p-contact-form__agree .p-contact-form__req {
	margin-top: 0;
}

.p-contact-form__error--center {
	margin-top: -8px;
	text-align: center;
}

.p-contact-form__btn {
	font-weight: 500;
}

.p-contact-form__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 1180px) {
	.p-contact__inner {
		grid-template-columns: 1fr;
		row-gap: 40px;
	}

	.p-contact__body {
		max-width: 784px;
	}
}

@media (max-width: 767px) {
	.p-contact {
		padding: 48px 0 100px;
	}

	.p-contact__inner {
		row-gap: 24px;
	}

	.p-contact__title {
		font-size: 26px;
		line-height: 1.4;
	}

	.p-contact__lead {
		font-size: 14px;
		line-height: 1.9;
		letter-spacing: 0.05em;
	}

	.p-contact-form {
		margin-top: 16px;
	}

	.p-contact-form__row {
		grid-template-columns: auto 1fr;
		column-gap: 12px;
		row-gap: 10px;
		padding: 18px 0;
	}

	.p-contact-form__label,
	.p-contact-form__row--textarea .p-contact-form__label {
		padding-top: 0;
		font-size: 15px;
		align-self: center;
	}

	.p-contact-form__row .p-contact-form__req {
		justify-self: start;
		margin-top: 0;
	}

	.p-contact-form__req {
		height: 24px;
		padding: 0 8px;
		border-radius: 8px;
		font-size: 13px;
	}

	.p-contact-form__field {
		grid-column: 1 / -1;
	}

	.p-contact-form__input,
	.p-contact-form__select select {
		height: 52px;
		padding-inline: 16px;
		font-size: 16px;
	}

	.p-contact-form__select select {
		padding-right: 44px;
	}

	.p-contact-form__select-arrow {
		right: 16px;
	}

	.p-contact-form__textarea {
		height: 200px;
	}

	.p-contact-form__submit {
		margin-top: 40px;
		padding: 24px 16px;
	}

	.p-contact-form__agree {
		gap: 10px;
	}

	.p-contact-form__agree-label {
		font-size: 15px;
		line-height: 1.6;
	}
}

/* --------------------------------------------------------------------------
   Contact Form 7 対応
   -------------------------------------------------------------------------- */
.p-contact-form .wpcf7-form-control-wrap {
	display: block;
}

.p-contact-form__select select.is-placeholder {
	color: var(--contact-placeholder);
}

/* エラー */
/* エラー文は行の下余白に重ねて表示（出し入れでレイアウトがずれないように） */
.p-contact-form__field {
	position: relative;
}

.p-contact-form .wpcf7-not-valid-tip {
	position: absolute;
	top: calc(100% + 1px);
	left: 0;
	display: block;
	font-size: 13px !important;
	line-height: 18px !important;
	color: var(--contact-error);
	font-weight: 500;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.p-contact-form .wpcf7-not-valid.p-contact-form__input,
.p-contact-form__select .wpcf7-not-valid {
	border-color: var(--c-pink);
	background: #fdf3f2;
}

.p-contact-form__agree .wpcf7-not-valid-tip {
	top: calc(100% + 1px);
	left: 50%;
	width: max-content;
	margin: 0;
	transform: translateX(-50%);
}

/* 同意チェック（書き出したチェックボックス画像を使用） */
.p-contact-form__agree .wpcf7-form-control-wrap {
	position: relative;
}

.p-contact-form__agree .wpcf7-list-item {
	margin: 0;
}

.p-contact-form__agree label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--contact-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0.028em;
	cursor: pointer;
}

.p-contact-form__agree input[type="checkbox"] {
	position: absolute;
	top: 50%;
	left: 0;
	width: 26px;
	height: 26px;
	margin: 0;
	opacity: 0;
	transform: translateY(-50%);
	cursor: pointer;
}

.p-contact-form__agree .wpcf7-list-item-label::before {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin-right: 8px;
	vertical-align: -7px;
	background: url("../../img/contact/check_default.svg") center / 26px 26px no-repeat;
}

.p-contact-form__agree input:checked + .wpcf7-list-item-label::before {
	background-image: url("../../img/contact/check_checked.svg");
}

.p-contact-form__agree input:focus-visible + .wpcf7-list-item-label::before {
	outline: 2px solid var(--c-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.p-contact-form__agree a {
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.3s;
}

.p-contact-form__agree a:hover {
	color: var(--c-blue);
}

.p-contact-form__agree > .p-contact-form__req {
	align-self: center;
}

/* 送信中 */
.p-contact-form.submitting .p-contact-form__btn {
	opacity: 0.6;
	pointer-events: none;
}

.p-contact-form .wpcf7-spinner {
	display: none;
}

.p-contact-form.submitting .wpcf7-spinner {
	display: block;
	margin: 0 auto;
}

/* 送信結果メッセージ */
.p-contact-form .wpcf7-response-output {
	margin: 24px 0 0 !important;
	padding: 16px 20px !important;
	border: 1px solid var(--c-pink) !important;
	background: rgba(233, 142, 137, 0.1);
	color: var(--contact-error);
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.p-contact-form.sent .wpcf7-response-output {
	border-color: var(--c-blue) !important;
	background: rgba(45, 152, 188, 0.08);
	color: var(--c-blue);
}

.p-contact-form.init .wpcf7-response-output:empty,
.p-contact-form .wpcf7-response-output[aria-hidden="true"]:empty {
	display: none;
}

@media (max-width: 767px) {
	.p-contact-form__agree label {
		font-size: 15px;
		line-height: 1.6;
	}

	.p-contact-form__agree .wpcf7-not-valid-tip {
		width: 100%;
		text-align: center;
	}
}

/* --------------------------------------------------------------------------
   送信完了
   -------------------------------------------------------------------------- */
/* デザインではパンくずなし */
.p-thanks-hero .c-breadcrumb {
	display: none;
}

.p-thanks {
	padding: 180px 0 200px;
	text-align: center;
}

.p-thanks__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 45px;
	letter-spacing: 0.02em;
}

.p-thanks__lead {
	margin-top: 30px;
	color: var(--c-blue);
	font-size: 24px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0;
}

.p-thanks__text {
	max-width: 710px;
	margin: 30px auto 0;
	color: var(--contact-text);
	font-size: 16px;
	line-height: 28px;
	letter-spacing: 0;
	text-align: left;
}

@media (max-width: 1024px) {
	.p-thanks__lead {
		line-height: 1.6;
	}
}

@media (max-width: 767px) {
	.p-thanks {
		padding: 80px 0 100px;
	}

	.p-thanks__title {
		font-size: 22px;
		line-height: 1.5;
	}

	.p-thanks__lead {
		margin-top: 20px;
		font-size: 16px;
		line-height: 1.7;
		text-align: left;
	}

	.p-thanks__text {
		margin-top: 20px;
		font-size: 14px;
		line-height: 1.9;
		letter-spacing: 0.05em;
	}
}
