/****************************************
*     PSModal
****************************************/
/****************************************
*     Common
****************************************/
.ps-display-none { display: none; }

/****************************************
*     Mask
****************************************/
.ps-mask {
	background: rgba(0, 0, 0, 0.3);
	position: fixed; inset: 0;
}

.ps-mask-blur {
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	position: fixed; inset: 0;
}

/****************************************
*     Msg
****************************************/
.ps-msg {
	padding: 20px 30px;
	min-width: 320px; height: auto;
	background: #fff;
	border: none; border-radius: 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
	display: none;
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
	overflow: hidden;
	box-sizing: border-box;
	-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
/* Close */
.ps-msg .ps-btn-close {
	padding: 0;
	color: #999; font-size: 2.0rem;
	background: transparent;
	border: none;
	position: absolute; top: 5px; right: 15px;
	cursor: pointer;
	transition: color 0.3s ease, transform 0.3s ease;
}
.ps-msg .ps-msg-close:hover {
	color: #5f666d;
	/*transform: rotate(180deg);*/
}
/* Contents */
.ps-msg .ps-msg-contents {
	padding: 15px;
	min-height: 100px; max-height: calc(100vh - 150px);
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
	overflow: auto;
}
.ps-msg .ps-msg-contents .contents{
	color: #222;
	font-size: 1.4rem; font-weight: 700;
	text-align: center;
	line-height: 1.2;
}
.ps-msg .ps-msg-contents .desc{
	color: #8a929b;
	font-size: 1.1rem; font-weight: 500;
	line-height: 1.2;
}

.ps-msg .ps-msg-btns {
	padding: 15px 0 0 0;
	height: 50px;
	line-height: 1;
	display: flex; justify-content: center; align-items: center; gap: 10px;
	box-sizing: border-box;
}

/****************************************
*     Modal
****************************************/
.ps-modal {
	padding: 0 20px 10px 20px;
	width: auto; min-width: 320px; max-width: calc(100vw - 20px);
	height: auto; max-height: calc(100vh - 40px);
	background: #fff;
	border: none; border-radius: 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
	display: none;
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
	overflow: auto;
	box-sizing: border-box;
	-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.ps-modal .modal-header {
	margin: 0 0 20px 0; padding: 20px 0 0 0;
	height: 60px;
	color: #222;
	font-size: 1.4rem; font-weight: 700;
	line-height: 40px;
	background: #fff;
	border-bottom: 1px solid #ccc;
	position: sticky; top: 0;
}
.ps-modal .modal-header .modal-close-top {
	color: #999; font-size: 2.0rem;
	background: transparent;
	border: none;
	position: absolute; top: 50%; right: 0; transform: translateY(calc(-50% + 10px));
	cursor: pointer;
}
.ps-modal .modal-footer {
	margin: 20px 0 0 0; padding: 10px 0;
	border-top: 1px solid #ccc;
}


/****************************************
*     Button
****************************************/
.ps-btn {
	padding: 14px 28px;
	min-width: 150px;
	color: #5f666d;
	font-size: 1.0rem; font-weight: 700;
	background: #f1f3f5;
	border: none; border-radius: 999px;
	cursor: pointer;
	transition: .15s;
}
.ps-btn:hover { transform: translateY(-2px); }
.ps-btn-gray { color: #fff; background: #808080; }
.ps-btn-blue { color: #fff; background: #4873B9; }
.ps-btn-red { color: #fff; background: #f2426d; }












/****************************************
*     Modal Form Layout
****************************************/
form.modal-form-layout-column {
	display: flex;
	flex-direction: column; gap: 15px
}
form.modal-form-layout-column label.field-name {
	margin-bottom: 3px;
	color: #666;
	font-size: 0.9rem; font-weight: 700;
	display: block;
}
form.modal-form-layout-column label.field-name.needed::after {
	content: ' *';
	margin-left: 3px;
	color: #f08000;
	font-size: 0.9rem;
}
form.modal-form-layout-column .form-row {}
form.modal-form-layout-column .form-row-inline { display: flex;  flex-direction: row; gap: 10px; }
form.modal-form-layout-column .form-row-inline > div { min-width: 0; flex: 1; }


/****************************************
*     Form
****************************************/
/* Input */
input.fc-d {
	padding: 0 10px;
	height: 36px;
	color: #999;
	font-size: 1.0rem; font-weight: 500;
	background: #fff;
	border: 1px solid #ccc; border-radius: 4px;
}
input.fc-d::placeholder { color: #ccc; }
input.fc-d:focus { color: #222; border: 1px solid #222; }
input.fc-d[readonly], input.fc-d[disabled] { background: rgba(200, 200, 200, 0.2); }
/* Input - DatePicker */
input.fc-d-datepicker {
	padding: 0 10px;
	height: 36px;
	color: #999;
	font-size: 1.0rem; font-weight: 500;
	background: #fff;
	background-image: url('../svg/fc_d_datepicker.svg');
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: calc(100% - 5px) 50%;
	border: 1px solid #ccc; border-radius: 4px;
	position: relative;
	cursor: pointer;
}
input.fc-d-datepicker:focus {
	color: #222;
	background-image: url('../svg/fc_d_datepicker_focus.svg');
	border: 1px solid #222;
}
/* Textarea */
textarea.fc-d {
	padding: 0 10px;
	min-height: 100px;
	color: #999;
	font-size: 1.0rem; font-weight: 500;
	background: #fff;
	border: 1px solid #ccc; border-radius: 4px;
	resize: none;
}
textarea.fc-d::placeholder { color: #ccc; }
textarea.fc-d:focus { color: #222; border: 1px solid #222; }
textarea.fc-d[readonly] { background: rgba(200, 200, 200, 0.2); }
/* Select */
select.fc-d{
	padding: 0 25px 0 10px;
	height: 36px;
	color: #999;
	font-size: 1.0rem; font-weight: 500;
	background-image: url('../img/fc/fc_d_select.svg');
	background-size: 10px 10px;
	background-repeat: no-repeat;
	background-position: calc(100% - 5px) 50%;
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	border: 1px solid #ccc; border-radius: 4px;
}
select.fc-d:focus{
	color: #222;
	background-image: url('../img/fc/fc_d_select_focus.svg');
	border: 1px solid #222;
}
select.fc-d[disabled] { background: rgba(200, 200, 200, 0.2); }
/* CheckBox & Radio */
label.fc-d{
	height: 36px;
	display: inline-block;
	cursor: pointer;
}
label.fc-d > input[type=checkbox], label.fc-d > input[type=radio]{
	position: absolute;
	left: -20px;
}
label.fc-d > input[type=checkbox] + span, label.fc-d > input[type=radio] + span{
	padding: 0 10px 0 35px;
	height: 30px;
	color: #666;
	font-size: 1.0rem; line-height: 36px;
	white-space: nowrap;
	background-size: 24px 24px;
	background-repeat: no-repeat;
	background-position: 5px calc(50% + 3px);
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
label.fc-d > input[type=checkbox] + span{
	background-image: url('../img/fc/fc_d_checkbox.svg');
}
label.fc-d > input[type=radio] + span{
	background-image: url('../img/fc/fc_d_radio.svg');
}
label.fc-d > input[type=checkbox]:checked + span{
	color: #333;
	background-image: url('../img/fc/fc_d_checkbox_checked.svg');
}
label.fc-d > input[type=radio]:checked + span{
	color: #333;
	background-image: url('../img/fc/fc_d_radio_checked.svg');
}
