static/css/style.css

/* ==========================
   共通スタイル（全ページ共通）
   ========================== */

/* ページ全体 */
body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* コンテナ共通 */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 30px auto;
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ページタイトル */
.page-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #ccc;
  margin-bottom: 16px;
  padding-bottom: 6px;
}

/* 情報バー（ユーザー情報など） */
.info-bar {
  text-align: right;
  font-size: 0.9rem;
  color: #555;
  background: #ecf0f1;
  padding: 6px 20px;
  border-bottom: 1px solid #ccc;
}

/* テーブル基本 */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 8px;
}

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

/* 詳細テーブル */
.detail-table th {
  width: 25%;
  background: #f2f2f2;
}

.detail-table td {
  background: #fff;
}

/* メモ一覧・タスク一覧の交互行カラー */
.task-list tbody tr:nth-child(odd),
.memo-list tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.task-list tbody tr:nth-child(even),
.memo-list tr:nth-child(even) {
  background-color: #ffffff;
}

/* ボタン共通 */
/* .btn { */
/*   display: inline-block; */
/*   padding: 6px 16px; */
/*   background-color: #34495e; */
/*   color: #fff; */
/*   text-decoration: none; */
/*   border-radius: 6px; */
/*   border: none; */
/*   cursor: pointer; */
/*   font-size: 0.9rem; */
/*   transition: background-color 0.3s; */
/*   margin-right: 5px; */
/* }

.btn:hover {
  background-color: #2c3e50;
}

/* 小さめボタン */
.btn-sm {
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* 削除用小ボタン */
.tbtn {
  background-color: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.tbtn:hover {
  background-color: #a93226;
}

/* メッセージやフッター */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  padding: 12px;
  margin-top: 40px;
}

/* トップページリンク */
a {
  color: #2980b9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ===== フォームデザイン統一 ===== */
.form-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 40px 50px;
  margin-top: 30px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.form-table th {
  text-align: left;
  width: 25%;
  padding: 10px 0;
  font-weight: 600;
  color: #333;
  vertical-align: top;
}

.form-table td {
  padding: 8px 0;
}

.form-table input[type="text"],
.form-table input[type="date"],
.form-table select {
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafafa;
  transition: all 0.2s ease;
}

.form-table input:focus,
.form-table select:focus {
  border-color: #888;
  background: #fff;
  outline: none;
}

.button-area {
  text-align: center;
  margin-top: 25px;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  margin: 6px 8px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.main-btn {
  background: linear-gradient(135deg, #6c757d, #4e555b);
  color: white;
}

.main-btn:hover {
  background: linear-gradient(135deg, #5a6268, #343a40);
}

.sub-btn {
  background: #e9ecef;
  color: #333;
}

.sub-btn:hover {
  background: #dee2e6;
}



/* ===== 詳細・確認ページ統一デザイン ===== */
.detail-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 40px 50px;
  margin-top: 30px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.detail-table th {
  text-align: left;
  width: 25%;
  padding: 10px 0;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
}

.detail-table td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f5;
}

.inline-form {
  display: inline;
}

.link-btn {
  background: #f8f9fa;
  color: #333;
}

.link-btn:hover {
  background: #e9ecef;
}


/* ===== 詳細画面・完了画面共通 ===== */
.memo-section {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.memo-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #343a40;
}

.memo-list {
  width: 100%;
  border-collapse: collapse;
}

.memo-list th, .memo-list td {
  border-bottom: 1px solid #e9ecef;
  padding: 8px 12px;
}

.memo-list th {
  background: #f8f9fa;
  text-align: left;
  color: #495057;
  font-weight: 600;
}

/* 完了画面 */
.complete-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

.complete-card {
  background: linear-gradient(145deg, #ffffff, #f1f3f5);
  padding: 50px 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 480px;
}

.complete-card h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.complete-card p {
  color: #555;
  margin: 0.4rem 0;
}

.msg-text {
  font-weight: 500;
  color: #007b83;
  margin-bottom: 1.5rem;
}

/* ボタンカラー拡張 */
.danger-btn {
  background: linear-gradient(135deg, #b02a37, #842029);
  color: #fff;
}

.danger-btn:hover {
  background: linear-gradient(135deg, #a71d2a, #6c1c21);
}



/* 危険操作用ボタン（削除確認など） */
.btn-danger {
  background: linear-gradient(135deg, #d9534f, #c9302c);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 1rem;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #c9302c, #a71d2a);
}

/* 注意文 */
.warn-text {
  color: #a00;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}


/* ===== パステルカラー　　レスポンシブデザイン ===== */
/* 共通ボタン調整 */
.btn {
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 500;
}

/* ログアウト（淡いグレー） */
.btn-logout {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}
.btn-logout:hover {
    background-color: #d5d5d5;
}

/* ユーザ登録（パステルグリーン） */
.btn-user {
    background-color: #cce8d5;
    color: #245c3a;
    border: none;
}
.btn-user:hover {
    background-color: #b7ddc6;
}

/* タスク登録（パステルブルー） */
.btn-task {
    background-color: #cfe2f3;
    color: #1f4e79;
    border: none;
}
.btn-task:hover {
    background-color: #bcd6ec;
}

/* 検索ボタン（パステルラベンダー） */
.btn-search {
    background-color: #e6d9f2;
    color: #5a3d7a;
    border: none;
}
.btn-search:hover {
    background-color: #d8c7eb;
}

/* 一覧表示　ストライプ　　レスポンシブデザイン */
/* ===== タスク一覧 行ごとの背景色（パステル） ===== */

/* 偶数行 */
.table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* 奇数行 */
.table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* ホバー時（少しだけ濃く） */
.table-hover tbody tr:hover {
    background-color: #eef4fb;
}

/* ===== 一覧表示　詳細ボタン白抜き　レスポンシブデザイン ===== */
/* ===== 詳細ボタン（濃いめパステル × 白文字） ===== */

.btn-detail {
    background-color: #7da7d9;   /* 濃いめパステルブルー */
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 6px 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* ホバー時 */
.btn-detail:hover {
    background-color: #6a96c9;
    color: #ffffff;
}
