/* 商品DB（モバイル閲覧・編集）専用スタイル。
   グローバル変数（--カード/--罫線/--文字 等）と既存クラス（ページ/区画/入力欄/主ボタン）を流用する。 */

/* ============================================================
   一覧：検索バー
   ============================================================ */
.商品_検索バー {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.商品_検索行 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.商品_検索行 .入力欄 {
  flex: 1;
  min-width: 0;
}
/* カメラ起動ボタン（検索バー右） */
.商品_スキャンボタン {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  /* 絵文字を上下左右の中央へ（button既定のline-height/ベースラインだと下に寄るため） */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-size: 22px;
  background: var(--文字);
  color: var(--カード);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}
.商品_スキャンボタン:hover { background: #000; }

/* 絞り込み（折りたたみ） */
.商品_絞り込みトグル {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--文字);
  cursor: pointer;
}
.商品_絞り込みトグル:hover { background: var(--背景); }
.商品_絞り込み件数 {
  display: inline-block;
  margin-left: 8px;
  background: var(--文字);
  color: var(--カード);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
}
.商品_絞り込みパネル {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 10px;
}
.商品_絞り込み欄 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.商品_絞り込みラベル {
  font-size: 11px;
  color: var(--文字弱);
}
/* パネル内の入れ子折りたたみ（出品ストアなど）。枠なしの見出し風 */
.商品_サブトグル {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--文字);
  cursor: pointer;
}
.商品_サブトグル:hover { color: var(--文字薄); }

/* 三状態セグメント（指定なし／あり／なし） */
.商品_三状態 {
  display: flex;
  border: 1px solid var(--罫線);
  border-radius: 8px;
  overflow: hidden;
}
.商品_三状態ボタン {
  flex: 1;
  padding: 9px 4px;
  background: var(--カード);
  border: none;
  border-left: 1px solid var(--罫線);
  font-family: inherit;
  font-size: 12px;
  color: var(--文字薄);
  cursor: pointer;
}
.商品_三状態ボタン:first-child { border-left: none; }
.商品_三状態ボタン.選択中 {
  background: var(--文字);
  color: var(--カード);
  font-weight: 700;
}

/* 複数選択ドロップダウン（押すと開くチェックリスト） */
.商品_複数選択ボタン {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.商品_複数選択ポップ {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.商品_複数選択項目 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}
.商品_複数選択項目:hover { background: var(--背景); }
.商品_複数選択項目 input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.商品_複数選択クリア {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--文字薄);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 2px 4px 6px;
}
.商品_複数選択クリア:hover { color: var(--文字); }
.商品_クリア {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--文字薄);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
}
.商品_クリア:hover { color: var(--文字); }

/* ============================================================
   一覧：結果リスト
   ============================================================ */
.商品_件数 {
  font-size: 12px;
  color: var(--文字弱);
  margin-bottom: 8px;
}
.商品_リスト {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.商品_カード {
  display: block;
  padding: 12px 14px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--文字);
  width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.商品_カード:hover {
  border-color: var(--文字);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.商品_カード本文 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.商品_カード名 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.商品_カードメタ {
  font-size: 12px;
  color: var(--文字薄);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.商品_カード下段 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.商品_価格 {
  font-size: 14px;
  font-weight: 700;
}

/* 状態バッジ（中立トーン。状態ごとの色分けはしすぎず読みやすさ優先） */
.商品_状態 {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--背景);
  border: 1px solid var(--罫線);
  color: var(--文字薄);
  white-space: nowrap;
}
.商品_状態.売却済み { background: #eceff1; color: #455a64; border-color: #b0bec5; }
.商品_状態.出品中 { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.商品_状態.入金待ち { background: #fff8e1; color: #8d6e00; border-color: #ffe082; }
.商品_状態.売却・発送依頼 { background: #fff3e0; color: #bf360c; border-color: #ffcc80; }

.商品_もっと {
  margin-top: 12px;
}
/* 結果エリアに最低の高さを持たせ、絞り込みで件数（ページの高さ）が変わっても
   スクロールが詰まってパネル/プルダウンの位置がずれないようにする */
.商品_結果領域 {
  min-height: 60vh;
}
.商品_空表示, .商品_読込 {
  text-align: center;
  padding: 40px 16px;
  color: var(--文字弱);
  font-size: 13px;
}

/* ============================================================
   詳細
   ============================================================ */
.商品_戻る {
  background: transparent;
  border: none;
  color: var(--文字薄);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  margin-bottom: 8px;
}
.商品_戻る:hover { color: var(--文字); }

.商品_詳細ヘッダ {
  margin-bottom: 16px;
}
.商品_詳細名 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.商品_詳細SKU {
  font-size: 13px;
  color: var(--文字弱);
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* 読み取り項目（ラベル：値） */
.商品_項目 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--罫線);
}
.商品_項目:last-child { border-bottom: none; }
.商品_項目ラベル {
  font-size: 12px;
  color: var(--文字弱);
  flex-shrink: 0;
}
.商品_項目値 {
  font-size: 14px;
  text-align: right;
  word-break: break-word;
}
.商品_項目値.金額 { font-weight: 700; }

/* 編集項目 */
.商品_編集項目 {
  padding: 10px 0;
  border-bottom: 1px solid var(--罫線);
}
.商品_編集項目:last-child { border-bottom: none; }
.商品_編集ラベル {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--文字弱);
  font-weight: 600;
  margin-bottom: 6px;
}
.商品_保存中 { color: var(--情報); font-weight: 600; }
.商品_保存済 { color: var(--成功); font-weight: 600; }
.商品_編集行 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.商品_編集行 .入力欄 { flex: 1; min-width: 0; }

/* 寸法（W×H×D＋ショルダー） */
.商品_寸法群 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.商品_寸法欄 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.商品_寸法ラベル {
  font-size: 11px;
  color: var(--文字弱);
  text-align: center;
}

/* 出品状況チップ（読み取り） */
.商品_チップ群 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.商品_チップ {
  display: inline-block;
  padding: 3px 10px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 999px;
  font-size: 12px;
  color: var(--文字);
}

/* ============================================================
   画像ギャラリー
   ============================================================ */
.商品_ギャラリー {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}
.商品_ギャラリー画像 {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--背景);
  cursor: pointer;
  border: 1px solid var(--罫線);
}
.商品_ギャラリー空 {
  font-size: 13px;
  color: var(--文字弱);
  padding: 8px 0;
}

/* 画像拡大（ライトボックス） */
.商品_拡大背景 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
}
.商品_拡大画像 {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================================
   バーコードスキャナ
   ============================================================ */
.商品_スキャナ背景 {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 320;
  display: flex;
  flex-direction: column;
}
.商品_スキャナ映像 {
  flex: 1;
  width: 100%;
  object-fit: cover;
  background: #000;
}
.商品_スキャナ枠 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  max-width: 320px;
  aspect-ratio: 3 / 2;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}
.商品_スキャナ案内 {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  padding: 0 16px;
}
.商品_スキャナ操作 {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}
.商品_スキャナ閉じる {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}
/* 写真で読み取る（主アクション）。黒背景で目立つ青系 */
.商品_スキャナ写真 {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}
.商品_スキャナエラー {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 360px;
  background: var(--カード);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}
/* モバイルKPIダッシュボード（/KPI）専用スタイル。
   スマホ/PC/タブレットで読みやすいよう、カードは自動折返しグリッド、横棒は自前のdivで描画。 */

/* ゾーン見出し（現在の状況 / 期間の実績）。ラベル＋細い区切り線 */
.KPIゾーン見出し {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 2px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--文字弱);
}
.KPIゾーン見出し:first-of-type {
  margin-top: 8px;
}
.KPIゾーン見出し::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--罫線);
}

/* 折りたたみセクション */
.KPI区画 {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.KPI区画ヘッダ {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 12px;
}
.KPI区画トグル {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--文字);
  text-align: left;
  transition: background 0.12s;
}
.KPI区画トグル:hover {
  background: var(--背景);
}
.KPI区画矢印 {
  flex-shrink: 0;
  width: 11px;
  font-size: 10px;
  color: var(--文字弱);
}
.KPI区画タイトル {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.KPI区画本文 {
  padding: 2px 14px 16px;
}

/* セクション見出しの右に出す「現在」「今月」などの期間ピル */
.KPI期間ピル {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  font-size: 11px;
  font-weight: 600;
  color: var(--文字薄);
  vertical-align: middle;
  white-space: nowrap;
}

/* 数値カードの自動折返しグリッド */
.KPIグリッド {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

/* 数値カード1枚 */
.KPIカード {
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.KPIカードラベル {
  font-size: 11.5px;
  color: var(--文字弱);
  font-weight: 600;
}
.KPIカード値 {
  font-size: 20px;
  font-weight: 700;
  color: var(--文字);
  line-height: 1.25;
  word-break: break-all;
}
.KPIカード値.小 {
  font-size: 17px;
}
.KPIカード副 {
  font-size: 11.5px;
  color: var(--文字薄);
}
/* 目標差など強調する小バッジ */
.KPI差バッジ {
  font-size: 12px;
  font-weight: 700;
}

/* 横棒チャート（担当者別・所属別・滞留構成比） */
.KPIバー一覧 {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.KPIバー行 {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 8px;
}
.KPIバー名 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--文字);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.KPIバートラック {
  position: relative;
  height: 16px;
  background: var(--罫線);
  border-radius: 5px;
  overflow: hidden;
}
.KPIバー塗り {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.3s ease;
}
.KPIバー値 {
  font-size: 12px;
  color: var(--文字薄);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.KPIバー副 {
  font-size: 11px;
  color: var(--文字弱);
  font-weight: 400;
}

/* 滞留の凡例（バケット色の説明）は使わず、行ごとに色を付ける */

/* 空・エラー時の注記カード */
.KPI注記 {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--文字薄);
  font-size: 13px;
}

/* セクション内の区切り（サマリーの下に内訳バーを置くとき） */
.KPI小見出し {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--文字薄);
  margin: 16px 0 10px;
}

/* 画面が広いとき（タブレット/PC）はカードをやや大きく */
@media (min-width: 720px) {
  .KPIカード値 {
    font-size: 22px;
  }
}
/* ============================================================
   グローバル設定
   ============================================================ */
:root {
  --背景: #f7f7f5;
  --カード: #ffffff;
  --文字: #1a1a1a;
  --文字薄: #555555;
  --文字弱: #888888;
  --罫線: #e5e5e5;
  --強調: #1a1a1a;
  --成功: #2e7d32;
  --成功背景: #e8f5e9;
  --情報: #1565c0;
  --情報背景: #e3f2fd;
  --エラー: #c62828;
  --エラー背景: #ffebee;
  --サイドバー幅: 240px;
  --トップバー高さ: 52px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #root {
  min-height: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
               "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--文字);
  background: var(--背景);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ============================================================
   認証系画面（共通）
   ============================================================ */
.ロード画面 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 14px;
  color: var(--文字薄);
}

.認証画面 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.認証カード {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.認証アイコン {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.認証タイトル {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.認証説明 {
  font-size: 13px;
  color: var(--文字薄);
  margin-bottom: 24px;
  line-height: 1.7;
}

.認証フォーム {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.認証エラー {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--エラー背景);
  color: var(--エラー);
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

/* ============================================================
   入力・ボタン
   ============================================================ */
.入力欄 {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--罫線);
  border-radius: 8px;
  font-family: inherit;
  background: var(--カード);
  color: var(--文字);
  outline: none;
  transition: border-color 0.15s;
}
.入力欄:focus { border-color: var(--文字); }
.入力欄:disabled { background: var(--背景); cursor: not-allowed; }

/* select はネイティブ矢印を消し、自前のシェブロンに統一する。
   幅が可変(width:auto)でも矢印位置がずれない。 */
select.入力欄 {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  padding-right: 34px;
}
/* disabled時も .入力欄:disabled の background ショートハンド(=repeat)に負けないよう、
   繰り返し・位置・サイズまで明示する（抜けるとシェブロンがタイル状に敷き詰められる）。 */
select.入力欄:disabled {
  background-color: var(--背景);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23bbb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
}

.主ボタン {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  background: var(--文字);
  color: var(--カード);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}
.主ボタン:hover:not(:disabled) { background: #000; }
.主ボタン:disabled { opacity: 0.5; cursor: not-allowed; }

.危険ボタン {
  background: var(--エラー);
}
.危険ボタン:hover:not(:disabled) { background: #b71c1c; }

.副ボタン {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 12px;
  background: transparent;
  color: var(--文字薄);
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}
.副ボタン:hover { color: var(--文字); }

/* ============================================================
   アプリ全体レイアウト
   ============================================================ */
.アプリ全体 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* モバイル用トップバー（デフォルトは非表示、モバイルで表示） */
.トップバー {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: var(--トップバー高さ);
  background: var(--カード);
  border-bottom: 1px solid var(--罫線);
  position: sticky;
  top: 0;
  z-index: 30;
}

.ハンバーガー {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 10px;
  color: var(--文字);
  font-family: inherit;
  border-radius: 6px;
}
.ハンバーガー:hover { background: var(--背景); }

.トップバータイトル {
  font-size: 14px;
  font-weight: 700;
}

/* モバイルでメニュー開いた時の半透明背景 */
.メニュー背景 {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

/* サイドバー */
.サイドバー {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--サイドバー幅);
  background: var(--カード);
  border-right: 1px solid var(--罫線);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}

.サイドバーヘッダー {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--罫線);
}
.サイドバーアイコン {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.サイドバータイトル {
  flex: 1;
  min-width: 0;
}
.サイドバータイトル大 {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.サイドバータイトル小 {
  font-size: 10px;
  color: var(--文字弱);
  letter-spacing: 0.15em;
}

.ナビ {
  flex: 1;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ナビ_セクション見出し {
  font-size: 10px;
  font-weight: 700;
  color: var(--文字弱);
  letter-spacing: 0.2em;
  padding: 14px 12px 6px;
  border-top: 1px solid var(--罫線);
  margin-top: 8px;
}

/* 管理者専用メニュー/タブのバッジ */
.管理者バッジ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  background: #ff9800;
  color: white;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.ナビ項目.アクティブ .管理者バッジ {
  background: #ffb74d;
  color: #1a1a1a;
}

.ナビ項目 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--文字);
  font-size: 14px;
  transition: background 0.12s;
}
.ナビ項目:hover { background: var(--背景); }
.ナビ項目.アクティブ {
  background: var(--文字);
  color: var(--カード);
  font-weight: 600;
}
.ナビアイコン {
  font-size: 16px;
  width: 22px;
  text-align: center;
}
.ナビラベル {
  flex: 1;
}

.サイドバーフッター {
  padding: 12px;
  border-top: 1px solid var(--罫線);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.サイドバーユーザー {
  font-size: 11px;
  color: var(--文字弱);
  word-break: break-all;
  padding: 0 4px;
}
.サイドバーサインアウト {
  padding: 8px 12px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  color: var(--文字);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.サイドバーサインアウト:hover { background: #ececec; }

/* ページ本体（サイドバーの右側） */
.ページ本体 {
  flex: 1;
  padding: 24px 24px 80px;
  margin-left: var(--サイドバー幅);
  min-width: 0;
}

/* ============================================================
   ページ共通
   ============================================================ */
.ページ {
  max-width: 920px;
  margin: 0 auto;
}

.ページタイトル {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ページタイトルと右寄せボタンを並べる行 */
.ページタイトル_行 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ページ説明 {
  font-size: 13px;
  color: var(--文字薄);
  margin-bottom: 24px;
  line-height: 1.8;
}

.準備中カード {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}
.準備中アイコン {
  font-size: 40px;
  margin-bottom: 12px;
}
.準備中タイトル {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.準備中本文 {
  font-size: 13px;
  color: var(--文字薄);
}

/* ============================================================
   ホーム
   ============================================================ */
.ホーム挨拶 {
  margin-bottom: 24px;
}
.ホーム挨拶大 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ホーム挨拶小 {
  font-size: 12px;
  color: var(--文字弱);
  letter-spacing: 0.15em;
}

.ホーム通知カード {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #fff3e0;
  border: 1.5px solid #ff7043;
  border-radius: 10px;
  color: #bf360c;
  text-decoration: none;
  transition: background 0.1s, transform 0.05s;
}
.ホーム通知カード:hover {
  background: #ffe0b2;
}
.ホーム通知カード:active {
  transform: scale(0.99);
}
.ホーム通知カード_アイコン {
  font-size: 24px;
  flex-shrink: 0;
}
.ホーム通知カード_本文 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ホーム通知カード_本文 strong {
  font-size: 15px;
  font-weight: 700;
}
.ホーム通知カード_本文 span {
  font-size: 12px;
  font-weight: 500;
  color: #6d4c41;
}
.ホーム通知カード_矢印 {
  font-size: 22px;
  color: #ff7043;
  flex-shrink: 0;
}

/* 通知ON/OFFトグル行 */
.通知トグル行 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--罫線);
  cursor: pointer;
}
.通知トグル行:last-child {
  border-bottom: none;
}
.通知トグル_本文 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.通知トグル_名前 {
  font-size: 14px;
  font-weight: 600;
  color: var(--文字);
}
.通知トグル_説明 {
  font-size: 12px;
  color: var(--文字弱);
}
.通知トグル_チェック {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

/* 通知連携セクション(設定ページ) */
.通知連携_状態行 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.通知連携_状態 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.通知連携_サービス {
  font-weight: 700;
  font-size: 14px;
  color: var(--文字);
}
.通知連携_バッジ {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #66bb6a;
}

/* LINE公式アカウント未追加の警告 */
.通知連携_警告 {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  background: #fff3e0;
  border: 1.5px solid #ffb74d;
  border-radius: 8px;
}
.通知連携_警告アイコン {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}
.通知連携_警告本文 {
  flex: 1;
}
.通知連携_警告見出し {
  font-weight: 700;
  font-size: 14px;
  color: #bf360c;
  margin-bottom: 4px;
}
.通知連携_警告説明 {
  font-size: 13px;
  line-height: 1.6;
  color: #6d4c41;
  margin: 0 0 10px;
}
.通知連携_追加ボタン {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  background: #06c755;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.通知連携_追加ボタン:hover {
  background: #05b34c;
}

/* LINE連携用バリエーション（緑系） */
.ホーム通知カード_LINE {
  background: #e8f5e9;
  border-color: #06c755;
  color: #1b5e20;
}
.ホーム通知カード_LINE:hover {
  background: #c8e6c9;
}
.ホーム通知カード_LINE .ホーム通知カード_本文 span {
  color: #2e7d32;
}
.ホーム通知カード_LINE .ホーム通知カード_矢印 {
  color: #06c755;
}

.ショートカットグリッド {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.ショートカット {
  display: block;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 18px 14px;
  text-decoration: none;
  color: var(--文字);
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s;
}
.ショートカット:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ショートカットアイコン {
  font-size: 28px;
  margin-bottom: 8px;
}
.ショートカット名 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ショートカット説明 {
  font-size: 11px;
  color: var(--文字弱);
}

/* ============================================================
   汎用区画（インストール手順などで使用）
   ============================================================ */
.区画 {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.区画タイトル {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.区画説明 {
  font-size: 12.5px;
  color: var(--文字薄);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* タブ */
.タブ群 {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  padding: 4px;
}
.タブ {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--文字薄);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.タブ:hover { color: var(--文字); }
.タブ.アクティブ {
  background: var(--カード);
  color: var(--文字);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 常に均等幅のタブ群(タブ数が少なく横スクロール不要なページ用) */
.タブ群_均等 {
  margin-bottom: 0;
}
.タブ群_均等 .タブ {
  flex: 1 1 0;
  white-space: normal;
}

/* 手順 */
.手順項目 {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--罫線);
  align-items: flex-start;
}
.手順項目:first-child { padding-top: 0; }
.手順項目:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.手順番号 {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--文字);
  color: var(--カード);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.手順本文 {
  font-size: 14px;
  line-height: 1.7;
}
.手順補足 {
  font-size: 12px;
  color: var(--文字弱);
  line-height: 1.6;
  margin-top: 4px;
}
.キー {
  display: inline-block;
  padding: 1px 8px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 2px;
}

/* ============================================================
   入力ラベル・必須印
   ============================================================ */
.入力ラベル {
  display: block;
  font-size: 12px;
  color: var(--文字薄);
  font-weight: 600;
  margin-bottom: 6px;
}
.必須印 {
  color: var(--エラー);
  margin-left: 2px;
}

/* 小さい主ボタン（タグ追加など） */
.主ボタン_小 {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--文字);
  color: var(--カード);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.主ボタン_小:hover:not(:disabled) { background: #000; }
.主ボタン_小:disabled { opacity: 0.4; cursor: not-allowed; }

/* 小さい副ボタン（取消など、主ボタン_小と同寸の枠線スタイル） */
.副ボタン_小 {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  background: var(--カード);
  color: #c62828;
  border: 1.5px solid #c62828;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.副ボタン_小:hover:not(:disabled) {
  background: #ffebee;
}
.副ボタン_小:disabled { opacity: 0.4; cursor: not-allowed; }

/* 中立の小ボタン（編集・報告など、破壊的でない副操作用。主ボタン_小と同寸） */
.中立ボタン_小 {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  background: var(--カード);
  color: var(--文字);
  border: 1.5px solid var(--罫線);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.中立ボタン_小:hover:not(:disabled) {
  background: var(--背景);
  border-color: var(--文字薄);
}
.中立ボタン_小:disabled { opacity: 0.4; cursor: not-allowed; }

/* 15分刻みの時刻選択 */
.時刻選択 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.時刻選択_時,
.時刻選択_分 {
  width: 72px;
  padding-right: 24px;
}
.時刻選択_区切り {
  font-weight: 700;
  color: var(--文字);
}

/* ============================================================
   タグ選択コンポーネント
   ============================================================ */
.タグ選択 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.タグ選択_選択中 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  padding: 6px 8px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  align-items: center;
}
.タグ選択_空 {
  color: var(--文字弱);
  font-size: 12px;
}
.タグ {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 999px;
  font-size: 12px;
  color: var(--文字);
}
.タグ削除 {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--文字弱);
  padding: 0 4px;
  border-radius: 50%;
}
.タグ削除:hover {
  color: var(--エラー);
  background: var(--エラー背景);
}
.タグ選択_候補 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 8px;
}
.タグ候補_群 {
  display: inline-flex;
  align-items: stretch;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
}
.タグ候補_群:hover {
  border-color: var(--情報);
}
.タグ候補 {
  padding: 4px 10px;
  background: transparent;
  border: none;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--文字);
}
.タグ候補:hover {
  background: var(--情報背景);
  color: var(--情報);
}
.タグ候補_削除 {
  padding: 0 8px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--罫線);
  color: #999;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.タグ候補_削除:hover {
  background: #ffebee;
  color: #c62828;
}
.タグ選択_入力行 {
  display: flex;
  gap: 6px;
}
.タグ選択_入力行 .入力欄 {
  flex: 1;
}

/* ============================================================
   設定ページ - 編集フォーム
   ============================================================ */
.設定区画ヘッダー {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.設定区画ヘッダー .設定区画タイトル {
  margin-bottom: 0;
}

.編集行 {
  padding: 12px 0;
  border-bottom: 1px solid var(--罫線);
}
.編集行:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.編集行:first-child {
  padding-top: 0;
}

.編集サブグリッド {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.チェック群 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.チェック項目 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.チェック項目 input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.編集ボタン群 {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.編集ボタン群 .主ボタン {
  flex: 1;
}
/* 編集フォーム下のキャンセルは枠線ボタン化(保存と並んだとき自然に) */
.編集ボタン群 .副ボタン {
  flex: 1;
  margin-top: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--文字);
  background: var(--カード);
  border: 1.5px solid var(--罫線);
  border-radius: 12px;
  text-decoration: none;
}
.編集ボタン群 .副ボタン:hover {
  background: #f5f5f5;
  border-color: var(--文字);
}

/* ============================================================
   設定ページ
   ============================================================ */
.設定区画 {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.設定区画タイトル {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--文字);
}
.設定行 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--罫線);
  gap: 16px;
}
.設定行:last-child { border-bottom: none; }
.設定ラベル {
  font-size: 12px;
  color: var(--文字弱);
  flex-shrink: 0;
}
.設定値 {
  font-size: 13px;
  text-align: right;
  word-break: break-all;
}

/* ============================================================
   シフトページ
   ============================================================ */
.シフト_タブ群 {
  margin-bottom: 24px;
}

.シフト_タブ本体 {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 24px;
}

.シフト_見出し {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.シフト_説明 {
  font-size: 13px;
  color: var(--文字薄);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* 数値ステッパー（+/-で数値増減） */
.数値ステッパー {
  display: flex;
  align-items: stretch;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.数値ステッパー_ボタン {
  width: 36px;
  background: var(--背景);
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--文字);
  font-family: inherit;
}
.数値ステッパー_ボタン:hover:not(:disabled) {
  background: #ececec;
}
.数値ステッパー_ボタン:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.数値ステッパー_値 {
  min-width: 64px;
  padding: 8px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border-left: 1px solid var(--罫線);
  border-right: 1px solid var(--罫線);
}

/* シフト行内のボタン群（1行で並べる、折り返ししない） */
.シフト_行ボタン {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
}
.シフト_行ボタン .副ボタン {
  padding: 4px 10px;
  font-size: 12px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 6px;
  text-decoration: none;
  color: var(--文字);
}
.シフト_行ボタン .副ボタン:hover {
  background: var(--背景);
  color: var(--文字);
}

/* モーダル */
.モーダル背景 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.モーダル {
  background: var(--カード);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.モーダル_見出し {
  font-size: 16px;
  font-weight: 700;
  padding: 18px 22px;
  border-bottom: 1px solid var(--罫線);
}
.モーダル_本文 {
  padding: 18px 22px;
}
.モーダル_アクション {
  display: flex;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--罫線);
  justify-content: flex-end;
  align-items: center;
}
.モーダル_アクション .主ボタン {
  width: auto;
  padding: 10px 20px;
}
/* モーダル内のキャンセルは「下線テキスト」ではなく枠線ボタンにして
   主ボタンと高さ・体裁を揃える（既存の副ボタンは text-link 仕様のため上書き） */
.モーダル_アクション .副ボタン {
  margin-top: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--文字);
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  text-decoration: none;
}
.モーダル_アクション .副ボタン:hover:not(:disabled) {
  background: var(--背景);
  border-color: var(--文字薄);
  color: var(--文字);
}
.モーダル_アクション .副ボタン:disabled { opacity: 0.5; cursor: not-allowed; }

/* 集計ブロック（欠席遅刻ページ等） */
.集計グリッド {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.集計ブロック {
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  padding: 14px 16px;
}
.集計ブロック_ラベル {
  font-size: 11px;
  font-weight: 700;
  color: var(--文字弱);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.集計行 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 13px;
}
.集計行 strong {
  font-size: 20px;
  font-weight: 800;
  margin-right: 2px;
}
.集計_注釈 {
  margin-top: 8px;
  font-size: 11px;
  color: var(--文字弱);
}

/* ============================================================
   月カレンダー
   ============================================================ */
.カレンダー {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.カレンダー_曜日列 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}
.カレンダー_曜日ヘッダ {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--文字薄);
  padding: 4px 0;
  min-width: 0;
}
.カレンダー_曜日ヘッダ.日曜 { color: #d32f2f; }
.カレンダー_曜日ヘッダ.土曜 { color: #1976d2; }

.カレンダー_グリッド {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.カレンダー_日 {
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  min-width: 0;
  min-height: 64px;
  overflow: hidden;
  transition: transform 0.08s, box-shadow 0.08s;
  color: var(--文字);
}
.カレンダー_日:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.カレンダー_空 {
  background: transparent;
  border: none;
  min-height: 64px;
}
.カレンダー_日付数 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.カレンダー_日.日曜 .カレンダー_日付数 { color: #d32f2f; }
.カレンダー_日.土曜 .カレンダー_日付数 { color: #1976d2; }
.カレンダー_情報 {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  margin-top: 3px;
  line-height: 1.2;
  white-space: nowrap;
}
.カレンダー_副情報 {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  margin-top: 1px;
  line-height: 1.2;
  white-space: nowrap;
  color: #bf360c;
}

/* 状態別の色 */
.カレンダー_日.状態_枠あり {
  background: #e3f2fd;
  border-color: #90caf9;
}
.カレンダー_日.状態_申請中 {
  background: #fff9c4;
  border-color: #ffd54f;
  color: #5d4037;
}
.カレンダー_日.状態_申込済 {
  background: #e8f5e9;
  border-color: #66bb6a;
  color: #1b5e20;
}
.カレンダー_日.状態_却下 {
  background: #eceff1;
  border-color: #b0bec5;
  color: #455a64;
  text-decoration: line-through;
}
.カレンダー_日.状態_満員 {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.カレンダー_日.状態_確定あり {
  background: #fff3e0;
  border-color: #ffb74d;
}
.カレンダー_日.状態_不足 {
  background: #ffccbc;
  border-color: #ff7043;
  color: #bf360c;
}
.カレンダー_日.状態_休日 {
  background: #fde8e8;
  border-color: #e57373;
  color: #c62828;
}
.カレンダー_日.状態_休日 .カレンダー_日付数 { color: #c62828; }
.カレンダー_日.選択中 {
  outline: 2px solid var(--文字);
  outline-offset: -2px;
}

/* 不足アラートバナー */
.不足アラート {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  background: #ffe0b2;
  border: 1.5px solid #ff7043;
  border-radius: 8px;
  color: #bf360c;
  font-size: 13px;
  font-weight: 600;
}
.不足アラート_アイコン {
  font-size: 16px;
}
.不足アラート_本文 {
  flex: 1;
}
.不足アラート_詳細 {
  font-weight: 500;
  font-size: 12px;
  color: #6d4c41;
  margin-top: 2px;
}

/* 締切バッジ */
.締切バッジ {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 8px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}
.締切バッジ_ラベル {
  font-weight: 700;
}
.締切バッジ_本文 {
  font-weight: 700;
}
.締切バッジ_日付 {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}
.締切バッジ_遠 {
  background: #f5f5f5;
  border-color: #cfd8dc;
  color: #455a64;
}
.締切バッジ_接近 {
  background: #fff3e0;
  border-color: #ffb74d;
  color: #e65100;
}
.締切バッジ_直前 {
  background: #ffe0b2;
  border-color: #ff7043;
  color: #bf360c;
}
.締切バッジ_当日 {
  background: #ffcdd2;
  border-color: #e53935;
  color: #b71c1c;
}
.締切バッジ_過去 {
  background: #eceff1;
  border-color: #90a4ae;
  color: #455a64;
}

/* モード切替（単一選択/複数選択） */
.モード切替 {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  padding: 4px;
}
.モード切替 .タブ {
  flex: 1;
}

/* 一括操作ツールバー */
.一括操作 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 8px;
}
.一括操作 .副ボタン {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 6px;
  text-decoration: none;
  color: var(--文字);
}
.一括操作 .副ボタン:hover {
  background: var(--背景);
  color: var(--文字);
}
.一括操作_数 {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--文字);
}

/* 凡例 */
.凡例 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--文字薄);
  margin-bottom: 12px;
}
.凡例_項目 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.凡例_色 {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--罫線);
}

/* 日の詳細パネル */
.日詳細 {
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.日詳細_見出し {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.日詳細_見出し_補足 {
  font-size: 11px;
  color: var(--文字弱);
  font-weight: 500;
}
.日詳細_枠 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  margin-bottom: 8px;
}
.日詳細_枠:last-child { margin-bottom: 0; }
.日詳細_枠情報 {
  font-size: 13px;
  flex: 1;
  min-width: 0;
}
.日詳細_時間 {
  font-weight: 700;
  margin-right: 8px;
}
.日詳細_担当 {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 999px;
  margin-right: 6px;
}
.日詳細_メタ {
  font-size: 11px;
  color: var(--文字薄);
  margin-top: 4px;
}

/* シフトの絞り込み行（スタッフ別・担当区分別） */
.シフト_フィルタ {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.シフト_フィルタ項目 {
  flex: 1 1 160px;
  min-width: 140px;
}

/* 確定シフトの日詳細: 担当区分ごとのまとまり */
.日詳細_区分グループ {
  margin-bottom: 14px;
}
.日詳細_区分グループ:last-child {
  margin-bottom: 0;
}
.日詳細_区分見出し {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--文字);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--罫線);
}
.日詳細_区分人数 {
  font-size: 11px;
  font-weight: 500;
  color: var(--文字薄);
}

/* ============================================================
   月ナビ（‹ 2026年5月 › 今月）
   ============================================================ */
.月ナビ {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}
.月ナビ_矢印 {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--文字);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.月ナビ_矢印:hover {
  background: var(--背景);
}
.月ナビ_ラベル {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  min-width: 110px;
  text-align: center;
}
.月ナビ_今月 {
  margin-left: 4px;
  padding: 6px 14px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--文字);
}
.月ナビ_今月:hover {
  background: var(--罫線);
}

/* ============================================================
   一覧表（横スクロール対応）
   ============================================================ */
.一覧表ラッパ {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px 6px;
}
.一覧表 {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.一覧表 th {
  text-align: left;
  padding: 8px 8px;
  background: var(--背景);
  color: var(--文字薄);
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--罫線);
  white-space: nowrap;
}
.一覧表 td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--罫線);
  vertical-align: middle;
  white-space: nowrap;
}
.一覧表 tr:last-child td {
  border-bottom: none;
}
.一覧表 tr:hover td {
  background: var(--背景);
}
/* アクション列を内容幅に固定（最後の余白を出さない） */
.一覧表 td.一覧表_アクション列,
.一覧表 th.一覧表_アクション列 {
  width: 1%;
  text-align: right;
}

.バッジ_満員 {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: var(--エラー背景);
  color: var(--エラー);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.バッジ_申請中 {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #fff9c4;
  color: #5d4037;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.バッジ_承認 {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.バッジ_却下 {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #eceff1;
  color: #455a64;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.バッジ_差戻し {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #fff3e0;
  color: #e65100;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .月ナビ {
    width: 100%;
    justify-content: space-between;
  }
  .月ナビ_ラベル {
    flex: 1;
  }
  .一覧表 {
    font-size: 11.5px;
  }
  .一覧表 th, .一覧表 td {
    padding: 5px 6px;
  }
  /* タブが多い時の横スクロール */
  .タブ群 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .タブ {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
  }
  /* 均等幅タブ群はモバイルでもスクロールせず全幅で割る */
  .タブ群_均等 {
    overflow-x: visible;
  }
  .タブ群_均等 .タブ {
    flex: 1 1 0;
    white-space: normal;
    padding: 10px 8px;
  }
  /* シフト系のタブ本体の余白を縮める（カレンダー領域確保） */
  .シフト_タブ本体 {
    padding: 16px;
  }
  /* カレンダー本体もコンパクトに */
  .カレンダー {
    padding: 10px;
  }
  .カレンダー_日 {
    min-height: 56px;
    padding: 5px 2px;
  }
  .カレンダー_空 {
    min-height: 56px;
  }
  .カレンダー_日付数 {
    font-size: 12px;
  }
  .カレンダー_情報,
  .カレンダー_副情報 {
    font-size: 9px;
  }
  .カレンダー_曜日ヘッダ {
    font-size: 10px;
  }
  .カレンダー_グリッド, .カレンダー_曜日列 {
    gap: 3px;
  }
  /* 日詳細パネルの余白も縮める */
  .日詳細 {
    padding: 14px;
  }
  .日詳細_枠 {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* ============================================================
   フッター（バージョン表示）
   ============================================================ */
.フッター {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--文字弱);
}
.フッター code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--カード);
  border: 1px solid var(--罫線);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
}

/* ============================================================
   モバイル対応（768px以下）
   ============================================================ */
@media (max-width: 768px) {
  .トップバー {
    display: flex;
  }

  .サイドバー {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    top: var(--トップバー高さ);
  }
  .サイドバー.開 {
    transform: translateX(0);
  }

  .メニュー背景 {
    display: block;
    top: var(--トップバー高さ);
  }

  .ページ本体 {
    margin-left: 0;
    padding: 16px 16px 60px;
  }

  .ページタイトル {
    font-size: 19px;
  }

  .ショートカットグリッド {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
}

/* ============================================================
   社内マニュアル
   ============================================================ */
.マニュアル_見出しバー {
  background: var(--文字);
  color: var(--カード);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px;
}
.マニュアル_本文 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.マニュアル_章 {
  border-top: 1px solid var(--罫線);
  padding-top: 16px;
}
.マニュアル_章:first-child {
  border-top: none;
  padding-top: 0;
}
.マニュアル_章タイトル {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--文字);
}
.マニュアル_段落 {
  font-size: 14px;
  line-height: 1.7;
  color: var(--文字);
  margin: 0 0 12px;
}

/* 機能紹介の行（クリックで各マニュアルへ飛ぶ） */
.機能紹介_行 {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--罫線);
  border-radius: 0;
  padding: 11px 6px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
.機能紹介_行:hover {
  background: var(--背景);
}
.機能紹介_行.非リンク {
  cursor: default;
}
.機能紹介_行.非リンク:hover {
  background: transparent;
}
.マニュアル_小見出し {
  font-size: 13px;
  font-weight: 700;
  color: var(--文字弱);
  margin: 16px 0 8px;
}

/* 手順カード */
.マニュアル_手順 {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.マニュアル_手順番号 {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--文字);
  color: var(--カード);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.マニュアル_手順見出し {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.マニュアル_手順説明 {
  font-size: 13px;
  line-height: 1.6;
  color: var(--文字弱);
}

/* 注意・ヒントボックス */
.マニュアル_注意 {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.マニュアル_注意アイコン {
  flex-shrink: 0;
}
.マニュアル_注意_ヒント {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}
.マニュアル_注意_警告 {
  background: #fff3e0;
  color: #bf360c;
  border: 1px solid #ffb74d;
}

/* 場所バッジ */
.マニュアル_場所 {
  display: inline-block;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--文字);
  margin-bottom: 12px;
}

/* カレンダー凡例表 */
.マニュアル_凡例表 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.マニュアル_凡例行 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.マニュアル_凡例セル {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--文字);
}
.マニュアル_凡例ラベル {
  flex-shrink: 0;
  width: 64px;
  font-size: 13px;
  font-weight: 700;
}
.マニュアル_凡例意味 {
  font-size: 13px;
  color: var(--文字弱);
}

/* バッジ列 */
.マニュアル_バッジ列 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

/* メニュー対比 */
.マニュアル_メニュー対比 {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.マニュアル_メニューカード {
  flex: 1;
  background: var(--背景);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.マニュアル_メニューアイコン {
  font-size: 28px;
}
.マニュアル_メニュー名 {
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 4px;
}
.マニュアル_メニュー中身 {
  font-size: 12px;
  color: var(--文字弱);
  line-height: 1.5;
}

/* 代打フロー図 */
.マニュアル_フロー {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 8px 0;
}
.マニュアル_フロー要素 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
}
.マニュアル_フローカード {
  width: 100%;
  border: 1.5px solid;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}
.マニュアル_フロー主体 {
  font-size: 12px;
  font-weight: 700;
  color: var(--文字);
}
.マニュアル_フロー動作 {
  font-size: 13px;
  color: var(--文字);
  margin-top: 2px;
}
.マニュアル_フロー矢印 {
  font-size: 14px;
  color: var(--文字弱);
  padding: 4px 0;
}

/* 通知種別 */
.マニュアル_通知種別 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.マニュアル_通知種別行 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--文字);
}
.マニュアル_通知即時, .マニュアル_通知集約 {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  padding: 3px 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.マニュアル_通知即時 {
  background: #ffcdd2;
  color: #b71c1c;
}
.マニュアル_通知集約 {
  background: #e1f5fe;
  color: #01579b;
}

/* ============================================================
   日付入力(自前カレンダーポップアップ)
   ============================================================ */
.日付入力ラッパ {
  position: relative;
  display: block;
}
.日付入力_フィールド {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 8px 0 0; /* 内側のinputが左パディングを持つ */
}
.日付入力_フィールド.無効 {
  background: var(--背景);
  opacity: 0.6;
}
.日付入力_テキスト {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--文字);
  padding: 12px 0 12px 14px;
}
.日付入力_テキスト::placeholder {
  color: var(--文字弱);
}
.日付入力_テキスト:disabled {
  cursor: not-allowed;
}
.日付入力_右 {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.日付入力_クリア,
.日付入力_アイコンボタン {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 6px;
  padding: 4px;
  line-height: 1;
}
.日付入力_クリア {
  width: 22px;
  height: 22px;
  color: #999;
  font-size: 15px;
}
.日付入力_クリア:hover {
  background: #ffebee;
  color: #c62828;
}
.日付入力_アイコンボタン {
  font-size: 16px;
}
.日付入力_アイコンボタン:hover:not(:disabled) {
  background: var(--背景);
}
.日付入力_アイコンボタン:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* ポップアップ本体 */
.日付ポップアップ {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  padding: 12px;
  width: 280px;
}
.日付ポップアップ_ヘッダ {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}
.日付ポップアップ_ナビ {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--文字);
  font-family: inherit;
}
.日付ポップアップ_ナビ:hover {
  background: var(--背景);
}
.日付ポップアップ_曜日 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.日付ポップアップ_曜日 span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--文字弱);
  padding: 2px 0;
}
.日付ポップアップ_曜日 .日曜 { color: #d32f2f; }
.日付ポップアップ_曜日 .土曜 { color: #1976d2; }
.日付ポップアップ_グリッド {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.日付ポップアップ_日 {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--文字);
  font-family: inherit;
}
.日付ポップアップ_日:hover {
  background: var(--背景);
}
.日付ポップアップ_日.選択中 {
  background: var(--文字);
  color: var(--カード);
  font-weight: 700;
}
.日付ポップアップ_日.今日:not(.選択中) {
  outline: 1.5px solid var(--情報);
  outline-offset: -1.5px;
}

/* 稟議カードの種別別項目 */
.稟議項目 {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.稟議項目_行 {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.稟議項目_ラベル {
  flex-shrink: 0;
  min-width: 96px;
  color: var(--文字弱);
  font-weight: 600;
}
.稟議項目_値 {
  color: var(--文字);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 期間入力(1日/期間 切替) */
.期間入力_範囲 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.期間入力_範囲 > .日付入力ラッパ {
  flex: 1;
  min-width: 0;
}
.期間入力_区切り {
  flex-shrink: 0;
  color: var(--文字弱);
  font-weight: 700;
}

/* マニュアルのジャンル選択 */
.マニュアル_ジャンル {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.マニュアル_ジャンルボタン {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--カード);
  border: 1.5px solid var(--罫線);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--文字);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s;
}
.マニュアル_ジャンルボタン:hover {
  background: var(--背景);
}
.マニュアル_ジャンルボタン.選択中 {
  background: var(--文字);
  border-color: var(--文字);
  color: var(--カード);
}
.マニュアル_ジャンルアイコン {
  font-size: 16px;
}

/* マニュアルのハブ(カテゴリ別カード一覧) */
.マニュアル_カテゴリ {
  margin-bottom: 24px;
}
.マニュアル_カテゴリ見出し {
  font-size: 16px;
  font-weight: 700;
  color: var(--文字);
  margin-bottom: 2px;
}
.マニュアル_カテゴリ説明 {
  font-size: 12px;
  color: var(--文字弱);
  margin-bottom: 10px;
}
.マニュアル_カード一覧 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.マニュアル_カード {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--カード);
  border: 1px solid var(--罫線);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--文字);
  transition: transform 0.08s, box-shadow 0.08s, border-color 0.12s;
}
.マニュアル_カード:hover {
  border-color: var(--文字);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.マニュアル_カードアイコン {
  font-size: 28px;
  line-height: 1;
}
.マニュアル_カードラベル {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.マニュアル_カード.準備中 {
  opacity: 0.6;
}
.マニュアル_準備中バッジ {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--背景);
  border: 1px solid var(--罫線);
  color: var(--文字弱);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

/* マニュアル詳細の戻るボタン */
.マニュアル_戻る {
  background: transparent;
  border: none;
  color: var(--文字薄);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  margin-bottom: 12px;
}
.マニュアル_戻る:hover {
  color: var(--文字);
}

/* マニュアル詳細の準備中表示 */
.マニュアル_準備中本文 {
  text-align: center;
  padding: 40px 24px;
}
.マニュアル_準備中アイコン {
  font-size: 40px;
}
.マニュアル_準備中タイトル {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.マニュアル_準備中説明 {
  font-size: 13px;
  color: var(--文字弱);
}
