:root{
  --border_primary: #b4b4b4;
  --border_secondary: #eeeeee;
}

/* 統一影 */
/* box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15); */

html{
  min-height: 100%;
}

body{
  font-size: 80%;
  font-family: 'segoe UI', 'ＭＳ Ｐゴシック', sans-serif;
  /* background-color: var(--back_ground_primary ,var(--default_back_ground_primary)); */
  background: linear-gradient(135deg, var(--back_ground_primary ,var(--default_back_ground_primary)) 0%, var(--back_ground_secondary ,var(--default_back_ground_secondary)) 100%);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.06);
}

iframe{
  border: 1px solid #d4d4d4;
  box-sizing: border-box;
  height: 100%;
  margin: -1px 0px 0px -1px;
}

.flex{
  display: flex;
}

.frame.full{
  height: 100vh;
  flex: 1;
}
.frame.mini{
  height: 100vh;
  width: 300px;
  resize: horizontal;
  overflow-x: auto;
}
.frame.parts{
  width: 100%;
  height: 100%;
}
.frame.full-width{
  width: 100%;
}

#framerow1{
  height: 50%;
  min-height: 1px;
  resize: vertical;
  overflow-y: auto;
  padding-right: 15px;
}

#framerow2{
  display: flex;
  height: 50%;
  min-height: 1px;
  resize: vertical;
  overflow-y: auto;
  flex-shrink: 100;
}

#framerow3{
  display: flex;
  height: 50%;
  min-height: 1px;
  overflow-y: auto;
  flex-grow: 1;
  flex-shrink: 5000;
}

#superwrap{
  display: flex;
}

.wrap{
  padding: 5px;
}

h1{
  position: relative;
  padding: 0.5em;
  font-size: 110%;
  left: 5px;
  margin-right: 6px;
  margin-bottom: 1em;
  margin-top: 5px;
  background: linear-gradient(135deg, #fff 70%, #f4f4f4 100%);
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.3);
}
h1::after{
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--primary, var(--default_primary)) 0%, var(--secondary, var(--default_secondary)) 100%);
  z-index: -1;
}

h2{
  position: relative;
  padding: 0.4em 1em;
  border-left: 2px solid var(--primary, var(--default_primary));
  background: linear-gradient(135deg, #fff 70%, #f4f4f4 100%);
  font-size: 100%;
  margin: 0.1em 5px 1em 0;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

ul{
  padding: 0px;
}
li{
  list-style: none;
}

.popup{
  padding: 1em 0;
  position:fixed;
  top: calc(50% - 3em);
  width: 100%;
  text-align: center;
}

.popup.info{
  background-color: rgba(138, 209, 255, 0.8);
}

.mini_button{
  padding: 0.2em;
}
.mini_copy_button {
  padding: 0.2em 0.3em;
  background-color: #fff;
  border-color: #3f3f3f;
}
.mini_copy_button_wrap input[type="text"] {
  border: 1px solid #3f3f3f;
}

.update_box{
  border: solid 1px #a0a0a0;
  border-radius: 3px;
  margin-bottom: 10px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
.update_header{
  padding: 10px;
  background-color: var(--primary_pale, var(--default_primary_pale));
  border-bottom: solid 1px #a0a0a0;
}
.update_body{
  padding: 15px;
  background-color: #fff;
}
.update_body p{
  margin: 0;
  line-height: 1.5em;
}

.spacer_top_tiny{
  margin-top: 0.5em;
}
.spacer_top{
  margin-top: 2em;
}
.spacer_bottom_tiny {
  margin-bottom: 0.5em;
}
.spacer_bottom_mini{
  margin-bottom: 1em;
}
.spacer_bottom{
  margin-bottom: 2em;
}
.spacer_bottom_middle{
  margin-bottom: 3em;
}
.spacer_bottom_50{
  margin-bottom: 50px;
}
.spacer_right_mini{
  margin-right: 1em;
}
.spacer_right{
  margin-right: 2em;
}
.spacer_right_middle{
  margin-right: 3em;
}

.min_w_100{
  min-width: 100px;
}

#sidebarframe{
  height: 100vh;
  width: 170px;
  resize: horizontal;
}
#sidebar{
  min-height: 100vh;
  height: 100%;
  box-sizing: border-box;
}
#sidebar li{
  margin: 0 0 1px 0;
}
#sidebar .menuhead::before{
  content: "◆";
  color: var(--secondary, var(--default_secondary));
  margin-right: 0.3em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
#sidebar ul li a{
  display: block;
  padding: 2px 2px 2px 10px;
  font-size: 90%;
  color: #fff;
  background-color: var(--primary_flat, var(--default_primary_flat));
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

#mainframe{
  width: 100%;
  height: 100vh;
  flex: 1;
}

#formwrap{
  display: inline-block;
  width: 500px;
}

.mng_template_window{
  flex: 1;
}
.mng_template_window iframe{
  width: 100%;
}

.flex_column{
  flex-direction: column;
}
.head_menu_bar{
  height: 120px;
  width: 100%;
}
.stack_content{
  flex: 1;
  height: calc(100vh - 120px);
}

table {
  border: 1px solid var(--border_primary);
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 2em;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
tr{
  background-color: #fff;
}
th{
  border: solid 1px var(--border_primary);
  font-weight: normal;
  margin: 0;
  padding: 0.3em 0.5em;
  background-color: var(--primary_pale, var(--default_primary_pale));
}
thead th, tr.centerhead th{
  text-align: center;
}
tbody th{
  text-align: left;
}
td{
  border: solid 1px var(--border_primary);
  padding: 0.2em 0.6em 0.2em 0.3em;
  box-sizing: border-box;
}
tr.button td{
  padding: 5px;
  background-color: #f0f0f0;
}
tr.button td button {
  width: 100%;
}

button,input[type="submit"]{
  border: 1px solid #c9c9c9;
  outline: none;
  text-align: center;
  padding: 0.3em 0.6em;
  white-space: nowrap;
  transition: .2s;
  background: linear-gradient(#fff 0%, var(--secondary_pale, var(--default_secondary_pale)) 30%, var(--secondary, var(--default_secondary)) 100%);
  background-size: 500% 500%;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
button:enabled:hover,input[type="submit"]:enabled:hover{
  background-position: 0 50%;
}
button:enabled:active,input[type="submit"]:enabled:active{
  transition: 0s;
  background-position: 0 100%;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15), inset 0 5px 10px 2px rgb(0, 0, 0, 0.3);
}

th.grouphead{
  text-align: center;
  background-color: #c2c2c2;
}
.table_number{
  text-align: right;
  font-family: 'Lato';
}

/* tdタグ内のどこをクリックしてもcheckboxが反応するようにするクラス */
.fulfill_wrap{
  position: relative;
}
.fulfill_item{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
label input[type='checkbox'] {
  cursor: pointer;
}

form .shortinput{
  width: 30px;
}
form .middleinput{
  width: 50px;
}

input[type="text"].long_text_input {
  width: 500px;
}
form .inner_box{
  height: 300px;
  overflow: scroll;
  resize: vertical;
}

.textinput{
  box-sizing: border-box;
  width: 100%;
}

.textdanger{
  color: #dc3545;
}

.hide{
  display: none;
}

.highlight,.highlight_row{
  background-color: #fbffad;
}

.strong{
  font-weight: bold;
  text-decoration: underline;
}

.underline {
  text-decoration: underline;
}

.no_wrap{
  white-space: nowrap;
}
.long_text_wrap{
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 500px;
}
.long_text_window{
  max-height: 250px;
  overflow-y: scroll;
  border: 1px solid #e6e6e6;
}

.body_content_wrap {
  word-break: break-all;
  max-width: 500px;
}

.log_bg_chara{
  background-color: #ECECEC;
  background-image: -webkit-gradient(linear, 0 0, 100% 100%,color-stop(.25, #F9F9F9), color-stop(.25, transparent),color-stop(.5, transparent), color-stop(.5, #F9F9F9),color-stop(.75, #F9F9F9), color-stop(.75, transparent),to(transparent));
  -webkit-background-size: 7px 7px;
}

.strike_str{
  text-decoration: line-through;
}

.no_margin{
  margin: 0;
}

.overflow_text_ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
}

.justification_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

div.search_form {
  display: flex;
}

#sptsendwrap{
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex: 1;
}

#sptupbar{
  display: flex;
  height: 60%;
  min-height: 1px;
  resize: vertical;
  overflow-y: auto;
  padding-right: 15px;
}

#sptdownbar{
  display: flex;
  height: 40%;
  min-height: 1px;
  flex: 1;
  padding-right: 15px
}

#userinfo{
  width: 25%;
  overflow-y: auto;
  resize: horizontal;
}

#maillog{
  width: 75%;
  overflow-y: auto;
  flex: 1;
}

#templateparts{
  width: 25%;
  min-width: 20px;
  height: 100%;
  resize: horizontal;
  overflow-x: auto;
}

#send{
  width: 34.5%;
  min-width: 20px;
  height: 100%;
  resize: horizontal;
  overflow-x: auto;
  flex-shrink: 100;
}

#mngsend{
  width: 80%;
  max-height: 100vh;
  box-sizing: border-box;
  resize: horizontal;
  overflow-x: auto;
}

#memo{
  width: 34.5%;
  min-width: 20px;
  height: 100%;
  overflow-x: auto;
  flex-grow: 1;
  flex-shrink: 5000;
}

.underbar{
  position: fixed;
  width: 100%;
  bottom: 0px;
  margin-bottom: 0px;
}
.underbarspacer{
  padding-bottom: 100px;
}

.inactive{
  opacity: 0.1;
  pointer-events: none;
}


.men{
  color: blue;
}
.women{
  color: red;
}

.danger{
  color: red;
}

.center{
  text-align: center;
}

.right{
  text-align: right;
}

.left {
  text-align: left;
}

.align_center_with_margin {
  margin: auto;
  width: fit-content;
}
.tooltip_wrap{
  position: relative;
  cursor: pointer;
}
.tooltip_description {
  visibility: hidden;
  position: absolute;
  top: 0px;
  left: calc(100% + 13px);
  padding: 10px;
  font-size: 12px;
  line-height: 1.6em;
  color: #fff;
  border-radius: 5px;
  background: #000;
  width: 200px;
  text-align: left;
  margin-bottom: 20px;
  z-index: 1;
  white-space: normal;
}
.tooltip_description:before {
  content: "";
  position: absolute;
  top: 0%;
  right: 97%;
  border: 15px solid transparent;
  border-top: 15px solid #000;
  margin-left: -15px;
  transform: rotateZ(90deg);
}
.tooltip_wrap:hover .tooltip_description{
  visibility: visible;
}

.tooltip_description_under{
  visibility: hidden;
  position: absolute;
  top: 30px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.6em;
  color: #fff;
  border-radius: 5px;
  background: #000;
  width: 200px;
  text-align: left;
  margin-bottom: 20px;
  z-index: 1;
  white-space: normal;
}
.tooltip_wrap:hover .tooltip_description_under{
  visibility: visible;
}

.tooltip_description_top{
  visibility: hidden;
  position: absolute;
  bottom: 4px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.6em;
  color: #fff;
  border-radius: 5px;
  background: #000;
  width: 200px;
  text-align: left;
  margin-bottom: 20px;
  z-index: 1;
  white-space: normal;
}
.tooltip_wrap:hover .tooltip_description_top{
  visibility: visible;
}

.data_red{
  background-color: #ffd9d5;
}
.data_cyan{
  background-color: #d2f8ff;
}
.data_yellow{
  background-color: #fcffc9;
}
.data_gray{
  background-color: #bdbdbd;
}

.warning_row{
  background-color: #fdbdbd;
}
.danger_row{
  background-color: #ffd9d5;
}
.finish_row{
  background-color: #f5f5f5;
}
.alert_box{
  padding: 5px 10px;
  border: 5px solid #fff;
  background-color: #fff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
.alert_box_danger{
  animation: border_blink_danger 1s ease infinite alternate;
}
@keyframes border_blink_danger {
  0% {border: 5px solid red;}
  100% {border: 5px solid #fff;}
}

.alert_box_warning{
  animation: border_blink_warning 1s ease infinite alternate;
}
@keyframes border_blink_warning {
  0% {border: 5px solid yellow;}
  100% {border: 5px solid #fff;}
}

.note{
  display: inline-block;
  background-color: #fff;
  color: #111;
  font-size: 1.2em;
  font-family: monospace;
  padding: 10px;
  border: 1px solid #a0a0a0;
}
.vertical-top{
  vertical-align: top;
}
.gray_out{
  color: #a0a0a0;
}

.content_cell{
  border-right-width: 0px;
  min-width: 100px;
}

.judge_cell{
  border-left-width: 0px;
}

.full_width {
  width: 100%;
}

.indent {
  text-indent: -1em;
  padding-left: 1em;
}

.control_width_500 {
  max-width: 500px;
  word-break: break-all;
}

.process_wrap {
  padding: 0 5%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;

  counter-reset: number 0;
}

.process_wrap img {
  max-width: 100%;
  margin-bottom: 24px;
  border: 1px solid #3f3f3f;
}

.process_wrap p {
  margin: 0 auto 14px;
}

.process_wrap .section_number:after {
  counter-increment: number 1;
  content: counter(number)".　　";
}

.block {
  display: block;
}
.generate_random_number_wrap {
  display: inline-block;
}

.plan_name {
  font-size: 14px;
  vertical-align: middle;
}

.flex_wrap {
  flex-wrap: wrap;
}

.list_to_side {
  flex: 1 2 200px;
}

.sidebar_item_wrap {
  max-width: 230px;
}

.overflow_auto {
  overflow: auto;
}

.extract_box {
  background-color: #fff;
  border: 1px solid #999;
  width: 150px;
  height: 400px;
  overflow: auto;
  resize: both;
}

.data_table_stripe tr:nth-child(odd) td {
	background-color: #d2f8ff;
}

.adjust_td_img img {
  min-width: 150px;
  max-width: 100%;
}
.sidebar_error_content{
  display: inline-block;
  margin: 5px 0px;
}

.modal {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* 背景を半透明にする */
}

/* 通常のスタイル */
.modal .hoverable {
  /* ここに通常のスタイルを指定します */
  padding-top: 3px; /* 上側の余白の大きさを指定します */
  padding-bottom: 3px; /* 下側の余白の大きさを指定します */
}

.modal .hoverable:hover {
  background-color: lightblue;
}

.modal_content_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.modal_content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  max-width: 500px;
  position: relative;
  z-index: 2; /* コンテンツを前面に出すための値 */
  overflow: auto;
  max-height: 400px;
  width: 400px;
  height: 400px;
}

.modal_close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3; /* 閉じるボタンを前面に出すための値 */
}

.modal_close:hover,
.modal_close:focus {
  color: black;
  text-decoration: none;
}

.modal_span {
  margin-left: 5px;
}