/* お問い合わせフォームの同意モーダル */

/* フォーム内の「確認する」欄（送信ボタンの手前） */
.jhs-consent-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75em 1.25em;
	max-width: 40em;
	margin: 1.5em auto;
	padding: 1em 1.25em;
	border: 1px solid #e3b4b4;
	border-radius: 6px;
	background: #fff6f6;
	color: #333;
	font-size: 0.95rem;
	line-height: 1.6;
	text-align: left;
}

.jhs-consent-row.is-agreed {
	border-color: #b9d8bf;
	background: #f3faf4;
}

.jhs-consent-row__text {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0;
}

.jhs-consent-row__mark {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: #c0392b;
	color: #fff;
	font-weight: bold;
	font-size: 0.85em;
}

.jhs-consent-row.is-agreed .jhs-consent-row__mark {
	background: #2e7d32;
}

.jhs-consent-row__btn,
.jhs-consent__btn {
	min-height: 44px;
	padding: 0.6em 1.4em;
	border: 1px solid var(--vk-color-primary, #8160fc);
	border-radius: 999px;
	background: var(--vk-color-primary, #8160fc);
	color: #fff;
	font-size: 0.95rem;
	font-weight: bold;
	line-height: 1.4;
	cursor: pointer;
}

.jhs-consent-row.is-agreed .jhs-consent-row__btn,
.jhs-consent__btn--ghost {
	background: #fff;
	color: var(--vk-color-primary, #8160fc);
}

.jhs-consent-row__btn:focus-visible,
.jhs-consent__btn:focus-visible,
.jhs-consent__x:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

/* 同意前は送信ボタンが押せないことを見た目でも示す（CF7 が disabled にする） */
.wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* モーダル本体 */
.jhs-consent {
	width: min(720px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: none;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	color: #333;
}

.jhs-consent::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.jhs-consent__panel {
	display: flex;
	flex-direction: column;
	max-height: inherit;
}

.jhs-consent__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 1em 1.25em;
	border-bottom: 1px solid #e5e5e5;
}

.jhs-consent__title {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-size: 1.15rem;
	line-height: 1.4;
}

.jhs-consent__title::before,
.jhs-consent__title::after {
	content: none;
}

.jhs-consent__x {
	flex: none;
	width: 44px;
	height: 44px;
	border: none;
	background: none;
	color: #666;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.jhs-consent__body {
	overflow-y: auto;
	padding: 1.25em;
	font-size: 0.95rem;
	line-height: 1.8;
}

/* 以前の本文は Word から貼った書体・大きさの指定が残っているので、サイトの文字に合わせる */
.jhs-consent__body * {
	font-family: inherit !important;
	font-size: inherit !important;
}

.jhs-consent__body ol,
.jhs-consent__body ul {
	padding-left: 1.5em;
}

.jhs-consent__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75em;
	padding: 1em 1.25em;
	border-top: 1px solid #e5e5e5;
}

@media (max-width: 575.98px) {
	.jhs-consent__foot {
		justify-content: stretch;
	}

	.jhs-consent__foot .jhs-consent__btn {
		flex: 1 1 100%;
	}
}
