.period {
  font-weight: bold;
  font-size: 1rem;
}

.period-week {
  background-color: white;
  border: 1px solid gray;
  padding: 0.3rem 1rem;
  margin-left: 0.5rem;
}

/* 更新ボタン（画面右下） */
#page-top-btn {
  position: sticky;
  float: right;
  bottom: 10px;
  right: 130px;
  display: grid;
  place-content: center;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 1rem;
  background-color: #f4fff4;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
  z-index: 99;
}

#page-top-btn:hover {
  background-color: #e0ffe0;
  opacity: 0.9;
}

/* 更新ボタン（画面右下） */
#update-btn {
  position: sticky;
  float: right;
  bottom: 10px;
  right: 0px;
  display: grid;
  place-content: center;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 1rem;
  background-color: #fff9ff;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
  z-index: 99;
}

#update-btn:hover {
  background-color: #ffe0ff;
}

.cmd-btn:hover {
  cursor: pointer;
  opacity: 1;
}

#calendar-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.table-sikkan {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  background: white;
  border-left: 1px solid gray;
}

.table-sikkan .head {
  border-top: 1px solid gray;
  background-color: #fffff4;
}

section.period {
  position: sticky;
  top: 46px;
  background-color: #ececec;
  padding: 20px 0 16px;
  margin: -15px 0 0;
}

.period-box {
  display: flex;
  align-items: center;
}

#date_start,
#date_end,
#period-week {
  letter-spacing: 0.12rem;
}

#period-week {
  padding: 2px 10px;
  margin: 0 6px;
  border: 1px solid gray;
  border-radius: 1px;
  background-color: white;
}

.change_mw_btn {
  display: grid;
  place-content: center;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.change_mw_btn:hover {
  font-size: 1rem;
  color: var(--theme-color-darker);
  background-color: var(--theme-color-lightest);
  cursor: pointer;
}

.table-sikkan .head {
  position: sticky;
  top: 102px;
}

.table-sikkan .tr {
  display: flex;
}

.tr > .item {
  line-height: 1.2;
  padding: 7px 0;
  border-right: 1px solid gray;
  border-bottom: 1px solid gray;
  flex: 1;
  display: flex;
  gap: 4px;
  place-items: center;
  place-content: center;
}

.tr .sex-box {
  width: calc(100% - 144px);
  padding: 0;
}

.tr .item.name {
  flex: initial;
  /* width を有効にするためリセット */
  width: 144px;
}

.tr .item.sex {
  flex: initial;
  width: 34px;
}

.table-sikkan .tr[data-sex="w"] {
  background-color: #fef6f6;
}

#table-inful-body {
  display: flex;
  flex-direction: column;
}

#table-inful-body .tr[data-inful="3"] .item.name {
  font-size: 0.74rem;
}

.table-sikkan .input-dat {
  width: 30px;
  text-align: center;
}

@media (max-width: 1400px) {
  /*解像度が1280低*/
  .table-sikkan .item {
    flex-direction: column-reverse;
  }

  .table-sikkan .item .fa-minus-square,
  .table-sikkan .item .fa-plus-square {
    padding: 5px;
  }
}
