/* ============================================================
   driver_app.css — ドライバー連絡アプリの画面
   スマホ1画面前提。色は e_learning_app / install.php に合わせた赤（#C51605）
   20260924 新規作成（大野）
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ボタン類の色（20260929 大野さんの指示で #31444d に統一。削除ボタンは危険が分かるよう赤のまま） */
:root {
  --btn: #31444d;
}
/* アクセント色（20261001 ロゴ・アイコンの色を #ff7314 から #db4226 に変えたのに合わせた。大野さんの指示）
   --accent      … 選択中の線・アイコン・●など
   --accent-ink  … 白の上に置く大きな数字（少し濃く）
   --accent-soft … 目立たせたいカードの背景、--accent-line … その枠 */
:root {
  --accent: #db4226;
  --accent-ink: #b9351c;
  --accent-soft: #fdf0ed;
  --accent-line: #f2b8aa;
}
body {
  /* font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
  /* 20261104 英数字は Roboto、日本語は Noto Sans JP（Roboto に日本語の字が無いので、日本語は次の Noto Sans JP で出る。大野さんの指示） */
  font-family: "Roboto", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa; color: #222; line-height: 1.6; font-size: 15px;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
[hidden] {
  display: none !important;
}

/* ---- ボタン ---- */
.btn_primary, .btn_secondary {
  display: block; width: 100%; border-radius: 8px; cursor: pointer;
  font-size: 16px; font-weight: bold; padding: 14px; margin-top: 12px;
}
.btn_primary {
  border: 0;
  background: var(--btn);
  color: #fff;
}
.btn_secondary {
  border: 1px solid var(--btn);
  background: #fff;
  color: var(--btn);
}
.btn_primary:active, .btn_secondary:active {
  opacity: .85;
}
.btn_primary:disabled, .btn_secondary:disabled {
  opacity: .5;
}

/* ---- ログイン ----
   Android 標準風（Material Design 3）。枠付きの入力欄で、入力するとラベルが枠の上に上がる
   20260924 デザインを案C に変更（大野） */
.login_body {
  background: #fff;
  color: #231918;
}
.login_main {
  min-height: 100dvh; display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto;
  padding: calc(64px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
}
.login_head {
  text-align: center;
  margin-bottom: 32px;
}
.login_mark {
  width: 70px; height:auto; margin: 0 auto;
  display: grid; place-items:center;
}
.login_logo {
  width: 250px;
  height: auto;
  margin: 0 auto 12px;
}
.login_title {
  font-size: 28px;
  font-weight: 500;
  margin: 24px 0 6px;
}
.login_lead {
  font-size: 14px;
  color: #534341;
}

/* ドライバー／事務所の切り替え 20260925
   淡い土台の上を白いつまみ（::before）が左右にすべる。右に寄せるのは .seg.is_user
   20260928 ロゴ（#ff7314）に合わせてオレンジ系に変更。選択中の文字は、白の上で読める濃さのオレンジ（#e0600a）にしている
   20260928 土台を薄いグレー、文字を黒に変更（大野さんの指示）。選択中はアイコンだけオレンジ */
.seg {
  position: relative; display: flex; padding: 4px; margin-bottom: 24px;
  background: #f0f0f2; border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.seg::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  transition: transform .28s cubic-bezier(.3,.7,.2,1);
}
.seg.is_user::before {
  transform: translateX(100%);
}
.seg_item {
  flex: 1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.seg_item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* 20260928 文字を「ドライバーの方はこちら」などに長くしたので、アイコンを文字の上に置いて1行に収める（幅360pxのスマホでも折り返さない） */
.seg_item span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px;
  font-size: 13px; font-weight: 500; color: #1f1f1f; letter-spacing: .01em; white-space: nowrap;
  transition: color .2s;
}
.seg_item span i {
  font-size: 16px;
  color: #8a8a8e;
  transition: color .2s;
}
.seg_item input:checked + span {
  color: #1f1f1f;
  font-weight: 700;
}
/* .seg_item input:checked + span i { color: #ff7314; } */
.seg_item input:checked + span i {
  color: var(--accent);
}
/* .seg_item input:focus-visible + span { outline: 2px solid #ff7314; outline-offset: -2px; border-radius: 8px; } */
.seg_item input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.login_error {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: #410002; background: #ffdad6;
  border-radius: 8px; padding: 12px 14px; margin-bottom: 20px;
}
.login_error i {
  color: #ba1a1a;
  margin-top: 3px;
}

/* 枠付きの入力欄 */
.of {
  position: relative;
  margin-bottom: 20px;
}
.of input {
  width: 100%; height: 56px; border: 1px solid #857371; border-radius: 4px; background: transparent;
  font-size: 16px; padding: 0 16px; outline: 0; font-family: inherit; color: #231918;
}
.of input[type="password"], .of input#login_password {
  padding-right: 52px;
}
.of label {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  padding: 0 4px; background: #fff; color: #534341; font-size: 16px;
  pointer-events: none; transition: top .15s, font-size .15s, color .15s;
}
.of input:focus {
  border: 2px solid #C51605;
  padding-left: 15px;
}
.of input:focus + label,
.of input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
}
.of input:focus + label {
  color: #C51605;
}
/* Chrome の自動入力で欄が水色に塗られるのを背景色で上書きする */
.of input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #fff inset;
  -webkit-text-fill-color: #231918;
}
.of_eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; width: 40px; height: 40px; border-radius: 50%;
  color: #534341; font-size: 18px; cursor: pointer;
}
.of_eye:active {
  background: rgba(35,25,24,.08);
}

/* ログインボタン（全幅） */
.btn_login {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 24px; cursor: pointer;
  background: var(--btn); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .02em; font-family: inherit;
  transition: box-shadow .15s, opacity .15s;
}
.btn_login:active {
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.btn_login_spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn_login.is_loading {
  opacity: .85;
  pointer-events: none;
}
.btn_login.is_loading .btn_login_text {
  display: none;
}
.btn_login.is_loading .btn_login_spinner {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 20260928 画面の一番下に寄せていたが、実機（Android）では画面の外に押し出されて見えなかったので、ログインボタンのすぐ下に表示する（大野） */
.login_help {
  margin-top: 16px;
  font-size: 12px;
  color: #857371;
  text-align: center;
}

/* ---- トーク画面 ----
   左：一覧とタブ  右：会話。スマホでは会話を開くと全画面、900px 以上では左右に並べる
   色は AppLogi の赤（#C51605）を軸に、ログイン画面（Material Design 3 の赤系）とそろえる。
   LINE と紛らわしくならないよう、黄緑の吹き出し・緑のバッジ・青い背景は使わない
   20260924 トーク画面に作り替え（大野）
   20260924 配色を AppLogi の赤系に変更（大野） */
/* 20260925 Android の実機で下のメニューバーが切れていたので修正（大野）
   body にナビゲーションバー分の余白（env(safe-area-inset-bottom)）が付いたまま、中身を 100dvh にしていたため、
   合計が画面より高くなり、はみ出した下端（メニューバー）が overflow: hidden で切れていた。
   アプリ本体は画面の四辺に固定し、ナビゲーションバー分の余白はメニューバー（.tabbar）の中だけで取る */
.app_body {
  background: #fff;
  overflow: hidden;
  padding-bottom: 0;
  min-height: 0;
}
.app {
  position: fixed;
  inset: 0;
  display: flex;
}

/* 左：一覧 */
/* .pane_side { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; height: 100%; background: #fff; } */
/* 20261006 min-height: 0 を追加。一覧が長いと（事務所の人はグループのタグで高くなる）縮まずに、スマホの下のメニューが画面の外へ押し出されていた */
.pane_side {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #fff;
}
.side_header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; min-height: 56px;
}
.side_title {
  font-size: 22px;
  font-weight: 700;
}
.side_body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.icon_btn {
  border: 0; background: none; width: 40px; height: 40px; border-radius: 50%;
  color: #333; font-size: 18px; cursor: pointer; display: inline-grid; place-items: center;
}
.icon_btn:active {
  background: rgba(0,0,0,.06);
}

.room_list, .member_list, .group_list {
  list-style: none;
}
.room, .member, .group_item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer;
}
.room:active, .member:active, .group_item:active {
  background: #f2f3f5;
}
.room.is_active {
  background: #f6eeed;
}
.avatar {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700;
}
.avatar--photo {
  background: #e3e6ea;
  overflow: hidden;
}
.avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar--all {
  background: #C51605;
}
.avatar--office {
  background: #775651;
}
.avatar--group {
  background: #7c8aa5;
}
.avatar--channel {
  background: #9c6b5e;
}
/* 写真が無い人・事務所のトーク（20261001 TOP の「新しいメッセージ」と同じ。ドライバー＝トラック、事務所＝建物） */
/* .avatar--driver      { background: #e6ecef; color: var(--btn); } */
.avatar--driver {   /* 20261001 色で塗った丸＋白いアイコン（トークの配色 案A） */
  background: var(--btn);
  color: #fff;
}
/* .avatar--office_icon { background: var(--accent-soft); color: var(--accent); } */
.avatar--office_icon {
  background: var(--accent);
  color: #fff;
}
.avatar--driver .ms, .avatar--office_icon .ms {
  font-size: 28px;
}
.member .avatar--driver .ms, .member .avatar--office_icon .ms, .group_item .avatar .ms {
  font-size: 24px;
}
.msg .avatar--driver .ms, .msg .avatar--office_icon .ms {
  font-size: 21px;
}
.room_main {
  flex: 1;
  min-width: 0;
}
/* 一覧の区切り（全社のチャンネル／〇〇のチャンネル／トーク） 20260925 */
.list_section {
  font-size: 12px;
  font-weight: 700;
  color: #857371;
  padding: 14px 16px 4px;
  letter-spacing: .04em;
}
/* グループ名のタグ（事務所の人だけ。押すとそのグループの見出しへ移動） 20260929 */
/* 20260929 一覧をスクロールしても上に残るよう固定（折り返して全部見せる。大野さんの指示）。
   スクロールする箱（.side_body）の中での固定なので、画面上部の「トーク」の見出しの下に張り付く */
.group_tags {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px;
  position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid #eef0f2;
}
.group_tags[hidden] {
  display: none;
}
.group_tag {
  border: 1px solid #d5dbdf; background: #f4f6f7; color: var(--btn); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.group_tag:hover {
  background: #e8edf0;
  border-color: #c3ccd2;
}
.group_tag:active {
  background: #dde4e8;
}
/* 選択中（今見ているグループ）のタグ 20260929 */
.group_tag.is_active, .group_tag.is_active:hover {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
/* タグで移動した先の見出しを一瞬色付きにする */
.list_section.is_flash .list_section_toggle {
  animation: section_flash 1.5s ease-out;
}
@keyframes section_flash {
  0%, 30% {
    background: #dde6eb;
  }
  100% {
    background: #f4f6f7;
  }
}

/* 一覧の見出し（チャンネル・トーク。押すと開け閉め） 20260925 */
.list_section--toggle {
  padding: 0;
}
/* 20260929 区切りとして分かりやすいよう、見出しを薄いグレーの帯にした。矢印は右端、文字は濃い色の太字（大野さんの指示） */
.list_section_toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer;
  border: 0; border-top: 1px solid #e3e7ea; background: #f4f6f7;
  padding: 11px 16px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--btn); letter-spacing: .03em; text-align: left;
}
.list_section_toggle:active {
  background: #eaeef0;
}
.list_section_toggle i {
  margin-left: auto;
  font-size: 12px;
  color: #7d8a91;
  transition: transform .2s;
}
.list_section_toggle.is_closed i {
  transform: rotate(-90deg);
}
.list_section_toggle .badge {
  letter-spacing: 0;
}
/* 開いているトークルームがある区切りの見出し（閉じていても分かるように） 20260929 */
/* 20260929 トークルームを選んでいるグループの見出しを #31444d の帯・白い文字に（大野さんの指示。オレンジの「●」とバッジはそのまま） */
.list_section.is_current .list_section_toggle {
  color: #fff;
  font-weight: 800;
  background: #31444d;
  border-top-color: #31444d;
}
.list_section.is_current .list_section_toggle i {
  color: #fff;
}
.list_section.is_current .list_section_toggle:active {
  background: #3d525c;
}
/* 閉じている見出しは背景色なし（開いている見出しだけ帯にする。20260929 大野さんの指示）。
   ただしトークルームを選んでいるグループは、閉じていても帯のまま（下の .is_current の指定） */
.list_section .list_section_toggle.is_closed {
  background: transparent;
}
/* 20260929 トークルームを選んでいるグループ（オレンジの「●」付き）は、閉じていても #31444d の帯・白い文字のまま（大野さんの指示） */
.list_section.is_current .list_section_toggle.is_closed {
  background: #31444d;
  color: #fff;
  border-top-color: #31444d;
}
.list_section.is_current .list_section_toggle.is_closed i {
  color: #fff;
}
.list_section .list_section_toggle.is_closed:active {
  background: #f4f6f7;
}
.list_section.is_current .list_section_toggle.is_closed:active {
  background: #3d525c;
}
/* 20260929 「●」を大きく（6px → 10px）、ロゴと同じオレンジに（大野さんの指示） */
.list_section.is_current .list_section_toggle::before {
/* content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ff7314; flex: 0 0 auto; */
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
}
.room_lock {
  font-size: 11px;
  color: #a08c89;
  flex: 0 0 auto;
}
/* チャンネルの行はアイコンなし 20260925 */
/* .room--channel { padding: 12px 16px 12px 28px; min-height: 48px; } */
.room--channel {   /* 20261001 名前の前にアイコンを付けたので、字下げを少し詰めた */
  padding: 12px 16px 12px 24px;
  min-height: 48px;
  gap: 10px;
}
.room_icon {   /* メッセージルームの名前の前のアイコン（20261001） */
  width: 22px;
  font-size: 22px;
  color: var(--btn);
  flex: none;
  align-self: flex-start;
  margin-top: 1px;
}
.room_icon--alert {   /* 事故・トラブルは赤 */   /* 見出しの下に字下げして、どのグループのものか分かるように（20260929） */
  color: var(--accent);
}
.room_top, .room_bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* 20260929 名前は普通の太さ。未読があるときだけ太字（.room.is_unread）＋右側に件数のバッジ（大野さんの指示） */
.room_title {
  font-weight: 400;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room.is_unread .room_title {
  font-weight: 700;
}
.room.is_unread .room_preview {
  color: #3c4a52;
}
.room_count {
  font-size: 13px;
  color: #8a8f98;
  flex: 0 0 auto;
}
.room_time {
  margin-left: auto;
  font-size: 11px;
  color: #a0a5ad;
  flex: 0 0 auto;
}
.room_preview {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #8a8f98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 8px;
  background: #C51605; color: #fff; font-size: 11px; font-style: normal; font-weight: 700;
  display: inline-grid; place-items: center;
}
.empty, .section_note {
  padding: 24px 16px;
  color: #8a8f98;
  font-size: 13px;
  text-align: center;
}
.section_title {
  font-size: 12px;
  font-weight: 700;
  color: #8a8f98;
  padding: 16px 16px 4px;
}
.section_toggle {
  display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: #f7f8fa;
  text-align: left; cursor: pointer; font-family: inherit; padding: 10px 16px; margin-top: 4px;
  font-size: 13px; color: #555;
}
.section_toggle .section_count {
  color: #a0a5ad;
  font-weight: 400;
}
.section_toggle i {
  margin-left: auto;
  font-size: 12px;
  color: #a0a5ad;
  transition: transform .2s;
}
.section_toggle.is_closed i {
  transform: rotate(-90deg);
}
.member_main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.member_name {
  font-size: 15px;
}
/* .member_sub { font-size: 12px; color: #8a8f98; } */
.member_sub {   /* 20261002 11px に（大野さんの指示） */
  font-size: 11px;
  color: #8a8f98;
}
.member .avatar, .group_item .avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.search_box {
  display: flex; align-items: center; gap: 8px; margin: 4px 16px 8px; padding: 0 12px;
  height: 40px; border-radius: 8px; background: #f2f3f5; color: #8a8f98;
}
.search_box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
}

/* 下のタブ */
.tabbar {
  display: flex; border-top: 1px solid #eceef1; background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  position: relative; flex: 1; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; color: #9aa0a8; font-size: 10px; font-family: inherit;
}
.tab i {
  font-size: 20px;
}
.tab.is_active {
  color: #1f2328;
}
.tab_badge {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #C51605; color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
}

/* 設定 */
#view_settings {
  padding: 8px 16px 24px;
  background: #f5f6f8;
  min-height: 100%;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 16px;
}
.card_title {
  font-size: 15px;
  margin-bottom: 8px;
}
.card_title i {
  color: #C51605;
  margin-right: 4px;
}
.card_title {   /* 20261001 見出しのアイコンを Material Symbols に */
  display: flex;
  align-items: center;
  gap: 6px;
}
.card_title .ms {
  color: var(--btn);
  font-size: 22px;
}
.push_status {
  font-size: 14px;
  color: #444;
}
.switch_row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  cursor: pointer;
}
.switch_label {
  display: block;
  font-size: 15px;
}
.switch_note {
  display: block;
  font-size: 12px;
  color: #8a8f98;
  margin-top: 2px;
}
.switch {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative;
  width: 52px; height: 32px; border-radius: 16px; background: #d0d4da; cursor: pointer; transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.switch:checked {
  background: #C51605;
}
.switch:checked::after {
  transform: translateX(20px);
}
.group_list .group_item {
  padding: 8px 0;
}
.group_list .section_note {
  padding: 8px 0;
  text-align: left;
}
.account_name {
  font-size: 15px;
}
.account_name small {
  color: #8a8f98;
  margin-left: 6px;
}
.logout_wrap {
  margin-top: 12px;
  font-size: 14px;
}
.logout_wrap a {
  color: #666;
}

/* 右：会話 */
.pane_chat {
/* position: fixed; inset: 0; z-index: 20; background: #f3edec; */
  position: fixed; inset: 0; z-index: 20; background: #e7ecef;   /* 20261001 トークの配色 案A：落ち着いたグレー */
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.app--chat .pane_chat {
  transform: none;
}
.chat_placeholder {
  display: none;
}
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat_header {
  display: flex; align-items: center; gap: 4px; background: #fff; border-bottom: 1px solid #e3e6ea;
  padding: calc(6px + env(safe-area-inset-top)) 8px 6px; min-height: 56px;
}
.chat_title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat_title small {
  font-weight: 400;
  color: #8a8f98;
  margin-left: 4px;
  font-size: 13px;
}
.chat_body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 12px;
}
.chat_more {
  display: block; margin: 4px auto 8px; border: 0; border-radius: 14px; padding: 6px 14px;
/* background: #e7dcda; color: #534341; font-size: 12px; cursor: pointer; font-family: inherit; */
  background: #d5dde2; color: #3f4d55; font-size: 12px; cursor: pointer; font-family: inherit;
}
.day_sep {
  text-align: center;
  margin: 12px 0;
}
/* .day_sep span { display: inline-block; padding: 3px 12px; border-radius: 8px; background: #e7dcda; color: #534341; font-size: 11px; } */
.day_sep span {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 8px;
  background: #d5dde2;
  color: #3f4d55;
  font-size: 11px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}
.msg--first {
  margin-top: 12px;
}
.msg .avatar, .avatar_space {
  width: 36px;
  height: 36px;
  font-size: 14px;
  flex: 0 0 auto;
}
.msg_col {
  min-width: 0;
  max-width: calc(100% - 44px);
}
/* .msg_name { font-size: 11px; color: #534341; margin: 0 0 3px 4px; } */
.msg_name {
  font-size: 11px;
  color: #3f4d55;
  margin: 0 0 3px 4px;
}
.msg_row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.msg--mine {
  justify-content: flex-end;
}
.msg--mine .msg_row {
  flex-direction: row-reverse;
  max-width: 80%;
}
.msg--other .msg_row {
  max-width: 100%;
}
.bubble {
  position: relative; padding: 9px 12px; border-radius: 18px; font-size: 15px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; min-width: 0;
/* background: #fff; color: #231918; box-shadow: 0 1px 2px rgba(35,25,24,.08); */
  background: #fff; color: #1f2a30; box-shadow: 0 1px 2px rgba(30,45,52,.10);
}
/* .msg--mine .bubble { background: #ffdad5; color: #410002; box-shadow: none; } */
.msg--mine .bubble {   /* 20261001 自分の吹き出しはボタンと同じ紺に白い文字 */
  background: var(--btn);
  color: #fff;
  box-shadow: none;
}
.msg--mine .bubble a {
  color: #cfe3ff;
}
.bubble a {
  color: #0b57d0;
}
/* 吹き出しのしっぽ（送り主の最初の1通だけ） */
.msg--first.msg--other .bubble {
  border-top-left-radius: 4px;
}
.msg--first.msg--mine .bubble {
  border-top-right-radius: 4px;
}
/* .msg_meta { flex: 0 0 auto; display: flex; flex-direction: column; font-size: 10px; color: #857371; line-height: 1.3; } */
.msg_meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #5d6b73;
  line-height: 1.3;
}
.msg--mine .msg_meta {
  align-items: flex-end;
}
.msg_read:empty {
  display: none;
}
/* 既読の表示は押すと一覧が出る（20260929） */
/* .msg_read.is_link { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(133,115,113,.5); text-underline-offset: 2px; } */
.msg_read.is_link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(93,107,115,.5);
  text-underline-offset: 2px;
}
.msg_read.is_link:hover {
  color: var(--btn);
}
.msg--other .msg_meta {
  align-items: flex-start;
}
/* 既読の人の一覧 */
.modal_header_space {
  width: 40px;
  flex: 0 0 auto;
}
#readers_list .member {
  padding: 8px 16px;
}
.reader_time {
  flex: 0 0 auto;
  font-size: 12px;
  color: #857371;
}
.msg.is_pending .bubble {
  opacity: .6;
}
.msg.is_failed .bubble {
  opacity: 1;
  box-shadow: 0 0 0 2px #ba1a1a inset;
}
.msg.is_failed .msg_read {
  color: #ba1a1a;
  font-weight: 700;
}

/* 事務所だけ投稿できるチャンネルの案内（入力欄の代わりに出す） 20260925 */
.composer_locked {
  background: #fff; border-top: 1px solid #e3e6ea; color: #857371; font-size: 13px; text-align: center;
  padding: 14px 8px calc(14px + env(safe-area-inset-bottom));
}
.composer_locked i {
  margin-right: 4px;
}

/* 入力欄 */
.composer {
  display: flex; align-items: flex-end; gap: 8px; background: #fff; border-top: 1px solid #e3e6ea;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.composer textarea {
  flex: 1; resize: none; border: 0; outline: 0; background: #f2f3f5; border-radius: 20px;
  padding: 9px 14px; font-size: 16px; line-height: 1.4; font-family: inherit; max-height: 140px;
}
/* .composer_send {
  flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--btn); color: #fff; font-size: 16px;
} */
/* 20261001 アイコンの横に「送信」の文字。丸から角の丸い横長のボタンにした */
.composer_send {
  flex: 0 0 auto; height: 40px; border: 0; border-radius: 20px; cursor: pointer; padding: 0 16px 0 14px;
  background: var(--btn); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.composer_send i {
  font-size: 15px;
}
.composer_send:disabled {
  background: #cfd3d8;
  cursor: default;
}

/* 通知の案内（初めて開いたときに1回だけ） 20260928 */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #fff;
  overflow-y: auto;
}
.onboard_panel {
  min-height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center;
  padding: calc(32px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
}
.onboard_step {
  display: flex;
  flex-direction: column;
}
.onboard_step[hidden] {
  display: none;
}
.onboard_art {
  width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 28px;
/* background: #fff1e6; color: #ff7314; display: grid; place-items: center; font-size: 42px; */
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 42px;
  animation: onboard_pop .5s cubic-bezier(.3,1.4,.5,1) both;
}
.onboard_art--ok {
  background: #e8f5ec;
  color: #2e7d4f;
}
@keyframes onboard_pop {
  from {
    transform: scale(.6);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.onboard_title {
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: #1f1f1f;
}
.onboard_text {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  text-align: center;
  margin-bottom: 24px;
}
.onboard_main {
  margin-top: 0;
}

.onboard_later {
  margin-top: 12px; border: 0; background: none; color: #777; font-size: 14px; padding: 10px; cursor: pointer; font-family: inherit;
}
.onboard_guide {
  list-style: none;
  counter-reset: step;
  margin: 0 0 16px;
}
.onboard_guide li {
  counter-increment: step; display: flex; align-items: center; gap: 12px;
  background: #f7f7f8; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; line-height: 1.5;
}
.onboard_guide li::before {
  content: counter(step); flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
/* background: #ff7314; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; */
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.onboard_icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; background: #fff;
  display: grid; place-items: center; color: #555; font-size: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.onboard_icon--app img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.onboard_note {
  font-size: 13px;
  line-height: 1.6;
  color: #8a4b00;
  background: #fff4e5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

/* 画面内の新着のお知らせ */
.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 50; max-width: calc(100% - 32px); border: 0; border-radius: 8px; padding: 12px 16px;
  background: rgba(32,33,36,.92); color: #fff; font-size: 13px; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* グループの作成・編集 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal_panel {
  width: 100%; max-width: 560px; height: 92dvh; background: #fff; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
}
.modal_header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #eceef1;
}
.modal_header h2 {
  flex: 1;
  font-size: 16px;
  text-align: center;
}
.modal_save {
  border: 0;
  background: none;
  color: var(--btn);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}
.modal_body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0 24px;
}
.modal_body .of {
  margin: 0 16px 12px;
}
.modal_body .of label {
  background: #fff;
}
.modal_sub {
  font-size: 13px;
  color: #8a8f98;
  margin: 4px 16px 8px;
}
.pick_list .member {
  padding: 8px 16px;
}
.pick_cb {
  width: 22px;
  height: 22px;
  accent-color: #C51605;
  flex: 0 0 auto;
}
.modal_panel--small {
  height: auto;
  max-height: 92dvh;
}
.field_group {
  margin: 12px 16px 0;
}
.field_group .modal_sub {
  margin: 0 0 6px;
}
.radio_row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 15px;
  cursor: pointer;
}
.radio_row input {
  width: 20px;
  height: 20px;
  accent-color: #C51605;
}
.section_title--card {
  padding: 12px 0 4px;
}
.btn_danger {
  display: block; margin: 24px 16px 0; width: calc(100% - 32px); padding: 12px; border-radius: 8px;
  border: 1px solid #ba1a1a; background: #fff; color: #ba1a1a; font-size: 15px; cursor: pointer; font-family: inherit;
}

/* PC 幅：左右に並べる */
@media (min-width: 900px) {
  .pane_side {
    flex: 0 0 360px;
    border-right: 1px solid #e3e6ea;
  }
  .pane_chat {
    position: relative;
    inset: auto;
    flex: 1;
    transform: none;
    transition: none;
    z-index: auto;
    height: 100%;
  }
  .chat_back {
    display: none;
  }
  .chat_placeholder {
    display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
/*     color: #857371; font-size: 14px; */
    color: #6b7780; font-size: 14px;   /* 20261001 グレーの背景に合わせた */
  }
  .chat_placeholder[hidden] {
    display: none;
  }
  .chat_placeholder i {
    font-size: 48px;
  }
  .msg--mine .msg_row {
    max-width: 60%;
  }
  .msg_col {
    max-width: 60%;
  }
  .modal {
    align-items: center;
  }
  .modal_panel {
    height: 80vh;
    border-radius: 16px;
  }
}

/* ============================================================
   TOP・下のメニュー・下の層の画面（20260930 構成変更の段階1。大野）
   利用者には機械が苦手な人・年配の人が多いので、ボタンは必ず文字を添え、押せる範囲を広くとる
   ============================================================ */

/* ---- アイコン（Material Symbols Rounded。画面の案と同じ形。20260930 大野さんの指示） ----
   文字（アイコンの名前）をフォントで絵に変える仕組み。読み込むアイコンは driver_app_head.php の icon_names */
/*
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  width: 1em; height: 1em; overflow: hidden; flex: none;   /* 読み込み前に名前の文字で幅が広がらないように * /
}
.ms--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
*/
/* 20261001 アイコンを Line Awesome にした（文字の形は .las が決める）。.ms は大きさ・幅をそろえるためだけに残す */
.ms {
  font-size: 24px;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: inline-block;
  text-align: center;
  flex: none;
  font-style: normal;
}


/* ---- 下のメニュー（どの画面にも出す。lib/app_layout.php） ---- */
.appnav {
  flex: none; display: flex; background: #fff; border-top: 1px solid #e3e8eb;
  padding-bottom: env(safe-area-inset-bottom);
}
.appnav_item {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
/*   padding: 8px 0 7px; color: #7d8790; font-size: 11px; text-decoration: none; white-space: nowrap; */
  padding: 8px 0 7px; color: #333; font-size: 11px; text-decoration: none; white-space: nowrap;   /* 20261001 文字・アイコンの色を #333 に（大野さんの指示） */
  -webkit-tap-highlight-color: transparent;
}
.appnav_item .ms {
  font-size: 26px;
}
.appnav_item.is_active {
  color: var(--btn);
  font-weight: 700;
}
.appnav_item.is_active::before {   /* 今いるメニューの上に線（色だけに頼らない） */
/* content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: #ff7314; */
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
}
.appnav_item:active {
  background: #f2f4f5;
}
.appnav_badge {
  position: absolute; top: 3px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #C51605; color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
}

/* ---- 左上の「← 戻る」 ---- */
.back_btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid #cfd6da; background: #fff; color: var(--btn); border-radius: 999px;
  padding: 7px 14px 7px 11px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.back_btn .ms {
  font-size: 20px;
}
.back_btn:active {
  background: #eef2f4;
}

/* ---- 画面の枠（TOP・下の層の画面） ---- */
.page_body {
  background: #f5f7fa;
  overflow: hidden;
  padding-bottom: 0;
  min-height: 0;
}
.page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.page_main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page_header {
  flex: none; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #e3e8eb;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px; min-height: 60px;
}
.page_title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.page_header_space {   /* 「戻る」と同じ幅をとって、見出しを真ん中に */
  width: 92px;
  flex: none;
}

/* 準備中 */
.soon {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 24px;
  text-align: center;
}
.soon_icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #e9eef0;
  color: var(--btn);
  display: grid;
  place-items: center;
}
.soon_icon .ms {
  font-size: 40px;
}
.soon_title {
  font-size: 20px;
  margin-bottom: 8px;
}
.soon_text {
  font-size: 15px;
  color: #56626a;
}
.soon_home {
  margin-top: 28px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.soon_home .ms {
  font-size: 22px;
}

/* ---- TOP ---- */
.top_header {
  flex: none; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid #e3e8eb;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
}
.top_mark {
  width: 36px;
  height: auto;
  flex: none;
}
.top_hello {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.top_hello small {
  font-size: 12px;
  color: #6b7780;
}
.top_hello b {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top_role {
  flex: none;
  font-size: 12px;
  color: var(--btn);
  background: #eef2f4;
  border-radius: 999px;
  padding: 2px 10px;
}
.top_main {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.top_main > * {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.top_section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.top_label {
  font-size: 13px;
  font-weight: 700;
  color: #56626a;
  letter-spacing: .04em;
}

/* 今日の配車 */
.today_card {
  background: var(--btn);
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.today_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.today_head h2 {
  font-size: 16px;
}
.today_date {
  font-size: 14px;
  opacity: .9;
  font-variant-numeric: tabular-nums;
}
.today_empty {
  font-size: 17px;
  font-weight: 700;
  margin-top: 4px;
}
.today_note {
  font-size: 13px;
  opacity: .85;
}
.today_btn {
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--btn); border-radius: 8px; padding: 13px; font-size: 16px; font-weight: 700; text-decoration: none;
}
/* .today_btn .ms { color: #ff7314; font-size: 22px; } */
.today_btn .ms {
  color: var(--accent);
  font-size: 22px;
}
.today_btn:active {
  background: #eef2f4;
}

/* 新しいメッセージ */
.news {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e3e8eb;
  overflow: hidden;
}
.news_row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eef1f3;
}
.news_row:last-child {
  border-bottom: none;
}
.news_row:active {
  background: #f5f7f8;
}
.news_row > .ms {
  width: 24px;
  color: var(--btn);
  font-size: 24px;
  flex: none;
}
/* 送った人の顔写真（写真が無い人は名前の頭文字）（20261001） */
.news_time {   /* 最後のメッセージの時刻（20261001） */
  flex: none;
  font-size: 12px;
  color: #8a949b;
  font-variant-numeric: tabular-nums;
}
.news_avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: #e3e6ea;
}
.news_avatar--initial {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c6ced2, #9eaab0);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
/* 写真が無い人：ドライバー＝トラック（紺）、事務所＝建物（ロゴと同じ赤）（20261001 アイコン案の案A） */
.news_avatar--driver, .news_avatar--office {
  display: grid;
  place-items: center;
}
/* .news_avatar--driver { background: #e6ecef; color: var(--btn); } */
.news_avatar--driver {   /* 20261001 トークの画面とそろえて、色で塗った丸＋白いアイコン */
  background: var(--btn);
  color: #fff;
}
/* .news_avatar--office { background: var(--accent-soft); color: var(--accent); } */
.news_avatar--office {
  background: var(--accent);
  color: #fff;
}
.news_row > .news_avatar .ms {
  width: 24px;
  font-size: 24px;
  color: inherit;
}
.news_text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.news_text b {
  font-size: 15px;
}
.news_text b small {
  font-weight: 400;
  font-size: 12px;
  color: #6b7780;
}
.news_text > small {
  font-size: 12.5px;
  color: #6b7780;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news_empty {
  padding: 16px;
  color: #6b7780;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news_empty .ms {
  font-size: 22px;
  color: #2e7d4f;
}
.news_more .ms {
  font-size: 20px;
}
.news_head {   /* 20261001 見出しをカードの中に */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #eef1f3;
}
.news_head h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--btn);
}
.news_head a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--btn);
  text-decoration: none;
  white-space: nowrap;
}
.news_head a .ms {
  font-size: 18px;
}
.news_more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--btn);
  text-decoration: none;
  border-top: 1px solid #eef1f3;
}

/* メニューのタイル */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tiles--two {
  grid-template-columns: repeat(2, 1fr);
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e3e8eb; border-radius: 14px; padding: 16px 4px 12px;
  color: #222; text-decoration: none; font-size: 13.5px; font-weight: 700;
}
.tile:active {
  background: #f2f5f6;
}
/* .tile_icon { width: 46px; height: 46px; border-radius: 14px; background: #eef2f4; color: var(--btn); display: grid; place-items: center; } */
.tile_icon {   /* 20261001 背景色をなくした（大野さんの指示） */
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--btn);
  display: grid;
  place-items: center;
}
/* .tile_icon .ms { font-size: 28px; } */
.tile_icon .ms {   /* 20261001 大きく（大野さんの指示） */
  font-size: 36px;
}
.tile_label {
  white-space: nowrap;
}
.tile_badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* 事務所：承認待ち・未読の数 */
.office_kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.office_kpi > .kpi:nth-child(3) {   /* スマホでは3つ目（今日の配車の送信）を横いっぱいに（20261001） */
  grid-column: 1 / -1;
}
.kpi {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #222;
  text-decoration: none;
}
.kpi small {
  font-size: 12.5px;
  color: #6b7780;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi small .ms {
  font-size: 18px;
}
.kpi b {
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.kpi b span {
  font-size: 13px;
  font-weight: 500;
  color: #6b7780;
  margin-left: 2px;
}
.kpi b .kpi_num {   /* 20261001 書き換える数の入れ物。「件」の小さい文字の指定を受けないように */
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin-left: 0;
}
.kpi b.kpi_soon {
  font-size: 16px;
  color: #8a949b;
  padding-top: 8px;
}
/* .kpi.is_hot { border-color: #ffc9a3; background: #fff5ee; } */
.kpi.is_hot {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
/* .kpi.is_hot b { color: #d95a00; } */
.kpi.is_hot b {
  color: var(--accent-ink);
}

/* ---- メッセージの画面：トーク／友だち／設定の切り替え（下のタブから移した） ---- */
.subtabs {
  flex: none;
  display: flex;
  gap: 4px;
  margin: 0 12px 8px;
  padding: 4px;
  background: #eef1f3;
  border-radius: 8px;
}
.subtabs .tab {
  flex: 1; flex-direction: row; justify-content: center; gap: 6px; padding: 8px 0; border-radius: 9px;
  font-size: 14px; color: #56626a;
}
.subtabs .tab .ms {
  font-size: 20px;
}
.subtabs .tab.is_active {
  background: #fff;
  color: #1f2328;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.chat_header .back_btn {
  padding: 6px 12px 6px 10px;
  font-size: 14px;
  margin-right: 4px;
}

/* ---- マイページ（アカウント・通知・ログアウト。20260930） ---- */
.my_main {
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.my_main > * {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.my_card {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 14px;
  padding: 16px;
}
.my_account {
  display: flex;
  align-items: center;
  gap: 14px;
}
.my_avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef2f4;
  color: var(--btn);
  display: grid;
  place-items: center;
  flex: none;
}
.my_avatar .ms {
  font-size: 32px;
}
.my_name {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.my_name b {
  font-size: 18px;
}
.my_name small {
  font-size: 13px;
  color: #6b7780;
}
.my_title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  margin-bottom: 8px;
}
.my_title .ms {
  color: var(--btn);
}
.my_list {
  padding: 0;
}
.my_row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: #8a949b;
  border-bottom: 1px solid #eef1f3;
}
.my_row:last-child {
  border-bottom: none;
}
.my_row > span:not(.ms) {
  flex: 1;
}
.my_soon {
  font-style: normal;
  font-size: 12px;
  background: #eef1f3;
  border-radius: 999px;
  padding: 2px 10px;
}
.logout_btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #e0b4ae; background: #fff; color: #b3261e; border-radius: 8px;
  padding: 14px; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.logout_btn:active {
  background: #fdf1ef;
}
.logout_confirm {
  background: #fff;
  border: 1px solid #e0b4ae;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.logout_confirm p {
  font-size: 16px;
  font-weight: 700;
}
.logout_confirm p small {
  font-size: 13px;
  font-weight: 400;
  color: #6b7780;
}
.logout_do {
  display: block; margin-top: 14px; background: #b3261e; color: #fff; border-radius: 8px;
  padding: 14px; font-size: 16px; font-weight: 700; text-decoration: none;
}

/* ---- 事務所のトークに入る・メンバー（事務所の人だけ。20260930） ---- */
.head_btn {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  border: 1px solid #cfd6da; background: #fff; color: var(--btn); border-radius: 999px;
  padding: 6px 12px 6px 9px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.head_btn .ms {
  font-size: 18px;
}
.head_btn:active {
  background: #eef2f4;
}
.modal--center {
  align-items: center;
  padding: 16px;
}
.confirm_panel {
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  height: auto;
}
.confirm_title {
  font-size: 17px;
  line-height: 1.5;
}
.confirm_text {
  font-size: 14px;
  color: #56626a;
  margin-top: 8px;
  text-align: left;
}
.member--static {
  cursor: default;
}
.member--static:active {
  background: none;
}
.row_btn {
  flex: none; border: 1px solid var(--btn); background: var(--btn); color: #fff; border-radius: 8px;
  padding: 6px 12px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.row_btn--danger {
  background: #fff;
  color: #b3261e;
  border-color: #e0b4ae;
}
.row_btn:disabled {
  opacity: .5;
}

/* ============================================================
   PC（画面の幅 900px 以上）：下のメニューを左のメニューにする（20261001 大野）
   PC画面の案「案1＋メニューの幅の切り替え」。幅は html.nav_narrow（js/app_layout.js）で細くする
   スマホでは、PC だけで出す部品（ロゴ・自分の名前・幅の切り替え・勤怠関連・車両情報）を隠す
   ============================================================ */
.appnav_brand, .appnav_me, .appnav_toggle, .appnav_item--pc {
  display: none;
}
.top_grid, .top_side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news_empty--soon .ms {
  color: #8a949b;
}

/* メッセージの画面：スマホでは一覧の下にメニュー（.app を縦に並べる。会話は上に重なる全画面） */
.app {
  flex-direction: column;
}

@media (min-width: 900px) {
  /* ---- 左のメニュー ---- */
  .appnav {
    order: -1; flex-direction: column; gap: 2px; width: 216px; flex: none; height: 100%; overflow-y: auto;
    border-top: 0; border-right: 1px solid #e3e8eb; padding: 14px 10px 12px;
  }
  .appnav_brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px 14px;
    text-decoration: none;
    color: var(--btn);
    font-weight: 700;
    font-size: 16px;
  }
  /* .appnav_brand img { width: 28px; height: auto; flex: none; } */
  /* 20261001 広いときはロゴ（logo.svg）、細いときはマーク（icon.svg） */
  /* .appnav_logo { width: 100%; max-width: 172px; height: auto; display: block; } */
  /* .appnav_mark { width: 30px; height: auto; display: none; } */
  /* 20261001 広いときはマーク＋ロゴを横に並べる */
  .appnav_mark {
    width: 30px;
    height: auto;
    display: block;
    flex: none;
  }
  .appnav_logo {
    flex: 1;
    min-width: 0;
    max-width: 140px;
    height: auto;
    display: block;
  }
/* .appnav_brand em { font-style: normal; color: #ff7314; } */
  .appnav_brand em {
    font-style: normal;
    color: var(--accent);
  }
  .appnav_item, .appnav_item--pc {
    display: flex; flex: none; flex-direction: row; gap: 10px; padding: 10px 12px; border-radius: 8px;
    font-size: 14px; justify-content: flex-start;
  }
  .appnav_item .ms {
    font-size: 24px;
  }
  .appnav_item:hover {
    background: #f2f5f6;
  }
  .appnav_item.is_active {
    background: #eef2f4;
  }
  .appnav_item.is_active::before {
    top: 8px;
    bottom: 8px;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
    border-radius: 3px;
  }
  .appnav_badge {
    position: static;
    margin-left: auto;
  }
  .appnav_me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px 8px 4px;
    border-top: 1px solid #e3e8eb;
    min-width: 0;
  }
  .appnav_avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c6ced2, #9eaab0);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: none;
  }
  .appnav_me_tx {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .appnav_me_tx small {
    display: block;
    color: #6b7780;
    font-size: 11px;
  }
  .appnav_toggle {
    display: block; margin-top: 8px; border: 1px solid #e3e8eb; background: #fff; color: #4b5860; border-radius: 8px;
    padding: 7px 10px; font-family: inherit; font-size: 12.5px; cursor: pointer; text-align: left;
  }
  .appnav_toggle:hover {
    background: #f2f5f6;
  }
  .appnav_toggle > span {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .appnav_toggle .ms {
    font-size: 20px;
  }
  .appnav_toggle_narrow {
    display: none !important;
  }

  /* ---- 細いとき（アイコンの下に小さく名前） ---- */
  .nav_narrow .appnav {
    width: 84px;
    padding: 14px 6px 12px;
  }
  .nav_narrow .appnav_brand {
    justify-content: center;
    padding: 2px 0 14px;
  }
  /* .nav_narrow .appnav_brand_tx { display: none; } */
  .nav_narrow .appnav_logo {
    display: none;
  }
  .nav_narrow .appnav_mark {
    display: block;
  }
  .nav_narrow .appnav_item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 2px;
    font-size: 10.5px;
    text-align: center;
  }
  .nav_narrow .appnav_item.is_active::before {
    top: 6px;
    bottom: 6px;
  }
  .nav_narrow .appnav_badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 4px);
    margin: 0;
  }
  .nav_narrow .appnav_me {
    justify-content: center;
    padding: 12px 0 4px;
  }
  .nav_narrow .appnav_me_tx {
    display: none;
  }
  .nav_narrow .appnav_toggle {
    padding: 6px 2px;
    font-size: 10px;
    text-align: center;
  }
  .nav_narrow .appnav_toggle > span {
    flex-direction: column;
    gap: 0;
  }
  .nav_narrow .appnav_toggle_wide {
    display: none !important;
  }
  .nav_narrow .appnav_toggle_narrow {
    display: flex !important;
  }

  /* ---- TOP・準備中・マイページ：メニューを左、見出しと中身を右 ---- */
  .page {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
  }
  .page > .appnav {
    grid-column: 1;
    grid-row: 1 / -1;
  }
  .page > header, .page > .page_main {
    grid-column: 2;
    min-width: 0;
  }
  .page > .page_main {
    grid-row: 2;
    min-height: 0;
  }
  .top_header {
    padding: 16px 28px 14px;
  }
  .top_role {   /* 左のメニューの下に出ているため */
    display: none;
  }
  .top_main {
    padding: 20px 28px 32px;
  }
  /* .top_main > * { max-width: 1120px; } */
  .top_main > * {   /* 20261001 左のメニューの残りの幅いっぱいに広げる（PC画面の案と同じ。大野さんの指示） */
    max-width: none;
  }
  .top_grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .top_quick {
    display: none;
  }
  /* 20261001 カードを画面の下まで伸ばす（PC画面の案に合わせた）。中身が多いときは画面ごと下へ続く */
  .top_main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .top_grid {
    flex: 1 1 auto;
    align-items: stretch;
  }
  .top_grid > .top_section, .top_side, .top_side > .top_section:first-child {
    display: flex;
    flex-direction: column;
  }
  .top_side > .top_section:first-child {
    flex: 1 1 auto;
  }
  .top_grid .news {   /* 事務所のメッセージ・設定のタイルは左のメニューにあるので出さない */
    flex: 1 1 auto;
  }
  /* .office_kpi { grid-template-columns: repeat(3, minmax(0, 220px)); } */
  .office_kpi {   /* 20261001 3枚で横いっぱいに */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .office_kpi > .kpi:nth-child(3) {
    grid-column: auto;
  }
  /* 未読があるときの「未読メッセージ」のカード：背景は白、枠線を2pxに（20261001 大野さんの指示）。太くした分だけ内側の余白を詰め、ほかのカードと大きさをそろえる */
  /* .kpi.is_hot { background: #fff; border-width: 2px; padding: 11px 13px; } */
  /* 20261001 もう一度変更：背景 #6b7780・文字は白（大野さんの指示）。枠線は2pxのまま背景と同じ色 */
  /* .kpi.is_hot { background: #6b7780; border-width: 2px; border-color: #6b7780; padding: 11px 13px; color: #fff; } */
  /* 20261001 枠線なし（大野さんの指示）。枠線の1px分だけ内側の余白を足し、ほかのカードと大きさをそろえる */
  .kpi.is_hot {
    background: #6b7780;
    border: 0;
    padding: 13px 15px;
    color: #fff;
  }
  .kpi.is_hot small, .kpi.is_hot b, .kpi.is_hot b span {
    color: #fff;
  }
  .today_card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 24px;
  }
  .today_card > * {
    flex: 1 1 100%;
  }
  .today_card .today_btn {
    flex: 0 0 auto;
    width: 240px;
    margin-top: 4px;
  }

  /* ---- メッセージの画面：左のメニュー｜トーク一覧｜会話 ---- */
  .app {
    flex-direction: row;
  }
}

/* ============================================================
   マウスを乗せたときの見た目（PC。メニュー以外）（20261001 大野さんの指示）
   タッチの端末（スマホ）では出さない。押せるところだけに付け、押せることが分かるようにする
   メニュー（.appnav_item・.appnav_toggle）とグループ名のタグ（.group_tag）は、それぞれの場所で指定済み
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .news_row, .news_more, .tile, a.kpi, .room, .member, .group_item, .list_section_toggle, .section_toggle,
  .btn_primary, .btn_secondary, .btn_danger, .back_btn, .head_btn, .row_btn, .today_btn, .logout_btn, .logout_do,
  .icon_btn, .composer_send, .modal_save, .chat_more, .subtabs .tab, .seg_item span, .news_head a, .soon_home {
    transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
  }

  /* 一覧の行（TOP の新しいメッセージ・トーク一覧・事務所の一覧） */
  .news_row:hover, .news_more:hover {
    background: #f4f6f8;
  }
  .room:hover, .member:hover, .group_item:hover {
    background: #f4f6f8;
  }
  .room.is_active:hover {
    background: #f1e6e4;
  }
  .member--static:hover {   /* メンバーの画面の行（押しても何も起きない）は変えない */
    background: none;
  }

  /* カード・タイル */
  .tile:hover, a.kpi:hover {
    border-color: #c9d2d7;
    box-shadow: 0 2px 8px rgba(30, 45, 52, .08);
  }
  .kpi.is_hot:hover {
    border-color: var(--accent);
  }
  /* .tile:hover .tile_icon { background: #e2e9ec; } */   /* 20261001 アイコンの背景色をなくしたので、マウスを乗せたときも付けない */

  /* 見出しの「メッセージを開く ›」「すべて見る ›」 */
  .news_head a:hover {
    text-decoration: underline;
  }

  /* 一覧の見出し（押すと開け閉め） */
  .list_section_toggle:hover {
    background: #eaeef0;
  }
  .list_section .list_section_toggle.is_closed:hover {
    background: #f4f6f7;
  }
  .list_section.is_current .list_section_toggle:hover,
  .list_section.is_current .list_section_toggle.is_closed:hover {
    background: #3d525c;
  }
  .section_toggle:hover {
    background: #f4f6f8;
  }

  /* ボタン */
  .btn_primary:not(:disabled):hover, .composer_send:not(:disabled):hover, .row_btn:not(:disabled):hover {
    background: #3d545f;
  }
  .row_btn--danger:not(:disabled):hover {
    background: #fdf1ef;
  }
  .btn_secondary:not(:disabled):hover, .back_btn:hover, .head_btn:hover {
    background: #eef2f4;
  }
  .btn_danger:hover {
    background: #fdf1ef;
  }
  .today_btn:hover {
    background: #eef2f4;
  }
  .logout_btn:hover {
    background: #fdf1ef;
  }
  .logout_do:hover {
    background: #9c2a15;
  }
  .icon_btn:hover {
    background: rgba(0, 0, 0, .06);
  }
  .modal_save:hover, .chat_more:hover {
    background: #eef2f4;
    border-radius: 8px;
  }

  /* メッセージの画面の トーク／事務所／設定 の切り替え（選んでいないもの） */
  .subtabs .tab:not(.is_active):hover {
    background: rgba(255, 255, 255, .6);
    color: #1f2328;
  }

  /* ログイン画面の ドライバー／事務所 の切り替え（選んでいない方） */
  .seg_item input:not(:checked) + span:hover {
    color: #000;
  }
}

/* ---- メッセージの画面の見出し：右に「事務所」「設定」、開いているときは左上に「← 戻る」（20261001） ---- */
.side_header {
  gap: 8px;
}
.side_title {
  flex: 1;
  min-width: 0;
}
.side_actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.side_actions[hidden] {
  display: none;
}
.hd_btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px;
  border: 0; background: none; color: var(--btn); border-radius: 8px; padding: 4px 6px;
  font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.hd_btn .ms {
  font-size: 24px;
}
.hd_btn:active {
  background: #eef2f4;
}
@media (hover: hover) and (pointer: fine) {
  .hd_btn:hover {
    background: #eef2f4;
  }
}

/* ---- カードの角の丸みを 6px にそろえる（20261001 大野さんの指示） ----
   TOP（今日の配車・件数・新しいメッセージ・承認待ち・メニューのタイル）、マイページ、設定の欄
   ボタン・吹き出し・丸いアイコンは対象外。元の値は各指定のところに残している */
.today_card, .kpi, .news, .tile, .my_card, .logout_confirm, .card {
  border-radius: 6px;
}

/* 下の層の画面の見出しの右上のボタン（マイページの「設定」など。20261001） */
.page_header_btn {   /* 左の「戻る」と同じ幅にして、見出しを真ん中に保つ */
  text-decoration: none;
  width: 92px;
}
.top_header .hd_btn {   /* TOP の右上の「設定」（20261001） */
  text-decoration: none;
}

/* ---- 見出し：タイトルは左寄せ、右上の「設定」は右端に寄せる（20261001 大野さんの指示） ----
   元の指定（.page_title の text-align: center、.page_header_btn の width: 92px）はそれぞれの場所に残している */
.page_title {
  text-align: left;
}
.page_header_btn {
  width: auto;
  margin-left: auto;
}
.page_header, .side_header, .top_header {
  padding-right: 6px;
}
.page_header .hd_btn, .side_header .hd_btn, .top_header .hd_btn {
  padding-left: 4px;
  padding-right: 4px;
}

/* メッセージの画面の見出し：事務所の人はボタンが3つ並ぶので、タイトルを折り返さない・ボタンを少し詰める（20261001） */
.side_title, .page_title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side_header .hd_btn {
  min-width: 44px;
  font-size: 10.5px;
}
@media (max-width: 400px) {
  .side_title {
    font-size: 19px;
  }
}

/* ---- 今いるメニュー：アイコンとその下（PC は横）の名前を赤にする（20261001 大野さんの指示）----
   Line Awesome には塗りつぶしの形がほとんど無いため、塗りつぶしの代わりに色で示す。スマホの下のメニュー・PC の左のメニューの両方 */
.appnav_item.is_active, .appnav_item.is_active .ms {
  color: var(--accent);
}

/* PC の左のメニュー：選んでいるメニューの背景の角の丸みを 6px に（20261001 大野さんの指示）。マウスを乗せたときの背景も同じ丸み */
@media (min-width: 900px) {
  .appnav_item, .appnav_item--pc {
    border-radius: 6px;
  }
}

/* ---- PC の左のメニュー：「メッセージ」の下のボタン（グループ作成／事務所／設定）（20261001 大野さんの指示） ----
   スマホでは出さない（見出しの右のボタンを使う）。PC では見出しの右のボタンを隠す */
.appnav_sub {
  display: none;
}
@media (min-width: 900px) {
  .appnav_sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 6px;
  }
  .appnav_subitem {
    display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; cursor: pointer;
/*     padding: 7px 12px 7px 46px; border-radius: 6px; font-family: inherit; font-size: 13px; color: #5d6b73; text-align: left; */
    padding: 7px 12px 7px 46px; border-radius: 6px; font-family: inherit; font-size: 13px; color: #333; text-align: left;   /* 20261001 メニューとそろえて #333 に */
  }
  .appnav_subitem .ms {
    font-size: 18px;
  }
  .appnav_subitem:hover {
    background: #f2f5f6;
  }
  .appnav_subitem.is_active {
    color: var(--accent);
    font-weight: 700;
  }
  .side_actions {
    display: none !important;
  }
  /* 細いとき：アイコンの下に小さく名前（ほかのメニューと同じ形） */
  .nav_narrow .appnav_subitem {
    flex-direction: column;
    gap: 1px;
    padding: 6px 2px;
    font-size: 9.5px;
    text-align: center;
  }
  .nav_narrow .appnav_subitem .ms {
    font-size: 18px;
  }
}

/* ---- メッセージの画面の見出し：ボタンが増えたので詰める（20261001） ----
   ・リンクのボタン（右上の「設定」）に下線を付けない
   ・スマホでは「グループ作成」を見出しから外す（「メッセージの設定」の中の「グループを作る」から作れる）
   ・ボタンの名前は2行まで折り返して、ボタンの幅を抑える */
a.hd_btn {
  text-decoration: none;
}
.side_header .hd_btn span {
  white-space: normal;
  max-width: 58px;
  line-height: 1.15;
  text-align: center;
}
@media (max-width: 899px) {
  .side_header #btn_new_group {
    display: none !important;
  }
}

/* ---- メッセージの設定：メッセージルームのグループの見出し（押して開け閉め）と、名前の前のアイコン（20261001） ---- */
.section_toggle--card {
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--btn);
}
.channel_item {
  gap: 10px;
  padding-left: 6px !important;
}
.channel_item .room_icon {
  margin-top: 0;
  align-self: center;
}

/* ---- PC の左のメニュー：名前の下の「ログアウト」。設定の画面の「アカウント」は PC では出さない（20261001 大野さんの指示） ---- */
.appnav_logout {
  display: none;
}
@media (min-width: 900px) {
  .settings_account {
    display: none;
  }
  .appnav_logout {
    display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 7px 10px; border-radius: 6px;
    color: #b3261e; text-decoration: none; font-size: 13px;
  }
  .appnav_logout .ms {
    font-size: 20px;
  }
  .appnav_logout:hover {
    background: #fdf1ef;
  }
  .nav_narrow .appnav_logout {
    flex-direction: column;
    gap: 1px;
    padding: 6px 2px;
    font-size: 10px;
    text-align: center;
  }
}

/* 名前の横の所属グループ名（メッセージ・既読の人の一覧。20261002） */
.name_group {
  font-size: .85em;
  font-weight: 400;
  color: #6b7780;
  margin-left: 2px;
}

/* 既読の人の一覧：所属グループごとの小見出し（20261002） */
.reader_group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 16px 0;
  padding: 6px 10px;
  background: #f4f6f7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--btn);
}
.reader_group .section_count {
  color: #8a949b;
  font-weight: 400;
}
.name_role {   /* 会話の名前の最後の職種（20261002） */
  font-size: .85em;
  color: #6b7780;
  margin-left: 6px;
}

/* スイッチの横の「オン」「オフ」（20261002） */
.switch_wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.switch_state {
  font-size: 13px;
  font-weight: 700;
  color: #8a949b;
  min-width: 2.5em;
  text-align: right;
}
.switch_state.is_on {
  color: var(--accent);
}

/* 「ドライバー同士のトーク」：説明文の下にスイッチ（横並びをやめた。20261002 大野さんの指示）。スイッチ → 「オン」「オフ」の順に左寄せ */
.switch_row {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.switch_row .switch_wrap .switch {
  order: -1;
}
.switch_row .switch_state {
  text-align: left;
  min-width: 0;
}

/* ---- メッセージの設定：メッセージルームの右端の「⋮」とメニュー（20261002 大野さんの指示） ----
   マウスを使う端末では、行にマウスを乗せたとき・選んでいるとき（メニューを開いている）だけ「⋮」を出す。タッチの端末ではいつも出す */
.channel_item {
  position: relative;
}
.row_more {
  flex: none; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 6px; background: none;
  color: #5d6b73; font-size: 20px; cursor: pointer; display: grid; place-items: center;
}
.row_more:hover, .channel_item.is_selected .row_more {
  background: #eef2f4;
}
@media (hover: hover) and (pointer: fine) {
  .row_more {
    opacity: 0;
  }
  .channel_item:hover .row_more, .channel_item.is_selected .row_more, .row_more:focus-visible {
    opacity: 1;
  }
}
.channel_item.is_selected {
  background: #f4f6f8;
}
.row_menu {
  position: absolute; right: 0; top: calc(100% - 4px); z-index: 30; min-width: 160px;
  background: #fff; border: 1px solid #e3e8eb; border-radius: 6px; box-shadow: 0 6px 18px rgba(30, 45, 52, .14); padding: 4px;
}
.row_menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: 4px; font-family: inherit; font-size: 14px; color: #333; text-align: left;
}
.row_menu button i {
  font-size: 18px;
}
.row_menu button:hover {
  background: #f2f5f6;
}
.row_menu button.is_danger {
  color: #b3261e;
}

/* ボタンの吹き出し（data-tip。マウスを乗せたときにすぐ出す。20261002） */
[data-tip] {
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  [data-tip]:hover::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #31444d; color: #fff; font-size: 12px; line-height: 1; white-space: nowrap; padding: 6px 8px; border-radius: 4px;
    pointer-events: none; z-index: 40;
  }
  .channel_item.is_selected [data-tip]::after {   /* メニューを開いているときは出さない */
    display: none;
  }
}

/* 削除したメッセージルーム（元に戻せる。20261002） */
.section_toggle--deleted {
  color: #8a949b;
  margin-top: 14px;
}
.channel_item--deleted {
  cursor: default;
}
.channel_item--deleted .member_name {
  color: #8a949b;
}
.channel_item--deleted .row_btn {
  margin-left: auto;
}
.radio_row input:disabled + * , .radio_row:has(input:disabled) {
  color: #9aa3a9;
}

/* トークの説明（ドライバーの「事務所」のトーク：誰に届くか。20261003） */
.chat_note {
  flex: none;
  margin: 0;
  padding: 6px 14px;
  background: #f4f6f7;
  border-bottom: 1px solid #e3e8eb;
  font-size: 12px;
  color: #5d6b73;
}
.room_note {
  font-size: 12px;
  color: #8a949b;
}

/* ---- メッセージルームの参加（20261003 参加・閲覧・投稿権限の整理） ---- */
.room_notjoined {
  flex: none;
  font-style: normal;
  font-size: 10.5px;
  color: #6b7780;
  border: 1px solid #cfd6da;
  border-radius: 999px;
  padding: 0 7px;
  line-height: 1.6;
}
.not_joined {
  max-width: 420px;
  margin: 40px auto;
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  border-radius: 6px;
}
.not_joined_scope {
  font-size: 13px;
  color: #6b7780;
}
.not_joined_title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}
.not_joined_text {
  margin-top: 14px;
  font-size: 14px;
}
.not_joined_hint {
  margin-top: 8px;
  font-size: 13px;
  color: #56626a;
}
.not_joined_btn {
  margin-top: 16px;
}
.head_btn--leave {
  color: #b3261e;
  border-color: #e0b4ae;
}

/* ---- 自分のメッセージの取り消し（20261005） ---- */
.bubble.can_recall {
  cursor: pointer;
}
.msg--mine .msg_row {
  position: relative;
}
.recall_menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 25;
  background: #fff; border: 1px solid #e3e8eb; border-radius: 6px; box-shadow: 0 6px 18px rgba(30, 45, 52, .14); padding: 4px;
}
.recall_btn {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #b3261e;
  white-space: nowrap;
}
.recall_btn:hover {
  background: #fdf1ef;
}
.msg--recalled {
  justify-content: center;
  margin: 10px 0;
}
.recalled_note {
  display: inline-block;
  font-size: 12px;
  color: #5d6b73;
  background: #d5dde2;
  border-radius: 8px;
  padding: 3px 12px;
}

/* ---- 画像（20261005） ---- */
.composer_img {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; border: 0; background: none; cursor: pointer;
  color: var(--btn); font-family: inherit; font-size: 10.5px; font-weight: 700; padding: 2px 6px;
}
.composer_img i {
  font-size: 24px;
}
.composer_previews {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 8px 12px 0;
  background: #fff;
  border-top: 1px solid #e3e6ea;
  overflow-x: auto;
}
.preview_item {
  position: relative;
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.preview_item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e3e8eb;
}
.preview_remove {
  border: 0;
  background: none;
  color: #b3261e;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}
.bubble--image {
  padding: 4px;
}
.bubble--image .bubble_images + * , .bubble--image > :not(.bubble_images) { }
.bubble_images {
  display: grid;
  gap: 3px;
  border-radius: 14px;
  overflow: hidden;
  max-width: 260px;
}
.bubble_images.n1 {
  grid-template-columns: 1fr;
}
.bubble_images.n2, .bubble_images.n3, .bubble_images.n4 {
  grid-template-columns: 1fr 1fr;
}
.bubble_img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  cursor: zoom-in;
  background: #dfe5e8;
}
.bubble_images.n2 .bubble_img, .bubble_images.n3 .bubble_img, .bubble_images.n4 .bubble_img {
  aspect-ratio: 1 / 1;
}
.bubble_images.n3 .bubble_img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}
.bubble--image {
  white-space: pre-wrap;
}
.bubble--image > .bubble_images {
  margin-bottom: 0;
}
.image_viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 20, 23, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 12px;
}
.image_viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image_viewer_close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 12px;
}
.bubble_caption {   /* 画像の下のひとこと（20261005） */
  padding: 6px 8px 4px;
}

/* 送った写真には吹き出しの枠を付けない（写真だけを角丸で出す）。ひとことは写真の下に普通の吹き出しで（20261005 大野さんの指示） */
.bubble.bubble--image {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.msg--mine .bubble.bubble--image {
  background: transparent;
}
.bubble--image .bubble_images {
  border-radius: 14px;
}
.bubble--image .bubble_caption {
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 18px;
  background: #fff;
  color: #1f2a30;
  box-shadow: 0 1px 2px rgba(30,45,52,.10);
}
.msg--mine .bubble--image .bubble_caption {
  background: var(--btn);
  color: #fff;
  box-shadow: none;
}
.composer textarea {   /* 入力欄がつぶれないように（20261005） */
  min-height: 40px;
}
.composer_img {
  align-self: flex-end;
  padding-bottom: 4px;
}
/* 画像を読み込むまでの場所取り（大きさ0で表示されないのを防ぐ。20261005） */
.bubble_img:not(.is_loaded) {
  min-height: 140px;
  min-width: 180px;
}
.bubble_img.is_failed {
  min-height: 60px;
  font-size: 12px;
  color: #6b7780;
}

/* ---- スタンプ（20261006 大野さんの指示） ----
   一覧は入力欄のすぐ上の小さな枠（4列×3段）。タブ・検索欄は付けない（LINE の登録意匠 1758098 などを避ける）
   一覧の絵には枠を付けず、選んだものだけ赤い枠。送ったスタンプは吹き出しを付けず絵だけ */
.composer_stamp.is_open {
  color: var(--accent);
}
.stamp_panel {
  flex: none;
  background: #fff;
  border-top: 1px solid #e3e6ea;
  padding: 8px 10px 6px;
}
.stamp_panel_hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--btn);
}
/* .stamp_close {
  display: inline-flex; align-items: center; gap: 2px; border: 1px solid #cfd6da; border-radius: 999px; background: #fff;
  padding: 2px 12px; font-family: inherit; font-size: 13px; color: var(--btn); cursor: pointer;
} */
/* 20261006 「閉じる」を赤文字・赤枠にした（大野さんの指示） */
/* .stamp_close {
  display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--accent); border-radius: 999px; background: #fff;
  padding: 2px 12px; font-family: inherit; font-size: 13px; color: var(--accent); cursor: pointer;
} */
/* 20261006 太字にし、高さを30pxにした（実機で低かったため。大野さんの指示） */
.stamp_close {
  display: inline-flex; align-items: center; gap: 2px; height: 30px; border: 1px solid var(--accent); border-radius: 999px; background: #fff;
  padding: 0 12px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer;
}
.stamp_grid {   /* minmax(0) … 絵の元の幅（370px）で横にはみ出さないように */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
}
.stamp_item {
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  padding: 2px;
  cursor: pointer;
  line-height: 0;
}
.stamp_item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 370 / 320;
}
.stamp_item.is_selected {
  border-color: var(--accent);
  background: var(--accent-soft, #fdf0ed);
}
.stamp_note {
  margin: 6px 2px 0;
  font-size: 12.5px;
  color: #5d6b73;
  text-align: center;
}
.stamp_note.is_selected {
  color: var(--accent);
  font-weight: 700;
}
.bubble.bubble--stamp {
  background: transparent;
  padding: 0;
  box-shadow: none;
  line-height: 0;
}
.msg--mine .bubble.bubble--stamp {
  background: transparent;
}
.stamp_img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 370 / 320;
}
@media (hover: hover) and (pointer: fine) {
  .stamp_item:not(.is_selected):hover {
    background: #f2f4f5;
  }
  /* .stamp_close:hover { background: #eef2f4; } */
  .stamp_close:hover {   /* 赤の枠に合わせた（20261006） */
    background: var(--accent-soft);
  }
}

/* ---- 会話の画面のメニュー（スマホの右上の「メニュー」。20261006 大野さんの指示） ----
   スマホでは右上の 事務所のトーク／メンバー／メンバーを追加／編集 を隠し、「メニュー」1つにまとめる。PC は今のまま
   LINE の見た目には寄せない（丸いアイコンを横に並べる形は使わず、アイコン＋文字の行） */
.head_menu_btn {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; border: 0; background: none; cursor: pointer;
  color: var(--btn); font-family: inherit; font-size: 10.5px; font-weight: 700; line-height: 1.1; padding: 2px 6px;
}
.head_menu_btn .ms {
  font-size: 26px;
}
.head_menu_btn[hidden] {
  display: none;
}
@media (max-width: 899px) {
  #chat_office, #chat_members, #chat_room_members, #chat_invite, #chat_edit {
    display: none !important;
  }
}
@media (min-width: 900px) {
  .head_menu_btn {
    display: none !important;
  }
}
.room_menu_header h2 {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room_menu_body {
  padding: 4px 0 24px;
}
.menu_row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid #eef1f3;
  background: #fff; font-family: inherit; font-size: 16px; color: #222; text-align: left; cursor: pointer;
}
.menu_row > .ms {
  color: #a3adb3;
  font-size: 18px;
}
.menu_icon {
  flex: none;
  width: 26px;
  text-align: center;
  color: var(--btn);
}
.menu_icon .ms {
  font-size: 24px;
}
.menu_label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.menu_note {
  font-size: 12px;
  color: #6b7780;
  margin-top: 2px;
}
.menu_note:empty {
  display: none;
}
.menu_row--switch {
  cursor: pointer;
}
.menu_row--switch.is_locked {
  cursor: default;
}
.menu_row--switch .switch_wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.menu_row--switch .switch:disabled {
  opacity: .5;
  cursor: default;
}
.menu_sec {
  font-size: 12px;
  font-weight: 700;
  color: #6b7780;
  padding: 16px 16px 6px;
  margin: 0;
}
.menu_empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7780;
}
.photos_day {
  font-size: 12px;
  font-weight: 700;
  color: #6b7780;
  padding: 12px 8px 4px;
  margin: 0;
}
.photos_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 0 3px;
}
.photos_item {
  border: 0;
  padding: 0;
  background: #dfe5e8;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.photos_item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
  .menu_row:not(.is_locked):hover {
    background: #f4f6f7;
  }
}

/* ホームの右上の「設定」はスマホだけ。PC は左のメニューの一番下の「設定」（20261006 大野さんの指示） */
@media (min-width: 900px) {
  .hd_btn--phone {
    display: none !important;
  }
}

/* ---- 連絡先のその人の画面（20261006 大野さんの指示。ボタンは見本の案1：小さめの丸いボタン、「トーク」だけ塗る） ---- */
.contact_header h2 {   /* 「×」と「連絡先詳細」（20261006） */
  flex: 1;
  text-align: left;
  font-size: 18px;
}
.contact_close {
  font-size: 26px;
  color: #222;
}
.contact_body {
  padding: 18px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact_top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar.contact_avatar {
  width: 72px;
  height: 72px;
  font-size: 26px;
  flex: none;
}
.avatar.contact_avatar i {
  font-size: 36px;
}
.contact_name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.contact_name b {
  font-size: 20px;
}
.contact_name small {
  font-size: 13px;
  color: #6b7780;
  margin-top: 4px;
}
.contact_info {
  border-top: 1px solid #eef1f3;
}
.contact_info div {
  display: flex;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid #eef1f3;
  font-size: 15px;
}
.contact_info span {
  width: 7em;
  flex: none;
  color: #6b7780;
}
.contact_info span {   /* 「〇〇の電話番号」が長くても折り返して入るように（20261006） */
  width: auto;
  min-width: 7em;
  max-width: 50%;
}
.contact_info b {
  font-weight: 500;
  word-break: break-all;
}
.contact_acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contact_btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #cfd6da; background: #fff; color: var(--btn); font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.contact_btn .ms {
  font-size: 18px;
}
.contact_btn--talk {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .contact_btn:hover {
    background: #eef2f4;
  }
  .contact_btn--talk:hover {
    background: #3d545f;
  }
}

/* 連絡先（ドライバー）の「〇〇とトーク」の行：押して開くのをやめ、右に「トーク」「電話」のボタン（20261007 大野さんの指示） */
.office_row {
  cursor: default;
}
.office_acts {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex: none;
}
.office_act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 52px; height: 48px; padding: 0 6px;
  border: 1px solid #cfd6da; border-radius: 8px; background: #fff; color: var(--btn); font-family: inherit; font-size: 11px; font-weight: 700;
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.office_act .ms {
  font-size: 22px;
}
@media (hover: hover) and (pointer: fine) {
  .office_act:hover {
    background: #eef2f4;
  }
}

/* 連絡先詳細の「お気に入り」（20261007）。登録すると星を塗り、文字と枠をアクセントの色に */
.contact_btn--fav.is_on {
  color: var(--accent);
  border-color: var(--accent-line, #f2b8aa);
  background: var(--accent-soft, #fdf0ed);
}

/* ---- 検索（20261007 大野さんの指示） ----
   検索窓は見出しのすぐ下（下には置かない。LINE の登録意匠 1758098 などを避ける） */
.head_icon_btn {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; border: 0; background: none; cursor: pointer;
  color: var(--btn); font-family: inherit; font-size: 10.5px; font-weight: 700; line-height: 1.1; padding: 2px 6px;
}
.head_icon_btn .ms {
  font-size: 24px;
}
.head_icon_btn {   /* 「編集」「検索」の幅をそろえる（20261007） */
  min-width: 44px;
}
.head_icon_btn[hidden] {
  display: none;
}
.chat_search {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
  padding: 6px 8px 6px 0;
}
.chat_search .search_box {
  flex: 1;
  margin: 0 0 0 8px;
}
.chat_search_result {
  flex: none;
  max-height: 45%;
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
}
.search_msg_list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search_msg {
  padding: 10px 16px;
  border-bottom: 1px solid #eef1f3;
  cursor: pointer;
}
.search_msg_top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #6b7780;
}
.search_msg_top b {
  color: #222;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.search_msg_top time {
  margin-left: auto;
  flex: none;
}
.search_msg_name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search_msg_body {
  font-size: 14px;
  color: #333;
  margin-top: 2px;
  word-break: break-all;
}
.search_msg_body mark, .search_member mark, .search_msg_name mark {
  background: #fff1b8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.msg.is_found .bubble {
  box-shadow: 0 0 0 3px #f5c542;
}
.msg.is_found .bubble--image, .msg.is_found .bubble--stamp {
  box-shadow: none;
  outline: 3px solid #f5c542;
  outline-offset: 2px;
  border-radius: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .search_msg:hover {
    background: #f4f6f8;
  }
}

/* ---- 検索の結果のタブ（すべて／メッセージ／メンバー）（20261007 大野さんの指示） ----
   検索窓の下にタブ。LINE の見た目には寄せない（印は黄色のまま、下の「∧∨」やカレンダーは付けない） */
.search_tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid #e3e6ea;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.search_tab {
  border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: #6b7780;
  padding: 10px 12px 9px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.search_tab.is_active {
  color: var(--btn);
  border-bottom-color: var(--btn);
}
.search_sec {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  padding: 14px 16px 6px;
  margin: 0;
}
.search_more { display: block; width: calc(100% - 32px); margin: 4px 16px 8px; padding: 10px; border: 1px solid #cfd6da; border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--btn); cursor: pointer; }
.search_msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.search_msg .avatar {
  width: 40px;
  height: 40px;
  flex: none;
}
.search_msg_main {
  flex: 1;
  min-width: 0;
}
.search_msg_top .search_msg_name {
  color: #222;
  font-size: 14px;
  font-weight: 700;
}
.search_msg_room {
  color: #6b7780;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.search_sender_head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #e3e6ea;
  position: sticky;
  top: 0;
  background: #fff;
}
.search_sender_head b {
  font-size: 16px;
}
/* 会話の画面で探している間は、会話の代わりに結果を全体に出す */
.chat.is_searching .chat_body, .chat.is_searching .composer, .chat.is_searching .composer_locked,
.chat.is_searching .stamp_panel, .chat.is_searching .composer_previews, .chat.is_searching .chat_note {
  display: none !important;
}
.chat.is_searching .chat_search_result {
  flex: 1;
  max-height: none;
  border-bottom: 0;
}
@media (hover: hover) and (pointer: fine) {
  .search_tab:not(.is_active):hover {
    color: var(--btn);
  }
  .search_more:hover {
    background: #eef2f4;
  }
}

/* PC だけ：メッセージの一覧の上の検索窓（20261007 大野さんの指示。スマホは見出しの「検索」ボタン） */
.talk_search_pc {
  display: none;
}
@media (min-width: 900px) {
  .talk_search_pc {
    display: flex;
    margin: 10px 16px 8px;
  }
}

/* ---- トーク一覧の「⋮」（PC だけ。マウスを乗せたとき・メニューを開いているときに出す）（20261007 大野さんの指示） ----
   スマホ（タッチの端末）では出さない。会話の画面の「メニュー」から同じことができる */
.room--menu {
  position: relative;
}
.room_more {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .room_more {
    display: grid;
    opacity: 0;
  }
  .room--menu:hover .room_more, .room--menu.is_selected .room_more, .room_more:focus-visible {
    opacity: 1;
  }
  .room--menu.is_selected {
    background: #f4f6f8;
  }
}
.room_row_menu {
  right: 8px;
}
.room_muted {
  flex: none;
  font-size: 14px;
  color: #8a949b;
  margin-left: 4px;
}

/* ---- 連絡先のタブ（★お気に入り／事務所／ドライバー／内勤者／専属便）（20261008 大野さんの指示） ----
   検索欄の下に置く（下には置かない）。5つでもスマホの幅に収まるよう文字は少し小さめ */
.member_tabs {
  display: flex;
  justify-content: space-between;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid #e3e6ea;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.member_tabs[hidden] {
  display: none;
}
.member_tab {
  display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: #6b7780; padding: 9px 6px 8px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.member_tab.is_active {
  color: var(--btn);
  border-bottom-color: var(--btn);
}
.member_tab .la-star {
  font-size: 15px;
  color: #e0a100;
}
@media (hover: hover) and (pointer: fine) {
  .member_tab:not(.is_active):hover {
    color: var(--btn);
  }
}

/* PC だけ：会話の画面の見出しの右端に「連絡先」。このトークのボタンとは縦の線で区切る（20261008 大野さんの指示） */
.head_pc {
  display: none !important;
}
@media (min-width: 900px) {
  .head_icon_btn.head_pc {
    display: flex !important;
  }
  .head_sep.head_pc {
    display: block !important;
    width: 1px;
    height: 30px;
    background: #dfe4e7;
    margin: 0 4px;
    flex: none;
  }
}

/* ---- PC：連絡先・メッセージの設定・検索を、メッセージルームの上に右から重ねて出す（20261008 大野さんの指示。見本の案B） ----
   幅は 360px（メッセージの設定は 440px）。外の暗い所か「× 閉じる」で閉じる。スマホでは使わない */
.pc_panel, .pc_panel_dim {
  display: none;
}
@media (min-width: 900px) {
  .pane_chat {
    position: relative;
  }
  .pc_panel_dim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 39;
    background: rgba(20, 30, 35, .12);
  }
  .pc_panel {
    display: flex; flex-direction: column; position: absolute; top: 0; right: 0; bottom: 0; z-index: 40;
    /* width: 360px; max-width: 100%; background: #fff; box-shadow: -10px 0 24px rgba(20, 30, 35, .18); */
    width: 440px; max-width: 100%; background: #fff; box-shadow: -10px 0 24px rgba(20, 30, 35, .18);   /* 20261008 連絡先・検索も 440px に（すべて同じ幅。大野さんの指示） */
  }
  .pc_panel--wide {
    width: 440px;
  }
  .pc_panel[hidden], .pc_panel_dim[hidden] {
    display: none;
  }
  .pc_panel_hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e3e6ea;
    min-height: 56px;
    flex: none;
  }
  .pc_panel_hd b {
    flex: 1;
    font-size: 17px;
  }
  .pc_panel_body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
}

/* PC だけ：見出し「メッセージ一覧」の横の「検索」ボタン（20261008 大野さんの指示）。スマホは見出しの右のボタン（side_actions）の「検索」 */
.side_search_pc {
  display: none;
}
@media (min-width: 900px) {
  .side_search_pc {
    display: flex;
    margin-left: auto;
  }
}

/* ---- PC の見直し（20261008 大野さんの指示。見本「PC見出しの直し方」） ---- */
/* 1. PC では「← 戻る」を出さない（左のメニューで移動でき、会話は一覧を押せば変わるため）。スマホは今までどおり */
@media (min-width: 900px) {
  .side_header .back_btn, .chat_back {
    display: none !important;
  }
}
/* 2. 会話の見出しのボタンは「アイコンの下に文字」の形（.head_icon_btn）にそろえた（message.php） */

/* 4. 小さい文字を12px以上に（年配の方が読みやすいように）。元は 11px（20261002 の指示）・10px */
/* .member_sub { font-size: 11px; } */
.member_sub {
  font-size: 12px;
}
/* .msg_name { font-size: 11px; } */
.msg_name {
  font-size: 12px;
}
/* .msg_meta { font-size: 10px; } */
.msg_meta {
  font-size: 11.5px;
}
/* .room_time { font-size: 11px; } */
.room_time {
  font-size: 12px;
}
/* .day_sep span { font-size: 11px; } */
.day_sep span {
  font-size: 12px;
}
.head_icon_btn, .head_menu_btn, .hd_btn, .side_header .hd_btn {   /* アイコンの下の文字（元は 10.5〜11px） */
  font-size: 11.5px;
}
@media (min-width: 900px) {
  .appnav_me_tx small {
    font-size: 12px;
  }
}

/* 5. 一覧の、今開いているトークの区切りの見出し：濃い紺の帯（20260929 の指示）をやめ、薄い色＋左の色の線に控えめにした */
/* .list_section.is_current .list_section_toggle { color: #fff; font-weight: 800; background: #31444d; border-top-color: #31444d; } */
.list_section.is_current .list_section_toggle,
.list_section.is_current .list_section_toggle.is_closed {
  color: var(--btn);
  font-weight: 800;
  background: #eef2f4;
  border-top-color: #e3e7ea;
  box-shadow: inset 4px 0 0 var(--accent);
}
.list_section.is_current .list_section_toggle i,
.list_section.is_current .list_section_toggle.is_closed i {
  color: #7d8a91;
}
.list_section.is_current .list_section_toggle:active,
.list_section.is_current .list_section_toggle.is_closed:active {
  background: #e4e9ec;
}
@media (hover: hover) and (pointer: fine) {
  .list_section.is_current .list_section_toggle:hover,
  .list_section.is_current .list_section_toggle.is_closed:hover {
    background: #e4e9ec;
  }
}

/* ============================================================
   配車予定（20261009 大野さんの指示。画面の案「ドライバーのトップ画面」「配車予定の見本」）
   確定した配車だけを出す。言葉はドライバー用アプリ（弊社）に合わせた
   ============================================================ */
/* トップ画面：本日の納品先一覧のカード（スマホでは画面の端から端まで。開いても閉じても同じ幅） */
.hs_card {
  gap: 10px;
}
@media (max-width: 899px) {
  .top_main > .hs_card {
    width: auto;
    max-width: none;
    margin: -16px -16px 0;
    border-radius: 0;
    padding: 14px 16px 16px;
  }
  .top_main > .hs_card + .hs_tomorrow {
    margin-top: -18px;
  }
  .top_main > .hs_tomorrow:first-child {
    margin-top: -16px;
  }
  .top_main > .hs_tomorrow {
    width: auto;
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
  }
}
.hs_title {
  font-size: 15px;
  font-weight: 700;
}
.hs_title_date {
  font-weight: 700;
  opacity: .95;
}
.hs_summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs_summary[hidden], .hs_open[hidden] {
  display: none;
}
.hs_route {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.hs_route .ms {
  font-size: 16px;
  color: #ffb3a3;
}
.hs_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 12.5px;
  opacity: .92;
}
.hs_meta_prev {
  color: #ffb3a3;
  font-weight: 700;
}
.hs_bigdate {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.hs_bigdate b {
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hs_bigdate span {
  font-size: 13px;
  opacity: .9;
}
.hs_open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs_btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hs_toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid rgba(255,255,255,.7); background: transparent;
  color: #fff; border-radius: 8px; padding: 10px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.hs_toggle .ms {
  font-size: 16px;
}
.hs_btns .today_btn {
  margin-top: 0;
}
/* 行き先の縦の線のリスト（白い角丸の枠） */
.hs_stops {
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.hs_stop {
  display: grid;
  grid-template-columns: 58px 14px 1fr;
  gap: 7px;
  align-items: start;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}
a.hs_stop:active {
  background: #f4f6f8;
}
.hs_tm {
  font-weight: 700;
  color: var(--btn);
  line-height: 1.25;
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hs_tm small {
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.hs_prev {
  color: var(--accent);
}
.hs_note {
  color: var(--app-sub, #6b7780);
}
.hs_ln {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
}
.hs_ln::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.hs_stop--load .hs_ln::before {
  border-color: #2f6f86;
}
.hs_ln::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -14px;
  width: 2px;
  background: #e3e8eb;
}
.hs_stops > .hs_stop:nth-last-child(2) .hs_ln::after {
  display: none;
}
.hs_pl {
  min-width: 0;
  line-height: 1.4;
}
.hs_pl b {
  font-size: 14.5px;
  font-weight: 700;
}
.hs_kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  padding: 0 5px;
  margin-right: 5px;
  vertical-align: 1px;
}
.hs_kind--load {
  background: #2f6f86;
}
.hs_kind--drop {
  background: var(--accent);
}
.hs_sub {
  display: block;
  color: #6b7780;
  font-size: 12px;
}
.hs_rmk {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #4a3a2e;
  background: #fff6ec;
  border-left: 3px solid #e0a100;
  border-radius: 3px;
  padding: 2px 7px;
}
.hs_foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e3e8eb;
  margin-top: 6px;
  padding-top: 8px;
  font-size: 12px;
  color: #6b7780;
}
/* 翌日の配車予定：飾りを付けず、下線付きの文字のリンク1行（ドライバー用アプリと同じ形） */
.hs_tomorrow {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid #e3e8eb;
  padding: 12px 16px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.hs_tomorrow span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hs_tomorrow .las {
  font-size: 22px;
}
.hs_tomorrow--page {
  margin-top: 12px;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
}
/* 配車予定の画面：紺の枠（戻る・見出し・日付） */
.hs_hero {
  background: var(--btn);
  color: #fff;
  padding: calc(8px + env(safe-area-inset-top)) 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}
.hs_hero_row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hs_back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.hs_back .ms {
  font-size: 16px;
}
.hs_hero_title {
  font-size: 18px;
  font-weight: 700;
}
.hs_daynav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hs_daynav .hs_bigdate {
  flex: 1;
  justify-content: center;
}
.hs_day_btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  padding: 5px 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.hs_day_btn .ms {
  font-size: 14px;
}
/* .hs_main { padding: 0 14px 24px; background: linear-gradient(var(--btn) 0, var(--btn) 40px, transparent 40px); } */
.hs_main {   /* 20261009 紺の背景は日付の段まで。出勤との間を少し開ける（大野さんの指示） */
  padding: 12px 14px 24px;
}
.hs_empty {
  background: #fff;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  color: #4a5960;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hs_empty .ms {
  font-size: 34px;
  color: #9aa5ab;
}
.hs_empty p {
  font-size: 13px;
  margin: 4px 0 0;
}
.hs_empty a {
  color: var(--btn);
  font-weight: 700;
}
.hs_empty--plain {
  margin: 16px;
  border: 1px dashed #cfd6da;
}
/* 納品先一覧（全件の詳しい内容） */
.hs_detail_main {
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* .hs_job { background: #fff; border: 1px solid #e3e8eb; border-radius: 8px; ...（20261009 枠線を濃くした。下） */
.hs_job {
  background: #fff;
  border: 1px solid #aab5bb;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 12px;
}
.hs_job:target {
  box-shadow: 0 0 0 3px #f5c542;
}
.hs_job_no {
  font-size: 12.5px;
  font-weight: 700;
  color: #6b7780;
  margin: 0;
}
/* .hs_leg { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px dashed #e3e8eb; } */
.hs_leg {   /* 20261009 点線を濃くした（大野さんの指示） */
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed #8d989e;
}
.hs_job_no + .hs_leg {
  border-top: 0;
  padding-top: 0;
}
.hs_leg_hd {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hs_leg_hd .hs_prev {
  font-size: 12px;
  margin-left: 4px;
}
.hs_dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.hs_dl div {
  display: flex;
  gap: 8px;
}
.hs_dl dt {
  width: 4.5em;
  flex: none;
  color: #6b7780;
}
.hs_dl dd {
  margin: 0;
  min-width: 0;
  word-break: break-all;
}
/* .hs_dl--cargo { border-top: 1px dashed #e3e8eb; padding-top: 8px; } */
.hs_dl--cargo {   /* 20261009 点線を濃くした（大野さんの指示） */
  border-top: 1px dashed #8d989e;
  padding-top: 8px;
}
.hs_map {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  border: 1px solid #cfd6da;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--btn);
  text-decoration: none;
  white-space: nowrap;
}
.hs_map .ms {
  font-size: 14px;
}
/* .hs_rmk_dd { background: #fff6ec; border-left: 3px solid #e0a100; padding: 2px 7px; border-radius: 3px; } */
.hs_rmk_dd {   /* 20261009 左の線を外した */
  background: #fff6ec;
  padding: 2px 7px;
  border-radius: 3px;
}
@media (hover: hover) and (pointer: fine) {
  a.hs_stop:hover {
    background: #f4f6f8;
  }
  .hs_toggle:hover {
    background: rgba(255,255,255,.1);
  }
  .hs_day_btn:hover, .hs_back:hover {
    background: rgba(255,255,255,.15);
  }
}
/* 1件目の積地→卸地は文の流れで折り返す（矢印だけが1行になるのを防ぐ。20261009） */
.hs_route {
  display: block;
}
.hs_route .ms {
  vertical-align: -2px;
  margin: 0 4px;
}
.hs_detail_date {
  margin: 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--btn);
}
/* 20261009 出勤時間（リストの上）・コネクトの予定の行・グループ全体の備考 */
.hs_shukkin {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0 0 8px;
}
.hs_shukkin_lb {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 0 6px;
}
.hs_shukkin b {
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hs_shukkin_rmk {
  font-size: 13px;
  color: #4a5960;
}
.hs_detail_main > .hs_shukkin {
  border: 1px solid #e3e8eb;
  margin: 0;
}
.hs_stop--yotei .hs_ln::before {
  border-color: #9aa5ab;
}
.hs_kind--yotei {
  background: #6b7780;
}
.hs_note_all {
  background: #fff;
  color: #c0321a;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0 0 8px;
}
/* 20261009 トップの2つのボタンに中身の説明を添える（簡易表示と詳しい一覧の違いが分かるように） */
.hs_btn_txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  text-align: left;
}
.hs_btn_sub {
  font-size: 12px;
  font-weight: 400;
  opacity: .85;
}
.hs_btn_sub[hidden] {
  display: none;
}
.hs_detail_btn .hs_btn_sub {
  color: #5b6a71;
  opacity: 1;
}
/* 20261009 宵積（積む日に出る宵積みの案件） */
/* .hs_yoi { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 5px; line-height: 1.5; vertical-align: 1px; }
.hs_job_no .hs_yoi { font-size: 12px; } */
/* 20261009 前日・翌日と同じ場所（簡易表示は時刻の下、詳細は時刻の後ろ）。赤枠は残す */
.hs_yoi {
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.4;
}
/* .hs_tm .hs_yoi { display: inline-block; margin-top: 2px; } */
.hs_tm .hs_yoi {   /* 時刻の下の行に、文字の幅だけの枠で（inline-block だと時刻の横に並んだ） */
  display: table;
  margin-top: 2px;
}
.hs_leg_hd .hs_yoi {
  font-size: 12px;
  margin-left: 4px;
}
/* 20261009 配車予定の画面の中身を、納品先一覧と同じ案件のカードにした */
.hs_detail_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hs_detail_count {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.hs_detail_list > .hs_shukkin {
  border: 1px solid #e3e8eb;
  margin: 0;
}
/* .hs_hero_count { margin-left: auto; font-size: 14px; font-weight: 700; }   /* 20261009 配車予定の見出しの右に全N件 * / */
.hs_hero_count {   /* 20261009 見出し「配車予定」のすぐ横に全N件（大野さんの指示） */
  font-size: 14px;
  font-weight: 700;
}
/* 20261009 場所の名前から納品先カルテを開くリンク（下線＋外へ開く印） */
/* .hs_place_link { color: var(--btn); text-decoration: underline; text-underline-offset: 3px; }
.hs_place_link .ms { font-size: 15px; margin-left: 3px; vertical-align: -1px; color: var(--accent); } */
/* 印が名前の下の行に回り、下線が右端まで伸びていたので、名前と印を1つの塊にして下線は名前だけに */
.hs_place_link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--btn);
  text-decoration: none;
}
.hs_place_link b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hs_place_link .ms {
  font-size: 16px;
  color: var(--accent);
}
/* 20261009 送った時に乗っていた車両の車番（吹き出しの中の上） */
.bubble_vehicle {
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #4a5960;
  border-bottom: 1px solid #dfe4e7;
  padding-bottom: 3px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.bubble_vehicle .las {
  font-size: 15px;
}
.msg--mine .bubble_vehicle {
  color: rgba(255,255,255,.88);
  border-bottom-color: rgba(255,255,255,.3);
}
.bubble--image .bubble_vehicle {
  margin: 2px 4px 4px;
}
/* .bubble--stamp .bubble_vehicle { color: #4a5960; border-bottom-color: #dfe4e7; } */
.bubble--stamp .bubble_vehicle {   /* スタンプは吹き出しの余白が無く、前のメッセージとくっつくため上を開ける */
  color: #4a5960;
  border-bottom-color: #dfe4e7;
  margin-top: 8px;
}
/* 20261009 乗っている車両（送信欄の上。配車の車両が2台以上で運行の記録も無い日だけ） */
.composer_vehicle {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #e3e6ea;
}
.cv_lb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #4a5960;
}
.cv_lb .las {
  font-size: 17px;
}
.cv_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cv_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid #cfd6da;
  background: #fff;
  color: var(--btn);
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cv_btn .las {
  font-size: 16px;
}
.cv_btn.is_on {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
.cv_note {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: #c0321a;
}
.cv_note[hidden] {
  display: none;
}
/* ---- 20261009 メッセージの操作メニュー（吹き出しを押す・長押しで下から出る。返信・コピー・既読の人・送信取消） ---- */
.bubble {   /* 長押しで文字の選択ではなくメニューを出す（コピーはメニューから） */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.msg.is_selected .bubble {
  outline: 3px solid #f5c542;
  outline-offset: 2px;
}
.msg.is_selected .bubble--stamp {
  border-radius: 14px;
}
.msg_sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.msg_sheet_dim {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 25, .45);
}
.msg_sheet_panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 18px 18px 0 0;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}
.msg_sheet_hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.msg_sheet_title {
  min-width: 0;
  font-size: 13px;
  color: #5b6a71;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg_sheet_close {
  flex: none; display: inline-flex; align-items: center; gap: 3px; border: 1.5px solid #cfd6da; border-radius: 999px; background: #fff;
  color: var(--btn); padding: 5px 13px 5px 10px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.msg_sheet_close .las {
  font-size: 16px;
}
.msg_sheet_grp {
  background: #f4f6f7;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.msg_sheet_grp[hidden] {
  display: none;
}
.msg_sheet_item {
  display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 14px 16px; text-align: left;
  font-family: inherit; font-size: 16px; font-weight: 500; color: #1f2a30; cursor: pointer;
}
.msg_sheet_item + .msg_sheet_item {
  border-top: 1px solid #e3e8eb;
}
.msg_sheet_item .las {
  font-size: 22px;
  color: var(--btn);
}
.msg_sheet_item small {
  margin-left: auto;
  font-size: 12px;
  color: #8a8f98;
  font-weight: 400;
}
.msg_sheet_item.is_danger {
  color: #c0321a;
}
.msg_sheet_item.is_danger .las {
  color: #c0321a;
}
.msg_sheet_item:active {
  background: #e8ecee;
}
@media (hover: hover) and (pointer: fine) {
  .msg_sheet_item:hover {
    background: #e8ecee;
  }
}
/* 吹き出しの中の返信先（名前と書き出し） */
.bubble_reply {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; border-left: 3px solid #9aa5ab; background: rgba(0, 0, 0, .05);
  border-radius: 4px; padding: 3px 8px; margin-bottom: 5px; font-size: 12px; line-height: 1.4; white-space: normal; cursor: pointer;
}
.bubble_reply_name {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: #4a5960;
}
.bubble_reply_text {
  color: #5b6a71;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bubble_reply.is_recalled .bubble_reply_text {
  font-style: italic;
}
.msg--mine .bubble_reply {
  background: rgba(255, 255, 255, .14);
  border-left-color: rgba(255, 255, 255, .6);
}
.msg--mine .bubble_reply_name, .msg--mine .bubble_reply_text {
  color: rgba(255, 255, 255, .9);
}
.bubble--stamp .bubble_reply {
  line-height: 1.4;
  margin: 6px 0 4px;
}
.bubble--image .bubble_reply {
  margin: 2px 4px 4px;
}
/* 送信欄の上の返信先 */
.composer_reply {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #e3e6ea;
}
.composer_reply > .las {
  font-size: 20px;
  color: var(--btn);
}
.composer_reply_main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.composer_reply_lb {
  font-size: 12.5px;
  color: #4a5960;
}
.composer_reply_text {
  font-size: 13px;
  color: #5b6a71;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer_reply_cancel {
  flex: none; display: inline-flex; align-items: center; gap: 3px; border: 1.5px solid #cfd6da; border-radius: 999px; background: #fff;
  color: var(--btn); padding: 4px 11px 4px 8px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
/* ==== 20261014 申請（ドライバー）・承認（事務所）。見本「申請と承認の見本」。1画面で見る所は1つ、文字は最小限 ==== */
.wf_main {
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f4f6f8;
}
.wf_primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 15px 8px;
  background: var(--btn);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.wf_primary .ms {
  font-size: 24px;
}
.wf_sec {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #5b6a71;
}
.wf_empty {
  margin: 0;
  padding: 18px 0;
  text-align: center;
  color: #6b7780;
  font-size: 14px;
}
/* 一覧：カードにせず、白い帯を線で区切った行 */
.wf_rows {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e3e8eb;
  border-bottom: 1px solid #e3e8eb;
  margin: 0 -14px;
}
.wf_row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #1f2a30;
  text-decoration: none;
}
.wf_row + .wf_row {
  border-top: 1px solid #e3e8eb;
}
.wf_row:active {
  background: #f1f4f6;
}
.wf_row_main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.wf_row_main b {
  font-size: 16px;
}
.wf_row_main span {
  font-size: 14px;
  color: #4a5960;
}
.wf_row > .ms {
  font-size: 18px;
  color: #9aa5ab;
}
.wf_rows--top {
  margin: 0;
  border: 0;
}
/* 状態のバッジ（色だけに頼らず文字とアイコン） */
.wf_st {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  border-radius: 999px;
  padding: 2px 10px 2px 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
}
.wf_st .ms, .wf_st .las {
  font-size: 14px;
  width: auto;
  height: auto;
}
.wf_st--wait {
  color: #1f6fb2;
  background: #e3eef8;
}
.wf_st--ok {
  color: #1d7a46;
  background: #e2f2e8;
}
.wf_st--ng {
  color: #c0321a;
  background: #fbe7e3;
}
.wf_st--off {
  color: #6b7780;
  background: #e8ecee;
}
/* 有給を申請する */
.wf_remain {
  margin: 0;
  align-self: flex-end;
  font-size: 14px;
  color: #5b6a71;
}
.wf_remain b {
  font-size: 19px;
  color: var(--btn);
  font-variant-numeric: tabular-nums;
}
.wf_cal {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  padding: 10px;
}
.wf_cal_hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  font-size: 16px;
}
.wf_mbtn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid #cfd6da;
  border-radius: 8px;
  background: #fff;
  color: var(--btn);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.wf_mbtn .ms {
  font-size: 16px;
}
.wf_mbtn:disabled {
  color: #c3cbd0;
  border-color: #e3e8eb;
  cursor: default;
}
.wf_cal_g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wf_w {
  font-size: 12px;
  color: #8a8f98;
  padding-bottom: 2px;
}
.wf_w.sun, .wf_d.sun {
  color: #c0321a;
}
.wf_w.sat, .wf_d.sat {
  color: #1f6fb2;
}
.wf_d {
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 7px 0;
  font-family: inherit;
  font-size: 15px;
  color: #1f2a30;
  cursor: pointer;
}
.wf_d:disabled {
  color: #d3d9dd !important;
  cursor: default;
}
.wf_d.is_pick {
  background: var(--btn);
  color: #fff !important;
  font-weight: 700;
}
.wf_kinds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wf_kind {
  border: 1.5px solid #cfd6da;
  border-radius: 8px;
  background: #fff;
  color: var(--btn);
  padding: 12px 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.wf_kind.is_on {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
.wf_reason {
  border: 1.5px solid #cfd6da;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  min-height: 64px;
  background: #fff;
  color: #1f2a30;
}
.wf_err {
  margin: 0;
  color: #c0321a;
  font-size: 14px;
  font-weight: 700;
}
.wf_err[hidden] {
  display: none;
}
/* 画面の下に付けたままのボタン */
.wf_foot {
  position: sticky;
  bottom: 0;
  margin: auto -14px 0;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e3e6ea;
}
.wf_bigbtn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  padding: 14px 6px;
  background: var(--btn);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.wf_bigbtn:disabled {
  background: #b9c2c7;
  cursor: default;
}
.wf_bigbtn .ms {
  font-size: 18px;
}
/* .wf_bigbtn--ok { background: #1d7a46; } */
.wf_bigbtn--ok {   /* 20261019 承認のボタンはアプリのほかのボタンと同じ紺に（大野さんの指示） */
  background: var(--btn);
}
.wf_bigbtn--ng {
  background: #fff;
  color: #c0321a;
  border: 1.5px solid #e9b4aa;
}
.wf_bigbtn--ghost {
  background: #fff;
  color: var(--btn);
  border: 1.5px solid #cfd6da;
}
.wf_bigbtn--red {
  background: #c0321a;
}
/* 申請を開いたとき：いちばん大事な1行を大きく */
.wf_hero {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.wf_hero_who {
  font-size: 17px;
  font-weight: 700;
}
.wf_hero_date {
  font-size: 27px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.wf_hero_kind {
  font-size: 16px;
  color: #4a5960;
}
.wf_reason_tx {
  margin: 0;
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}
.wf_reject {
  margin: 0;
  background: #fbe7e3;
  color: #7a2416;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}
.wf_remain2 {
  margin: 0;
  align-self: center;
  font-size: 15px;
  color: #5b6a71;
}
.wf_remain2 b {
  color: var(--btn);
}
.wf_link {
  align-self: center;
  margin: 4px 0 16px;
  color: var(--btn);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 確認のダイアログ */
.wf_dim {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(15, 22, 25, .45);
}
.wf_dlg {
  position: fixed;
  z-index: 131;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 32px));
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  text-align: center;
}
.wf_dlg_q {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.wf_dlg_ta {
  border: 1.5px solid #e9b4aa;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 15px;
  min-height: 80px;
  resize: vertical;
  text-align: left;
}
.wf_dlg_btns {
  display: flex;
  gap: 8px;
}
/* トークの申請のカード */
.bubble.bubble--workflow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 190px;
  background: #fff;
  color: #1f2a30;
  white-space: normal;
}
.msg--mine .bubble.bubble--workflow {
  background: #fff;
  color: #1f2a30;
  border: 1px solid #d6dde0;
}
.wf_card_t {
  font-size: 12.5px;
  font-weight: 700;
  color: #5b6a71;
}
.wf_card_x {
  font-size: 16px;
}
.wf_card_btn {
  align-self: stretch;
  display: flex;
  justify-content: center;
  border: 1.5px solid #cfd6da;
  border-radius: 8px;
  padding: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--btn) !important;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .wf_row:hover {
    background: #f1f4f6;
  }
}
/* 20261015 有給の申請のカレンダー：日付を丸に。休みの日は背景に薄い色の丸（赤＝法定休日・祝日、青＝所定休日・会社の休日）。文字の色は変えない */
.wf_w.sun, .wf_w.sat, .wf_d.sun, .wf_d.sat {
  color: inherit;
}
.wf_w {
  color: #8a8f98 !important;
}
.wf_d {
  width: 36px;
  height: 36px;
  margin: 1px auto;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf_d.is_red {
  background: #fde4e0;
}
.wf_d.is_blue {
  background: #e1ecf8;
}
.wf_d.is_pick {
  background: var(--btn);
  color: #fff;
}
.wf_d:disabled {
  background: none;
}
.wf_hols {
  margin: 6px 0 0;
  padding: 6px 4px 0;
  border-top: 1px solid #eef1f3;
  font-size: 13px;
  color: #4a5960;
}
.wf_hols[hidden] {
  display: none;
}
/* 20261015 トップの「本日の納品先一覧」のカードを文字の少ない形に：見出しの右に全N件、ボタンは横に2つ */
.hs_title {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.hs_title_count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  opacity: .9;
}
.hs_btns--row {
  flex-direction: row;
}
.hs_btns--row > * {
  flex: 1;
  min-width: 0;
}
.hs_btns--row .hs_toggle, .hs_btns--row .today_btn {
  padding: 11px 6px;
  font-size: 15px;
}
.hs_btns--row .today_btn .ms {
  font-size: 18px;
  color: var(--btn);
}
/* 20261016 申請の種類のボタン・休暇申請（leave.php・leave_form.php）・差し戻し */
.wf_types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wf_type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 6px;
  background: var(--btn);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.wf_type .ms {
  font-size: 28px;
}
.wf_type--wide {
  grid-column: span 2;
  flex-direction: row;
  justify-content: center;
}
.wf_row--big {
  padding: 16px;
}
.wf_row--big .wf_row_main b {
  font-size: 17px;
}
.wf_row_note {
  flex: none;
  font-size: 14px;
  color: var(--btn);
  font-weight: 700;
}
.wf_label {
  margin: 2px 0 -4px;
  font-size: 14px;
  font-weight: 700;
  color: #4a5960;
}
.wf_range {
  margin: 0;
  align-self: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--btn);
  font-variant-numeric: tabular-nums;
}
.wf_range[hidden] {
  display: none;
}
.wf_st--back {
  color: #9a5a00;
  background: #fbecd2;
}
.wf_bigbtn--back {
  background: #fff;
  color: #9a5a00;
  border: 1.5px solid #ecc98e;
}
.wf_reject--back {
  background: #fbecd2;
  color: #6b3f00;
}
/* 20261019 承認の画面を作り直したので、20261016 の形は止めた
/ * 20261016 承認の PC の画面（approvals.php・lib/app_approval.php）：左に一覧、右に開いた申請の中身。スマホは今までどおり（見本「承認のPC画面の見本」） * /
.ap_tabs, .ap_pane, .ap_row_date { display: none; }
@media (min-width: 900px) {
  .ap_main { display: block; padding: 20px 28px 28px; }
  .ap_wrap { display: flex; gap: 16px; align-items: flex-start; max-width: 1180px; }
  .ap_list { flex: 1 1 340px; max-width: 380px; min-width: 0; background: #fff; border: 1px solid #e3e8eb; border-radius: 8px; overflow: hidden; }
  .ap_list .wf_rows { margin: 0; border: 0; }
  .ap_list .wf_row { border-top: 1px solid #e3e8eb; }
  .ap_list .wf_row:first-child { border-top: 0; }
  .ap_list .wf_row > .ms { display: none; }
  .ap_list .wf_row.is_open { background: #eef3f6; box-shadow: inset 4px 0 0 var(--btn); }
  .ap_list .wf_link { display: none; }
  .ap_list .wf_empty { padding: 28px 0; }
  .ap_tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #e3e8eb; }
  .ap_tab { padding: 12px 0; text-align: center; font-size: 15px; font-weight: 500; color: #4a5960; text-decoration: none; }
  .ap_tab.is_on { font-weight: 700; color: var(--btn); box-shadow: inset 0 -3px 0 var(--accent); }
  .ap_row_date { display: inline; flex: none; font-size: 12px; color: #5b6a71; }
  .ap_pane { display: block; flex: 2 1 460px; min-width: 0; background: #fff; border: 1px solid #e3e8eb; border-radius: 8px; padding: 22px 24px; }
}
.ap_placeholder { margin: 40px 0; text-align: center; color: #5b6a71; font-size: 15px; }
.ap_detail { display: flex; flex-direction: column; gap: 12px; }
.ap_head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap_who { font-size: 18px; }
.ap_kind { font-size: 15px; color: #4a5960; }
.ap_big { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ap_big span { font-size: 17px; font-weight: 500; color: #4a5960; }
.ap_boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap_box { background: #f4f6f8; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ap_box span { font-size: 13px; color: #5b6a71; }
.ap_box b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ap_box--after { background: #e2f2e8; }
.ap_box--after span, .ap_box--after b { color: #1d5a36; }
.ap_dl { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); row-gap: 10px; font-size: 15px; border-top: 1px solid #eef1f3; padding-top: 14px; }
.ap_dl dt { color: #5b6a71; }
.ap_dl dd { margin: 0; }
.ap_btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.ap_btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 12px 26px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ap_btn .ms { font-size: 18px; }
.ap_btn--ng { background: #fff; color: #c0321a; border: 1.5px solid #e9b4aa; }
.ap_btn--back { background: #fff; color: #9a5a00; border: 1.5px solid #ecc98e; }
.ap_btn--ok { background: #1d7a46; color: #fff; border: 0; padding: 12px 34px; }
.ap_hint { margin: 0; text-align: right; font-size: 13px; color: #5b6a71; }
@media (max-width: 899px) {
  .ap_list { display: flex; flex-direction: column; gap: 12px; }   / * スマホは今までの並び（「処理済みを見る」を真ん中に） * /
}
*/
/* 20261017 申請の種類のボタン（workflow.php）：一覧の形。アイコンは種類ごとの色で背景なし（見本「申請の種類の見本」の案B） */
.wf_tps {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 14px;
  overflow: hidden;
}
.wf_tp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #1f2a30;
  text-decoration: none;
}
.wf_tp + .wf_tp {
  border-top: 1px solid #eef1f3;
}
.wf_tp:active {
  background: #f1f4f6;
}
.wf_tp > .ms:first-child {
  width: 40px;
  height: 40px;
  font-size: 30px;
  display: grid;
  place-items: center;
}
.wf_tp_tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.wf_tp_tx b {
  font-size: 16px;
}
.wf_tp_tx span {
  font-size: 13px;
  color: #4a5960;
}
.wf_tp > .ms:last-child {
  font-size: 20px;
  color: #9aa5ab;
}
.wf_tp--leave > .ms:first-child {
  color: #1d7a46;
}
.wf_tp--time > .ms:first-child {
  color: #1f6fb2;
}
.wf_tp--profile > .ms:first-child {
  color: #5b4a9a;
}
.wf_tp--expense > .ms:first-child {
  color: #9a5a00;
}
.wf_tp--supply > .ms:first-child {
  color: #1f6d68;
}
@media (hover: hover) and (pointer: fine) {
  .wf_tp:hover {
    background: #f1f4f6;
  }
}
.wf_tp_soon {   /* まだ作っていない種類（20261017） */
  flex: none;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #5b6a71;
  background: #eef1f3;
}
/* 20261017 自分の申請のタブ（申請中／差し戻し／完了）と種類のバッジ（workflow.php。見本「申請の種類の見本」） */
.wf_mine {
  margin: 0 -14px;
  background: #fff;
  border-top: 1px solid #e3e8eb;
  border-bottom: 1px solid #e3e8eb;
}
.wf_tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e3e8eb;
}
.wf_tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 500;
  color: #4a5960;
  text-decoration: none;
}
.wf_tab.is_on {
  font-weight: 700;
  color: var(--btn);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.wf_tab_badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #C51605;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.wf_mine .wf_rows--mine {
  margin: 0;
  border: 0;
}
.wf_mine .wf_empty {
  padding: 22px 0;
}
.wf_row_main--mine {
  align-items: flex-start;
  gap: 3px;
}
.wf_row_main .wf_kb {
  border: 1.5px solid #5b6a71;
  color: #5b6a71;
  background: #fff;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.wf_row_main .wf_kb--leave {
  border-color: #1d7a46;
  color: #1d7a46;
}
.wf_row_main .wf_kb--time {
  border-color: #1f6fb2;
  color: #1f6fb2;
}
.wf_row_main .wf_kb--profile {
  border-color: #5b4a9a;
  color: #5b4a9a;
}
.wf_row_main .wf_kb--expense {
  border-color: #9a5a00;
  color: #9a5a00;
}
.wf_row_main .wf_kb--supply {
  border-color: #1f6d68;
  color: #1f6d68;
}
.wf_row_main .wf_row_comment {
  font-size: 13px;
  color: #6b3f00 !important;
}
.wf_row_date {
  flex: none;
  font-size: 12px;
  color: #5b6a71;
}

/* 20261019 承認の画面（approvals.php）と事務所の人が見る申請の中身（lib/app_approval.php）。大野さんの参考の画面に合わせた
   スマホ：上に［承認待ち／処理済み］、「申請種類で絞り込み」のプルダウン、カード、件数
   PC（幅 900px 以上）：左に申請の種類と件数、まん中にカード、右に開いた申請の中身 */
.ap_main {
  padding: 14px 14px 20px;
}
.ap_seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #e6eaed;
}
.ap_seg_btn {
  padding: 10px 0;
  border-radius: 9px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #4a5960;
  text-decoration: none;
}
.ap_seg_btn.is_on {
  background: #fff;
  color: #1f2a30;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(20, 30, 35, .1);
}
.ap_filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5b6a71;
  white-space: nowrap;
}
.ap_filter select {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #cfd6da;
  border-radius: 4px;
  padding: 10px 14px;
  background: #fff;
  color: #1f2a30;
  font-family: inherit;
  font-size: 15px;
}
.ap_kinds, .ap_pane, .ap_list_hd {
  display: none;
}
.ap_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ap_cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap_card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  color: #1f2a30;
  text-decoration: none;
}
.ap_card:active {
  background: #f1f4f6;
}
.ap_card_top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ap_card_name {
  font-size: 15px;
}
.ap_card_date {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: #5b6a71;
}
.ap_card_main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ap_card_main b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.ap_card_sub {
  font-size: 13px;
  color: #4a5960;
}
.ap_card_main > .ms {
  margin-left: auto;
  font-size: 20px;
  color: #9aa5ab;
}
.ap_card_main .wf_st {
  margin-left: auto;
}
.ap_card_main .wf_st + .ms {
  margin-left: 0;
}
.ap_count {
  margin: 2px 2px 0;
  font-size: 13px;
  color: #5b6a71;
}
.ap_kb {
  flex: none;
  border: 1.5px solid #5b6a71;
  color: #5b6a71;
  background: #fff;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.ap_kb--leave {
  border-color: #1d7a46;
  color: #1d7a46;
}
.ap_kb--time {
  border-color: #1f6fb2;
  color: #1f6fb2;
}
.ap_kb--profile {
  border-color: #5b4a9a;
  color: #5b4a9a;
}
.ap_kb--expense {
  border-color: #9a5a00;
  color: #9a5a00;
}
.ap_kb--supply {
  border-color: #1f6d68;
  color: #1f6d68;
}
@media (hover: hover) and (pointer: fine) {
  .ap_card:hover {
    border-color: #b9c2c7;
  }
}
@media (min-width: 900px) {
  .ap_main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 28px 28px;
  }
  .ap_seg {
    max-width: 420px;
  }
  .ap_filter {
    display: none;
  }
  .ap_wrap {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 1320px;
  }
  .ap_kinds {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 210px;
  }
  .ap_kind {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #1f2a30;
    font-size: 15px;
    text-decoration: none;
  }
  .ap_kind b {
    font-size: 14px;
    font-weight: 500;
    color: #5b6a71;
  }
  .ap_kind.is_on {
    background: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 1px #e3e8eb inset;
  }
  .ap_kind:hover {
    background: #eef1f3;
  }
  .ap_list {
    flex: 1 1 300px;
    max-width: 360px;
  }
  .ap_list_hd {
    display: block;
    margin: 4px 2px 2px;
    font-size: 16px;
    font-weight: 700;
  }
  .ap_card.is_open {
    border-color: var(--btn);
    box-shadow: 0 0 0 1px var(--btn) inset;
  }
  .ap_card_main > .ms {
    display: none;
  }
  .ap_pane {
    display: block;
    flex: 2 1 420px;
    min-width: 0;
    background: #fff;
    border: 1px solid #e3e8eb;
    border-radius: 8px;
    padding: 22px 24px;
  }
}
.ap_placeholder {
  margin: 40px 0;
  text-align: center;
  color: #5b6a71;
  font-size: 15px;
}
/* 申請の中身（参考の画面の「承認詳細」） */
.ap_detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap_top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ap_avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef1f3;
  display: grid;
  place-items: center;
  color: #4a5960;
}
.ap_avatar .ms {
  font-size: 22px;
}
.ap_person {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.ap_person b {
  font-size: 18px;
}
.ap_person span {
  font-size: 13px;
  color: #5b6a71;
}
.ap_when {
  border-top: 1px solid #eef1f3;
  padding-top: 12px;
}
.ap_when_hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #5b6a71;
}
.ap_big {
  margin: 6px 0 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.ap_unit {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #4a5960;
}
.ap_unit .ms {
  font-size: 18px;
}
.ap_remain {
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap_remain_hd {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap_remain_hd .ms {
  font-size: 20px;
  color: #1d7a46;
}
.ap_remain_hd b {
  font-size: 16px;
}
.ap_chip {
  margin-left: auto;
  border-radius: 999px;
  padding: 1px 9px;
  background: #eef1f3;
  color: #4a5960;
  font-size: 12px;
  font-weight: 700;
}
.ap_remain_row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  text-align: center;
  font-size: 13px;
  color: #4a5960;
}
.ap_remain_col small {
  display: block;
  font-size: 13px;
  color: #5b6a71;
}
.ap_remain_col b {
  font-size: 26px;
  color: #1f2a30;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}
.ap_remain_col--after small, .ap_remain_col--after b {
  color: #1d7a46;
}
.ap_remain_mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4px;
  color: #4a5960;
}
.ap_remain_mid .ms {
  font-size: 18px;
}
.ap_remain_mid small {
  font-size: 12px;
}
.ap_remain_note {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #eef1f3;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #5b6a71;
}
.ap_remain_note .ms {
  font-size: 14px;
}
.ap_h {
  margin: 6px 0 -4px;
  font-size: 16px;
  font-weight: 700;
}
.ap_detail .ap_dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  font-size: 15px;
  border: 0;
  padding: 0;
  row-gap: 0;
}
.ap_detail .ap_dl dt, .ap_detail .ap_dl dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f3;
}
.ap_detail .ap_dl dt {
  color: #5b6a71;
  padding-right: 12px;
  white-space: nowrap;
}
.ap_detail .ap_dl dd {
  text-align: right;
  font-weight: 700;
}
.ap_reason {
  margin: 0;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}
.ap_btns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  padding-top: 6px;
}
.ap_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 13px 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ap_btn .ms {
  font-size: 18px;
}
.ap_btn--ng {
  background: #fff;
  color: #c0321a;
  border: 1.5px solid #e9b4aa;
}
.ap_btn--back {
  background: #fff;
  color: #9a5a00;
  border: 1.5px solid #ecc98e;
}
/* .ap_btn--ok { background: #1d7a46; color: #fff; border: 0; } */
.ap_btn--ok {   /* 20261019 紺に（大野さんの指示） */
  background: var(--btn);
  color: #fff;
  border: 0;
}
.ap_hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #5b6a71;
}
/* スマホで事務所の人が申請を開いたとき（workflow_detail.php・request_detail.php） */
.ap_main_detail {
  padding: 14px 14px 20px;
}
.ap_main_detail .ap_detail {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 14px;
  padding: 16px;
}
.ap_note {
  margin: -4px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  color: #4a5960;
}
.ap_note .ms {
  font-size: 16px;
  margin-top: 1px;
}
/* 20261019 参考の画面（2回目）に合わせた承認の画面（上の 20261019 の指定を上書き）
   スマホ：見出しの右に承認待ちの件数、［承認待ち／処理済み］、申請種類、「承認待ちの申請 N件」、1つの枠の中に線で区切ったカード
   PC：左に「申請一覧」の枠（切り替え・申請種類・カード・件数）、右に中身の2列。種類のバッジは薄い色の塗り */
.ap_hd_count {
  margin-left: auto;
  flex: none;
  border-radius: 999px;
  padding: 2px 10px;
  background: #fbe7e3;
  color: #c0321a;
  font-size: 13px;
  font-weight: 700;
}
.ap_list_title, .ap_count, .ap_kinds {
  display: none;
}
.ap_list {
  gap: 12px;
}
.ap_filter {
  display: flex;
}
.ap_list_hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 2px 0;
}
.ap_list_hd b {
  font-size: 15px;
}
.ap_list_hd span {
  font-size: 13px;
  color: #5b6a71;
}
.ap_cards {
  gap: 0;
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  overflow: hidden;
}
.ap_card {
  gap: 8px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
}
.ap_card + .ap_card {
  border-top: 1px solid #eef1f3;
}
.ap_card_top {
  gap: 8px;
}
.ap_card_name {
  font-size: 15px;
  font-weight: 400;
}
.ap_card_top > .ms {
  margin-left: auto;
  font-size: 20px;
  color: #9aa5ab;
}
.ap_card_top .wf_st {
  margin-left: auto;
}
.ap_card_top .wf_st + .ms {
  margin-left: 0;
}
.ap_card_title {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.ap_card_bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #5b6a71;
}
.ap_kb {
  border: 0;
  border-radius: 999px;
  padding: 1px 9px;
  line-height: 1.7;
}
.ap_kb--leave {
  background: #e2f2e8;
  color: #1d7a46;
}
.ap_kb--time {
  background: #e3eef8;
  color: #1f6fb2;
}
.ap_kb--profile {
  background: #ece8f6;
  color: #5b4a9a;
}
.ap_kb--expense {
  background: #fbecd2;
  color: #9a5a00;
}
.ap_kb--supply {
  background: #dff0ee;
  color: #1f6d68;
}
/* 中身 */
.ap_detail {
  gap: 14px;
}
.ap_top {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f3;
}
.ap_top .wf_st {
  margin-top: 14px;
}
.ap_person b {
  font-size: 20px;
}
.ap_when {
  border-top: 0;
  padding-top: 0;
}
.ap_big {
  margin: 8px 0 6px;
}
.ap_unit {
  color: #1f2a30;
}
.ap_remain {
  border: 0;
  background: #f7f9fa;
  gap: 8px;
}
.ap_remain_hd b {
  font-size: 15px;
}
.ap_remain_hd span {
  margin-left: auto;
  font-size: 12px;
  color: #5b6a71;
}
.ap_remain_col small {
  font-size: 12px;
}
.ap_remain_note {
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
}
.ap_h {
  margin: 4px 0 -6px;
}
.ap_detail .ap_dl dt, .ap_detail .ap_dl dd {
  padding: 10px 0;
}
.ap_detail .ap_dl dt {
  padding-right: 12px;
}
.ap_detail .ap_dl dd {
  font-weight: 400;
}
.ap_btns {
  padding-top: 12px;
  border-top: 1px solid #eef1f3;
}
.ap_btn {
  border-radius: 8px;
}
@media (min-width: 900px) {
  .ap_hd_count {
    display: none;
  }
  .ap_wrap {
    max-width: 1180px;
  }
  .ap_list {
    flex: 0 1 360px;
    max-width: 360px;
    background: #fff;
    border: 1px solid #e3e8eb;
    border-radius: 8px;
    padding: 16px;
  }
  .ap_list_title {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
  }
  .ap_list .ap_seg {
    max-width: none;
    border-radius: 8px;
    background: #eef1f3;
  }
  .ap_list .ap_seg_btn {
    padding: 8px 0;
    font-size: 14px;
    border-radius: 8px;
  }
  .ap_filter {
    justify-content: space-between;
  }
  .ap_filter select {
    flex: 0 1 auto;
    padding: 7px 12px;
    font-size: 14px;
  }
  .ap_list_hd {
    display: none;
  }
  .ap_count {
    display: block;
    margin: 0;
    font-size: 12px;
  }
  .ap_cards {
    gap: 8px;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .ap_card {
    padding: 12px;
    border: 1px solid #e3e8eb;
    border-radius: 8px;
    gap: 5px;
  }
  .ap_card + .ap_card {
    border-top: 1px solid #e3e8eb;
  }
  .ap_card.is_open {
    border: 1.5px solid var(--btn);
    box-shadow: none;
    padding: 11.5px;
  }
  .ap_card_title {
    font-size: 16px;
  }
  .ap_card_bottom {
    font-size: 12px;
  }
  .ap_card_date {
    display: none;
  }
  .ap_pane {
    flex: 1 1 420px;
    padding: 18px 20px;
  }
  .ap_btns {
    display: flex;
    justify-content: flex-end;
  }
  .ap_btn {
    padding: 11px 22px;
  }
  .ap_btn--ok {
    padding: 11px 26px;
  }
}
/* 20261019 承認の画面の申請者の顔写真（lib/app_approval.php の app_approval_face_html）。写真が無い人は images/faceimg.svg（上を合わせて丸く切る） */
.ap_face {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #ebe7e7;
}
.ap_face--sm {
  width: 28px;
  height: 28px;
}
.ap_face--lg {
  width: 52px;
  height: 52px;
}
.ap_face--none {
  object-position: center top;
}
.ap_top {
  align-items: center;
  gap: 12px;
}
.ap_top .wf_st {
  margin-top: 0;
}
/* 20261019 ドライバーの申請詳細（workflow_detail.php・request_detail.php。lib/app_approval.php の app_approval_mine_html）
   見本「申請の種類の見本」の申請詳細：枠ごとに分け、下に［申請を取り下げる］を固定 */
.mn_main {
  padding: 12px 12px 0;
  gap: 10px;
}
.mn_card {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  padding: 14px 16px;
}
.mn_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f3;
}
.mn_head b {
  font-size: 18px;
}
.mn_head .wf_st {
  padding: 4px 12px 4px 9px;
}
.mn_label {
  margin: 14px 0 0;
  font-size: 13px;
  color: #5b6a71;
}
.mn_card .ap_big {
  margin: 6px 0 8px;
}
.mn_card .ap_unit {
  color: #1f2a30;
}
.mn_remain {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mn_remain .ap_remain_hd b {
  font-size: 15px;
}
.mn_note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #eef1f3;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  color: #5b6a71;
  line-height: 1.5;
}
.mn_note .ms {
  font-size: 14px;
  margin-top: 2px;
}
.mn_h {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.mn_dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  font-size: 15px;
}
.mn_dl dt, .mn_dl dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f3;
}
.mn_dl dt {
  color: #5b6a71;
  padding-right: 12px;
  white-space: nowrap;
}
.mn_dl dd {
  text-align: right;
}
.mn_dl dt:nth-last-child(2), .mn_dl dd:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mn_reason {
  margin: 6px 0 0;
  font-size: 15px;
}
.mn_card .wf_reject {
  margin-top: 6px;
}
.mn_main .wf_foot {
  margin: auto -12px 0;
}
.ap_nw {   /* 20261019 日付の途中で折り返さない（app_approval_big_html） */
  white-space: nowrap;
}
/* 20261021 承認の一覧のカードを3行にした（見本の案C）：写真・氏名・申請日 → 申請内容 → 種類のバッジ・補足
   写真は全カード同じ大きさ（24px）。補足が入りきらないときは、バッジは縮めず補足だけ次の行へ */
.ap_face--sm {
  width: 24px;
  height: 24px;
}
.ap_card--c {
  gap: 6px;
}
.ap_card--c .ap_card_top {
  gap: 8px;
}
.ap_card--c .ap_card_name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
}
.ap_card--c .ap_card_top .wf_st {
  margin-left: 0;
}
.ap_card--c .ap_card_date {
  display: inline;
  flex: none;
  margin-left: 0;
  font-size: 12px;
  color: #5b6a71;
}
.ap_card--c .ap_card_title {
  font-size: 16px;
}
.ap_card--c .ap_card_bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 8px;
  font-size: 12px;
  color: #5b6a71;
}
.ap_card--c .ap_kb {
  flex: none;
  border-radius: 6px;
}
@media (min-width: 900px) {
  .ap_card--c .ap_card_date {
    display: inline;
  }
  .ap_card--c .ap_card_bottom {
    font-size: 12px;
  }
}
/* 20261021 承認の画面の種類のバッジを、ドライバーの申請画面のバッジ（.wf_kb）と同じ形にした（白地に種類の色の枠線と文字。大野さんの指示）
   カード・申請の中身（休暇取得日の右）の両方に効く */
.ap_kb {
  border: 1.5px solid #5b6a71;
  color: #5b6a71;
  background: #fff;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.ap_kb--leave {
  border-color: #1d7a46;
  color: #1d7a46;
  background: #fff;
}
.ap_kb--time {
  border-color: #1f6fb2;
  color: #1f6fb2;
  background: #fff;
}
.ap_kb--profile {
  border-color: #5b4a9a;
  color: #5b4a9a;
  background: #fff;
}
.ap_kb--expense {
  border-color: #9a5a00;
  color: #9a5a00;
  background: #fff;
}
.ap_kb--supply {
  border-color: #1f6d68;
  color: #1f6d68;
  background: #fff;
}
/* 20261021 自分の申請の行：申請内容の下に、種類のバッジと補足を並べる（承認の画面のカードにそろえた）。補足が入りきらないときは補足だけ次の行へ */
.wf_row_main .wf_row_kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  color: #5b6a71;
}
.wf_row_main .wf_row_kind .wf_kb {
  flex: none;
}
.wf_row_main .wf_row_sub {
  font-size: 12px;
  color: #5b6a71;
}
/* 20261030 承認の画面の申請理由：囲みの罫をやめた（入力欄に見えるため。大野さんの指示）。申請詳細（ドライバー）と同じく文字だけ */
.ap_reason {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
}
/* 20261030 ホーム：申請中の申請の知らせ（翌日の配車予定と同じ1行。色は青で分ける） */
.hs_tomorrow--req {
  color: #1f6fb2;
}
.hs_tomorrow--req .ms {
  font-size: 20px;
}
@media (max-width: 899px) {
  .top_main > .hs_tomorrow + .hs_tomorrow {   /* 翌日の配車予定のすぐ下に続ける（すき間を空けない）（20261030） */
    margin-top: -18px;
  }
}
/* 20261031 承認の一覧をカードから前の行の形に戻した（大野さんの指示。見本「承認のPC画面の見本」の行の形の案）
   1行目：種類のバッジ（細かい種類名。有給休暇・忌引など）と氏名、2行目：申請内容（太字）、右に申請日。行の間は線で区切る
   PC：一覧の上は［承認待ち／処理済み］の下線のタブと「申請種類」の select。行だけが枠の中でスクロールし、右の中身はいつも見える */
.ap_rows {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  overflow: hidden;
}
.ap_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #1f2a30;
  text-decoration: none;
}
.ap_item + .ap_item {
  border-top: 1px solid #e3e8eb;
}
.ap_item:active {
  background: #eef3f6;
}
.ap_item_main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.ap_item_top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.ap_item_top .ap_kb {
  flex: none;
  white-space: nowrap;
}
.ap_item_name {
  font-size: 13px;
  color: #4a5960;
}
.ap_item_title {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.ap_item_date {
  flex: none;
  font-size: 12px;
  color: #5b6a71;
}
@media (min-width: 900px) {
  .ap_main {
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-bottom: 20px;
  }
  .ap_wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    align-items: stretch;
  }
  .ap_list {
    flex: 0 1 380px;
    max-width: 380px;
    min-height: 0;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .ap_list_title {
    display: none;
  }
  .ap_list .ap_seg {
    flex: none;
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
    border-bottom: 1px solid #e3e8eb;
  }
  .ap_list .ap_seg_btn {
    padding: 12px 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    color: #4a5960;
  }
  .ap_list .ap_seg_btn.is_on {
    background: #fff;
    font-weight: 700;
    color: var(--btn);
    box-shadow: inset 0 -3px 0 var(--accent);
  }
  .ap_filter {
    flex: none;
    padding: 10px 16px;
    border-bottom: 1px solid #e3e8eb;
  }
  .ap_rows {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }
  .ap_item {
    border-bottom: 1px solid #e3e8eb;
  }
  .ap_item + .ap_item {
    border-top: 0;
  }
  .ap_item:hover {
    background: #f7f9fa;
  }
  .ap_item.is_open {
    background: #eef3f6;
    box-shadow: inset 4px 0 0 var(--btn);
  }
  .ap_list .wf_empty {
    flex: 1;
    margin: 0;
    padding: 28px 16px;
  }
  .ap_count {
    flex: none;
    padding: 10px 16px;
    border-top: 1px solid #e3e8eb;
  }
  .ap_pane {
    min-height: 0;
    overflow-y: auto;
  }
}
/* 20261031 PC：承認の画面の右の申請の中身は、中身の高さだけの枠にする（下まで伸ばさない。大野さんの指示）。中身が長いときは画面の高さまでで、枠の中だけスクロール */
@media (min-width: 900px) {
  .ap_pane {
    align-self: flex-start;
    max-height: 100%;
    box-sizing: border-box;
  }
}
/* 20261102 申請結果のお知らせ（workflow.php）：申請の画面を開いたとき、まだ確認していない承認・却下を上に重ねて出す（見本「申請の種類の見本」の最終案）
   左は申請の種類のアイコン（「新しく申請する」と同じアイコンと色。うすい色の角丸の背景）、右に結果のバッジ（承認は緑・却下は赤）。件数が多いときは行の所だけスクロール */
.nt_dim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 30, 35, 0.45);
}
.nt_box {
  position: fixed;
  z-index: 1001;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100% - 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.nt_hd {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px 16px;
  border-bottom: 1px solid #e3e8eb;
}
.nt_title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.nt_close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  color: #4a5960;
  cursor: pointer;
}
.nt_close .ms {
  font-size: 24px;
}
.nt_list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-bottom: 1px solid #e3e8eb;
}
.nt_item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  color: #1f2a30;
  text-decoration: none;
}
.nt_item + .nt_item {
  border-top: 1px solid #eef1f3;
}
.nt_item:active {
  background: #f1f4f6;
}
.nt_icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef1f3;
}
.nt_icon > .ms {
  font-size: 28px;
}
.nt_icon.wf_tp--leave {
  background: #e2f2e8;
}
.nt_icon.wf_tp--leave > .ms {
  color: #1d7a46;
}
.nt_icon.wf_tp--time {
  background: #e3eef8;
}
.nt_icon.wf_tp--time > .ms {
  color: #1f6fb2;
}
.nt_icon.wf_tp--profile {
  background: #ece8f6;
}
.nt_icon.wf_tp--profile > .ms {
  color: #5b4a9a;
}
.nt_icon.wf_tp--expense {
  background: #fbecd2;
}
.nt_icon.wf_tp--expense > .ms {
  color: #9a5a00;
}
.nt_icon.wf_tp--supply {
  background: #dff0ee;
}
.nt_icon.wf_tp--supply > .ms {
  color: #1f6d68;
}
.nt_main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.nt_what {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.nt_sub, .nt_reason {
  font-size: 13px;
  color: #5b6a71;
}
.nt_reason {
  color: #4a5960;
  overflow-wrap: anywhere;
}
.nt_st {
  flex: none;
  align-self: center;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nt_st--ok {
  background: #e2f2e8;
  color: #1d7a46;
}
.nt_st--ng {
  background: #fbe7e3;
  color: #c0321a;
}
.nt_st--back {
  background: #fbecd2;
  color: #9a5a00;
}
.nt_item > .ms:last-child {
  flex: none;
  align-self: center;
  font-size: 20px;
  color: #9aa5ab;
}
.nt_note {
  flex: none;
  margin: 12px 16px 0;
  font-size: 13px;
  color: #5b6a71;
}
.nt_box .wf_err {
  margin: 8px 16px 0;
}
.nt_ft {
  flex: none;
  padding: 12px 16px 16px;
}
.nt_ft .wf_bigbtn {
  width: 100%;
}
/* 20261102 却下の理由は背景色をやめて、赤い太字にする（大野さんの指示）。差し戻しの理由も同じ形でオレンジの太字 */
.wf_reject {
  background: none;
  border-radius: 0;
  padding: 0;
  color: #c0321a;
  font-weight: 700;
}
.wf_reject--back {
  background: none;
  color: #9a5a00;
}
/* 20261102 有給・特別休暇・欠勤の入力画面の並びをそろえた（大野さんの指示）
   項目名の右に必須のバッジ。選んだボタンは紺の地に白い文字とチェック。下に緑で「〇〇を選択済み」 */
.wf_label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 -4px;
  font-size: 15px;
  color: #1f2a30;
}
.wf_req {
  padding: 1px 7px;
  border-radius: 4px;
  background: #d8381f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.wf_hint {
  margin: 0 0 -4px;
  font-size: 13px;
  color: #5b6a71;
}
.wf_kind {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wf_kind .ms {
  display: none;
  font-size: 20px;
}
.wf_kind.is_on .ms {
  display: inline-block;
}
.wf_picked {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #1d7a46;
}
.wf_picked[hidden] {
  display: none;
}
.wf_picked .ms {
  font-size: 20px;
}
/* 20261102 休暇申請の期間（leave_form.php。見本の案D）：開始日・終了日の欄、次に押す方は紺の枠。案内の文は緑の字に緑の線の囲み */
.wf_pd {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wf_pd_f {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1.5px solid #cfd6da;
  border-radius: 8px;
  background: #fff;
}
.wf_pd_f.is_act {
  border: 2px solid var(--btn);
  padding: 7.5px 9.5px;
}
.wf_pd_k {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #5b6a71;
}
.wf_pd_f.is_act .wf_pd_k {
  color: var(--btn);
}
.wf_pd_k .ms {
  font-size: 16px;
}
.wf_pd_f b {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wf_pd_f b.is_empty {
  color: #9aa5ab;
}
.wf_pd_sep {
  flex: none;
  font-weight: 700;
  color: #5b6a71;
}
.wf_pd_n {
  flex: none;
  min-width: 52px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.wf_guide {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid #1d7a46;
  border-radius: 8px;
  background: #fff;
  color: #1d7a46;
  font-size: 14px;
  font-weight: 700;
}
.wf_guide[hidden] {
  display: none;
}
.wf_guide .ms {
  flex: none;
  font-size: 20px;
}
/* 20261102 「種類を選択済み」「区分を選択済み」は項目名と必須のバッジの横に並べる（大野さんの指示） */
.wf_label .wf_picked {
  margin: 0 0 0 6px;
  font-size: 14px;
}

/* 20261104 有給の申請：残りの有給を見出しの右端に（題名が入りきらないときは題名の方を「…」で切る。大野さんの指示） */
.wf_remain--hd {
  flex: none;
  align-self: center;
  margin: 0 8px 0 auto;
  white-space: nowrap;
}

/* 20261104 簡易表示のコネクトの文は商品と同じ文字（.hs_sub）。種類のバッジと同じ行に続ける（大野さんの指示） */
.hs_sub--connect {
  display: inline;
}

/* 20261105 配車予定・納品先一覧のコネクトのカード。出勤の枠（.hs_shukkin）と同じ並び：種類のバッジ → 時刻 → 備考（画面の見本「コネクト表示の見本」。大野さんの指示） */
.hs_connect {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px;
  background: #fff; color: #222; border: 1px solid #e3e8eb; border-radius: 8px;
  padding: 9px 12px; margin: 0;
}
.hs_connect .hs_kind {
  margin-right: 0;
}
.hs_connect_tm {
  font-size: 16px; color: var(--btn); font-variant-numeric: tabular-nums;
}
.hs_connect_tx {
  font-size: 14px; color: #33424a; min-width: 0; word-break: break-all;
}
/* 20261105 TOP の「本日の納品先一覧」：コネクトだけの日の、閉じているときの行（紺の上） */
.top_connect {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px;
}
.top_connect li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: 15px; font-weight: 700;
}
.top_connect .hs_kind {
  margin-right: 0; background: rgba(255,255,255,.22);
}
.top_connect_tm {
  font-variant-numeric: tabular-nums;
}
.top_connect_tx {
  font-weight: 500; font-size: 14px; opacity: .95; min-width: 0;
}
/* 20261105 簡易表示の「以降」「まで」「頃」は時刻の右に続ける（「13:00 以降」。大野さんの指示）。入るよう時刻の欄を 58px → 68px */
.hs_stop {
  grid-template-columns: 68px 14px 1fr;
}
.hs_tm .hs_note {
  display: inline; margin-left: 3px;
}
/* 20261105 配車予定：「前日」「翌日」は日付の右にまとめる（「戻る」の真下に「前日」を置かない。案A。大野さんの指示） */
.hs_daynav--right .hs_bigdate {
  flex: 1; justify-content: flex-start; min-width: 0; flex-wrap: wrap;
}
.hs_day_pair {
  display: flex; gap: 10px; flex: none;
}
/* 20261105 納品先一覧・配車予定の「地図で見る」を大きくした（押しやすい高さ 44px。住所の下の行に出す。大野さんの指示） */
.hs_map {
  /* display: flex; width: fit-content; min-height: 44px; gap: 6px; */
  /* margin: 6px 0 0; padding: 8px 18px; */
  display: flex; width: fit-content; min-height: 38px; gap: 6px;   /* 20261105 高さ 44px → 38px（大野さんの指示） */
  margin: 6px 0 0; padding: 5px 16px;
  border: 1.5px solid #8d989e; font-size: 15px;
}
.hs_map .ms {
  font-size: 20px; color: var(--accent);
}
.hs_map:active {
  background: #eef2f4;
}
/* 20261105 行き先の［地図で見る］［納品先情報］を住所の下に同じ幅で並べる。片方だけなら半分の幅（案B。大野さんの指示） */
.hs_leg_btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px;
}
.hs_leg_btns .hs_map {
  width: auto; margin: 0; justify-content: center; padding: 5px 8px;
}
.hs_map--place .ms {
  color: #2f6f86;
}
/* 20261105 配車予定の［前日］［翌日］を少し大きくした（文字 13px → 14.5px・高さ 約30px → 36px。大野さんの指示） */
.hs_day_pair .hs_day_btn {
  min-height: 36px; padding: 6px 14px; font-size: 14.5px; gap: 3px;
}
.hs_day_pair .hs_day_btn .ms {
  font-size: 16px;
}
