/* Global CRM — 管理画面
   メインカラー1色 + グレー。区切りは余白で行い、枠と影は最小限にする。 */

:root {
  /* Neutral 階調(背景・Surface・境界・文字)。真っ黒・純白だけにしない */
  --n0: #ffffff;
  --n50: #f7f8fa;
  --n100: #f0f2f5;
  --n200: #e3e6eb;
  --n300: #cdd2da;
  --n500: #5b6376;
  --n700: #4b5365;
  --n900: #1b1f2a;
  --bg: var(--n0);
  --surface: var(--n50);
  --subtle: var(--n50);
  --hover: var(--n100);
  --line: var(--n200);
  --text: var(--n900);
  --text-2: var(--n700);
  --text-3: var(--n500);
  /* 意味のある色だけ: Blue=主要操作 / Green=完了 / Amber=注意 / Red=問題 */
  --main: #2f5fd6;
  --main-hover: #2550b8;
  --main-soft: #e9effc;
  --ok: #1f9d6b;
  --ok-text: #15774f;
  --ok-soft: #e6f5ee;
  --warn: #c2861a;
  --warn-text: #8a5a00;
  --warn-soft: #fbf1dc;
  --bad: #d14343;
  --bad-text: #a83232;
  --bad-soft: #fbe7e7;
  /* 8px 系の間隔と角丸 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --r: 6px;
  --r-sm: 6px;
  --shadow: none;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* テンプレート内の指定が参照する別名 */
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-3: var(--text-3);
  --paper: var(--subtle);
  --accent: var(--main);
  --serif: var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 12.5px var(--mono); background: var(--subtle); padding: 1px 5px; border-radius: 4px; }

/* ---- 骨格 ---- */

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 12px 16px;
  background: var(--subtle);
  border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand::before {
  content: "G"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--main); color: #fff; font-size: 13px; font-weight: 600;
}
.brand small { display: none; }

.nav { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); padding: 16px 10px 6px; }
.nav-group:first-child { padding-top: 0; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: background 0.12s, color 0.12s;
}
.nav a svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--n100); color: var(--text); font-weight: 600; }
.nav a.on svg { stroke: var(--main); }
.nav a .io { width: 18px; height: 18px; stroke-width: 1.75; }
.nav .count {
  margin-left: auto; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 0 7px; border-radius: 10px; background: var(--main-soft); color: var(--main);
}

.side-foot { margin-top: auto; padding: 12px 10px 0; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
.side-foot .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--hover); color: var(--text-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.side-foot strong { display: block; color: var(--text); font-weight: 500; font-size: 13px; line-height: 1.3; }
.side-foot a { font-size: 12px; color: var(--text-3); margin-right: 8px; }
.side-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.side-foot button { all: unset; cursor: pointer; }
.side-foot button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.main { padding: 32px 40px 88px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---- 見出し ---- */

.crumb { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.crumb a:hover { color: var(--text); }

.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.head h1 { font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head .sub { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.head .actions { display: flex; gap: 8px; flex-shrink: 0; }

.label, th { font-size: 12.5px; font-weight: 500; color: var(--text-3); line-height: 1.4; }

h2.section { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 16px; color: var(--text); }
h2.section.first { margin-top: 0; display: flex; justify-content: space-between; align-items: baseline; }
h2.section a { font-size: 13px; font-weight: 500; color: var(--main); }
h2.section a:hover { color: var(--main-hover); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12.5px; font-weight: 500; background: var(--hover); color: var(--text-2); letter-spacing: 0; white-space: nowrap; }
.badge.accent { background: var(--main-soft); color: var(--main); }
.badge.ok { background: var(--ok-soft); color: #15774f; }
.badge.wait { background: var(--warn-soft); color: #8a5a00; }
.badge.bad { background: var(--bad-soft); color: #a83232; }
.badge.none { background: var(--hover); color: var(--text-3); }
.badge.small { height: 18px; font-size: 11px; padding: 0 7px; }

/* ---- 次のイベント ---- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 28px 32px; border-radius: 12px; background: var(--subtle); margin-bottom: 20px;
}
.hero .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.hero .title { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; margin-top: 8px; }
.hero .meta { color: var(--text-2); margin-top: 2px; }
.hero .progress { margin-top: 20px; max-width: 360px; }
.hero .progress .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.hero .progress .row b { color: var(--text); font-weight: 600; }
.hero .side-actions { display: flex; flex-direction: column; gap: 8px; min-width: 168px; }

.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--main); min-width: 0; }

/* ---- 対応が必要なこと ---- */

.todos { display: grid; gap: 8px; margin-bottom: 20px; }
.todo {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r);
  background: var(--main-soft); color: var(--text); font-size: 13.5px;
}
.todo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--main); flex-shrink: 0; }
.todo span { flex: 1; }
.todo a { color: var(--main); font-weight: 600; white-space: nowrap; }
.todo a:hover { color: var(--main-hover); }

/* ---- 主要な数字 ---- */

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); }
.figures > div { padding: 20px 24px 22px; }
.figures > div + div { border-left: 1px solid var(--line); }
.figures .num { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.figures .num small { font-size: 14px; color: var(--text-3); letter-spacing: 0; margin-left: 4px; font-weight: 500; }
.figures .note { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ---- 内訳 ---- */

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; font-size: 13.5px; }
.bar .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--hover); margin-top: 6px; overflow: hidden; }
.bar .track i { display: block; height: 100%; border-radius: 3px; background: var(--main); opacity: 0.45; }
.bar:first-child .track i { opacity: 1; }
.empty { color: var(--text-3); font-size: 13.5px; padding: 4px 0; }

/* ---- イベントの並び ---- */

.itinerary { display: grid; gap: 2px; margin: 0 -16px; }
.leg {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 200px 16px; gap: 20px; align-items: center;
  padding: 14px 16px; border-radius: var(--r); transition: background 0.12s;
}
.leg:hover { background: var(--subtle); }
.leg .when { font-size: 12.5px; font-weight: 500; color: var(--text-2); line-height: 1.35; }
.leg .when b { display: block; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.leg .city { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.leg .what { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .count { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.leg .count b { color: var(--text); font-weight: 600; }
.leg .count .meter { margin-top: 6px; }
.leg .go { color: var(--text-3); font-size: 16px; opacity: 0; transition: opacity 0.12s; }
.leg:hover .go { opacity: 1; }

/* ---- 表 ---- */

.table-wrap { margin: 0 -12px; }
@media (max-width: 1100px) { .table-wrap { overflow-x: auto; } }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 0 12px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
td { padding: 11px 12px; border-bottom: 1px solid var(--subtle); vertical-align: middle; }
table.compact td { padding: 11px 12px; }
table.compact th { padding-bottom: 8px; }
td.nowrap, th.nowrap { white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--subtle); }
tbody tr:hover td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
tbody tr:hover td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
tr[data-href] { cursor: pointer; }
td .who { font-weight: 600; }
td .who a:hover { color: var(--main); }
td .mail { font-size: 13px; color: var(--text-3); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.muted { color: var(--text-2); }
tr.hidden { display: none; }

.code {
  display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: 0.04em;
  padding: 4px 5px; border-radius: 5px; color: var(--text-2); margin-right: 8px; background: var(--hover);
}

.state { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--hover); color: var(--text-2); }
.state.ok { background: var(--ok-soft); color: #15774f; }
.state.wait { background: var(--warn-soft); color: #8a5a00; }
.state.bad { background: var(--bad-soft); color: #a83232; }
.state.none { background: var(--hover); color: var(--text-3); }

.vip { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--main); background: var(--main-soft); padding: 2px 6px; border-radius: 5px; margin-left: 8px; vertical-align: 1px; line-height: 1.3; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--text-2); white-space: nowrap; }

/* ---- 絞り込み ---- */

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.toolbar input[type="search"] { max-width: 300px; }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--hover); gap: 2px; }
.seg button { all: unset; cursor: pointer; padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.seg button small { color: var(--text-3); margin-left: 4px; font-variant-numeric: tabular-nums; }

.filters { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(5, minmax(0, 1fr)) auto; gap: 8px; margin-bottom: 12px; }
.filter-note { font-size: 13px; color: var(--text-2); margin-bottom: 20px; min-height: 20px; }
.filter-note a { color: var(--main); font-weight: 500; margin-left: 8px; }

/* ---- ボタンと入力 ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--main);
  background: var(--main); color: #fff; font-weight: 500; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow); transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--main-hover); border-color: var(--main-hover); }
.btn.ghost { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--subtle); border-color: #d6d9e0; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn.large { height: 44px; padding: 0 22px; font-size: 15px; }
.btn.danger { background: var(--bg); color: var(--bad); border-color: var(--line); }
.btn.danger:hover { border-color: var(--bad); background: var(--bg); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

.check {
  all: unset; cursor: pointer; font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 7px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); white-space: nowrap;
}
.check:hover { box-shadow: inset 0 0 0 1px var(--text-3); color: var(--text); }
.check.on { background: var(--main-soft); box-shadow: none; color: var(--main); }
.check.on::before { content: "✓ "; }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; height: 38px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); outline: none;
  box-shadow: var(--shadow); transition: border-color 0.12s, box-shadow 0.12s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238c93a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-position: calc(100% - 12px) 50%; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.form-actions { display: flex; gap: 8px; margin-top: 28px; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--hover); color: var(--text-2); }
.chips input:checked + span { background: var(--main-soft); color: var(--main); }
.chips input:focus-visible + span { outline: 2px solid var(--main); outline-offset: 2px; }

.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.toggle input { width: 16px; height: 16px; accent-color: var(--main); }

/* ---- タブ ---- */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 24px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 12px 10px; font-size: 15px; color: var(--text-2); font-weight: 500; margin-bottom: -1px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--main); }
.tabs a small { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-left: 6px; font-variant-numeric: tabular-nums; }
.tabs a small.attn { color: #8a5a00; background: var(--warn-soft); padding: 0 6px; border-radius: 9px; }

/* ---- パネル・通知 ---- */

.panel { background: var(--subtle); border-radius: 12px; padding: 28px; }
.panel h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.panel p.desc { color: var(--text-2); font-size: 13.5px; margin-bottom: 20px; }
.panel .big { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.panel .big small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }

.notice { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r); background: var(--subtle); color: var(--text-2); font-size: 13.5px; margin-bottom: 24px; }
.notice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; margin-top: 8px; }
.notice.bad { color: var(--bad-text); }
.notice.bad::before { background: var(--bad); }
.notice.ok::before { background: var(--ok); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.aside-block + .aside-block { margin-top: 36px; }
.aside-block > .label { margin-bottom: 10px; }
.aside-block p.help { font-size: 13px; color: var(--text-2); margin-top: 10px; }

.dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; font-size: 13.5px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; }

.url { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--subtle); border-radius: var(--r-sm); }
.url span { flex: 1; font: 12.5px/1.5 var(--mono); word-break: break-all; }
.qr { width: 160px; height: 160px; display: block; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 4px; }

.list-row { padding: 12px 0; border-bottom: 1px solid var(--subtle); font-size: 13.5px; }
.list-row:last-child { border-bottom: none; }
.list-row .t { font-weight: 600; }
.list-row .t:hover { color: var(--main); }
.list-row .s { color: var(--text-2); font-size: 13px; }

details.mail-body summary { cursor: pointer; list-style: none; font-weight: 500; }
details.mail-body summary::-webkit-details-marker { display: none; }
details.mail-body summary:hover { color: var(--main); }
details.mail-body pre { white-space: pre-wrap; font: 13px/1.7 var(--sans); background: var(--subtle); padding: 14px 16px; border-radius: var(--r-sm); margin: 10px 0 2px; color: var(--text-2); }

.quote { padding: 16px 0; border-bottom: 1px solid var(--subtle); max-width: 720px; }
.quote p { font-size: 15px; line-height: 1.7; }
.quote footer { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.quote footer a { color: var(--text-2); font-weight: 500; }

.pager { display: flex; gap: 16px; align-items: center; justify-content: flex-end; margin-top: 24px; font-size: 13px; color: var(--text-3); }
.pager a { color: var(--main); font-weight: 500; }

dialog { border: 1px solid var(--line); border-radius: 8px; padding: 28px; width: min(540px, calc(100vw - 32px)); background: var(--bg); color: var(--text); box-shadow: 0 16px 48px rgba(20, 23, 31, 0.16); }
dialog::backdrop { background: rgba(20, 23, 31, 0.36); }
dialog h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 24px; }

/* ---- ログイン ---- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--subtle); }
.auth-box { width: min(400px, 100%); background: var(--bg); border-radius: 12px; padding: 36px; box-shadow: var(--shadow), 0 8px 24px rgba(20, 23, 31, 0.04); }
.auth-box .brand { padding: 0; font-size: 16px; }
.auth-box h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 28px; }
.auth-box p.sub { color: var(--text-2); margin-top: 4px; }
.auth-box form { margin-top: 28px; display: grid; gap: 18px; }
.auth-box .btn { height: 40px; margin-top: 6px; }
.auth-box .notice { margin: 0; }

/* ---- 狭い画面 ---- */

@media (max-width: 1080px) {
  .main { padding: 32px 32px 80px; }
  .cols { gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { position: sticky; z-index: 5; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .side::-webkit-scrollbar { display: none; }
  .brand { padding: 0; font-size: 0; gap: 0; }
  .side-foot { display: none; }
  .nav { margin: 0; flex-direction: row; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .nav a svg { display: none; }
  .main { padding: 24px 16px 64px; }
  .head { flex-direction: column; margin-bottom: 28px; }
  .head h1 { font-size: 22px; }
  .head .actions { width: 100%; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .hero .title { font-size: 24px; }
  .hero .side-actions { flex-direction: row; flex-wrap: wrap; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div { padding: 16px 18px; }
  .figures > div:nth-child(3) { border-left: none; }
  .figures > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .figures .num { font-size: 26px; }
  .cols, .cols.two, .form-grid, .form-grid.three { grid-template-columns: 1fr; gap: 32px; }
  .form-grid.three { gap: 8px; }
  .form-grid { gap: 16px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input[type="search"] { grid-column: 1 / -1; }
  .leg { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; }
  .leg .count .meter, .leg .go { display: none; }
  .toolbar input[type="search"] { max-width: none; flex-basis: 100%; }
  .seg { overflow-x: auto; max-width: 100%; }
  .todo { flex-wrap: wrap; }
  h2.section { margin-top: 44px; }
  .panel { padding: 22px 20px; }
  .auth-box { padding: 28px 24px; }
}

/* ---- コンシェルジュ受信箱 ---- */

.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.threads { display: grid; gap: 2px; margin: 0 -12px; }
.thread { display: block; padding: 12px; border-radius: var(--r-sm); transition: background 0.12s; }
.thread:hover { background: var(--subtle); }
.thread.on { background: var(--main-soft); }
.thread .t { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.thread .s { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.convo { display: grid; gap: 22px; padding: 24px 0; }
.convo .m { max-width: 85%; }
.convo .m .who { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.convo .m .b { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 16px; border-radius: var(--r); background: var(--subtle); }
.convo .m.concierge { justify-self: end; }
.convo .m.concierge .b { background: var(--main-soft); }
.convo .m.concierge .who { text-align: right; }
.convo .m.system .b { background: none; padding: 0; color: var(--text-3); font-size: 13px; }
.reply { border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 1080px) { .inbox { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Today と受付(タブレットで押しやすい大きさ) */
.today-card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.today-card:last-of-type { border-bottom: none; }
.today-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.today-head .city { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.today-head .what { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.rx-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rx-row[hidden] { display: none; }
.rx-row.in { background: linear-gradient(to right, var(--main-soft) 0, var(--main-soft) 3px, transparent 3px); padding-left: 14px; }
.rx-main { min-width: 0; flex: 1; }
.rx-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.rx-sub { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.rx-guest { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 14px; }
.rx-guest-name { font-weight: 600; }
.rx-guest .s { color: var(--text-2); font-size: 13px; }
.rx-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.rx-act .btn.large { min-width: 132px; height: 48px; }
.rx-done { font-size: 14px; font-weight: 600; color: var(--main); white-space: nowrap; }
.rx-row .check { min-height: 36px; }
.tag.care { background: #fbf3e2; color: #8a5a00; }
.brief { padding: 20px 0; border-bottom: 1px solid var(--line); }
.brief-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.brief-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brief .s { color: var(--text-2); font-size: 13px; margin-top: 2px; }
@media (max-width: 640px) {
  .rx-row { flex-direction: column; }
  .rx-act { flex-direction: row; align-items: center; width: 100%; }
  .rx-act .btn.large { flex: 1; }
}

/* ---- 公開ページ・当日運営(Event Experience / Operations) ---- */

.i18n-table th { text-align: left; vertical-align: top; padding-top: 12px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.i18n-table td { padding: 6px 6px 6px 0; }
.i18n-table input, .i18n-table textarea { width: 100%; height: 32px; font-size: 13px; }
.i18n-table textarea { height: auto; line-height: 1.5; }
.item-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.item-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.item-head .grow { flex: 1; }
.item-media { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.item-media img { height: 64px; width: 96px; object-fit: cover; border-radius: var(--r-sm); background: var(--subtle); }
.seat-plan { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.seat-table { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.seat-table-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.seat-table-head form { margin-left: auto; }
.seats { display: grid; gap: 6px; margin-top: 10px; }
.seat { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: var(--r-sm); background: var(--subtle); font-size: 13px; min-height: 34px; }
.seat.taken { background: var(--main-soft); }
.seat .n { font: 12px var(--mono); color: var(--text-3); min-width: 20px; }
.seat .who small { display: block; font-size: 11.5px; color: var(--text-3); }
.ops-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ros-live td { background: #eefaf4; }
@media (max-width: 900px) {
  .ops-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seat-plan { grid-template-columns: 1fr; }
}

/* ---- ホーム(今日やること) ---- */

.greet h1 { font-size: 20px; }
.quiet { color: var(--text-3); font-size: 15px; padding: 6px 0; }
.todos { display: grid; gap: 4px; }
.todo {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--subtle); color: var(--text); font-size: 15px;
}
.todos .todo:last-child { border-bottom: none; }
.todo::before { content: none; }
.todo:hover span { color: var(--main); }
.todo span { flex: 1; }
.todo em { font-style: normal; color: var(--main); font-weight: 600; white-space: nowrap; font-size: 13px; }
.todo em::after { content: " \2192"; }

.next { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 4px 0 8px; }
.next-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.next-title a:hover { color: var(--main); }
.next-title .muted { font-size: 13px; font-weight: 500; }
.next-meta { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.next-actions { display: flex; gap: 8px; flex-shrink: 0; }
.stats { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.stats > div { display: block; }
.stats .label, .stats .note { display: block; }
.stats .label { font-size: 13px; }
.stats b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats small { font-size: 13.5px; color: var(--text-3); margin-left: 3px; font-weight: 500; }
.stats .note { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.stats .stats-meter { flex: 1; min-width: 160px; max-width: 280px; align-self: center; }
.stats.strip { gap: 0; margin: 0 0 4px; border: 1px solid var(--line); border-radius: var(--r); padding: 0; }
.stats.light { gap: 48px; margin: 4px 0 8px; align-items: flex-start; }
.stats.light b { font-size: 28px; }
.stats.light .note { max-width: 260px; }
.stats.strip > div { padding: 12px 18px; flex: 1; min-width: 150px; }
.stats.strip > div + div { border-left: 1px solid var(--line); }
.stats.strip b { font-size: 22px; }
.figures-line { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.figures-line b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.figures-line a { color: var(--main); font-weight: 500; }
.figures-line .num { display: inline; font-size: inherit; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.figures-line .num small { font-size: inherit; color: var(--text-3); margin-left: 1px; font-weight: 500; }

.zero { padding: 40px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }
.zero h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.zero p { color: var(--text-2); font-size: 15px; margin-bottom: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }
.zero.small { padding: 20px; }
.zero.small p { margin-bottom: 10px; }

/* ---- 催しの画面: 2 段のタブ ---- */

.subtabs { display: flex; gap: 2px; margin: -10px 0 20px; flex-wrap: wrap; }
.subtabs a { padding: 5px 11px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--subtle); }
.subtabs a:hover { color: var(--text); background: var(--hover); }
.subtabs a.on { background: var(--main-soft); color: var(--main); }
.subtabs a small { font-size: 12px; color: inherit; opacity: 0.75; margin-left: 5px; font-variant-numeric: tabular-nums; }

tr[data-href] td .who a:hover { color: var(--main); }

@media (max-width: 820px) {
  .next { flex-direction: column; }
  .next-actions { width: 100%; }
  .stats.strip { flex-direction: column; }
  .stats.strip > div + div { border-left: none; border-top: 1px solid var(--line); }
}

/* ---- 左下のプロフィールメニュー ---- */

.side-foot { display: none; }
.profile { margin-top: auto; position: relative; }
.profile summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; color: var(--text-2); font-size: 14px; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary:hover, .profile[open] summary { background: var(--hover); color: var(--text); }
.profile .avatar { width: 28px; height: 28px; border-radius: 50%; background: #e2e5ec; color: var(--text-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.profile-name { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile summary svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.profile-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; box-shadow: 0 8px 24px rgba(20, 23, 31, 0.10); display: grid; gap: 2px; }
.profile-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--subtle); margin-bottom: 4px; }
.profile-head strong { display: block; font-weight: 600; font-size: 14px; }
.profile-head span { display: block; font-size: 12.5px; color: var(--text-3); word-break: break-all; }
.profile-menu a, .profile-menu button { all: unset; cursor: pointer; display: block; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); }
.profile-menu a:hover, .profile-menu button:hover { background: var(--hover); }
.profile-menu form { display: contents; }

/* ---- 「その他」メニュー(主ボタンは 1 画面に 1 つ) ---- */

details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 4px; opacity: 0.7; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; box-shadow: 0 8px 24px rgba(20, 23, 31, 0.10); z-index: 20; display: grid; gap: 2px; }
.menu-list a { display: block; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; white-space: nowrap; }
.menu-list a:hover { background: var(--hover); }

/* ---- 催しの概要: 準備状況・流れ・次にすること ---- */

.ready { padding: 2px 0 6px; border-bottom: 1px solid var(--line); }
.ready-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ready-title { font-weight: 600; }
.ready-count { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ready-count b { color: var(--text); font-weight: 600; font-size: 22px; }
.ready-ok { color: #15774f; font-weight: 500; }
.ready-missing { color: #a83232; font-weight: 600; }
.ready .grow { flex: 1; }
.ready-missing-list { margin: 6px 0 10px; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.ready-missing-list li { margin: 2px 0; }
.ready-missing-list a { color: var(--text); font-weight: 500; }
.ready-missing-list a:hover { color: var(--main); }
details.ready-all { margin-top: 10px; font-size: 14px; }
details.ready-all summary { cursor: pointer; color: var(--text-3); list-style: none; }
details.ready-all summary::-webkit-details-marker { display: none; }
details.ready-all summary:hover { color: var(--text); }
details.ready-all ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
details.ready-all li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
details.ready-all li.done a { color: var(--text-2); }
details.ready-all li.todo a { color: #a83232; font-weight: 500; }
details.ready-all li .muted { white-space: nowrap; }

.flow { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.flow .step { position: relative; display: flex; flex-direction: column; padding: 0 40px 0 0; min-width: 160px; }
.flow .step + .step { padding-left: 28px; }
.flow .step + .step::before { content: ""; position: absolute; left: 0; top: 30px; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-top: 1.5px solid var(--text-3); transform: rotate(45deg); }
.flow .label { font-size: 13px; }
.flow b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.flow b.text { font-size: 20px; }
.flow b small { font-size: 13.5px; color: var(--text-3); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.flow .note { font-size: 13px; color: var(--text-3); margin-top: 3px; }

.next-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.next-steps li a { display: inline-block; font-size: 15px; font-weight: 500; color: var(--text); }
.next-steps li a::before { content: "\2192"; color: var(--main); margin-right: 8px; }
.next-steps li a:hover { color: var(--main); }
.lead { color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ---- 表の中の文字だけの状態 ---- */
.text-ok { color: #15774f; }
.text-bad { color: #a83232; }
.text-faint { color: var(--text-3); }
.check { font-size: 13.5px; padding: 5px 12px; }
.check.on { background: var(--ok-soft); color: #15774f; }

@media (max-width: 1080px) {
  .main { padding: 28px 28px 72px; }
  .stats.light { gap: 28px; }
}

/* ---- 催しの画面への入口(概要) ---- */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 32px; }
.quick > div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 15px; }
.quick .label { flex-basis: 100%; }
.quick a { color: var(--text); font-weight: 500; }
.quick a:hover { color: var(--main); }

/* ---- 見た目に出さない補助の文字(支援技術・既存の確認用) ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 要対応(問題 + 操作) ---- */
.issues { margin: 0; padding: 0; list-style: none; }
.issues li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--subtle); font-size: 15px; }
.issues li:last-child { border-bottom: none; }
.count-text { font-size: 13.5px; font-weight: 500; color: var(--text-3); margin-left: 6px; }

/* ---- 開催準備 ---- */
.ready-head { font-size: 16px; font-weight: 600; margin: 0; }
.ready-head b { color: #a83232; }

/* ---- 参加の状況(見出しと数字の表) ---- */
table.kv { width: auto; min-width: 520px; }
table.kv th { text-align: left; padding: 7px 24px 7px 0; border-bottom: none; font-weight: 500; color: var(--text-2); font-size: 15px; white-space: nowrap; width: 1%; }
table.kv td { padding: 7px 0; border-bottom: none; font-size: 15px; }
table.kv td b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
table.kv tbody tr:hover td { background: none; }

/* ---- ホーム(業務画面として控えめな見出し) ---- */
.head.compact { margin-bottom: 16px; }
.head.compact h1 { font-size: 20px; }
.head.compact .sub { font-size: 14px; color: var(--text-3); margin-top: 0; }
.next { padding: 0 0 4px; }
.next-title { font-size: 18px; }

/* ---- ログイン: パスワードの表示切替・確認コード ---- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; border-radius: var(--r-sm); }
.pw-toggle:hover { color: var(--text); background: var(--hover); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .off { display: none; }
.pw-toggle[aria-pressed="true"] .on { display: none; }
.pw-toggle[aria-pressed="true"] .off { display: block; }
.code-input { font-size: 26px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; height: 52px; width: 100%; box-sizing: border-box; font-family: var(--mono); }
.code-input::placeholder { color: var(--line); letter-spacing: .45em; }
.auth-box .trust-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; font-size: 14px; color: var(--text); cursor: pointer; }
.auth-box .trust-check input { margin: 3px 0 0; }
.auth-box .trust-check small { grid-column: 2; font-size: 12.5px; color: var(--text-3); }
.auth-box form > * { min-width: 0; }
.auth-box .field input { min-width: 0; }
.auth-foot, .auth-box form.auth-foot { margin: 22px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.auth-foot a, .linklike { color: var(--main); font-weight: 500; }
.linklike { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.linklike:disabled { color: var(--text-3); cursor: default; }

/* ---- パスワードの再設定 ---- */
.notice.ok { color: #15774f; background: var(--ok-soft); }
.notice.ok::before { background: var(--ok); }
.notice.temp-password { display: block; }
.notice.temp-password::before { content: none; }
.notice.temp-password .url span { font-family: var(--mono); font-size: 16px; letter-spacing: .04em; }
.menu-list form button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: var(--r-sm); white-space: nowrap; font-size: 14px; font: inherit; color: var(--text); cursor: pointer; }
.menu-list form button:hover { background: var(--hover); }

/* =========================================================
   Design System 共通部品
   ========================================================= */
.io { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.btn .io { width: 16px; height: 16px; }
.profile-menu a, .profile-menu form button { display: flex; align-items: center; gap: 8px; }
.profile-menu .io { color: var(--text-3); }
.text-ok { color: var(--ok-text); } .text-warn { color: var(--warn-text); } .text-bad { color: var(--bad-text); }
h2.sec { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.sec-note { font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-left: 10px; }
.sec-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-row .grow { flex: 1; }
.field-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.subtabs a.ext { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); }
.subtabs a.ext .io { width: 14px; height: 14px; }
.menu-list a, .menu-list form button { display: flex; align-items: center; gap: 8px; }
details.menu > summary .io { width: 14px; height: 14px; margin-left: 2px; }

/* 進行の状態(1 行の小さな表示) */
.ov-state { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 13.5px; color: var(--text-2); }
.ov-state .grow { flex: 1; }
.ov-state-text b { color: var(--text); font-weight: 600; }
.mini-steps { display: inline-flex; gap: 3px; }
.mini-steps i { width: 18px; height: 4px; border-radius: 2px; background: var(--n200); }
.mini-steps i.on { background: var(--main); }
.ov-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--bad-text); }
.ov-count.ok { color: var(--ok-text); }

/* 最優先(1 件だけ大きく) */
.focus { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border: 1px solid var(--line); border-left: 4px solid var(--main); border-radius: var(--r); background: var(--surface); }
.focus.crit { border-left-color: var(--bad); }
.focus.warn { border-left-color: var(--warn); }
.focus.info { border-left-color: var(--main); }
.focus.ok { border-left-color: var(--ok); background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok-text); }
.focus .io { width: 20px; height: 20px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--text-3); flex: none; }
.focus.crit .eyebrow { color: var(--bad-text); }
.focus.warn .eyebrow { color: var(--warn-text); }
.focus-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; font-size: 16px; }
.focus-text b { font-weight: 600; font-size: 17px; }
.focus-state { color: var(--text-2); }

/* その他の要対応: 項目 · 状態 · ［操作］ */
.todo-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.todo-rows li { display: grid; grid-template-columns: 8px 180px 1fr auto; gap: 14px; align-items: center; padding: 8px 20px; border-bottom: 1px solid var(--n100); font-size: 14px; }
.todo-rows li:last-child { border-bottom: none; }
.todo-rows li i { width: 8px; height: 8px; border-radius: 50%; background: var(--n300); }
.todo-rows li.crit i { background: var(--bad); }
.todo-rows li.warn i { background: var(--warn); }
.todo-rows li.info i { background: var(--main); }
.todo-rows .t { font-weight: 500; }
.todo-rows .s { color: var(--text-2); }
.todo-rows + .kpis, .focus + .kpis { margin-top: 24px; }

/* いま意味のある数字(1 本の帯) */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin: 24px 0 32px; }
.kpi { padding: 12px 20px; border-right: 1px solid var(--line); --kpi: var(--main); display: flex; flex-direction: column; gap: 3px; }
.kpi:last-child { border-right: none; }
.kpi.ok { --kpi: var(--ok); }
.kpi.warn { --kpi: var(--warn); }
.kpi.bad { --kpi: var(--bad); }
.kpi .k { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.kpi b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.kpi .s { font-size: 12.5px; color: var(--text-3); }
.kpi.warn .s { color: var(--warn-text); }
.kpi.bad .s { color: var(--bad-text); }
.kpi .bar { display: block; height: 4px; border-radius: 2px; background: var(--n100); overflow: hidden; margin-top: 4px; }
.kpi .bar i { display: block; height: 100%; background: var(--kpi); border-radius: 2px; }

/* 次に移動する場所(主 65% / 副 35%) */
.ov-bottom { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.places { border-top: 1px solid var(--line); }
.place { border-bottom: 1px solid var(--line); padding: 10px 0 10px; }
.place-main { display: grid; grid-template-columns: 20px 150px 1fr 16px; gap: 14px; align-items: center; padding: 2px 4px; border-radius: var(--r-sm); }
.place-main:hover { background: var(--hover); }
.place-main .io { color: var(--text-3); width: 18px; height: 18px; }
.place-main .t { font-weight: 600; font-size: 14.5px; }
.place-main .v { color: var(--text-2); font-size: 13.5px; }
.place-main .chev { color: var(--n300); }
.place-subs { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 4px 0 38px; }
.place-subs a { font-size: 12.5px; color: var(--text-3); }
.place-subs a:hover { color: var(--main); }
.facts { margin: 0; padding: 14px 18px; background: var(--surface); border-radius: var(--r); display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
.facts dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); padding-top: 1px; }
.facts dt .io { width: 14px; height: 14px; }
.facts dd { margin: 0; font-size: 14px; font-weight: 500; }
.facts dd small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--n300); }
.dot.ok { background: var(--ok); } .dot.none { background: var(--warn); } .dot.off { background: var(--n300); }

/* 折りたたみ(完了済み・詳細) */
details.disclose > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); list-style: none; padding: 4px 0; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary:hover { color: var(--text); }
details.disclose > summary .io { width: 14px; height: 14px; transition: transform .15s; }
details.disclose[open] > summary .io { transform: rotate(180deg); }
details.disclose.inline { display: inline-block; }
details.disclose.inline img.qr { display: block; width: 140px; margin-top: 8px; }
.done-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.done-rows li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.done-rows li .io { color: var(--ok); width: 14px; height: 14px; }
.done-rows li a { color: var(--text-2); }
.done-rows li .muted { color: var(--text-3); }

/* 開催準備(設定の右列) */
.readiness { padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.readiness-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.readiness-head .grow { flex: 1; }
.readiness-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.readiness-count.ok { color: var(--ok-text); }
.readiness-done { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 13.5px; color: var(--ok-text); }
.readiness .todo-rows li { grid-template-columns: 8px 1fr auto auto; padding: 7px 0; gap: 10px; font-size: 13.5px; }

/* イベント設定(主 65% / 副 35%) */
.settings { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.settings-side { position: sticky; top: 24px; display: grid; gap: 16px; }
.sx { padding: 24px 0 32px; border-bottom: 1px solid var(--line); }
.sx:first-child { padding-top: 0; }
.sx:last-child { border-bottom: none; }
.sx > h2.sec { margin-bottom: 16px; }
.sx .form-actions { margin-top: 20px; }
.sx-dl { grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; align-items: center; font-size: 13.5px; }
.sx-dl dt { color: var(--text-2); }
.sx-dl select, .sx-dl input[type="text"], .sx-dl input[type="number"], .sx-dl input[type="date"], .sx-dl input[type="datetime-local"] { height: 32px; font-size: 13.5px; }
.sx-dl textarea { font-size: 13.5px; }
.sx-dl .toggle { font-weight: 400; font-size: 13.5px; }
.sx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.sx-sub { margin-bottom: 20px; }
.w-sm { width: 96px; } .w-xs { width: 72px; }
.q-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.q-row input[type="text"] { height: 32px; flex: 1; min-width: 0; }
.q-row .toggle { font-weight: 400; font-size: 12.5px; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-row select, .btn-row input { height: 32px; font-size: 13.5px; }
.stack { display: grid; gap: 8px; margin-top: 10px; }
.stack textarea { font-size: 13.5px; }
.inline-state { display: flex; align-items: center; gap: 10px; }
.sx-photo { width: 100%; max-width: 320px; border-radius: var(--r); display: block; }
.sx-index { padding: 14px 16px; background: var(--surface); border-radius: var(--r); display: grid; gap: 2px; }
.sx-index a { font-size: 13.5px; color: var(--text-2); padding: 5px 6px; border-radius: var(--r-sm); }
.sx-index a:hover { background: var(--hover); color: var(--text); }
.pub-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -8px 0 20px; font-size: 13px; }
.pub-check .t { font-weight: 600; margin-right: 6px; }
.pub-check span:not(.t) { padding: 2px 9px; border-radius: 10px; background: var(--surface); color: var(--text-3); }
.pub-check span.done { background: var(--ok-soft); color: var(--ok-text); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: none; }
  .ov-bottom, .settings, .sx-cols { grid-template-columns: 1fr; }
  .settings-side { position: static; }
}

/* =========================================================
   設定 / CMS / Drawer / 当日モード / コミュニケーション
   ========================================================= */
/* 下位ナビ(縦): 上位タブ(下線)とは見た目を分ける */
.settings { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 16px; }
.subnav { display: grid; gap: 2px; padding: 6px; background: var(--surface); border-radius: var(--r); }
.subnav a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); }
.subnav a small { font-size: 12px; color: var(--text-3); }
.subnav a:hover { background: var(--hover); color: var(--text); }
.subnav a.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--main); }
.settings-main .sx { padding: 0 0 8px; border-bottom: none; }
.settings-main .sx[hidden] { display: none; }
.readiness .todo-rows li { grid-template-columns: 8px 1fr auto auto; }
.readiness .todo-rows .s { font-size: 12.5px; }

/* 空の状態: 説明 + 次の操作 */
.empty-state { padding: 28px 24px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; display: grid; gap: 6px; justify-items: center; }
.empty-state p { margin: 0; font-size: 14px; }
.empty-state .btn { margin-top: 8px; }

/* Drawer(右から出る dialog) */
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100vh; max-height: 100vh; width: min(440px, 100vw); border: none; border-left: 1px solid var(--line); border-radius: 0; padding: 28px 28px 32px; overflow-y: auto; box-shadow: -16px 0 48px rgba(27, 31, 42, 0.12); }
dialog.drawer h3 { margin-bottom: 6px; }
dialog.drawer .help { margin: 0 0 16px; }
dialog.drawer .form-actions { margin-top: 24px; }
.check-grid { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; margin-bottom: 16px; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 6px 8px; border-radius: var(--r-sm); font-size: 14px; cursor: pointer; }
.check-row:hover { background: var(--hover); }
.check-row small { grid-column: 2; font-size: 12px; color: var(--text-3); }

/* CMS: 編集 + プレビュー */
.cms { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.cms-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cms-bar .grow { flex: 1; }
.cms-group { padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.cms-group > h3.sec { margin-bottom: 12px; }
.cms-field { margin-bottom: 14px; }
.cms-field input[type="text"], .cms-field input[type="url"], .cms-field textarea { width: 100%; font-size: 14px; }
.cms-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cms-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); display: block; }
.cms-image-empty { aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; color: var(--text-3); font-size: 13px; }
.cms-image .help { margin: 4px 0; font-size: 12px; }
.cms-publish { padding: 20px 0 0; }
.cms-preview { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.cms-preview-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); background: var(--bg); }
.cms-preview-bar .btn { margin-left: auto; }
.cms-preview iframe { display: block; width: 100%; height: calc(100vh - 140px); min-height: 640px; border: 0; background: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.seg button { border: 0; background: none; padding: 5px 12px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--main-soft); color: var(--main); font-weight: 600; }
.seg.small button { padding: 3px 10px; font-size: 12.5px; }

/* コミュニケーションの一覧 */
.mail-list td { vertical-align: middle; }

/* 当日モード */
.ops-kpis { margin-bottom: 20px; }
.now-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.now { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.now.live { border-color: var(--ok); background: var(--ok-soft); }
.now b { font-size: 16px; font-weight: 600; }
.now .muted { font-size: 13px; }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.issue-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.issue-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.issue-list li.in_progress .issue-head i { background: var(--warn); }
.issue-list li.resolved .issue-head i { background: var(--ok); }
.issue-head .t { font-weight: 600; }
.issue-head .s { color: var(--text-3); font-size: 12.5px; flex: 1; }
.issue-body { margin: 6px 0 0 18px; white-space: pre-wrap; font-size: 14px; }
.issue-res { margin: 4px 0 0 18px; font-size: 13px; color: var(--text-2); }
.issue-list details.disclose { margin-left: 18px; }
.todo-rows.side li { grid-template-columns: 8px 1fr auto; padding: 8px 0; }
.todo-rows.side .s { grid-column: 2; font-size: 12.5px; }
.todo-rows.side form { grid-column: 3; grid-row: 1 / span 2; }
.ops-side .facts dd a { display: block; font-weight: 500; }
.ops-side .facts dd small { display: inline; margin-left: 6px; }

@media (max-width: 1100px) {
  .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; }
  .cms { grid-template-columns: 1fr; }
  .cms-preview { position: static; }
  .cms-images { grid-template-columns: 1fr; }
  .now-next { grid-template-columns: 1fr; }
}

/* 設定の左列(狭い幅): 項目名 / 状態 を 2 行に */
.settings-nav .readiness .todo-rows li { grid-template-columns: 8px 1fr auto; gap: 2px 10px; align-items: start; padding: 8px 0; }
.settings-nav .readiness .todo-rows .t { white-space: nowrap; }
.settings-nav .readiness .todo-rows .s { grid-column: 2; }
.settings-nav .readiness .todo-rows .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.settings-nav .readiness .todo-rows li i { margin-top: 7px; }
.filter-row { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.filter-row input[type="search"] { height: 34px; width: 260px; font-size: 14px; }
.filter-row .muted { font-size: 13px; }


/* ---- Home / 共通基盤の整理(2026-10-09) ---- */
/* 表: ヘッダー行を一段沈め、行の高さを揃える */
th { background: var(--subtle); }
.table-wrap th { padding-top: 9px; padding-bottom: 9px; }
td { height: 44px; }

/* ナビ: 現在地は左の線でも示す */
.nav a { position: relative; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 2px 2px 0; background: var(--main); }

/* 状態の一言(見出し直下) */
.state-line { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); font-weight: 600; }
.state-line.warn { color: var(--warn-text); }
.state-line.ok { color: var(--ok-text); }

/* 要対応: 注意の印を左に付け、1 件 1 行で操作まで届く */
.issues.attn { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.issues.attn li { padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); position: relative; }
.issues.attn li:last-child { border-bottom: none; }
.issues.attn li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--warn); }
.issues.attn li:first-child::before { border-radius: var(--r) 0 0 0; }
.issues.attn li:last-child::before { border-radius: 0 0 0 var(--r); }
.issues.attn li:only-child::before { border-radius: var(--r) 0 0 var(--r); }

.all-clear { display: flex; align-items: center; gap: 8px; color: var(--ok-text); font-size: 14.5px; font-weight: 500; }
.all-clear .io { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 次のイベント: 1 枚だけ強調して、他は静かに */
.next.next-card { padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--main); border-radius: var(--r); align-items: center; }
.next-card .next-main { min-width: 0; flex: 1; }
.next-card .next-meta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.next-meter { max-width: 320px; margin-top: 12px; }
@media (max-width: 760px) { .next.next-card { align-items: stretch; } }

/* 次のイベントの状態は見出しと同じ高さで読める大きさに */
.next-card .next-title .badge { height: 26px; padding: 0 12px; font-size: 13.5px; font-weight: 600; }

/* 開催予定の表: 状態をイベント名の隣に寄せ、行を目で追えるようにする */
table.events-tbl th:nth-child(1) { width: 120px; }
table.events-tbl th:nth-child(2) { width: 34%; }
table.events-tbl th:nth-child(3) { width: 130px; }
table.events-tbl .badge { height: 24px; padding: 0 11px; font-size: 13px; }

/* ---- 一覧(検索と絞り込み) ---- */
.filters.filters-bar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.filters-bar input[type="search"] { grid-column: 1 / -1; max-width: 420px; }
.filters-bar .btn { justify-self: start; }
.filter-note strong { font-variant-numeric: tabular-nums; }
.list-tbl td.muted { min-width: 96px; }
.list-tbl .tags { min-width: 160px; }
tr.no-hover:hover td { background: transparent; }
h2.section.first { justify-content: flex-start; gap: 6px; }
h2.section.first .count-text { margin-left: 0; }
h2.section.first a { margin-left: auto; }

/* ---- 詳細画面 ---- */
/* 文章の値(日付・状態の説明)は数字より小さく、折り返しても読める行間に */
.figures .num.num-text { font-size: 17px; line-height: 1.4; letter-spacing: 0; margin-top: 8px; }
/* 項目名と値は縦の中央で揃える */
.dl { align-items: center; }
/* 画面タイトル横の状態は、タイトルと一緒に読める大きさにする */
.head h1 .badge { height: 26px; padding: 0 12px; font-size: 13.5px; font-weight: 600; }

/* ---- フォーム: 入力の誤りを入力欄そのものに示す ---- */
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
input:disabled, select:disabled, textarea:disabled { background: var(--n100); color: var(--text-3); cursor: not-allowed; }
.form-grid.three { gap: 16px; }
.form-grid .form-grid.three { margin: 0; }

/* ---- アクセシビリティ: キーボード操作の位置を、どの部品でも見えるようにする ---- */
.seg button:focus-visible, .check:focus-visible, .side-foot button:focus-visible, .nav a:focus-visible, .profile summary:focus-visible {
  outline: 2px solid var(--main); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- 列の多い表(分析): 横に動かしても、イベント名は左に残す ---- */
.table-wrap.wide-scroll { overflow-x: auto; }
.analytics-tbl th, .analytics-tbl td.num { white-space: nowrap; }
.analytics-tbl th:first-child, .analytics-tbl td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 200px; }
.analytics-tbl th:first-child { background: var(--subtle); z-index: 3; }
.analytics-tbl tbody tr:hover td:first-child { background: var(--subtle); }

/* 参加者タブの数字は、本文の長い 1 文ではなく数字の並びで読む */
.figures.figures-tight { margin-bottom: 20px; }
.figures-tight > div { padding: 14px 20px 16px; }
.figures-tight .num { font-size: 22px; }
.toolbar .btn.nowrap { white-space: nowrap; }
