/*横並びボタンを入れるDIV*/
div.btn_box {
  display: flex;
  width: 100%;
  max-width: 400px;
  justify-content: center;
  margin: 80px auto 0;
  gap: 30px;
}

div.btn_box_right {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin: 50px auto 0;
  gap: 30px;
}

.btn_red,
.btn_blue,
.btn_gray,
.btn_gray_border,
.btn_orange {
  display: block;
  font-weight: bold;
  width: 150px;
  padding: 15px 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: 0.5s;
}

.btn_blue {
  color: #fff;
  background-color: var(--blue1);
  border: none;
}

.btn_blue:hover {
  background-color: var(--blue2);
}

.btn_manager {
  display: block;
  font-weight: bold;
  width: fit-content;
  padding: 15px 25px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: 0.5s;
  color: #fff;
  background-color: var(--blue1);
  border: none;
}

.btn_manager:hover {
  background-color: var(--blue2);
}

.btn_gray {
  color: #fff;
  background-color: var(--gray4);
  border: none;
}

.btn_gray:hover {
  background-color: var(--gray3);
}

.btn_gray_border {
  color: var(--gray4);
  border: 1px solid var(--gray4);
  background-color: #fff;
}

.btn_gray_border:hover {
  color: var(--blue2);
  border: 1px solid var(--blue2);
  background-color: #fff;
}

.btn_red {
  color: #fff;
  background-color: var(--red);
  border: none;
}

.btn_red:hover {
  background-color: var(--orange);
}

.btn_orange {
  color: #fff;
  background-color: var(--orange);
  border: none;
}

.btn_orange:hover {
  filter: brightness(1.4);
}

.btn_plus {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: bold;
  border-radius: 35px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  transition: 0.5s;
  padding: 12px 15px;
  background-color: var(--blue1);
}

.btn_plus:hover {
  background-color: var(--blue2);
}

/* 共通設定（文字の高さの中央に配置） */
.btn_plus::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("../../img/icon_plus2.png");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.btn_download {
  padding: 12px 0 12px 30px;
  background-color: var(--gray4);
}

.btn_download::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("../../img/icon_download.png");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.btn_download:hover {
  background-color: var(--gray3);
}

.btn_action1 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  width: 100px;
  height: 42px;
}

.btn_action1 img {
  display: block;
  width: 25px;
}

/*フォーム　削除・追加ミニボタン*/
.wrap_btn_mini {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  margin-top: 10px;
}

.btn_mini {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  cursor: pointer;
}

/* .btn_mini.delete {
  margin-top: 10px;
} */

.btn_mini img {
  width: 18px;
  margin-right: 5px;
}

.item:first-child .btn_mini.delete {
  display: none;
}

/* ツールチップ */
button.btn_help {
  display: inline-block;
  margin-left: 5px;
}

button.btn_help img {
  width: 14px;
}

body.admin button.btn_help {
  display: none;
}

/* Formボタン */
ul.form_btn_box {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 80px auto 0;
}

ul.form_btn_box li {
  width: 150px;
}

.btn_prev,
.btn_next,
.btn_save {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 150px;
  border-radius: 999px;
  margin: 0 auto;
  padding: 15px 0;
  font-size: 0.9em;
  font-weight: 700;
  transition: 0.3s;
}

.btn_next {
  color: #fff;
  background-color: var(--blue1);
}

.btn_prev {
  color: var(--gray4);
  background-color: var(--gray1);
}

.btn_save {
  color: var(--gray4);
  border: 1px solid var(--gray4);
}
.btn_save:hover {
  color: var(--gray4);
  border: 1px solid var(--gray4);
  background-color: var(--gray2);
}

.btn_prev::before,
.btn_next::after {
  content: "";
  width: 10px;
  height: 10px;
}

.btn_prev::before {
  border-top: 3px solid var(--gray4);
  border-right: 3px solid var(--gray4);
  transform: rotate(-135deg);
  margin-right: 10px;
}

.btn_next::after {
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  margin-left: 10px;
}

.btn_next:hover {
  background-color: var(--blue2);
  color: #fff;
}

.btn_prev:hover {
  background-color: var(--gray3);
  color: #fff;
}

.btn_prev:hover::before {
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

/*レコードボタン*/
.btn_record1 {
  display: block;
  width: fit-content;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1;
  padding: 6px 15px;
  border-radius: 5px;
  border: 1px solid #fff;
  color: #fff;
  transition: 0.5s;
}

.btn_record1:hover {
  border: 1px solid var(--orange);
  color: var(--orange);
}

@media only screen and (max-width: 768px) {
  .btn_box {
    margin: 40px auto 0;
  }
  .btn_red,
  .btn_blue,
  .btn_gray,
  .btn_gray_border,
  .btn_orange {
    width: 130px;
    font-size: 0.8rem;
    text-align: center;
  }

  ul.form_btn_box {
    margin: 50px auto 0;
  }

  ul.form_btn_box li {
    width: 90px;
  }

  .btn_prev,
  .btn_next,
  .btn_save {
    font-size: 0.8em;
    font-weight: 700;
  }

  .btn_prev::before {
    margin-right: 2px;
  }

  .btn_next::after {
    margin-left: 2px;
  }

  .btn_action1 {
    width: 60px;
  }
}
