* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
}

/* 全体 */
body {
    background: #cfcfcf;
}

/* ヘッダー */
.header {
    background: #3f3f3f;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    height: 80px;
    margin-right: 20px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 18px;
    font-size: 14px;
}

/* =========================
   ページタイトル
========================= */
.page-title {
  text-align: center;
  font-size: 28px;
  color: #ffffff;
  margin: 24px 0;
}

/* =========================
   ツールバー
========================= */
.toolbar {
  width: 720px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar .btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #0b2c3a;
  background: #ffffff;
  font-weight: bold;
  cursor: pointer;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn img {
  width: 18px;
  height: 18px;
}

/* 追加 */
.btn.add {
  color: #0077cc;
}

/* 編集 */
.btn.edit {
  color: #333;
}


.month-filter {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.month-filter input[type="month"] {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #666;
}

.month-filter button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #666;
  background: #fff;
}

/* =========================
   案件一覧
========================= */
.case-list {
  width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 10px 0;
  border: 3px solid #0b2c3a;
}

/* 案件1行 */
.case-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 2px solid #000;
  cursor: pointer;
}

.case-row:last-child {
  border-bottom: none;
}

/* 編集モード時 */
body.edit-mode .case-row {
  background: #eef6ff;
}

body.edit-mode .case-row:hover {
  background: #d8ebff;
}

/* 左側 */
.case-row .main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.case-row .date {
  font-weight: bold;
  min-width: 90px;
}

.case-row .text {
  font-size: 15px;
}

/* 右側 */
.case-row .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   ステータス
========================= */
.status {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}

.st-new {
  background: #ff0000;
}

.st-progress {
  background: #4a90e2;
}

.st-hold {
  background: #ffb400;
  color: #000;
}

.st-done {
  background: #666;
}

/* =========================
   ゴミ箱ボタン
========================= */
.trash-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.trash-btn img {
  width: 35px;
  height: 35px;
}

/* ===== 削除ダイアログ全体 ===== */
/* =========================
   削除ダイアログ本体
========================= */
.dialog {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.dialog.hidden {
  display: none;
}

.dialog-box.delete {
  width: 360px;
  background: #bfbfbf;
  border-radius: 26px;
  padding: 26px 24px 22px;
  border: 3px solid #0b2c3a;
  text-align: center;
}

/* メッセージ */
.dialog-box.delete p {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 22px; /* ← メッセージとボタンの間隔 */
}

/* =========================
   削除ダイアログのボタン
========================= */
.dialog-box.delete .dialog-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dialog-box.delete .dialog-actions .btn {
  width: 120px;
  padding: 10px 0;
  border-radius: 10px;
  border: 2px solid #0b2c3a;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* はい */
.dialog-box.delete .btn.yes {
  background: #4a90e2;
  color: #ffffff;
}

/* いいえ */
.dialog-box.delete .btn.no {
  background: #e0e0e0;
  color: #333333;
}

.action-buttons {
  display: flex;
  justify-content: center; /* 左右中央 */
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 2rem;
}

/* 既存：ゴミ箱を見る */
.go-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #424242;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.go-btn:hover {
  opacity: 0.9;
}

.restore-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid #0b2c3a;
  background: #0067C0;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.delete-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid #0b2c3a;
  background: #c0392b;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.empty-message {
  text-align: center;
  padding: 40px;
  font-size: 16px;
}

.trash-actions-bottom {
  text-align: center;
  margin: 30px 0;
}

.trash-actions-bottom .btn.back {
  padding: 12px 28px;
  border-radius: 12px;
  border: 3px solid #0b2c3a;
  background: #5da9df;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.trash-actions-bottom .btn.back:hover {
  opacity: 0.85;
}


