/* =========================================================
   閉店お知らせポップアップ（ウェルベース山形）
   ========================================================= */

/* 表示中は背景のスクロールをロック */
.wb-popup-lock,
.wb-popup-lock body {
	overflow: hidden;
}

.wb-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.wb-popup.is-open {
	opacity: 1;
}
.wb-popup[hidden] {
	display: none;
}

.wb-popup * {
	box-sizing: border-box;
}

/* 背景オーバーレイ */
.wb-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

/* 本体 */
.wb-popup__dialog {
	position: relative;
	width: min(680px, 100%);
	max-height: min(82vh, 860px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	transform: translateY(16px);
	transition: transform 0.3s ease;
}
.wb-popup.is-open .wb-popup__dialog {
	transform: translateY(0);
}

/* 閉じる（×） */
.wb-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}
.wb-popup__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ヘッダー */
.wb-popup__header {
	flex-shrink: 0;
	padding: 26px 56px 20px 28px;
	background: #001346;
	color: #fff;
}
.wb-popup__badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 10px;
	background: #c0392b;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	border-radius: 3px;
}
.wb-popup__title {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.5;
}

/* 本文（スクロール領域） */
.wb-popup__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 22px 28px;
	color: #333;
	font-size: 15px;
	line-height: 1.9;
	text-align: left;
}
.wb-popup__body p {
	margin: 0 0 1em;
}
.wb-popup__body strong {
	color: #c0392b;
	font-weight: 700;
}

.wb-popup__date {
	color: #666;
	font-size: 13px;
}

.wb-popup__ki {
	text-align: center;
	font-weight: 700;
	margin: 1.4em 0 0.8em;
}

/* 記書き（番号付き項目） */
.wb-popup__list {
	margin: 0 0 1em;
	padding: 18px 20px;
	background: #f5f7f8;
	border-radius: 6px;
}
.wb-popup__list dt {
	font-weight: 700;
	color: #001346;
	margin: 1em 0 0.3em;
}
.wb-popup__list dt:first-child {
	margin-top: 0;
}
.wb-popup__list dd {
	margin: 0 0 0 1em;
}
.wb-popup__list ul {
	margin: 0;
	padding-left: 1.3em;
}
.wb-popup__list li {
	margin-bottom: 0.3em;
}

.wb-popup__ijo {
	text-align: right;
	margin-top: 1em;
}

.wb-popup__sign {
	text-align: right;
	margin-bottom: 0;
	font-weight: 700;
}

/* フッター（閉じるボタン） */
.wb-popup__footer {
	flex-shrink: 0;
	padding: 14px 28px;
	border-top: 1px solid #e5e5e5;
	text-align: center;
	background: #fff;
}
.wb-popup__btn {
	min-width: 180px;
	padding: 12px 32px;
	border: 0;
	border-radius: 999px;
	background: #001346;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.wb-popup__btn:hover {
	opacity: 0.85;
}

/* 画面が狭い場合（念のためのフォールバック） */
@media (max-width: 600px) {
	.wb-popup {
		padding: 12px;
	}
	.wb-popup__header {
		padding: 20px 48px 16px 20px;
	}
	.wb-popup__title {
		font-size: 18px;
	}
	.wb-popup__body {
		padding: 16px 20px;
		font-size: 14px;
	}
}
