@charset "UTF-8";

/*====================================

	ウィンドウ型のモーダル

====================================*/

.win_modal_area {
	position: fixed;
	inset: 0;
	z-index: 300;
	pointer-events: none;
}

.win_modal {
	position: fixed;
	min-width: 280px;
	min-height: 200px;
	background: #fff;
	overflow: hidden;
	pointer-events: auto;
	cursor: url("/common/images/pointer_def.png") 1 0, auto;
	border: 2px solid #000;
	box-shadow: 10px 10px 0px rgba(0, 0, 0, .3);
}
.win_modal[hidden] {
	display: none;
}

.win_modal .modal-titlebar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 44px;
	background: #f5f5f5;
	border-bottom: 1px solid #000;
	cursor: move;
}
.win_modal .modal-open {
	position: absolute;
	top: 12px;
	right: 44px;
	z-index: 2;
	line-height: 1;
	cursor: url("/common/images/pointer_hover.png") 16 0, pointer;
}
.win_modal .modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	z-index: 2;
	line-height: 1;
	cursor: url("/common/images/pointer_hover.png") 16 0, pointer;
}
.win_modal .modal-open img,
.win_modal .modal-close img {
	width: 20px;
	height: auto;
}
.win_modal .modal-inner {
	position: absolute;
	top: 44px;
	left: 0;
	right: 16px;
	bottom: 0;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 20px;
	scrollbar-width: none;
}
.win_modal .modal-inner::-webkit-scrollbar {
	display: none;
}

.win_modal .modal-scrollbar {
	position: absolute;
	top: 44px;
	right: 0;
	bottom: 0;
	width: 16px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-left: 1px solid #000;
}
.win_modal .modal-scrollbar .ws-btn {
	flex: none;
	width: 100%;
	height: 16px;
	margin: 0;
	padding: 0;
	background-color: #fff;
	border: none;
	cursor: url("/common/images/pointer_hover.png") 16 0, pointer;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px 8px;
}
.win_modal .modal-scrollbar .ws-up {
	border-bottom: 1px solid #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='5,2 9,8 1,8' fill='%23000'/%3E%3C/svg%3E");
}
.win_modal .modal-scrollbar .ws-down {
	border-top: 1px solid #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='1,2 9,2 5,8' fill='%23000'/%3E%3C/svg%3E");
}
.win_modal .modal-scrollbar .ws-track {
	position: relative;
	flex: 1 1 auto;
}
.win_modal .modal-scrollbar .ws-thumb {
	position: absolute;
	left: 0;
	width: 100%;
	background: #000;
	cursor: url("/common/images/pointer_hover.png") 16 0, pointer;
}

.win_modal .modal-resize-handle {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 18px;
	height: 18px;
	z-index: 2;
	cursor: nwse-resize;
	background-image: repeating-linear-gradient(
		135deg,
		transparent 0 2px,
		#999 2px 3px,
		transparent 3px 5px
	);
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: 12px 12px;
}
.win_modal.is-dragging {
	user-select: none;
}
html.is-scroll-locked,
html.is-scroll-locked body {
	overflow: hidden;
}
.win_modal.is-dragging iframe {
	pointer-events: none;
}
