/**
 * 医療従事者確認モーダル
 */

body.medical-gate-target:not(.medical-gate-accepted) {
	overflow: hidden;
}

/* 画面全体の暗い背景 */
.medical-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 30px;
	background: rgb(0 0 0 / 90%);
	color: #fff;
}

/* 確認済みの場合は非表示 */
body.medical-gate-accepted .medical-gate {
	display: none;
}

/* 背景パネルをなくして文字だけにする */
.medical-gate__panel {
	box-sizing: border-box;
	width: min(100%, 390px);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
}

/* 説明文 */
.medical-gate__description {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
}

/* 質問文 */
.medical-gate__title {
	margin: 30px 0 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

/* はい・いいえ */
.medical-gate__buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 60px;
	margin: 0;
	padding: 0;
}

/* テーマ側のボタン装飾を解除 */
.medical-gate__button {
	appearance: none;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

/* ホバー時も装飾を付けない */
.medical-gate__button:hover,
.medical-gate__button:focus {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	opacity: 0.7;
}

/* キーボード操作時の目印 */
.medical-gate__button:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 5px;
}

/* スマートフォン */
@media (max-width: 600px) {
	.medical-gate {
		padding: 25px;
	}

	.medical-gate__panel {
		width: min(100%, 360px);
	}

	.medical-gate__description {
		font-size: 14px;
		line-height: 1.6;
	}

	.medical-gate__title {
		margin-top: 25px;
		font-size: 20px;
	}

	.medical-gate__buttons {
		gap: 50px;
	}

	.medical-gate__button {
		font-size: 19px;
	}
}