@charset "UTF-8";

/* CSS Document */
/*------------------------------

  標準レイアウト・基本カラー

------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  --main: #005c00;
  --orange: #CC4E00;
}

a {
  cursor: pointer
}

body {
  font-family: 'Noto Sans JP', sans-serif, 游ゴシック体, 游ゴシック, YuGothic, メイリオ, Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", Osaka, sans-serif;
}

@media screen and (max-width: 1024px) {}

@media screen and (max-width: 896px) {}

@media screen and (max-width: 480px) {}

/*------------------------------

  ヘッダー

------------------------------*/
body {
  position: relative;
}

header {
  z-index: 100;
}

/* 職員用 */
.staff header {
  display: block;
  position: fixed;
  text-align: center;
  width: 100%;
}

.staff header nav ul {
  display: flex;
}

.staff header nav ul li {
  width: calc(100% / 3);
}

.staff header nav ul li+li {
  border-left: solid 1px #fff;
}

.staff header nav ul li a {
  align-items: center;
  background: var(--main);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  padding: 5px;
}

.staff header nav ul li a img {
  display: block;
  height: 24px;
  margin: 2px;
}

@media screen and (max-width: 896px) {
  .staff header {
    bottom: 0;
  }

  .staff .header_bg {
    display: none;
  }
}

@media screen and (min-width: 897px) {
  .staff header {
    top: 0;
  }

  .staff .header_bg {
    display: block;
    height: 65px;
  }
}

/* 管理者用 */
.admin header {
  background: var(--main);
}

@media screen and (max-width: 896px) {
  .admin header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .admin header h1 {
    display: block;
    width: 160px;
    margin: 0 auto;
  }

  .admin header h1 a {
    display: block;
    padding: 10px;
  }

  .admin header h1 a img {
    vertical-align: bottom;
  }

  .admin header .toggle {
    position: fixed;
    top: 5px;
    left: 10px;
    z-index: 150;
    width: 35px;
    height: 35px;
  }

  .admin header .toggle span {
    background: #fff;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    transition: all 0.3s;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    width: 30px;
    height: 2px;
    margin: auto;
  }

  .admin header .toggle span:nth-of-type(1) {
    top: 10px;
  }

  .admin header .toggle span:nth-of-type(2) {
    top: 20px;
  }

  .admin header .toggle span:nth-of-type(3) {
    top: 30px;
  }


  .admin header .toggle.Active span:nth-of-type(1) {
    display: none;
  }

  .admin header .toggle.Active span:nth-of-type(2) {
    transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    top: 20px;
    right: 0;
  }

  .admin header .toggle.Active span:nth-of-type(3) {
    transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    top: 20px;
    right: 0;
  }

  .admin header .overlay {
    /* 背景ぼかし */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh);
    z-index: 99;
  }

  .admin header nav.PanelActive {
    left: 0;
    transform: translateY(0%);
  }

  .admin header nav {
    background: var(--main);
    overflow: auto;
    position: fixed;
    top: 0;
    left: -100%;
    transition: all 0.6s;
    z-index: 99;
    width: 80%;
    height: calc(100%);
    max-width: 260px;
    padding: 80px 14px 50px;
    -webkit-overflow-scrolling: touch;
  }

  .admin header nav ul {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .admin header nav ul li {
    margin: 10px 0;
  }

  .admin header nav ul li a {
    color: #fff;
    display: block;
    padding: 10px 0;
  }

  .admin header nav ul li a:hover {
    opacity: 1;
  }

  .header_bg {
    height: 50px;
  }
}

@media screen and (min-width: 897px) {
  .admin .content {
    display: flex;
    justify-content: space-between;
  }

  .admin header {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
  }

  .admin header .toggle,
  .admin header .overlay {
    display: none;
  }

  .admin header h1 {
    width: 70%;
    margin: 20px auto;
  }

  .admin header ul {
    list-style: none;
    margin: 20px 0;
  }

  .admin header ul li a {
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 14px;
  }

  .admin .header_bg {
    display: none;
  }

  .admin:not(.login) main {
    width: calc(100% - 200px);
  }
}

/*------------------------------

  ページ共通

------------------------------*/
@media screen and (max-width: 380px) {
  * {
    font-size: 12.5px;
  }
}

.pointer {
  cursor: pointer;
}

p.emp {
  color: darkred;
  font-weight: 600;
  margin-bottom: 10px;
}

[readonly='readonly'] {
  pointer-events: none;
}

figure img {
  width: 100%;
  vertical-align: bottom;
}

p.help a {
  color: #999999;
  font-size: 80%;
}

table {
  text-align: left;
}

input:focus,
select:focus {
  outline: solid 2px var(--main);
}

input[type=file] {
  background: #eee;
  border: solid 1px #ddd;
  border-radius: 3px;
  width: 100%;
  padding: 5px;
}

input[type=text],
input[type=password] {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #eee;
  background-image: none;
  border: solid 1px #ddd;
  border-radius: 3px;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  width: 100%;
  height: 32px;
  padding: 0.4em 0.8em;
}

input[type=month],
input[type=date],
input[type=time] {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #eee;
  background-image: none;
  border: solid 1px #ddd;
  border-radius: 3px;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  height: 32px;
  padding: 0.3em 0.8em;
}

input[type=checkbox] {
  width: 16px;
  height: 16px;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #eee;
  background-image: none;
  border: solid 1px #ddd;
  border-radius: 3px;
  color: inherit;
  display: inline-block;
  font-family: inherit;
  font-size: 1em;
  height: 32px;
  padding: 0.1em 2.4em 0.1em 0.6em;
}

.select {
  display: inline-block;
  position: relative;
}

.select::after {
  border-style: solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid var(--main);
  border-bottom: 0;
  content: "";
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
}

.submit {
  background: var(--main);
  border: solid 3px var(--main);
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  font-size: 100%;
  font-weight: 600;
  padding: 16px;
  transition: .3s;
  width: 80%;
}

.submit.short {
  padding: 8px;
  width: 100%;
  max-width: 300px;
}

.submit:hover {
  opacity: 0.85;
}

.message {
  width: 90%;
  margin: 20px auto;
}

/* 管理者 */
body.admin {
  background: #f0f0f0;
}

body.admin .content {
  min-height: 100vh;
}

body.admin:not(.login) section {
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
  width: 90%;
  margin: 20px auto;
  padding: 10px;
}

body.admin legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/*------------------------------

  ログイン画面

------------------------------*/
body.login .block {
  align-items: center;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 100vh;
}

body.login .block h1 {
  width: 200px;
  max-width: 70%;
  margin: 0 auto 20px;
}

body.login .wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
  margin: 20px auto;
  padding: 30px 35px;
  width: 90%;
  max-width: 400px;
}

body.login .wrap form {
  text-align: left;
}

body.login .wrap form dl>div {
  margin: 0 0 20px;
}

body.login .wrap form dl dt {
  font-weight: 500;
  margin-bottom: .8rem;
}

body.login .wrap .help {
  margin-top: 10px;
}

body.login .btn_wrap {
  text-align: center;
}

body.login button {
  line-height: 1;
  height: auto;
}

body.login .message {
  width: 100%;
  margin: 0 0 20px;
}

/*------------------------------

  カレンダー画面

------------------------------*/
.schedule .month,
.planning .month {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.schedule .userinfo {
  margin: 16px 0;
}

.schedule .month h2,
.planning .month h2 {
  font-size: 18px;
  margin: 0;
}

.schedule .month p a,
.planning .month p a {
  color: var(--main);
  font-size: 24px;
  font-weight: 600;
}

@media screen and (min-width: 897px) {
  .schedule .container {
    display: flex;
    justify-content: space-between;
  }

  .schedule .block {
    flex-basis: 65%;
  }

  .schedule .detail {
    flex-basis: 30%;
  }
}

.schedule .block {
  width: 100%;
  padding: 0 5% 20px;
}

.schedule .block table {
  width: 100%;
}

.schedule .block table a {
  color: #333333;
  display: block;
  line-height: 50px;
  text-align: center;
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 2px 5px;
}

.schedule .block table th,
.schedule .block table td {
  border: solid 1px #ccc;
}

.schedule .block table th {
  font-weight: 500;
  text-align: center;
  width: calc(100% / 7);
  padding: 3px;
}

.schedule .block table td {
  height: 54px;
}

.schedule .block table td.selected {
  border: solid 2px var(--main);
}

.schedule .block table td a:hover {
  background: #99c999 !important;
}

.schedule .block table td.other {
  background: #dfdfdf;
  position: relative;
  z-index: 1;
}

.schedule .block table td.suspension {
  /* background-image: linear-gradient(to left top, transparent calc(50% - 1px), #ccc 50%, #ccc calc(50% + 1px), transparent calc(50% + 1.5px)) !important;
  position: relative; */
  background: #eee;
}

/* .schedule .block table td.suspension::after {
  content: "";
  background-image: linear-gradient(to right top, transparent calc(50% - 1px), #ccc 50%, #ccc calc(50% + 1px), transparent calc(50% + 1.5px)) !important;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
} */

.schedule .block table td.other a {
  color: #666;
}

.schedule .block table td.today a {
  background: #abdaab;
}

.schedule .block table th:nth-of-type(7) {
  color: steelblue;
}

.schedule .block table td:nth-of-type(7) a {
  /* background: #d9e5f0; */
  color: steelblue;
  font-weight: 600;
}

.schedule .block table th:nth-of-type(1) {
  color: darkred;
}

.schedule .block table td:nth-of-type(1) a,
.schedule .block table td.holiday a {
  /* background: #efd6d9; */
  color: darkred;
  font-weight: 600;
}

.schedule .block table td.shift a,
.schedule .block table td.unavailable a {
  color: #fff;
}

.schedule .block table td.shift a::before {
  background: var(--main);
  border-radius: 30px;
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  z-index: -1;
}

.schedule .block table td.unavailable a::before {
  background: #999;
  border-radius: 30px;
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  z-index: -1;
}

.schedule .detail {
  margin: 0 5% 80px;
}

.schedule .detail h3 {
  font-size: 18px;
}

.schedule .detail dt {
  background: #ddd;
  font-weight: 600;
  display: flex;
  margin: 10px 0;
  padding: 10px;
}

.schedule .detail dt span {
  align-items: center;
  background: var(--main);
  border-radius: 50px;
  color: #fff;
  display: inline-block;
  font-size: 13px;
  margin-right: 10px;
  padding: 2px 10px;
}

/* 生産ライン割り当て カレンダー */

.schedule.assign .block table {
  border-collapse: collapse;
  border-spacing: 0;
}

.schedule.assign .block table td,
.schedule.assign .block table th {
  border: solid 2px #ccc;
  margin: 0;
  padding: 0;
}

.schedule.assign .block table a {
  line-height: normal;
  text-align: left;
  padding: 0;
}

.schedule.assign .block table a p {
  font-size: 20px;
  font-weight: 600;
  padding: 10px;
}

.schedule.assign .block table a ul {
  align-items: baseline;
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.schedule.assign .block table a ul li {
  border-top: solid 1px #ccc;
  border-right: solid 1px #ccc;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  width: calc(100% / 3);
  padding: 5px 0;
}

.schedule.assign .block table a ul li:nth-child(3n) {
  border-right: none;
}

.schedule.assign .block table a ul li span {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

/*------------------------------

  シフト編集画面

------------------------------*/
.planning .userinfo {
  max-width: 850px;
  margin: 0;
  padding: 16px 5%;
}

.planning section {
  width: 90%;
  max-width: 850px;
  margin: 0 auto 80px;
}

@media screen and (max-width: 896px) {
  .planning .userinfo {
    background: #f5f7fa;
    position: fixed;
    top: 0;
    z-index: 30;
    width: 100%;
  }

  .planning section .month {
    background: #f5f7fa;
    position: fixed;
    top: 0;
    z-index: 30;
    width: 90%;
    height: 50px;
    margin-top: 50px;
  }

  .planning section table {
    margin-top: 60px;
  }
}

.planning section table {
  width: 100%;
}

.planning section table tr.suspension {
  background: #eee;
}

.planning section table th {
  border-bottom: solid 2px #ccc;
  padding: 5px 0;
}

.planning section table th:nth-of-type(1) {
  width: 30%;
}

.planning section table th:nth-of-type(2) {
  width: 52%;
}

.planning section table th:nth-of-type(3) {
  width: 18%;
}

.planning section table td {
  border-bottom: solid 1px #ccc;
  padding: 5px 0;
}

/* .planning section table tr.sun {
  background: #efd6d9;
} */

.planning section table td.sun {
  color: darkred;
}

/* .planning section table tr.sat {
  background: #d9e5f0;
} */

.planning section table td.sat {
  color: steelblue;
}

.planning .holiday {
  display: inline-block;
  font-size: 80%;
}

.planning section table td:nth-of-type(3) p {
  background: var(--main);
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 8px 5px;
}

.planning section table td:nth-of-type(3) p.disable {
  background: #aaa;
}

.planning section table td:nth-of-type(3) p span {
  display: inline-block;
  position: relative;
  margin-left: 16px;
}

.planning section table td:nth-of-type(3) p span::before {
  content: "";
  background-image: url(../images/edit.svg);
  position: absolute;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
}

/*------------------------------

  シフト管理

------------------------------*/
.control section {
  overflow: hidden;
  max-height: 96vh;
}

.control section>.select {
  margin-bottom: 10px;
}

.control section .title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.control section .title ul {
  display: flex;
  list-style: none;
}

.control section .title ul li {
  border: solid 1px #ddd;
}

.control section .title ul li a {
  color: #777;
  display: block;
  padding: 4px 8px;
}

.control section .title ul li.selected {
  background: var(--main);
  border: solid 1px var(--main);
  color: #fff;
  display: block;
  padding: 4px 8px;
}

.control section .datepick {
  align-items: center;
  display: none;
  justify-content: space-between;
  max-width: 450px;
  flex-basis: 40%;
  margin: 10px auto 0 0;
}

.control section .datepick.active {
  display: flex;
}

.control section .datepick p a,
.control section .datepick p a {
  color: var(--main);
  font-size: 24px;
  font-weight: 600;
}

.control section .picker {
  align-items: center;
  display: flex;
  white-space: nowrap;
}

.control section .wrap {
  overflow-x: scroll;
  overflow-y: scroll;
  position: relative;
  height: 80vh;
}

.control section table {
  margin-top: 10px;
}

.control section table th,
.control section table td {
  border: solid 1px #bbb;
  white-space: nowrap;
}

.control section table th {
  background: #eee;
  position: sticky;
  top: 0;
  text-align: center;
  z-index: 50;
  padding: 10px;
}

/* .control section table td.sat {
  background: #d9e5f0;
}

.control section table td.sun {
  background: #efd6d9;
} */

.control section table td.suspension {
  /* background-image: linear-gradient(to left top, transparent calc(50% - 1px), #ccc 50%, #ccc calc(50% + 1px), transparent calc(50% + 1.5px)) !important; */
  position: relative;
  background: #eee;
}

.control section table td.suspension::after {
  content: "";
  /* background-image: linear-gradient(to right top, transparent calc(50% - 1px), #ccc 50%, #ccc calc(50% + 1px), transparent calc(50% + 1.5px)) !important; */
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.control section table tr.Hidden {
  display: none;
}

.control section table th.sat {
  /* background: #d9e5f0; */
  color: steelblue;
}

.control section table th.sun {
  /* background: #efd6d9; */
  color: darkred;
}

.control section table tr th:first-child,
.control section table tr td:first-child,
.control section table tr td:nth-child(2) {
  border: none;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 49;
}

.control section table tr td:nth-child(2) {
  left: 100px;
}

.control section table tr th:first-child {
  z-index: 51;
}

.control section table tr th:first-child::after {
  background: #eee;
  border: solid 1px #bbb;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.control section table tr td {
  min-width: 100px;
  min-height: 36px;
  padding: 0;
}

.control section table tr td:first-child {
  width: 100px;
}

.control section table tr td:first-child,
.control section table tr td:nth-child(2) {
  padding: 0 5px;
}

.control section table tr td:first-child::after,
.control section table tr td:nth-child(2)::after {
  background: #fff;
  border: solid 1px #bbb;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.control section table tr td:first-child::after {
  border-right: none;
}

.control section table tr td:nth-child(2)::after {
  border-left: none;
}

.control section table tr td p {
  display: block;
  height: 36px;
}

.control section table tr td p a {
  border-radius: 30px;
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  height: 100%;
  padding: 4px 10px;
}

.control section table tr td .cell_wrap {
  display: flex;
}

.control section table tr td .cell_wrap p {
  border: solid 1px #eee;
  transition: .3s;
  width: calc(100% / 3);
  min-width: 80px;
  padding: 3px;
}

.control section table tr td .cell_wrap p:hover {
  background: #eee;
}

.control .button_register {
  background: var(--main);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  margin-left: 16px;
  padding: 6px 16px;
}

/*------------------------------

  マスタ

------------------------------*/
.search_wrap {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.search {
  flex-basis: 30%;
  order: 2;
  position: relative;
  max-width: 400px;
}

.search input {
  width: 100%;
}

.search button {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: 3px;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px;
  width: 32px;
  height: 32px;
}

.search button img {
  display: block;
  width: 100%;
  height: 100%;
}

p.help {
  color: #666;
  font-size: 14px;
}

.form input,
.form table {
  margin-bottom: 12px;
}

.form table th {
  background: #eee;
  border: solid 1px #ccc;
  text-align: center;
}

.form table td {
  border: solid 1px #ccc;
  text-align: center;
  padding: 6px;
}

.form table input[type=checkbox] {
  margin-bottom: 0;
}

@media screen and (max-width: 896px) {
  .search_wrap {
    display: block;
  }

  .control section .datepick {
    width: 100%;
    max-width: none;
  }

  .search {
    width: 100%;
    max-width: none;
  }
}

.index section .title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.index section .title h2 {
  font-size: 20px;
}

.index section .title p {
  display: inline-block;
  text-align: center;
  width: 120px;
}

.index section .title p a {
  background: var(--main);
  border-radius: 3px;
  color: #fff;
  display: block;
  height: 100%;
  padding: 10px;
}

.index section .wrap {
  overflow-x: scroll;
}

.index section table {
  line-height: 0.7;
}

@media screen and (max-width: 896px) {
  .index section table {
    line-height: 0.6;
  }
}

.index section table th,
.index section table td {
  border-bottom: solid 1px #ddd;
  white-space: nowrap;
  padding: 8px 20px 8px 0;
}

.index section table td {
  height: 46px;
}

.index section table tr td:first-of-type {
  display: flex;
}

.index section table tr td:first-of-type p {
  display: inline-block;
  width: 30px;
  height: 100%;
  margin-right: 8px;
}

.index section table tr td:first-of-type a {
  background: var(--main);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 3px;
  display: inline-block;
  width: 30px;
  height: 100%;
  margin-right: 8px;
}

/* .index section table tr td:first-of-type a:nth-of-type(1) {
  background-image: url(../images/view.svg);
  background-size: 15px;
} */

.index section table tr td:first-of-type a:nth-of-type(1) {
  background-image: url(../images/edit.svg);
  background-size: 20px;
}

.index section table tr td:first-of-type a:nth-of-type(2) {
  background-image: url(../images/delete.svg);
  background-size: 14px;
}

.index section .pagenation {
  margin: 10px 0;
}

.index section .pagenation ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.index section .pagenation ul li {
  display: block;
  margin: 0 5px;
}

.index section .pagenation ul li a {
  display: block;
  color: #777;
  padding: 5px;
}

/*------------------------------

  インポート・エクスポート

------------------------------*/
.import .submit {
  padding: 0;
}

.import .input.checkbox {
  margin-bottom: 10px;
}

/*------------------------------

  モーダルウインドウ

------------------------------*/
.overlay {
  background: rgba(0, 0, 0, 0.65);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
}

.modal .close_modal {
  font-size: 30px;
  position: absolute;
  top: 6px;
  right: 18px;
  z-index: 70;
}

.modal,
.submodal {
  background: #ffffff;
  border-radius: 5px;
  display: none;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  padding: 20px;
  width: 90%;
  max-width: 390px;
  min-width: 290px
}

.modal .wrap,
.submodal .wrap {
  border-radius: 5px;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
}

.modal .result .wrap_button.single,
.submodal .result .wrap_button.single {
  justify-content: end;
}

.modal .error {
  color: darkred;
  font-weight: 600;
}

.modal dl dd {
  margin-bottom: 12px;
}

.modal .input_hours {
  display: none;
}

.modal .input_hours.Active {
  display: block;
}

.modal .input_hours dd {
  align-items: center;
  display: flex;
}

/* dropdown */
.open_modal {
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}

.dropdown {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: none;
  position: absolute;
  text-align: center;
  z-index: 9999;
  width: 200px;
  padding: 4px 0;
}

.dropdown .value {
  margin: 0;
  padding: 4px 2px;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown .value:hover {
  background: #f0f0f0;
}

.table_shift {
  border: solid 1px #ccc;
}

.table_shift th {
  background: #eee;
}

.table_shift th,
.table_shift td {
  border: solid 1px #ccc;
  text-align: center;
}

/*------------------------------

  ローディング

------------------------------*/
.loader {
  background: #fff;
  position: relative;
  width: 100%;
  height: 100vh;
}

.ball {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@-webkit-keyframes scale {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  45% {
    -webkit-transform: scale(0.1);
    transform: scale(0.1);
    opacity: 0.7;
  }

  80% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scale {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  45% {
    -webkit-transform: scale(0.1);
    transform: scale(0.1);
    opacity: 0.7;
  }

  80% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}

.ball>div:nth-child(1) {
  -webkit-animation: scale 0.75s -0.24s infinite ease;
  animation: scale 0.75s -0.24s infinite ease;
}

.ball>div:nth-child(2) {
  -webkit-animation: scale 0.75s -0.12s infinite ease;
  animation: scale 0.75s -0.12s infinite ease;
}

.ball>div:nth-child(3) {
  -webkit-animation: scale 0.75s 0s infinite ease;
  animation: scale 0.75s 0s infinite ease;
}

.ball>div {
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  background-color: var(--main);
  border-radius: 100%;
  display: inline-block;
  width: 25px;
  height: 25px;
  margin: 5px;
}

/*------------------------------

  生産ライン割り当て画面

------------------------------*/
body.admin .assign.edit.content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  padding: 20px 5%;
  min-height: 0;
}

.assign.edit.content .wrap {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  width: fit-content;
  margin-top: 0;
}

.assign.edit.content .wrap .block {
  width: 48%;
}

.assign.edit.content .wrap table {
  background: #fff;
  border: solid 1px #bbb;
  position: relative;
  width: 100%;
  min-width: 600px;
}

.assign.edit.content .wrap table a:hover,
.assign.edit.content .wrap table td p:hover {
  opacity: 0.5;
}

.assign.edit.content .wrap table th {
  background: #fff;
  border: solid 1px #bbb;
  text-align: center;
  width: calc(100% / 3);
  padding: 6px;
}

.assign.edit.content .wrap table td {
  background: #ccc;
  border: solid 1px #bbb;
  text-align: center;
  padding: 6px;
}

.assign.edit.content .wrap table th,
.assign.edit.content .wrap table td {
  position: relative;
  vertical-align: top;
}

.assign.edit.content .wrap table th.editing,
.assign.edit.content .wrap table td.editing {
  z-index: 110;
}

.assign.edit.content .wrap table th.shift {
  font-size: 20px;
  font-weight: 600;
  padding: 10px;
}

.assign.edit.content .wrap table th p {
  cursor: pointer;
  display: block;
  transition: .4s;
  width: 100%;
  padding: 4px;
}

.assign.edit.content .wrap table th.select_all p {
  background: #fff;
  border: solid 2px var(--main);
  border-radius: 50px;
  color: var(--main);
}

.assign.edit.content .wrap table th.clear p {
  background: #888;
  border: solid 2px #777;
  border-radius: 50px;
  color: #fff;
}

.assign.edit.content .wrap table td p {
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: .3s;
  width: 100%;
  padding: 4px 10px;
}

.assign.edit.content .wrap table td p+p {
  margin-top: 8px;
}

.assign.edit.content .wrap table td p.add {
  color: var(--main);
  font-size: 20px;
  font-weight: 600;
  padding: 0;
}

.assign.edit.content .wrap table td p.space {
  background: transparent;
  cursor: text;
  color: var(--main);
  display: none;
  font-weight: 600;
  margin-top: 0;
}

.assign.edit.content .wrap table td p.space.active {
  animation: blink 1.8s ease-in-out infinite alternate;
  display: block;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.assign.edit.content .wrap table td p.delete {
  position: relative;
}

.assign.edit.content .wrap table td p.delete::before {
  content: '';
  background: var(--main);
  background-image: url(../images/delete.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: .4s;
  width: 100%;
  height: 100%;
}

.assign.edit.content .wrap table td p.delete:hover {
  opacity: 1;
}

.assign.edit.content .wrap table td p.delete:hover::before {
  opacity: 0.7;
}

.assign.edit.content .picker {
  background: var(--main);
  position: fixed;
  bottom: calc(-28vh - 50px);
  right: 0;
  transition: .5s;
  z-index: 120;
  width: calc(100%);
  height: 28vh;
}

.assign.edit.content .picker.active {
  bottom: 0;
}

.assign.edit.content .picker ul {
  display: flex;
  gap: 20px;
  position: absolute;
  top: -42px;
  right: 50px;
}

.assign.edit.content .picker ul li {
  background: #888;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  width: 150px;
  padding: 5px;
}

.assign.edit.content .picker ul li.active {
  background: var(--main);
}

.assign.edit.content .picker .userlist {
  align-items: start;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-y: scroll;
  height: 100%;
  padding: 14px;
}

.assign.edit.content .picker .userlist p {
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: .3s;
  width: 200px;
  padding: 10px;
}

.assign.edit.content .wrap table th p:hover,
.assign.edit.content .picker .userlist p:hover {
  opacity: 0.6;
}

.assign.edit.content .modal {
  top: 10%;
  left: 50%;
  transform: translate(-50%, -10%);
  min-width: 500px;
}

.assign.edit.content .modal .block {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.assign.edit.content .modal .block input {
  width: 300px;
}

.assign.edit.content .modal .block p {
  color: var(--main);
  cursor: pointer;
  font-size: 14px;
}

.assign.edit.content .modal textarea {
  margin-bottom: 14px;
}

.assign.edit.content .modal textarea::placeholder {
  color: #aaa;
}