.hidden {
  display: none !important;
}
.disabled {
  pointer-events: none !important;
}
body {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  line-height: 1;
  padding: 0 1em 1em;
}
.old {
  width: 100%;
  /* table-layout: fixed; */
  margin: auto;
  text-align: center;
  border-collapse: collapse;
  border-spacing: 0;
}
.old th:nth-of-type(1),
.old td:nth-of-type(1) {
  width: 150px;
}
.old th:nth-of-type(2),
.old td:nth-of-type(2) {
  width: 350px;
}
.old th:nth-of-type(4),
.old td:nth-of-type(4),
.old th:nth-of-type(5),
.old td:nth-of-type(5) {
  width: 100px;
}
.old thead {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.old thead td {
  text-align: left;
  border-color: white;
}
.old tbody {
  user-select: none;
}
.old th {
  background: #333;
  color: #fff;
  user-select: none;
}
.old th,
.old td {
  padding: 10px;
  border: solid 1px gray;
}
.old td:nth-of-type(2),
.old td:nth-of-type(3) {
  text-align: left;
}
input.set_price {
  text-align: right;
  padding: 5px;
  border: 1px solid #ccc;
}
input.set_price:hover,
input.set_price:focus {
  outline: none;
  border: 1px solid #666;
  background-color: #fefefe;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.old td.check {
  padding: 0;
  position: relative;
}
button.syoukai {
  cursor: pointer;
  background-color: #333;
  color: #fff;
  margin-right: 5px;
}
button.syoukai:hover {
  background-color: #666;
}
.old .check label {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.old .check label input {
  margin: auto;
}
tr:has(.del input:checked) td:not(.del),
tr:has(.not input:checked) td:not(.not) {
  pointer-events: none;
}
tr:has(.del input:checked) input.set_price,
tr:has(.not input:checked) input.set_price,
tr:has(.tokai input[value]) input.set_price {
  opacity: 0;
}
tr:has(.del input:checked) {
  text-decoration: line-through;
  background: #aaa !important;
  opacity: 0.5;
}
tr:has(.not input:checked) {
  background: #aaa !important;
  opacity: 0.5;
}
tr:has(.tokai input[value]) {
  background-color: lightblue;
}
#categorySelect {
  height: 30px;
  user-select: none;
}
label {
  user-select: none;
  cursor: pointer;
}
.new {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.9);
}
.new_category {
  background-color: #333;
  min-width: 250px;
  padding: 20px;
}
.new_category label {
  display: block;
  user-select: none;
  cursor: pointer;
  color: white;
  padding: 10px;
}
.new_category input {
  display: none;
}
.new_category label:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.new_category label:has(:checked) {
  background-color: #fff;
  color: #000;
}
.new_list {
  overflow: scroll;
  background-color: #eee;
  display: flex;
  flex-wrap: wrap;
  padding: 50px;
  flex: 1;
  align-content: start;
  align-items: flex-start;
}
.new_list li {
  width: max-content;
  background-color: #333;
  color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px;
  padding: 10px 20px;
  user-select: none;
  cursor: pointer;
}
.new_list li:hover {
  background-color: #444;
}
/* カテゴリによる絞り込み */
.new:has(#category_no_1:checked) .new_list :not(li[category_no="1"]),
.new:has(#category_no_2:checked) .new_list :not(li[category_no="2"]),
.new:has(#category_no_3:checked) .new_list :not(li[category_no="3"]),
.new:has(#category_no_4:checked) .new_list :not(li[category_no="4"]),
.new:has(#category_no_5:checked) .new_list :not(li[category_no="5"]),
.new:has(#category_no_6:checked) .new_list :not(li[category_no="6"]),
.new:has(#category_no_7:checked) .new_list :not(li[category_no="7"]),
.new:has(#category_no_8:checked) .new_list :not(li[category_no="8"]),
.new:has(#category_no_9:checked) .new_list :not(li[category_no="9"]),
.new:has(#category_no_10:checked) .new_list :not(li[category_no="10"]),
.new:has(#category_no_11:checked) .new_list :not(li[category_no="11"]),
.new:has(#category_no_12:checked) .new_list :not(li[category_no="12"]),
.new:has(#category_no_13:checked) .new_list :not(li[category_no="13"]),
.new:has(#category_no_14:checked) .new_list :not(li[category_no="14"]) {
  display: none;
}
.close {
  position: fixed;
  right: 0px;
  top: 0px;
  display: block;
  border-radius: 50%;
  color: #000;
  background-color: white;
  border: 1px solid #666;
  z-index: 100;
  cursor: pointer;
  font-size: 25px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  user-select: none;
}
.close:hover {
  background-color: #ddd;
}
td:has(> .clear) {
  position: relative;
}
td.toaki {
  position: relative;
}
td.tokai:has(> span:empty) .clear {
  display: none;
}
.clear {
  display: inline-block;
  position: absolute;
  right: 5px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  color: #fff;
  background-color: #999;
  cursor: pointer;
  z-index: 1;
}
.clear:hover {
  background-color: #333;
}
.overlap {
  color: red;
}
.overlap:before {
  content: "【重複】";
}
