/**********************************************************************************
* 共通設定
**********************************************************************************/
:root {
  --browser-zoom-level: 100;
  --zoom-factor: calc(100 / var(--browser-zoom-level));
  --calc-left: 200px;
}

body {
  font-size: 14pt;
  font-family: "YuGothic", "Yu Gothic", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック",
    "MS PGothic", sans-serif;
  font-weight: 500;
}

/************************************************************
* 選択範囲
************************************************************/
::-moz-selection {
  color: white;
  background: rgba(12, 51, 157, 1);
}
::selection {
  color: white;
  background: rgba(12, 51, 157, 1);
}

/************************************************************
* プレースホルダー
************************************************************/
::-webkit-input-placeholder {
  font-weight: normal;
  text-align: left;
}
::-moz-placeholder {
  font-weight: normal;
  text-align: left;
}
:-ms-input-placeholder {
  font-weight: normal;
  text-align: left;
}
::-ms-input-placeholder {
  font-weight: normal;
  text-align: left;
}
::placeholder {
  font-weight: normal;
  text-align: left;
}
/* フォーカス時にプレースホルダー非表示 */
input:focus::-webkit-input-placeholder {
  color: transparent;
}
input:focus::-moz-placeholder {
  color: transparent;
}
input:focus:-ms-input-placeholder {
  color: transparent;
}
input:focus::-ms-input-placeholder {
  color: transparent;
}
input:focus::placeholder {
  color: transparent;
}
textarea:focus::-webkit-input-placeholder {
  color: transparent;
}
textarea:focus::-moz-placeholder {
  color: transparent;
}
textarea:focus:-ms-input-placeholder {
  color: transparent;
}
textarea:focus::-ms-input-placeholder {
  color: transparent;
}
textarea:focus::placeholder {
  color: transparent;
}

/************************************************************
* スクロールバー
************************************************************/
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  margin-top: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(233, 233, 240, 1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(147, 147, 159, 1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 167, 179, 1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:active {
  background: rgba(97, 97, 109, 1);
  border-radius: 5px;
}

/**********************************************************************************
* セレクトボックス
**********************************************************************************/
select {
  text-indent: 0.5rem;
  border-radius: 5px;
  border: solid 2px rgba(174, 174, 174, 1);
  font-weight: bold;
}
select:hover {
  border: solid 2px rgba(120, 154, 245, 1);
}
select:focus {
  font-weight: 500;
  border: solid 2px rgba(120, 154, 245, 1);
  outline: none;
}

/**********************************************************************************
* テキストボックス
**********************************************************************************/
input[type="text"] {
  text-indent: 0.5rem;
  border-radius: 5px;
  border: solid 2px rgba(174, 174, 174, 1);
  font-weight: bold;
}
input[type="text"]:hover {
  border: solid 2px rgba(120, 154, 245, 1);
}
input[type="text"]:focus {
  outline: none;
  background-color: rgba(235, 240, 253, 1);
  border: solid 2px rgba(120, 154, 245, 1);
  font-weight: 500;
}
input[type="text"]:-moz-read-only {
  font-weight: bold; /* フォーカス回避 */
  background-color: rgba(225, 225, 225, 1);
  border: solid 2px rgba(225, 225, 225, 1);
}
input[type="text"]:read-only {
  font-weight: bold; /* フォーカス回避 */
  background-color: rgba(225, 225, 225, 1);
  border: solid 2px rgba(225, 225, 225, 1);
}
input[type="text"]:disabled {
  color: rgba(215, 215, 215, 1);
  background-color: rgba(245, 245, 245, 1);
  border: solid 2px rgba(215, 215, 215, 1);
}

/* テキストエリア */
textarea {
  padding: 0 0.5rem 0 0.5rem;
  border-radius: 5px;
  border: solid 2px rgba(174, 174, 174, 1);
  font-weight: bold;
  resize: none;
}
textarea:hover {
  border: solid 2px rgba(120, 154, 245, 1);
}
textarea:focus {
  outline: none;
  background-color: rgba(235, 240, 253, 1);
  border: solid 2px rgba(120, 154, 245, 1);
  font-weight: 500;
}

/**********************************************************************************
* ラジオボタン
**********************************************************************************/
input[type="radio"] {
  width: 18px;
  height: 18px;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
}
input[type="radio"]::before,
input[type="radio"]::after {
  content: "";
  display: block;
  border-radius: 50%;
  position: absolute;
  background-color: #fff;
}

/* ラジオボタン未選択時 */
input[type="radio"]::before {
  background-color: #e5e5e5;
  border: 1px solid #5f5f5f;
  height: 18px;
  width: 18px;
}
input[type="radio"]:hover::before {
  background-color: #fff;
}
input[type="radio"]:active::before {
  background-color: #b2b2b2;
}

/* ラジオボタン未選択時の中点 */
input[type="radio"]::after {
  background-color: #e5e5e5;
  opacity: 1;
  height: 9px;
  width: 9px;
  position: absolute;
  transform: translate(50%, 50%);
}
input[type="radio"]:hover::after {
  background-color: #fff;
  opacity: 1;
}
input[type="radio"]:active::after {
  background-color: #b2b2b2;
  opacity: 1;
}

/* ラジオボタン選択時 */
input[type="radio"]:checked::before {
  background-color: #0043ff;
}
input[type="radio"]:checked:hover::before {
  background-color: #366ce9;
}
input[type="radio"]:checked:active::before {
  background-color: #0831a1;
}

/* ラジオボタン選択時の中点 */
input[type="radio"]:checked::after {
  background-color: #fff;
  opacity: 1;
}
input[type="radio"]:checked:hover::after {
  background-color: #fff;
  opacity: 1;
}
input[type="radio"]:checked:active::after {
  background-color: #fff;
  opacity: 1;
}

/**********************************************************************************
* チェックボックス
**********************************************************************************/

/* 元々のチェックボックス（初期化） */
input[type="checkbox"] {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* チェックボックスデザイン */
input[type="checkbox"] {
  cursor: pointer;
  padding-left: 30px;
  vertical-align: middle;
  position: relative;
}

/* チェックマークのレイアウト */
input[type="checkbox"]::after {
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  opacity: 0;
  height: 8px;
  width: 48%;
  transform: rotate(-45deg);
  top: -6px;
  left: 7.9px;
}

/* チェック前とチェック後の共通処理 */
input[type="checkbox"]::before,
input[type="checkbox"]::after {
  content: "";
  display: block;
  position: absolute;
}

/* チェックボックスのレイアウト */
input[type="checkbox"]::before {
  border-radius: 5%;
  border: 1px solid #5857539e;
  background-color: #e5e5e5;
  width: 20px; /*チェックボックスの横幅*/
  height: 20px; /*チェックボックスの縦幅*/
  transform: translateY(-50%);
  top: 50%;
  left: 5px;
}

/* チェックボックスのレイアウト「hover」 */
input[type="checkbox"]:hover::before {
  border-radius: 5%;
  border: 1px solid #5857539e;
  background-color: #fff;
  width: 20px; /*チェックボックスの横幅*/
  height: 20px; /*チェックボックスの縦幅*/
  transform: translateY(-50%);
  top: 50%;
  left: 5px;
}

/* チェックボックスのレイアウト「active」 */
input[type="checkbox"]:active::before {
  border-radius: 5%;
  border: 1px solid #5857539e;
  background-color: #b2b2b2;
  width: 20px; /*チェックボックスの横幅*/
  height: 20px; /*チェックボックスの縦幅*/
  transform: translateY(-50%);
  top: 50%;
  left: 5px;
  opacity: 1;
}

/* チェックボックスのレイアウト「disabled」 */
input[type="checkbox"]:disabled::before {
  cursor: auto;
  border-radius: 5%;
  border: 1px solid #58575330;
  background-color: #f7fafc;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  top: 50%;
  left: 5px;
  opacity: 1;
}

/* チェック後のレイアウト */
input[type="checkbox"]:checked::before {
  border: 1px solid #5857539e;
  background-color: #0043ff;
  opacity: 1; /*チェック後表示*/
}

/* チェック後のレイアウト 「hover」*/
input[type="checkbox"]:checked:hover::before {
  border: 1px solid #5857539e;
  background-color: #366ce9;
  opacity: 1; /*チェック後表示*/
}
/* チェック後のレイアウト「active」 */
input[type="checkbox"]:checked:active::before {
  border: 1px solid #5857539e;
  background-color: #0831a1;
  opacity: 1; /*チェック後表示*/
}

/* チェック後のレイアウト「disabled」 */
input[type="checkbox"]:checked:disabled::before {
  border: 1px solid #5857539e;
  background-color: #62a8f5ad;
  opacity: 1;
}

/* チェック後に表示する */
input[type="checkbox"]:checked::after {
  opacity: 1; /*チェック後表示*/
}

/**********************************************************************************
* ポインタ制御
**********************************************************************************/
.pointer-none {
  pointer-events: none;
}
.cursor-pointer {
  cursor: pointer;
}

/**********************************************************************************
* バリデーションエラー
**********************************************************************************/
.validation-error,
.validation-error-manual {
  color: red;
  font-size: 20px;
}
.validation-error img,
.validation-error-manual img {
  width: 30px;
  height: 30px;
}
/* 入力項目 */
.validation-error input[type="text"],
.validation-error textarea[type="text"],
.validation-error select {
  border-color: rgba(255, 80, 80, 1);
  background-color: rgba(255, 229, 229, 1);
}
.validation-error input[type="text"]:hover,
.validation-error textarea[type="text"]:hover,
.validation-error select:hover {
  background-color: rgba(255, 244, 244, 1);
}
.validation-error input[type="text"]:focus,
.validation-error textarea[type="text"]:focus {
  background-color: rgba(235, 240, 253, 1);
  color: black;
}
/* プレースホルダー */
.validation-error ::-webkit-input-placeholder {
  color: red;
}
.validation-error ::-moz-placeholder {
  color: red;
}
.validation-error :-ms-input-placeholder {
  color: red;
}
.validation-error ::-ms-input-placeholder {
  color: red;
}
.validation-error ::placeholder {
  color: red;
}

/**********************************************************************************
* 表示制御
**********************************************************************************/
/* メイン背景色 */
.main-bgcolor {
  background-color: rgba(245, 245, 250, 1);
}

/* 固定色ラベル.エラー時でも黒色とする. */
.input-title {
  color: black;
}

.hidden-item {
  visibility: hidden;
}

.no-wrap {
  white-space: nowrap;
  overflow: hidden;
}

/* input 変更時にノーマルカラーに戻す用 */
input[type="text"][class~="input-normal"],
textarea[type="text"][class~="input-normal"],
select[class~="input-normal"] {
  color: black;
  background-color: white;
}
input[type="text"][class~="input-normal"]:hover,
textarea[type="text"][class~="input-normal"]:hover,
select[class~="input-normal"]:hover {
  background-color: white;
  border: solid 2px rgba(120, 154, 245, 1);
}
input[type="text"][class~="input-normal"]:focus,
textarea[type="text"][class~="input-normal"]:focus {
  background-color: rgba(235, 240, 253, 1);
}
select[class~="input-normal"]:focus {
  background-color: white;
}

/* アイコン背景色 */
.icon-bg-color:hover {
  background-color: #eaeffc;
}
.icon-bg-color:active {
  background-color: #0c339d;
}

/**********************************************************************************
* アイコン
**********************************************************************************/
/* ダイアログアイコン */
img.dialog-icon {
  width: 48px;
  height: 48px;
}
/* 必須アイコン */
img.required-icon {
  width: 40px;
  height: 22px;
}

/**********************************************************************************
* ダイアログ
**********************************************************************************/
.depf-dialog {
  display: none;
}
.depf-dialog-open {
  display: flex;
}

/**********************************************************************************
* オーバーレイ
**********************************************************************************/
.overlay {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 48, 60, 0.8);
  display: none;
  transition: all 0.5s;
}
.overlay-open {
  display: flex;
}

/**********************************************************************************
* 位置調整用
**********************************************************************************/

/** position */
.left-140 {
  left: 140px;
}
/** position */
.left-100 {
  left: 100px;
}
/** position */
.right-100 {
  right: 100px;
}
.top-3 {
  top: 3px;
}

/** w */
.w-34 {
  width: 9rem;
}
.w-128 {
  width: 18rem;
}
.w-256 {
  width: 20rem;
}
.w-512 {
  width: 25rem;
}

/** min-width */
.min-w-8 {
  min-width: 2rem;
}
.min-w-10 {
  min-width: 2.5rem;
}
.min-w-12 {
  min-width: 3rem;
}
.min-w-16 {
  min-width: 4rem;
}
.min-w-20 {
  min-width: 5rem;
}
.min-w-24 {
  min-width: 6rem;
}
.min-w-32 {
  min-width: 8rem;
}
.min-w-40 {
  min-width: 10rem;
}
.min-w-48 {
  min-width: 12rem;
}
.min-w-56 {
  min-width: 14rem;
}
.min-w-64 {
  min-width: 16rem;
}

.w-100px {
  width: 100px;
}
.w-200px {
  width: 200px;
}
.w-300px {
  width: 300px;
}
.w-400px {
  width: 400px;
}
.w-500px {
  width: 500px;
}
.w-600px {
  width: 600px;
}
.w-700px {
  width: 700px;
}
.w-800px {
  min-width: 800px;
}

/** max-width */
.max-w-50 {
  max-width: 50px;
}
.max-w-100 {
  max-width: 100px;
}
.max-w-150 {
  max-width: 150px;
}
.max-w-200 {
  max-width: 200px;
}

/** z-index */
.z-index100 {
  z-index: 100;
}
.z-index101 {
  z-index: 101;
}
.z-index200 {
  z-index: 200;
}
.z-index201 {
  z-index: 201;
}
.z-index300 {
  z-index: 300;
}
.z-index301 {
  z-index: 301;
}

/**********************************************************************************
* フォントサイズ (拡大対応用)
**********************************************************************************/
.font-size-13-rsz {
  font-size: min(13px, calc(13px * var(--zoom-factor)));
}
.font-size-20-rsz {
  font-size: min(20px, calc(20px * var(--zoom-factor)));
}
.font-size-29-rsz {
  font-size: min(29px, calc(29px * var(--zoom-factor)));
}

/*********************************************************************************/

/**********************************************************************************
* ツールチップのレイアウト
**********************************************************************************/
.annotation-layout {
  background-color: rgba(242, 242, 242, 1);
  border: 1px solid rgba(127, 127, 127, 1);
  font-size: 12px;
  padding: 8px;
  text-align: left;
}

/*********************************************************************************/

@-webkit-keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}
