@charset "UTF-8";
/**
 * モーダル css
 * @version 23.05.26
 * @version 24.07.02 dvh対応
 */

/*
[HTML例]
<div class="modal-overlay click-close" id="xxx_modal">  <!-- click-close枠外クリックでモーダルを閉じる click-close-confirm閉じる確認付き -->
  <div class="modal-content with-closebtn">  <!-- 閉じるボタン付き -->
*/

/* モーダル背面 */
.modal-overlay, #inging { z-index: 101; display: none; position: fixed; top: 0; left: 0; width: 100%; min-width: 100vw; height: 100%; min-height: 100vh; min-height: 100dvh; background-color: rgba(0, 0, 0, 0.6); }
.modal-overlay.bright { background-color: rgba(0, 0, 0, 0.1); } /* 背景明るめ */
.modal-overlay.dark { background-color: rgba(0, 0, 0, 0.8); } /* 背景暗め */
.modal-overlay.use-transparent .modal-content { cursor: grab; }
.modal-content * { cursor: auto; }
.modal-overlay.-transparent { background-color: rgba(255, 255, 255, 0.1); }
.modal-overlay.-transparent .modal-content { opacity: 0.2; cursor: grabbing; }

/* モーダル内容 */
.modal-content { display: none; position: absolute; top: 50%; left: 0; right: 0; width: 90vw; max-width: 800px; margin: auto; padding: 20px; background-color: #ffffff; border-radius: 8px; text-align: center; transform: translateY(-50%); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); -ms-overflow-style: none; scrollbar-width: none; }
.modal-content::-webkit-scrollbar { display:none; }

/* モーダル全体を覆う(モーダル内モーダル用) */
.modal-content-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); }

/* ローディングアニメーション */
#inging { background-color: rgba(0, 0, 0, 0.7); z-index: 999; display: none; }
.loading-content { display: none; position: absolute; top: 20vh; top: 20dvh; left: 0; right: 0; text-align: center; color: #fff; font-size: 38px; letter-spacing: 0.3em; height: 80px; line-height: 40px; padding-top: 20px; }
.loading-content .loading > span:empty::before { content: '...'; letter-spacing: 0; }

/* モーダルを閉じる */
.modal-close { cursor: pointer; z-index: 101; position: absolute; right: 7px; top: 12px; }
.modal-close:hover { opacity: 0.8; }
.modal-close::before {
 content: '\f00d';
 font-weight: 900;
 font-family: "Font Awesome 5 Free";
 color: #555555;
 text-shadow: 0 1px 1px white;
 background: #f2f2f2;
 border-radius: 8px;
 border: 1px solid #cccccc;
 background-size: 100%;
 background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #f3f1f1));
 background-image: -moz-linear-gradient(#ffffff, #f3f1f1);
 background-image: -webkit-linear-gradient(#ffffff, #f3f1f1);
 background-image: linear-gradient(#ffffff, #f3f1f1);
 -moz-box-shadow: inset 0 0 3px white;
 -webkit-box-shadow: inset 0 0 3px white;
 box-shadow: inset 0 0 3px white;
 text-align: center;
 padding: 7px 10px;
 font-size: 16px;
}

body.ng-scroll { overflow: hidden; }

#dialog_modal { z-index: 111; }
.modal-overlay[style*="display: block;"] ~ * #dialog_modal { background-color: rgba(0, 0, 0, 0.6); }
#dialog_modal .modal-content {
  top: 40px;
  transform: none;
  width: 360px;
  text-align: left;
  padding: 16px 20px;
  border: 1px solid #999;
  box-shadow: 2px 2px 4px #aaa;
}
#dialog_modal .msg-content {
  min-height: 80px;
}
#dialog_modal .msg-content p {
  min-height: 1em;
}
#dialog_modal .btn-outer.type-alert,
#dialog_modal .btn-outer.type-confirm {
  margin-top: 20px;
}
#dialog_modal .btn-outer.type-alert .btn.mss,
#dialog_modal .btn-outer.type-confirm .btn.mss {
  min-width: 100px;
  box-shadow: none;
  border-width: 1px;
  padding: 8px 20px;
  border-radius: 12px;
}
#dialog_modal .btn-outer.type-confirm .btn.mss.-cancel {
  min-width: 80px;
  font-size: 11px;
  padding: 6px 10px;
  margin-left: 28px;
  vertical-align: bottom;
}
#dialog_modal[data-type="alert"] .type-confirm,
#dialog_modal[data-type="confirm"] .type-alert {
  display: none;
}



/* For Tablet & SmartPhone */
@media screen and (max-width: 1050px) {
 .modal-content { top: 10px; transform: unset; } /* PC:上下中央 スマホ:上寄せ */
}
/* For SmartPhone */
@media screen and (max-width: 767px) {
 .modal-content { width: 95vw; }
}
