/* Global CRM Design System — 土台(2026-10-09)
   面は 3 層: Canvas(地) / Surface(作業面) / Secondary(沈めた面)。色は状態と操作の意味だけに使う。
   役割の使い分け: Tab=画面の切替 / Segmented=同じ画面の見方の切替 / Badge=状態 / Button=操作 / Link=移動。 */

:root {
  --canvas: #eceff4;
  --surface-1: #ffffff;
  --surface-2: #f5f7fa;
  --ink-side: #172033;
  --ink-side-2: #b9c3d4;
  --ink-side-on: #26324b;
  /* 文字の大きさ */
  --t-title: 26px; --t-section: 17px; --t-body: 15px; --t-table: 14px; --t-caption: 13px;
}

body { background: var(--canvas); font-size: var(--t-body); }

/* ---- 左ナビ: 作業面と切り離して、現在地がすぐ分かるように ---- */
.shell > .side { background: var(--ink-side); border-right: none; color: var(--ink-side-2); }
.brand { color: #fff; }
.nav-group { color: #8e9bb2; font-size: var(--t-caption); letter-spacing: 0.02em; }
.nav a { color: var(--ink-side-2); }
.nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav a.on { background: var(--ink-side-on); color: #fff; }
.nav a.on svg { stroke: #8fb0ff; }
.nav a.on::before { background: #8fb0ff; }
.nav .count { background: #3b4c72; color: #fff; }
.profile summary { color: var(--ink-side-2); }
.profile summary:hover, .profile[open] summary { background: rgba(255,255,255,0.07); color: #fff; }
.profile .avatar { background: #34425f; color: #fff; }
.profile-menu { color: var(--text); }

.main { padding-top: 28px; }

/* ---- 文字の階層 ---- */
.head h1 { font-size: var(--t-title); font-weight: 600; }
.head .sub { font-size: var(--t-body); color: var(--text-2); }
.head.compact h1 { font-size: var(--t-title); }
.head.compact .sub { font-size: var(--t-body); color: var(--text-2); }
h2.section { font-size: var(--t-section); }
.label, th { font-size: var(--t-caption); }
td { font-size: var(--t-table); }
td .mail, .note, .figures .note, .state { font-size: var(--t-caption); }
.crumb { font-size: var(--t-caption); color: var(--text-2); }

/* ---- 作業面: 表・数字・カードは白い面に載せる ---- */
.table-wrap { margin: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
@media (max-width: 1100px) { .table-wrap { overflow-x: auto; } }
.table-wrap th { background: var(--surface-2); padding-left: 16px; padding-right: 16px; }
.table-wrap td { padding-left: 16px; padding-right: 16px; }
.table-wrap tbody tr:hover td { background: var(--surface-2); border-radius: 0; }
.table-wrap td { border-bottom-color: var(--line); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.figures { background: var(--surface-1); border-radius: 8px; }
.next.next-card, .issues.attn { background: var(--surface-1); }
.panel { background: var(--surface-1); border: 1px solid var(--line); }
.notice { background: var(--surface-1); border: 1px solid var(--line); }
.notice.ok { background: var(--ok-soft); border-color: transparent; }
.empty-state { background: var(--surface-1); border-color: var(--n300); }
.filters-bar { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.toolbar { background: transparent; }

/* ---- Badge: 状態は角を抑え、点で意味を足す(Pill にしない) ---- */
.badge, .state { border-radius: 4px; height: 24px; padding: 0 9px 0 8px; gap: 6px; font-weight: 600; }
.badge::before, .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.none::before, .state.none::before { background: var(--n300); opacity: 1; }
.badge:not(.accent):not(.ok):not(.wait):not(.bad):not(.none)::before { background: var(--n300); }
.tag { border-radius: 4px; }

/* ---- ボタン: 主は 1 画面に 1 つ ---- */
.btn { border-radius: 6px; font-weight: 600; font-size: var(--t-body); }
.btn.small { font-size: var(--t-table); }

/* ---- イベント画面: 左の作業ナビ + 内容(上の二段タブはやめる) ---- */
.ev { display: block; margin-top: 8px; }
.ev-nav { position: sticky; top: 16px; display: grid; gap: 4px; }
.ev-group { border-radius: 8px; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: var(--t-body); font-weight: 600; color: var(--text-2); }
.ev-top:hover { background: rgba(23, 32, 51, 0.06); color: var(--text); }
.ev-group.here > .ev-top { color: var(--text); }
.ev-group.here:not(:has(.ev-sub)) > .ev-top { background: var(--surface-1); box-shadow: inset 3px 0 0 var(--main); }
.ev-flag { font-size: var(--t-caption); font-weight: 600; color: var(--warn-text); background: var(--warn-soft); border-radius: 4px; padding: 0 6px; }
.ev-sub { display: grid; margin: 2px 0 8px 12px; border-left: 1px solid var(--n300); }
.ev-sub a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: var(--t-table); color: var(--text-2); }
.ev-sub a:hover { color: var(--text); }
.ev-sub a.on { color: var(--text); font-weight: 600; border-left-color: var(--main); }
.ev-sub small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ev-main { min-width: 0; }
@media (max-width: 1000px) { .ev { grid-template-columns: 1fr; gap: 16px; } .ev-nav { position: static; display: flex; flex-wrap: wrap; } .ev-sub { display: flex; border-left: none; margin: 0; } }

/* 概要: 移動は左のナビに任せ、下段はイベントの基本情報だけを横に並べる */
.ov-bottom { display: block; }
.ov-bottom .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; padding: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.ov-bottom .facts > div { grid-template-columns: 1fr; padding: 14px 18px; border-left: 1px solid var(--line); }
.ov-bottom .facts > div:first-child { border-left: none; }

/* ---- 座席: 会場を見ながら割り当てる ---- */
.seat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin-bottom: 20px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.seat-state { font-size: var(--t-body); }
.seat-state b { font-size: 20px; font-variant-numeric: tabular-nums; }
.seat-todo, .seat-done { margin-left: 12px; font-weight: 600; font-size: var(--t-table); }
.seat-todo { color: var(--warn-text); }
.seat-done { color: var(--ok-text); }
.seat-config { display: flex; align-items: center; gap: 12px; }
.seat-config select { width: auto; height: 36px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--main); }
.seat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.seat-plan { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 16px; background: var(--surface-2); border: 1px dashed var(--n300); border-radius: 12px; min-height: 240px; }
.seat-table { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; }
.seat-table.full { border-color: #9bd3b9; }
.round { position: relative; width: 120px; height: 120px; margin: 34px auto 30px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--n300); display: grid; place-content: center; text-align: center; }
.seat-table.full .round { border-color: var(--ok); background: var(--ok-soft); }
.round b { font-size: var(--t-body); font-weight: 600; line-height: 1.2; max-width: 92px; overflow-wrap: anywhere; }
.round span { font-size: var(--t-caption); color: var(--text-2); font-variant-numeric: tabular-nums; }
.round .dot { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--n300); transform: rotate(var(--a)) translateY(-72px); }
.round .dot.taken { background: var(--main); border-color: var(--main); }
.seat-table-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--t-caption); }
.seat-names { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-table); }
.seat-names li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.seat-names small { color: var(--text-2); font-size: var(--t-caption); }
.seat-names .n { color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.seat-people-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.seat-people-head h2.section { margin: 0; }
.seat-build { position: sticky; top: 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.seat-build > summary { font-weight: 600; cursor: pointer; }
.seat-build[open] > summary { margin-bottom: 14px; }
tr[hidden] { display: none; }
@media (max-width: 1100px) { .seat-layout { grid-template-columns: 1fr; } .seat-build { position: static; } }
.seat-plan .empty-state { grid-column: 1 / -1; align-self: center; }

/* ---- 進行: 時間の流れに沿ったタイムライン ---- */
.tl-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tl-sum { font-size: var(--t-body); }
.tl-sum b { font-size: 20px; font-variant-numeric: tabular-nums; }
.tl-prog, .tl-live { margin-left: 12px; font-size: var(--t-table); font-weight: 600; color: var(--text-2); }
.tl-live { color: var(--ok-text); }
.tl-acts { display: flex; gap: 8px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 84px; top: 8px; bottom: 8px; width: 2px; background: var(--n300); }
.tl-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding: 0 0 16px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 79px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--n300); z-index: 1; }
.tl-item.st-live::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.tl-item.st-done::before { background: var(--n300); }
.tl-item.st-preparing::before, .tl-item.st-changed::before { border-color: var(--warn); }
.tl-item.st-cancelled::before { border-color: var(--bad); }
.tl-time { text-align: right; padding-top: 6px; line-height: 1.3; }
.tl-time b { display: block; font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.tl-time span { font-size: var(--t-caption); color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl-card { margin-left: 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.st-live .tl-card { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.st-done .tl-card { background: var(--surface-2); color: var(--text-2); }
.st-cancelled .tl-card h3 { text-decoration: line-through; color: var(--text-2); }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tl-head h3 { margin: 0; font-size: var(--t-body); font-weight: 600; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: var(--t-table); color: var(--text-2); }
.tl-note { margin: 8px 0 0; font-size: var(--t-table); }
.tl-edit { margin-top: 8px; }
.tl-edit > summary, .tl-add > summary { cursor: pointer; font-size: var(--t-table); font-weight: 600; color: var(--main); list-style: none; }
.tl-edit > summary::-webkit-details-marker, .tl-add > summary::-webkit-details-marker { display: none; }
.tl-edit[open] > summary { margin-bottom: 12px; }
.tl-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl-fields .wide { grid-column: span 2; }
.tl-add { margin-top: 8px; background: var(--surface-1); border: 1px dashed var(--n300); border-radius: 8px; padding: 14px 18px; }
.tl-add[open] > summary { margin-bottom: 14px; }
.tl-empty { grid-column: 1 / -1; }
@media (max-width: 900px) { .tl-fields { grid-template-columns: 1fr 1fr; } }

/* ---- スタッフ: 役割ごとの列に人を置く配置ボード ---- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.board-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 120px; }
.board-col header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.board-col h3 { margin: 0; font-size: var(--t-body); font-weight: 600; }
.board-col .n { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); background: var(--surface-1); border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; }
.board-col.is-empty { background: transparent; border-style: dashed; border-color: var(--n300); }
.person { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; width: 100%; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.person:hover { border-color: var(--main); box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08); }
.person:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.person .avatar { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--main-soft); color: var(--main); display: grid; place-items: center; font-weight: 600; }
.person .who { font-weight: 600; font-size: var(--t-body); }
.person .slot { font-size: var(--t-table); color: var(--text-2); font-variant-numeric: tabular-nums; }
.person .duty, .person .note { grid-column: 2; font-size: var(--t-table); }
.person .note { color: var(--warn-text); }
.slot-empty { margin: 6px 4px; font-size: var(--t-table); color: var(--text-2); }
.host-cover { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cover { font-size: var(--t-table); padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cover b { color: var(--text); font-weight: 600; margin-right: 4px; }
.cover.ok { border-color: #9bd3b9; background: var(--ok-soft); color: var(--ok-text); }

/* ---- 当日運営: 画面を見た瞬間に「いま何が起きていて、次に何をするか」が分かる順に並べる ---- */
.now { padding: 18px 22px; border-radius: 10px; background: var(--surface-1); gap: 4px; }
.now .eyebrow { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); letter-spacing: 0; text-transform: none; }
.now b { font-size: 22px; line-height: 1.3; }
.now .muted { font-size: var(--t-body); color: var(--text-2); }
.now.live { background: var(--ok-soft); border-width: 2px; }
.now.live .eyebrow { color: var(--ok-text); }
.now.live .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; animation: livepulse 1.8s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.35; } }
.ops-kpis { margin: 16px 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; background: transparent; border: none; }
.ops-kpis .kpi { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.ops-kpis .kpi:first-child b { font-size: 34px; }
.ops-kpis .kpi.warn { border-left: 4px solid var(--warn); }
.ops-kpis .kpi.bad { border-left: 4px solid var(--bad); }
@media (max-width: 1000px) { .ops-kpis { grid-template-columns: 1fr 1fr; } }

/* ---- ユーザー・権限: 読む表 + 右から出る管理パネル ---- */
.access-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.access-bar .grow { flex: 1; }
.access-tbl tbody tr[data-drawer] { cursor: pointer; }
.access-tbl tbody tr[data-drawer]:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; }
.role-main { display: inline-block; margin-right: 8px; font-weight: 600; }
.role-sub { display: inline-block; margin-right: 8px; color: var(--text-2); font-size: var(--t-table); }
.drawer-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.drawer-sec > .label { margin-bottom: 8px; }
.drawer-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 分析: まず比較のグラフ。細かい数字は折りたたむ ---- */
:root { --c1: #4a6fd8; --c2: #1f9d6b; --c3: #c2861a; }
.an-sum { display: flex; flex-wrap: wrap; gap: 32px; align-items: baseline; padding: 4px 2px 20px; }
.an-sum > div { display: flex; align-items: baseline; gap: 8px; }
.an-sum span { font-size: var(--t-body); color: var(--text-2); }
.an-sum b { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.an-sum small { font-size: var(--t-table); color: var(--text-2); }
.an-chart { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px 10px; }
.an-chart header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.legend { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; font-size: var(--t-caption); color: var(--text-2); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c1); }
.legend .k2::before { background: var(--c2); }
.legend .k3::before { background: var(--c3); }
.an-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.an-name a { font-weight: 600; }
.an-name small { display: block; color: var(--text-2); font-size: var(--t-caption); }
.an-bars { display: grid; gap: 4px; }
.an-bar { height: 18px; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--c1); position: relative; }
.an-bar.k2 { background: var(--c2); }
.an-bar.k3 { background: var(--c3); }
.an-bar span { position: absolute; left: calc(100% + 8px); top: -1px; font-size: var(--t-caption); font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.an-detail { margin-top: 20px; }
.an-detail > summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.an-bars { padding-right: 48px; }
.an-idle { margin: 0; padding: 12px 0 8px; border-top: 1px solid var(--line); font-size: var(--t-table); color: var(--text-2); }
.an-idle a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- 公開ページ(CMS): 項目の目次 + 編集 + 見え方 ---- */
.cms-bar { position: sticky; top: 0; z-index: 5; background: var(--canvas); padding-top: 4px; }
.cms-outline { position: sticky; top: 61px; z-index: 4; display: flex; gap: 4px; overflow-x: auto; margin: -4px 0 16px; padding: 4px 0 8px; background: var(--canvas); scrollbar-width: none; }
.cms-outline a { white-space: nowrap; padding: 6px 12px; border-radius: 6px; font-size: var(--t-table); font-weight: 600; color: var(--text-2); }
.cms-outline a:hover { background: var(--surface-1); color: var(--text); }
.cms-group { scroll-margin-top: 120px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 8px; margin-bottom: 16px; }
.cms-group > h3.sec { font-size: var(--t-section); margin-bottom: 14px; }
.cms-field input[type="text"], .cms-field input[type="url"], .cms-field textarea { font-size: var(--t-body); }
.cms-publish { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; scroll-margin-top: 120px; }
.cms-preview { border-radius: 10px; background: var(--surface-1); }
.cms-preview-bar { background: var(--surface-2); }
.field-label { font-size: var(--t-table); font-weight: 600; color: var(--text); }
@media (max-width: 1400px) { .cms { grid-template-columns: 1fr; } .cms-preview { position: static; } .cms-preview iframe { height: 720px; } }

/* ---- 設定: イベントの左ナビがあるので、幅が足りないときは区画の一覧を横の見出しにする ---- */
.settings-nav .subnav { background: transparent; padding: 0; }
.settings-nav .subnav a { background: transparent; }
.settings-nav .subnav a.on { background: var(--surface-1); box-shadow: inset 3px 0 0 var(--main); font-weight: 600; color: var(--text); }
@media (max-width: 1400px) {
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .settings-nav .subnav { display: flex; flex-wrap: wrap; gap: 2px 20px; border-bottom: 1px solid var(--line); }
  .settings-nav .subnav a { padding: 8px 2px 10px; border-radius: 0; flex-direction: row; gap: 8px; align-items: baseline; margin-bottom: -1px; border-bottom: 2px solid transparent; }
  .settings-nav .subnav a.on { background: transparent; box-shadow: none; border-bottom-color: var(--main); }
  .settings-nav .subnav a small { display: none; }
}
@media (max-width: 1400px) {
  .settings-nav { display: contents; }
  .settings-nav > .subnav { order: 1; }
  .settings-main { order: 2; }
  .settings-nav > :not(.subnav) { order: 3; }
}

/* ---- データ管理(一覧): 検索を主役に、絞り込みは必要なときだけ開く ---- */
.finder { margin-bottom: 16px; }
.finder-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.finder-row input[type="search"] { flex: 1 1 320px; max-width: 480px; height: 40px; }
.finder-row .btn { height: 40px; }
.finder-more { position: relative; }
.finder-more > summary { list-style: none; }
.finder-more > summary::-webkit-details-marker { display: none; }
.finder-n { margin-left: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--main); color: #fff; font-size: var(--t-caption); display: inline-grid; place-items: center; }
.finder-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(560px, 90vw); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(23, 32, 51, 0.16); }
.finder-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; min-height: 28px; }
.finder-count { font-size: var(--t-body); color: var(--text-2); }
.finder-count b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.finder-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip-x { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 10px; border-radius: 4px; background: var(--main-soft); color: var(--main); font-size: var(--t-table); font-weight: 600; }
.chip-x:hover { background: #dbe5fb; }
.chip-x:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.finder-clear { font-size: var(--t-table); font-weight: 600; color: var(--main); }

/* ---- 空の表は列見出しを出さない ---- */
.table-wrap.is-empty { background: transparent; border: 1px dashed var(--n300); }
.table-wrap.is-empty thead { display: none; }
.table-wrap.is-empty td { padding: 40px 16px !important; text-align: center; color: var(--text-2); font-size: var(--t-body); }

/* ---- 公開前の確認: 小さな札を並べず、進み具合と未了だけ ---- */
.pub-check { margin: 0 0 20px; padding: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.pub-check > summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.pub-check > summary::-webkit-details-marker { display: none; }
.pub-check .t { font-weight: 600; }
.pc-n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--warn-text); }
.pc-n.ok { color: var(--ok-text); }
.pc-bar { flex: 0 0 160px; height: 6px; border-radius: 3px; background: var(--n100); overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--main); }
.pc-list { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; font-size: var(--t-table); }
.pc-list li::before { content: "○"; margin-right: 8px; color: var(--warn); }
.pc-list li.done { color: var(--text-2); }
.pc-list li.done::before { content: "✓"; color: var(--ok); }

/* ---- 顧客の詳細: 上の数字は枠なしの 1 行に ---- */
.figures.figures-inline { display: flex; flex-wrap: wrap; gap: 6px 36px; background: transparent; border: none; border-radius: 0; padding: 0 2px 4px; }
.figures-inline > div { padding: 0; border: none !important; display: flex; align-items: baseline; gap: 8px; }
.figures-inline .label { font-size: var(--t-table); }
.figures-inline .num, .figures-inline .num.num-text { font-size: var(--t-body); font-weight: 600; margin: 0; letter-spacing: 0; }
.figures-inline .num small { font-size: var(--t-table); }
.figures-inline .note { margin: 0; font-size: var(--t-table); }

/* ---- 参加者の表: 列が多いので折り返さず、必要なら横に動かす ---- */
#guests th, #guests td { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
#guests td:first-child { white-space: normal; min-width: 180px; }

details.pub-check { display: block; }
details.pub-check > summary { display: flex; }
.kind-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.kind-add form { margin: 0; }
.kind-add-t { font-size: var(--t-table); font-weight: 600; color: var(--text-2); margin-right: 4px; }
details.pub-check { margin: 0 0 20px; gap: 0; font-size: var(--t-body); }
details.pub-check span:not(.t) { padding: 0; border-radius: 0; background: none; color: inherit; }
details.pub-check .pc-n { color: var(--warn-text); }
details.pub-check .pc-n.ok { color: var(--ok-text); }
details.pub-check .pc-bar { padding: 0; background: var(--n100); border-radius: 3px; }

/* ---- メール作成: 本文は左、宛先は右に固定 ---- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.compose-main { display: grid; gap: 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.compose-main textarea { font-size: var(--t-body); }
.compose-side { position: sticky; top: 16px; display: grid; gap: 16px; }
.aud { display: grid; gap: 14px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.aud-n { display: flex; align-items: baseline; gap: 8px; }
.aud-n strong { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.aud-n span { font-size: var(--t-body); color: var(--text-2); }
.aud-sub { margin: -8px 0 0; font-size: var(--t-table); color: var(--text-2); }
.compose-side .form-actions { margin: 0; }
@media (max-width: 1000px) { .compose { grid-template-columns: 1fr; } .compose-side { position: static; } }

/* ---- フォロー: 期限超過は左に赤い印 ---- */
.fu-list { display: grid; gap: 8px; }
.fu-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.fu-row.late { box-shadow: inset 4px 0 0 var(--bad); }
.fu-row .t { font-weight: 600; }
.fu-row .s { font-size: var(--t-table); color: var(--text-2); margin-top: 2px; }
.fu-row select { width: auto; height: 34px; }

/* ---- 画面全体が空のとき: 余白だけにせず、空の状態として見せる ---- */
.main > p.quiet, .main > p.empty, .ev-main > p.quiet, .ev-main > p.empty { padding: 40px 16px; text-align: center; border: 1px dashed var(--n300); border-radius: 10px; color: var(--text-2); font-size: var(--t-body); background: transparent; }
.brief { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
dialog.drawer .form-grid { grid-template-columns: 1fr; }

/* ---- Briefing: 印の変更は必要なときだけ開く ---- */
.brief-flag { margin-top: 12px; }
.brief-flag > summary { cursor: pointer; font-size: var(--t-table); font-weight: 600; color: var(--main); list-style: none; }
.brief-flag > summary::-webkit-details-marker { display: none; }
.brief-flag select, .brief-flag input[type="text"] { height: 36px; font-size: var(--t-table); }

/* ---- ログイン系: 濃紺の地に白い面 ---- */
body:has(.auth-box) { background: var(--ink-side); }
.auth-box { border-radius: 12px; box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35); }
.auth { background: var(--ink-side); }
.auth-box .brand { color: var(--text); }

/* ---- 役割と権限: 役割を横に、できることを縦に並べた一覧 ---- */
.matrix { min-width: 760px; }
.matrix th.c, .matrix td.c { text-align: center; white-space: nowrap; }
.matrix td:first-child, .matrix thead th:first-child { position: sticky; left: 0; background: var(--surface-1); min-width: 220px; z-index: 1; }
.matrix thead th:first-child { background: var(--surface-2); z-index: 3; }
.matrix tr.grp th { background: var(--surface-2); text-align: left; font-size: var(--t-table); color: var(--text); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); position: static; }
.matrix .yes { color: var(--ok-text); font-weight: 700; }
.matrix .no { color: var(--n300); }
.matrix tbody tr:not(.grp):hover td { background: var(--surface-2); }

/* ---- 一覧の一括操作: 選ぶと下に操作の帯が出る ---- */
.list-tbl th.pick, .list-tbl td.pick { width: 44px; padding-right: 0; }
.list-tbl input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--main); cursor: pointer; }
.bulkbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(calc(-50% + 120px)); z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 18px; background: var(--ink-side); color: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(23, 32, 51, 0.35); }
.bulkbar[hidden] { display: none; }
.bulkbar b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bulkbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.bulkbar .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
[hidden] { display: none !important; }


/* =====================================================================
   2026-10-09 Design System 検証の 3 画面(イベント概要 / イベント設定 / ユーザー・権限)
   ===================================================================== */

/* ---- イベント概要(Dashboard 型) ---- */
.ov { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.ov-main { display: grid; gap: 24px; min-width: 0; }
.ov-side { display: grid; gap: 16px; min-width: 0; }
.ov h2.section { margin: 0; }

/* 段階: 名前付きの横並び。いまの段階だけ補足を出す */
.miles { list-style: none; margin: 0; padding: 18px 20px 16px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; position: relative; }
.miles li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.miles li::before { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--n200); z-index: 0; }
.miles li:last-child::before { display: none; }
.miles li.done::before { background: var(--main); }
.miles-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--n300); display: grid; place-items: center; }
.miles-dot .io { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.miles li.done .miles-dot { background: var(--main); border-color: var(--main); }
.miles li.now .miles-dot { border-color: var(--main); box-shadow: 0 0 0 4px var(--main-soft); }
.miles li.now .miles-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--main); }
.miles-name { font-size: var(--t-table); font-weight: 500; color: var(--text-2); }
.miles li.done .miles-name { color: var(--text); }
.miles li.now .miles-name { color: var(--text); font-weight: 600; font-size: var(--t-body); }
.miles-note { font-size: var(--t-caption); font-weight: 600; color: var(--main); white-space: nowrap; }

/* いま対応すること: 1 つのリスト。重要度は左の点、操作は右端に 1 つ */
.ov-todo { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px 6px; }
.ov-todo header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: grid; grid-template-columns: 10px minmax(140px, 200px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: var(--t-body); }
.todo-list li i { width: 10px; height: 10px; border-radius: 50%; background: var(--n300); }
.todo-list li.crit i { background: var(--bad); }
.todo-list li.warn i { background: var(--warn); }
.todo-list li.info i { background: var(--main); }
.todo-list .t { font-weight: 600; }
.todo-list .s { color: var(--text-2); font-size: var(--t-table); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-todo .all-clear { padding: 6px 0 10px; }

/* 数字の帯: 段階に意味のあるものだけ 3 つまで */
.num-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.num-row .num { padding: 16px 20px 18px; border-left: 1px solid var(--line); display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 6px; row-gap: 6px; }
.num-row .num:first-child { border-left: none; }
.num-row .num .k { grid-column: 1 / -1; font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.num-row .num b { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.num-row .num small { font-size: var(--t-table); color: var(--text-2); }
.num-row .num .meter { grid-column: 1 / -1; margin-top: 4px; width: 100%; }
.num-row .num .s { grid-column: 1 / -1; font-size: var(--t-caption); font-weight: 600; }
.num-row .num.warn .s, .num-row .num.warn b { color: var(--warn-text); }
.num-row .num.bad b { color: var(--bad-text); }
.num-row .num.ok .meter i { background: var(--ok); }
.num-empty { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 16px 20px; background: var(--surface-1); border: 1px dashed var(--n300); border-radius: 8px; font-size: var(--t-body); }
.num-empty a { font-weight: 600; color: var(--main); }

/* 右列: 基本情報 */
.ov-facts { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.ov-facts dl { margin: 12px 0 0; display: grid; gap: 0; }
.ov-facts dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--t-table); }
.ov-facts dt { color: var(--text-2); }
.ov-facts dd { margin: 0; }
.ov-facts-link { display: inline-block; margin-top: 12px; font-size: var(--t-table); font-weight: 600; color: var(--main); }
@media (max-width: 1100px) { .ov { grid-template-columns: 1fr; } .miles { padding: 14px 8px; } .miles-note { white-space: normal; } }

/* ---- イベント設定(Settings 型): 区画は左ナビの子項目。本体は 1 列、右に開催準備 ---- */
.settings { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.settings-main { max-width: 760px; min-width: 0; }
.settings-side { position: sticky; top: 16px; }
.settings-main .sx { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px 0 !important; }
.settings-main .sx > h2.sec, .settings-main .sx .sec-row h2.sec { font-size: var(--t-section); }
.settings-main .sx > h2.sec { margin-bottom: 18px; }
.settings-main .sx .sec-row { margin-bottom: 18px; }
.settings-main .field-label { display: block; margin: 20px 0 10px; font-size: var(--t-table); font-weight: 600; color: var(--text); }
.settings-main form > .field-label:first-child, .settings-main .sx-sub > .field-label:first-child { margin-top: 0; }
.settings-main .sx-dl { grid-template-columns: 176px minmax(0, 480px); gap: 12px 16px; font-size: var(--t-body); }
.settings-main .sx-dl dt { font-size: var(--t-table); color: var(--text-2); padding-top: 9px; align-self: start; }
.settings-main .sx-dl dd { min-width: 0; }
.settings-main .sx-dl select, .settings-main .sx-dl input[type="text"], .settings-main .sx-dl input[type="number"], .settings-main .sx-dl input[type="date"], .settings-main .sx-dl input[type="datetime-local"], .settings-main .sx-dl textarea { width: 100%; height: 38px; font-size: var(--t-body); }
.settings-main .sx-dl textarea { height: auto; }
.settings-main .sx-dl .w-sm { width: 120px; } .settings-main .sx-dl .w-xs { width: 88px; }
.settings-main .sx-dl .toggle { padding: 8px 0; font-size: var(--t-body); font-weight: 400; }
.settings-main .sx-dl .toggle input { width: 18px; height: 18px; }
.settings-main .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 680px; }
.settings-main .form-grid .field > span { font-size: var(--t-table); color: var(--text-2); font-weight: 500; }
.settings-main .chips span { border-radius: 6px; padding: 7px 12px; font-size: var(--t-table); }
.settings-main .disclose > summary, .settings-main .adv > summary { cursor: pointer; font-size: var(--t-table); font-weight: 600; color: var(--main); list-style: none; padding: 4px 0; }
.settings-main .adv > summary::-webkit-details-marker, .settings-main .disclose > summary::-webkit-details-marker { display: none; }
.settings-main .adv { margin: 12px 0 4px; padding: 0 0 4px; }
.settings-main .adv[open] { background: var(--surface-2); border-radius: 8px; padding: 12px 16px 16px; margin: 12px 0; }
.settings-main .adv[open] > summary { margin-bottom: 12px; }
/* 保存バー: 区画の下に固定。変更が無いときは押せない */
.settings-main .sx .form-actions { position: sticky; bottom: 0; z-index: 2; margin: 20px -24px 0; padding: 12px 24px; background: var(--surface-1); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.settings-main .sx .form-actions .btn:disabled { opacity: 0.45; }
.settings-main .sx > :last-child:not(form) { padding-bottom: 20px; }
.settings-main .sx > form:last-child > :last-child:not(.form-actions) { padding-bottom: 20px; }
.settings-main .sx-cols { gap: 8px 32px; }
.settings-side .readiness { background: var(--surface-1); border-radius: 8px; padding: 16px 18px 12px; }
.settings-side .readiness h2.sec { font-size: var(--t-section); }
.settings-side .readiness .todo-rows li { grid-template-columns: 10px 1fr auto; gap: 4px 10px; align-items: start; padding: 9px 0; font-size: var(--t-table); }
.settings-side .readiness .todo-rows li i { margin-top: 6px; width: 10px; height: 10px; }
.settings-side .readiness .todo-rows .t { font-weight: 600; }
.settings-side .readiness .todo-rows .s { grid-column: 2; font-size: var(--t-caption); }
.settings-side .readiness .todo-rows .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 1100px) { .settings { grid-template-columns: 1fr; } .settings-side { position: static; } }

/* ---- ユーザー・権限(Access Management 型) ---- */
.attn-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 16px; margin-bottom: 16px; background: var(--warn-soft); border: 1px solid #ead9b0; border-radius: 8px; font-size: var(--t-table); color: var(--warn-text); }
.attn-line b { font-weight: 600; }
.attn-line .io { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.attn-line a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.access-bar input[type="search"] { width: 280px; height: 38px; }
.access-tbl th.num, .access-tbl td.num { text-align: right; }
.access-tbl .kind { display: block; font-size: var(--t-caption); color: var(--text-2); }
.access-tbl .expiry { white-space: nowrap; }
.access-tbl .expiry.soon { color: var(--warn-text); font-weight: 600; }
.access-tbl .expiry.over { color: var(--bad-text); font-weight: 600; }
.access-tbl .mfa-off { color: var(--text-2); }
.access-tbl .mfa-off.must { color: var(--warn-text); font-weight: 600; }
.roles-list { display: grid; gap: 8px; }
.role-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 72px auto; gap: 16px; align-items: center; padding: 12px 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.role-row .r { font-weight: 600; }
.role-row .r small { display: block; font-size: var(--t-caption); font-weight: 500; color: var(--text-2); }
.role-row .d { font-size: var(--t-table); color: var(--text-2); }
.role-row .n { font-size: var(--t-table); font-variant-numeric: tabular-nums; text-align: right; color: var(--text-2); }
.perm-groups { display: grid; gap: 14px; }
.perm-groups h4 { margin: 0 0 6px; font-size: var(--t-table); font-weight: 600; }
.perm-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-table); }
.perm-groups li { display: flex; align-items: center; gap: 8px; }
.perm-groups li.no { color: var(--text-3); }
.perm-groups li .io { width: 14px; height: 14px; stroke: var(--ok); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.perm-groups li.no .io { stroke: var(--n300); }
.add-seg { margin: 0 0 16px; }
.access-empty { padding: 32px 16px; text-align: center; color: var(--text-2); }
@media (max-width: 1100px) { .role-row { grid-template-columns: 1fr auto; } .role-row .d { grid-column: 1 / -1; } }

/* 左の作業ナビ: 開いているグループだけ子項目を見せる(Atlassian の展開式) */
.ev-group:not(.here) > .ev-sub { display: none; }
.ev-group:not(.here) > .ev-top:hover { background: var(--surface-1); }
.staff-chips { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.staff-chips li { display: flex; align-items: center; gap: 10px; font-size: var(--t-table); }
.staff-chips .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--main-soft); color: var(--main); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.staff-chips .more { color: var(--text-2); padding-left: 36px; }

/* ---- ホーム(Dashboard): 12 カラムの格子。パネルは高さ固定・中で縦に送る ---- */
.main { max-width: 1440px; }
.main:has(.dash) { max-width: 1680px; padding-bottom: 40px; }
.dash-head { margin-bottom: 16px; }
.dash-strip { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0 0 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ds { display: flex; align-items: baseline; gap: 6px; padding: 12px 20px; border-right: 1px solid var(--line); color: inherit; }
.ds:last-child { border-right: none; }
a.ds:hover { background: var(--surface-2); }
.ds .k { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); margin-right: 6px; }
.ds b { font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ds small { font-size: var(--t-caption); color: var(--text-2); }
.ds.link { margin-left: auto; font-size: var(--t-table); font-weight: 600; color: var(--main); border-right: none; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dash-panel { display: flex; flex-direction: column; min-width: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; }
.h-1 { height: 200px; } .h-2 { height: 320px; }
.dash-panel > header { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dash-panel > header h2 { margin: 0; font-size: var(--t-body); font-weight: 600; }
.dash-panel > header .n { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; }
.dash-panel > header a { margin-left: auto; font-size: var(--t-caption); font-weight: 600; color: var(--main); }
.dash-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.dash-scroll::-webkit-scrollbar { width: 10px; }
.dash-scroll::-webkit-scrollbar-thumb { background: var(--n300); border: 3px solid var(--surface-1); border-radius: 6px; }
.dash-empty { padding: 20px 18px; color: var(--text-2); font-size: var(--t-table); }
.dash-empty a { font-weight: 600; color: var(--main); }

.dash-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 18px; flex: 1; }
.dash-next-main { min-width: 0; }
.dash-next .t { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-next .t a:hover { color: var(--main); }
.dash-next .s { margin-top: 2px; font-size: var(--t-table); color: var(--text-2); }
.dash-next-nums { display: flex; align-items: baseline; gap: 24px; margin-top: 14px; }
.dash-next-nums > div { display: flex; align-items: baseline; gap: 6px; }
.dash-next-nums span { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.dash-next-nums b { font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-next-nums small { font-size: var(--t-table); color: var(--text-2); }
.dash-next-nums .meter-wrap { flex: 0 0 160px; align-self: center; }
.dash-next-acts { display: flex; gap: 8px; flex-shrink: 0; }

.dash-todo { list-style: none; margin: 0; padding: 0 18px; }
.dash-todo li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-table); }
.dash-todo li:last-child { border-bottom: none; }
.dash-todo li i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.dash-todo li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-panel .all-clear { padding: 14px 18px; font-size: var(--t-table); }

.dash-tbl { width: 100%; border-collapse: collapse; }
.dash-tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); padding: 8px 18px; font-size: var(--t-caption); text-align: left; border-bottom: 1px solid var(--line); }
.dash-tbl td { padding: 9px 18px; font-size: var(--t-table); border-bottom: 1px solid var(--line); height: auto; vertical-align: middle; }
.dash-tbl tbody tr:last-child td { border-bottom: none; }
.dash-tbl tbody tr:hover td { background: var(--surface-2); }
.dash-tbl td a { font-weight: 600; }
.dash-tbl td a:hover { color: var(--main); }
.dash-tbl td small { display: block; font-size: var(--t-caption); color: var(--text-2); }
.dash-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-tbl .badge { height: 22px; font-size: var(--t-caption); }

.dash-feed { list-style: none; margin: 0; padding: 4px 18px; }
.dash-feed li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-table); }
.dash-feed li:last-child { border-bottom: none; }
.dash-feed .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--n300); }
.dash-feed .dot.ok { background: var(--ok); } .dash-feed .dot.act { background: var(--main); }
.dash-feed .b a { font-weight: 600; } .dash-feed .b a:hover { color: var(--main); }
.dash-feed .what { color: var(--text-2); margin-left: 6px; }
.dash-feed .b small { display: block; font-size: var(--t-caption); color: var(--text-2); }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; padding: 14px 18px; }
.dash-cols .label { margin-bottom: 10px; }
.dash-cols .bars { gap: 10px; }
.dash-cols .bar { font-size: var(--t-caption); }
@media (max-width: 1200px) { .span-4, .span-6, .span-8 { grid-column: span 12; } .h-1, .h-2 { height: auto; max-height: 360px; } }
.dash-next-nums .meter { display: block; }

/* ホームは 1 画面に収める: 格子の高さを画面に合わせ、足りない分はパネルの中で送る */
.main:has(.dash) { display: flex; flex-direction: column; min-height: 100vh; padding-top: 24px; padding-bottom: 24px; }
.main:has(.dash) .dash-head { margin-bottom: 12px; }
.dash { flex: 1; min-height: 0; grid-template-rows: auto minmax(220px, 1fr) minmax(220px, 1fr); }
.dash-panel.h-1 { height: auto; min-height: 168px; }
.dash-panel.h-2 { height: auto; }
.dash-panel > header .hd-btn { margin-left: auto; height: 28px; padding: 0 10px; font-size: var(--t-caption); color: var(--text); }
.dash-panel > header .hd-btn + a { margin-left: 0; }
.dash-next { padding: 14px 18px; }
.dash-next-nums { margin-top: 10px; }
@media (max-height: 820px) { .dash { grid-template-rows: auto minmax(180px, 1fr) minmax(180px, 1fr); } }
@media (max-width: 1200px) { .main:has(.dash) { min-height: 0; display: block; } .dash { grid-template-rows: none; } }
.main:has(.dash) { height: 100vh; max-height: 100vh; overflow: hidden; box-sizing: border-box; }
.dash > .dash-panel { min-height: 0; }
.dash .dash-scroll { overflow-y: auto; }
@media (max-width: 1200px) { .main:has(.dash) { height: auto; max-height: none; overflow: visible; } }

/* ドリルダウン: 行・名前・数字は押せる。押せるものは hover で下線か面の変化を出す */
a.bar-link { color: inherit; border-radius: 4px; padding: 2px 4px; margin: -2px -4px; }
a.bar-link:hover { background: var(--surface-2); }
a.bar-link:hover .name { color: var(--main); }
.dash-feed .b small a:hover, .dash-tbl td a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.ds:hover b { color: var(--main); }


/* =====================================================================
   イベント概要 v3(承認済み: A 案の構造 + B 案の見出し) 2026-10-09
   ===================================================================== */
/* ---- 見出し: 会場写真のヒーロー帯。写真が無いときは濃紺のグラデーション ---- */
.ovh { position: relative; border-radius: 12px; overflow: hidden; min-height: 188px; background: #1a2238; color: #fff; display: flex; align-items: flex-end; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(26, 34, 56, 0.16); }
.ovh-img { position: absolute; inset: 0; background: linear-gradient(115deg, #2b3a63 0%, #4a4f7a 45%, #9a7a5b 100%); background-size: cover; background-position: center; }
.ovh-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 26, 46, 0.92) 0%, rgba(20, 26, 46, 0.66) 55%, rgba(20, 26, 46, 0.28) 100%); }
.ovh-in { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 46px 28px 22px; }
.ovh-eyebrow { display: flex; align-items: center; gap: 10px; font-size: var(--t-caption); font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.ovh-eyebrow .pill { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; padding: 2px 9px; color: #fff; }
.ovh h1 { margin: 8px 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.ovh-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: var(--t-body); color: rgba(255, 255, 255, 0.86); }
.ovh-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ovh-meta .io { width: 15px; height: 15px; stroke: rgba(255, 255, 255, 0.7); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ovh-acts { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.ovh .btn.ghost, .ovh .menu > summary.btn { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.36); }
.ovh .btn.ghost:hover, .ovh .menu > summary.btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.ovh .menu .menu-list { color: var(--text); }
.ovh .crumb { position: absolute; top: 14px; left: 28px; color: rgba(255, 255, 255, 0.7); margin: 0; z-index: 1; }
.ovh .crumb a:hover { color: #fff; }

/* ---- 段階の帯: 5 段。各段に「次の一手」 ---- */
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step { padding: 12px 16px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; }
.step:last-child { border-right: none; }
.step .d { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--n300); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text-3); background: var(--surface-1); }
.step .d .io { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step.done .d { background: var(--main); border-color: var(--main); color: #fff; }
.step.cur { background: var(--main-soft); }
.step.cur .d { border-color: var(--main); background: var(--main); color: #fff; }
.step .n { font-size: var(--t-table); font-weight: 600; }
.step .s { grid-column: 2; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.cur .s { color: var(--main); font-weight: 600; }

/* ---- 2 列: 左 8 / 右 4。面は役割ごとに 1 つ ---- */
.ov3 { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.ov3 .col { display: grid; gap: 16px; min-width: 0; }
.sec { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.sec > header { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.sec > header h2 { margin: 0; font-size: var(--t-section); font-weight: 600; }
.sec > header .sub { font-size: var(--t-caption); color: var(--text-2); }
.sec > header a.more { margin-left: auto; font-size: var(--t-caption); font-weight: 600; color: var(--main); white-space: nowrap; }
.sec .all-clear { padding: 14px 20px; }

/* やること: 1 行 1 件。必須/推奨の札と理由 */
.chk { list-style: none; margin: 0; padding: 0 8px; }
.chk li { display: grid; grid-template-columns: 24px minmax(150px, 210px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.chk li:last-child { border-bottom: none; }
.chk .c { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bad); }
.chk li.warn .c { border-color: var(--warn); }
.chk li.info .c { border-color: var(--n300); border-style: dashed; }
.chk .t { font-weight: 600; }
.chk .s { color: var(--text-2); font-size: var(--t-table); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--bad-text); background: var(--bad-soft); border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
.chk li.warn .tag { color: var(--warn-text); background: var(--warn-soft); }
.chk li.info .tag { color: var(--text-2); background: var(--surface-2); }

/* 集客の流れ: 招待 → 申込 → 参加登録 → 来場 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 20px 18px; }
.fl { position: relative; padding-right: 20px; min-width: 0; }
.fl + .fl::before { content: ""; position: absolute; left: -12px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--n300); border-bottom: 2px solid var(--n300); transform: rotate(-45deg); }
.fl .k { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.fl b { display: block; font-size: 28px; font-weight: 600; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fl b small { font-size: var(--t-table); color: var(--text-2); font-weight: 500; margin-left: 4px; }
.fl .s { font-size: var(--t-caption); color: var(--text-2); margin-top: 4px; }
.fl .s a { color: var(--main); font-weight: 600; }
.fl .s.warn { color: var(--warn-text); font-weight: 600; }
.fl .meter { margin-top: 8px; max-width: 160px; }
.fl.dim b { color: var(--text-3); }

/* これからの節目 */
.dates { list-style: none; margin: 0; padding: 4px 20px 8px; }
.dates li { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-table); }
.dates li:last-child { border-bottom: none; }
.dates .w { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.dates .w.unset { color: var(--warn-text); }
.dates li.past { color: var(--text-2); }
.dates li.past .w { color: var(--text-2); font-weight: 500; }
.dates .l small { display: block; color: var(--text-2); font-size: 12.5px; }
.dates a { font-size: var(--t-caption); font-weight: 600; color: var(--main); }

/* 右列 */
.kv { margin: 0; padding: 6px 20px 10px; }
.kv > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-table); align-items: center; }
.kv > div:last-child { border-bottom: none; }
.kv dt { color: var(--text-2); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv .url { padding: 4px 6px 4px 10px; }
.people { list-style: none; margin: 0; padding: 8px 20px 12px; display: grid; gap: 8px; }
.people li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: var(--t-table); }
.people .av { width: 28px; height: 28px; border-radius: 50%; background: var(--main-soft); color: var(--main); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.people .r { font-size: 12.5px; color: var(--text-2); }
.feed { list-style: none; margin: 0; padding: 6px 20px 10px; }
.feed li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-table); align-items: start; }
.feed li:last-child { border-bottom: none; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--n300); margin-top: 7px; }
.feed .dot.act { background: var(--main); } .feed .dot.ok { background: var(--ok); }
.feed small { display: block; color: var(--text-2); font-size: 12.5px; }
.feed a { font-weight: 600; } .feed a:hover { color: var(--main); }
.sec .empty-line { padding: 14px 20px; font-size: var(--t-table); color: var(--text-2); }
.sec .empty-line a { font-weight: 600; color: var(--main); }
@media (max-width: 1100px) { .ov3 { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(5, 1fr); } .step { padding: 10px 8px; grid-template-columns: 1fr; } .step .s { grid-column: 1; } .ovh-in { flex-direction: column; align-items: flex-start; } }

.step .s { white-space: normal; line-height: 1.3; }
.step { align-items: start; }
.step .d { margin-top: 1px; }

/* =====================================================================
   イベント一覧(参考: Navan の Group travel を、Global CRM 向けに) 2026-10-09 v2
   ===================================================================== */
.main:has(.evlist) { max-width: 1440px; }
/* 検索と分類: 1 つの操作領域。検索は残りの幅を使い、部品の高さと余白をそろえる */
.evq { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 8px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; }
.evq-search { position: relative; flex: 1 1 200px; min-width: 200px; display: block; }
.evq-search .io { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--text-2); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.evq-search input { width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); font-size: var(--t-body); }
.evq-search input:focus { background: var(--surface-1); border-color: var(--main); }
.evq .seg { flex: 0 0 auto; height: 40px; align-items: center; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; }
.evq .seg button { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; font-size: var(--t-table); border-radius: 6px; }
.evq .seg button.on { background: var(--surface-1); color: var(--main); font-weight: 600; box-shadow: 0 1px 2px rgba(23, 32, 51, 0.12); }
.evq-sel { flex: 0 0 auto; }
.evq-sel select { height: 40px; width: 176px; border: 1px solid transparent; border-radius: 8px; background-color: var(--surface-2); font-size: var(--t-table); }
.evq-sel select:focus { background-color: var(--surface-1); border-color: var(--main); }

/* 横長のカード: 写真 / 名前・状態・担当 / 開催地 / 日程 / 参加登録 / 開催準備または来場実績。名前の欄が余りを受け持つ */
.evlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.evlist[hidden] { display: none; }
.evc { position: relative; display: grid; grid-template-columns: 132px minmax(200px, 1fr) minmax(110px, 0.55fr) 150px 170px 170px 14px; column-gap: 24px; align-items: center; padding: 14px 20px 14px 14px; background: var(--surface-1); border-radius: 10px; box-shadow: 0 1px 2px rgba(23, 32, 51, 0.06), 0 6px 18px -12px rgba(23, 32, 51, 0.22); transition: box-shadow 0.15s; }
.evc:hover { box-shadow: 0 1px 2px rgba(23, 32, 51, 0.08), 0 10px 26px -12px rgba(23, 32, 51, 0.32); }
.evc[hidden] { display: none; }
.evc-link { position: absolute; inset: 0; border-radius: 10px; z-index: 1; }
.evc-link:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.evc:has(.evc-link:focus-visible) { box-shadow: 0 0 0 2px var(--main); }
.evc-photo { position: relative; width: 132px; height: 100px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #e7ebf3, #d5dce9); }
.evc-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.evc-photo .ph svg { width: 34px; height: 34px; fill: none; stroke: #8d98ad; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.evc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #e7ebf3; }
.evc-main { min-width: 0; display: grid; justify-items: start; align-content: center; gap: 8px; min-height: 100px; }
.evc-name { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.evc-st { font-size: var(--t-caption); font-weight: 600; padding: 2px 10px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.evc-st.st-published { background: var(--main-soft); color: var(--main); }
.evc-st.ap-open { background: var(--ok-soft); color: var(--ok-text); }
.evc-st.ap-scheduled { background: var(--main-soft); color: var(--main); }
.evc-st.ap-closed, .evc-st.st-closed { background: var(--warn-soft); color: var(--warn-text); }
.evc-owner { display: flex; align-items: center; gap: 8px; font-size: var(--t-table); color: var(--text); }
.evc-owner .av { width: 24px; height: 24px; border-radius: 50%; background: var(--n100); color: var(--text-2); font-weight: 600; font-size: 12px; display: grid; place-items: center; flex-shrink: 0; }
.evc-mine { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--main); }
.evc-where, .evc-when, .evc-reg, .evc-side { min-width: 0; }
.evc-where { font-size: var(--t-body); overflow-wrap: anywhere; }
.evc-where b { display: block; font-weight: 500; }
.evc-where span:not(.muted) { display: block; margin-top: 2px; font-size: var(--t-table); color: var(--text-2); }
.evc-when { font-size: var(--t-body); }
.evc-when .dts { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.evc-when .dts small { font-size: var(--t-caption); color: var(--text-2); margin-left: 4px; }
.evc-when .dts.range { padding-left: 12px; border-left: 2px solid var(--n300); }
.evc-when .rel { margin-top: 6px; font-size: var(--t-table); color: var(--text-2); }
.evc-when .rel.is-live { color: var(--text); font-weight: 600; }
.evc-reg .k, .evc-side .k { font-size: var(--t-caption); color: var(--text-2); margin-bottom: 4px; }
.evc-reg .n, .evc-side .n { font-size: var(--t-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.evc-reg .n b, .evc-side .n b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.evc-side .n.ok { font-weight: 600; color: var(--ok-text); }
.evc-side .n.none { color: var(--text-2); font-weight: 500; }
.evc-reg .bar, .evc-side .bar { height: 8px; border-radius: 4px; background: var(--n200); overflow: hidden; margin-top: 8px; }
.evc-reg .bar i, .evc-side .bar i { display: block; height: 100%; background: var(--main); border-radius: 4px; }
.evc-reg .bar i.full { background: var(--warn); }
.evc-reg .note, .evc-side .note { margin-top: 6px; font-size: var(--t-caption); color: var(--text-2); }
.evc-reg .note.warn { color: var(--warn-text); font-weight: 600; }
.evc-go { font-size: 24px; color: var(--n300); text-align: right; line-height: 1; }
.evc:hover .evc-go { color: var(--main); }
/* 狭い幅: 余白を詰め、それでも収まらなければ後ろの 2 欄を名前の下に回す */
@media (max-width: 1560px) { .evc { grid-template-columns: 112px minmax(180px, 1fr) minmax(100px, 0.5fr) 138px 150px 150px 12px; column-gap: 18px; } .evc-photo { width: 112px; height: 88px; } .evc-main { min-height: 88px; } }
@media (max-width: 1400px) { .evc { grid-template-columns: 112px minmax(0, 1fr) minmax(0, 0.55fr) 132px 140px 140px; } .evc-go { display: none; } }
@media (max-width: 1100px) { .evc { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); row-gap: 12px; } .evc-photo { width: 96px; height: 76px; grid-row: span 2; } .evc-main { min-height: 0; } .evc-reg, .evc-side, .evc-when { grid-column: auto; } }
@media (max-width: 760px) { .evq { flex-wrap: wrap; } .evq-search { flex-basis: 100%; } .evc { grid-template-columns: 80px minmax(0, 1fr); } .evc-photo { width: 80px; height: 64px; grid-row: span 3; } .evc-where, .evc-when, .evc-reg, .evc-side { grid-column: 2; } }

/* ---- 複数日開催: 親イベント詳細の「開催日程」・日別の帯・参加者マトリクス ---- */
.gd { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 20px; }
.gd > header { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.gd > header h2 { margin: 0; font-size: 17px; font-weight: 600; }
.gd > header .sub { font-size: 13px; color: var(--text-2); }
.gd > header .more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--main); }
.gd-day { border-bottom: 1px solid var(--line); }
.gd-day:last-child { border-bottom: none; }
.gd-row { display: grid; grid-template-columns: 60px minmax(0, 1.5fr) minmax(0, 1fr) 150px 90px 100px 130px 16px; column-gap: 20px; align-items: center; padding: 14px 20px; cursor: pointer; list-style: none; }
.gd-row::-webkit-details-marker { display: none; }
.gd-day[open] > .gd-row { background: #f8faff; }
.gd-row:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; }
.gd-date { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; background: #fff; line-height: 1.15; }
.gd-date b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gd-date span { font-size: 11.5px; color: var(--text-2); }
.gd-name { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.gd-name small, .gd-where small { display: block; font-weight: 400; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.gd-where { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.gd-m .k { font-size: 11.5px; color: var(--text-2); }
.gd-m .v { font-size: 14px; font-variant-numeric: tabular-nums; }
.gd-m .v b { font-size: 17px; font-weight: 600; }
.gd-m .bar { height: 6px; border-radius: 3px; background: var(--n200); margin-top: 5px; overflow: hidden; }
.gd-m .bar i { display: block; height: 100%; background: var(--main); }
.gd-caret { color: var(--n300); font-size: 18px; text-align: right; transition: transform .15s; }
.gd-day[open] .gd-caret { color: var(--main); transform: rotate(90deg); }
.gd-st { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); display: inline-block; white-space: nowrap; }
.gd-st.ok { background: var(--ok-soft); color: var(--ok-text); } .gd-st.warn { background: var(--warn-soft); color: var(--warn-text); } .gd-st.live { background: var(--main-soft); color: var(--main); }
.gd-panels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 4px 20px 16px 100px; background: #f8faff; }
.gd-panels .pn:nth-child(-n+3) { grid-column: span 2; } .gd-panels .pn:nth-child(n+4):nth-child(-n+5) { grid-column: span 3; }
.pn { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.pn h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.pn h3 a { color: var(--main); font-weight: 600; }
.pn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.pn li { display: flex; justify-content: space-between; gap: 8px; } .pn li > span:first-child { color: var(--text-2); flex: none; } .pn li > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.inh { font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); margin-left: 6px; white-space: nowrap; }
.inh.own { background: var(--warn-soft); color: var(--warn-text); }
.gd-act { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding-top: 4px; flex-wrap: wrap; }
.gd-act .hint { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.gd-add { padding: 14px 20px; border-top: 1px solid var(--line); }
.gd-add summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--main); }
.gd-add form { display: grid; grid-template-columns: 140px minmax(0, 1.4fr) minmax(0, 1fr) 120px 100px auto; gap: 10px; margin-top: 12px; align-items: end; }
.gd-add label span { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.gbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.gbar .days { display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.gbar .days a { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; text-decoration: none; }
.gbar .days a.on { background: var(--main-soft); color: var(--main); font-weight: 600; }
.gbar .days a small { margin-left: 6px; font-size: 12px; opacity: .8; }
.gbar .up { margin-left: auto; font-size: 13px; color: var(--text-2); }
.gbar .up a { font-weight: 600; color: var(--main); }
.gx { overflow-x: auto; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.gx table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gx th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f8faff; white-space: nowrap; }
.gx th.d, .gx td.d { text-align: center; min-width: 120px; }
.gx td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gx tr.guest td { background: var(--surface-2); padding-top: 7px; padding-bottom: 7px; }
.gx tr.guest td:first-child { padding-left: 34px; }
.gx td.name small { display: block; color: var(--text-2); font-size: 12.5px; }
.gx td.name { min-width: 230px; position: sticky; left: 0; background: var(--surface-1); }
.gx tr.guest td.name { background: var(--surface-2); }
.cell { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 4px; background: var(--main-soft); color: var(--main); white-space: nowrap; }
.cell.arrived { background: var(--ok-soft); color: var(--ok-text); } .cell.pending, .cell.waitlisted { background: var(--warn-soft); color: var(--warn-text); }
.cell.cancelled, .cell.rejected, .cell.no_show { background: var(--surface-2); color: var(--text-2); text-decoration: line-through; }
.cell.none { color: var(--n300); background: none; font-weight: 400; }
.gq { display: flex; gap: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gq > div { padding: 14px 22px; min-width: 150px; } .gq > div + div { border-left: 1px solid var(--line); }
.gq .k { font-size: 12.5px; font-weight: 600; color: var(--text-2); } .gq b { display: block; font-size: 26px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; } .gq b small { font-size: 14px; color: var(--text-2); margin-left: 3px; font-weight: 500; }
.gq .s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.gi { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.gi-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; font-size: 14.5px; } .gi-row:last-child { border-bottom: none; }
.gi-row small { display: block; color: var(--text-2); font-size: 12.5px; }
.inhrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 14px; } .inhrow:last-child { border-bottom: none; }
.inhrow .k { color: var(--text-2); grid-column: 1 / -1; font-size: 12.5px; }
.inhrow .badge2 { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); text-align: center; } .inhrow .badge2.own { background: var(--warn-soft); color: var(--warn-text); }
.inhrow a, .inhrow button.lnk { font-size: 13px; font-weight: 600; color: var(--main); background: none; border: none; cursor: pointer; padding: 0; }
@media (max-width: 1200px) { .gd-row { grid-template-columns: 60px minmax(0, 1fr) 130px 120px 16px; row-gap: 8px; } .gd-where, .gd-m.visit { display: none; } .gd-panels { padding-left: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .gd-panels .pn:nth-child(n) { grid-column: auto; } }

.evc-st.st-days { background: var(--main-soft); color: var(--main); }

/* ---- 公開ページの編集画面(左=ページ構成 / 中央=プレビュー / 右=編集) ---- */
.main:has(.ed) { padding: 0; max-width: none; height: 100vh; overflow: hidden; display: block; }
.ed { --ed-right: 340px; display: grid; grid-template-rows: 56px minmax(0, 1fr); height: 100vh; background: var(--canvas); }
.ed-bar { display: flex; align-items: center; gap: 22px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); min-width: 0; }
.ed-grp { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ed-bar > .ed-grp:first-child { flex: 1 1 0; }
.ed-save { margin-left: auto; flex: 1 1 0; justify-content: flex-end; }
.ed-back { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.ed-back:hover { color: var(--main); }
.ed-sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.ed-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-status { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.ed-status.live { background: var(--ok-soft); color: var(--ok-text); }
.ed-bar .btn { height: 36px; padding: 0 16px; white-space: nowrap; }
.ed-bar .seg button { white-space: nowrap; }
.ed-seg-note { font-size: 11.5px; margin-left: 5px; color: var(--text-3); font-weight: 400; }
.seg button.on .ed-seg-note { color: var(--text-2); }
.ed-dirty { font-size: 13px; color: var(--text-2); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ed-dirty.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d9822b; }
.ed-check { all: unset; cursor: pointer; font-size: 13px; color: var(--text-2); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.ed-check:hover { background: var(--surface-2); color: var(--text); }
.ed-check.need { color: var(--bad-text); background: var(--bad-soft); font-weight: 600; }
.ed-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) var(--ed-right); min-height: 0; }
.ed-left { background: #fff; border-right: 1px solid var(--line); padding: 12px 8px; overflow-y: auto; }
.ed-gl { font-size: 12px; font-weight: 600; color: var(--text-3); margin: 14px 10px 4px; }
.ed-gl:first-child { margin-top: 2px; }
.ed-sec { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--text); cursor: pointer; position: relative; }
.ed-sec:hover { background: var(--surface-2); }
.ed-sec:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; }
.ed-sec.on { background: var(--main-soft); color: var(--main); font-weight: 600; }
.ed-sec.on::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--main); }
.ed-sec .ct { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 0 7px; }
.ed-sec .ok { font-size: 12px; color: var(--ok-text); }
.ed-sec.adv { margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 12px; }
.ed-canvas { background: #e7ebf2; position: relative; min-width: 0; min-height: 0; display: flex; }
.ed-stage { flex: 1; overflow: auto; padding: 18px 20px 56px; }
.ed-device { margin: 0 auto; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(20,30,60,.12), 0 8px 28px rgba(20,30,60,.10); overflow: hidden; position: relative; }
.ed-device.mobile { border: 10px solid #1d2433; border-radius: 34px; }
.ed-pv { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ed-pv iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; background: #fff; visibility: hidden; }
.ed-pv iframe.on { visibility: visible; }
.ed-zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; box-shadow: 0 2px 10px rgba(20,30,60,.12); }
.ed-zoom button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ed-zoom button:hover { background: var(--surface-2); color: var(--text); }
.ed-zoom button.on { background: var(--main-soft); color: var(--main); font-weight: 600; }
.ed-zoom button:focus-visible { outline: 2px solid var(--main); }
.ed-zoom span { min-width: 46px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.ed-right { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; position: relative; }
.ed-resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 3; }
.ed-resize:hover, .ed-resize:focus-visible, .ed-resize.drag { background: rgba(47,95,214,.25); outline: none; }
.ed-rhead { padding: 14px 20px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; flex: none; }
.ed-rhead h2 { margin: 0; font-size: 17px; font-weight: 600; }
.ed-rhead .lng { font-size: 12px; font-weight: 600; color: var(--main); background: var(--main-soft); padding: 1px 8px; border-radius: 10px; }
.ed-rhead .sp { flex: 1; }
.ed-rhead button { all: unset; cursor: pointer; font-size: 13px; color: var(--main); font-weight: 600; }
.ed-rhead button:focus-visible { outline: 2px solid var(--main); }
.ed-rbody { padding: 16px 20px 40px; overflow-y: auto; flex: 1; min-height: 0; }
.ed-f { margin-bottom: 16px; }
.ed-f > label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.ed-f .tag { font-size: 11.5px; font-weight: 600; color: var(--warn-text); background: var(--warn-soft); padding: 0 6px; border-radius: 4px; }
.ed-f input[type=text], .ed-f input[type=url], .ed-f input[type=time], .ed-f select, .ed-f textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.ed-f textarea { resize: vertical; line-height: 1.7; min-height: 44px; }
.ed-f input:focus, .ed-f textarea:focus, .ed-f select:focus { outline: 2px solid var(--main); outline-offset: -1px; border-color: transparent; }
.ed-f .hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.ed-f .ref { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: 6px; padding: 6px 9px; margin-top: 5px; white-space: pre-line; max-height: 4.6em; overflow: hidden; }
.ed-f.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-info { border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 16px; }
.ed-info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ed-info div:last-child { border-bottom: none; }
.ed-info dt { color: var(--text-2); } .ed-info dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ed-note { font-size: 13px; color: var(--text-2); margin: 0 0 14px; }
.ed-note a { color: var(--main); font-weight: 600; }
.ed-img { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 8px; }
.ed-img .th { width: 112px; height: 84px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-size: 12px; color: var(--text-3); }
.ed-img .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-img .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.ed-img .meta { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.ed-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.ed-item.open { border-color: #b6c5f0; }
.ed-ih { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 9px 10px 9px 12px; cursor: pointer; }
.ed-ih b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-ih small { color: var(--text-3); font-size: 12px; margin-left: 8px; }
.ed-ih .acts { display: flex; gap: 2px; }
.ed-ih .acts button { all: unset; cursor: pointer; width: 26px; height: 26px; text-align: center; line-height: 26px; border-radius: 6px; color: var(--text-2); font-size: 13px; }
.ed-ih .acts button:hover { background: var(--surface-2); color: var(--text); }
.ed-ih .acts button:focus-visible { outline: 2px solid var(--main); }
.ed-ib { padding: 4px 14px 6px; border-top: 1px solid var(--line); }
.ed-ib .top { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 12px; }
.ed-ib .del { all: unset; cursor: pointer; font-size: 13px; color: var(--bad-text); font-weight: 600; }
.ed-ib .del:focus-visible { outline: 2px solid var(--bad-text); }
.ed-add { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; text-align: center; padding: 10px; border: 1px dashed #b6c5f0; border-radius: 8px; color: var(--main); font-weight: 600; font-size: 14px; }
.ed-add:hover { background: var(--main-soft); }
.ed-add:focus-visible { outline: 2px solid var(--main); }
.ed-days { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.ed-days div { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ed-days div:last-child { border-bottom: none; }
.ed-days small { display: block; color: var(--text-3); font-size: 12px; }
.ed-days a { color: var(--main); font-weight: 600; font-size: 13px; }
.ed-dialog { border: none; border-radius: 12px; padding: 22px 24px; max-width: 460px; width: calc(100vw - 40px); box-shadow: 0 20px 60px rgba(20,30,60,.3); }
.ed-dialog::backdrop { background: rgba(20,30,60,.4); }
.ed-dialog h3 { margin: 0 0 10px; font-size: 17px; }
.ed-dialog p { margin: 0 0 8px; font-size: 14.5px; color: var(--text); line-height: 1.7; }
.ed-dialog ul { margin: 8px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; }
.ed-dialog li { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.ed-dialog li:last-child { border-bottom: none; }
.ed-dialog li small { display: block; color: var(--text-2); }
.ed-dialog li a { color: var(--main); font-weight: 600; white-space: nowrap; }
.ed-dialog li.done { color: var(--text-3); }
.ed-da { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ed-toast { position: fixed; right: 24px; bottom: 24px; background: #172033; color: #fff; font-size: 14px; padding: 11px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(20,30,60,.3); z-index: 50; }
@media (max-width: 1280px) { .ed { --ed-right: 320px; } .ed-body { grid-template-columns: 176px minmax(0, 1fr) var(--ed-right); } .ed-bar { gap: 12px; } }

/* ================= 統一ナビゲーション(2026-10-10) =================
   第1階層 = 濃紺の全体メニュー(幅は常に同じ。小さくするのは利用者が選んだ時だけ)
   第2・第3階層 = 下層メニュー(.sn-panel)。親子は字下げと文字の強弱で表す。 */
:root { --side-w: 240px; --sub-w: 252px; }
html.side-compact { --side-w: 68px; }
.shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.shell.has-sub { grid-template-columns: var(--side-w) var(--sub-w) minmax(0, 1fr); }
html.sub-off .shell.has-sub { grid-template-columns: var(--side-w) minmax(0, 1fr); }
html.sub-off .sn-panel { display: none; }

.side-fold { all: unset; box-sizing: border-box; margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: #8e9bb2; font-size: var(--t-caption); }
.side-fold:hover { background: rgba(255,255,255,0.07); color: #fff; }
.side-fold:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 2px; }
.side-fold .io { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); }
.side .profile { margin-top: 6px; }

html.side-compact .side { padding-left: 8px; padding-right: 8px; align-items: stretch; }
html.side-compact .side .nl, html.side-compact .profile-name, html.side-compact .profile summary > svg { display: none; }
html.side-compact .nav a { justify-content: center; padding: 9px 0; position: relative; }
html.side-compact .nav a.on::before { left: -8px; }
html.side-compact .nav .count { position: absolute; top: 2px; right: 4px; margin: 0; padding: 0 5px; font-size: 10.5px; }
html.side-compact .nav-group { font-size: 0; height: 1px; padding: 0; margin: 10px 8px; background: rgba(255,255,255,0.1); }
html.side-compact .nav-group:first-child { display: none; }
html.side-compact .brand { justify-content: center; padding: 4px 0; }
html.side-compact .side-fold { justify-content: center; padding: 8px 0; }
html.side-compact .side-fold .io { transform: none; }
html.side-compact .profile summary { justify-content: center; padding: 8px 0; }
html.side-compact .profile-menu { right: auto; min-width: 230px; }

/* 下層メニュー */
.sn-panel { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface-2); border-right: 1px solid var(--line); min-width: 0; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 22px 12px 4px 20px; }
.sub-title { font-size: var(--t-section); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.sub-fold { all: unset; box-sizing: border-box; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; color: var(--text-3); }
.sub-fold:hover { background: rgba(23,32,51,0.07); color: var(--text); }
.sub-fold:focus-visible, .sn-tw:focus-visible, .sn-a:focus-visible, .sn-reopen:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; }
.sub-fold .io { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); }
.sub-current { padding: 0 20px 6px; font-size: var(--t-caption); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 24px; scrollbar-width: thin; }
.sn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sn-item { min-width: 0; }   /* 長いイベント名でも横にはみ出さず、… で省略する */
.sn-list .sn-list { padding-left: 14px; margin: 1px 0 4px; }
.sn-head { padding: 14px 10px 4px 24px; font-size: var(--t-caption); font-weight: 600; color: var(--text-3); }
.sn-row { display: flex; align-items: center; border-radius: 6px; position: relative; }
.sn-tw { all: unset; box-sizing: border-box; flex: 0 0 22px; width: 22px; height: 30px; display: grid; place-items: center; color: var(--text-3); cursor: pointer; border-radius: 6px; }
.sn-tw.sn-none { cursor: default; }
button.sn-tw:hover { color: var(--text); background: rgba(23,32,51,0.07); }
.sn-tw .io { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.12s; }
.sn-item.open > .sn-row > .sn-tw .io { transform: rotate(90deg); }
.sn-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 10px 4px 2px; border-radius: 6px; font-size: var(--t-table); color: var(--text-2); line-height: 1.35; }
a.sn-a:hover { background: rgba(23,32,51,0.06); color: var(--text); }
.sn-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-count { font-size: var(--t-caption); color: var(--text-3); font-variant-numeric: tabular-nums; }
.sn-flag { font-size: var(--t-caption); font-weight: 600; color: var(--warn-text); background: var(--warn-soft); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
/* 強弱: 対象(親イベント・イベント・顧客・ユーザー)は太く、いまの親は濃く、選択中は面と左の線で示す */
.sn-parent > .sn-row > .sn-a, .sn-event > .sn-row > .sn-a { font-weight: 500; color: var(--text); }
.sn-parent.here > .sn-row > .sn-a, .sn-event.here > .sn-row > .sn-a, .sn-object > .sn-row > .sn-a { font-weight: 600; color: var(--text); }
.sn-item.here > .sn-row > .sn-a { color: var(--text); }
.sn-item.on > .sn-row { background: var(--surface-1); box-shadow: inset 3px 0 0 var(--main); }
.sn-item.on > .sn-row > .sn-a { font-weight: 600; color: var(--text); }
.sn-item.on > .sn-row > .sn-count { color: var(--text-2); }
.sn-item:not(.open) > .sn-list { display: none; }
.sn-day > .sn-row > .sn-a { font-weight: 500; }

/* 閉じた下層メニューを開く取っ手(開いている間は出さない) */
.sn-reopen { position: fixed; left: var(--side-w); top: 50%; transform: translateY(-50%); z-index: 6; width: 26px; height: 72px; display: none; align-items: center; justify-content: center; padding: 0; background: var(--surface-1); border: 1px solid var(--line); border-left: none; border-radius: 0 8px 8px 0; cursor: pointer; color: var(--text-2); box-shadow: 2px 0 8px rgba(23,32,51,0.06); }
.sn-reopen:hover { color: var(--main); }
.sn-reopen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sn-reopen .io { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.sub-off .sn-reopen { display: flex; }
.sn-reopen[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .shell.has-sub { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .sn-panel { display: none; }
  .sn-reopen { display: flex; }
  html.sub-drawer .sn-panel { display: flex; position: fixed; left: var(--side-w); top: 0; bottom: 0; width: 280px; z-index: 30; box-shadow: 8px 0 24px rgba(23,32,51,0.18); }
}
@media (max-width: 820px) {
  .shell, .shell.has-sub { grid-template-columns: minmax(0, 1fr); }
  .side-fold { display: none; }
  .sn-reopen { left: 0; top: 112px; transform: none; }
  html.sub-drawer .sn-panel { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .sn-tw .io { transition: none; } }

/* 下層メニューを開いている時は作業面が狭くなるので、一覧のカードと余白を詰める(1600px でも欠けない) */
.shell.has-sub .main:not(:has(.ed)) { padding-left: 32px; padding-right: 32px; }
.shell.has-sub .evc { grid-template-columns: 112px minmax(150px, 1fr) minmax(80px, 0.5fr) 126px 140px 140px 12px; column-gap: 16px; }
.shell.has-sub .evc-photo { width: 112px; height: 88px; }
html.sub-off .shell.has-sub .main:not(:has(.ed)) { padding-left: 40px; padding-right: 40px; }
@media (min-width: 1561px) {
  html.sub-off .shell.has-sub .evc { grid-template-columns: 132px minmax(200px, 1fr) minmax(110px, 0.55fr) 150px 170px 170px 14px; column-gap: 24px; }
  html.sub-off .shell.has-sub .evc-photo { width: 132px; height: 100px; }
}
@media (max-width: 1500px) {
  .shell.has-sub .evc { grid-template-columns: 112px minmax(0, 1fr) minmax(0, 0.55fr) 126px 130px 130px; }
  .shell.has-sub .evc-go { display: none; }
}
@media (max-width: 820px) { .nav-group { display: none; } }

/* ---- 多階層ナビ(2026-10-11): 全体メニューの › → フライアウト / 対象を開いた画面だけのパネル / 業務のまとまりは 1 つだけ開く ---- */
.nvi { position: relative; }
.gi-fly { all: unset; box-sizing: border-box; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 28px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; color: #8e9bb2; }
.gi-fly:hover, .gi-fly[aria-expanded="true"] { background: rgba(255,255,255,0.12); color: #fff; }
.gi-fly:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 1px; }
.gi-fly .io { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nvi.has-fly .count { margin-right: 24px; }
html.side-compact .gi-fly { right: 0; width: 16px; }
html.side-compact .nvi.has-fly .count { margin-right: 0; }
@media (max-width: 820px) { .gi-fly { display: none; } }

.sn-flyout { position: fixed; z-index: 40; width: 268px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 8px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 36px rgba(23, 32, 51, 0.24); }
.sn-flyout[hidden] { display: none; }
.sn-fly-title { padding: 6px 10px 6px 24px; font-size: var(--t-caption); font-weight: 600; color: var(--text-3); }
.sn-flyout .sn-list .sn-list { padding-left: 14px; }
.sn-flyout .sn-tw.sn-none { display: none; }
.sn-flyout .sn-head { padding-left: 10px; }
.sn-flyout .sn-a { padding-left: 10px; }
.sn-flyout .sn-item.has-kids .sn-tw { display: grid; }
.sn-item > .sn-flyout.sn-subfly { display: none; }
.sn-item.fly-open > .sn-flyout.sn-subfly { display: block; }
.sn-item.fly-open > .sn-row > .sn-a { background: rgba(23,32,51,0.08); color: var(--text); }

button.sn-a.sn-toggle { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; min-height: 30px; padding: 4px 10px 4px 0; border-radius: 6px; cursor: pointer; font-size: var(--t-table); color: var(--text-2); line-height: 1.35; }
button.sn-a.sn-toggle:hover { background: rgba(23,32,51,0.06); color: var(--text); }
button.sn-a.sn-toggle:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; }
.sn-toggle .sn-tw { flex: 0 0 22px; width: 22px; height: 30px; display: grid; place-items: center; color: var(--text-3); }
.sn-group.open > .sn-row .sn-tw .io { transform: rotate(90deg); }
.sn-fly > .sn-row .sn-tw .io { opacity: 0; }
.sn-fly > .sn-row .sn-tw { width: 8px; flex-basis: 8px; }
.sn-sub { font-size: var(--t-caption); color: var(--text-3); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 8px; }
.sn-go { width: 14px; height: 14px; margin-left: 6px; flex-shrink: 0; stroke: var(--text-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sn-group.here > .sn-row > .sn-a, .sn-fly.here > .sn-row > .sn-a { color: var(--text); font-weight: 600; }
.sn-group:not(.open) > .sn-list { display: none; }
@media (max-width: 820px) {
  .sn-item > .sn-flyout.sn-subfly { position: static; width: auto; max-height: none; padding: 0 0 0 14px; border: none; box-shadow: none; background: transparent; }
  .sn-item.fly-open > .sn-flyout.sn-subfly { display: block; }
}
.shell > .side { z-index: 30; }
.sn-panel { z-index: 20; }

/* フライアウトは第2階層だけを見せる。子のある項目に触れると、その子が右に開く(第3階層・さらにその下) */
.sn-flyout .sn-a .sn-go { margin-left: auto; }
.sn-flyout .sn-a .sn-l { flex: 0 1 auto; }
.sn-flyout .sn-a .sn-count, .sn-flyout .sn-a .sn-flag { margin-left: 8px; }
.sn-flyout .sn-a .sn-l + .sn-go { margin-left: auto; }
.sn-flyout button.sn-a.sn-toggle { width: 100%; padding-left: 10px; }
.sn-flyout .sn-cascade { z-index: 41; }
.sn-flyout .sn-item.has-cascade:hover > .sn-row > .sn-a, .sn-flyout .sn-item.has-cascade:focus-within > .sn-row > .sn-a { background: rgba(23,32,51,0.07); color: var(--text); }
.sn-flyout .sn-list .sn-list { padding-left: 0; }

/* ---- イベント一覧: 広い画面では余白に情報を足す(申込・招待の状況 / 次にやること・日程)。幅は、一覧そのものの幅で決める ---- */
.main:has(.evlist) { max-width: 2400px; }
.evlist { container-type: inline-size; container-name: evl; }
.evc-x1, .evc-x2 { display: none; min-width: 0; }
.evc-x1 .xl, .evc-x2 .xl { font-size: var(--t-table); color: var(--text); line-height: 1.5; }
.evc-x1 .xl b, .evc-x2 .xl b { font-weight: 600; }
.evc-x1 .xw, .evc-x1 .xs { margin-left: 8px; font-size: var(--t-caption); }
.evc-x1 .xw { color: var(--warn-text); background: var(--warn-soft); border-radius: 4px; padding: 0 6px; font-weight: 600; }
.evc-x1 .xs { color: var(--text-3); }
.evc-x2 .xd { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; font-size: var(--t-caption); line-height: 1.7; color: var(--text-2); }
.evc-x2 .xd em { font-style: normal; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evc-x2 .xd i { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
@container evl (min-width: 1300px) {
  html body .shell .evlist > .evc.evc.evc { grid-template-columns: 112px minmax(190px, 1.2fr) minmax(90px, 0.5fr) 132px 150px 150px minmax(150px, 0.9fr) minmax(190px, 1.1fr) 12px; column-gap: 16px; }
  html body .shell .evlist > .evc.evc.evc .evc-go { display: block; }
  .evc-x1, .evc-x2 { display: block; }
}
@container evl (min-width: 1700px) {
  html body .shell .evlist > .evc.evc.evc { grid-template-columns: 132px minmax(240px, 1.2fr) minmax(120px, 0.5fr) 150px 170px 170px minmax(190px, 0.9fr) minmax(240px, 1.1fr) 14px; column-gap: 24px; }
}
.evc-x1 .xl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.evc-x1 .xw, .evc-x1 .xs { margin-left: 0; }
@container evl (min-width: 1300px) { html body .shell .evlist > .evc.evc.evc .evc-photo { width: 112px; height: 88px; } }
@container evl (min-width: 1700px) { html body .shell .evlist > .evc.evc.evc .evc-photo { width: 132px; height: 100px; } }

/* ================= 顧客管理(Salesforce の情報設計を参考に、Global CRM の紺を基調に) 2026-10-11 =================
   共通: 画面の見出し = 種類の小さな名前 + 大きなタイトル。表・関連リストは白い面。色は状態と操作の意味だけに使う。 */
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.cl-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cl-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--ink-side); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cl-ico .io { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-kind { font-size: var(--t-caption); color: var(--text-3); }
.cl-views { position: relative; }
.cl-views summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cl-views summary::-webkit-details-marker { display: none; }
.cl-views h1 { margin: 0; font-size: var(--t-title); font-weight: 600; line-height: 1.2; }
.cl-views summary .io { width: 18px; height: 18px; stroke: var(--text-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px rgba(23, 32, 51, 0.18); display: grid; gap: 1px; }
.cl-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: var(--t-table); color: var(--text-2); }
.cl-menu a:hover { background: var(--surface-2); color: var(--text); }
.cl-menu a.on { color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--main); background: var(--surface-2); }
.cl-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cl-meta { margin: 6px 0 14px; font-size: var(--t-caption); color: var(--text-2); }
.cl-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-search { display: flex; align-items: center; gap: 8px; flex: 0 1 420px; min-width: 240px; height: 36px; padding: 0 12px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.cl-search .io { width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.cl-search input { all: unset; flex: 1; min-width: 0; font-size: var(--t-body); }
.cl-pop { position: relative; }
.cl-pop > summary { list-style: none; cursor: pointer; }
.cl-pop > summary::-webkit-details-marker { display: none; }
.cl-colbox { min-width: 200px; padding: 10px 12px; gap: 6px; }
.cl-colbox label { display: flex; align-items: center; gap: 8px; font-size: var(--t-table); color: var(--text); cursor: pointer; }
.cl-wrap { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.cl-tbl { width: 100%; border-collapse: collapse; font-size: var(--t-table); }
.cl-tbl th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; color: var(--text-2); font-size: var(--t-caption); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cl-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.cl-tbl tbody tr:last-child td { border-bottom: none; }
.cl-tbl tbody tr:hover td { background: var(--surface-2); }
.cl-tbl tbody tr[data-href] { cursor: pointer; }
.cl-tbl .no { width: 44px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cl-tbl .pick { width: 38px; }
.cl-tbl .nm { white-space: nowrap; }
.cl-tbl .nm a { font-weight: 600; color: var(--main); }
.cl-tbl .nm a:hover { text-decoration: underline; }
.cl-tbl .cl-link { color: var(--text); }
.cl-tbl .cl-link:hover { color: var(--main); text-decoration: underline; }
.cl-sort { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.cl-sort:hover { color: var(--text); }
.cl-sort.on { color: var(--text); }
.cl-sort .io { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.cl-ev { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cl-evp { font-size: var(--t-caption); padding: 0 7px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-evp.st-in { background: var(--ok-soft); color: var(--ok-text); }
.cl-evp.st-no { background: var(--bad-soft); color: var(--bad); }

.profile-sep { margin: 6px 0 2px; padding: 6px 12px 2px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--line); }
