@charset "UTF-8";
/* ============================================================
   YOGA FIRE ｜ ベースレイヤー
   ワイヤーフレーム各画面の <style> に重複していた共通部分を集約したもの。
   yogafire.css より先に読み込むこと（yogafire.css が後勝ちで上書きする）。
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f2f2f2;
}

.box {
  border: 1px solid #999;
  background: #fff;
}
.dashed {
  border: 1px dashed #999;
}
.login-sub, .error {
  font-size: 11px;
  color: #003399;
}

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #999;
}
.logo { font-weight: bold; }
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.admin-badge {
  border: 1px solid #666;
  background: #666;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
}

/* ------------------------------------------------------------
   レイアウト
   ------------------------------------------------------------ */
.layout {
  display: flex;
  min-height: calc(100vh - 49px);
}
.sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid #999;
  padding: 16px 0;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 10px 20px; border-bottom: 1px solid #e0e0e0; }
.sidebar li a { display: block; margin: -10px -20px; padding: 10px 20px; }
.sidebar li.current { background: #e6e6e6; font-weight: bold; }
.sidebar a { text-decoration: none; color: inherit; }
.sidebar .group {
  padding: 12px 20px 4px;
  font-size: 11px;
  color: #888;
  border: none;
}
.main { flex: 1; padding: 20px; }

h1 { font-size: 18px; margin: 0 0 16px; }
h2 { font-size: 15px; margin: 0 0 10px; }

.breadcrumb {
  font-size: 12px;
  color: #003399;
  margin-bottom: 8px;
}
.breadcrumb a { color: #003399; }

/* ------------------------------------------------------------
   カード・ボタン
   ------------------------------------------------------------ */
.card {
  border: 1px solid #999;
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.card-head h2 { margin: 0; }

.btn {
  display: inline-block;
  border: 1px solid #666;
  background: #ddd;
  padding: 8px 20px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.btn-block { display: block; width: 100%; }
a.btn { text-decoration: none; color: inherit; }
a.btn-primary { color: #fff; }
.btn-primary { background: #666; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

.badge {
  display: inline-block;
  border: 1px solid #666;
  background: #fff;
  font-size: 10px;
  padding: 1px 6px;
}
.badge-fill { border: 1px solid #666; background: #666; color: #fff; }
.badge-off { border: 1px solid #bbb; background: #f2f2f2; color: #888; }
.badge-alert { border: 1px solid #c00; background: #fff; color: #c00; font-weight: bold; }
.alert { color: #c00; }

/* ------------------------------------------------------------
   フォーム
   ------------------------------------------------------------ */
label { display: block; margin-bottom: 4px; font-size: 13px; }
input[type=text], input[type=password], select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #999;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}
textarea { height: 70px; }
.field { margin-bottom: 14px; }
.required {
  border: 1px solid #666;
  font-size: 10px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 1px;
}
.form-section {
  border-top: 1px dashed #999;
  padding-top: 14px;
  margin-top: 6px;
}
.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid #999;
  padding-top: 16px;
  margin-top: 4px;
}

/* ------------------------------------------------------------
   テーブル
   ------------------------------------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  border: 1px solid #999;
  padding: 6px 8px;
  text-align: left;
}
th { background: #e6e6e6; }

/* ------------------------------------------------------------
   その他
   ------------------------------------------------------------ */
.row { display: flex; gap: 16px; }
.col { flex: 1; }

.placeholder {
  border: 1px dashed #999;
  background: #fafafa;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-size: 12px;
}

.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; max-width: 1200px; }
.stats .stat { min-width: 180px; }
.stat {
  flex: 1;
  border: 1px solid #999;
  background: #fff;
  padding: 14px 16px;
}
.stat .stat-label { font-size: 12px; color: #666; margin-bottom: 6px; }
.stat .stat-num { font-size: 26px; font-weight: bold; line-height: 1.1; }
.stat .stat-unit { font-size: 12px; font-weight: normal; margin-left: 2px; }
.stat .stat-sub { font-size: 11px; color: #666; margin-top: 6px; }
.stat .stat-link { margin-top: 10px; }

.todo-list { border-top: 1px solid #e0e0e0; }
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}
.todo-item .todo-text { flex: 1; }
