@charset "UTF-8";
/* お問い合わせ（左ナビなし・中央1カラム） */

.page-contact .l-lower {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "head" "content";
	padding: 0 99px 68px 100px;
}
.page-contact .l-lower__head { margin-left: -65px; }
.page-contact .l-lower__side { display: none; }
.page-contact .l-lower__content {
	padding: 0;
	border-radius: 10px 10px 0 0;
}
.page-contact .l-lower__content::after { content: none; }

.p-contact { color: var(--navy); }

/* ---------- 冒頭 ---------- */
.p-contact__head {
	position: relative;
	min-height: 363px;
	padding: 61px 0 40px;
	text-align: center;
}
/* 見出しの中心はパネル左から605px（デザイン値） */
.p-contact__intro { width: 700px; margin-left: 255px; }
.p-contact__doctor {
	position: absolute;
	left: 117px;
	top: 48px;
	width: 119px;
	height: 268px;
	object-fit: contain;
}
.p-contact__catch {
	font-family: var(--ff-head);
	font-weight: 700;
	font-size: 40px;
	line-height: 53px;
}
.p-contact__catch--sub { margin-top: 24px; }
.p-contact__notice { margin-top: 24px; font-size: 16px; line-height: 24px; }

/* ---------- 入力欄 ---------- */
.p-contact__row {
	display: grid;
	grid-template-columns: 311px 669px;
	align-items: start;
	padding: 25px 39px 27px 62px;
	border-bottom: 1px solid var(--gray-line);
}
.p-contact__row:first-child { border-top: 1px solid var(--gray-line); }
.p-contact__row--textarea { padding-top: 31px; padding-bottom: 30px; }
.p-contact__label-wrap {
	display: grid;
	grid-template-columns: 180px auto;
	align-items: center;
	padding-top: 12px;
}
.p-contact__row--textarea .p-contact__label-wrap { padding-top: 7px; }
.p-contact__label { font-weight: 700; font-size: 20px; line-height: 28px; }
.p-contact__badge {
	display: grid;
	place-items: center;
	width: 73px;
	height: 33px;
	border: 1px solid var(--navy);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
}
.p-contact__badge--req { border-color: var(--accent); background: var(--accent); color: #fff; }

/* 項目ごとのエラー（M14）：ふわっと表示 */
.p-contact__error {
	grid-column: 1 / -1;
	display: none;
	margin-top: 15px;
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	color: #e52c2f;
}
.is-error .p-contact__error { display: block; animation: contact-fade .3s ease-out both; }

.p-contact__input {
	display: block;
	width: 100%;
	height: 58px;
	padding: 12px 18px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--gray-bg);
	font-size: 20px;
	line-height: 1.5;
	color: var(--navy);
	transition: border-color .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.p-contact__textarea { height: 460px; resize: none; }
.p-contact__input:focus {
	outline: none;
	border-color: var(--navy);
	background: #fff;
}

/* ---------- 個人情報・同意・送信 ---------- */
.p-contact__bottom { padding: 26px 38px 50px 39px; text-align: center; }
.p-contact__privacy {
	padding: 26px 36px 28px;
	border-radius: 10px;
	background: var(--gray-bg);
	font-size: 20px;
	line-height: 28px;
	text-align: left;
}
.p-contact__privacy p + p { margin-top: 18px; }
.p-contact__privacy-title { font-weight: 700; }
.p-contact__privacy-title + p { margin-top: 18px !important; }

.p-contact__agree {
	position: relative;
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 109px;
	margin-top: 26px;
	padding: 20px 40px 20px 36px;
	border: 1px solid var(--navy);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	text-align: left;
	cursor: pointer;
}
.p-contact__agree-input { position: absolute; opacity: 0; width: 35px; height: 35px; margin: 0; cursor: pointer; }
.p-contact__agree-box {
	display: grid;
	place-items: center;
	flex: none;
	width: 35px;
	height: 35px;
	border: 1px solid var(--navy);
	border-radius: 5px;
	background: #fff;
	color: #fff;
}
.p-contact__agree-box svg { width: 33px; height: 33px; opacity: 0; }
.p-contact__agree-input:checked + .p-contact__agree-box { background: var(--navy); }
.p-contact__agree-input:checked + .p-contact__agree-box svg { opacity: 1; }
.p-contact__agree-input:focus-visible + .p-contact__agree-box { outline: 3px solid var(--accent); outline-offset: 3px; }

.p-contact__submit.c-btn {
	--btn-w: 399px;
	margin-top: 26px;
}
/* 同意するまでグレーで押せない（M12：すぐ切り替え） */
.p-contact__submit.c-btn:disabled {
	background: var(--gray-line);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	transition: none;
}
.p-contact__submit.c-btn:disabled .c-btn__arrow { transform: none; }
.p-contact__submit.is-sending { opacity: .7; }
.p-contact__hint { margin-top: 18px; font-size: 20px; line-height: 28px; }

.p-contact__status { display: grid; justify-items: center; }
.p-contact__msg {
	margin-top: 27px;
	padding: 8px 12px;
	border: 1px solid;
	border-radius: 10px;
	background: var(--orange-soft);
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
}
.p-contact__msg--error { border-color: #e52c2f; color: #e52c2f; animation: contact-fade .3s ease-out both; }
/* 送信完了（M13）：枠の高さが伸びて開きながらふわっと */
.p-contact__msg--done { border-color: var(--orange); color: var(--orange); animation: contact-open .4s var(--ease-out) both; }
.p-contact__msg[hidden] { display: none; }

@keyframes contact-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes contact-open {
	from { opacity: 0; clip-path: inset(0 0 100% 0 round 10px); }
	to { opacity: 1; clip-path: inset(0 0 0 0 round 10px); }
}

@media (max-width: 1199px) and (min-width: 960px) {
	.page-contact .l-lower { padding-inline: 40px; }
	.page-contact .l-lower__head { margin-left: 0; }
	.p-contact__row { grid-template-columns: 280px 1fr; padding-inline: 40px; }
	.p-contact__intro { width: auto; margin-left: 200px; padding-right: 20px; }
}

/* ---------- SP ---------- */
@media (max-width: 959px) {
	.page-contact .l-lower { display: block; padding: 0 20px 27px; background: var(--gray-sp); }
	.page-contact .l-lower__head { margin: 0 -20px; padding-bottom: 32px; }
	.page-contact .l-lower__content { max-width: 362px; margin: 0 auto; border-radius: 10px; }

	.p-contact__head {
		display: grid;
		grid-template-columns: 51px 1fr;
		column-gap: 0;
		min-height: 0;
		padding: 20px 22px 0;
		text-align: left;
	}
	.p-contact__doctor { position: static; width: 51px; height: 114px; }
	.p-contact__intro { display: contents; width: auto; margin: 0; }
	.p-contact__catch {
		grid-column: 2;
		margin: 8px 0 0;
		font-size: 18px;
		line-height: 28px;
		text-align: center;
		letter-spacing: -.02em;
	}
	.p-contact__catch:first-child { grid-row: 1; align-self: start; }
	.p-contact__catch--sub { grid-row: 1; align-self: end; margin: 0 0 8px; }
	.p-contact__notice { grid-column: 1 / -1; margin: 18px 0 0; font-size: 13px; line-height: 24px; }

	.p-contact__fields { padding: 14px 23px 0; }
	.p-contact__row,
	.p-contact__row:first-child { display: block; padding: 0; border: 0; }
	.p-contact__row + .p-contact__row { margin-top: 15px; }
	.p-contact__label-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding: 0; }
	.p-contact__row--textarea .p-contact__label-wrap { padding: 0; }
	.p-contact__label { font-size: 16px; }
	.p-contact__badge { width: 46px; height: 28px; font-size: 16px; }
	.p-contact__error { flex-basis: 100%; margin-top: 7px; font-size: 16px; }
	.p-contact__control { margin-top: 8px; }
	.p-contact__input {
		height: 58px;
		border: 1px solid var(--navy);
		background: #fff;
		font-size: 16px;
	}
	.p-contact__textarea { height: 221px; }
	.p-contact__input:focus { border-width: 2px; padding: 11px 17px; background: #f8f9fb; }

	.p-contact__bottom { padding: 15px 23px 22px; }
	.p-contact__privacy { padding: 19px 13px 20px; font-size: 16px; line-height: 30px; text-align: justify; }
	.p-contact__privacy p + p, .p-contact__privacy-title + p { margin-top: 8px !important; }
	.p-contact__privacy p:last-child { margin-top: 30px !important; }
	.p-contact__agree {
		align-items: flex-start;
		gap: 7px;
		min-height: 0;
		margin-top: 15px;
		padding: 13px 13px 13px 13px;
		font-size: 16px;
		line-height: 30px;
		text-align: justify;
	}
	.p-contact__agree-input, .p-contact__agree-box { width: 27px; height: 27px; }
	.p-contact__agree-box svg { width: 25px; height: 25px; }

	.p-contact__submit.c-btn { --btn-w: 317px; --btn-fz: 15px; --btn-arrow-w: 10px; --btn-arrow-r: 24px; min-height: 56px; margin-top: 15px; }
	.p-contact__hint { margin-top: 15px; font-size: 13px; line-height: 1.4; text-align: left; }
	.p-contact__msg { width: 100%; margin-top: 15px; font-size: 13px; line-height: 17px; }
	.p-contact__msg--done { font-size: 13px; }
}

/* PC：見出し下から白カードまで（Figma y=267） */
@media (min-width: 960px) { .page-contact .l-lower__content { margin-top: 13px; } }
