/* OHDr お知らせポップアップ（フロント） */

:root {
	--ohdp-accent: #2a7de1;              /* ボタン等のアクセント色。ブランド色に変更可 */
	--ohdp-overlay: rgba(20, 32, 50, .62);
	--ohdp-radius: 18px;
	--ohdp-z: 999999;                     /* テーマ/Elementorのヘッダーより前面に */
}

html.ohdp-lock,
html.ohdp-lock body {
	overflow: hidden;
}

.ohdp {
	position: fixed;
	inset: 0;
	z-index: var(--ohdp-z);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity .25s ease;
}

.ohdp[hidden] {
	display: none;
}

.ohdp.is-open {
	opacity: 1;
}

.ohdp__overlay {
	position: absolute;
	inset: 0;
	background: var(--ohdp-overlay);
	cursor: pointer;
}

.ohdp__panel {
	position: relative;
	background: #fff;
	border-radius: var(--ohdp-radius);
	max-width: 560px;
	width: 100%;
	max-height: 88vh;
	max-height: 88dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 46px 28px 26px;
	text-align: center;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
	transform: translateY(16px) scale(.97);
	transition: transform .25s ease;
	box-sizing: border-box;
}

.ohdp.is-open .ohdp__panel {
	transform: none;
}

.ohdp__x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	background: #e9edf2 !important;   /* テーマのボタン背景色に負けないよう固定 */
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: #33404e !important;        /* テーマのボタン文字色(白)対策 */
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ohdp__x:hover,
.ohdp__x:focus {
	background: #d8dfe7 !important;
}

.ohdp__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ohdp__icon svg {
	width: 40px;
	height: 40px;
	display: block;
}

/* アイコン種別ごとの配色 */
.ohdp__icon--info     { color: #2a7de1; background: #e8f1fd; }
.ohdp__icon--alert    { color: #dd4b4b; background: #fdecec; }
.ohdp__icon--calendar { color: #1f9d8b; background: #e5f6f3; }
.ohdp__icon--bell     { color: #d98f14; background: #fdf3e0; }
.ohdp__icon--medical  { color: #2a7de1; background: #e8f1fd; }

.ohdp__title {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.45;
	color: #1c2733;
	font-weight: 700;
}

.ohdp__body {
	font-size: 15px;
	line-height: 1.9;
	color: #3a4653;
	text-align: left;
	margin: 0 0 20px;
}

.ohdp__btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	border-radius: 999px;
	background: var(--ohdp-accent);
	color: #fff !important;            /* テーマのリンク色に負けないよう固定 */
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 14px;
}

.ohdp__btn:hover {
	opacity: .88;
}

.ohdp__check {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	color: #5a6673;
	margin: 0 0 12px;
	cursor: pointer;
}

.ohdp__check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--ohdp-accent);
}

.ohdp__close {
	border: 1px solid #9fadbb;
	background: #f2f5f8 !important;   /* テーマのボタン背景色対策 */
	color: #2c3a49 !important;        /* テーマのボタン文字色(白)対策 */
	border-radius: 999px;
	padding: 11px 34px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ohdp__close:hover,
.ohdp__close:focus {
	background: #e4e9ef !important;
	border-color: #8494a5;
}

@media (max-width: 600px) {
	.ohdp {
		padding: 12px;
	}
	.ohdp__panel {
		padding: 42px 20px 22px;
		max-height: 92vh;
		max-height: 92dvh;
	}
	.ohdp__title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ohdp,
	.ohdp__panel {
		transition: none;
	}
}
