@charset "utf-8";

:root {
  --modal-base-color: #0f3961 !important;
  --modal-sub-color: #315a81 !important;
  --modal-bg-color :#e6e5ef !important;

  --pale-gray : #f5f5f5 !important;
  --line-gray :#ccc !important;
}

*{margin:0; padding:0; box-sizing: border-box; }

body.bgModal
{
        line-height: 2;
}


body.bgModal a:link{
	text-decoration: none;
	transition: .3s ease-in-out;
}
body.bgModal a:visited {
	text-decoration: none;
}
/*body.bgModal a:hover,
body.bgModal .mdClose:hover
{
	opacity: 0.5;
	cursor: pointer;
	transition: .3s ease-in-out;
}*/


body.scroll_hidden {overflow:hidden;}

.modal-head {
	background-color:var(--modal-base-color);
	position: sticky;
	top:0;
	left:0;
	height:50px;
	width:100%;
	z-index: 999;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.modal-head h1 {
	color:#fff;
	font-size:20px;
	position: absolute;
	top:5px;
	left:10px;
}
.is_sp .modal-head h1 {
	color:#fff;
	font-size:120%;
	top:8px;
}
body.android-access .modal-head h1
{
	top:6px;
}


.modal-head .mdClose
{
	position: absolute;
	top: 7px;
	right: 7px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	background-color: #d72828;
	border-radius: 3px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
}
.modal-head .mdClose i
{
	color: #fff;
	font-size: 22px;
	line-height: 22px;
}
body.android-access .modal-head .mdClose i
{
	top: 2px;
}
.modal-head .mdClose:hover {cursor: pointer;}
.modal-main
{
	margin:0;
	padding:10px;
	padding-top:10px;
	padding-bottom:10px;
	background-color:var(--modal-bg-color);
}
/* overflowバグ対策 */
/*
.modal-main::after
{
	display: block;
	width: 1px;
	height: 10px;
	content: '';
}
*/

body.bgModal input[type="file"]
{
	display: none;
}

/*body.bgModal input:focus,
body.bgModal textarea:focus
{
	outline: none;
	box-shadow: 0px 0px 3px 0px #333 !important;
	background: #f5f5f5 !important;
}*/
body.bgModal select:focus-within
{
	outline: none;
	box-shadow: 0px 0px 3px 0px #333 !important;
	background: #f5f5f5 !important;
}

body.bgModal.iphone-access input[type="text"]::placeholder
{
	line-height: normal;
	position: relative;
	top: -4px;
}

body.bgModal
{
	scrollbar-color: var(--modal-sub-color) var(--modal-bg-color);
}
.modal-scroll::-webkit-scrollbar-thumb
{
	background: var(--modal-sub-color);
}


body.bgModal.is_pc #mdContents
{
	width:1000px;
	height:70%;
}
body.bgModal.is_tab #mdContents
{
	width:95%;
	height:70%;
}
body.bgModal.is_sp #mdContents
{
	width:95%;
	height:90%;
}


body.bgModal .modal-scroll
{
	overflow: auto;
	background: #bfbfbf;
}


/* pc-break */
body.bgModal .pc-break
{
	display: block;
}
body.bgModal.is_sp .pc-break
{
	display: none;
}
/* sp-break */
body.bgModal .sp-break
{
	display: none;
}
body.bgModal.is_sp .sp-break
{
	display: block;
}


.modal-footer
{
	background-color: #c5c4d5;
	padding: 10px 20px 10px 20px;
	position: sticky;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}


/* ファイル選択 */
body.bgModal .input-form-file-area > a
{
	display: inline-block;
	line-height: 16px;
	margin: 0;
	margin-top: 10px;
	padding: 0;
	color: #1e50a2;
	text-decoration: underline;
}
body.bgModal .input-form-file-drag-area {
	cursor: pointer;
	background-color: var(--pale-gray);
	border: dashed 2px var(--line-gray);
	border-radius: 2px;
	text-align: center;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	align-content: space-around;
	flex-wrap: wrap;
}
body.bgModal .input-form-file-drag-inner {
	position: relative;
	top: 0;
}
body.bgModal .input-form-file-drag-inner .fa {
	color: var(--line-gray) !important;
	font-size: 60px !important;
}
body.bgModal .input-form-file-drag-inner p.input-form-file-drag-msg-area {
	color: var(--line-gray);
	margin: 0;
	font-weight: normal;
	padding: 0;
	margin-top: 5px;
}
body.bgModal.is_sp .input-form-file-drag-area {
	height: 80px;
}
body.bgModal.is_sp .input-form-file-drag-inner .fa {
	font-size: 40px !important;
}
body.bgModal .input-form-file-drag-inner p.input-form-file-drag-msg-area .for-sp
{
	display: none !important;
}
body.bgModal .input-form-file-drag-inner p.input-form-file-drag-msg-area .for-pc
{
	display: block !important;
}
body.bgModal.is_sp .input-form-file-drag-inner p.input-form-file-drag-msg-area .for-sp
{
	display: block !important;
}
body.bgModal.is_sp .input-form-file-drag-inner p.input-form-file-drag-msg-area .for-pc
{
	display: none !important;
}
body.bgModal .input-form-file-drag-inner input[type="file"] {
	opacity: 0.5;
	position: relative;
	top: 0;
	left: 0;
	display: contents;
}
body.bgModal .input-form-file-drag-inner .input-form-drag-msg1 {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 16px;
}
body.bgModal .input-form-file-drag-inner .input-form-drag-msg2 {
	margin: 0;
	padding: 0;
	margin-top: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 14px;
}

/* 最大化アイコンなど */
body.bgModal .modal-head a.multi-btn
{
	display: flex;
	position: absolute;
	top: 7px;
	right: 57px;
	height: 36px;
	width: 36px;
	background: var(--modal-sub-color);
	border-radius: 3px;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	transition: unset;
}
body.bgModal .modal-head a.multi-btn i.fa-square-full,
body.bgModal .modal-head a.multi-btn i.fa-window-restore
{
	color: #fff;
	font-size: 18px;
	line-height: 18px;
}
body.bgModal.android-access .modal-head a.multi-btn i.fa-square-full,
body.bgModal.android-access .modal-head a.multi-btn i.fa-window-restore
{
	top: 0px;
}
body.bgModal .modal-head a.multi-btn.modal-minimize
{
	/*display: none;*/
	visibility: hidden;
}

body.bgModal #mdContents.modal-maximize-on
{
	width:100% !important;
	height:100% !important;
}

body.bgModal #mdContents.scroll-auto
{
	overflow: auto;
}
body.bgModal #mdContents.scroll-auto .scroll-inner
{
	overflow: unset;
}

body.bgModal #default-modal-close-btn
{
	color: #fff;
	border-radius: 3px;
	padding: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 40px;
	z-index: 2;
}
body.bgModal #default-modal-close-btn.inside
{
	background: rgba(0, 0, 0, 0.15);
	border-radius: 50px;
	margin-top: 5px;
	margin-left: -5px;
}

body.bgModal .modal-close-btn
{
	background-color: #666;
	color: #fff;
	border-radius: 3px;
	padding: 5px 15px 5px 15px;
}