/* =====================================================
   DC 完了報告 — ダークテーマ（黒ベース＋カラーアクセント）
   デザインの決まりは リポジトリ直下の DESIGN.md を参照。
   色・角丸・影は必ず下の変数を使う（直接の色指定を増やさない）。
   ===================================================== */
:root {
  color-scheme: dark;
  /* 面（白の透明度で重ねる＝ガラス） */
  --bg: #0b0d12;
  --card: rgba(255, 255, 255, .07);       /* カード（白7%のガラス） */
  --card-hi: rgba(255, 255, 255, .11);    /* カードのグラデーション上側 */
  --card-solid: #15171d;                  /* 透けてはいけない所（固定した列など） */
  --tile: rgba(255, 255, 255, .08);       /* ピル・入力欄・薄いボタン */
  --tile-hi: rgba(255, 255, 255, .14);    /* ホバー */
  --line: rgba(255, 255, 255, .08);
  --scrim: rgba(11, 13, 18, .86);         /* 上のバーの背景 */
  /* 文字（主要100% ／ 補助60% ／ 未選択70%） */
  --text: #ffffff;
  --sub: rgba(255, 255, 255, .7);
  --muted: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .42);
  /* アクセント（シアン → バイオレット → マゼンタ。薄く・柔らかく、1画面で光るのは1か所だけ） */
  --cyan: #00e5ff;
  --violet: #7c5cff;
  --magenta: #ff2e88;
  --aurora: linear-gradient(135deg, var(--cyan), var(--violet) 52%, var(--magenta));
  --aurora-soft: linear-gradient(135deg, rgba(99, 156, 175, .2), rgba(129, 121, 178, .24) 52%, rgba(172, 103, 139, .2)); /* 色調整：彩度を下げた */
  --ring: linear-gradient(135deg, rgba(0, 229, 255, .55), rgba(124, 92, 255, .55) 52%, rgba(255, 46, 136, .55));
  /* 状態の色（意味があるときだけ使う） */
  --coral: #ff5a5f;
  --green: #2ec27e;
  --yellow: #ffc83d;
  --blue: #2f8cff;
  /* 会社ロゴ（DC）のホログラム色。ロゴのマークだけに使う */
  --holo-cyan: #5eead4;
  --holo-blue: #4f8bff;
  --holo-violet: #b37bff;
  --holo-sky: #7cc4ff;
  --holo-lilac: #c58bff;
  --holo-pink: #ff7ad1;
  --primary: var(--violet);
  --danger: var(--coral);
  /* 形 */
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 32px rgba(0, 0, 0, .45);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { overscroll-behavior-y: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
  padding-bottom: 112px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: var(--blue); }
::selection { background: rgba(107, 43, 255, .45); }

/* アイコン（線のSVG。絵文字は使わない） */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.btn .ic, .tag .ic, .lc-won .ic, .err-title .ic, .pc-title .ic, .req-box .ic, .vtime .ic, .vdate .ic, .bulk-label .ic { margin-right: 6px; }
.icon-btn .ic { margin: 0; }
.report-sub .ic, .visit-hours .ic, .sum-sub .ic { width: 15px; height: 15px; margin-right: 4px; color: var(--faint); vertical-align: -2px; }

/* ---------- 上のバー ---------- */
.topbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 18px 6px;
}
.topbar h1 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .02em; }
.brand-mark {
  width: 34px; height: 34px; flex: none; display: block;
  filter: drop-shadow(0 0 8px rgba(79, 139, 255, .45));
}
.topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.user-email { font-size: 12px; color: var(--muted); }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 16px; }

/* ---------- カード ---------- */
.card {
  background: linear-gradient(160deg, var(--card-hi) 0%, var(--card) 55%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.card h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; }

.notice { background: rgba(47, 140, 255, .12); color: #cfe2ff; padding: 12px 16px; font-size: 14px; border-radius: var(--radius-sm); margin: 0 0 12px; }
.notice.warn { background: rgba(255, 200, 61, .12); color: #ffe6a6; border-radius: 0; margin: 0; }
.notice.warn-box { background: rgba(255, 200, 61, .12); color: #ffe6a6; margin: 0 0 14px; line-height: 1.7; }
.notice code { color: #fff; }

/* ---------- 入力欄 ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: #c8c8d0; margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%;
  margin-top: 6px; padding: 12px 14px;
  font-size: 16px; font-family: inherit;
  color: var(--text); background: var(--tile);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); background: #1c1c20; box-shadow: 0 0 0 3px rgba(107, 43, 255, .25); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8e96' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type="date"], input[type="month"] { min-height: 46px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--violet); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; font-size: 15px; font-weight: 600; font-family: inherit;
  color: var(--text); background: var(--tile);
  border: none; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--tile-hi); }
.btn:active { transform: scale(.97); }
/* メインの操作：白地に黒文字（参考デザインのアクティブ表示） */
.btn.primary { background: #fff; color: #000; box-shadow: 0 8px 22px rgba(255, 255, 255, .10); }
.btn.primary:hover { background: #e9e9ee; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--tile); }
.btn.danger { background: rgba(255, 90, 95, .14); color: #ff8a8e; }
.btn.danger:hover { background: rgba(255, 90, 95, .22); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 12px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.icon-btn { width: 38px; height: 38px; padding: 0 !important; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-btn { background: none; border: none; color: #b9a3ff; font-weight: 600; cursor: pointer; padding: 8px 0; font-size: 14px; font-family: inherit; }

/* 上のバーのボタンはアイコンタイル風 */
.topbar-actions .btn.ghost { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.topbar-actions .btn.ghost:hover { background: var(--tile); }

/* ---------- ログイン ---------- */
.auth { max-width: 420px; margin: 32px auto; }
.auth-tabs { display: flex; background: var(--tile); border-radius: 16px; padding: 4px; margin-bottom: 18px; }
.auth-tab { flex: 1; background: none; border: none; padding: 10px; font-size: 15px; font-family: inherit; font-weight: 600; cursor: pointer; color: var(--muted); border-radius: 12px; }
.auth-tab.active { background: #fff; color: #000; }
.divider { text-align: center; color: var(--faint); font-size: 13px; margin: 16px 0; }

/* ---------- 下のタブ（ナビゲーション） ---------- */
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 2px; justify-content: space-around;
  max-width: 736px; margin: 0 auto;
  padding: 8px;
  background: rgba(24, 24, 27, .88); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
  will-change: transform;
}
/* 下にスクロールしたら隠れ、上にスクロールしたら出る */
.tabs.hide { transform: translateY(calc(100% + 32px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: none; background: none; border-radius: 16px; font-family: inherit; font-size: 10.5px; font-weight: 500; color: #6e6e76; white-space: nowrap; cursor: pointer; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: #fff; font-weight: 700; }
.tab.active svg { stroke-width: 2; }

/* ---------- タブ内の切り替え ---------- */
.seg { display: flex; width: 100%; background: var(--tile); border-radius: 16px; padding: 4px; margin: 2px 0 12px; }
.seg-btn { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 9px 10px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-btn.active { background: #fff; color: #000; }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sub-tab { padding: 7px 14px; border: none; border-radius: 999px; background: var(--tile); color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sub-tab.active { background: #fff; color: #000; }

.search { margin: 0 0 14px; }
.search { padding-left: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238e8e96' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; }

/* ---------- 報告・訪問のカード ---------- */
.report-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.report-title { font-size: 18px; font-weight: 700; margin: 0; }
.report-title .tag { font-size: 12px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.report-card { padding: 18px; }
.report-sub, .visit-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.report-sub .sep { margin: 0 6px; color: var(--faint); }
.report-items { margin: 8px 0; font-size: 14px; }
.report-items dt { color: var(--muted); font-size: 12px; margin-top: 8px; }
.report-items dd { margin: 0; word-break: break-all; white-space: pre-wrap; }
.report-details { margin-top: 10px; font-size: 14px; }
.report-details summary { cursor: pointer; color: #b9a3ff; font-size: 13px; font-weight: 600; }
.details-sub { margin: 10px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.report-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

.na-box { background: var(--tile); border-radius: 18px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.na-box strong { display: block; margin-bottom: 4px; }
.na-box a { word-break: break-all; }
.na-box dl { margin: 0; }
.na-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.na-line strong { display: inline; margin: 0; color: #b9a3ff; }
.na-text { margin-top: 4px; white-space: pre-wrap; }

.visit-item { background: linear-gradient(160deg, var(--card-hi) 0%, var(--card) 55%); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.visit-item .report-items { margin: 4px 0; }
.visit-item.is-done { opacity: .6; }
.visit-status { margin: 8px 0 2px; align-items: center; }
.visit-hours { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.visit-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vtime, .vdate { display: inline-flex; align-items: center; gap: 2px; margin: 0; font-weight: 500; font-size: 13px; color: var(--muted); }
.vtime select { width: auto; margin: 0; font-size: 14px; padding: 5px 30px 5px 10px; border-radius: 10px; background-position: right 10px center; }
.move-btns { margin-left: auto; display: inline-flex; gap: 4px; }
.move-btns .btn { width: 34px; height: 34px; padding: 0; }
.move-btns .ic { margin: 0; }
.row-when { margin: 4px 0; }
.row-when select, .row-when input { max-width: 180px; }
.group-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; margin: 18px 4px 8px; }

/* ---------- ラベル類（色で意味を持たせる） ---------- */
.case-no { display: inline-block; font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; padding: 2px 10px; border-radius: 8px; background: var(--violet); color: #fff; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--tile); color: #c8c8d0; white-space: nowrap; }
.badge.ok, .badge.st-done.ok { background: rgba(46, 194, 126, .16); color: #5fe0a4; }
.badge.wait, .badge.st-done.wait { background: rgba(255, 200, 61, .16); color: #ffd56b; }
.badge.gray, .badge.st-done.gray { background: var(--tile); color: #a0a0a8; }
.badge.ng, .badge.st-done.ng { background: rgba(255, 90, 95, .16); color: #ff8a8e; }
.badge.st-todo { background: rgba(255, 200, 61, .16); color: #ffd56b; }
.badge.st-done { background: rgba(46, 194, 126, .16); color: #5fe0a4; }
.due { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.due.over { background: rgba(255, 90, 95, .18); color: #ff8a8e; }
.due.now { background: rgba(255, 200, 61, .18); color: #ffd56b; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.tag { display: inline-flex; align-items: center; background: var(--tile); border: none; color: #c8c8d0; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
.tag .ic { width: 14px; height: 14px; margin-right: 4px; }
.tag.cat { background: rgba(47, 140, 255, .16); color: #7fb6ff; }
.tag.none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
.auto-tag { font-size: 10px; font-weight: 700; color: #5fe0a4; background: rgba(46, 194, 126, .16); border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: middle; }
.req { color: #ff8a8e; font-size: 12px; font-weight: 600; }
.opt { color: var(--faint); font-size: 12px; font-weight: 600; }

/* ---------- フォーム部品 ---------- */
fieldset.next-action { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 8px 0 12px; }
fieldset.next-action legend { font-weight: 700; padding: 0 6px; }
.error { color: #ff8a8e; font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin-top: 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.empty .ic.ok { width: 34px; height: 34px; color: var(--green); margin-bottom: 4px; }
.section-title { font-size: 15px; margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 4px; }
.save-row { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.lock-note, .locked { font-size: 12px; color: var(--muted); }
.field-row { background: var(--tile); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.field-row input, .field-row select, .field-row textarea, .row-card input, .row-card select, .row-card textarea, .case-card.multi input, .case-card.multi select, .case-card.multi textarea { background: #1a1a1d; }
.field-row-grid { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.field-row label { margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; margin: 0; }

.row-card { background: var(--tile); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.row-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.row-card .row-no { color: #b9a3ff; }
.case-card.multi { background: var(--tile); border-radius: 20px; padding: 14px; margin-bottom: 14px; }
.case-card.multi .row-card-head span { color: #b9a3ff; }
.section-toggle { background: var(--tile); border-radius: 14px; padding: 10px; margin-bottom: 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin-bottom: 8px; }
.filter-row label { margin-bottom: 0; }

/* 訪問リスト：リンク貼り付け */
.bulk-box { background: linear-gradient(135deg, rgba(107, 43, 255, .22), rgba(47, 140, 255, .10)); border-radius: 20px; padding: 14px 16px; margin-bottom: 14px; }
.bulk-box summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #fff; }
.bulk-label { display: flex; align-items: center; color: #fff; margin-bottom: 0; font-size: 14px; }
.bulk-box textarea { margin-top: 10px; font-size: 14px; background: rgba(0, 0, 0, .45); }
.bulk-box .hint { color: #b8b8c4; margin-top: 10px; }
.dup-warn { display: block; font-size: 12px; color: #ffd56b; margin-top: 2px; }
.rows-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 14px; border: 1px dashed var(--line); border-radius: 16px; margin-bottom: 10px; }
.lookup-status { display: block; font-size: 12px; margin-top: 4px; color: var(--muted); white-space: pre-line; }
.lookup-status.ok { color: #5fe0a4; }
.lookup-status.ng { color: #ff8a8e; }
.lookup-status.dup { color: #ffd56b; }
.fix-name { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.case-hit { display: block; font-size: 12px; margin-top: 4px; color: #5fe0a4; }
.row-summary:empty { display: none; }
.row-summary { background: #1a1a1d; border-radius: 14px; padding: 10px 12px; margin: 2px 0 8px; }
.row-summary .sum-name { font-weight: 700; font-size: 15px; }
.row-summary .sum-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row-more { margin-top: 4px; }
.row-more > summary { cursor: pointer; font-size: 13px; color: #b9a3ff; padding: 4px 0; }
.row-more[open] > summary { margin-bottom: 8px; }

/* 訪問リスト：担当者別の件数 */
.person-counts:empty { display: none; }
.person-counts { background: var(--tile); border-radius: 18px; padding: 10px 12px; margin: 8px 0 14px; }
.pc-title { display: flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px 0; }
.pc-row + .pc-row { border-top: 1px solid var(--line); }
.pc-date { font-size: 13px; font-weight: 700; margin-right: 4px; }
.pc-chip { border: none; background: #1a1a1d; color: var(--text); border-radius: 999px; padding: 5px 12px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pc-chip b { color: #b9a3ff; }
.pc-chip.active { background: #fff; color: #000; }
.pc-chip.active b { color: var(--violet); }

/* 報告一覧：検索・件数 */
.list-tools { padding: 14px 16px; }
.list-tools .search { margin: 0 0 10px; }
.tool-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool-row label { margin-bottom: 0; font-size: 12px; color: var(--muted); }
.tool-row select { padding: 9px 30px 9px 12px; font-size: 14px; background-position: right 10px center; }
.list-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.list-meta .link-btn { padding: 0; font-size: 13px; }
#listCount { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; }
.lc-total { font-weight: 700; color: var(--text); }
.lc-won { display: inline-flex; align-items: center; background: rgba(46, 194, 126, .16); color: #5fe0a4; border-radius: 999px; padding: 2px 12px; }
.lc-won .ic { width: 15px; height: 15px; }
.lc-won b { font-size: 15px; margin: 0 2px; }
.lc-rest { color: var(--muted); }

/* 予定の絞り込み */
.sched-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.sched-filters label { margin: 0; font-size: 12px; color: var(--muted); }
.sched-filters select { padding: 10px 28px 10px 12px; font-size: 14px; background-position: right 10px center; }
#schedDate { margin: 0 0 10px; max-width: 220px; }

/* 予定：一覧の行 */
.mini-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: none; }
.mini-main { min-width: 0; flex: 1 1 220px; }
.mini-title { font-size: 16px; font-weight: 700; }
.mini-title b { display: inline-block; background: #fff; color: #000; border-radius: 8px; padding: 0 8px; margin-right: 4px; font-size: 13px; }
.mini-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* デモサイトのリンク */
.demo-url-link { font-size: 12px; word-break: break-all; align-self: center; color: var(--sub); text-decoration: none; }

/* 承認待ち・メンバー管理 */
.member-add { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; margin: 8px 0 12px; }
.member-add input, .member-add select { margin-top: 0; }
.member-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-email { font-size: 14px; word-break: break-all; }
.m-email small { color: var(--muted); margin-left: 4px; }
.req-box { background: rgba(255, 200, 61, .10); border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; }
.req-box > b { display: flex; align-items: center; color: #ffd56b; }
.warn-text { color: #ff8a8e; }
.name-panel { max-width: 760px; margin: 8px auto 0; padding: 14px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
body:not(.logged-in) .hidden-logged-out { display: none; }

/* 写真 */
.photo-field { display: block; margin-top: 6px; }
.ph-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ph { position: relative; display: inline-block; }
.ph img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--tile); display: block; }
.ph-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #fff; color: #000; cursor: pointer; line-height: 22px; padding: 0; }
.ph-add { position: relative; overflow: hidden; cursor: pointer; }
.ph-add input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* 集計 */
.stats-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stats-pick input, .stats-pick select { width: auto; margin-top: 0; }
.stats-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.stats-summary div { background: var(--tile); border-radius: 18px; padding: 14px 10px; text-align: center; }
.stats-summary div:nth-child(1) { box-shadow: inset 0 -3px 0 var(--violet); }
.stats-summary div:nth-child(2) { box-shadow: inset 0 -3px 0 var(--blue); }
.stats-summary div:nth-child(3) { box-shadow: inset 0 -3px 0 var(--green); }
.stats-summary div:nth-child(4) { box-shadow: inset 0 -3px 0 var(--yellow); }
.stats-summary b { display: block; font-size: 24px; font-weight: 700; }
.stats-summary small { color: var(--muted); }
.stats-h { font-size: 15px; margin: 22px 0 8px; }
.stat-table { font-size: 13px; }
.st-head, .st-row { display: grid; grid-template-columns: 1.6fr 1.2fr .7fr .7fr .8fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.st-head { color: var(--muted); font-size: 12px; font-weight: 700; }
.st-key { font-weight: 600; word-break: break-all; }
.st-won, .stats-summary .st-won b { color: #5fe0a4; font-weight: 700; }
.bar { display: inline-block; height: 8px; background: linear-gradient(90deg, var(--violet), var(--blue)); border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.stat-table.daily .st-head, .stat-table.daily .st-row { grid-template-columns: 1.6fr repeat(var(--cols, 5), minmax(34px, 1fr)); }
.stat-table.daily .st-head span, .stat-table.daily .st-row span { text-align: center; }
.stat-table.daily .st-head span:first-child, .stat-table.daily .st-row span:first-child { text-align: left; }

/* エラー表示 */
.error-box { background: rgba(255, 90, 95, .10); border: 1px solid rgba(255, 90, 95, .3); border-radius: 16px; padding: 12px 14px; color: var(--text); font-size: 14px; line-height: 1.6; }
.error-box .err-title { display: flex; align-items: center; color: #ff8a8e; font-weight: 700; margin-bottom: 4px; }
.error-box .err-row { margin-top: 4px; }
.error-box .err-row b { display: inline-block; min-width: 3em; margin-right: 6px; color: #ff8a8e; font-size: 12px; }
.error-box .err-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.error-box .err-code { font-size: 11px; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.error-banner { position: relative; max-width: 728px; margin: 8px auto 0; padding-right: 36px; }
.err-close { position: absolute; top: 6px; right: 8px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }

/* メッセージ（下のタブより上に出す） */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 40;
  background: #fff; color: #000; font-weight: 600; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* 下に引いて更新 */
#pullIndicator {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 50%;
  transform: translate(-50%, -60px); opacity: 0; pointer-events: none;
  background: var(--tile); color: var(--text); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  z-index: 60; transition: opacity .15s;
}
#pullIndicator.ready { background: #fff; color: #000; }

/* ---------- スマホ ---------- */
@media (max-width: 560px) {
  .tool-row { grid-template-columns: 1fr 1fr; }
  .tool-row label:first-child { grid-column: 1 / -1; }
  .member-add { grid-template-columns: 1fr 1fr; }
  .member-add input { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .sched-filters { grid-template-columns: 1fr 1fr; }
  .sched-filters label:last-child { grid-column: 1 / -1; }
  #copyAppLink span, #logoutBtn span { display: none; }
  #copyAppLink, #logoutBtn { width: 38px; height: 38px; padding: 0; }
  #copyAppLink .ic, #logoutBtn .ic { margin: 0; }
}
@media (max-width: 480px) {
  .field-row-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 18px; }
  .stats-summary { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 18px 16px; }
}

/* ボタン列の中のラベルは高さを伸ばさない */
.btn-row > .badge, .btn-row > .case-no, .btn-row > .due { align-self: center; }

/* 以前訪問済みの警告（黄＝注意） */
.dup-alert { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 200, 61, .16); color: #ffd56b; font-size: 13px; font-weight: 600; line-height: 1.5; }
.dup-alert.hidden { display: none; }
.dup-alert .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
/* 編集画面のデモLPのURL欄 */
.demo-url-box { margin: 10px 0; padding: 12px; border-radius: 16px; background: var(--tile); }
.demo-url-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.demo-url-head .ic { color: var(--blue); width: 16px; height: 16px; }
.demo-url-box input { width: 100%; }
.demo-url-box .hint { margin: 6px 0 0; }

/* =====================================================
   仕上げ（質感・奥行き・動き）— 上の基本スタイルに重ねる
   色は変数だけ。新しい変数はここで追加する。
   ===================================================== */
:root {
  --glass: rgba(20, 22, 30, .72);
  --glass-line: rgba(255, 255, 255, .12);
  --shine: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 38%, rgba(255, 255, 255, .07));
  --glow-violet: rgba(124, 92, 255, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
  --radius: 26px;
}
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  background:
    radial-gradient(60% 34% at 50% 0%, var(--glow-violet), transparent 72%),
    var(--bg);
  background-repeat: no-repeat; background-attachment: fixed;
  font-feature-settings: "palt", "tnum";
}
* { scrollbar-width: thin; scrollbar-color: #2e2e32 transparent; }

/* 上のバー：すりガラスで上に張り付く */
.topbar {
  position: sticky; top: 0; z-index: 25; max-width: none;
  padding: calc(12px + env(safe-area-inset-top)) max(18px, calc((100% - 724px) / 2)) 12px;
  background: var(--scrim);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 19px; letter-spacing: .01em; }
.brand-mark { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(79, 139, 255, .55)); }
.topbar-actions .btn.ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--glass-line); }
.topbar-actions .btn.ghost:hover { background: rgba(255, 255, 255, .12); }

/* カード：ふちに光、奥行きのある影 */
.card, .visit-item, .name-panel { position: relative; }
.card::before, .visit-item::before, .name-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--shine);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card { padding: 22px; margin-bottom: 16px; }
.card h2 { font-size: 20px; letter-spacing: .005em; margin-bottom: 16px; }
.visit-item { border-radius: 24px; padding: 18px 20px; }
.report-card { padding: 20px; }
.report-title { font-size: 19px; letter-spacing: .005em; }

/* 画面の切り替えアニメーション（一覧は再描画が多いので対象外） */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-panel > * { animation: rise .45s var(--ease) both; }
.tab-panel > *:nth-child(2) { animation-delay: .05s; }
.tab-panel > *:nth-child(n+3) { animation-delay: .10s; }

/* 入力欄 */
label { color: #b4b4bc; letter-spacing: .02em; }
input, select, textarea {
  padding: 13px 15px; border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
input:hover, select:hover, textarea:hover { background: rgba(255, 255, 255, .08); }
input:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(139, 92, 255, .9);
  box-shadow: 0 0 0 4px rgba(107, 43, 255, .28), inset 0 1px 2px rgba(0, 0, 0, .3);
}
.field-row input, .field-row select, .field-row textarea, .row-card input, .row-card select, .row-card textarea,
.case-card.multi input, .case-card.multi select, .case-card.multi textarea { background: rgba(0, 0, 0, .35); }

/* ボタン：触りたくなる質感 */
.btn {
  min-height: 44px; padding: 11px 18px; border-radius: 16px;
  background: linear-gradient(180deg, var(--tile-hi), var(--tile));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, filter .2s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: scale(.96); filter: brightness(.95); }
.btn.primary {
  background: linear-gradient(180deg, #fff, #e4e4ea); color: #000;
  box-shadow: 0 1px 0 #fff inset, 0 10px 28px -6px rgba(255, 255, 255, .28), 0 2px 6px rgba(0, 0, 0, .4);
}
.btn.primary:hover { background: linear-gradient(180deg, #fff, #ececf1); filter: none; }
.btn.ghost { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--glass-line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .10); filter: none; }
.btn.danger { background: rgba(255, 90, 95, .14); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, .22); }
.btn.small { min-height: 36px; padding: 7px 13px; border-radius: 13px; }
.icon-btn { width: 40px; height: 40px; min-height: 40px; border-radius: 14px; }
.btn:focus-visible, .tab:focus-visible, .seg-btn:focus-visible, .sub-tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.link-btn { transition: color .15s; }
.link-btn:hover { color: #d2c4ff; }

/* 下のタブ：選ばれている項目を丸く光らせる */
.tabs {
  background: var(--glass); border-radius: 30px; padding: 7px;
  border: 1px solid var(--glass-line);
  box-shadow: 0 18px 44px -10px rgba(0, 0, 0, .85), 0 2px 10px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .08) inset;
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.tab { padding: 8px 2px 7px; border-radius: 22px; transition: color .2s, background .25s var(--ease), transform .15s var(--ease); }
.tab:active { transform: scale(.94); }
.tab.active { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset; }
.tab svg { transition: transform .25s var(--ease), stroke-width .2s; }
.tab.active svg { transform: translateY(-1px) scale(1.06); }

/* 切り替え（今日/明日 など） */
.seg, .auth-tabs { background: rgba(0, 0, 0, .45); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); border-radius: 18px; padding: 4px; }
.seg-btn, .auth-tab { border-radius: 14px; transition: background .2s, color .2s, box-shadow .2s; }
.seg-btn:hover:not(.active), .auth-tab:hover:not(.active) { color: var(--text); }
.seg-btn.active, .auth-tab.active { background: linear-gradient(180deg, #fff, #e6e6ec); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.sub-tab { background: rgba(255, 255, 255, .06); transition: background .2s, color .2s; }
.sub-tab:hover:not(.active) { background: rgba(255, 255, 255, .12); color: var(--text); }
.sub-tab.active { background: linear-gradient(180deg, #fff, #e6e6ec); }

/* ラベル類 */
.case-no { background: linear-gradient(135deg, #8b5cff, var(--violet)); box-shadow: 0 4px 14px rgba(107, 43, 255, .45); border-radius: 9px; padding: 2px 11px; }
.badge { padding: 3px 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.badge.ok, .badge.st-done, .badge.st-done.ok { box-shadow: inset 0 0 0 1px rgba(46, 194, 126, .28); }
.badge.wait, .badge.st-todo, .badge.st-done.wait { box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .28); }
.badge.ng, .badge.st-done.ng { box-shadow: inset 0 0 0 1px rgba(255, 90, 95, .28); }
.tag { background: rgba(255, 255, 255, .06); }
.tag.cat { background: rgba(47, 140, 255, .16); box-shadow: inset 0 0 0 1px rgba(47, 140, 255, .26); }

/* カードの中のまとまり */
.na-box { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); border-radius: 20px; padding: 14px 16px; }
.row-card, .field-row, .case-card.multi, .person-counts, .demo-url-box { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.bulk-box { box-shadow: inset 0 0 0 1px rgba(139, 92, 255, .35), 0 12px 32px -14px rgba(107, 43, 255, .55); border-radius: 22px; }
.group-title { letter-spacing: .08em; color: var(--muted); }

/* 予定の行 */
.mini-row { padding: 15px 6px; transition: background .2s; border-radius: 14px; }
.mini-row:hover { background: rgba(255, 255, 255, .03); }
.mini-title b { background: linear-gradient(180deg, #fff, #e6e6ec); }

/* 集計：数字を主役に */
.stats-summary div { background: rgba(255, 255, 255, .05); padding: 18px 10px 16px; position: relative; overflow: hidden; }
.stats-summary div::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: currentColor; opacity: .9; }
.stats-summary div:nth-child(1) { box-shadow: inset 0 0 0 1px var(--line); color: var(--violet); }
.stats-summary div:nth-child(2) { box-shadow: inset 0 0 0 1px var(--line); color: var(--blue); }
.stats-summary div:nth-child(3) { box-shadow: inset 0 0 0 1px var(--line); color: var(--green); }
.stats-summary div:nth-child(4) { box-shadow: inset 0 0 0 1px var(--line); color: var(--yellow); }
.stats-summary b { font-size: 28px; letter-spacing: -.01em; color: var(--text); }
.stats-summary small { color: var(--muted); font-size: 12px; }
.bar { height: 8px; border-radius: 999px; box-shadow: 0 0 12px rgba(107, 43, 255, .5); }

/* 空の状態・メッセージ */
.empty { padding: 40px 0; }
.toast { bottom: 108px; background: linear-gradient(180deg, #fff, #e6e6ec); padding: 12px 22px; transition: opacity .25s, transform .3s var(--ease); transform: translate(-50%, 8px); }
.toast.show { transform: translate(-50%, 0); }
#pullIndicator { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--glass-line), 0 8px 24px rgba(0, 0, 0, .6); }

@media (max-width: 480px) { .card { padding: 20px 16px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 集計：棒グラフと数字を1行に並べる／数字を縦に割らない */
.st-vis { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-vis .bar { margin-right: 0; flex: none; }
.st-row span, .st-head span { white-space: nowrap; }
.st-row .st-key { white-space: normal; }
.stats-pick select, .stats-pick input { min-width: 0; }

/* 日付欄が右にはみ出さないようにする（iPhoneのSafariは日付欄が幅を超えやすい） */
input[type="date"], input[type="month"], input[type="time"] {
  -webkit-appearance: none; appearance: none;
  min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box;
  text-align: left; overflow: hidden;
}
input[type="date"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: left; min-width: 0; margin: 0; }
.filter-row > label { flex: 1 1 150px; min-width: 0; max-width: 100%; }
.filter-row > .btn-row { flex: 1 1 100%; }
.stats-pick input[type="date"], .stats-pick input[type="month"] { width: auto; flex: 1 1 140px; }
#schedDate, #visitDate, #visitFilterDate { max-width: 100%; }

/* 上のバー：下にスクロールしたら隠れ、一番上に戻ったときだけ出る */
.topbar { transition: transform .3s var(--ease), opacity .3s ease; }
.topbar.hide { transform: translateY(-110%); opacity: 0; pointer-events: none; }

/* 集計の日報（数字）：表だけ横にスクロールできる。日付の列は左に固定 */
#statsDaily { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px 6px; }
.stat-table.daily { min-width: calc(72px + var(--cols, 5) * 56px + 56px); }
.stat-table.daily .st-head, .stat-table.daily .st-row { grid-template-columns: 72px repeat(calc(var(--cols, 5) + 1), minmax(52px, 1fr)); gap: 4px; }
.stat-table.daily .st-head span:first-child, .stat-table.daily .st-row span:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--card); padding-right: 2px; white-space: nowrap;
}

/* 説明文：行間を少し広げて読みやすくする（改行は文の区切りに入れてある） */
.hint { line-height: 1.75; }

/* 日報（数字）：年・日付の選択 */
.daily-pick { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: end; margin: 4px 0 4px; }
.daily-pick label { margin: 0; font-size: 12px; color: var(--muted); min-width: 0; }
.daily-pick select { padding: 11px 30px 11px 13px; font-size: 15px; background-position: right 10px center; }
.daily-pick .btn { min-height: 44px; }
#dailyRange { margin: 6px 2px 10px; }
@media (max-width: 480px) { .daily-pick { grid-template-columns: 96px 1fr; } .daily-pick .btn { grid-column: 1 / -1; } }

/* 時刻ボタン（タップするとアラームのような回転式ピッカーが開く） */
.time-field { display: block; margin-top: 6px; }
.time-btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
  font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .02em; color: var(--text);
  background: rgba(255, 255, 255, .055); border: 1px solid transparent; border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); cursor: pointer; transition: background .2s, transform .15s var(--ease);
}
.time-btn:hover { background: rgba(255, 255, 255, .09); }
.time-btn:active { transform: scale(.97); }
.time-btn.empty-val { color: var(--muted); font-weight: 600; }
.time-btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.vtime .time-btn { margin-left: 4px; }

/* 回転式ピッカー本体：画面の中央に出る、時と分だけの小さなカプセル枠。外側をタップ（または「閉じる」）で自動で入る */
.time-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.ts-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: tsFade .25s ease both; }
.ts-panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: tsPop .3s var(--ease) both; }
.ts-title { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.ts-wheels { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 22px; height: 210px; }
.ts-mark { position: absolute; left: 0; right: 0; top: 50%; height: 54px; margin-top: -27px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); pointer-events: none; }
.ts-col {
  position: relative; z-index: 1; width: 48px; height: 210px; overflow-y: auto; scroll-snap-type: y mandatory;
  padding: 90px 0; box-sizing: border-box; scrollbar-width: none; overscroll-behavior: contain; perspective: 240px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.ts-col::-webkit-scrollbar { display: none; }
.ts-item { height: 30px; line-height: 30px; text-align: center; font-size: 30px; font-weight: 500; letter-spacing: .02em; color: var(--text); scroll-snap-align: center; cursor: pointer; font-variant-numeric: tabular-nums; opacity: 0; }
.ts-colon { position: relative; z-index: 1; font-size: 26px; font-weight: 500; padding-bottom: 3px; }
.ts-foot { display: flex; gap: 22px; }
.ts-link { background: none; border: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); padding: 8px 4px; cursor: pointer; }
.ts-link:hover { color: var(--text); }
@keyframes tsPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tsFade { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================
   2026 UIリフレッシュ：ガラスのピル・グラデーションの光
   ここから下が最終の決まり（上の同じ部品より後ろなので優先される）。
   ===================================================== */

/* ライトモード（変数だけ。まだ切り替えの画面はなく、data-theme="light" を付けた時だけ効く） */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3f7;
  --card: rgba(255, 255, 255, .72);
  --card-hi: rgba(255, 255, 255, .92);
  --card-solid: #ffffff;
  --tile: rgba(11, 13, 18, .06);
  --tile-hi: rgba(11, 13, 18, .11);
  --line: rgba(11, 13, 18, .09);
  --scrim: rgba(242, 243, 247, .88);
  --text: #0b0d12;
  --sub: rgba(11, 13, 18, .72);
  --muted: rgba(11, 13, 18, .6);
  --faint: rgba(11, 13, 18, .42);
  --glass: rgba(255, 255, 255, .8);
  --glass-line: rgba(11, 13, 18, .1);
  --glow-violet: rgba(124, 92, 255, .10);
}

/* 線のアイコン：1.5px。選択中のタブは明るい水色がかった白＋柔らかい青いグロー */
.ic { stroke-width: 1.5; }
label { color: var(--sub); }
.tab { color: var(--sub); }
.tab svg { stroke-width: 1.5; }
.tab.active { color: #eafcff; font-weight: 700; background: none; box-shadow: none; }
.tab.active svg { color: #eafcff; stroke-width: 1.5; transform: none; filter: drop-shadow(0 0 6px rgba(0, 229, 255, .55)); }
.tabs { border-radius: 999px; }
.tab { border-radius: 999px; }

/* 上のバー：ガラスのピルボタン */
.topbar-actions .btn { border-radius: 999px; }
.topbar-actions .btn.ghost { background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
.topbar-actions .btn.ghost:hover { background: var(--tile-hi); }
.topbar-actions .btn:disabled { opacity: .35; }
.topbar-actions .btn:disabled:hover { filter: none; transform: none; }
#undoBtn, #redoBtn { width: 40px; height: 40px; min-height: 40px; }
#installBtn { background: linear-gradient(var(--tile), var(--tile)) padding-box, var(--ring) border-box; border: 1.5px solid transparent; color: var(--text); box-shadow: none; }

/* ボタン：角丸16px。メインは薄いグラデーションの枠（白地は使わない） */
.btn { border-radius: 16px; }
.btn.primary {
  background: linear-gradient(var(--tile), var(--tile)) padding-box, var(--ring) border-box;
  border: 1.5px solid transparent; color: var(--text);
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, .55);
}
.btn.primary:hover { background: linear-gradient(var(--tile-hi), var(--tile-hi)) padding-box, var(--ring) border-box; filter: brightness(1.1); }
.btn.ghost { border-radius: 16px; }
.btn.danger { background: rgba(255, 90, 95, .14); color: #ff8a8e; }
.btn:focus-visible, .tab:focus-visible, .seg-btn:focus-visible, .sub-tab:focus-visible, .pc-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* 切り替え：選択中はグラデーションの光＋白文字（白いピルは使わない） */
.seg, .auth-tabs { border-radius: 999px; }
.seg-btn, .auth-tab { border-radius: 999px; color: var(--sub); }
.seg-btn.active, .auth-tab.active, .sub-tab.active, .pc-chip.active {
  background: var(--aurora-soft); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .5), 0 0 9px -2px rgba(124, 92, 255, .25);
}
.sub-tab { border-radius: 999px; background: var(--tile); color: var(--sub); }
.sub-tab:hover:not(.active) { background: var(--tile-hi); }
.pc-chip { border-radius: 999px; background: var(--tile); color: var(--text); }
.pc-chip.active b { color: var(--cyan); }
.pc-chip b { color: var(--text); }

/* フィルター（担当・業種・状態）：ガラスのピルに、薄いグラデーションの枠 */
.sched-filters select, .tool-row select {
  border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d0d0d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px,
    linear-gradient(var(--card-solid), var(--card-solid)) padding-box,
    var(--ring) border-box;
  border: 1.5px solid transparent;
}

/* 訪問カード：白7%のガラス・角丸20px・薄いグラデーションの枠 */
.visit-item { border-radius: 20px; padding: 16px 18px; background: linear-gradient(160deg, var(--card-hi), var(--card) 60%); }
.visit-item::before { background: var(--ring); }
/* 並び順：日時 → 店名（幅いっぱい） → 地域・業種 → 担当・ボタン */
.visit-item { display: flex; flex-wrap: wrap; }
.visit-item > * { width: 100%; }
.visit-item > .visit-sub { order: 0; }
.visit-item > .report-head { order: 1; }
.visit-item > .tags { order: 2; }
.visit-item > .visit-hours { order: 3; }
.visit-item > .visit-status { order: 4; }
.visit-item > .report-items { order: 5; }
.visit-item > .report-details { order: 6; }
.visit-item > .report-foot { order: 7; }
.visit-item .report-title { font-size: 18px; width: auto; flex: 1 1 auto; min-width: 0; }
.visit-item .vtime, .visit-item .vdate { font-size: 13px; color: var(--sub); }
.vtime { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--text); font-weight: 600; }
.vtime select, .vtime .time-btn { border-radius: 999px; }
.vdate { color: var(--sub); }

/* 案件番号：グラデーションの枠線だけ（塗りつぶさない） */
.case-no {
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--aurora) border-box;
  border: 1.5px solid transparent; border-radius: 999px; padding: 1px 11px;
  color: var(--text); box-shadow: none;
}
/* 未報告：グラデーションの枠（金色は使わない） */
.badge.st-todo {
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--aurora) border-box;
  border: 1.5px solid transparent; color: var(--text); box-shadow: none;
}
.badge.st-done.ok, .badge.ok { border-radius: 999px; }

/* 訪問カード・予定の行のボタン：地図／デモサイト／デモURLをコピー＝ガラスのピル */
.visit-item .btn, .mini-row .btn { border-radius: 999px; }
.visit-item .btn:not(.primary):not(.danger):not(.pill-plate), .mini-row .btn:not(.primary):not(.danger):not(.pill-plate) {
  background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line);
}
.visit-item .btn:not(.primary):not(.danger):not(.pill-plate):hover, .mini-row .btn:not(.primary):not(.danger):not(.pill-plate):hover { background: var(--tile-hi); }
/* 報告する：最重要なので、シアン→マゼンタのグラデーションのピル */
.visit-item .btn.primary, .mini-row .btn.primary, .visit-item .btn.primary:hover, .mini-row .btn.primary:hover {
  background: var(--aurora); border: 0; color: #0b0d12; font-weight: 700;
  box-shadow: 0 8px 22px -8px rgba(255, 46, 136, .55), 0 0 18px -6px rgba(0, 229, 255, .45);
}
.demo-url-link { color: var(--sub); text-decoration: none; }
.demo-url-link:hover { color: var(--text); }

/* 予定の行：時刻ピル（ガラス）→ 案件番号 → 店名（次の行で幅いっぱい）→ 地域・業種・担当 */
.mini-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mini-title b { display: inline-block; margin: 0; padding: 3px 11px; border-radius: 999px; background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); font-size: 13px; }
.mini-title .case-no { order: 1; margin-left: auto; }
.mini-date { font-size: 13px; color: var(--sub); font-weight: 500; }
.mini-shop { order: 2; flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.mini-row { padding: 14px 6px; }
.mini-row:hover { background: var(--tile); }

/* 集計・その他の面 */
.bar { background: var(--aurora); }
.stats-summary div { border-radius: 20px; }
.ph-x { background: var(--tile-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }

/* 一時のメッセージ・引いて更新：ガラス（白のベタ塗りは使わない） */
.toast { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line), 0 12px 30px rgba(0, 0, 0, .5); }
#pullIndicator.ready { background: var(--aurora-soft); color: var(--text); }

/* 黄色の注意は、枠を薄く残す程度に抑える */
.dup-alert { border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .tab.active svg { transition: none; } }

/* =====================================================
   ラウンド2（全画面の統一）：ガラス＋シアン→バイオレット→マゼンタの柔らかい光。
   違いは「光」だけ。金色・紫の文字・青い下線・白地の大きな面は使わない。
   ここから下が最終の決まり（上の同じ部品より後ろなので優先される）。
   ===================================================== */
:root {
  --ring-soft: linear-gradient(135deg, rgba(0, 229, 255, .5), rgba(124, 92, 255, .5) 52%, rgba(255, 46, 136, .5));
  --ring-danger: linear-gradient(135deg, rgba(255, 90, 95, .55), rgba(255, 90, 95, .22));
  --aurora-fill: linear-gradient(135deg, rgba(99, 156, 175, .56), rgba(129, 121, 178, .6) 52%, rgba(172, 103, 139, .54)); /* 彩度を約6割・暗い色の明度を上げ、ガラス越しのにじむ光に（色調整） */
  --coral-soft: #ff9fa3;
  --nav-idle: #8d9bb0;
  --yellow: #e6eaf2;   /* 金色は使わない。注意は銀白で表す */
  --ring-fill: #1a1c23; /* 細い枠のピルの中の塗り（透けると枠の色が広がるので不透明に近くする） */
}
a { color: var(--sub); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: rgba(0, 229, 255, .3); }
.link-btn, .link-btn:hover { color: var(--sub); }
.link-btn:hover { color: var(--text); }

/* ----- ボタン：すべて完全なピル。線画アイコンつき ----- */
.btn, .btn.small, .btn.ghost {
  border-radius: 999px; min-height: 40px;
  background: var(--tile); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--glass-line);
}
.btn.small { min-height: 34px; padding: 7px 14px; font-size: 14px; }
.btn:hover { background: var(--tile-hi); }
.btn .ic, .btn.small .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
/* 複写・編集・削除のボタンには、線画アイコンを CSS で付ける（アイコンが無いボタンだけ） */
.btn[data-copy]:not(:has(> .ic))::before, .btn[data-copy-field]::before,
.btn[data-edit]::before, .btn[data-vedit]::before,
.btn[data-del]::before, .btn[data-vdel]::before, .btn[data-remove]::before {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px;
  background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='3'/%3E%3Cpath d='M16 8V6.5A2.5 2.5 0 0013.5 4h-7A2.5 2.5 0 004 6.5v7A2.5 2.5 0 006.5 16H8'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='3'/%3E%3Cpath d='M16 8V6.5A2.5 2.5 0 0013.5 4h-7A2.5 2.5 0 004 6.5v7A2.5 2.5 0 006.5 16H8'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.btn[data-edit]::before, .btn[data-vedit]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4.5-1 10-10a2.1 2.1 0 00-3-3l-10 10L4 20zM13.5 6.5l3 3'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4.5-1 10-10a2.1 2.1 0 00-3-3l-10 10L4 20zM13.5 6.5l3 3'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.btn[data-del]::before, .btn[data-vdel]::before, .btn[data-remove]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.5 7V4.8h5V7M6.5 7l1 12.5h9l1-12.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.5 7V4.8h5V7M6.5 7l1 12.5h9l1-12.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
/* メインの操作（保存する・報告する）：シアン→マゼンタの柔らかい光のピル＋白文字 */
.btn.primary, .btn.primary:hover, .visit-item .btn.primary, .visit-item .btn.primary:hover, .mini-row .btn.primary, .mini-row .btn.primary:hover {
  background: var(--aurora-fill); border: 0; color: #fff; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 11px -10px rgba(172, 103, 139, .25);
}
/* 削除：ベタの赤ではなく、ガラスに細い柔らかい赤い枠 */
.btn.danger, .visit-item .btn.danger, .mini-row .btn.danger {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-danger) border-box;
  border: 1px solid transparent; color: var(--coral-soft); box-shadow: none;
}
.btn.danger:hover { background: linear-gradient(var(--tile-hi), var(--tile-hi)) padding-box, var(--ring-danger) border-box; }
/* 訪問予定時刻の選んだ後：グラデーション枠線 */
.time-btn { border-radius: 999px; background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
.time-btn:not(.empty-val) { background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box; border: 1px solid transparent; box-shadow: none; }
.time-btn.empty-val { color: var(--sub); }
/* マップから読み取り直す：全幅のガラスのピル＋細いグラデーション枠 */
.btn[data-relookup] {
  width: 100%; justify-content: center;
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box; border: 1px solid transparent; box-shadow: none;
}
/* 以前訪問済みの警告：金色をやめ、柔らかいガラスの帯＋細い枠 */
.dup-alert, .notice, .notice.warn, .notice.warn-box, .req-box, .bulk-box {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box;
  border: 1px solid transparent; box-shadow: none; color: var(--sub);
}
.dup-alert { font-weight: 500; border-radius: 16px; }
.dup-alert .ic { color: var(--text); }
.notice code { color: var(--text); }
.bulk-box summary, .bulk-label { color: var(--text); }
.bulk-box textarea { background: rgba(0, 0, 0, .3); }
.req-box > b { color: var(--text); }
.warn-text { color: var(--coral-soft); }
.dup-warn, .lookup-status.dup { color: var(--sub); }
.lookup-status.ok, .case-hit { color: var(--sub); }
.lookup-status.ng { color: var(--coral-soft); }
/* 「読み取った内容を確認・修正」「詳細を表示」：紫の文字をやめ、白70％ */
.row-more > summary, .report-details summary, .row-more > summary:hover, .report-details summary:hover { color: var(--sub); }
.row-card .row-no, .case-card.multi .row-card-head span, .na-line strong, .details-sub { color: var(--sub); }
.error-box .err-row b, .error-box .err-title { color: var(--coral-soft); }

/* ----- 報告一覧・訪問リストのカード ----- */
.report-card .btn, .visit-item .btn, .mini-row .btn { border-radius: 999px; }
.visit-item .btn:not(.primary):not(.danger):not(.pill-plate), .mini-row .btn:not(.primary):not(.danger):not(.pill-plate) { background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
/* デモURLの文字：白70％、きれいに折り返す */
.demo-url-link, .report-card .demo-url-link {
  color: var(--sub); text-decoration: none; word-break: normal; overflow-wrap: anywhere; min-width: 0; flex: 1 1 160px; text-align: left;
}
.na-box { background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box; border: 1px solid transparent; box-shadow: none; }
/* 成約・報告済み・成功のラベル：ベタの緑をやめ、同じ言語（ガラス＋細い枠） */
.lc-won, .badge.ok, .badge.st-done, .badge.st-done.ok, .auto-tag {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box;
  border: 1px solid transparent; color: var(--text); box-shadow: none;
}
.lc-won .ic { color: var(--text); }
.lc-won b { color: var(--text); }
/* 未報告・検討中の黄色は、銀白の文字＋細い枠 */
.badge.wait, .badge.st-todo, .badge.st-done.wait, .due.now {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box;
  border: 1px solid transparent; color: var(--text); box-shadow: none;
}
.badge.gray, .badge.st-done.gray { background: var(--tile); color: var(--sub); box-shadow: inset 0 0 0 1px var(--glass-line); }
.badge.ng, .badge.st-done.ng, .due.over {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-danger) border-box;
  border: 1px solid transparent; color: var(--coral-soft); box-shadow: none;
}
.tag.cat { background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box; border: 1px solid transparent; color: var(--text); box-shadow: none; }
.tag.none { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--glass-line); }

/* ----- 集計の数字 ----- */
.stats-summary div, .stats-summary div:nth-child(1), .stats-summary div:nth-child(2), .stats-summary div:nth-child(3), .stats-summary div:nth-child(4) {
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line); background: var(--tile);
}
.stats-summary div::after { background: var(--aurora); }
.stats-summary .st-won b, .st-won { color: var(--text); }
.bar { background: var(--aurora); }

/* ----- 担当者の切り替え（件数） ----- */
.pc-chip b, .pc-chip.active b { color: var(--text); }
.pc-chip.active { background: var(--aurora-soft); color: var(--text); }
.person-counts { background: var(--tile); box-shadow: inset 0 0 0 1px var(--glass-line); }

/* ----- 入力欄・チェックボックス（旧いものを統一） ----- */
input:focus, select:focus, textarea:focus {
  border-color: rgba(0, 229, 255, .7);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .16), inset 0 1px 2px rgba(0, 0, 0, .3);
}
input, select, textarea { border: 1px solid var(--line); }
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; min-width: 20px; height: 20px; margin: 0; padding: 0; border-radius: 7px;
  background-color: var(--tile); box-shadow: inset 0 0 0 1px var(--glass-line); cursor: pointer;
}
input[type="checkbox"]:checked {
  background-color: transparent;
  background-size: 14px 14px; background-position: center; background-repeat: no-repeat;
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E"), var(--aurora-fill);
}
input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 229, 255, .35); }
input[type="checkbox"]:disabled { opacity: .4; }
.check input[type="checkbox"] { width: 20px; }

/* ----- 空の状態 ----- */
.empty { color: var(--sub); }
.empty .ic.ok { color: var(--text); }
.rows-empty { color: var(--sub); border: 1px dashed var(--glass-line); border-radius: 20px; }
.empty .ic { color: var(--sub); }

/* ----- 下のタブ（ナビ）：ガラスのピル＋細いグラデーションの縁。
   アーチと DC ロゴの丸いボタンは、ファイル末尾の「ナビのアーチ」ブロックで実装済み。 */
.tabs {
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--ring-soft) border-box;
  border: 1.1px solid transparent; border-radius: 999px;
}
.tab { color: var(--nav-idle); }
.tab.active { color: #cfeff7; }
.tab.active::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; margin-top: -1px;
  background: var(--aurora); box-shadow: 0 0 6px rgba(0, 229, 255, .8);
}
.tab svg { color: var(--nav-idle); }
.tab.active svg { color: #eafcff; }

/* ----- ライトの色（切り替えはまだない） ----- */
:root[data-theme="light"] { --nav-idle: #5b6578; --yellow: #3a4150; --coral-soft: #d4383d; }

/* =====================================================
   ナビのアーチ：ピル全体と選択タブの低い丘は、1本のSVGの輪郭（app.js の drawNav）。
   丘は高さ約10px、裾は約2タブ分。縁は1.1pxのグラデーションで途切れず一周する。
   ===================================================== */
:root { --nav-fill-top: #111a2c; --nav-fill-bot: #080b14; }
:root[data-theme="light"] { --nav-fill-top: #ffffff; --nav-fill-bot: #eef1f7; }
.tabs {
  height: 72px; padding: 0 33px; gap: 0; align-items: stretch; justify-content: flex-start;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tabs.kb-hide { transform: translateY(calc(100% + 40px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
.navbg {
  position: absolute; left: 0; top: -24px; width: 100%; height: calc(100% + 24px);
  overflow: visible; pointer-events: none;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5));
}
.tab {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 48px;
  justify-content: flex-end; gap: 0; padding: 0 0 11px; border-radius: 0; background: none;
  font-size: 10px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
  color: rgba(159, 184, 219, .7);
  -webkit-tap-highlight-color: transparent;
}
.tab:active { transform: scale(.96); }
.tab svg { order: 0; width: 23px; height: 23px; margin-bottom: 3px; color: #8fa8c8; stroke-width: 1.5; transition: transform .25s var(--ease), color .25s, filter .25s; }
.tab span { order: 2; }
.tab::after { order: 1; content: ""; width: 5px; height: 5px; margin: 0 0 3px; border-radius: 50%; opacity: 0; transform: scale(.4);
  background: #cdeeff; box-shadow: 0 0 6px rgba(120, 210, 255, .95), 0 0 13px rgba(120, 200, 255, .45); transition: opacity .25s, transform .25s; }
.tab.active { color: #e9f6ff; font-weight: 700; background: none; box-shadow: none; }
.tab.active svg { color: #e2f3ff; transform: translateY(-9px); filter: drop-shadow(0 0 7px rgba(130, 205, 255, .6)); }
.tab.active::after { opacity: 1; transform: translateY(-9px) scale(1); margin-top: 0; }
:root[data-theme="light"] .tab { color: #5b6578; }
:root[data-theme="light"] .tab.active, :root[data-theme="light"] .tab.active svg { color: #0b2a4a; }

/* 人物チップ：選択中も紫のベタ塗りにせず、ダークガラス＋柔らかいグラデーションの光だけ */
.pc-chip, .pc-chip.active { background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
.pc-chip.active {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-soft) border-box;
  border: 1px solid transparent; box-shadow: 0 0 16px -6px rgba(124, 92, 255, .4);
}

/* 低スペック端末・透明効果を減らす設定：ぼかしをやめ、半透明のベタ塗りにする */
html.lowfx *, html.lowfx *::before, html.lowfx *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lowfx .navbg { filter: none; }
html.lowfx #pullIndicator, html.lowfx .toast { background: rgba(24, 27, 40, .96); }
html.lowfx .ts-backdrop { background: rgba(0, 0, 0, .78); }
@media (prefers-reduced-transparency: reduce) {
  *, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .navbg { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .tab svg, .tab::after { transition: none; } }

/* =====================================================
   色の調整（ラウンド・色）：ナビのアーチの内側の光と外側のグローを、淡く・低彩度に。
   形・位置・縁の線（#navRim）・アニメーションには触れない。
   index.html の SVG の色は、ここで CSS から上書きする（属性より CSS が優先）。
   ===================================================== */
/* アーチの内側の光：シアン（ロゴ近く）はかすかに、中央はバイオレット、右端はマゼンタの柔らかい洗い出し */
#nvGlow stop:nth-child(1) { stop-color: #3eb8cf; stop-opacity: .3; }   /* 旧 #00c8ee / .8 */
#nvGlow stop:nth-child(2) { stop-color: #a595e5; stop-opacity: .42; }  /* 旧 #7c5cff / .66 */
#nvGlow stop:nth-child(3) { stop-color: #db709e; stop-opacity: .3; }   /* 旧 #ff2e88 / .8 */
/* 内側の光の不透明度：半分 */
#navGlowIn { opacity: .25; }   /* 旧 .5 */
/* 縁の外側のグロー：不透明度を半分（ぼかしの半径は index.html の nvB4 で決まる） */
#navRimGlow { opacity: .08; }  /* 旧 .16 */

/* =====================================================
   Round 3：色は鮮やかに戻す（くすみ・脱色なし）。セカンダリのボタンはすべてダークガラスのピル＋グラデーションの縁。
   灰色に見えていた本当の原因：.btn / .btn.ghost / .btn.small / .icon-btn / .topbar-actions .btn.ghost /
   .visit-item .btn / .mini-row .btn / .time-btn.empty-val / .pc-chip / .sub-tab / .vtime が
   すべて「白8％のベタ ＋ 細い灰色の線（--tile ＋ --glass-line）」のままだった。
   ===================================================== */
:root {
  --aurora-fill: linear-gradient(135deg, #00e5ff, #7c5cff 52%, #ff2e88);
  --aurora-soft: linear-gradient(135deg, rgba(0, 229, 255, .3), rgba(124, 92, 255, .34) 52%, rgba(255, 46, 136, .3));
  --ring-soft: linear-gradient(135deg, rgba(0, 229, 255, .85), rgba(124, 92, 255, .85) 52%, rgba(255, 46, 136, .85));
  --ring-btn: linear-gradient(135deg, rgba(0, 229, 255, .8), rgba(124, 92, 255, .8) 52%, rgba(255, 46, 136, .8));
  --ic-ice: #dff4ff;
}
:root[data-theme="light"] { --ring-fill: #f4f6fb; --ic-ice: #0b2a4a; }
/* アーチの内側の光：元の鮮やかな色に戻す（不透明度は .25 のまま柔らかく） */
#nvGlow stop:nth-child(1) { stop-color: #00c8ee; stop-opacity: .8; }
#nvGlow stop:nth-child(2) { stop-color: #7c5cff; stop-opacity: .66; }
#nvGlow stop:nth-child(3) { stop-color: #ff2e88; stop-opacity: .8; }
.btn.primary, .btn.primary:hover, .visit-item .btn.primary, .visit-item .btn.primary:hover, .mini-row .btn.primary, .mini-row .btn.primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 14px -10px rgba(124, 92, 255, .5);
}
.btn:not(.primary):not(.danger):not(.pill-plate), .btn.ghost:not(.primary):not(.danger):not(.pill-plate), .topbar-actions .btn.ghost,
.visit-item .btn:not(.primary):not(.danger):not(.pill-plate), .mini-row .btn:not(.primary):not(.danger):not(.pill-plate), .report-card .btn:not(.primary):not(.danger):not(.pill-plate),
.time-btn.empty-val, .sub-tab:not(.active), .pc-chip:not(.active), .vtime, .mini-title b {
  background: linear-gradient(var(--ring-fill), var(--ring-fill)) padding-box, var(--ring-btn) border-box;
  border: 1.1px solid transparent; box-shadow: none; color: var(--sub);
}
.btn:not(.primary):not(.danger):not(.pill-plate):hover, .topbar-actions .btn.ghost:hover, .visit-item .btn:not(.primary):not(.danger):not(.pill-plate):hover,
.mini-row .btn:not(.primary):not(.danger):not(.pill-plate):hover, .sub-tab:not(.active):hover, .pc-chip:not(.active):hover {
  color: var(--text); filter: brightness(1.2);
}
.btn:not(.primary):not(.danger):not(.pill-plate) .ic, .btn:not(.primary):not(.danger):not(.pill-plate)::before, .icon-btn svg, .topbar-actions .btn svg { color: var(--ic-ice); }
.icon-btn { border-radius: 999px; }
.mini-title b, .pc-chip b { color: var(--text); }

/* =====================================================
   共有のピル（案件番号と同じ見た目）。.case-no と .pill-plate（デモサイト・地図・デモURLをコピー・未報告）は
   この1つの規則だけで決まる。黒の塗り＋1.5pxのグラデーションの縁。
   ===================================================== */
.case-no, .pill-plate, .btn.pill-plate, .badge.pill-plate {
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--aurora) border-box;
  border: 1.5px solid transparent; border-radius: 999px; color: var(--text);
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; padding: 1px 11px; box-shadow: none; filter: none;
}
.pill-plate .ic { color: var(--text); }

/* =====================================================
   立体感（共有のピルの上に重ねる層）：リンクを開くボタンと主要なボタンだけ。
   案件番号・時刻・状態バッジは平らなまま。形と色は上の規則のまま。
   ===================================================== */
a.btn, .btn.primary, .btn.pill-plate, .visit-item .btn.primary, .mini-row .btn.primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .32), 0 3px 8px -3px rgba(0, 0, 0, .6);
  transition: transform .12s var(--ease), box-shadow .15s, filter .15s;
}
a.btn:hover, .btn.primary:hover, .btn.pill-plate:hover, .visit-item .btn.primary:hover, .mini-row .btn.primary:hover {
  transform: translateY(-1px);
}
a.btn:active, .btn.primary:active, .btn.pill-plate:active, .visit-item .btn.primary:active, .mini-row .btn.primary:active {
  transform: scale(.97);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 1px 2px -1px rgba(0, 0, 0, .5);
  filter: none;
}

/* =====================================================
   日付切替（今日／明日／日付を選ぶ）の選択中：明るいネオン。シアン → バイオレット → マゼンタ、白い文字。
   選択されていないものは暗いまま。
   ===================================================== */
.seg-btn.active {
  background: linear-gradient(135deg, #00e5ff, #7c5cff 52%, #ff2e88);
  color: #fff; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 14px rgba(0, 229, 255, .55), 0 0 22px rgba(255, 46, 136, .4);
  text-shadow: 0 0 10px rgba(255, 255, 255, .45);
}

/* =====================================================
   Round 6：「押せるものは黒、押せないものはグレー」（この層が最後に効く）
   - タップできるもの（ボタン・リンク・作用するピル・切り替え）：純黒 #0B0D12 ＋ グラデーションの縁。
     ボタンとリンクは、下側の深い影と上側のハイライトで浮かせ、押すと沈む。
     切り替え（人物・下位タブ・ログインの切り替え）は影なし（平らな黒＋縁）。
   - 表示だけのラベル（案件番号・時間・ステータス・業種・結果バッジ・件数）：グレー #1a1c23、平ら・影なし。
   前の層の上書きが何重にもあるため、この層では背景・枠・影に !important を使って決める。
   ===================================================== */
:root {
  --k-black: #0b0d12;
  --k-grey: #1a1c23;
  --k-ring: linear-gradient(135deg, #3ff0ff, #8f72ff 52%, #ff4f9a);        /* 縁：少し明るめ */
  --k-ring-danger: linear-gradient(135deg, #ff8a8e, #ff5a5f 60%, #d9486f); /* 削除：赤い縁 */
  --k-sel: linear-gradient(135deg, rgba(0, 229, 255, .26), rgba(124, 92, 255, .3) 52%, rgba(255, 46, 136, .26)); /* 選ばれている切り替え */
  --k-lift: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 -1px 0 rgba(0, 0, 0, .55) inset, 0 8px 14px -6px rgba(0, 0, 0, .9), 0 2px 4px rgba(0, 0, 0, .55);
  --k-press: 0 2px 3px rgba(0, 0, 0, .75) inset, 0 1px 1px rgba(0, 0, 0, .5);
}

/* 押せるボタン・リンク（浮く）：黒＋縁＋影 */
.btn, .btn.small, .btn.ghost, .btn.danger, .btn.primary, a.btn, .icon-btn, .pill-plate, .btn.pill-plate,
.topbar-actions .btn, #installBtn, .time-btn, .report-details > summary {
  background: linear-gradient(var(--k-black), var(--k-black)) padding-box, var(--k-ring) border-box !important;
  border: 1.5px solid transparent !important;
  color: var(--text) !important;
  box-shadow: var(--k-lift) !important;
  text-shadow: none;
  transition: transform .12s var(--ease), box-shadow .15s, filter .15s;
}
.btn:hover, a.btn:hover, .pill-plate:hover, .time-btn:hover, .topbar-actions .btn:hover, .report-details > summary:hover {
  filter: brightness(1.14);
}
.btn:active, a.btn:active, .pill-plate:active, .time-btn:active, .icon-btn:active, .topbar-actions .btn:active {
  transform: translateY(2px) scale(.97) !important;
  box-shadow: var(--k-press) !important;
  filter: none;
}
/* 削除：黒＋赤い縁（ベタの赤は使わない） */
.btn.danger, .visit-item .btn.danger, .mini-row .btn.danger {
  background: linear-gradient(var(--k-black), var(--k-black)) padding-box, var(--k-ring-danger) border-box !important;
  color: #ff9ea2 !important;
}
/* メインの操作ボタン（保存する・報告する）：黒＋シアン→マゼンタの柔らかい光＋白文字 */
.btn.primary, .visit-item .btn.primary, .mini-row .btn.primary {
  color: #fff !important;
  font-weight: 700;
  box-shadow: var(--k-lift), 0 0 16px -4px rgba(0, 229, 255, .38), 0 0 18px -6px rgba(255, 46, 136, .42) !important;
}
/* 押せないボタン（戻る・進むなど）：グレー、淡く */
.btn:disabled {
  background: var(--k-grey) !important; border-color: transparent !important; box-shadow: none !important;
  color: var(--text) !important; opacity: .35; transform: none !important; filter: none !important;
}

/* 押せる切り替え（チップ・タブ）：黒＋縁。影なし */
.pc-chip:not(.active), .sub-tab:not(.active), .auth-tab:not(.active), .seg-btn:not(.active) {
  background: linear-gradient(var(--k-black), var(--k-black)) padding-box, var(--k-ring) border-box !important;
  border: 1.5px solid transparent !important;
  color: var(--sub) !important;
  box-shadow: none !important;
  transition: background .2s, color .2s;
}
.pc-chip:not(.active):hover, .sub-tab:not(.active):hover, .auth-tab:not(.active):hover, .seg-btn:not(.active):hover { color: var(--text) !important; }
/* 選ばれている切り替え：ごく薄いグラデーションの面＋白文字＋柔らかい光 */
.pc-chip.active, .sub-tab.active, .auth-tab.active {
  background: linear-gradient(var(--k-sel), var(--k-sel)) padding-box, var(--k-ring) border-box !important;
  border: 1.5px solid transparent !important;
  color: #fff !important;
  box-shadow: 0 0 14px -4px rgba(0, 229, 255, .45), 0 0 16px -6px rgba(255, 46, 136, .4) !important;
}
.pc-chip b, .pc-chip.active b { color: inherit !important; }

/* 表示だけのラベル（グレー・平ら）：時間・ステータス・業種・結果バッジ・件数（案件番号は除く。Round 7 で純黒の塗りに） */
.badge, .tag, .due, .vtime, .vdate, .mini-title b, .lc-won, .auto-tag {
  background: var(--k-grey) !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  color: var(--text);
}
.tag.none { color: var(--faint) !important; }
.tag.cat { color: var(--text) !important; }
.badge.st-todo { color: var(--sub) !important; }

/* 報告一覧の報告カード：報告者（上）・案件の場所（1行目）・数値（2行目） */
.report-by { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.report-by b { color: var(--text); font-size: 15px; font-weight: 700; margin-left: 2px; }
.report-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.report-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 13px; color: var(--muted); }
.report-meta-row .case-no { font-size: 12.5px; }
.report-meta-row .ic { width: 15px; height: 15px; margin-right: 4px; color: var(--faint); vertical-align: -2px; }
.report-details { margin-top: 12px; }
.report-details > summary {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text) !important; cursor: pointer; list-style: none;
}
.report-details > summary::-webkit-details-marker { display: none; }

/* ================================================================
   Round 7（v58）
   1. 成約バッジ（.badge.ok）のみ金色：濃い黒＋金色の縁＋金色の文字。
      他のバッジ（検討中・断り・未報告・報告済み）はグレーのまま。
   2. 案件番号ピル（.case-no）：背景だけ純黒（#0b0d12）。虹色・カラーの縁は付けない
      （Round 7 訂正版。ベースの虹色の縁が復活しないよう単色で上書きする）。
   3. 資金力行（2行目）：1行に収める。各項目を #1a1c23 の小さいグレーのピルに包む。
   4. ボトムナビ：塗りを約半分の不透明度にする（SVG の nvFill も index.html で半分に）。
   5. ボトムナビの選択中ラベル：ネオンの水色＋グロー。
   6. 日付切替：選択中のみ虹色の縁。未選択は純黒・縁なし。
   ================================================================ */
:root {
  /* 金色（成約バッジの縁。金 → 温かい琥珀 → 柔らかいシャンパン） */
  --gold: #ffd75e;
  --gold-amber: #e8a33d;
  --gold-champagne: #f9e7b8;
  --gold-text: #ffe9a8;
  --gold-ring: linear-gradient(135deg, #ffd75e, #e8a33d 52%, #f9e7b8);
}

/* 1. 成約バッジだけ金色（他のバッジはグレーのまま） */
.badge.ok, .badge.st-done.ok {
  background: linear-gradient(var(--k-black), var(--k-black)) padding-box, var(--gold-ring) border-box !important;
  border: 1px solid transparent !important;
  color: var(--gold-text) !important;
  box-shadow: 0 0 12px rgba(255, 200, 80, .28) !important;
}

/* 2. 案件番号ピル：背景だけ純黒。虹色・カラーの縁なし */
.case-no, .pill-plate .case-no {
  background: var(--k-black) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text);
}

/* 3. 資金力行（2行目）：1行に収める。各項目をグレーの小さいピルに包み、アイコンと文字を詰める */
.report-meta-row.num-row {
  flex-wrap: nowrap;
  gap: 5px;
}
.report-meta-row.num-row > span {
  background: var(--k-grey);
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}
.report-meta-row.num-row .ic {
  margin-right: 0;
  width: 13px;
  height: 13px;
  flex: none;
}
@media (max-width: 480px) {
  .report-meta-row.num-row {
    font-size: 11px;
  }
  .report-meta-row.num-row > span {
    padding: 2px 6px;
  }
  .report-meta-row.num-row .ic {
    width: 12px;
    height: 12px;
  }
}

/* 4. ボトムナビ：塗りは SVG（nvFill）の方で半分にする。ここは透明のまま（アーチ層の意図通り） */
.tabs {
  background: none !important;
}

/* 5. ボトムナビの選択中ラベル：ネオンの水色＋グロー。未選択はグレーのまま。アイコンは白のまま */
.tab.active span {
  color: #7dd3ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, .55), 0 0 18px rgba(125, 211, 255, .35);
}

/* 6. 日付切替：選択中は明るいネオンの塗りを残し、虹色の縁を追加。未選択は純黒・縁なし */
#todaySeg .seg-btn.active {
  background: linear-gradient(135deg, #00e5ff, #7c5cff 52%, #ff2e88) padding-box, var(--k-ring) border-box !important;
  border: 1.5px solid transparent !important;
}
#todaySeg .seg-btn:not(.active) {
  background: var(--k-black) !important;
  border: 1.5px solid rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
}

/* ================================================================
   Round 8（v60）
   1. ボトムナビの塗り：index.html の nvFill を元の約70〜75%に戻した（.47→.68、.48→.69）。
      .tabs は透明のまま（ここでは触らない）。
   2. 選択中のアイコン：ネオンの水色（#7DD3FF）＋柔らかいグロー。未選択はグレーの細い線のまま。
   3. ログインの切り替え（.auth-tab）と 4. 日付切替（#todaySeg）を同じ見た目にする。
      選択中・押下中＝明るいネオン（シアン→バイオレット→マゼンタ）＋白文字＋虹色の縁。
      未選択＝グレーのフラット（--k-grey、影なし・縁なし）。押すと scale .97 に縮む。
   ================================================================ */

/* 2. 選択中のアイコン：白ではなくネオンの水色＋グロー（ラベルと同じ色） */
.tab.active svg {
  color: #7dd3ff;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, .65)) drop-shadow(0 0 10px rgba(0, 229, 255, .35));
}
:root[data-theme="light"] .tab.active svg { color: #0b2a4a; }

/* 3・4. 切り替えの感触（ログイン・日付で共通） */
.auth-tab, #todaySeg .seg-btn {
  transition: background .2s, color .2s, box-shadow .2s, transform .12s var(--ease);
}

/* 未選択：グレーのフラット（押せるが、影も虹色の縁もなし） */
.auth-tab:not(.active), #todaySeg .seg-btn:not(.active) {
  background: var(--k-grey) !important;
  border: 1.5px solid transparent !important;
  box-shadow: none !important;
  color: var(--sub) !important;
}
.auth-tab:not(.active):hover, #todaySeg .seg-btn:not(.active):hover { color: var(--text) !important; }

/* 選択中・押下中：明るいネオン＋白文字＋虹色の縁（日付ピルの選択中と同じ） */
.auth-tab.active, .auth-tab:active, #todaySeg .seg-btn.active, #todaySeg .seg-btn:active {
  background: linear-gradient(135deg, #00e5ff, #7c5cff 52%, #ff2e88) padding-box, var(--k-ring) border-box !important;
  border: 1.5px solid transparent !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 14px rgba(0, 229, 255, .55), 0 0 22px rgba(255, 46, 136, .4) !important;
}

/* 押したとき：わずかに縮む（ボタンと同じ 0.97） */
.auth-tab:active, #todaySeg .seg-btn:active { transform: scale(.97); }

/* ================================================================
   Round 8 追補（v61）
   A. 虹色の縁を少し太くする：選択中ピルの縁を 1.5px から 2px にする（ログイン・日付の両方）。
   B. 未選択は台になじませる：未選択の背景を透明にし、切り替えの台（rgba(0, 0, 0, .45)）と同じ見た目にする。--k-grey は使わない。
   D. ロゴの光を強くする：.brand-mark の drop-shadow を3層にして、芯を明るく・ハローを広くする。
   ================================================================ */
/* A. 選択中の虹色の縁を太くする（1.5px → 2px） */
.auth-tab.active,
.auth-tab:active,
#todaySeg .seg-btn.active,
#todaySeg .seg-btn:active {
  border: 2px solid transparent !important;
}

/* B. 未選択：背景を透明にして台になじませる */
.auth-tab:not(.active),
#todaySeg .seg-btn:not(.active) {
  background: transparent !important;
}

/* D. ロゴの光を強くする：芯を明るく、ハローを広く（3層） */
.brand-mark {
  filter: drop-shadow(0 0 10px rgba(125, 211, 255, .9)) drop-shadow(0 0 24px rgba(79, 139, 255, .7)) drop-shadow(0 0 40px rgba(0, 229, 255, .35));
}
