/* ============================================================
   エコノハ 従業員マイページ リニューアル版（new_mypage）
   モバイルファースト・凛と(Rinto)テイスト
   ブランド: エコノハグリーン #71B136
   new_admin / 01-base.css のカラートークンに準拠
   ----- v2: シンプル・大きく・ゆったり（余白広め / 大きめフォント） -----
   ============================================================ */

:root {
  /* ブランド */
  --eco-green: #71B136;
  --eco-green-dark: #5c9329;
  --eco-green-darker: #4a7a20;
  --eco-green-light: #eef6e4;
  --eco-green-tint: #f6fbf0;

  /* グレースケール / UI */
  --ink: #1d2620;
  --ink-soft: #4a564d;
  --ink-mute: #8a958d;
  --line: #e6ebe4;
  --line-soft: #eef2eb;
  --bg-app: #f4f7f1;
  --card: #ffffff;
  --shadow-sm: 0 2px 6px rgba(31, 51, 32, 0.05);
  --shadow: 0 6px 22px rgba(31, 51, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 51, 32, 0.13);

  /* アクセント（ステータス） */
  --amber: #e6a020;
  --amber-bg: #fdf3dd;
  --red: #d9534f;
  --red-bg: #fbe7e6;
  --blue: #3a82c4;
  --blue-bg: #e6f0f9;

  /* サイズ（ゆったり版） */
  --app-w: 480px;
  --header-h: 64px;
  --tabbar-h: 72px;
  --gutter: 22px;          /* 画面左右の余白を広めに */
  /* PC用 */
  --pc-app-w: 1180px;      /* PC時の全体最大幅 */
  --pc-sidenav-w: 248px;   /* PC時の左サイドナビ幅 */
  --radius: 12px;          /* カード/パネル：柔らかすぎずシャープすぎず中間の角丸 */
  --radius-sm: 9px;
  --radius-lg: 15px;       /* 大カード(ヒーロー/ログイン等) */

  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  /* ナビ暗色（new_admin 01-base.css の --sb-* に準拠）
     暗色ナビ × 明るいコンテンツで全体を引き締める */
  --sb-bg: #1f3320;
  --sb-bg-2: #18271a;
  --sb-text: #c9d8c4;
  --sb-text-dim: #8ba386;
  --sb-active-bg: #71B136;
  --sb-active-text: #ffffff;
  --sb-hover-bg: rgba(113, 177, 54, 0.16);
  --sb-group-label: #7f9a78;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;            /* 基準を底上げ */
  line-height: 1.75;
  color: var(--ink);
  background: #e9efe3;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
  line-height: 1;
}

/* ============================================================
   アプリシェル
   ============================================================ */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app-w);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-app);
  box-shadow: 0 0 48px rgba(31, 51, 32, 0.10);
  display: flex;
  flex-direction: column;
}

/* ---- ヘッダー ---- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.app-header .brand .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--eco-green);
  color: #fff;
}
.app-header .brand .logo-mark .material-symbols-rounded { font-size: 23px; }
.app-header .brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.app-header .brand .logo-mark { flex: 0 0 auto; }
.app-header .brand .brand-name { font-size: 17px; color: var(--ink); white-space: nowrap; min-width: 0; }
.app-header .brand .brand-name small { display:block; font-size: 10.5px; font-weight: 500; color: var(--ink-mute); letter-spacing:.04em; line-height:1; white-space: nowrap; }

.app-header .header-spacer { flex: 1; }

.app-header .header-user {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46vw;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--eco-green-tint);
  border: 1px solid var(--line-soft);
}
.app-header .header-user .avatar {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--eco-green);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.app-header .header-user .uname { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.app-header .header-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  position: relative;
}
.app-header .header-icon .material-symbols-rounded { font-size: 26px; }
.app-header .header-icon .dot {
  position: absolute; top: 9px; right: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--card);
}

/* ---- ページヘッダー（戻る＋タイトル） ---- */
.page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px var(--gutter) 6px;
}
.page-head .back {
  width: 42px; height: 42px;
  display: inline-flex; align-items:center; justify-content:center;
  border-radius: 13px;
  color: var(--ink-soft);
  margin-left: -8px;
}
.page-head .back:active { background: var(--line-soft); }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.page-head .head-action { margin-left: auto; }

/* ---- コンテンツ ---- */
.app-body {
  flex: 1;
  padding: 8px var(--gutter) calc(var(--tabbar-h) + 32px);
  overflow-y: auto;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
  letter-spacing: .03em;
  margin: 30px 2px 14px;
}
.section-label .material-symbols-rounded { font-size: 20px; color: var(--eco-green-dark); }
.section-label a { margin-left: auto; font-size: 13.5px; color: var(--eco-green-dark); font-weight: 700; }

/* ============================================================
   下部タブバー（暗色ナビ：new_admin の深緑〜黒系で締める）
   ============================================================ */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-w);
  height: var(--tabbar-h);
  background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%);
  border-top: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 -6px 20px rgba(24,39,26,.18);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--sb-text-dim);     /* 非アクティブはくすませた淡グリーン */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tabbar a .material-symbols-rounded { font-size: 28px; }
/* アクティブ：明るいグリーンで暗色背景に映えさせる */
.tabbar a.active { color: var(--eco-green); }
.tabbar a.active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

/* ------------------------------------------------------------
   メニュータブだけ控えめに差別化（緑＋上ライン＋件数バッジ）
   暗色背景でしっかり映えるよう明るめグリーンに
   ------------------------------------------------------------ */
/* 非アクティブ時は他タブと同じ扱い（緑にすると常時「選択中」に見えるため） */
.tabbar a.tab-menu { color: var(--sb-text-dim); }
.tabbar a.tab-menu .material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400;
}
/* アイコン上のライン（インジケーター）はユーザー希望で削除。緑色のみで差別化する */
.tabbar a.tab-menu::before { display: none; }
/* メニュー件数バッジ（アイコン右上・赤丸） */
.tabbar a.tab-menu .tab-badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 9px);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--sb-bg);            /* 暗色バーに馴染む縁取り */
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
}
/* メニューを開いている時（active）だけ他タブと同じく明るいグリーンにする */
.tabbar a.tab-menu.active { color: var(--eco-green); }
.tabbar a.tab-menu.active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

/* ============================================================
   汎用カード / リスト / チップ / ボタン（大きめ）
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card + .card { margin-top: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--eco-green); color: #fff; box-shadow: 0 6px 18px rgba(113,177,54,.32); }
.btn-primary:active { background: var(--eco-green-dark); }
.btn-ghost { background: var(--eco-green-tint); color: var(--eco-green-darker); border: 1px solid var(--line); }
.btn-outline { background: #fff; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn .material-symbols-rounded { font-size: 22px; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-sm .material-symbols-rounded { font-size: 19px; }

/* チップ / ステータス */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.chip .material-symbols-rounded { font-size: 16px; }
.chip-pending  { background: var(--amber-bg); color: var(--amber); }
.chip-approved { background: var(--eco-green-light); color: var(--eco-green-darker); }
.chip-rejected { background: var(--red-bg); color: var(--red); }
.chip-info     { background: var(--blue-bg); color: var(--blue); }
.chip-muted    { background: var(--line-soft); color: var(--ink-mute); }

/* リスト行（ゆったり） */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.list-row:last-child { border-bottom: none; }
.list-row .li-icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--eco-green-tint);
  color: var(--eco-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.list-row .li-icon .material-symbols-rounded { font-size: 25px; }
.list-row .li-main { flex: 1; min-width: 0; }
.list-row .li-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.list-row .li-sub { font-size: 13px; color: var(--ink-mute); }
.list-row .li-meta { text-align: right; flex: none; }
.list-row .li-meta .li-amount { font-weight: 800; font-size: 16px; }
.list-row .chev { color: var(--ink-mute); flex: none; }
.list-row .chev .material-symbols-rounded { font-size: 24px; }

/* テーブル */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.tbl thead th { background: var(--eco-green-tint); color: var(--ink-soft); font-weight: 700; font-size: 12.5px; }
.tbl tbody td { color: var(--ink-soft); }
.tbl .td-day { font-weight: 700; color: var(--ink); }
.tbl tr.is-holiday td { background: #fdf6f6; }
.tbl tr.is-today td { background: var(--eco-green-light); }
.tbl tfoot td { font-weight: 700; color: var(--ink); background: #fafcf8; }

/* フォーム（大きめ） */
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 9px; }
.field .req { color: var(--red); font-size: 12px; margin-left: 5px; }
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--eco-green); box-shadow: 0 0 0 3px rgba(113,177,54,.14); }
.textarea { resize: vertical; min-height: 150px; line-height: 1.75; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%238a958d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.field-hint { font-size: 13px; color: var(--ink-mute); margin-top: 8px; }
.seg {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seg label {
  flex: 1;
  min-width: 96px;
  position: relative;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  height: 50px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14.5px; font-weight: 700; color: var(--ink-soft);
}
.seg input:checked + span { background: var(--eco-green-light); border-color: var(--eco-green); color: var(--eco-green-darker); }

/* ============================================================
   ダッシュボード固有
   ============================================================ */
.hero-clock {
  background: linear-gradient(150deg, #4a7a20 0%, #71B136 100%);
  border-radius: var(--radius-lg);   /* カード型に復帰・角丸は控えめ(尖り気味) */
  color: #fff;
  padding: 28px 24px 24px;
  box-shadow: 0 14px 32px rgba(74,122,32,.28);
  margin-top: 12px;                  /* ヘッダー直下に左右gutter付きで浮かせる */
  text-align: center;
}
.hero-clock .hc-top { display: flex; align-items: center; justify-content: space-between; }
.hero-clock .hc-date { font-size: 14px; opacity: .92; font-weight: 600; }
.hero-clock .hc-status {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.22); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; font-weight: 700;
}
.hero-clock .hc-status .material-symbols-rounded { font-size: 17px; }
.hero-clock .hc-time {
  font-size: 60px; font-weight: 800; letter-spacing: .01em;
  margin: 14px 0 4px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.hero-clock .hc-worked { font-size: 14px; opacity: .94; }
.hero-clock .hc-worked b { font-size: 16px; }

.punch-row { display: flex; gap: 16px; margin-top: 24px; }
.punch-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  height: 104px;
  border: none; border-radius: 22px;
  font-family: var(--font); font-weight: 800; font-size: 20px;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
.punch-btn:active { transform: scale(.97); }
.punch-btn .material-symbols-rounded { font-size: 34px; }
.punch-in  { background: #fff; color: var(--eco-green-darker); }
.punch-out { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.punch-btn:disabled { opacity: .5; cursor: default; }
.punch-btn small { font-weight: 600; font-size: 12px; opacity: .85; }

/* シングル大型打刻（在席状況に応じ1ボタンを主役にする版） */
.punch-solo {
  width: 100%;
  height: 124px;
  border: none; border-radius: 24px;
  margin-top: 22px;
  background: #fff; color: var(--eco-green-darker);
  font-family: var(--font); font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  transition: transform .08s ease;
}
.punch-solo:active { transform: scale(.98); }
.punch-solo .material-symbols-rounded { font-size: 40px; }

/* 4ボタン打刻グリッド（出勤/退勤/休憩開始/休憩終了） */
.punch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.punch-key {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 108px;
  border: none;
  /* カードの角丸(--radius 12px)と揃える中間の丸み。大きさ・色・配置は維持 */
  border-radius: var(--radius);   /* 12px */
  font-family: var(--font); font-weight: 800; font-size: 19px;
  cursor: pointer;
  transition: transform .08s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.punch-key:not(:disabled):active { transform: scale(.97); }
.punch-key .material-symbols-rounded { font-size: 32px; }
.punch-key small { font-weight: 600; font-size: 12.5px; opacity: .9; }
/* 役割別の配色（白背景ヒーロー上に置く前提のソリッド色） */
.pk-in    { background: #fff;                 color: var(--eco-green-darker); }
.pk-out   { background: #2c4a23;              color: #fff; }
.pk-brk    { background: rgba(255,255,255,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.pk-resume{ background: #ffe9b8;              color: #8a6410; }
.punch-key:disabled { opacity: .38; cursor: default; }

/* 本日完了の表示（ヒーロー内パネル＝カード扱いでシャープに） */
.punch-done {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 24px; padding: 26px;
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius); color: #fff; text-align: center;
}
.punch-done .material-symbols-rounded { font-size: 44px; }
.punch-done .pd-ttl { font-size: 20px; font-weight: 800; }
.punch-done .pd-sub { font-size: 13.5px; opacity: .92; }

/* 今日の勤怠ミニサマリ（大きめ） */
.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.today-cell { text-align: center; }
.today-cell .tc-label { font-size: 12.5px; color: var(--ink-mute); }
.today-cell .tc-val { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.today-cell .tc-val small { font-size: 12.5px; font-weight: 600; color: var(--ink-mute); }

/* ランチャー（大きいタイル 2列） */
.launcher-big { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.launch-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.launch-tile:active { background: var(--eco-green-tint); }
.launch-tile .lt-ico {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.launch-tile .lt-ico .material-symbols-rounded { font-size: 28px; }
.launch-tile .lt-label { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.launch-tile .lt-badge {
  position: absolute; top: 12px; right: 14px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}

/* 4列の小タイル（メニュー画面など用に残す） */
.launcher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.launch-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.launch-item:active { background: var(--eco-green-tint); }
.launch-item .li-ico {
  width: 50px; height: 50px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.launch-item .li-ico .material-symbols-rounded { font-size: 27px; }
.launch-item .li-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.launch-item .li-badge {
  position: absolute; top: 10px; right: 16px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}

/* アイコン色バリエーション */
.ic-green  { background: var(--eco-green-light); color: var(--eco-green-dark); }
.ic-amber  { background: var(--amber-bg); color: var(--amber); }
.ic-blue   { background: var(--blue-bg); color: var(--blue); }
.ic-red    { background: var(--red-bg); color: var(--red); }
.ic-violet { background: #efe9fb; color: #7b5cc4; }
.ic-teal   { background: #e0f3ef; color: #2a9d8f; }
.ic-pink   { background: #fce8f0; color: #d6638f; }
.ic-slate  { background: #eef1f4; color: #5a6b7b; }

/* お知らせ：最新1件を1行で（ダッシュボード用） */
.news-oneline {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.news-oneline .no-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--eco-green-light); color: var(--eco-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.news-oneline .no-ico .material-symbols-rounded { font-size: 25px; }
.news-oneline .no-main { flex: 1; min-width: 0; }
.news-oneline .no-date { display: block; font-size: 12px; color: var(--ink-mute); }
.news-oneline .no-title {
  display: block;
  font-size: 15px; font-weight: 700; color: var(--ink);
  white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5;
}
.news-oneline .chev { color: var(--ink-mute); flex: none; }
.news-oneline .chev .material-symbols-rounded { font-size: 24px; }

/* お知らせ一覧の行（news.html） */
.news-row { display: flex; gap: 13px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.news-row:last-child { border-bottom: none; }
.news-row .nr-date { font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; padding-top: 3px; min-width: 60px; }
.news-row .nr-main { flex: 1; min-width: 0; }
.news-row .nr-title { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.news-row .nr-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; }
.news-row .nr-cat .news-target, .news-row .nr-cat .chip-new { margin-left: 0; }
.news-row.unread .nr-title::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--eco-green); margin-right: 7px; vertical-align: middle;
}

/* 残サマリ系（有給など） */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-band .sb-cell { text-align: center; padding: 6px; }
.stat-band .sb-cell + .sb-cell { border-left: 1px solid var(--line-soft); }
.stat-band .sb-val { font-size: 30px; font-weight: 800; color: var(--eco-green-dark); line-height: 1.1; }
.stat-band .sb-val small { font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.stat-band .sb-label { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }

/* アラート帯 */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-bg);
  border: 1px solid #f3dca6;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px; color: #8a6410;
}
.alert .material-symbols-rounded { font-size: 22px; color: var(--amber); flex: none; }
.alert.alert-info { background: var(--blue-bg); border-color: #cfe2f3; color: #2c5d86; }
.alert.alert-info .material-symbols-rounded { color: var(--blue); }

/* ログイン画面 */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, #f6fbf0 0%, #e3efd6 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 30px 32px;
}
.login-card .logo {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 30px;
}
.login-card .logo .logo-mark {
  width: 66px; height: 66px; border-radius: 20px;
  background: var(--eco-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(113,177,54,.32);
}
.login-card .logo .logo-mark .material-symbols-rounded { font-size: 40px; }
.login-card .logo .ttl { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.login-card .logo .sub { font-size: 13px; color: var(--ink-mute); margin-top: -8px; }
.input-icon { position: relative; }
.input-icon .material-symbols-rounded {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute); font-size: 22px;
}
.input-icon .input { padding-left: 48px; }
.input-icon .eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  left: auto; color: var(--ink-mute); cursor: pointer;
}
.login-foot { text-align: center; font-size: 12.5px; color: var(--ink-mute); margin-top: 24px; }

/* 給与ハイライト */
.pay-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
}
.pay-hero .ph-month { font-size: 13.5px; color: var(--ink-mute); font-weight: 600; }
.pay-hero .ph-net { font-size: 42px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pay-hero .ph-net small { font-size: 15px; color: var(--ink-mute); font-weight: 600; }
.pay-hero .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pay-hero .ph-grid .phg { background: var(--eco-green-tint); border-radius: var(--radius); padding: 12px 16px; }
.pay-hero .ph-grid .phg .l { font-size: 12px; color: var(--ink-mute); }
.pay-hero .ph-grid .phg .v { font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* QRスキャン枠 */
.qr-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius);
  background: #1f3320;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
}
.qr-frame .qr-window {
  width: 64%; aspect-ratio: 1/1; border-radius: 18px;
  box-shadow: 0 0 0 2000px rgba(31,51,32,.55);
  position: relative;
}
.qr-frame .qr-window::before, .qr-frame .qr-window::after {
  content: ""; position: absolute; width: 28px; height: 28px;
  border: 3px solid var(--eco-green);
}
.qr-frame .qr-hint { position: absolute; bottom: 20px; font-size: 13px; }

/* 段落・補助テキスト */
.muted { color: var(--ink-mute); }
.text-sm { font-size: 13.5px; }
.mt-12 { margin-top: 14px; }
.mt-16 { margin-top: 18px; }
.mt-24 { margin-top: 26px; }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }

/* 月送りバー */
.month-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 10px 0 16px;
}
.month-nav button {
  width: 42px; height: 42px; border-radius: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.month-nav button .material-symbols-rounded { font-size: 24px; }
.month-nav .mn-label { font-size: 18px; font-weight: 800; min-width: 130px; text-align: center; }

/* カレンダー（シフト） */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .cal-h { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-mute); padding: 5px 0; }
.cal .cal-h.sun { color: var(--red); }
.cal .cal-h.sat { color: var(--blue); }
.cal .cal-d {
  aspect-ratio: 1 / 1.05;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 6px 2px 4px;
  font-size: 13px; color: var(--ink-soft);
}
.cal .cal-d.empty { border: none; background: transparent; }
.cal .cal-d.today { border-color: var(--eco-green); background: var(--eco-green-tint); }
.cal .cal-d .cd-mark {
  margin-top: auto; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 7px;
}
.cal .cal-d .cd-mark.work { background: var(--eco-green-light); color: var(--eco-green-darker); }
.cal .cal-d .cd-mark.req  { background: var(--blue-bg); color: var(--blue); }
.cal .cal-d .cd-mark.off  { background: var(--line-soft); color: var(--ink-mute); }
.cal-legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--ink-mute); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* ファイル(PDF)行 */
.file-row .li-icon { background: var(--red-bg); color: var(--red); }

/* ステップ進捗（申請詳細） */
.steps { display: flex; align-items: flex-start; }
.steps .step { flex: 1; text-align: center; position: relative; }
.steps .step .dot {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-soft); color: var(--ink-mute);
}
.steps .step .dot .material-symbols-rounded { font-size: 19px; }
.steps .step.done .dot { background: var(--eco-green); color: #fff; }
.steps .step.current .dot { background: var(--amber); color: #fff; }
.steps .step .st-label { font-size: 12.5px; color: var(--ink-mute); }
.steps .step.done .st-label, .steps .step.current .st-label { color: var(--ink-soft); font-weight: 700; }
.steps .step::before {
  content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--line);
  z-index: -1;
}
.steps .step:first-child::before { display: none; }
.steps .step.done::before, .steps .step.current::before { background: var(--eco-green); }

/* 定義リスト（詳細） */
.dl-detail { margin: 0; }
.dl-detail .dl-item { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.dl-detail .dl-item:last-child { border-bottom: none; }
.dl-detail dt { width: 104px; flex: none; font-size: 13.5px; color: var(--ink-mute); font-weight: 600; }
.dl-detail dd { margin: 0; font-size: 15px; color: var(--ink); flex: 1; }

/* ============================================================
   PC用 左サイドナビ（スマホでは非表示）
   ============================================================ */
.sidenav { display: none; }   /* モバイルでは出さない（下部タブバーを使用） */

/* PC専用のダッシュボード2カラム用ラッパ（スマホでは素通し＝縦1列） */
.pc-cols { display: contents; }
.pc-col  { display: contents; }

/* ============================================================
   レスポンシブ：PC（≥1024px）でサイドナビ＋ワイドレイアウト
   ============================================================ */
@media (min-width: 1024px) {
  body { background: var(--bg-app); }

  /* アプリシェルを「サイドナビ｜メイン」の2カラムグリッドに
     右カラムには header / page-head / app-body が自動で縦に並ぶ */
  .app {
    max-width: var(--pc-app-w);
    box-shadow: none;
    display: grid;
    grid-template-columns: var(--pc-sidenav-w) minmax(0, 1fr);
    grid-auto-rows: min-content;
    align-content: start;
    min-height: 100vh;
    background: var(--bg-app);
  }
  /* 右カラム（コンテンツ）に並ぶ要素は2列目に固定 */
  .app > .app-header,
  .app > .page-head,
  .app > .app-body { grid-column: 2; }

  /* ---- 左サイドナビ（縦に全行スパン） ---- */
  /* 暗色サイドナビ（new_admin の深緑〜黒系）。明るいコンテンツと対比で引き締める */
  .sidenav {
    grid-column: 1;
    grid-row: 1 / span 99;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%);
    border-right: 1px solid rgba(0,0,0,.3);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .sidenav .sn-brand {
    display: flex; align-items: center; gap: 11px;
    padding: 6px 10px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .sidenav .sn-brand .logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--eco-green); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .sidenav .sn-brand .logo-mark .material-symbols-rounded { font-size: 25px; }
  .sidenav .sn-brand .sn-title { font-size: 17px; font-weight: 800; line-height: 1.2; color: #fff; }
  .sidenav .sn-brand .sn-title small { display: block; font-size: 10.5px; font-weight: 500; color: var(--sb-text-dim); letter-spacing: .04em; }

  .sidenav .sn-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
  .sidenav .sn-link {
    position: relative;
    display: flex; align-items: center; gap: 13px;
    padding: 13px 14px;
    border-radius: var(--radius);
    color: var(--sb-text);
    font-size: 15px; font-weight: 700;
    transition: background .15s ease, color .15s ease;
  }
  .sidenav .sn-link .material-symbols-rounded { font-size: 24px; color: var(--sb-text-dim); }
  .sidenav .sn-link:hover { background: var(--sb-hover-bg); color: #fff; }
  .sidenav .sn-link:hover .material-symbols-rounded { color: var(--sb-text); }
  /* アクティブ：エコノハグリーンのソリッド帯＋白文字（new_admin と同様） */
  .sidenav .sn-link.active {
    background: var(--sb-active-bg);
    color: var(--sb-active-text);
    box-shadow: 0 4px 14px rgba(113,177,54,.32);
  }
  .sidenav .sn-link.active .material-symbols-rounded {
    color: var(--sb-active-text);
    font-variation-settings: 'FILL' 1, 'wght' 500;
  }
  /* メニューだけ緑強調（暗色背景で映える明るめグリーン）＋件数バッジ */
  .sidenav .sn-link.sn-menu { color: var(--eco-green); }
  .sidenav .sn-link.sn-menu .material-symbols-rounded { color: var(--eco-green); }
  .sidenav .sn-link.sn-menu:hover { color: #fff; }
  .sidenav .sn-link.sn-menu:hover .material-symbols-rounded { color: #fff; }
  /* メニューがアクティブ時はソリッド緑帯＋白（他activeと統一） */
  .sidenav .sn-link.sn-menu.active { color: var(--sb-active-text); }
  .sidenav .sn-link.sn-menu.active .material-symbols-rounded { color: var(--sb-active-text); }
  .sidenav .sn-badge {
    margin-left: auto;
    min-width: 22px; height: 22px; padding: 0 7px;
    border-radius: 999px;
    background: var(--red); color: #fff;
    font-size: 12px; font-weight: 800; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,.35);
  }
  /* アクティブな緑帯の上では赤バッジに白縁を付けて視認性確保 */
  .sidenav .sn-link.active .sn-badge { border: 2px solid rgba(255,255,255,.6); }
  .sidenav .sn-foot {
    margin-top: auto;
    padding: 14px 12px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .sidenav .sn-user {
    display: flex; align-items: center; gap: 11px;
  }
  .sidenav .sn-user .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--eco-green); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; flex: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
  }
  .sidenav .sn-user .sn-uname { font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; }
  .sidenav .sn-user .sn-udept { font-size: 12px; color: var(--sb-text-dim); }

  /* ---- ヘッダーを横長に ---- */
  .app-header {
    position: sticky; top: 0;
    z-index: 30;
    height: var(--header-h);
    padding: 0 32px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
  }
  /* PCではヘッダー左のロゴはサイドナビにあるので控えめに（ページ文脈表示に流用可） */
  .app-header .brand .brand-name { font-size: 16px; }

  /* ---- ページヘッダー（戻る＋タイトル）：メイン幅に揃えて中央寄せ ---- */
  .page-head {
    padding: 26px 32px 4px;
    max-width: 1040px; width: 100%; margin: 0 auto;
  }

  /* ---- メイン領域（スクロール本体） ---- */
  .app-body {
    padding: 16px 32px 40px;
    max-width: 1040px;       /* 読みやすい範囲に制限 */
    width: 100%;
    margin: 0 auto;
  }

  /* ---- 下部タブバー / FAB はPCで非表示 ---- */
  .tabbar { display: none; }

  /* ============================================================
     ダッシュボードをPCで複数カラムに（ファーストビュー収め）
     構成：左=打刻ヒーロー(主役)＋今日の状況、右=お知らせ＋メニュー
     縦およそ800〜900pxの1画面に主要コンテンツを収める
     ============================================================ */
  /* ダッシュボードは上の空きを最小化し主役を上げる */
  .dash .app-body { padding-top: 18px; padding-bottom: 24px; }

  .dash .pc-cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .dash .pc-col { display: block; }   /* PCでは各カラムを実体ブロックに */

  /* ヒーロー：主役感は保ちつつPCでコンパクトに */
  .dash .hero-clock { margin-top: 0; padding: 22px 24px 22px; }
  .dash .hero-clock .hc-time { font-size: 52px; margin: 8px 0 2px; }
  .dash .hero-clock .hc-worked { font-size: 13px; }
  .dash .hero-clock .punch-grid { margin-top: 16px; gap: 12px; }
  /* 打刻4ボタンは主役のまま、ただしPCでは高さを抑える */
  .dash .punch-key { min-height: 88px; font-size: 18px; }
  .dash .punch-key .material-symbols-rounded { font-size: 28px; }

  /* 今日の勤務状況カード：ヒーロー直下に詰める＋内側余白を圧縮 */
  .dash .card.mt-24 { margin-top: 14px; padding: 16px 18px; }
  .dash .today-cell .tc-val { font-size: 20px; }

  /* セクション見出しの縦間隔を詰める */
  .dash .pc-col > .section-label { margin: 0 2px 10px; }
  .dash .pc-col > .section-label ~ .section-label,
  .dash .pc-col > .launcher-big + .section-label { margin-top: 20px; }
  .dash .pc-col > *:first-child { margin-top: 0; }
  /* 右カラム2つ目のセクション見出し（メニュー）の上だけ間隔確保 */
  .dash .pc-col > .news-oneline + .section-label { margin-top: 20px; }

  /* お知らせ1行：PCでやや薄く */
  .dash .news-oneline { padding: 16px 18px; }

  /* メニュータイル：行高・gapを詰めてファーストビューに収める */
  .dash .launcher-big { gap: 12px; }
  .dash .launch-tile { padding: 15px 16px; }
  .dash .launch-tile .lt-ico { width: 46px; height: 46px; border-radius: 14px; }
  .dash .launch-tile .lt-ico .material-symbols-rounded { font-size: 25px; }
  .dash .launch-tile .lt-label { font-size: 14.5px; }

  /* ============================================================
     一覧系（テーブル/カード）をPCで横幅活用
     ============================================================ */
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 14px 12px; }

  /* 申請一覧：PCでは2カラムのカードグリッドで一覧性UP */
  .apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .apply-grid .apply-card { margin-bottom: 0; }

  /* ログイン画面はPCでもセンター固定のまま（サイドナビ無し） */
  .login-screen .login-card { max-width: 420px; }
}

/* タブレット中間域（900〜1023px）：アプリ枠を少し広げて窮屈さ回避（タブバー維持） */
@media (min-width: 900px) and (max-width: 1023px) {
  .app { max-width: 600px; }
}


/* ------------------------------------------------------------
   ヘッダー: 端末幅が狭いときの折返し防止（2026-07-27）
   ------------------------------------------------------------ */
@media (max-width: 430px) {
  .app-header { gap: 8px; }
  .app-header .brand .brand-name { font-size: 15px; }
  .app-header .brand .brand-name small { display: none; }
  .app-header .header-user { padding-right: 10px; }
  .app-header .header-user .uname { max-width: 104px; }
}
@media (max-width: 350px) {
  .app-header .header-user .uname { display: none; }
}

/* ------------------------------------------------------------
   お知らせ: 未読バッジ / NEW チップ（2026-07-27）
   ------------------------------------------------------------ */
.app-header .header-icon .hi-badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
}
.chip-new {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 999px; margin-left: 6px;
}
.news-target {
  font-size: 11.5px; font-weight: 700; color: var(--ink-mute);
  background: var(--bg); border: 1px solid var(--line-soft);
  padding: 1px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap;
}
.pager-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.pager-nav a, .pager-nav span {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.pager-nav .is-current { background: var(--eco-green); border-color: var(--eco-green); color: #fff; }
.pager-nav .is-disabled { opacity: .4; }

/* 勤怠: 年月の直接選択（2026-07-27） */
.month-picker { display:flex; gap:8px; align-items:center; margin:10px 0 4px; }
.month-picker .select { flex:1; min-width:0; height:44px; }
.month-picker .btn { height:44px; padding:0 14px; white-space:nowrap; }

/* 打刻のQRロック（2026-07-27） */
.punch-lock { display:flex; flex-direction:column; gap:10px; align-items:center; text-align:center;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35); border-radius:16px; padding:18px 16px; margin-top:14px; color:#fff; }
.punch-lock > .material-symbols-rounded { font-size:38px; }
.punch-lock .pl-main { display:flex; flex-direction:column; gap:4px; font-size:12.5px; line-height:1.7; }
.punch-lock .pl-main b { font-size:15px; }
.punch-lock .btn { margin-top:4px; }
.punch-lock .pl-noscan { font-size:11.5px; color:#fff; opacity:.85; text-decoration:underline; }
.punch-lock .pl-noscan-note, .punch-noscan .pl-noscan-note { font-size:11.5px; color:#fff; opacity:.85; line-height:1.6; }
.punch-noscan { display:flex; flex-direction:column; gap:6px; align-items:center; text-align:center; margin-top:10px; color:#fff; }
.punch-grid.is-locked { display:none !important; }

/* 打刻QRスキャナ（2026-07-27） */
.qr-scan { margin-top:14px; display:flex; flex-direction:column; gap:10px; align-items:center; width:100%; max-width:100%; box-sizing:border-box; }
.qr-scan__view {
  width:100%; max-width:300px; aspect-ratio:1/1;
  border-radius:16px; overflow:hidden; background:#000;
  border:3px solid rgba(255,255,255,.7); box-sizing:border-box;
}
.qr-scan video { width:100%; height:100%; max-width:100%; object-fit:cover; display:block; }
.qr-scan__hint { font-size:12.5px; color:#fff; opacity:.9; text-align:center; }
.qr-scan .btn { width:100%; max-width:300px; }
/* 打刻ボックス全体をタップ領域にする */
.punch-lock { cursor:pointer; -webkit-tap-highlight-color:rgba(255,255,255,.15); }
.punch-lock:active { background:rgba(255,255,255,.24); }
.punch-lock #qrStartBtn { pointer-events:none; }
