@charset "UTF-8";
/**
 * モーダル css
 * @version 23.05.26
 */

/*
[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; background-color: rgba(0, 0, 0, 0.6); }
.modal-overlay.bright { background-color: rgba(0, 0, 0, 0.1); } /* 背景明るめ */

/* モーダル内容 */
.modal-content { display: none; position: absolute; top: 50%; left: 0; right: 0; width: 90vw; max-width: 500px; margin: auto; padding: 20px; background-color: #ffffff; border-radius: 8px; text-align: center; transform: translateY(-50%); max-height: calc(100vh - 50px); 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; 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;
}

/* モーダルサイドメニュー */
.content.open-sm { max-height: 100vh; overflow: hidden; }
.over-sidemenu {
 display: none; position: absolute; top: 0; left: 0; height: 100vh; z-index: 99;
 /* contentの幅に合わせて調整 */ width: 375px; max-width: 375px;
}
.content.open-sm .over-sidemenu { display: grid; display: -ms-grid; }
.over-sidemenu.left { grid-template-areas: 'sm-content sm-overlay'; grid-template-columns: 280px 1fr; }
.over-sidemenu.right { grid-template-areas: 'sm-overlay sm-content'; grid-template-columns: 1fr 280px; }
.over-sidemenu.left .sm-overlay { grid-area: sm-overlay; } .over-sidemenu.left .sm-content { grid-area: sm-content; }
.over-sidemenu.right .sm-overlay { grid-area: sm-overlay; } .over-sidemenu.right .sm-content { grid-area: sm-content; }
.sm-overlay { background-color: rgb(0 0 0 / 0.2); height: 100vh; }
.sm-content { width: 280px; height: 100vh; background-color: #fff; padding: 50px 10px; }

body.ng-scroll { overflow: hidden; }

#dialog_modal .modal-content {
  top: 40px;
  transform: none;
  width: 360px;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #999;
  box-shadow: 2px 2px 4px #aaa;
}
#dialog_modal .msg-content {
  min-height: 80px;
}
#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: 10px 10px;
  margin-left: 28px;
}
#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; }
}
