/* ================= FreeNote ================= */

:root {
  --accent: #4a7dfc;
  --accent-dark: #3563d8;
  --bg: #f2f3f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e7481;
  --border: #e3e6ee;
  --danger: #e03131;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 24, 40, .08), 0 8px 24px rgba(20, 24, 40, .06);
  --canvas-bg: #40444d;
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overscroll-behavior: none;
}

button { font-family: inherit; cursor: pointer; }

.ic { display: inline-flex; }
.ic svg, .icon-btn svg, .tool-btn svg { width: 20px; height: 20px; }

/* ---------- 共通UI ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: #f6f7fb; }
.btn:active { transform: scale(.97); }
.btn .ic svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: var(--text);
}
.icon-btn:hover { background: rgba(30, 40, 70, .07); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn:disabled:hover { background: transparent; }

.text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.text-input:focus { border-color: var(--accent); }

/* ---------- モーダル ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 40, .42);
  display: grid;
  place-items: center;
  z-index: 1000;
  animation: fadeIn .14s ease;
}
.modal-backdrop.closing { opacity: 0; transition: opacity .14s; }
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  background: var(--surface);
  border-radius: 16px;
  min-width: 340px;
  max-width: min(480px, 92vw);
  max-height: 86vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(10, 14, 30, .3);
  animation: popIn .16s ease;
}
.modal-wide { max-width: min(640px, 94vw); }
@keyframes popIn { from { transform: scale(.96) translateY(6px); opacity: 0; } }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-body { padding: 16px 20px; }
.modal-msg { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 20px 18px;
}

.prog { min-width: 300px; }
.prog-label { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.prog-track { height: 8px; background: #eceef4; border-radius: 99px; overflow: hidden; }
.prog-bar { height: 100%; background: var(--accent); border-radius: 99px; transition: width .18s; }

/* ---------- トースト ---------- */
#toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1200; }
.toast {
  background: rgba(28, 32, 44, .94);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 99px;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .22s, translate .22s;
  white-space: nowrap;
  max-width: 86vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; translate: 0 0; }

/* ---------- メニューポップ ---------- */
.menu-pop {
  position: fixed;
  z-index: 900;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(10, 14, 30, .22);
  border: 1px solid var(--border);
  padding: 6px;
  min-width: 190px;
  animation: popIn .12s ease;
}
.menu-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  text-align: left;
}
.menu-pop button:hover { background: #f2f4fa; }
.menu-pop button.danger { color: var(--danger); }
.menu-pop button .ic svg { width: 16px; height: 16px; }
.menu-pop hr { border: none; border-top: 1px solid var(--border); margin: 5px 8px; }

/* ================= ライブラリ ================= */
#library-view { min-height: 100vh; padding-bottom: 60px; }
#library-view.dragging { outline: 3px dashed var(--accent); outline-offset: -8px; }

.lib-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 34px 10px;
}
.lib-brand { display: flex; align-items: center; gap: 14px; }
.lib-logo {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #7aa2ff);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.lib-logo svg { width: 26px; height: 26px; }
.lib-brand h1 { font-size: 22px; letter-spacing: .2px; }
.lib-tag { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

.lib-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box input {
  width: 220px;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
}
.search-box input:focus { border-color: var(--accent); }

.lib-sub {
  display: flex;
  justify-content: space-between;
  padding: 4px 36px 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
  padding: 22px 34px;
}

.nb-card {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  outline: none;
}
.nb-card:focus-visible { box-shadow: 0 0 0 3px rgba(74, 125, 252, .4); }

.nb-cover {
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease;
}
.nb-card:hover .nb-cover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(20, 24, 40, .13), 0 18px 40px rgba(20, 24, 40, .12); }

.nb-cover.note { background: linear-gradient(145deg, color-mix(in srgb, var(--cover) 88%, #fff), var(--cover)); }
.nb-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .06) 70%, rgba(255, 255, 255, .12));
}
.nb-cover-title {
  position: absolute;
  left: 26px; right: 14px; top: 26px;
  color: rgba(255, 255, 255, .96);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-cover.pdf { background: #fff; border: 1px solid var(--border); }
.nb-cover.pdf img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.nb-fav {
  position: absolute;
  top: 8px; right: 8px;
  color: #ffc933;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}
.nb-fav svg { width: 20px; height: 20px; }

.nb-meta { padding: 10px 4px 0; }
.nb-title { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-date { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }

.nb-menu-btn {
  position: absolute;
  right: 0; bottom: 2px;
  opacity: 0;
  transition: opacity .12s;
}
.nb-card:hover .nb-menu-btn, .nb-menu-btn:focus { opacity: 1; }

.lib-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 90px 20px;
  color: var(--text-2);
}
.lib-empty-icon { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: #e9edf8; color: var(--accent); margin-bottom: 18px; }
.lib-empty-icon svg { width: 38px; height: 38px; }
.lib-empty h2 { color: var(--text); margin-bottom: 8px; font-size: 18px; }
.lib-empty p { font-size: 13.5px; line-height: 1.8; }

/* 新規ノートダイアログ */
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin: 14px 0 7px; }
.new-nb .field-label:first-child { margin-top: 0; }
.swatch-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  position: relative;
}
.swatch.active { border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(0,0,0,.1); }
.swatch.custom { overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.swatch.custom::after { content: '+'; font-size: 17px; font-weight: 700; color: #98a1b3; mix-blend-mode: difference; }
.swatch.custom input { position: absolute; inset: -8px; opacity: 0; cursor: pointer; }

.tpl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.tpl-pick.active { border-color: var(--accent); background: #f0f4ff; color: var(--accent-dark); }
.tpl-preview { width: 44px; height: 56px; border-radius: 4px; border: 1px solid var(--border); background-color: #fff; }
.tpl-lined { background-image: repeating-linear-gradient(#fff 0 7px, #c9d4ea 7px 8px); }
.tpl-grid { background-image: repeating-linear-gradient(#0000 0 7px, #dce4f2 7px 8px), repeating-linear-gradient(90deg, #0000 0 7px, #dce4f2 7px 8px); }
.tpl-dotted { background-image: radial-gradient(#c2cbdd 1px, #0000 1.2px); background-size: 9px 9px; }

/* ================= エディタ ================= */
#editor-view {
  height: 100vh;
  height: 100dvh; /* モバイルのアドレスバー対策 */
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.ed-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  flex-wrap: wrap;
  user-select: none;
  -webkit-user-select: none;
}
.ctx-strip, .thumbs, .sel-bar, .pg-indicator { user-select: none; -webkit-user-select: none; }
.page-stage canvas { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ed-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ed-title {
  border: none;
  background: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 8px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-title:hover { background: rgba(30, 40, 70, .07); }

.ed-tools { display: flex; align-items: center; gap: 3px; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: #4b5262;
}
.tool-btn:hover { background: rgba(30, 40, 70, .07); }
.tool-btn.active { background: var(--accent); color: #fff; }

.ed-right { display: flex; align-items: center; gap: 6px; }
.zoom-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.zoom-ctrl .icon-btn { border-radius: 0; width: 30px; height: 30px; }
.zoom-pct { border: none; background: none; font-size: 12px; font-weight: 700; color: var(--text-2); width: 52px; height: 30px; }
.zoom-pct:hover { background: rgba(30, 40, 70, .07); }

/* コンテキストストリップ */
.ctx-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 16px;
  background: rgba(252, 252, 254, .95);
  border-bottom: 1px solid var(--border);
  min-height: 46px;
  flex-wrap: wrap;
  z-index: 19;
}
.ctx-strip .swatch { width: 24px; height: 24px; }
.ctx-hint { font-size: 12px; color: var(--text-2); }
.size-slider { display: flex; align-items: center; gap: 8px; }
.size-slider input { width: 130px; accent-color: var(--accent); }
.size-val { font-size: 12px; color: var(--text-2); min-width: 26px; font-variant-numeric: tabular-nums; }
.size-dots { display: flex; gap: 4px; }
.size-dot {
  width: 34px; height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  display: grid;
  place-items: center;
}
.size-dot:hover { background: rgba(30, 40, 70, .07); }
.size-dot.active { background: #e4ebff; }
.size-dot span { display: block; border-radius: 50%; background: #3c4354; }
.kind-row { display: flex; gap: 3px; }

/* メインエリア */
.ed-main { flex: 1; display: flex; min-height: 0; position: relative; }

.thumbs {
  width: 172px;
  background: rgba(249, 250, 253, .96);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: margin-left .18s ease;
}
.thumbs.hidden { margin-left: -172px; }
.thumbs-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.thumb {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
}
.thumb canvas {
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(20, 24, 40, .14);
  border: 2px solid transparent;
}
.thumb.current canvas { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 125, 252, .22); }
.thumb-num {
  position: absolute;
  bottom: 5px; right: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(28, 32, 44, .78);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
}
.thumb-del {
  position: absolute;
  top: 5px; right: 5px;
  width: 24px; height: 24px;
  border: none;
  border-radius: 7px;
  background: rgba(28, 32, 44, .72);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .12s;
}
.thumb:hover .thumb-del { opacity: 1; }
.thumb-del:hover { background: var(--danger); }
.thumb-del svg { width: 13px; height: 13px; }
.thumbs-add { margin: 0 14px 14px; justify-content: center; font-size: 12.5px; padding: 8px; }

.canvas-area {
  flex: 1;
  overflow: auto;
  background: var(--canvas-bg);
  position: relative;
}
.stage-wrap { width: max-content; min-width: 100%; padding: 30px; display: grid; place-items: center; }

.page-stage {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 16px 48px rgba(0, 0, 0, .3);
  border-radius: 2px;
}
.page-stage canvas { position: absolute; inset: 0; }
#cv-bg { z-index: 1; }
#cv-ink { z-index: 2; }
#cv-live { z-index: 3; }
.objects { position: absolute; left: 0; top: 0; transform-origin: 0 0; z-index: 4; pointer-events: none; }

/* ツール別カーソル */
[data-tool="pen"] .page-stage, [data-tool="marker"] .page-stage, [data-tool="shape"] .page-stage, [data-tool="lasso"] .page-stage { cursor: crosshair; }
[data-tool="text"] .page-stage { cursor: text; }
[data-tool="eraser"] .page-stage { cursor: none; }
[data-tool="hand"] .page-stage { cursor: grab; }
[data-tool="hand"] .page-stage:active { cursor: grabbing; }

/* オブジェクト(テキスト・画像) */
.obj { position: absolute; border: 1.5px dashed transparent; border-radius: 4px; }
[data-tool="text"] .obj, [data-tool="lasso"] .obj { pointer-events: auto; }
[data-tool="text"] .obj:hover, [data-tool="lasso"] .obj:hover,
.obj:focus-within { border-color: rgba(74, 125, 252, .65); }
[data-tool="lasso"] .obj { cursor: move; }
[data-tool="lasso"] .text-inner { pointer-events: none; }

.text-obj { min-height: 22px; padding: 0; }
.text-inner {
  padding: 4px;
  line-height: 1.35;
  outline: none;
  min-height: 20px;
  word-break: break-word;
  white-space: pre-wrap;
  cursor: text;
}
.img-obj img { width: 100%; height: 100%; display: block; user-select: none; }

.obj-x {
  position: absolute;
  top: -13px; right: -13px;
  width: 24px; height: 24px;
  border: none;
  border-radius: 50%;
  background: #2b3040;
  color: #fff;
  display: none;
  place-items: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.obj-x svg { width: 12px; height: 12px; }
[data-tool="text"] .obj:hover .obj-x, [data-tool="lasso"] .obj:hover .obj-x, .obj:focus-within .obj-x { display: grid; }
.obj-x:hover { background: var(--danger); }

.h-se {
  position: absolute;
  right: -8px; bottom: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--accent);
  cursor: nwse-resize;
  display: none;
  z-index: 5;
}
[data-tool="text"] .obj:hover .h-se, [data-tool="lasso"] .obj:hover .h-se, .obj:focus-within .h-se { display: block; }

/* ページ移動・インジケータ */
.pg-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 40px; height: 56px;
  border: none;
  border-radius: 12px;
  background: rgba(28, 32, 44, .5);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s, background .15s;
  z-index: 10;
}
.pg-arrow.left { left: 12px; }
.pg-arrow.right { right: 12px; }
.ed-main:hover .pg-arrow { opacity: 1; }
.pg-arrow:hover { background: rgba(28, 32, 44, .8); }
.pg-arrow:disabled { opacity: 0 !important; }
.pg-arrow svg { width: 22px; height: 22px; }

.pg-indicator {
  position: absolute;
  bottom: 14px; left: 50%;
  translate: -50% 0;
  background: rgba(28, 32, 44, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

.save-ind {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 11.5px;
  color: #cfd6e4;
  background: rgba(28, 32, 44, .55);
  padding: 4px 11px;
  border-radius: 99px;
  z-index: 10;
  transition: opacity .3s;
}
.save-ind.saving { color: #ffd43b; }
.save-ind.error { color: #ff8787; }

/* 選択ツールバー */
.sel-bar {
  position: absolute;
  z-index: 30;
  display: flex;
  gap: 2px;
  background: rgba(28, 32, 44, .92);
  border-radius: 11px;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.sel-bar button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
}
.sel-bar button:hover { background: rgba(255, 255, 255, .14); }
.sel-bar button.danger:hover { background: var(--danger); }
.sel-bar .ic svg, .sel-bar svg { width: 15px; height: 15px; }

/* ---------- スマホで開くダイアログ ---------- */
.phone-dlg { text-align: center; }
.qr-box { display: flex; justify-content: center; margin: 6px 0 14px; }
.qr-box svg { width: 190px; height: 190px; border-radius: 10px; box-shadow: var(--shadow); }
.phone-url { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.phone-url code {
  background: #f0f3fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  user-select: all;
}
.phone-steps { text-align: left; margin: 0 6px 14px; padding-left: 20px; font-size: 13px; color: var(--text); line-height: 2; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .lib-header { padding: 18px 18px 8px; }
  .nb-grid { padding: 16px 18px; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lib-sub { padding: 2px 20px 0; }
  .search-box input { width: 150px; }
  .thumbs { position: absolute; left: 0; top: 0; bottom: 0; z-index: 15; box-shadow: 8px 0 24px rgba(0,0,0,.15); }
  .ed-title { max-width: 120px; }
}

/* スマホ縦持ち: ツールバーを圧縮 */
@media (max-width: 700px) {
  .ed-topbar { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .tool-btn { width: 33px; height: 33px; }
  .tool-btn svg, .icon-btn svg { width: 18px; height: 18px; }
  .ed-title { max-width: 90px; font-size: 13px; padding: 5px 6px; }
  .zoom-ctrl { display: none; } /* ピンチで代替 */
  #ed-export .btn-label { display: none; }
  #ed-export { padding: 6px 10px; }
  .ctx-strip { gap: 10px; padding: 6px 10px; min-height: 42px; }
  .size-slider input { width: 90px; }
  .ctx-hint { display: none; }
  .thumbs { width: 148px; }
  .thumbs.hidden { margin-left: -148px; }
  .lib-brand h1 { font-size: 18px; }
  .lib-tag { font-size: 11px; }
  .lib-actions { width: 100%; }
  .lib-actions .btn { flex: 1; justify-content: center; padding: 9px 8px; font-size: 12.5px; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
}

/* タッチデバイス: ホバー依存のUIを常時表示 */
@media (hover: none) {
  .pg-arrow { opacity: .55; }
  .pg-arrow:disabled { opacity: 0 !important; }
  .nb-menu-btn { opacity: 1; background: rgba(255, 255, 255, .8); }
  .thumb-del { opacity: 1; }
  [data-tool="text"] .obj .obj-x, [data-tool="lasso"] .obj .obj-x { display: grid; }
  [data-tool="text"] .obj .h-se, [data-tool="lasso"] .obj .h-se { display: block; }
  [data-tool="text"] .obj, [data-tool="lasso"] .obj { border-color: rgba(74, 125, 252, .4); }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120, 130, 150, .45); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
