:root {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color-scheme: light;
    }

    body {
      margin: 0;
      padding: 40px 20px;
      background: #e3f2fd; /* 周囲の青い余白 */
      display: flex;
      flex-direction: column;      /* 縦並びにする */
      align-items: center;         /* 中央寄せ（横） */
      justify-content: flex-start; /* 上寄せ（縦） */
      box-sizing: border-box;
    }

    .app {
      max-width: 800px;
      width: 100%;
      margin: 0 auto;
      background: #ffffff;
      padding: 20px 24px 28px;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    h1 {
      margin: 0 0 4px;
      font-size: 1.6rem;
    }

    .date {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 16px;
    }

    .input-area {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .input-area input[type="text"] {
      flex: 1;
      min-width: 200px;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 1rem;
      box-sizing: border-box;
    }

    .btn {
      padding: 8px 14px;
      border-radius: 999px;
      border: none;
      font-size: 0.9rem;
      cursor: pointer;
      background: #1976d2;
      color: #fff;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .btn.secondary {
      background: #e0e0e0;
      color: #333;
    }

    .toolbar {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      font-size: 0.95rem;
    }

    thead {
      background: #f0f4ff;
    }

    th, td {
      padding: 8px 10px;
      border-bottom: 1px solid #eee;
      text-align: left;
    }

    tr:last-child td {
      border-bottom: none;
    }

    .empty-message {
      text-align: center;
      padding: 16px;
      color: #777;
      font-size: 0.9rem;
    }

    .delete-btn {
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1.1rem;
      line-height: 1;
    }
    .delete-btn:hover {
      color: #d32f2f;
    }

    /* フッターのスタイル：文字色を青、リンク下線なし */
    footer {
      margin-top: 24px;
      margin-bottom: 24px;
    }
    footer p {
      color: blue;
      margin: 0 0 12px; /* 下にスペースを追加 */
    }
    footer a {
      color: blue;
      text-decoration: none;
    }

    @media print {
      body {
        background: #fff;
        padding: 0;
        display: block;
      }
      .app {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
      }
      .input-area,
      .toolbar {
        display: none !important;
      }
      footer {
        display: none !important;
      }
    }

/* ===== 共通固定フッター ===== */
:root {
  --sakurayama-footer-height: 56px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--sakurayama-footer-height) + 14px) !important;
  box-sizing: border-box;
}

.site-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  min-height: var(--sakurayama-footer-height) !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: rgba(248, 251, 255, 0.97) !important;
  border-top: 1px solid rgba(21, 101, 192, 0.28) !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer .sakurayama-copyright {
  margin: 0 !important;
  color: #1565c0 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.site-footer .sakurayama-copyright a {
  color: #1565c0 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.site-footer .sakurayama-copyright a:hover,
.site-footer .sakurayama-copyright a:focus-visible {
  color: #0d47a1 !important;
  text-decoration: underline !important;
}

@media (max-width: 480px) {
  :root {
    --sakurayama-footer-height: 52px;
  }
  .site-footer .sakurayama-copyright {
    font-size: 0.94rem !important;
  }
}

@media print {
  body {
    padding-bottom: 0 !important;
  }
  .site-footer {
    display: none !important;
  }
}
