/* フォーム営業 ─ AIBUILDERZ で構築したシステムとしての見た目（ai-builderz.com v8 にそろえる）
   色と書体: 02_business/aibuilderz/rules/色と書体.md の「サイト」
   使わない表現: 02_business/aibuilderz/rules/デザインで使わない表現.md
     ・塗った形に文字を載せない（状態・件数・タグは札にせず、線アイコン＋文字で示す）
     ・見出しやラベルを棒で飾らない。罫線は区切りの 1px だけ（入力欄の下線 2px だけは入力欄の仕様）
     ・状態ごとに色を割り当てない。信号色は使わない */

:root {
  --c-brand: #096FC8;
  --c-brand-deep: #0556A0;
  --c-brand-2: #76B7ED;
  --c-accent: #FF7669;
  --c-bg: #F6F6F6;
  --c-surface: #FFFFFF;
  --c-text: #111111;
  --c-text-sub: #2B3442;
  --c-text-3: #5F6773;        /* 日時・補足（グレー。--c-mute では小さい字が読みにくい所に使う） */
  --c-nav: #2C3646;
  --c-mute: #9A9A9A;
  --c-line: #E6E6E6;
  --c-line-soft: #EFEFEF;
  --c-hover: #FAFBFD;
  --c-ring: #CDD3DB;          /* 未送信の白丸・点線の枠 */
  --c-seg-ng: #AEB6C2;
  --c-seg-ex: rgba(118, 183, 237, 0.42);
  --c-seg-ex2: #D5DAE1;

  /* 黒のグラデーション（v8 の --g-black と同じ） */
  --g-black:
    radial-gradient(64% 116% at 16% 10%, rgba(74,83,94,.92) 0%, rgba(74,83,94,0) 56%),
    radial-gradient(52% 96%  at 72% 26%, rgba(52,60,70,.85) 0%, rgba(52,60,70,0) 62%),
    radial-gradient(46% 88%  at 40% 62%, rgba(38,45,54,.80) 0%, rgba(38,45,54,0) 66%),
    radial-gradient(86% 130% at 66% 98%, rgba(3,5,9,.95)   0%, rgba(3,5,9,0)   58%),
    radial-gradient(74% 118% at 4%  92%, rgba(7,10,14,.90) 0%, rgba(7,10,14,0) 62%),
    linear-gradient(150deg, #1A1F26 0%, #0D1116 48%, #151A20 100%);
  /* 立体感の段階（v8 と同じ） */
  --e1: 0 10px 20px -12px rgba(14,26,44,.24), 0 2px 5px -3px rgba(14,26,44,.12);
  --e2: 0 22px 32px -16px rgba(14,26,44,.36), 0 6px 13px -6px rgba(14,26,44,.18),
        inset 0 2px 2px rgba(255,255,255,.94);
  --e3: 0 34px 50px -22px rgba(14,26,44,.44), 0 10px 20px -10px rgba(14,26,44,.22),
        inset 0 2px 2px rgba(255,255,255,.96);
  --surface: linear-gradient(158deg,#FFFFFF 0%,#FAFBFD 44%,#EFF2F6 76%,#E4E9EF 100%);

  --f: "Noto Sans JP", system-ui, sans-serif;
  --f-en: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --hd-top: 14px;
  --hd-h: 60px;
  --wrap: min(1240px, calc(100% - 48px));
}

/* ───── 土台 ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-text);
  background: #FAFAFA linear-gradient(180deg, #ECEEF1 0, #F6F6F6 520px, #FAFAFA 1100px) no-repeat;
  font-family: var(--f);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; letter-spacing: 0.05em; color: var(--c-text); }
h1 { font-size: 28px; line-height: 1.4; }
h2 { font-size: 17px; }
h3 { font-size: 14px; margin: 26px 0 10px; }
p { margin: 0 0 8px; }
a { color: var(--c-text-sub); text-decoration: none; }
a:hover { color: var(--c-brand); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(9, 111, 200, 0.5); outline-offset: 3px; }
img { max-width: 100%; }

.muted { color: var(--c-text-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.break { overflow-wrap: anywhere; word-break: break-all; }
.hint { color: var(--c-text-3); font-size: 12.5px; margin: 8px 0 0; line-height: 1.7; }
.loading { padding: 24px 0; }
.empty { padding: 32px 8px; text-align: center; color: var(--c-text-3); }
.footnote { margin-top: 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 2px 0; overflow-wrap: anywhere; }
.ext { text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 3px; }
.ext:hover { text-decoration-color: currentColor; }
.num { font-family: var(--f-en); font-weight: 700; letter-spacing: 0; word-spacing: 0.12em; font-variant-numeric: tabular-nums; }

/* 英字ラベル（見出しの上。棒や点で飾らない） */
.eyebrow {
  margin: 0 0 10px; font-family: var(--f-en); font-size: 11px; font-weight: 700; line-height: 1;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-mute);
}
.lead { margin: 8px 0 0; font-size: 14px; color: var(--c-text-sub); line-height: 1.8; }

/* ───── 線アイコン（16px・線 1.6・色はアイコンだけに持たせる） ───── */
.ic {
  width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.t-brand { color: var(--c-brand); }
.t-mute { color: var(--c-mute); }
.t-sub { color: var(--c-text-sub); }
.t-accent { color: var(--c-accent); }
.t-line { color: var(--c-ring); }
.t-ink { color: var(--c-text); }
.ic-spin { animation: ft-spin 1.2s linear infinite; }
@keyframes ft-spin { to { transform: rotate(360deg); } }

/* 状態の表示（アイコン＋文字。札にしない） */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--c-text); white-space: nowrap; line-height: 1.5; }
.st-list { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }

/* お知らせ（アイコン＋文字。枠や塗りで囲まない） */
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; color: var(--c-text); overflow-wrap: anywhere; }
.note > .ic { margin-top: 4px; }
.note-body { min-width: 0; flex: 1; }
.note-title { font-weight: 700; margin-bottom: 2px; }
.note p { margin: 0; color: var(--c-text-sub); }
.note details { margin-top: 6px; }
.note summary { cursor: pointer; color: var(--c-text-sub); font-size: 13px; }
.banner-slot:empty { display: none; }
.banner-slot { margin-bottom: 18px; }
.form-error { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: 13.5px; color: var(--c-text); }
.form-error > .ic { margin-top: 3px; }

/* ───── ヘッダー（v8 の .sitehd と同じ作り） ───── */
.hd {
  position: fixed; left: 50%; top: var(--hd-top); z-index: 40; transform: translateX(-50%);
  width: min(1300px, calc(100% - 48px)); height: var(--hd-h);
  padding: 0 14px 0 30px; border-radius: 999px;
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 16px 34px -16px rgba(14,26,44,.30), 0 2px 6px -3px rgba(14,26,44,.14),
              inset 0 1px 0 rgba(255,255,255,.92);
}
.hd-id { display: flex; align-items: center; min-width: 0; flex: none; }
.hd-brand { font-size: 17px; font-weight: 900; letter-spacing: 0.16em; color: #111; line-height: 1; white-space: nowrap; }
.hd-brand:hover { color: #111; }
.hd-sys {
  margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--c-line);
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-nav); line-height: 18px; white-space: nowrap;
}
.hd-sys:hover { color: var(--c-nav); }
.hd-nav { display: flex; gap: 26px; margin-left: 6px; }
.hd-nav a { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-nav); white-space: nowrap; transition: color .2s; }
.hd-nav a:hover { color: var(--c-brand); }
.hd-nav a.active { color: var(--c-text); }
.hd-act { margin-left: auto; display: flex; align-items: center; gap: 22px; min-width: 0; }
.hd-job { min-width: 0; }
.hd-job:empty { display: none; }
.job-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-text); white-space: nowrap; }
.job-link:hover { color: var(--c-text); }
.job-link:hover .job-link-label { color: var(--c-brand); }
.job-link .num { font-size: 13.5px; }
.job-link-name { color: var(--c-text-3); font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 220px; }
.hd-user { display: flex; align-items: center; gap: 16px; font-size: 13px; white-space: nowrap; }
.hd-user-name { font-weight: 700; color: var(--c-text-sub); }
.hd-logout {
  border: 0; background: none; padding: 8px 0; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-nav);
}
.hd-logout:hover { color: var(--c-brand); }
/* ユーザー名 → 「パスワードを変える」。名前は文字のまま、開いた先はダイアログと同じ白い面 */
.hd-acct { position: relative; }
.hd-user-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-text-sub);
}
.hd-user-btn:hover, .hd-user-btn[aria-expanded="true"] { color: var(--c-brand); }
.hd-user-btn .hd-user-name { color: inherit; }
.hd-user-btn .chev { width: 12px; height: 12px; stroke-width: 1.9; }
.hd-user-menu {
  position: absolute; top: calc(100% + 14px); right: -22px; z-index: 41;
  padding: 8px 22px; border-radius: 16px; background: var(--c-surface); box-shadow: var(--e2); white-space: nowrap;
}
.hd-menu, .hd-jobmini, .sheet { display: none; }

/* ───── レイアウト ───── */
.container { width: var(--wrap); margin: 0 auto; padding: calc(var(--hd-top) + var(--hd-h) + 48px) 0 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head .hgroup { min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 20px -2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-text-sub); }
.back .ic { width: 14px; height: 14px; }
.card {
  background: var(--c-surface); border-radius: 20px; box-shadow: var(--e1);
  padding: 28px; min-width: 0;
}
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head .eyebrow { margin-bottom: 8px; }
.card-head > .muted { font-size: 12.5px; }
.hgroup { min-width: 0; }

/* ───── ボタン（v8 の .sitehd-cta / .sitehd-ghost と同じ作り） ───── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 56px 0 26px; border: 0; border-radius: 999px;
  font-family: var(--f); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--c-nav);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(17,17,17,.16),
              0 1px 2px rgba(14,26,44,.10), 0 8px 18px -8px rgba(14,26,44,.30);
  transition: transform .3s var(--ease), box-shadow .3s ease, opacity .2s ease, color .2s ease;
}
.btn:hover { color: var(--c-nav); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(17,17,17,.22),
              0 2px 4px rgba(14,26,44,.12), 0 12px 22px -10px rgba(14,26,44,.34); }
.btn .ar {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #111111; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.btn .ar .ic { width: 14px; height: 14px; stroke-width: 2; }
.btn-primary { color: #F6F6F6; background: var(--g-black); box-shadow: var(--e1); }
.btn-primary:hover { color: #F6F6F6; box-shadow: var(--e2); }
.btn-primary .ar { background: #F6F6F6; color: #111111; }
.btn:disabled, .btn.is-disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.btn-primary:disabled:hover { box-shadow: var(--e1); }
/* 軽い操作（編集・書き出し・もっと見る など）: 文字＋「›」。囲まない */
.btn.btn-sm, .btn.btn-ghost {
  min-height: 36px; padding: 0 2px; gap: 5px; border-radius: 0;
  background: none; box-shadow: none; color: var(--c-text-sub);
  font-size: 13px; letter-spacing: 0.06em;
}
.btn.btn-sm:hover, .btn.btn-ghost:hover { color: var(--c-brand); transform: none; box-shadow: none; }
.btn.btn-sm:disabled, .btn.btn-ghost:disabled { color: var(--c-text-sub); }
.btn .chev { width: 13px; height: 13px; stroke-width: 1.9; }
.btn.is-back { flex-direction: row-reverse; }
/* ダイアログの「やめる」など: 文字だけ */
.btn-text {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px;
  border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-text-sub);
}
.btn-text:hover { color: var(--c-brand); }
.btn-text.is-sm { min-height: 36px; padding: 0 2px; font-size: 13px; letter-spacing: 0.06em; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px 14px; flex-wrap: wrap; align-items: center; }

/* ───── 入力（ブランドガイドの形: 地なし・下線 2px） ───── */
.field { margin-bottom: 22px; min-width: 0; }
.field > label { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-text-sub); margin-bottom: 2px; }
.req { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-accent); }
.input {
  display: block; width: 100%; min-width: 0; padding: 10px 0 9px; margin: 0;
  border: 0; border-bottom: 2px solid var(--c-line); border-radius: 0; background: transparent;
  font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--c-text);
  transition: border-color .2s ease;
}
.input:focus { outline: none; border-bottom-color: var(--c-brand); }
.input::placeholder { color: #B3B8BF; font-weight: 500; }
.input:disabled { color: var(--c-text-sub); }
select.input {
  -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232B3442' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 2px center / 14px no-repeat;
}
textarea.input {
  padding: 16px; border: 1px solid var(--c-line); border-radius: 14px; background: #FFFFFF;
  font-weight: 500; line-height: 1.9; resize: vertical;
}
textarea.input:focus { border-color: var(--c-brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-brand); }
.textarea-body { min-height: 300px; font-size: 14.5px; }
.input-inline { width: auto; display: inline-block; min-width: 96px; }
.inline-fields { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search { max-width: 320px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.form-grid .span-2 { grid-column: span 2; }

/* ───── 絞り込み（文字のタブ。現在地は墨にするだけ） ───── */
.filters { margin-bottom: 8px; }
.seg-tabs { display: flex; gap: 0 28px; flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
.seg-tab {
  border: 0; background: none; padding: 10px 0 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-mute); transition: color .2s;
}
.seg-tab:hover { color: var(--c-text-sub); }
.seg-tab.active { color: var(--c-text); }
.seg-count { font-family: var(--f-en); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.filter-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 14px 0 20px; }
.filter-row .search { flex: 0 1 320px; }
.chips { display: flex; gap: 4px 22px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.chip {
  border: 0; background: none; padding: 6px 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-mute); transition: color .2s;
}
.chip:hover { color: var(--c-text-sub); }
.chip.active { color: var(--c-text); }
.chip-count { font-family: var(--f-en); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.chip-tag { color: var(--c-text-sub); gap: 8px; }
.chip-tag:hover { color: var(--c-brand); }
.chip-tag .tag-code { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0; }
.chip-tag .chip-count { font-family: var(--f); font-weight: 500; color: var(--c-text-3); }
.legend { display: flex; gap: 18px; justify-content: flex-end; margin: 0 0 12px; font-size: 12px; color: var(--c-text-3); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--c-seg-ex2); }
.sw-ok { background: var(--c-brand); }
.sw-ok2 { background: var(--c-brand-2); }
.sw-ng { background: var(--c-seg-ng); }
.sw-ex { background: var(--c-seg-ex); }
.sw-ex2 { background: var(--c-seg-ex2); }

/* ───── 進み具合（データの棒） ───── */
.bar { display: flex; height: 6px; width: 100%; background: var(--c-line-soft); border-radius: 999px; overflow: hidden; }
.bar-sm { height: 6px; }
.bar-md { height: 6px; margin-top: 22px; }
.bar-lg { height: 10px; }
.seg { display: block; height: 100%; flex: none; }
.seg-ok { background: var(--c-brand); }
.seg-ok2 { background: var(--c-brand-2); }
.seg-ng { background: var(--c-seg-ng); }
.seg-ex { background: var(--c-seg-ex); }
.seg-ex2 { background: var(--c-seg-ex2); }
.seg-run { background: var(--c-brand); border-radius: 999px; transition: width .6s ease; }

/* ───── 数字（罫線で区切る。塗った箱にしない） ───── */
.big { font-family: var(--f-en); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--c-text); }
.unit { margin-left: 4px; font-family: var(--f); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-text-sub); }
.num-grid { display: grid; gap: 1px; background: var(--c-line-soft); }
.num-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 20px 16px; background: var(--c-surface); color: var(--c-text); }
.num-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-mute); overflow-wrap: anywhere; line-height: 1.5; }
.count-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.count-grid .num-cell:nth-child(4n+1) { padding-left: 0; }
a.num-cell { text-decoration: none; }
a.num-cell:hover .num-label { color: var(--c-brand); }
.count-grid .big { font-size: 26px; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid .num-cell:nth-child(4n+1) { padding-left: 0; }
.stat-grid .big { font-size: 38px; }
.stat-note { font-size: 11.5px; color: var(--c-text-3); }
.import-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 6px; }
.import-stats .num-cell:nth-child(6n+1) { padding-left: 0; }
.import-stats .big { font-size: 24px; }
.import-stats .is-main .num-label { color: var(--c-text); }
.import-stats .is-main .big { color: var(--c-brand); }

/* ───── 案件一覧 ───── */
.campaign-list { display: flex; flex-direction: column; gap: 14px; }
.campaign-card {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) 150px; gap: 32px; align-items: center;
  padding: 24px 28px; color: var(--c-text); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.campaign-card + .campaign-card { margin-top: 0; }
.campaign-card:hover { color: var(--c-text); transform: translateY(-3px); box-shadow: var(--e2); }
.cc-main { min-width: 0; }
.cc-title { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.55; overflow-wrap: anywhere; }
.cc-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--c-text-3); overflow-wrap: anywhere; }
.cc-marks { margin-top: 12px; }
.cc-progress { min-width: 0; }
.cc-nums { display: flex; gap: 4px 20px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--c-text-3); }
.cc-nums .num { margin-left: 5px; font-size: 13px; color: var(--c-text); }
.cc-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 12px; color: var(--c-text-3); }
.cc-side .num { font-size: 13px; font-weight: 600; color: var(--c-text-sub); }

/* ───── 案件詳細 ───── */
.detail-head { margin-bottom: 30px; }
.dh-row { display: flex; justify-content: space-between; gap: 20px 32px; align-items: flex-end; flex-wrap: wrap; }
.dh-titles { min-width: 0; flex: 1 1 380px; }
.dh-title { font-size: 28px; overflow-wrap: anywhere; }
.dh-sub { margin-top: 6px; font-size: 14px; color: var(--c-text-sub); }
.dh-id { margin-top: 4px; color: var(--c-mute); overflow-wrap: anywhere; }
.dh-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 100%; }
.action-note { margin: 0; text-align: right; font-size: 12px; color: var(--c-text-sub); }
.dh-meta { display: flex; gap: 8px 24px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.meta-item { font-size: 12.5px; color: var(--c-text-3); }
.meta-item .num { font-weight: 600; color: var(--c-text-sub); }
.stop-controls { display: inline-flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.stop-note { font-size: 12px; color: var(--c-text-sub); }

/* 送信前の確認（枠や塗りで囲まない） */
.checks { margin: 0 0 30px; }
.checks > h2 { font-size: 16px; margin-bottom: 4px; }
.check-group { margin-top: 12px; }
.check-group-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-text-sub); margin-bottom: 4px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 14px; overflow-wrap: anywhere; }
.check-list li > .ic { margin-top: 4px; }
.checks-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 30px; font-size: 13px; font-weight: 700; }
.checks-ok .lbl { color: var(--c-text-3); font-weight: 500; margin-right: 6px; }

.panel-slot:empty { display: none; }
.panel-slot { margin-bottom: 30px; scroll-margin-top: 96px; }
.tabs { display: flex; gap: 0 30px; border-bottom: 1px solid var(--c-line); margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 0 13px; white-space: nowrap; font-size: 14.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-mute); transition: color .2s; }
.tab:hover { color: var(--c-text-sub); }
.tab.active { color: var(--c-text); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col-main, .col-side { min-width: 0; }
.kv { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--c-text-3); font-size: 12.5px; padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.kv-wide { grid-template-columns: 9em minmax(0, 1fr); margin: 18px 0; }
.kv .big { font-size: 22px; }
.sender-label { margin-bottom: 14px; font-weight: 700; color: var(--c-text); }
.head-tools { display: flex; gap: 6px 22px; align-items: center; flex-wrap: wrap; }
.seg-toggle { display: inline-flex; gap: 16px; }
.seg-toggle button { border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-mute); }
.seg-toggle button:hover { color: var(--c-text-sub); }
.seg-toggle button.active { color: var(--c-text); }
.mail-preview { margin-top: 12px; border: 1px solid var(--c-line); border-radius: 14px; background: #FFFFFF; overflow: hidden; }
.mail-subject { display: flex; gap: 14px; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--c-line-soft); font-weight: 700; overflow-wrap: anywhere; }
.mail-subject > span:first-child { flex: none; font-weight: 500; }
.mail-body { padding: 18px; font-size: 14px; line-height: 1.9; color: var(--c-text-sub); max-height: 560px; overflow-y: auto; }
.tag-buttons { display: flex; gap: 2px 20px; flex-wrap: wrap; align-items: baseline; margin: 12px 0 18px; }
.hold-reason { margin-bottom: 4px; }

/* ───── ダイアログ ───── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px;
  background: rgba(10, 15, 28, 0.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal {
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--c-surface); border-radius: 24px; box-shadow: var(--e3);
}
.modal-wide { max-width: 1000px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 30px 32px 4px; }
.modal-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.modal-x {
  flex: none; width: 40px; height: 40px; margin: -6px -10px 0 0; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: transparent; color: var(--c-text-sub); cursor: pointer;
}
.modal-x:hover { background: #F3F5F8; }
.modal-x .ic { width: 18px; height: 18px; }
.modal-body { padding: 14px 32px 6px; overflow-y: auto; min-height: 0; font-size: 14px; }
.modal-body > p { color: var(--c-text-sub); }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px 12px; padding: 20px 32px 30px; flex-wrap: wrap; }
.lightbox { text-align: center; }
.lightbox img { border: 1px solid var(--c-line); border-radius: 12px; max-height: 70vh; object-fit: contain; }
.radio-list { display: flex; flex-direction: column; border-top: 1px solid var(--c-line-soft); }
.radio-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); cursor: pointer; }
.radio-item:hover { background: var(--c-hover); }
.radio-item input { margin-top: 6px; }
.radio-body { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.radio-body .muted { font-weight: 500; }
.confirm-check { display: flex; gap: 12px; align-items: center; padding: 16px 0 0; margin-top: 8px; border-top: 1px solid var(--c-line-soft); cursor: pointer; font-weight: 700; }
.confirm-check input { width: 18px; height: 18px; }

/* ───── 送信の状況（送信中パネル） ───── */
.job-panel + .job-panel { margin-top: 14px; }
.job-panel .card-head { margin-bottom: 14px; }
.job-controls { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; }
.job-line { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-bottom: 20px; }
.job-mode { font-size: 13px; font-weight: 700; color: var(--c-text-sub); }
.job-sub { font-size: 12.5px; color: var(--c-text-3); }
.job-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.job-progress .bar { flex: 1; }
.job-prog-text { white-space: nowrap; font-size: 12px; color: var(--c-text-sub); }
.job-prog-text .num { font-size: 15px; color: var(--c-text); }
.job-counts { display: flex; flex-wrap: wrap; row-gap: 12px; margin-bottom: 4px; }
.jc { display: flex; flex-direction: column; gap: 4px; padding: 0 26px; border-left: 1px solid var(--c-line-soft); min-width: 0; }
.jc:first-child { padding-left: 0; border-left: 0; }
.jc .big { font-size: 26px; }
.job-current { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-line-soft); font-size: 13px; overflow-wrap: anywhere; }
.job-current > .ic { margin-top: 3px; }
.job-panel .note { margin: 0 0 18px; }
.conn { margin: 12px 0 0; font-size: 12.5px; color: var(--c-text-sub); }
.job-expand { margin-top: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.shot {
  display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none;
  cursor: zoom-in; text-align: left; min-width: 0; color: var(--c-text);
}
.shot img { width: 100%; height: 116px; object-fit: cover; object-position: top; display: block; border: 1px solid var(--c-line); border-radius: 12px; background: #FFFFFF; transition: box-shadow .3s ease, transform .3s var(--ease); }
.shot:hover img { box-shadow: var(--e1); transform: translateY(-2px); }
.shot-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-sub); }
.job-log { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; border-top: 1px solid var(--c-line-soft); }
.log-row { display: grid; grid-template-columns: 72px 132px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--c-line-soft); }
.log-time { padding-top: 1px; white-space: nowrap; font-family: var(--f-en); font-size: 12px; font-weight: 600; color: var(--c-text-3); }
.log-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.log-company { font-size: 14px; font-weight: 700; }
.log-url { overflow-wrap: anywhere; word-break: break-all; color: var(--c-text-3); }
.log-info .log-main { color: var(--c-text-3); }
.results .job-log { max-height: 520px; }
.results .log-row { grid-template-columns: 124px 132px minmax(0, 1fr); }

/* ───── 表（送信先・履歴・操作記録） ───── */
.tbl-head { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-mute); }
.rows-head, .rows-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 168px minmax(0, 1.4fr) 120px; gap: 14px; align-items: start; }
.rows-head { padding: 8px 10px; border-bottom: 1px solid var(--c-line); }
.rows-item { padding: 12px 10px; border-bottom: 1px solid var(--c-line-soft); }
.rows-item:hover { background: var(--c-hover); }
.ri-company { display: flex; gap: 10px; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.ri-line { flex: none; min-width: 2.5em; font-family: var(--f-en); font-weight: 600; color: var(--c-mute); }
.ri-url, .ri-detail { overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.ri-ts { white-space: nowrap; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hist-row { display: grid; grid-template-columns: 132px 132px 96px minmax(0, 1fr) minmax(0, 1.3fr) 136px 104px; gap: 12px; align-items: center; padding: 13px 8px; border-bottom: 1px solid var(--c-line-soft); }
.hist-row:hover { background: var(--c-hover); }
.hist-head { padding-top: 0; border-bottom-color: var(--c-line); }
.hist-head:hover { background: none; }
.hist-act { text-align: right; }
.hl { display: none; }
.audit-row { display: grid; grid-template-columns: 136px 120px 150px minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--c-line-soft); align-items: start; }
.audit-row:hover { background: var(--c-hover); }
.audit-head { padding-top: 0; border-bottom-color: var(--c-line); }
.audit-head:hover { background: none; }

/* ───── 結果 ───── */
.results-card { margin-bottom: 20px; }
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.results-grid .card + .card { margin-top: 0; }
.cert-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cert-list li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--c-line-soft); align-items: baseline; font-size: 13.5px; }
.cert-list li:first-child { border-top: 0; }
.cert-num { white-space: nowrap; font-size: 12px; color: var(--c-text-sub); }
.cert-num .num { font-size: 14px; color: var(--c-text); }
.hbars { list-style: none; margin: 0; padding: 0; }
.hbar { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 7px 0; }
.hbar-label { font-size: 13.5px; overflow-wrap: anywhere; }
.hbar-track { height: 6px; background: var(--c-line-soft); border-radius: 999px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--c-seg-ng); border-radius: 999px; }
.hbar-num { white-space: nowrap; color: var(--c-text-sub); }
.hbar-num .num { color: var(--c-text); }
.day-table { display: flex; flex-direction: column; }
.day-row { display: grid; grid-template-columns: 7.5em 4.5em 4.5em 4.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--c-line-soft); align-items: center; }
.day-row .num { font-weight: 600; }
.day-head { border-top: 0; }

/* ───── 新しい案件 ───── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0 0 30px; border-bottom: 1px solid var(--c-line); }
.step { display: flex; align-items: center; gap: 12px; padding: 0 12px 16px 0; color: var(--c-mute); min-width: 0; }
.step-num { font-family: var(--f-en); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.step-name { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.active { color: var(--c-text); }
.step.done { color: var(--c-text-sub); }
.wizard-body > .card + .card, .wizard-body > .card + div, .wizard-body > div + .card { margin-top: 20px; }
.import-result:not(:empty) { margin-top: 20px; }
.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.dropzone { border: 1px dashed var(--c-ring); border-radius: 16px; padding: 40px 24px 36px; text-align: center; transition: background .2s ease, border-color .2s ease; }
.dropzone.is-over { background: var(--c-hover); border-color: var(--c-brand); }
.dz-icon { display: block; width: 30px; height: 30px; margin: 0 auto 14px; color: var(--c-text-sub); stroke-width: 1.4; }
.dz-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.dropzone .btn { margin-top: 16px; }
.paste-box { margin-top: 18px; }
.paste-box summary { cursor: pointer; color: var(--c-text-sub); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.paste-box summary:hover { color: var(--c-brand); }
.paste-box .btn-row { margin-top: 12px; }
.map-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.sample-grid .card + .card { margin-top: 0; }
.sample-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.sample-list li { display: flex; flex-direction: column; padding: 9px 0; border-top: 1px solid var(--c-line-soft); min-width: 0; overflow-wrap: anywhere; }
.sample-list li:first-child { border-top: 0; }
.sample-name { font-weight: 700; }
.sample-reason { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--c-text-3); }
.id-preview { margin: 4px 0 0; color: var(--c-text-sub); overflow-wrap: anywhere; }
.compose-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.compose-grid .card + .card { margin-top: 0; }
.compose-preview .mail-body { max-height: 480px; }

/* ───── 差出人 ───── */
.sender-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.sender-list { display: flex; flex-direction: column; min-width: 0; padding: 8px 24px; background: var(--c-surface); border-radius: 20px; box-shadow: var(--e1); }
.sender-item {
  display: flex; flex-direction: column; text-align: left; padding: 14px 0; min-width: 0; overflow-wrap: anywhere;
  border: 0; border-bottom: 1px solid var(--c-line-soft); background: none; cursor: pointer; color: var(--c-text-3); transition: color .2s;
}
.sender-item:last-child { border-bottom: 0; }
.sender-item > span:first-child { font-weight: 700; font-size: 14px; }
.sender-item:hover { color: var(--c-text-sub); }
.sender-item.active { color: var(--c-text); }
.sender-form .form-grid { margin-top: 10px; }

/* ───── ログイン ───── */
body[data-page="login"] .hd, body[data-page="login"] .sheet { display: none; }
body[data-page="login"] .container { padding-top: 13vh; }
.login-wrap { display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 420px; padding: 44px 40px 40px; border-radius: 24px; box-shadow: var(--e2); }
.login-mark { font-size: 17px; font-weight: 900; letter-spacing: 0.16em; line-height: 1; color: #111; }
.login-sys { margin: 12px 0 28px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-nav); }
.login-card .btn { margin-top: 12px; }

/* ───── 通知 ───── */
.toast-area { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; width: calc(100% - 32px); max-width: 480px; pointer-events: none; }
.toast {
  display: flex; gap: 10px; align-items: flex-start; max-width: 100%;
  padding: 14px 20px; border-radius: 16px; background: var(--c-surface); box-shadow: var(--e2);
  font-size: 14px; font-weight: 700; overflow-wrap: anywhere;
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; pointer-events: auto;
}
.toast > .ic { margin-top: 4px; }
.toast.show { opacity: 1; transform: none; }

/* ───── 中くらいの幅 ───── */
@media (max-width: 1180px) {
  .job-link-name, .hd-user-name { display: none; }
  .hd { gap: 22px; }
  .hd-nav { gap: 20px; }
}
@media (max-width: 960px) {
  .overview-grid, .results-grid, .compose-grid { grid-template-columns: minmax(0, 1fr); }
  .results-grid .card + .card, .compose-grid .card + .card { margin-top: 0; }
  .campaign-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; }
  .cc-side { grid-column: 1 / -1; flex-direction: row; gap: 8px; justify-content: flex-end; }
  .hist-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .hist-head { display: none; }
  .hl { display: block; font-size: 11.5px; font-weight: 700; color: var(--c-mute); letter-spacing: 0.04em; }
  .hist-act { text-align: left; }
  .import-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .import-stats .num-cell:nth-child(6n+1) { padding-left: 20px; }
  .import-stats .num-cell:nth-child(3n+1) { padding-left: 0; }
  .sender-layout { grid-template-columns: minmax(0, 1fr); }
  .rows-head { display: none; }
  .rows-item { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .ri-company { grid-column: 1; }
  .ri-state { grid-column: 2; grid-row: 1; justify-self: end; }
  .ri-url, .ri-detail, .ri-ts { grid-column: 1 / -1; }
  .audit-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .audit-head { display: none; }
}

/* ───── スマホ幅 ───── */
/* ───── 1023px 以下: ヘッダーはメニューボタンにしまう（v8 と同じ区切り） ───── */
@media (max-width: 1023px) {
  .hd { gap: 0; padding-right: 8px; }
  .hd-nav, .hd-act { display: none; }
  .hd-jobmini { display: flex; margin-left: auto; min-width: 0; }
  .hd-jobmini:empty { display: none; }
  .hd-jobmini .job-link { height: 44px; padding: 0 8px; gap: 5px; }
  .hd-jobmini .num { font-size: 12px; }
  .hd-menu {
    position: relative; display: inline-flex; flex: none; margin-left: auto;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(20,32,50,.14);
    -webkit-tap-highlight-color: transparent;
  }
  .hd-jobmini:not(:empty) + .hd-menu { margin-left: 2px; }
  .hd-menu i {
    position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
    border-radius: 2px; background: #111; transition: transform .32s var(--ease);
  }
  .hd-menu i:nth-child(1) { transform: translateY(-4px); }
  .hd-menu i:nth-child(2) { transform: translateY(4px); }
  .is-menu .hd-menu i:nth-child(1) { transform: rotate(45deg); }
  .is-menu .hd-menu i:nth-child(2) { transform: rotate(-45deg); }
  html.is-menu { overflow: hidden; }
  .sheet {
    display: block; position: fixed; inset: 0; z-index: 39; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--hd-top) + var(--hd-h) + 26px) 16px calc(32px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(242,243,244,.97) 0%, rgba(230,232,235,.97) 100%);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s;
  }
  .is-menu .sheet { opacity: 1; visibility: visible; transition: opacity .32s ease; }
  .sheet-in { max-width: 640px; margin: 0 auto; }
  .sheet-job:empty { display: none; }
  .sheet-job { margin-bottom: 18px; }
  .sheet-job .job-link { white-space: normal; flex-wrap: wrap; font-size: 14px; }
  .sheet-job .job-link-name { display: block; max-width: none; flex-basis: 100%; padding-left: 24px; }
  .sheet-nav { display: flex; flex-direction: column; border-top: 1px solid rgba(17,17,17,.13); }
  .sheet-nav a {
    position: relative; display: flex; align-items: center; min-height: 60px; padding: 0 52px 0 2px;
    border-bottom: 1px solid rgba(17,17,17,.13);
    font-size: 17px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-text-sub);
    -webkit-tap-highlight-color: transparent;
  }
  .sheet-nav a.active { color: #111; }
  .sheet-nav .ar {
    position: absolute; right: 2px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(20,32,50,.18); color: #111;
    display: flex; align-items: center; justify-content: center;
  }
  .sheet-nav .ar .ic { width: 13px; height: 13px; stroke-width: 2; }
  .sheet-user { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; }
  .sheet-user-name { font-weight: 700; color: var(--c-text-sub); }
  .sheet-user-id { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  .hd-logout { font-size: 14px; padding: 10px 0; }
}

@media (max-width: 760px) {
  :root { --hd-top: 10px; --hd-h: 56px; --wrap: calc(100% - 32px); }
  body { font-size: 14.5px; }
  h1, .dh-title { font-size: 22px; }
  .hd { width: calc(100% - 20px); padding: 0 6px 0 18px; gap: 0; }
  .hd-brand { font-size: 15px; letter-spacing: 0.14em; }
  .hd-sys { margin-left: 12px; padding-left: 12px; font-size: 12.5px; letter-spacing: 0.06em; }

  .page-head { margin-bottom: 22px; }
  .card { padding: 22px 20px; border-radius: 18px; }
  .campaign-card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .cc-side { justify-content: flex-start; }
  .filter-row .search, .search { flex: 1 1 100%; max-width: none; }
  .seg-tabs { gap: 0 20px; }
  .legend { justify-content: flex-start; }
  .dh-actions { align-items: stretch; width: 100%; }
  .dh-actions .btn-row { flex-direction: column; align-items: stretch; }
  .dh-actions .btn-row > .btn, .dh-actions .stop-controls { width: 100%; }
  .dh-actions .stop-controls { flex-direction: column; align-items: stretch; }
  .dh-actions .stop-controls .btn { width: 100%; }
  .action-note { text-align: left; }
  .count-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .count-grid .num-cell:nth-child(4n+1), .stat-grid .num-cell:nth-child(4n+1) { padding-left: 20px; }
  .count-grid .num-cell:nth-child(2n+1), .stat-grid .num-cell:nth-child(2n+1) { padding-left: 0; }
  .stat-grid .big { font-size: 30px; }
  .form-grid, .map-grid, .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .import-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-stats .num-cell:nth-child(3n+1) { padding-left: 20px; }
  .import-stats .num-cell:nth-child(2n+1) { padding-left: 0; }
  .kv-wide { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv-wide dd { margin-bottom: 10px; }
  .log-row, .results .log-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
  .log-row .log-main { grid-column: 1 / -1; }
  .hbar { grid-template-columns: minmax(0, 1fr) auto; }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .day-row { grid-template-columns: 6.5em repeat(3, minmax(0, 1fr)); }
  .day-bar-col { display: none; }
  .hist-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .cert-list li > .muted { grid-column: 1 / -1; grid-row: 2; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--c-line-soft); }
  .jc { padding: 10px 0 12px 18px; border-left: 0; background: var(--c-surface); }
  .jc:nth-child(2n+1) { padding-left: 0; }
  .job-counts .jc:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .job-progress { flex-wrap: wrap; gap: 10px 14px; }
  .modal-overlay { padding: 12px; }
  .modal { max-height: calc(100vh - 24px); border-radius: 22px; }
  .modal-head { padding: 24px 22px 2px; }
  .modal-body { padding: 12px 22px 4px; }
  .modal-foot { padding: 18px 22px 24px; flex-direction: column-reverse; align-items: stretch; }
  .modal-foot .btn, .modal-foot .btn-text { width: 100%; }
  .steps { gap: 0 8px; }
  .step { flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 0; }
  .step-name { font-size: 12.5px; max-width: 100%; }
  .wizard-foot .btn:not(.btn-sm) { flex: 1 1 auto; }
  .login-card { padding: 36px 24px 30px; }
  body[data-page="login"] .container { padding-top: 10vh; }
}

@media (prefers-reduced-motion: reduce) {
  .ic-spin { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
.modal .checks { margin: 14px 0; }
.compose-checks .check-group:first-child { margin-top: 0; }

/* ───── すべての送信を止める（admin のヘッダーのメニューと、全画面の上部の注意） ───── */
.hd-stopall { display: inline-flex; align-items: center; gap: 6px; }
.hd-stopall .ic { width: 14px; height: 14px; }
.stopall-slot { width: var(--wrap); margin: 0 auto; padding-top: calc(var(--hd-top) + var(--hd-h) + 32px); }
.stopall-slot:not([hidden]) + .container { padding-top: 22px; }
.note-stopall { margin: 0; }
.stopall-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.stopall-release.btn.btn-sm { min-height: 28px; }
.sheet-stopall { margin-top: 18px; }
/* 中くらいの幅では文字をしまってアイコンだけにする（実行中の案件名の場所を残す。名前は title と aria-label） */
@media (max-width: 1280px) {
  .hd-stopall-label { display: none; }
  .hd .hd-stopall { min-width: 32px; justify-content: center; }
}
@media (max-width: 760px) {
  .stopall-slot { padding-top: calc(var(--hd-top) + var(--hd-h) + 24px); }
}
