@charset "UTF-8";
/*
---------------------------------------------
各ベースファイルを読み込む
---------------------------------------------
*/
/* reset.css */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root

/* ----------------------- デフォルトスタイルのリセット ----------------------- */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
main,
header,
section,
article,
aside,
footer,
dl,
dd,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

dl {
  display: flex;
  flex-wrap: wrap;
}

dt, dd {
  padding: 8px 16px;
  margin: 0;
  word-break: break-all;
}

dt {
  width: 150px; /* dt要素の幅を固定 */
  font-weight: bold;
  background-color: #f7f7f7;
}

dd {
  flex: 1; /* dd要素は残りのスペースを占める */
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

table {
  border-collapse: unset;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
}

ul,
ol,
li {
  list-style: none;
}

img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

a {
  text-decoration: none;
}

button {
  border-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------- 全体のスタイル ------------------------------ */
body {
  font-family: "Noto Sans JP";
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  background: #FCFCFC;
  width: 100%;
}

input {
  margin: 1px;
}

.contents {
  display: flex;
  padding: 16px 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  overflow-y: auto;
  width: 100%;
  height: 100vh;
  transition: width 0.3s; /* アニメーションの追加 */
}
.contents section {
  width: 100%;
}
.contents.shrink {
  margin-left: 240px; /* サイドバーの幅と同じ */
  transition: margin-left 0.3s;
}

/* 赤文字指定 */
.red {
    color: rgb(204, 62, 18);
}
/* 文字サイズ小さめ指定 */
.smallFont {
    font-size: 12px;
    line-height: 1.5;
}

/* 文字間隔調整 */
.lineHeight {
    line-height: 250%;
}

/* ----------------------------- ボタン統一スタイル ------------------------------ */
/* 小さめ共通ボタン（デフォルトはグレー） */
.smallBtn {
  display: flex;
  width: 120px;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
  border-style: none;
  background: gray;
  color: #fff;
  font-family: "Roboto Mono";
  font-weight: 600;
  line-height: 130%;
  font-size: 14px;
  box-shadow: 1px 3px 3px -2px #666;
}
.smallBtn:hover {
  opacity: 0.7;
  transition: opacity 0.3s;
  color: #424242;
}
/* 登録/保存ボタン青 */
.btnAdd {
  background: #4c9be6 !important;
}
/* 削除ボタン赤 */
.btnDelete {
  background: #e64c4c !important;
}
/* 編集・ダウンロードボタン緑 */
.btnEdit {
  background: #3cb111 !important;
}
.submitBtn {
  display: flex;
  width: 360px;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  gap: 4px;
  border-radius: 4px;
  border-style: none;
  background: #4c9be6;
  color: #fff;
  font-family: "Roboto Mono";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 20.8px */
  cursor: pointer;
  box-shadow: 1px 3px 3px -2px #666;
}
@media (hover: hover) {
  .submitBtn:hover {
    opacity: 0.6;
    transition: opacity 0.3s;
  }
}


/* -------------------------- アイコン統一スタイル --------------------------- */
/* 白アイコン（ボタン内表示） */
.iconWhite {
  filter: brightness(0) invert(1);
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

/* ----------------------------- 初回ログイン時 ------------------------------ */
.firstLogin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.modalFirstLogin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
  text-align: center;
  width: 420px;
  height: auto;
  background: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  flex-direction: column;
  border-radius: 8px;
  display: flex;
  align-items: center;
}
.modalFirstLogin p {
    padding: 8px;
    align-items: center;
    color: #525252;
    gap: 14px;
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* ----------------------------- ページタイトル ------------------------------ */
.pageHead {
  color: #666;
  font-family: "Roboto Mono";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: 4px;
}
.pageHead > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pageHead span::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 24px auto;
  mask-size: 24px auto;
  background-color: #666;
  width: 24px;
  height: 24px;
}
.pageHead span.table::before {
  -webkit-mask-image: url(../img/icon/table.svg);
  mask-image: url(../img/icon/table.svg);
}
.pageHead span.pen::before {
  -webkit-mask-image: url(../img/icon/pen.svg);
  mask-image: url(../img/icon/pen.svg);
}
.pageHead span.note::before {
  -webkit-mask-image: url(../img/icon/note.svg);
  mask-image: url(../img/icon/note.svg);
}
.pageHead span.cost::before {
  -webkit-mask-image: url(../img/icon/cost.svg);
  mask-image: url(../img/icon/cost.svg);
}
.pageHead span.settings::before {
  -webkit-mask-image: url(../img/icon/settings.svg);
  mask-image: url(../img/icon/settings.svg);
}
.pageHead .btnDownload {
  text-decoration: none;
  color: #fff;
  font-family: "Roboto Mono";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 15.6px */
  background: #3cb111;
  display: flex;
  padding: 8px 14px;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 1px 3px 3px -2px #666;
}
.pageHead .btnDownload::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #fff;
  width: 16px;
  height: 16px;
}
.pageHead .btnDownload::before {
  -webkit-mask-image: url(../img/icon/download.svg);
  mask-image: url(../img/icon/download.svg);
}
@media (hover: hover) {
  .pageHead .btnDownload:hover {
    opacity: 0.6;
    transition: opacity 0.3s;
  }
}
.pageHead .btnAdd {
  text-decoration: none;
  color: #fff;
  font-family: "Roboto Mono";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 15.6px */
  display: flex;
  padding: 8px 16px;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  border-style: none;
  background: #4c9be6;
  box-shadow: 1px 3px 3px -2px #666;
}
.pageHead .btnAdd::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #fff;
  width: 16px;
  height: 16px;
}
.pageHead .btnAdd.add::before {
  -webkit-mask-image: url(../img/icon/add.svg);
  mask-image: url(../img/icon/add.svg);
}
@media (hover: hover) {
  .pageHead .btnAdd:hover {
    opacity: 0.6;
    transition: opacity 0.3s;
  }
}

/* ----------------------------- 合計金額・フィルター ------------------------------ */
.pageHead select.logCalcTotal {
  text-decoration: none;
  font-size: 13px !important;
  color: #525252;
  margin-right: 12px;
}
.pageHead p.logCalcTotal {
  font-size: 14px !important;
  color: #525252;
  width: 30vw;
}
/* フィルタークリアボタン */
.pageHead .btnClear {
  text-decoration: none;
  color: #fff;
  font-family: "Roboto Mono";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  background: gray;
  display: flex;
  padding: 8px 12px;
  margin-left: auto;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 1px 3px 3px -2px #666;
}

/* ----------------------------- Ticker ------------------------------ */
.ticker {
  display: flex;
  width: 400px;
  padding: 4px 8px;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  border-radius: 4px;
  background: #fff;
  font-family: "Noto Sans JP";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 15.6px */
}
.tickerTitle {
  display: flex;
  width: 100px;
  padding: 4px;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.tickerBody {
  padding: 4px;
  line-height: 18px;
}
.tickerError {
  border: 1px solid #C01515;
  background: #FFEEEE;
  align-items: center;
}
.tickerError .tickerTitle {
  color: #C01515;
}
.tickerError .tickerIcon {
  fill: #C01515;
}
.tickerInfo {
  border: 1px solid #2EAF00;
  background: #EFE;
}
.tickerInfo .tickerTitle {
  color: #2EAF00;
}
.tickerInfo .tickerIcon {
  fill: #2EAF00;
  transform: rotate(180deg);
}


/* ----------------------------- サイドバー ------------------------------ */
.sidebar {
  display: flex;
  width: 240px;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  background-color: #F0F8FF;
  position: fixed;
  left: 0; /* サイドバーを初期状態で表示 */
  box-shadow: 0px 1px 4px 0px gray;
  transition: left 0.3s; /* アニメーションの追加 */
}

.sidebar-scrollable-content {
  flex-grow: 1; /* 親(.sidebar)の残りのスペースを埋める */
  width: 100%;
  display: flex; /* この要素自体をFlexコンテナにする */
  flex-direction: column; /* 子要素を縦に並べる */
  overflow: hidden; /* この要素自身のスクロールバーは表示しない */
}

.sidebar.closed{
  left: -240px; /* サイドバーを閉じた状態 */
}
.sidebar.opened{
  left: 0; /* サイドバーを開いた状態 */
}
.close, .open{
  position: absolute;
  top: 1%;
  left: 100%;
  width: 28px;
  height: 40px;
  font-size: 13px;
  border-radius: 4px;
  background-color: #F0F8FF;
  box-shadow: 1px 1px 4px 0px gray;
  color: #666;
  border: none;
  outline: none;
  cursor: pointer;
}
.close:hover, .open:hover{
  color: #666;
  background-color: rgba(84, 167, 245, 0.514);
  border-radius: 2px;
}

.button_text{
  writing-mode: vertical-lr; /* 文字縦書きに */
  text-orientation: upright; /* 縦書きの文字を正立 */
}
.adminWindow {
  background-color: #F8F8F8;
}
.adminWindow .close, .open{
  position: absolute;
  top: 1%;
  left: 100%;
  width: 28px;
  height: 40px;
  font-size: 13px;
  border-radius: 4px;
  background-color: #F8F8F8;
  box-shadow: 1px 1px 4px 0px gray;
  color: #666;
  border: none;
  outline: none;
  cursor: pointer;
}

.sidebarHeading {
  display: flex;
  width: 230px;
  padding: 3px 10px 3px 10px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.sidebarHeading .logo {
  width: 140px;
}
.sidebarHeading .username {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #666;
  font-family: "Roboto Mono";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  inline-size: 200px;
  word-break: break-word;
  text-align: center;
  white-space: normal;
}
.sidebarHeading .username::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #666;
  width: 16px;
  height: 16px;
}
.sidebarHeading .username.person::before {
  -webkit-mask-image: url(../img/icon/person.svg);
  mask-image: url(../img/icon/person.svg);
}
.sidebarHeading .username.admin::before {
  -webkit-mask-image: url(../img/icon/admin.svg);
  mask-image: url(../img/icon/admin.svg);
}
.sidebarMenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  align-self: stretch;
}
.sidebarMenuItem {
  display: flex;
  padding: 8px 16px 8px 28px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  position: relative;
  text-decoration: none;
  border-radius: 4px;
  color: #666;
  font-family: "Roboto Mono";
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 14px */
}
.table {
  margin-bottom:auto;
  color: #666;
}
@media (hover: hover) {
  .sidebarMenuItem:hover {
    background-color: rgba(38, 136, 228, 0.2);
    color:#666
  }
}
.sidebarMenuItem::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translate3d(0, -50%, 0);
  background-color: #666;
}
.sidebarMenuItem::before {
  position: absolute;
  left: 8px;
}
.sidebarMenuItem::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #666;
  width: 16px;
  height: 16px;
}
.sidebarMenuItem.table::before {
  -webkit-mask-image: url(../img/icon/table.svg);
  mask-image: url(../img/icon/table.svg);
}
.sidebarMenuItem.note::before {
  -webkit-mask-image: url(../img/icon/note.svg);
  mask-image: url(../img/icon/note.svg);
}
.sidebarMenuItem.settings::before {
  -webkit-mask-image: url(../img/icon/settings.svg);
  mask-image: url(../img/icon/settings.svg);
}
.sidebarMenuItem.user::before {
  -webkit-mask-image: url(../img/icon/people-fill.svg);
  mask-image: url(../img/icon/people-fill.svg);
}
.sidebarMenuItem.cost::before {
  -webkit-mask-image: url(../img/icon/cost.svg);
  mask-image: url(../img/icon/cost.svg);
}
.sidebarMenuItem.department::before {
  -webkit-mask-image: url(../img/icon/diagram-3-fill.svg);
  mask-image: url(../img/icon/diagram-3-fill.svg);
}
.sidebarMenuItem.manual::before {
  -webkit-mask-image: url(../img/icon/manual.svg);
  mask-image: url(../img/icon/manual.svg);
}
.sidebarMenuItem.dashboard::before {
  -webkit-mask-image: url(../img/icon/bar-chart-fill.svg);
  mask-image: url(../img/icon/bar-chart-fill.svg);
}
.sidebarMenuItem::after {
  right: 8px;
  width: 5px;
  height: 8px;
  -webkit-mask-image: url(../img/icon/arrow.svg);
  mask-image: url(../img/icon/arrow.svg);
}
.sidebarMenuItem.dashboard::after {
  right: -2px;
  width: 20px;
  height: 19px;
  -webkit-mask-image: url(../img/icon/box-arrow-up-right.svg);
  mask-image: url(../img/icon/box-arrow-up-right.svg);
}
.sidebarMenuItemActive {
  color: #fff;
  background-color: #81baef;
}
.sidebarMenuItemActive::before, .sidebarMenuItemActive::after {
  background-color: #fff;
}
.sidebarLog {
    padding: 5px 10px 0px 10px;
    font-size: 10px;
    font-weight: 500;
    color: #666;
}
.sidebar-filter {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  position: relative;
  padding-left: 16px;
}
.sidebar-filter::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(../img/icon/filter.svg);
  mask-image: url(../img/icon/filter.svg);
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #666;
  transform: translateY(-52%);
}
.adminFilterHead {
  padding-bottom: 4px;
  font-size: 10px;
}
.adminFormInner{
  padding-bottom: 4px;
}
.sidebarBottom {
  display: flex;
  width: 100%;
  padding: 10px 10px 10px 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #D9D9D9;
  background: rgba(252, 252, 252, 0.2);
}

.sidebarBottomLink {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 2px;
  align-self: stretch;
  position: relative;
  color: #666;
  font-family: "Roboto Mono";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 12px */
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #666;
  transition: all linear 0.3s;
}
@media (hover: hover) {
  .sidebarBottomLink:hover {
    background-color: rgba(102, 102, 102, 0.2);
  }
}
.sidebarBottomLink::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #666;
  width: 16px;
  height: 16px;
}
.sidebarBottomLink.person::before {
  -webkit-mask-image: url(../img/icon/person.svg);
  mask-image: url(../img/icon/person.svg);
}
.sidebarBottomLink.admin::before {
  -webkit-mask-image: url(../img/icon/admin.svg);
  mask-image: url(../img/icon/admin.svg);
}
.sidebarBottomLink.logout::before {
  -webkit-mask-image: url(../img/icon/logout.svg);
  mask-image: url(../img/icon/logout.svg);
}
.sidebarBottomLink.logout {
  color: #fff;
  background: #666;
  border-color: #666;
}
@media (hover: hover) {
  .sidebarBottomLink.logout:hover {
    color: #666;
    background: rgba(38, 136, 228, 0.2);
    border-color: rgba(38, 136, 228, 0.2);
  }
  .sidebarBottomLink.logout:hover::before {
    background: #666;
  }
}
.sidebarBottomLink.logout::before {
  background-color: #fff;
}
/* --- アコーディオン用CSS --- */
.sidebarAccordion {
  width: 100%;
}
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

.accordion-item {
  background-color: #F0F8FF;
  border: none;
}

/* detailsがopen状態になったら矢印を回転 */
details[open] .accordion-item::after {
  transform: translate3d(0, -50%, 0) rotate(90deg);
}

.accordion-content {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-radius: 4px;
}
.accordion-content a {
  padding: 8px 16px 8px 48px;
}
.accordion-content a::before {
  content: "-";
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #666;
}
.accordion-content a:hover {
  background-color: rgba(38, 136, 228, 0.2);
  color: #666;
}

.sidebarFilterContainer {
  display: flex;
  padding: 20px 16px 5px 16px;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.sidebar__field {
  padding: 0px !important;
}

.sidebar__departmentLabel {
  font-size: 10px;
  color: #666;
  font-family: "Roboto Mono";
  font-weight: 700;
}

/* ----------------------------- ページネーション ---------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px 0;
}
.paginationBtn {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 14px 0px 13px 0px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-family: "Roboto Mono";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 15.6px */
  border-radius: 24px;
  border: 1px solid #999;
  background: #fff;
}
.paginationBtn:hover {
  border: 1px solid #2688E4;
  background: #81baef;
  transition: all linear 0.2s;
  color: #fff;
}
.paginationBtnDisabled {
  border: 1px solid #999;
  background: #D9D9D9;
}
.paginationBtnActive {
  border: 1px solid #125492;
  background: #2688E4;
  color: #fff;
}
.paginationBtnPrev, .paginationBtnNext {
  font-size: 20px;
  padding: 13px 0 15px 0;
}
.paginationBtnDisabled, .paginationBtnActive {
  pointer-events: none;
}


/* --------------------------------- モーダル ------------------------------ */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 10001; /* modalBg(10000)より上に表示 */
  flex-direction: column;
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* コンテンツサイズに合わせてモーダルの高さを自動調整 */
.modal.modalFitContent {
  height: auto;
  max-height: 90vh;
  min-height: 300px;
  max-width: 70vw;
  overflow-y: auto;
}

.modalContents {
  width: 400px;
  align-items: left;
  text-align: left;
}

.modalHead {
  color: #666;
  text-align: center;
  font-family: "Roboto Mono";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 31.2px */
  margin-bottom: 16px;
}
.modalMessage {
  color: #141414;
  width: 292px;
  margin: 0 auto 16px;
  text-align: center; /* テキストを中央揃え */
}

.modalDelete dl {
  display: flex;
  gap: 8px;
}
.modalDelete dt {
  width: 110px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.modalDelete dt:after {
  content: ":";
}
.modalDownload label,
.modalCase label,
.modalEdit label,
.modalFilter label {
  position: relative;
  padding-left: 16px;
  margin: 8px 0;
  display: flex;
}
.modalDownload input[type=checkbox],
.modalEdit input[type=checkbox],
.modalFilter input[type=checkbox] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
}
.modalDownload input[type=checkbox]::before,
.modalEdit input[type=checkbox]::before,
.modalFilter input[type=checkbox]::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px auto;
  mask-size: 20px auto;
  background-color: #666;
  width: 20px;
  height: 20px;
}
.modalDownload input[type=checkbox].check::before,
.modalCase input[type=checkbox].check::before,
.modalEdit input[type=checkbox].check::before,
.modalFilter input[type=checkbox].check::before {
  -webkit-mask-image: url(../img/icon/check.svg);
  mask-image: url(../img/icon/check.svg);
}
.modalDownload input[type=checkbox]::before,
.modalCase input[type=checkbox]::before,
.modalEdit input[type=checkbox]::before,
.modalFilter input[type=checkbox]::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-mask-image: url(../img/icon/check.svg);
  mask-image: url(../img/icon/check.svg);
}
.modalDownload input[type=checkbox]:checked::before,
.modalCase input[type=checkbox]:checked::before,
.modalEdit input[type=checkbox]:checked::before,
.modalFilter input[type=checkbox]:checked::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px auto;
  mask-size: 20px auto;
  background-color: #2EAF00;
  width: 20px;
  height: 20px;
}
.modalDownload input[type=checkbox]:checked.checked::before,
.modalCase input[type=checkbox]:checked.checked::before,
.modalEdit input[type=checkbox]:checked.checked::before,
.modalFilter input[type=checkbox]:checked.checked::before {
  -webkit-mask-image: url(../img/icon/checked.svg);
  mask-image: url(../img/icon/checked.svg);
}
.modalDownload input[type=checkbox]:checked:before,
.modalCase input[type=checkbox]:checked:before,
.modalEdit input[type=checkbox]:checked:before,
.modalFilter input[type=checkbox]:checked:before {
  -webkit-mask-image: url(../img/icon/checked.svg);
  mask-image: url(../img/icon/checked.svg);
}
.modalDownload input[type=radio],
.modalEdit input[type=radio],
.modalFilter input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
}
.modalDownload input[type=radio]::before,
.modalEdit input[type=radio]::before,
.modalFilter input[type=radio]::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px auto;
  mask-size: 20px auto;
  background-color: #666;
  width: 20px;
  height: 20px;
}
.modalDownload input[type=radio].radio::before,
.modalEdit input[type=radio].radio::before,
.modalFilter input[type=radio].radio::before {
  -webkit-mask-image: url(../img/icon/radio.svg);
  mask-image: url(../img/icon/radio.svg);
}
.modalDownload input[type=radio]::before,
.modalEdit input[type=radio]::before,
.modalFilter input[type=radio]::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-mask-image: url(../img/icon/radio.svg);
  mask-image: url(../img/icon/radio.svg);
}
.modalDownload input[type=radio]:checked::before,
.modalEdit input[type=radio]:checked::before,
.modalFilter input[type=radio]:checked::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px auto;
  mask-size: 20px auto;
  background-color: #2EAF00;
  width: 20px;
  height: 20px;
}
.modalDownload input[type=radio]:checked.radiochecked::before,
.modalEdit input[type=radio]:checked.radiochecked::before,
.modalFilter input[type=radio]:checked.radiochecked::before {
  -webkit-mask-image: url(../img/icon/radiochecked.svg);
  mask-image: url(../img/icon/radiochecked.svg);
}
.modalDownload input[type=radio]:checked:before,
.modalEdit input[type=radio]:checked:before,
.modalFilter input[type=radio]:checked:before {
  -webkit-mask-image: url(../img/icon/radiochecked.svg);
  mask-image: url(../img/icon/radiochecked.svg);
}
.modalDownload select,
.modalCase select,
.modalEdit select,
.modalFilter select {
  flex-grow: 1;
}
.modalInput select {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -1px;
  font-size: 13px;
}
.modalDownload .modalInput,
.modalFilter .modalInput {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.modalInput h4 {
    width: 150px; /* 固定幅を設定 */
    margin: 0;
    padding-right: 16px;
    text-align: right;
}
.modalInputLabel {
  padding-left: 20px;
}
.modalDownload .modalInputLabel,
.modalCase .modalInputLabel,
.modalEdit .modalInputLabel,
.modalFilter .modalInputLabel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
}
.modalDownload .modalInput:last-child,
.modalCase .modalInput:last-child,
.modalEdit .modalInput:last-child,
.modalFilter .modalInput:last-child {
  margin-bottom: 24px;
}
.modalDownload .modalInput label,
.modalCase .modalInput label,
.modalEdit .modalInput label,
.modalFilter .modalInput label {
  width: 120px;
  padding-left: 0;
}
.modalDownload .modalInput input,
.modalEdit .modalInput input,
.modalFilter .modalInput input {
  width: 100%;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 4px;
}
.modalDownload .modalInput input:focus-within,
.modalEdit .modalInput input:focus-within,
.modalFilter .modalInput input:focus-within {
  border: 1px solid #2688E4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.modalDownload .modalInput input::-moz-placeholder,
.modalCase .modalInput input::-moz-placeholder,
.modalEdit .modalInput input::-moz-placeholder,
.modalFilter .modalInput input::-moz-placeholder {
  color: #D9D9D9;
}
.modalDownload .modalInput input::placeholder,
.modalCase .modalInput input::placeholder,
.modalEdit .modalInput input::placeholder,
.modalFilter .modalInput input::placeholder {
  color: #D9D9D9;
}

.modalInputLabel input[type="radio"],
.modalInputLabel input[type="checkbox"],
.modalDownload input[type="radio"],
.modalDownload input[type="checkbox"] {
  margin-right: 8px;
}

#popupUserName {
  margin-left: 20px;
}
#editedPrice {
  font-weight: 400;
}

.modalButton {
  display: flex;
  width: 110px;
  align-items: center;
  text-decoration: none;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  display: flex;
  padding: 8px 12px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  color: #666;
  border: 1px solid #7e7e7e;
  cursor: pointer;
}
@media (hover: hover) {
  .modalButton:hover {
    opacity: 0.6;
    transition: opacity 0.3s;
  }
}
.modalButtonDelete {
  border: none;
  color: #fff;
  background: #C01515;
}
.modalButtonDelete::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #fff;
  width: 16px;
  height: 16px;
}
.modalButtonDelete.trash::before {
  -webkit-mask-image: url(../img/icon/trash.svg);
  mask-image: url(../img/icon/trash.svg);
}
.modalButtonDownload {
  border: none;
  color: #fff;
  background: #2EAF00;
  width: 150px;
}
.modalButtonDownload::before {
  content: "";
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px auto;
  mask-size: 16px auto;
  background-color: #fff;
  width: 16px;
  height: 16px;
}
.modalButtonDownload.btnDownload::before {
  -webkit-mask-image: url(../img/icon/download.svg);
  mask-image: url(../img/icon/download.svg);
}
.modalButtonDownload::before {
  -webkit-mask-image: url(../img/icon/download.svg);
  mask-image: url(../img/icon/download.svg);
}
.modalButtonPrimary {
  border: none;
  color: #fff;
  background: #2688E4;
}
.modalButtonWrapper {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
}

.modalBg {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 20, 0.4);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.modalBg.visible {
  display: flex;
}


/* ボタンの基本スタイル */
.plus-button {
  margin-left: 2px;
  /* サイズと形 */
  width: 24px;
  height: 24px;
  border-radius: 8px; /* 角の丸み */

  /* 色と見た目 */
  background-color: #007bff; /* 青色の背景 */
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 立体感を出す影 */
  /* アニメーションを滑らかにする設定 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* マウスを乗せた時のアニメーション */
.plus-button:hover {
  transform: scale(1.05); /* 少しだけ大きくする */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* クリックした（押した）時のアニメーション */
.plus-button:active {
  transform: scale(0.95); /* 少しだけ小さくする */
}

/* 「+」文字自体のスタイル */
.plus-icon {
  color: white;
  font-size: 20px;     /* フォントサイズを大きく */
  font-weight: bold;   /* 線を太く */
  line-height: 1;      /* 垂直位置の微調整 */
  user-select: none;   /* テキストが選択されるのを防ぐ */
}


/* ----------------------------- フィルター ------------------------------ */
.form-control {
    font-size: 0.8rem;
    border: 1px solid #666;
    padding: 4px 4px;
    width: 100%;
}
.form-control::placeholder {
    color: #ccc;
    opacity: 1;
}

.no-spinners {
    -moz-appearance: textfield;
    appearance: textfield;
}
.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.autocomplete {
    position: relative;
}


/* --------------------------------- 共通部品 ------------------------------ */
.flex {
  display: flex;
}

#tagArea {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    position: sticky;
    padding: 0px 15px 10px 15px;
    scrollbar-width: thin;
    scrollbar-color: #A0AEC0 #F0F8FF;
}

/* 各タグのスタイル */
.smallTagItem {
    display: inline-flex;
    align-items: center;
    background-color: #4c9be6;
    color: #EDF2F7;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out; /* ホバー時のアニメーション */
    margin-left: 5px;
    margin-bottom: 1px;
}

/* 削除ボタンのスタイル */
.tagDeleteButton {
    margin-left: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    color: #555;
}

.tagDeleteButton:hover {
    color: #000;
}

/* smallTagDeleteButton用 削除ボタンのスタイル */
.smallTagDeleteButton {
    margin-left: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    color: #555;
}

.smallTagDeleteButton:hover {
    color: #000;
}