/* =========================================================
   見た目（SmartHR Design System に合わせる）
   ---------------------------------------------------------
   値は SmartHR Design System のデザイントークン（smarthr-ui 102.0.0）。
   早見表：C:\Users\MICHIHIRO\.claude\skills\smarthr-design-system\tokens\tokens.md
   - 色は役割で使う（MAIN＝操作、TEXT_BLACK＝本文、BORDER＝線、BACKGROUND＝地）。
   - 自社の色は SmartHR のブランドカラー・拡張色を1ずらしたもの（--own-*）。一覧は同じスキルの tokens\own-colors.md。
     ヘッダーの帯＝プライマリー #00c4cd、本文の文字＝Black #232220、アクセント＝Orange #ff9901。
     選択中の線＝プライマリー #00c4cd。ボタンの地＝ごく少し濃い #00b3bb（白文字 2.6:1。ユーザーの決定）。
     リンクの文字＝#007e84、フォーカスの枠＝#009fa7（どちらもプライマリーと同じ色相で、読める範囲で一番明るい色）。成功の緑＝Grass04 #378446。
   - 余白は 1文字＝16px を単位にする（4・8・16・24・32・40…）。
   ========================================================= */
:root{
  /* 自社の色（SmartHR のブランドカラー・拡張色を1ずらしたもの。tokens\own-colors.md） */
  --own-primary: #00c4cd;       /* プライマリー（SmartHR Blue #00c4cc） */
  --own-black: #232220;         /* Black #23221f */
  --own-orange: #ff9901;        /* Orange #ff9900 */
  --own-white: #ffffff;
  --own-stone-01: #f8f7f7;      /* Stone01 #f8f7f6 */
  --own-aqua-04: #0f7f86;       /* Aqua04 #0f7f85：操作の色 */
  --own-grass-04: #378446;      /* Grass04 #378445：成功の色 */

  /* 色（セマンティックトークン） */
  --brand: var(--own-primary);  /* ボタンの地・選択中の線（プライマリーそのもの） */
  --btn: #00b3bb;               /* 白文字を載せる地（ボタンなど）。プライマリーよりごく少し濃い。白文字 2.6:1 */
  --btn-hover: #00a2a9;
  --on-brand: #fff;             /* プライマリーの上の文字は白（ユーザーの決定。コントラストは 2.2:1） */
  --main: #009fa7;              /* フォーカスの枠・アイコン・今日の印（白地 3.2:1） */
  --white: #fff;                /* WHITE：Panel の地 */
  --white-hover: #f2f2f2;
  --danger: #e01e5a;            /* DANGER */
  --danger-hover: #ca1b51;
  --warning: #ffcc17;           /* WARNING_YELLOW */
  --text: var(--own-black);     /* 本文（TEXT_BLACK #23221e の代わりに自社の Black） */
  --text-grey: #706d65;         /* TEXT_GREY */
  --text-disabled: #c1bdb7;     /* TEXT_DISABLED */
  --link: #007e84;              /* リンクの文字（プライマリーの色相。灰色の地でも 4.55:1） */
  --link-hover: #00666b;
  --border: #d6d3d0;            /* BORDER */
  --action-bg: #d6d3d0;         /* ACTION_BACKGROUND */
  --head: #edebe8;              /* HEAD（SmartHR）。いまは件数の札・進み具合の帯の地だけに使う */
  --th-bg: var(--brand);        /* 表・カレンダーの見出しの地＝ヘッダーの帯と同じプライマリー（2026-11-23 ユーザー指示。面積の広いところは薄いこの色、ボタンなど小さいところは --btn） */
  --th-text: #fff;              /* 見出しの文字は白 */
  --head-hover: #e2dfda;
  --over-bg: #f2f1f0;           /* OVER_BACKGROUND */
  --base-grey: #f5f4f3;         /* BASE_GREY */
  --column: var(--own-stone-01); /* COLUMN */
  --column-hover: #edeae8;
  --bg: var(--own-stone-01);    /* BACKGROUND：画面の地 */
  --overlay: rgba(3, 3, 2, .15);
  --scrim: rgba(3, 3, 2, .5);
  --green: var(--own-grass-04);
  /* 文字の大きさ（scaleFactor 6） */
  --fs-xxs: .6667rem; --fs-xs: .75rem; --fs-s: .8571rem; --fs-m: 1rem; --fs-l: 1.2rem; --fs-xl: 1.5rem; --fs-xxl: 2rem;
  /* 余白 */
  --sp-x3s: 4px; --sp-xxs: 8px; --sp-xs: 16px; --sp-s: 24px; --sp-m: 32px; --sp-l: 40px; --sp-xl: 48px;
  /* 角丸・影 */
  --r-s: 4px; --r-m: 6px; --r-l: 8px;
  --sh-layer1: 0 1px 2px 0 rgba(3, 3, 2, .3);
  --sh-layer2: 0 2px 4px 1px rgba(3, 3, 2, .3);
  --sh-layer3: 0 4px 8px 2px rgba(3, 3, 2, .3);
  --sh-layer4: 0 8px 16px 4px rgba(3, 3, 2, .3);
  --sh-outline: 0 0 0 2px #fff, 0 0 0 4px #009fa7;
  --sh-input-hover: 0 0 0 2px rgba(0, 159, 167, .25);
  --hd-h: 48px;
  --wide: 1440px;               /* 本文の最大幅（余白込み） */
  --gutter: clamp(16px, 3vw, 40px);
}
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{ margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; font-size: 16px; line-height: 1.5; }
a{ color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover{ color: var(--link-hover); }
h1, h2, h3, p, ul, ol, dl, dd{ margin: 0; }
ul, ol{ padding: 0; list-style: none; }
button, input, select, textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; }
[hidden]{ display: none !important; }
small{ font-size: var(--fs-s); }
:focus-visible{ outline: 2px solid var(--main); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.ic{ width: 1em; height: 1em; flex: none; }
.mute{ color: var(--text-grey); }
.num{ text-align: right; font-variant-numeric: tabular-nums; }
.is-late{ color: var(--danger); font-weight: 700; }
.is-unread{ font-weight: 700; }
.dot{ display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--danger); vertical-align: middle; flex: none; }
.loading{ padding: 40px; color: var(--text-grey); }

/* ---------- ヘッダー（AppHeader の形。ブランド色の帯は使わず、白地に下線） ---------- */
.hd{ position: relative; z-index: 40; display: flex; align-items: center; gap: var(--sp-xxs); height: var(--hd-h); padding: 0 var(--gutter); background: var(--own-primary); color: #fff; }
.hd__space{ flex: 1; }
.hd__btn{ position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-m); background: transparent; color: #fff; }
.hd__btn:hover{ background: rgba(255, 255, 255, .15); }
.hd__btn .ic{ width: 20px; height: 20px; }
.hd__menu{ display: none; }
.hd__brand{ display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 4px; border-radius: var(--r-m); color: #fff; text-decoration: none; white-space: nowrap; }
.hd__brand:hover{ color: #fff; }
/* ロゴ（カタリスト Office）：マーク＋英字を1つの SVG で。白一色。高さ＝マークの高さ（マークと文字の上下は SVG の中で合わせてある） */
.logo{ display: block; flex: none; width: auto; height: 30px; aspect-ratio: 1332.5 / 231; }
.hd__count{ position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--own-orange); color: var(--own-black); font-size: var(--fs-xxs); font-weight: 700; line-height: 18px; text-align: center; }
.hd__user{ display: flex; align-items: center; gap: var(--sp-x3s); height: 40px; padding: 0 var(--sp-xxs); border: 0; border-radius: var(--r-m); background: transparent; color: #fff; white-space: nowrap; }
.hd__user:hover{ background: rgba(255, 255, 255, .15); }
.hd__user .ic{ width: 14px; height: 14px; }
.hd__uname{ font-size: var(--fs-s); }

/* 押すと出るメニュー（Dropdown の形） */
.pop{ position: relative; }
.pop__panel{ display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; width: 300px; max-height: 72vh; overflow: auto; padding: var(--sp-xxs) 0; border-radius: var(--r-m); background: var(--white); box-shadow: var(--sh-layer3); color: var(--text); }
.pop.is-open .pop__panel{ display: block; }
.pop__label{ padding: var(--sp-x3s) var(--sp-xs); color: var(--text-grey); font-size: var(--fs-xs); font-weight: 700; }
.pop__item{ display: flex; align-items: center; gap: var(--sp-xxs); width: 100%; padding: var(--sp-xxs) var(--sp-xs); border: 0; background: none; color: var(--text); font-size: var(--fs-s); text-align: left; text-decoration: none; line-height: 1.25; }
.pop__item:hover{ background: var(--white-hover); color: var(--text); }
.pop__item.is-current{ font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.pop__item span{ flex: 1; min-width: 0; }
.pop__item small{ display: block; margin-top: 2px; color: var(--text-grey); font-size: var(--fs-xs); font-weight: 400; }
.pop__item b{ font-weight: 400; color: var(--text-grey); }
.pop__item b.is-on{ color: var(--danger); font-weight: 700; }
.pop__item .ic{ color: var(--text-grey); }
.pop__sep{ height: 1px; margin: var(--sp-xxs) 0; background: var(--border); }
.pop__who{ padding: var(--sp-x3s) var(--sp-xs) var(--sp-xxs); font-size: var(--fs-s); font-weight: 700; line-height: 1.25; }
.pop__who small{ display: block; margin-top: 2px; color: var(--text-grey); font-size: var(--fs-xs); font-weight: 400; }
.pop__panel form{ margin: 0; }
.pwform{ display: grid; gap: var(--sp-s); }

/* ---------- 上部メニュー（AppNavi の形。項目ごとにアイコン＋名前、選択中は太字＋下の線） ---------- */
.nav{ background: var(--white); box-shadow: var(--sh-layer1); position: relative; z-index: 30; }
.nav__in{ display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); max-width: var(--wide); margin: 0 auto; padding: 0 calc(var(--gutter) - 8px); }
.nav__title{ display: none; }
.nav__item{ position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-x3s); min-height: 68px; padding: var(--sp-xxs) 2px; color: var(--text-grey); font-size: var(--fs-xs); line-height: 1.25; text-align: center; text-decoration: none; }
.nav__item:hover{ background: var(--white-hover); color: var(--text); }
.nav__item .ic{ width: 22px; height: 22px; }
.nav__item span{ word-break: keep-all; }      /* 語の途中で折らない（「・」の後ろの <wbr> でだけ折る） */
.nav__item.is-active{ color: var(--text); font-weight: 700; }
.nav__item.is-active::after{ content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 4px; background: var(--brand); }
.nav-shade{ display: none; }

/* ---------- 本文（Container） ---------- */
.main{ display: block; }
.page{ max-width: var(--wide); margin: 0 auto; padding: var(--sp-m) var(--gutter) 64px; }
.page--narrow{ max-width: 960px; }
.page > * + *{ margin-top: var(--sp-m); }        /* 見出し領域とセクションの間は 2（32px） */
.page > .subnav{ margin-top: var(--sp-s); }

/* 見出し領域（UpwardLink・PageHeading・リード文） */
.ph{ display: grid; gap: var(--sp-xs); }
.ph__row{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs); }
.ph h1{ font-size: var(--fs-xl); font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.ph__actions{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs); margin-left: auto; }
.upward{ display: inline-flex; align-items: center; gap: var(--sp-x3s); justify-self: start; font-size: var(--fs-s); }
.upward .ic{ width: 14px; height: 14px; }
.lead{ color: var(--text); font-size: var(--fs-m); }

/* セクション（Heading＋操作、その下に Panel） */
.sec__hd{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xxs); margin-bottom: var(--sp-xs); }
.sec__hd .h-sec{ margin: 0 auto 0 0; }
.sec__acts{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs); }
.h-sec{ display: block; margin-bottom: var(--sp-xs); font-size: var(--fs-l); font-weight: 400; line-height: 1.25; }
.sec > .panel + .panel{ margin-top: var(--sp-s); }
.sec__lead{ margin-bottom: var(--sp-xs); color: var(--text); font-size: var(--fs-m); }

/* ユーザー・権限（システム設定）：部署のツリーの表。横に長いので横に送れて、氏名の欄は左に残す */
.ptree{ min-width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl.ptree th, .tbl.ptree td{ border-bottom: 1px solid var(--border); background: var(--white); vertical-align: middle; }
.tbl.ptree thead th{ background: var(--th-bg); color: var(--th-text); border-color: rgba(255, 255, 255, .35); font-size: var(--fs-s); font-weight: 700; line-height: 1.3; white-space: normal; word-break: keep-all; }   /* 語の途中で折らない（<wbr> でだけ折る） */
.ptree__name{ position: sticky; left: 0; z-index: 1; min-width: 200px; text-align: left; box-shadow: 1px 0 0 var(--border); }
thead .ptree__name{ z-index: 2; }
.tbl.ptree tbody th{ color: var(--text); }
.tbl.ptree .ptree__emp .ptree__name{ padding-left: calc(16px + var(--depth, 0) * 20px); font-weight: 400; }
.ptree__emp .ptree__name a{ display: block; color: var(--text); text-decoration: none; }
.ptree__emp .ptree__name a:hover{ color: var(--link); text-decoration: underline; }
.ptree__emp .ptree__name small{ display: block; color: var(--text-grey); font-size: var(--fs-xs); }
.ptree__emp.is-off .ptree__name a, .ptree__emp.is-off td{ color: var(--text-disabled); }
.tbl.ptree .ptree__emp:hover th, .tbl.ptree .ptree__emp:hover td{ background: var(--white-hover); }
.tbl.ptree .ptree__dept th{ position: sticky; left: 0; padding: 0; background: var(--over-bg); text-align: left; }
.ptree__tg{ display: inline-flex; align-items: center; gap: var(--sp-x3s); min-height: 40px; padding: 0 var(--sp-xs) 0 calc(8px + var(--depth, 0) * 20px); border: 0; background: none; color: var(--text); font-size: var(--fs-m); font-weight: 700; cursor: pointer; }
.ptree__tg .ic{ width: 16px; height: 16px; color: var(--text-grey); }
.ptree__tg small{ color: var(--text-grey); font-size: var(--fs-s); font-weight: 400; }
.ptree__tg:hover span{ text-decoration: underline; }
.ptree__mgr{ min-width: 150px; }
.ptree__mgr select{ width: 100%; min-width: 130px; }
.ptree__ck{ width: 72px; min-width: 72px; padding-left: 4px !important; padding-right: 4px !important; text-align: center !important; }
.ptree__fn{ font-weight: 400 !important; word-break: keep-all; }
.ptree__sys{ border-right: 1px solid var(--border); }
.tbl.ptree thead .ptree__sys, .tbl.ptree thead .ptree__grp{ border-color: rgba(255, 255, 255, .35); }
.ptree__grp{ text-align: center !important; border-left: 1px solid var(--border); }
.ptree__box{ display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; }
.ptree__box input{ width: 18px; height: 18px; margin: 0; accent-color: var(--btn, #00b3bb); cursor: pointer; }
.ptree__box input:disabled{ cursor: not-allowed; }

/* メニューの並び順（システム設定）。本物の上部メニュー（.nav__item）と同じ横並び。列の数は settings.js が本物に合わせる */
.mord{ display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--sp-x3s); padding: var(--sp-xs); }
.mord__i{ position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mord__i:hover{ border-color: #aaa69f; }
.mord__face{ display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-x3s); min-height: 64px; padding: var(--sp-xxs) 2px 2px; color: var(--text); font-size: var(--fs-xs); line-height: 1.25; text-align: center; }
.mord__face > .ic{ width: 22px; height: 22px; color: var(--text-grey); }
.mord__nm{ word-break: keep-all; }
.mord__lock{ position: absolute; top: 4px; right: 4px; color: var(--text-grey); line-height: 0; }
.mord__lock .ic{ width: 13px; height: 13px; }
.mord__btns{ display: flex; border-top: 1px solid var(--border); }
.mord__mv{ display: flex; flex: 1; align-items: center; justify-content: center; height: 28px; padding: 0; border: 0; background: none; color: var(--text-grey); cursor: pointer; }
.mord__mv + .mord__mv{ border-left: 1px solid var(--border); }
.mord__mv:hover{ background: var(--white-hover); color: var(--text); }
.mord__mv:disabled{ color: var(--text-disabled); background: none; cursor: default; }
.mord__mv .ic{ width: 16px; height: 16px; }
.mord__i.is-hold{ border: 2px dashed var(--brand); background: var(--over-bg); }
.mord__i.is-hold > *{ visibility: hidden; }                 /* つかんでいる項目の行き先（点線の枠） */
.mord__ghost{ position: fixed; z-index: 200; margin: 0; pointer-events: none; box-shadow: var(--sh-layer4); transform: rotate(-2deg); cursor: grabbing; }
body.is-dragging, body.is-dragging *{ cursor: grabbing !important; }
.mord__note{ display: flex; align-items: center; gap: var(--sp-x3s); padding: 0 var(--sp-xs) var(--sp-xs); color: var(--text-grey); font-size: var(--fs-s); }
.mord__note .ic{ width: 14px; height: 14px; }

/* Panel（Base） */
.panel{ border-radius: var(--r-l); background: var(--white); box-shadow: var(--sh-layer1); overflow: hidden; }
.page > .panel + .panel, .home__main > .panel + .panel, .home__side > .panel + .panel{ margin-top: var(--sp-s); }
.panel__hd{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xxs); padding: var(--sp-xs) var(--sp-s) 0; }
.panel__hd h2{ display: flex; align-items: center; gap: var(--sp-xxs); margin-right: auto; font-size: var(--fs-m); font-weight: 700; line-height: 1.25; }
.panel__hd h2 .ic{ display: none; }              /* 見出しにアイコンは付けない */
.panel__hd > .mute{ font-size: var(--fs-s); }
.panel__link{ display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-s); white-space: nowrap; }
.panel__link .ic{ width: 12px; height: 12px; }
.panel__bd{ padding: var(--sp-s); }
.panel__hd + .panel__bd{ padding-top: var(--sp-xs); }
.panel__hd + .tblwrap, .panel__hd + .listbar{ margin-top: var(--sp-xs); }
.tl + .legend, .cal + .legend{ margin-top: 12px; }
.count{ margin-left: 2px; color: var(--text-grey); font-size: var(--fs-s); font-weight: 400; }
.count::before{ content: "（"; }
.count::after{ content: "）"; }
.empty{ padding: var(--sp-s) var(--sp-xs); color: var(--text-grey); font-size: var(--fs-s); text-align: center; }
.sub{ margin: var(--sp-xs) 0 var(--sp-x3s); color: var(--text-grey); font-size: var(--fs-s); }
.sub:first-child{ margin-top: 0; }
.sub b{ color: var(--text); font-size: var(--fs-m); }
.prose{ line-height: 1.75; overflow-wrap: anywhere; }
.prose p + p{ margin-top: var(--sp-xxs); }
.legend{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xxs) var(--sp-xs); color: var(--text-grey); font-size: var(--fs-s); }
.legend__note{ color: var(--text-grey); }

/* ボタン（Button：secondary が基本、primary は画面で一番大事な操作だけ） */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-x3s); min-height: 42px; padding: 0 var(--sp-xs); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); color: var(--text); font-size: var(--fs-m); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.btn:hover{ border-color: #cac6c2; background: var(--white-hover); color: var(--text); }
.btn .ic{ width: 1em; height: 1em; }
.btn--primary{ border-color: var(--btn); background: var(--btn); color: var(--on-brand); }
.btn--primary:hover{ border-color: var(--btn-hover); background: var(--btn-hover); color: var(--on-brand); }
.btn--danger{ border-color: var(--danger); background: var(--danger); color: #fff; }
.btn--danger:hover{ border-color: var(--danger-hover); background: var(--danger-hover); color: #fff; }
.btn--ghost{ border-color: transparent; background: transparent; color: var(--text); }
.btn--ghost:hover{ background: var(--white-hover); }
.btn--sm{ min-height: 32px; padding-top: 0; padding-bottom: 0; padding: 0 var(--sp-xxs); font-size: var(--fs-s); }
.btn:disabled, .btn[aria-disabled="true"]{ border-color: rgba(214, 211, 208, .5); background: var(--white-hover); color: var(--text-disabled); cursor: not-allowed; }
.btn--primary:disabled, .btn--danger:disabled{ border-color: transparent; background: rgba(0, 179, 187, .4); color: rgba(255, 255, 255, .75); }
.btn--danger:disabled{ background: rgba(224, 30, 90, .5); }
.btn b{ margin-left: 2px; }
.iconbtn{ display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); color: var(--text); }
.iconbtn:hover{ background: var(--white-hover); }
.iconbtn:disabled{ border-color: rgba(214, 211, 208, .5); background: var(--white-hover); color: var(--text-disabled); cursor: not-allowed; }
.linkbtn{ padding: 0; border: 0; background: none; color: var(--link); font-size: var(--fs-s); text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover{ color: var(--link-hover); }

/* 状態（StatusLabel：白地に枠。注意が要るものは枠と文字の色を変える） */
.badge{ display: inline-flex; align-items: center; min-height: 1.75em; padding: 0 var(--sp-xxs); border: 1px solid var(--text-grey); border-radius: var(--r-s); background: var(--white); color: var(--text-grey); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; vertical-align: middle; }
.badge--blue{ border-color: var(--link); color: var(--link); }
.badge--green{ border-color: var(--green); color: var(--green); }
.badge--red{ border-color: var(--danger); color: var(--danger); }
.badge--amber{ border-color: #c27500; color: #8a5300; }
/* 件名の前の区分【重要】など */
.tag{ color: var(--text-grey); font-weight: 400; white-space: nowrap; }
.tag--red{ color: var(--danger); font-weight: 700; }

/* 名前 */
.uchip{ display: inline-block; margin-right: 12px; white-space: nowrap; }
.uchips{ display: flex; flex-wrap: wrap; gap: 4px 2px; }

/* 知らせ（InformationPanel / NotificationBar の形） */
/* 帯の色・左の線は付けない。種類はアイコンの色で分ける（info：青、warning：黄色の三角に黒、error：赤） */
.notice{ display: flex; align-items: flex-start; gap: var(--sp-xxs); padding: 12px var(--sp-s); border-radius: var(--r-m); background: var(--white); box-shadow: var(--sh-layer1); }
.notice > p, .notice > div{ flex: 1; min-width: 0; }
.notice .ic{ flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--main); }
.notice--warn .ic{ color: var(--text); }
.notice--warn .ic path:first-child{ fill: var(--warning); }
.notice--danger .ic{ color: var(--danger); }
.notice__link{ display: inline-block; margin-left: var(--sp-xs); white-space: nowrap; }
.alerts{ display: grid; gap: var(--sp-xxs); }
.toast{ position: fixed; left: 50%; top: calc(var(--hd-h) + 8px); z-index: 100; display: flex; align-items: center; gap: var(--sp-xxs); max-width: calc(100vw - 32px); padding: var(--sp-xs) var(--sp-s); border-radius: var(--r-m); background: var(--white); box-shadow: var(--sh-layer4); color: var(--text); font-size: var(--fs-m); font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .2s, transform .2s; }
.toast::before{ content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.toast.is-show{ opacity: 1; transform: translate(-50%, 0); }
.toast--err::before{ background: var(--danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18h.01'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* 確認のダイアログ（ActionDialog の形） */
.dlg{ position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--sp-xs); background: var(--scrim); }
.dlg__panel{ width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r-m); background: var(--white); box-shadow: var(--sh-layer4); }
.dlg__hd{ padding: var(--sp-xs) var(--sp-s); border-bottom: 1px solid var(--border); }
.dlg__hd h2{ font-size: var(--fs-l); font-weight: 400; line-height: 1.25; }
.dlg__bd{ display: grid; gap: var(--sp-xs); padding: var(--sp-s); }
.dlg__target{ display: grid; gap: var(--sp-xxs); }
.dlg__target dt{ font-size: var(--fs-m); font-weight: 700; }
.dlg__target dd{ overflow-wrap: anywhere; }
.dlg__ft{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-xs); padding: var(--sp-xs) var(--sp-s); border-top: 1px solid var(--border); }
body.has-dlg{ overflow: hidden; }

/* 集計の数字は DefinitionList の形で並べる（大きな数字のカードにしない） */
.dl.dl--sum{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-xs) var(--sp-m); }
.dl--sum dd{ font-variant-numeric: tabular-nums; }
.att__sum{ margin-top: var(--sp-s); padding-top: var(--sp-s); border-top: 1px solid var(--border); }
.bar{ display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--head); vertical-align: middle; overflow: hidden; }
.bar i{ display: block; height: 100%; border-radius: 4px; background: var(--brand); }

/* 画面の切り替え（TabBar） */
.subnav, .tabbar{ display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.subnav a, .tabbar__i{ position: relative; display: inline-flex; align-items: center; gap: var(--sp-x3s); padding: 12px var(--sp-xs); color: var(--text-grey); font-size: var(--fs-m); font-weight: 700; text-decoration: none; }
.subnav a:hover, .tabbar__i:hover{ background: var(--white-hover); color: var(--text); }
.subnav a.is-active, .tabbar__i.is-active{ color: var(--text); }
.subnav a.is-active::after, .tabbar__i.is-active::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--brand); }
/* タブの件数：ボタンと同じ地に白文字、角の丸い四角 */
.tabbar__n{ display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; margin-left: 4px; padding: 0 6px 1px; border-radius: var(--r-s); background: var(--btn); color: var(--on-brand); font-size: var(--fs-s); font-weight: 700; line-height: 1; }
.tabbar{ padding: 0 var(--sp-xxs); }
/* 古い呼び方（tabs/tab）も同じ見た目にする */
.tabs{ display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab{ position: relative; display: inline-flex; align-items: center; gap: var(--sp-x3s); padding: 12px var(--sp-xs); color: var(--text-grey); font-weight: 700; text-decoration: none; }
.tab.is-active{ color: var(--text); }
.tab.is-active::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--brand); }

/* ---------- 一覧（よくあるテーブル） ---------- */
.listbar{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs); padding: var(--sp-xs); }
.search{ display: flex; align-items: center; gap: var(--sp-xxs); }
.search__box, label.search{ display: flex; align-items: center; gap: var(--sp-xxs); height: 42px; padding: 0 var(--sp-xxs); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); color: var(--text-grey); }
.search__box:hover{ box-shadow: var(--sh-input-hover); }
.search__box:focus-within, label.search:focus-within{ outline: 2px solid var(--main); outline-offset: -2px; }
.search input:focus{ outline: none; box-shadow: none; }
.search input{ width: 240px; height: 36px; border: 0; background: none; outline: 0; color: var(--text); }
.listbar__count{ margin-left: auto; color: var(--text); font-size: var(--fs-s); white-space: nowrap; }
.listbar__sum{ margin-left: var(--sp-xs); color: var(--text-grey); }
.tblwrap{ overflow-x: auto; }
.tbl{ width: 100%; border-collapse: collapse; font-size: var(--fs-m); }
.tbl th{ padding: 12px var(--sp-xs); background: var(--th-bg); color: var(--th-text); font-size: var(--fs-s); font-weight: 700; line-height: 1.25; text-align: left; white-space: nowrap; vertical-align: middle; }
.tbl th.num{ text-align: right; }
.tbl td{ padding: 12px var(--sp-xs); border-top: 1px solid var(--border); vertical-align: middle; }
/* 札だけの欄は、札を欄の上下中央に置く（文字の並びの中に置くと、英字の基準線に合わせて日本語より下にずれる） */
.tbl td > .badge:only-child{ display: flex; width: max-content; }
.tbl thead + tbody tr:first-child td{ border-top: 0; }
.tbl tfoot td{ background: var(--column); font-weight: 700; }
/* 押せる行：行のどこを押しても同じ画面が開く。名前だけをリンクの見た目にせず、行全体に枠を出して押せる範囲を見せる */
.tbl--list tbody tr[data-id], .tbl--list tbody tr[data-href]{ cursor: pointer; }
.tbl--list tbody tr[data-id]:hover, .tbl--list tbody tr[data-href]:hover, .tbl--list tbody tr[data-id]:focus-within, .tbl--list tbody tr[data-href]:focus-within{ background: var(--column); outline: 2px solid var(--main); outline-offset: -2px; }
.tbl--list tr[data-id] .tbl__main a, .tbl--list tr[data-href] .tbl__main a{ color: var(--text); text-decoration: none; }
.tbl--list tr[data-id] .tbl__main a:focus-visible, .tbl--list tr[data-href] .tbl__main a:focus-visible{ outline: none; }
.tbl__main a{ display: inline-flex; align-items: center; gap: var(--sp-xxs); }
.tbl tr.is-unread .tbl__main a{ font-weight: 700; }
.tbl tr.is-off{ color: var(--text-grey); }
.tbl tr.is-ng{ background: #fff0f3; }
.tbl__act{ width: 1px; text-align: right; white-space: nowrap; }
.tbl__act .btn + .btn{ margin-left: var(--sp-xxs); }
.tbl__empty td{ padding: var(--sp-l) var(--sp-xs); color: var(--text); text-align: center; cursor: default; }
.tbl__empty:hover{ background: none !important; }
.tbl__x{ width: 48px; text-align: center; }
.tbl--plain{ border: 1px solid var(--border); }
.tbl--plain th, .tbl--plain td{ border: 1px solid var(--border); }
.tbl--form select, .tbl--form input[type="text"]{ min-height: 32px; max-width: 100%; }
.tbl--att tr.is-sat td{ background: #f0f6fc; }
.tbl--att tr.is-sun td{ background: #fdf1f4; }
.tbl--att tr.is-today td{ box-shadow: inset 0 2px 0 var(--main), inset 0 -2px 0 var(--main); }
.tbl--att td{ white-space: nowrap; }

/* ---------- 詳細（DefinitionList） ---------- */
.detail__title{ margin-bottom: var(--sp-xs); font-size: var(--fs-l); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.detail__meta{ margin-top: var(--sp-s); color: var(--text-grey); font-size: var(--fs-s); }
.dl{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-s) var(--sp-m); }
.dl__i{ display: grid; align-content: start; gap: var(--sp-x3s); min-width: 0; }
.dl__i--wide{ grid-column: 1 / -1; }
.dl dt{ color: var(--text); font-size: var(--fs-s); font-weight: 700; line-height: 1.25; }
.dl dd{ min-width: 0; overflow-wrap: anywhere; }

/* ---------- 入力（FormControl） ---------- */
.form > .panel + .form__btns{ margin-top: var(--sp-s); }
.form__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-s) var(--sp-m); }
.fld{ min-width: 0; }
.fld--wide{ grid-column: 1 / -1; }
.fld__label{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xxs); margin-bottom: var(--sp-xxs); font-size: var(--fs-m); font-weight: 700; line-height: 1.25; }
.fld__label--empty{ height: 0; margin: 0; }
.fld__label em{ display: inline-flex; align-items: center; min-height: 1.75em; padding: 0 var(--sp-xxs); border: 1px solid var(--danger); border-radius: var(--r-s); background: var(--white); color: var(--danger); font-size: var(--fs-xs); font-style: normal; font-weight: 700; line-height: 1.2; }
.fld__hint{ margin-top: var(--sp-xxs); color: var(--text-grey); font-size: var(--fs-s); line-height: 1.5; }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="email"], input[type="tel"], input[type="url"], input[type="month"], select, textarea{ width: 100%; min-height: 42px; padding: 0 var(--sp-xxs); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); color: var(--text); }
textarea{ display: block; padding: var(--sp-xxs); line-height: 1.5; resize: vertical; }
select{ padding-right: 28px; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323221e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 8px center / 14px no-repeat; }
input:hover, select:hover, textarea:hover{ box-shadow: var(--sh-input-hover); }
input:focus, select:focus, textarea:focus{ outline: 2px solid var(--main); outline-offset: -2px; box-shadow: inset 0 0 0 3px #fff; }
input:disabled, select:disabled, textarea:disabled{ border-color: rgba(214, 211, 208, .5); background: var(--white-hover); color: var(--text-disabled); box-shadow: none; }
input::placeholder, textarea::placeholder{ color: var(--text-grey); }
.cklist{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs) var(--sp-s); }
/* 人を選ぶ欄（宛先・参加者など）：部署のツリー。部署の行のチェックで部署内の全員、上の「全社の全員」で全員 */
.utree{ border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); }
.utree__bar{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-x3s) var(--sp-s); padding: var(--sp-x3s) var(--sp-xs); border-bottom: 1px solid var(--border); border-radius: var(--r-m) var(--r-m) 0 0; background: var(--over-bg); }
.utree__all span, .utree__dk span{ font-weight: 700; }
.utree__sum{ margin-left: auto; color: var(--text-grey); font-size: var(--fs-s); }
.utree__list, .utree__list ul{ margin: 0; padding: 0; list-style: none; }
.utree__hd{ display: flex; align-items: center; gap: var(--sp-x3s); min-height: 40px; padding: 0 var(--sp-xs) 0 calc(var(--sp-x3s) + var(--depth, 0) * 24px); }
.utree__list > .utree__d:not(:first-child) > .utree__hd, .utree__bd > ul > .utree__d > .utree__hd{ border-top: 1px solid var(--border); }
.utree__tg{ flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-s); background: none; color: var(--text-grey); cursor: pointer; }
.utree__tg:hover{ background: var(--column); }
.utree__tg .ic{ width: 16px; height: 16px; }
.utree__n{ color: var(--text-grey); font-size: var(--fs-s); }
.utree__ppl{ display: flex; flex-wrap: wrap; gap: 0 var(--sp-s); padding: 0 var(--sp-xs) var(--sp-x3s) calc(var(--sp-x3s) * 2 + 28px + var(--depth, 0) * 24px); }
.utree__d.is-closed > .utree__bd{ display: none; }
.ck{ display: inline-flex; align-items: center; gap: var(--sp-xxs); min-height: 32px; cursor: pointer; }
.ck input{ width: 16px; height: 16px; margin: 0; accent-color: var(--main); }
.ck--single{ min-height: 40px; }
.form__btns{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-xs); }
.panel .form__btns, .wfform .form__btns{ margin-top: var(--sp-s); }
.lines__foot{ display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xs); margin-top: var(--sp-xxs); }
.lines__sum{ font-size: var(--fs-m); }
.tbl--lines td{ padding: var(--sp-xxs); }
.tbl--lines th{ padding: var(--sp-xxs); }
.tbl--lines input, .tbl--lines select{ min-height: 36px; }
.inline{ display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-xs); }
.inline label{ display: grid; gap: var(--sp-xxs); font-size: var(--fs-m); font-weight: 700; }
.inline__grow{ flex: 1 1 220px; }
.inline .dp{ min-width: 200px; font-weight: 400; }

/* 日付の欄（どこを押してもカレンダーが開く。文字では打たない） */
.dp{ position: relative; display: block; }
.dp .dp__in{ padding-right: 40px; cursor: pointer; caret-color: transparent; }
.dp__ic{ position: absolute; top: 50%; right: 12px; width: 18px; height: 18px; color: var(--text); transform: translateY(-50%); pointer-events: none; }
.dp.is-open .dp__in{ outline: 2px solid var(--main); outline-offset: -2px; box-shadow: inset 0 0 0 3px #fff; }
.dp__in:disabled + .dp__ic{ color: var(--text-disabled); }
.dpop{ position: absolute; z-index: 95; width: 316px; max-width: calc(100vw - 16px); padding: 12px; border-radius: var(--r-m); background: var(--white); box-shadow: var(--sh-layer3); }
.dpop__hd{ display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-x3s); }
.dpop__hd b{ font-size: var(--fs-m); }
.dpop__wk, .dpop__grid{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dpop__wk span{ padding: 6px 0; color: var(--text); font-size: var(--fs-xs); font-weight: 700; text-align: center; }
.dpop__d{ height: 38px; margin: 1px; padding: 0; border: 0; border-radius: var(--r-m); background: none; color: var(--text); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.dpop__d:hover{ background: var(--column-hover); }
.dpop .is-sun{ color: #b32050; }
.dpop .is-sat{ color: #0060a8; }
.dpop__d.is-out{ opacity: .4; }
.dpop__d.is-today{ box-shadow: inset 0 0 0 1px var(--main); font-weight: 700; }
.dpop__d.is-sel, .dpop__d.is-sel:hover{ background: var(--btn); color: var(--on-brand); font-weight: 700; opacity: 1; }
.dpop__d:disabled{ background: none; color: var(--text-disabled); cursor: not-allowed; }
.dpop__d:focus-visible{ outline: 2px solid var(--main); outline-offset: -2px; }
/* 期間（開始日〜終了日）の組：範囲に薄い色、両端は塗り。なぞっている間は枠 */
.dpop__grid{ touch-action: none; user-select: none; }
.dpop__d.is-in{ border-radius: 0; background: rgba(0, 159, 167, .14); }
.dpop__d.is-rs{ border-radius: var(--r-m) 0 0 var(--r-m); }
.dpop__d.is-re{ border-radius: 0 var(--r-m) var(--r-m) 0; }
.dpop__d.is-rs.is-re{ border-radius: var(--r-m); }
.dpop__d.is-in.is-rs, .dpop__d.is-in.is-re{ background: var(--btn); color: var(--on-brand); font-weight: 700; opacity: 1; }
.dpop__d.is-off{ color: var(--text-disabled); cursor: not-allowed; }
.dpop__d.is-drag, .dpop__d.is-drag:hover{ border-radius: 0; background: rgba(0, 159, 167, .28); color: var(--text); box-shadow: inset 0 2px 0 var(--main), inset 0 -2px 0 var(--main); opacity: 1; }
.dpop__tip{ display: flex; align-items: center; gap: var(--sp-x3s); margin-top: var(--sp-xxs); color: var(--text-grey); font-size: var(--fs-xs); line-height: 1.4; }
.dpop__tip .ic{ flex: none; width: 14px; height: 14px; }
/* なぞっている間、カーソルの横に出す範囲の札 */
.dragtip{ position: fixed; z-index: 120; padding: 4px 10px; border-radius: var(--r-m); background: var(--text); color: #fff; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; box-shadow: var(--sh-layer2); pointer-events: none; }
.dragtip.is-ng{ background: var(--danger); }
.dpop__ft{ display: flex; gap: var(--sp-xxs); margin-top: var(--sp-xxs); padding-top: var(--sp-xxs); border-top: 1px solid var(--border); }
.dpop__ft [data-dpt="close"]{ margin-left: auto; }
.form__btns .form__btns-l{ margin-right: auto; }

/* 予約の入力画面：この日の予約状況 */
.rsv__body{ padding: 12px var(--sp-xs) var(--sp-xs); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--column); }
.rsv__hd{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xxs); margin-bottom: var(--sp-xxs); }
.rsv__hd span{ color: var(--text-grey); font-size: var(--fs-s); }
.rsv__hrs, .rsv__track{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rsv__hrs span{ padding: 0 0 2px 3px; color: var(--text-grey); font-size: var(--fs-xxs); font-weight: 700; }
.rsv__track{ position: relative; height: 44px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--white); overflow: hidden; cursor: pointer; touch-action: pan-y; user-select: none; }
.rsv__track i + i{ border-left: 1px solid var(--border); }
.rsv__track i:hover{ background: var(--column-hover); }
.rsv__bar{ position: absolute; top: 5px; bottom: 5px; display: flex; align-items: center; padding: 0 var(--sp-x3s); border: 1px solid var(--border); border-radius: var(--r-s); background: var(--head); color: var(--text); font-size: var(--fs-xxs); white-space: nowrap; overflow: hidden; cursor: default; }
.rsv__sel{ position: absolute; top: 0; bottom: 0; border: 2px solid var(--main); border-radius: var(--r-s); background: rgba(0, 159, 167, .16); pointer-events: none; }
.rsv__sel.is-ng{ border-color: var(--danger); background: rgba(224, 30, 90, .14); }
.rsv__msg{ display: flex; align-items: center; gap: 6px; margin-top: var(--sp-xxs); font-size: var(--fs-s); }
.rsv__msg .ic{ flex: none; width: 18px; height: 18px; }
.rsv__msg.is-ok{ color: var(--green); font-weight: 700; }
.rsv__msg.is-ng{ color: var(--danger); font-weight: 700; }
.rsv__list{ display: grid; gap: 2px; margin-top: var(--sp-xxs); padding-top: var(--sp-xxs); border-top: 1px solid var(--border); font-size: var(--fs-s); }
.rsv__list li{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-xxs); }
.rsv__list b{ font-variant-numeric: tabular-nums; }
.rsv__list small{ color: var(--text-grey); }
.rsv__none{ margin-top: var(--sp-xxs); color: var(--text-grey); font-size: var(--fs-s); }
.cmts li{ display: flex; gap: var(--sp-xs); padding: var(--sp-xs) 0; border-bottom: 1px solid var(--border); }
.cmts li:first-child{ padding-top: 0; }
.cmts li > div{ min-width: 0; flex: 1; }
.cmts__meta{ display: flex; flex-wrap: wrap; gap: var(--sp-x3s) var(--sp-xs); align-items: baseline; margin-bottom: var(--sp-x3s); font-size: var(--fs-m); }
.cmts__meta time{ color: var(--text-grey); font-size: var(--fs-s); }
.cmtform{ display: flex; align-items: flex-end; gap: var(--sp-xxs); margin-top: var(--sp-xs); }
.cmtform textarea{ flex: 1; min-height: 48px; }
.good{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs); }
.readlist{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs) var(--sp-s); }
.wfform{ margin-top: var(--sp-s); padding-top: var(--sp-s); border-top: 1px solid var(--border); }
.wfform label{ display: block; margin-bottom: var(--sp-xxs); font-size: var(--fs-m); font-weight: 700; }

/* 承認の流れ */
.steps{ display: grid; gap: 0; }
.steps li{ position: relative; display: flex; gap: var(--sp-xs); padding-bottom: var(--sp-s); }
.steps li::before{ content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.steps li:last-child{ padding-bottom: 0; }
.steps li:last-child::before{ display: none; }
.steps__dot{ display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--border); border-radius: 50%; background: var(--white); color: var(--text-grey); font-size: var(--fs-s); font-weight: 700; flex: none; z-index: 1; }
.steps__dot .ic{ width: 14px; height: 14px; }
.steps li.is-ok .steps__dot{ border-color: var(--green); background: var(--green); color: #fff; }
.steps li.is-cur .steps__dot{ border-color: var(--main); color: var(--main); }
.steps li.is-back .steps__dot{ border-color: #c27500; background: #c27500; color: #fff; }
.steps li.is-ng .steps__dot{ border-color: var(--danger); background: var(--danger); color: #fff; }
.steps__h{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-x3s) var(--sp-xxs); font-weight: 700; }
.steps__h .uchip{ font-weight: 400; margin-right: 0; }
.steps__m{ color: var(--text-grey); font-size: var(--fs-s); }
.steps__c{ margin-top: var(--sp-x3s); padding: var(--sp-xxs) var(--sp-xs); border-radius: var(--r-s); background: var(--over-bg); font-size: var(--fs-m); }

/* ---------- カレンダー ---------- */
.caltool{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs); margin-bottom: var(--sp-xs); }
.caltool__nav{ display: flex; align-items: center; gap: var(--sp-xxs); }
.caltool__nav strong{ margin-left: var(--sp-xxs); font-size: var(--fs-l); white-space: nowrap; }
.caltool__right{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xxs); margin-left: auto; }
.caltool select{ width: auto; min-height: 32px; }
.caltool .dp{ width: 172px; }
.caltool .dp__in{ min-height: 32px; }
/* SegmentedControl */
.seg{ display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; background: var(--white); }
.seg button{ min-height: 32px; padding: 0 var(--sp-xs); border: 0; border-right: 1px solid var(--border); background: var(--white); color: var(--text); font-size: var(--fs-s); font-weight: 700; }
.seg button:last-child{ border-right: 0; }
.seg button:hover{ background: var(--white-hover); }
.seg button.is-active{ background: var(--btn); color: var(--on-brand); }
.cal{ border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; }
.cal__head{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--th-bg); font-size: var(--fs-s); font-weight: 700; text-align: center; }
.cal__head div{ padding: var(--sp-x3s) 0; color: var(--th-text); }
.cal__grid{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--white); }
.cal__cell{ min-width: 0; min-height: 104px; padding: var(--sp-x3s); border-top: 1px solid var(--border); border-left: 1px solid var(--border); cursor: pointer; }
.cal__cell:nth-child(7n+1){ border-left: 0; }
.cal__cell:hover{ background: var(--column); }
/* 空いているところを押すと登録できる、の印（予定の上にいるときは出さない） */
.cal__cell:hover .cal__day::after{ content: "+"; margin-left: auto; padding-right: 2px; color: var(--main); font-size: var(--fs-m); font-weight: 700; line-height: 1; }
.cal__cell:has(.ev:hover) .cal__day::after{ content: none; }
/* 日付をなぞって期間を選んでいるところ */
.cal__grid, .wk tbody{ user-select: none; }
/* なぞる場所では、リンクを掴んで運ぶ動きと長押しのメニューを出さない */
.cal__grid, .wk tbody, .tl{ -webkit-touch-callout: none; }
.cal__grid a, .wk tbody a, .tl a{ -webkit-user-drag: none; }
.cal__cell.is-range, .wk td.is-range{ background: rgba(0, 159, 167, .16) !important; box-shadow: inset 0 0 0 1px var(--main); }
.cal__cell.is-range .cal__day::after, .wk td.is-range::after{ content: none !important; }
.cal__cell.is-sat{ background: #f0f6fc; }
.cal__cell.is-sun{ background: #fdf1f4; }
.cal__cell.is-out > *{ opacity: .45; }
.cal__day{ display: flex; align-items: center; gap: var(--sp-x3s); min-height: 24px; }
.cal__num{ display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 12px; font-size: var(--fs-s); font-weight: 700; }
.cal__hol{ min-width: 0; color: #b32050; font-size: var(--fs-xxs); line-height: 1.3; }
.is-sat .cal__num{ color: #0060a8; }
.is-sun .cal__num{ color: #b32050; }
.cal__head .is-sat, .cal__head .is-sun, .wk thead th.is-sat, .wk thead th.is-sun{ color: var(--th-text); }   /* 見出しの上は土日も白（下の日の枠の色で分ける） */
.cal__cell.is-today .cal__num{ background: var(--btn); color: var(--on-brand); }
.cal__more{ display: block; margin-top: 2px; font-size: var(--fs-xs); }
/* 予定の札：件名は切らずに全文を出し、枠の幅で折り返す */
.ev{ display: flex; align-items: baseline; gap: var(--sp-x3s); margin-top: 2px; padding: 1px 2px; color: var(--link); font-size: var(--fs-xs); line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.ev:hover{ text-decoration: underline; }
.ev b{ flex: none; color: var(--text-grey); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev span{ min-width: 0; }
.ev--gray{ color: var(--text-grey); }
/* 日をまたぐ予定：日をつなぐ帯。名前は初日と週の頭にだけ出す（ほかの日は同じ文字を見えなくして入れ、高さをそろえる）。
   折り返しても段がずれないように、帯の中の文字の幅はどの日の枠でも同じ（枠の幅 −10px）にする：
   間の日は左右に4pxはみ出して余白9px、初日・終わりの日ははみ出さない側の余白を5px */
.ev--span{ margin-right: calc(var(--sp-x3s) * -1); margin-left: calc(var(--sp-x3s) * -1); padding: 1px 9px; border-radius: 0; background: #dcf1f2; color: var(--text); }
.ev--span:hover{ background: #c6e8ea; color: var(--text); text-decoration: none; }
.ev--span.is-head{ margin-left: 0; padding-left: 5px; border-radius: var(--r-s) 0 0 var(--r-s); box-shadow: inset 3px 0 0 var(--main); }
.ev--span.is-tail{ margin-right: 0; padding-right: 5px; border-top-right-radius: var(--r-s); border-bottom-right-radius: var(--r-s); }
.ev--span:not(.is-head) span{ visibility: hidden; }
.ev--span.ev--gray{ background: var(--over-bg); color: var(--text-grey); }
/* 帯の段：その段の札を同じ場所に重ね、いちばん高いものの高さにする（views-schedule.js の laneHtml） */
.ev-lane{ display: grid; }
.ev-lane > *{ grid-area: 1 / 1; }
.ev--ghost{ visibility: hidden; pointer-events: none; }
.wk{ width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; background: var(--white); font-size: var(--fs-s); }
.wk th, .wk td{ border: 1px solid var(--border); padding: var(--sp-x3s); vertical-align: top; }
.wk thead th{ background: var(--th-bg); color: var(--th-text); font-size: var(--fs-s); text-align: center; }
.wk thead th small{ margin-left: 2px; font-weight: 400; }
.wk thead th i{ display: block; color: var(--th-text); font-size: var(--fs-xxs); font-style: normal; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wk thead th.is-today{ background: var(--btn); color: var(--th-text) !important; box-shadow: inset 0 -4px 0 var(--th-text); }   /* 見出しと同じ系統の色なので、少し濃くして下に白い線 */
.wk .wk__who{ position: sticky; left: 0; z-index: 2; width: 132px; background: var(--white); text-align: left; font-weight: 700; }
.wk thead .wk__who{ background: var(--th-bg); }
.wk__who a{ display: flex; align-items: center; gap: var(--sp-x3s); color: var(--text); text-decoration: none; }
.wk__who a:hover{ text-decoration: underline; }
.wk td{ position: relative; height: 54px; cursor: pointer; }
.wk td:hover{ background: var(--column); }
.wk td:not(.wk__who):hover::after{ content: "+"; position: absolute; top: 2px; right: 6px; color: var(--main); font-size: var(--fs-m); font-weight: 700; line-height: 1.2; }
.wk td:has(.ev:hover)::after{ content: none !important; }
.wk td.is-sat{ background: #f0f6fc; }
.wk td.is-sun{ background: #fdf1f4; }
.wk td.is-today{ box-shadow: inset 2px 0 0 var(--main), inset -2px 0 0 var(--main); }
.daylist li{ display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--sp-xs); padding: var(--sp-xs) 0; border-bottom: 1px solid var(--border); }
.daylist__time{ font-weight: 700; font-variant-numeric: tabular-nums; }
.daylist__body p{ display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: var(--sp-x3s); font-size: var(--fs-s); }
.daylist__place{ display: inline-flex; align-items: center; gap: var(--sp-x3s); color: var(--text-grey); }
.daylist__place .ic{ width: 14px; height: 14px; }

/* ---------- 予約表（横が時間） ---------- */
.tl{ overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); }
.tl__in{ min-width: 900px; }
.tl__row{ display: grid; grid-template-columns: 170px minmax(0, 1fr); border-top: 1px solid var(--border); }
.tl__row--head{ border-top: 0; background: var(--th-bg); font-size: var(--fs-s); font-weight: 700; color: var(--th-text); }
.tl__name{ position: sticky; left: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: var(--sp-xxs) 12px; border-right: 1px solid var(--border); background: var(--white); line-height: 1.35; }
.tl__row--head .tl__name{ background: var(--th-bg); color: var(--th-text); }
.tl__name small{ color: var(--text-grey); font-size: var(--fs-xs); }
.tl__track{ position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 60px; }
.tl__row--head .tl__track{ min-height: 32px; }
.tl__h{ padding: 6px 0 0 6px; border-left: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 700; }
.tl__cell{ position: relative; border-left: 1px solid var(--border); }
.tl__cell:hover{ background: var(--column); }
.tl__drag{ position: absolute; top: 4px; bottom: 4px; z-index: 4; border: 2px solid var(--main); border-radius: var(--r-s); background: rgba(0, 159, 167, .2); pointer-events: none; }
.tl__drag.is-ng{ border-color: var(--danger); background: rgba(224, 30, 90, .16); }
.tl__track{ user-select: none; }
.tl__track:has(.tl__drag:not([hidden])) .tl__cell::after{ content: none; }
.tl__cell:hover::after{ content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--main); font-size: 20px; font-weight: 700; }
.tl__bar{ position: absolute; top: 6px; bottom: 6px; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 2px var(--sp-xxs); border: 1px solid var(--border); border-radius: var(--r-s); background: var(--over-bg); color: var(--text); font-size: var(--fs-xs); line-height: 1.3; text-decoration: none; overflow: hidden; white-space: nowrap; }
.tl__bar:hover{ background: var(--head); color: var(--text); }
.tl__bar span, .tl__bar small{ overflow: hidden; text-overflow: ellipsis; }
.tl__bar small{ font-size: var(--fs-xxs); }
.tl__bar.is-mine{ border-color: var(--btn); background: var(--btn); color: var(--on-brand); }
.tl__bar.is-mine:hover{ background: var(--btn-hover); }
.tl__bar--legend{ position: static; display: inline-flex; padding: 1px 10px; }
/* 社用車の予約表：名前の欄に車両の画像 */
.tl--car .tl__row{ grid-template-columns: 300px minmax(0, 1fr); }
.tl--car .tl__track{ min-height: 96px; }
.tl--car .tl__row--head .tl__track{ min-height: 32px; }
.tl--car .tl__bar{ top: 10px; bottom: 10px; }
.tl__name--car{ flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: var(--sp-xxs) 12px; }
.tl__name--car .tl__link{ gap: 12px; }
.tl__nm{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl__nm b{ font-size: var(--fs-m); }

/* ---------- 車両の画像（施設・車両マスタ、社用車予約） ---------- */
.carimg{ flex: none; display: block; border-radius: var(--r-s); background: var(--column); object-fit: cover; }
.carimg--s{ width: 60px; height: 40px; }
.carimg--m{ width: 120px; height: 80px; }
.carimg--l{ width: 100%; max-width: 360px; height: auto; aspect-ratio: 3 / 2; }
.assetimg--s{ width: 44px; height: 44px; }                 /* 備品の画像は正方形 */
.assetimg--l{ width: 100%; max-width: 320px; height: auto; aspect-ratio: 1 / 1; border: 1px solid var(--border); }
.carimg--none{ display: inline-flex; align-items: center; justify-content: center; color: var(--text-grey); }
.carimg--none svg{ width: 20px; height: 20px; }
.carname{ display: inline-flex; align-items: center; gap: var(--sp-xxs); vertical-align: middle; }
/* 予約の詳細の「車両」欄：編集画面へのリンク（管理者だけ）。画像も押せる */
.faclink{ color: var(--link); }
.faclink .carname > span{ color: var(--link); text-decoration: underline; }
.faclink:hover .carname > span{ text-decoration-thickness: 2px; }
/* 予約表の名前の欄（管理者）：欄全体が1つのボタン。カーソルを当てると欄に枠と「編集」が出る */
.tl__name.is-link{ padding: 0; }
.tl__link{ position: relative; display: flex; flex: 1; align-self: stretch; align-items: center; gap: var(--sp-xxs); min-width: 0; padding: var(--sp-xxs) 12px; color: var(--text); text-decoration: none; }
.tl__name--car .tl__link{ gap: 12px; }
.tl__link:hover, .tl__link:focus-visible{ background: var(--column); color: var(--text); outline: 2px solid var(--main); outline-offset: -2px; }
.tl__edit{ position: absolute; top: 6px; right: 8px; display: none; align-items: center; gap: 2px; padding: 1px 6px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--white); color: var(--text); font-size: var(--fs-xxs); font-weight: 700; }
.tl__edit .ic{ width: 12px; height: 12px; }
.tl__link:hover .tl__edit, .tl__link:focus-visible .tl__edit{ display: inline-flex; }
/* 備品の予約表：大きさは社用車と同じ（.tl--car）。画像は正方形なので 120×80 の白い枠に収める */
.assetimg--m{ width: 120px; height: 80px; border: 1px solid var(--border); background: var(--white); object-fit: contain; }
/* 分類の見出しの行（押すと開閉） */
.tl__grp{ border-top: 1px solid var(--border); background: var(--over-bg); }
.tl__tg{ position: sticky; left: 0; display: inline-flex; align-items: center; gap: var(--sp-x3s); min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--text); font-size: var(--fs-m); font-weight: 700; cursor: pointer; }
.tl__tg .ic{ width: 16px; height: 16px; color: var(--text-grey); }
.tl__tg small{ color: var(--text-grey); font-size: var(--fs-s); font-weight: 400; }
.tl__tg:hover span{ text-decoration: underline; }
.tl__tg:focus-visible{ outline: 2px solid var(--main); outline-offset: -2px; }
.tl__row[hidden]{ display: none; }
/* 貸出中・修理中（備品）：その日は終日ふさがっている。斜線の地 */
.tl__bar.is-repair span{ color: var(--danger); }
.panel__acts{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs); }

/* ---------- 組織図 ---------- */
.org, .org ul{ display: grid; gap: var(--sp-xs); }
.org ul{ position: relative; margin: var(--sp-xs) 0 0 22px; padding-left: 22px; border-left: 2px solid var(--border); }
.org ul > li{ position: relative; }
.org ul > li::before{ content: ""; position: absolute; left: -22px; top: 22px; width: 20px; height: 2px; background: var(--border); }
.org__box{ padding: var(--sp-xs); border-radius: var(--r-m); background: var(--over-bg); }
.org__name{ display: flex; align-items: center; gap: var(--sp-xxs); font-size: var(--fs-m); }
.org__name .ic{ color: var(--text-grey); }
.org__members{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs); margin-top: 12px; }
.org__m{ display: flex; align-items: center; gap: var(--sp-xxs); min-width: 180px; padding: var(--sp-xxs) 12px; border-radius: var(--r-m); background: var(--white); box-shadow: var(--sh-layer1); color: var(--text); font-size: var(--fs-s); line-height: 1.25; text-decoration: none; }
.org__m:hover{ background: var(--white-hover); color: var(--text); }
.org__m small{ display: block; color: var(--text-grey); font-size: var(--fs-xs); }

/* ---------- トップページ ---------- */
.hello{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-xs); }
.hello h1{ font-size: var(--fs-xl); font-weight: 400; line-height: 1.25; }
.hello__date{ margin-bottom: var(--sp-x3s); color: var(--text-grey); font-size: var(--fs-s); }
.quick{ display: flex; flex-wrap: wrap; gap: var(--sp-xxs); }
.home{ display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-s); align-items: start; }
.home__main, .home__side{ min-width: 0; }
/* トップページの並び方（個人設定）：left＝左を広く（初期）／right＝右を広く／even＝同じ幅／one＝1列。片方の列が空なら1列 */
.home--right{ grid-template-columns: 360px minmax(0, 1fr); }
.home--even{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home--one, .home--single{ grid-template-columns: minmax(0, 1fr); }
.home--one .home__side > .panel:first-child{ margin-top: 0; }
.home__foot{ margin-top: var(--sp-s); }
/* 個人設定 */
.lay{ display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-bottom: var(--sp-xs); }
.lay__i{ position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-x3s); width: 148px; padding: var(--sp-xs) var(--sp-xxs); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--white); font-size: var(--fs-s); text-align: center; cursor: pointer; }
.lay__i:hover{ background: var(--column); }
.lay__i input{ position: absolute; opacity: 0; pointer-events: none; }
.lay__i:has(input:checked){ border: 2px solid var(--main); padding: calc(var(--sp-xs) - 1px) calc(var(--sp-xxs) - 1px); font-weight: 700; }
.lay__i:has(input:focus-visible){ outline: 2px solid var(--main); outline-offset: 2px; }
.lay__pic{ display: grid; grid-template-columns: 2fr 1fr; gap: 4px; width: 96px; height: 60px; }
.lay__pic i{ border-radius: 3px; background: var(--th-bg); opacity: .55; }
.lay__pic--right{ grid-template-columns: 1fr 2fr; }
.lay__pic--even{ grid-template-columns: 1fr 1fr; }
.lay__pic--one{ grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.prefs__tbl .tbl__c{ text-align: center; }
.prefs__tbl tbody th[scope="row"]{ background: var(--white); color: var(--text); font-weight: 400; text-align: left; }
.prefs > .panel + .panel{ margin-top: var(--sp-s); }
.prefs > .form__btns{ margin-top: var(--sp-m, 24px); }
.prefs .fld__hint + .form__grid, .prefs .fld__hint + .utree{ margin-top: var(--sp-xs); }
.prefs__tbl select{ min-width: 120px; }
.prefs__mv{ white-space: nowrap; }
.prefs__mv .iconbtn:disabled{ opacity: .35; cursor: default; }
.prefs__reset{ margin-right: auto; }
.rows li{ border-bottom: 1px solid var(--border); }
.rows li:last-child{ border-bottom: 0; }
.rows__a{ display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-xxs); padding: 12px 0; color: var(--text); line-height: 1.45; text-decoration: none; }
.rows__a:hover{ color: var(--text); }
.rows__a:hover .rows__t{ color: var(--link); text-decoration: underline; }
.rows__t{ flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.rows__a small{ flex: 1 1 100%; color: var(--text-grey); }
.rows__a small.is-late{ color: var(--danger); font-weight: 700; }
.rows + .btn{ margin-top: var(--sp-xs); }
.todo{ display: flex; align-items: center; gap: var(--sp-xxs); }
.todo .rows__a{ flex: 1; min-width: 0; }
.todo__ck{ width: 20px; height: 20px; padding: 0; border: 1px solid var(--text-grey); border-radius: 50%; background: var(--white); flex: none; }
.todo__ck:hover{ border-color: var(--main); box-shadow: var(--sh-input-hover); }
.tc{ text-align: center; }
.tc__date{ color: var(--text-grey); font-size: var(--fs-s); }
.tc__clock{ font-size: 2.75rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.tc__clock small{ font-size: var(--fs-l); color: var(--text-grey); }
.tc__times{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxs); margin: var(--sp-xxs) 0 var(--sp-xs); }
.tc__times div{ padding: var(--sp-xxs); border-radius: var(--r-m); background: var(--over-bg); }
.tc__times span{ display: block; color: var(--text-grey); font-size: var(--fs-xs); }
.tc__times b{ font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
.tc__btns{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxs); }
.tc__btns .btn{ min-height: 44px; }
.punch{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-xs); }
.punch__date{ color: var(--text-grey); font-size: var(--fs-s); }
.punch__state b{ font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
.punch .tc__btns{ min-width: 240px; }

/* ---------- 幅の狭い画面 ---------- */
@media (max-width: 1100px){
  .home{ grid-template-columns: minmax(0, 1fr); }
  .home__side{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-s); align-items: start; }
  .home__side > .panel + .panel{ margin-top: 0; }
  .home__side > .panel--wide{ grid-column: 1 / -1; }     /* カレンダーなど広い部品を右の列に置いたときは横いっぱい */
}
@media (max-width: 960px){
  .hd__menu{ display: inline-flex; }
  .hd{ padding: 0 var(--sp-xxs); }
  .hd__user > .ic{ display: none; }
  .hd__user{ padding: 0 6px; }
  .nav{ position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(320px, 86vw); background: var(--white); box-shadow: var(--sh-layer4); overflow-y: auto; transform: translateX(-104%); transition: transform .2s; }
  body.nav-open .nav{ transform: none; }
  .nav-shade{ position: fixed; inset: 0; z-index: 70; background: var(--scrim); }
  body.nav-open .nav-shade{ display: block; }
  .nav__in{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-x3s); padding: var(--sp-xxs) var(--sp-xxs) var(--sp-s); }
  .nav__title{ display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); padding: 0 var(--sp-xxs) 0 var(--sp-xs); border-bottom: 1px solid var(--border); font-weight: 700; }
  .nav__title .hd__btn{ color: var(--text); }              /* 白いメニューの上なので、ヘッダーの白い文字色を打ち消す */
  .nav__title .hd__btn:hover{ background: var(--white-hover); }
  .nav__item{ min-height: 76px; border-radius: var(--r-m); }
  .nav__item.is-active{ background: var(--over-bg); }
  .nav__item.is-active::after{ display: none; }
  .hd__menu{ color: #fff; }
}
@media (max-width: 720px){
  .page{ padding: var(--sp-s) var(--sp-xs) 64px; }
  .page > * + *{ margin-top: var(--sp-s); }
  .ph h1, .hello h1{ font-size: var(--fs-l); }
  .ph__actions{ width: 100%; margin-left: 0; }
  .home__side{ grid-template-columns: minmax(0, 1fr); }
  .logo{ height: 25px; }
  .hd__uname{ font-size: var(--fs-xs); }
  .pop__panel{ position: fixed; top: calc(var(--hd-h) + 4px); right: 8px; width: min(320px, calc(100vw - 16px)); }
  .panel__bd{ padding: var(--sp-xs); }
  .panel__hd{ padding: var(--sp-xs) var(--sp-xs) 0; }
  .form__grid, .dl{ grid-template-columns: minmax(0, 1fr); gap: var(--sp-xs); }
  /* 開始・終了の時刻は、狭い画面でも横に並べる（「10:00 〜 11:00」と読める） */
  .form__grid:has(> .fld[data-k="start"] + .fld[data-k="end"]){ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form__grid:has(> .fld[data-k="start"] + .fld[data-k="end"]) > *{ grid-column: 1 / -1; }
  .form__grid > .fld[data-k="start"]:has(+ .fld[data-k="end"]){ grid-column: 1; }
  .form__grid > .fld[data-k="start"] + .fld[data-k="end"]{ grid-column: 2; }
  .search{ flex: 1 1 100%; }
  .search__box{ flex: 1; }
  .search input{ width: 100%; }
  .listbar__count{ margin-left: 0; }
  .caltool__right{ margin-left: 0; width: 100%; }
  .cmtform{ flex-direction: column; align-items: stretch; }
  .tc__clock{ font-size: 2.5rem; }
  .punch .tc__btns{ flex: 1 1 100%; }
  .form__btns{ justify-content: stretch; }
  .form__btns .btn{ flex: 1 1 0; }
  .dlg__ft .btn{ flex: 1 1 0; }
  /* 一覧は1件ずつの札にする（コレクション（リスト）の形） */
  .tbl--list thead{ display: none; }
  .tbl--list, .tbl--list tbody, .tbl--list tr, .tbl--list td{ display: block; width: 100%; }
  .tbl--list tr{ padding: 12px var(--sp-xs); border-top: 1px solid var(--border); }
  .tbl--list tbody tr:first-child{ border-top: 0; }
  .tbl--list td{ display: flex; align-items: flex-start; gap: var(--sp-xxs); padding: 2px 0; border: 0; text-align: left; }
  .tbl--list td::before{ content: attr(data-label); flex: 0 0 6.5em; color: var(--text-grey); font-size: var(--fs-xs); line-height: 2; }
  .tbl--list td.tbl__main{ padding-bottom: var(--sp-x3s); font-size: var(--fs-m); font-weight: 700; }
  .tbl--list td.tbl__main::before, .tbl--list td.tbl__act::before, .tbl--list .tbl__empty td::before{ display: none; }
  .tbl--list td.tbl__act{ justify-content: flex-end; padding-top: var(--sp-xxs); }
  .tbl--list .tbl__empty td{ justify-content: center; }
  .tbl--form select, .tbl--form input[type="text"]{ flex: 1; min-width: 0; }
  /* 明細の入力は1行ずつ縦に並べる */
  .tbl--lines thead{ display: none; }
  .tbl--lines, .tbl--lines tbody{ display: block; border: 0; }
  .tbl--lines tr{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--sp-xxs); padding: 12px 0; border-top: 1px solid var(--border); }
  .tbl--lines td{ display: block; padding: 0; border: 0; }
  .tbl--lines td::before{ content: attr(data-label); display: block; color: var(--text-grey); font-size: var(--fs-xs); }
  .tbl--lines td:nth-child(3){ grid-column: 1 / -1; }
  .tbl--lines td.tbl__x{ width: auto; align-self: end; text-align: right; }
  /* 月のカレンダーは字を小さく */
  .cal__cell{ min-height: 72px; padding: 2px; }
  .cal__hol{ display: none; }
  .ev{ padding: 1px 3px; font-size: 10px; }
  /* 帯の中の文字の幅：枠の幅 −6px（間の日は左右に2pxはみ出して余白5px、初日・終わりの日は余白3px） */
  .ev--span{ margin-right: -2px; margin-left: -2px; padding: 1px 5px; }      /* 月・週のどちらの表も */
  .ev--span.is-head{ margin-left: 0; padding-left: 3px; }
  .ev--span.is-tail{ margin-right: 0; padding-right: 3px; }
  .ev b{ display: none; }
  .cal__more{ font-size: 10px; }
  .daylist li{ grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .org ul{ margin-left: 8px; padding-left: 14px; }
  .org ul > li::before{ left: -14px; width: 12px; }
  .org__m{ min-width: 0; flex: 1 1 100%; }
  /* 社用車の予約表：時間の欄を広く残すため、車両の欄は画像と号車だけ */
  .tl--car .tl__row{ grid-template-columns: 136px minmax(0, 1fr); }
  .tl--car .tl__track{ min-height: 72px; }
  .tl--car .tl__name{ padding: var(--sp-x3s) var(--sp-xxs); }
  .tl__name.is-link{ padding: 0; }
  .tl--car .tl__link{ padding: var(--sp-x3s) var(--sp-xxs); }
  .tl__edit{ display: none !important; }
  .tl__name--car, .tl__name--car .tl__link{ flex-direction: column; align-items: flex-start; gap: 2px; }
  .tl--car .carimg--m, .tl--car .assetimg--m{ width: 72px; height: 48px; }
  .tl__tg{ padding: 0 var(--sp-xxs); }
  /* 備品の名前は社用車の号車と同じ1行に収める（行の高さを社用車とそろえる。全体は予約の画面・資産一覧で見る） */
  .tl--asset .tl__nm{ width: 100%; }
  .tl--asset .tl__nm b{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tl--car .tl__nm small{ display: none; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
@media print{
  .hd, .nav, .nav-shade, .toast, .ph__actions, .ph__back, .form__btns{ display: none !important; }
  body{ background: #fff; }
  .page{ max-width: none; padding: 0; }
  .panel{ break-inside: avoid; box-shadow: none; border: 1px solid var(--border); }
}
