/* PlayPDF
   Linear にならった暗い画面に、白い紙（スライド）が浮かぶ。目立たせる色は青紫1色。
   文字は日本語のシステムのゴシックだけ（外部フォントは読み込まない）。 */
:root {
  color-scheme: dark;
  /* Linear にならう：黒に近い下地に、白の薄さで面を重ねる。目立たせる色は青紫1色だけ */
  --bg: #0f1011;          /* 下地 */
  --bg-deep: #08090a;     /* 一段深いところ（はじめの画面の上・ビューアの映す場所） */
  --raise: #17181b;       /* 浮かせる面（パネル・入力欄） */
  --raise-2: #1e1f23;     /* もう一段（ホバー・置き場の中） */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #f7f8f8;          /* 文字 */
  --sub: #8a8f98;         /* 補足 */
  --paper: #ffffff;       /* 紙：スライドだけは白 */
  --accent: #5e6ad2;      /* 青紫：主なボタン */
  --accent-hi: #7170ff;   /* 明るい青紫：再生・選んでいるもの・フォーカス */
  --accent-ink: #a5a6ff;  /* 青紫の文字 */
  --ok: #4cb782; --ok-soft: rgba(76, 183, 130, .12);
  --warn: #f2c94c; --warn-soft: rgba(242, 201, 76, .10);
  --bad: #eb5757; --bad-soft: rgba(235, 87, 87, .12);
  --info-soft: rgba(255, 255, 255, .04);
  --shadow-paper: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .5);
  --fs-1: 12px; --fs-2: 14px; --fs-3: 17px; --fs-4: 22px; --fs-5: 34px; --fs-6: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--fg); background: var(--bg); font-size: var(--fs-2); line-height: 1.7; letter-spacing: .01em; -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; -webkit-text-size-adjust: 100%; font-feature-settings: "palt" 0;
}
h1, h2, h3 { line-height: 1.4; text-wrap: balance; margin: 0 0 .5em; font-weight: 600; letter-spacing: 0; }
h1 { font-size: var(--fs-4); }
h2 { font-size: var(--fs-3); }
h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--fg); }
.lucide { display: inline-block; vertical-align: middle; flex: none; width: 18px; height: 18px; }
.nowrap { white-space: nowrap; }
.ib { display: inline-block; }
.muted { color: var(--sub); }
.small { font-size: var(--fs-1); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--fg); font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .08); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled:hover { border-color: var(--line-2); }
.btn.primary { background: var(--accent); border-color: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn.primary:hover { background: #6b77e0; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { min-height: 36px; padding: 5px 11px; font-size: 13px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; background: transparent; color: inherit; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
input[type=text], input[type=email], select {
  font: inherit; font-size: 16px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--raise); color: var(--fg); width: 100%;
}
input:focus, select:focus { border-color: var(--accent-hi); }
input::placeholder { color: #7d7b74; }
input:focus-visible, select:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-hi); outline-offset: 2px;
}
label { font-size: 12px; font-weight: 500; display: block; margin-bottom: 4px; color: var(--sub); }

/* ---- 上の帯（アプリの中は藍の帯） ---- */
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 0 24px; height: 52px; background: rgba(15, 16, 17, .8); color: var(--fg);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10;
}
.topbar .btn { background: transparent; }

.topbar .btn.primary { background: var(--accent); color: #fff; }

.topbar .btn.primary:disabled { opacity: .45; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36vw; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: inherit; text-decoration: none; white-space: nowrap; }
.logo .mark {
  position: relative; width: 30px; height: 22px; border-radius: 3px; background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; color: #000;
}
.logo .mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-hi); border: 2px solid var(--bg); }
.logo .mark .lucide { width: 14px; height: 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; }
.card { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.stack > * + * { margin-top: 18px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.7; }
.note .lucide { margin-top: 3px; }
.note.info { background: var(--info-soft); color: #dcdde4; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.ok { background: var(--ok-soft); color: var(--ok); }

.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--sub); }
.badge .lucide { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.run { background: rgba(113, 112, 255, .14); color: var(--accent-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--raise-2); color: var(--fg); border: 1px solid var(--line-2); font-weight: 500;
  padding: 11px 18px; border-radius: 8px; font-size: 14px; z-index: 100; max-width: calc(100vw - 32px); box-shadow: var(--shadow-paper);
}

/* =========================================================
   はじめの画面
   ========================================================= */
body.landing { background: var(--bg); }
.lp-top { display: flex; align-items: center; padding: 0 32px; height: 64px; color: var(--fg); background: var(--bg-deep); }
.lp-hero { color: var(--fg); padding: 56px 32px 96px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.lp-hero-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.lp-hero-in > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
.lp-hero-in > div:first-child h1 { grid-row: 1 / span 2; margin: 0; align-self: center; }
.lp-hero-in > div:first-child .lp-lead { margin-top: 0; }
.lp-hero h1 { font-size: var(--fs-6); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 24px; font-weight: 600; }
.lp-hero h1 span { display: inline-block; }
.lp-lead { font-size: 16px; line-height: 1.9; color: var(--sub); max-width: 30em; margin-bottom: 28px; }
.login { max-width: 460px; }

.login .row { display: flex; gap: 8px; }
.login .row input { flex: 1; min-width: 0; }


.login-hint { margin: 10px 0 0; color: var(--sub); font-size: 13px; }
.login-msg { margin-top: 14px; }
.login-msg a { color: inherit; font-weight: 700; }
/* はじめの画面：ログインなしで始めるボタン */
.lp-cta .btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.lp-cta-hint { margin: 12px 0 0; color: var(--sub); font-size: 13px; }
.login-more { margin-top: 22px; max-width: 460px; }
.login-more summary { cursor: pointer; color: var(--sub); font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.login-more summary:hover { color: var(--fg); }
.login-more[open] summary { margin-bottom: 10px; }
/* ゲストへの案内（一覧・資料の画面） */
.guest-note { margin-top: 14px; }
.share-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-box input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .lp-cta .btn.big { width: 100%; justify-content: center; } }

/* 見本：PDFだと止まる／PlayPDFなら動く */
.demo-slide {
  position: relative; aspect-ratio: 16 / 9; background: var(--paper); border-radius: 4px; color: #1a1b20;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px rgba(0, 0, 0, .45); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 5%; padding: 6% 6% 7%;
}
.demo-slide .ds-text h3 { font-size: clamp(13px, 2.1vw, 21px); margin: 0 0 .6em; line-height: 1.45; }
.demo-slide .ds-text p { font-size: clamp(9px, 1.1vw, 12px); color: #5a5c66; line-height: 1.7; margin: 0; }
.demo-slide .ds-bar { height: 5px; width: 34%; background: var(--accent); margin-bottom: 1.2em; }
.demo-slide .ds-foot { position: absolute; left: 6%; bottom: 4%; font-size: clamp(8px, .9vw, 10px); color: #8a90a2; }
.demo-video { position: relative; background: #0f1011; border-radius: 2px; overflow: hidden; align-self: center; aspect-ratio: 16 / 10; }
/* 動画の中身：棒グラフが伸びて、売上の線が上がっていく */
.dv-chart { position: absolute; inset: 14% 10% 22% 10%; display: flex; align-items: flex-end; gap: 9%; }
.dv-chart i { flex: 1; background: #3a3d52; border-radius: 2px 2px 0 0; height: 20%; animation: grow 4s ease-in-out infinite; }
.dv-chart i:nth-child(2) { animation-delay: .25s; } .dv-chart i:nth-child(3) { animation-delay: .5s; } .dv-chart i:nth-child(4) { animation-delay: .75s; background: var(--accent-hi); }
@keyframes grow { 0% { height: 18%; } 45%, 70% { height: var(--h, 80%); } 100% { height: 18%; } }
.dv-chart i:nth-child(1) { --h: 38%; } .dv-chart i:nth-child(2) { --h: 55%; } .dv-chart i:nth-child(3) { --h: 70%; } .dv-chart i:nth-child(4) { --h: 92%; }
.dv-time { position: absolute; left: 6%; right: 6%; bottom: 8%; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 2px; }
.dv-time b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent-hi); border-radius: 2px; animation: play 4s linear infinite; }
@keyframes play { to { width: 100%; } }
.dv-stop { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: clamp(10px, 1.2vw, 13px); text-align: center; padding: 8px; }
.dv-stop .lucide { width: 34%; height: auto; max-width: 54px; opacity: .9; }
.cmp-pdf .dv-chart i, .cmp-pdf .dv-time b { animation-play-state: paused; }
.cmp-pdf .dv-stop { display: flex; }
.cmp-pdf .demo-video { filter: grayscale(.6); }
@media (prefers-reduced-motion: reduce) { .compare .dv-chart i { height: var(--h); } .compare .dv-time b { width: 40%; } }
/* 2つを横に並べてくらべる（スマホでは縦に） */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cmp { margin: 0; min-width: 0; }
.cmp figcaption { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; margin-bottom: 12px; color: var(--fg); }
.cmp figcaption .lucide { width: 18px; height: 18px; }
.cmp-pdf figcaption { color: var(--sub); }
.cmp-pdf figcaption .lucide { color: var(--sub); }
.cmp-ugo figcaption .lucide { color: var(--accent); }
.cmp-pdf .demo-slide { opacity: .85; }
.cmp-note { margin: 14px 2px 0; font-size: 14px; line-height: 1.75; color: var(--sub); }
.compare .demo-slide .ds-text h3 { font-size: clamp(12px, 1.5vw, 19px); }
.compare .demo-slide .ds-text p { font-size: clamp(9px, .85vw, 11px); }

/* しくみ：ほんとうに順番があるので番号をつける */
.lp-how { max-width: 1160px; margin: 0 auto; padding: 72px 32px 24px; }
.lp-how h2 { font-size: var(--fs-5); letter-spacing: -.01em; line-height: 1.35; margin-bottom: 36px; max-width: 18em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 500; color: var(--accent-ink); line-height: 1; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--sub); font-size: 14px; line-height: 1.85; }
/* 記録の見本 */
.lp-track { max-width: 1160px; margin: 0 auto; padding: 56px 32px 96px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.lp-track h2 { font-size: var(--fs-5); line-height: 1.35; letter-spacing: -.01em; }
.lp-track p { color: var(--sub); line-height: 1.9; }
.track-sample { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.track-sample .who { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.track-sample .who strong { font-size: 16px; }
.lp-foot { border-top: 1px solid var(--line); padding: 28px 32px 40px; color: var(--sub); font-size: 13px; max-width: 1160px; margin: 0 auto; }
@media (max-width: 960px) {
  .lp-hero-in, .lp-track { grid-template-columns: 1fr; gap: 36px; }
  .lp-hero-in > div:first-child { display: block; }
  .lp-hero-in > div:first-child h1 { margin: 0 0 24px; }
  .lp-hero h1 { font-size: var(--fs-5); }
}
@media (max-width: 720px) {
  .lp-top, .lp-hero, .lp-how, .lp-track, .lp-foot { padding-left: 20px; padding-right: 20px; }
  .lp-hero { padding-top: 20px; padding-bottom: 48px; }
  .lp-hero h1 { font-size: 28px; }
  .lp-lead { font-size: 15px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-how h2, .lp-track h2 { font-size: var(--fs-4); }
  .login .row { flex-direction: column; }
  .login .row .btn { width: 100%; }
  .compare { grid-template-columns: 1fr; gap: 28px; }
  .compare .demo-slide .ds-text h3 { font-size: clamp(12px, 3.6vw, 17px); }
  .compare .demo-slide .ds-text p { font-size: clamp(9px, 2.4vw, 11px); }
  .dv-stop { font-size: 11px; }
}

/* =========================================================
   資料の一覧
   ========================================================= */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1, .page-head h2 { margin: 0; }
/* アップロード：スライドの形をした置き場 */
.drop {
  position: relative; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--raise); padding: 40px 28px 34px; text-align: center;
}
.drop.over { border-color: var(--accent-hi); background: rgba(113, 112, 255, .06); }
.drop .big { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.drop .lucide.lg { width: 32px; height: 32px; color: var(--sub); margin-bottom: 8px; }
.drop #dropHint { max-width: 36em; margin: 0 auto 4px; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .lucide { width: 16px; height: 16px; color: var(--sub); }
#sendBtns .btn + .btn { margin-left: 6px; }
.pdf-hint { text-align: left; max-width: 640px; margin: 18px auto 0; }
.pdf-hint-btn { margin-top: 8px; }
#uploading { max-width: 520px; margin: 8px auto 0; }
#upErr { max-width: 640px; margin: 14px auto 0; text-align: left; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent-hi); width: 0; transition: width .3s; }

/* 資料はサムネイルそのものを並べる（紙のように） */
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 28px; }
.deck { display: flex; flex-direction: column; min-width: 0; }
.deck .thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--paper); border-radius: 4px; box-shadow: var(--shadow-paper);
  display: flex; align-items: center; justify-content: center; color: var(--sub); overflow: hidden;
}
.deck .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.deck .thumb > .lucide { width: 32px; height: 32px; color: #b8b9c2; }
.deck .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.deck .title { font-weight: 500; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deck .meta { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.deck .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.deck .actions .btn { flex: 1 1 auto; }
.empty { text-align: center; padding: 36px 16px; color: var(--sub); }
.decks .empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 6px; }

/* =========================================================
   共有と記録
   ========================================================= */
.deck-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: start; }
.deck-aside { position: sticky; top: 82px; }
.deck-cover { aspect-ratio: 16 / 9; background: var(--paper); border-radius: 4px; box-shadow: var(--shadow-paper); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #b8b9c2; margin-bottom: 18px; }
.deck-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.title-edit { display: flex; gap: 4px; align-items: flex-start; }
.title-edit h1 { margin: 0; overflow-wrap: anywhere; font-size: 20px; }
#summary { margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
#state .link-row .btn { flex: 1 1 auto; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-bottom: 18px; }
.danger-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone h2 { font-size: 15px; }
.panel { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.panel + .panel, .panel + .panel-row, .panel-row + .panel { margin-top: 24px; }
.panel h2 { margin-bottom: 6px; }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.links { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.links th, .links td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.links th { font-size: 12px; color: var(--sub); font-weight: 500; }
.links th.num, .links td.num { text-align: right; white-space: nowrap; }
.links tr:last-child td { border-bottom: 0; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 10px; align-items: end; margin: 16px 0 6px; padding: 16px; background: var(--bg); border-radius: 8px; }
.bars { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 52px 1fr 80px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 12px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 2px; }
.bar .v { text-align: right; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.4; }
.bar .v .vid { color: var(--accent-ink); }
@media (max-width: 960px) {
  .deck-layout { grid-template-columns: 1fr; gap: 24px; }
  .deck-aside { position: static; }
  .deck-cover { max-width: 420px; }
  .panel-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .wrap { padding: 24px 16px 64px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .who { display: none; }
  .links th:nth-child(3), .links td:nth-child(3) { display: none; }
}

/* =========================================================
   ビューア（映す側）
   ========================================================= */
body.viewer { background: var(--bg-deep); color: var(--fg); overflow: hidden; height: 100vh; height: 100dvh; }
.vbar { height: 50px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.vbar .vtitle { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; padding: 0 6px; }
.vbar .page { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 8px; color: var(--sub); }
.vbar .page input { width: 3.2em; min-height: 32px; padding: 2px 6px; font-size: 13px; text-align: right; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; }
.vbar .sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .18); margin: 0 4px; }
.vbar a.icon-btn { color: inherit; }
.vmain { display: flex; height: calc(100% - 50px); }
.thumbs { width: 196px; flex: none; overflow-y: auto; background: var(--bg); border-right: 1px solid var(--line); padding: 16px 18px 24px; }
body.no-thumbs .thumbs { display: none; }
.thumbs button { display: block; width: 100%; border: 0; background: none; padding: 0; margin: 0 0 16px; cursor: pointer; color: var(--sub); text-align: center; }
.thumbs .tw { position: relative; outline: 2px solid transparent; outline-offset: 2px; border-radius: 2px; overflow: hidden; background: #fff; }
.thumbs img { width: 100%; height: auto; display: block; }
.thumbs button:hover .tw { outline-color: rgba(255, 255, 255, .35); }
.thumbs button.on .tw { outline: 3px solid var(--accent-hi); }
.thumbs button.on .no { color: #fff; font-weight: 700; }
.thumbs .no { font-size: 12px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.thumbs .vmark { position: absolute; right: 4px; bottom: 4px; background: var(--accent-hi); color: #fff; border-radius: 3px; padding: 1px 4px; display: flex; }
.thumbs .vmark .lucide { width: 13px; height: 13px; }
.stage { flex: 1; min-width: 0; position: relative; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; width: max-content; min-width: 100%; box-sizing: border-box; }
.zoom { display: flex; align-items: center; gap: 2px; }
.zoom select { min-height: 32px; padding: 2px 6px; font-size: 13px; background: var(--well, rgba(255, 255, 255, .1)); color: var(--fg); border: 1px solid var(--line-2, rgba(255, 255, 255, .2)); border-radius: 6px; font-variant-numeric: tabular-nums; cursor: pointer; }
.vbar .icon-btn:disabled { opacity: .35; cursor: default; }
:fullscreen .vbar, :fullscreen .thumbs { display: none !important; }
:fullscreen .vmain { height: 100%; }
.vlogo { height: 28px; width: auto; max-width: 140px; object-fit: contain; margin: 0 2px 0 6px; flex: none; }
.vcta { margin-left: 6px; white-space: nowrap; flex: none; }
.vcta .lucide { width: 15px; height: 15px; margin: 0 0 0 4px; }
.vbar .icon-btn.on { color: #fff; background: rgba(255, 60, 60, .22); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .55); }
body.laser-on .stage, body.laser-on .stage * { cursor: none !important; }
.laser-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.pw-wrap { position: fixed; inset: 50px 0 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pw-form { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(360px, 100%); }
.pw-form h1 { font-size: 18px; margin: 0; }
.pw-form p { margin: 0; }
.pw-form input { width: 100%; min-height: 44px; font-size: 16px; padding: 8px 12px; background: var(--well, rgba(255, 255, 255, .08)); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; }
.pw-form .btn { width: 100%; justify-content: center; min-height: 44px; }
.pw-err { color: #ff9b85; font-size: 13px; }
.pw-form > .lucide { width: 36px; height: 36px; }
.pw-form .btn .lucide { width: 18px; height: 18px; margin: 0; }
body.pw-mode .vbar .desk, body.pw-mode #toggleThumbs { display: none !important; }
@media (max-width: 720px) {
  .vcta { padding: 6px 10px; font-size: 12px; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 20px; }
  .vcta .lucide { display: none; }
  .vlogo { height: 22px; max-width: 64px; }
  .vbar .vtitle { min-width: 3em; }
}
.slide { position: relative; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 50px rgba(0, 0, 0, .4); flex: none; }
.slide > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.media { position: absolute; }
.media video, .media iframe { width: 100%; height: 100%; display: block; background: #000; border: 0; object-fit: contain; }
.media img.bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.media audio { position: absolute; left: 0; top: 0; width: 260px; max-width: 80vw; }
.media .tap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); border: 0; cursor: pointer; color: #fff; width: 100%; }
.media .tap span { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-hi); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.media.missing { display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(255, 243, 214, .95); color: #573400; font-size: 13px; padding: 8px; border: 2px dashed #d39b2a; }
.vtip { position: absolute; top: 60px; right: 14px; z-index: 6; max-width: 380px; background: var(--raise); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 44px 14px 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); border-top: 3px solid var(--accent-hi); }
.vtip .icon-btn { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; }
.vtip ul { margin: 6px 0 0; padding-left: 1.2em; }
.vmsg { margin: auto; max-width: 480px; text-align: center; padding: 24px; color: var(--fg); }
.vmsg a { color: var(--accent-hi); }
.vmsg .lucide { width: 36px; height: 36px; margin-bottom: 8px; }
.list { display: none; }
@media (max-width: 720px) {
  body.viewer { overflow: auto; height: auto; }
  .vbar { position: sticky; top: 0; }
  .vmain { display: block; height: auto; }
  .thumbs, .stage, .vbar .desk { display: none !important; }
  .list { display: block; padding: 12px 10px 40px; }
  .list .slide { width: 100%; margin: 0 0 14px; }
}

/* =========================================================
   動画の場所を決める画面
   ========================================================= */
body.editor { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.ed-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ed-title .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px 1fr 340px; }
.ed-pages { overflow-y: auto; border-right: 1px solid var(--line); padding: 14px; }
.ed-pages button { display: block; width: 100%; border: 0; background: none; padding: 0; margin: 0 0 14px; cursor: pointer; text-align: center; color: var(--sub); }
.ed-pages .tw { position: relative; outline: 1px solid transparent; outline-offset: 2px; border-radius: 2px; overflow: hidden; background: #fff; }
.ed-pages img { width: 100%; height: auto; display: block; }
.ed-pages button.on .tw { outline: 3px solid var(--accent-hi); }
.ed-pages button.on .no { color: var(--fg); font-weight: 700; }
.ed-pages .cnt { position: absolute; right: 3px; bottom: 3px; display: inline-flex; align-items: center; gap: 2px; background: var(--accent-hi); color: #fff; font-size: 11px; font-weight: 700; border-radius: 3px; padding: 1px 4px; }
.ed-pages .cnt .lucide { width: 12px; height: 12px; }
.ed-pages .no { font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ed-stage { overflow: auto; background: var(--bg-deep); display: flex; flex-direction: column; align-items: center; padding: 18px 24px; }
.ed-head { align-self: stretch; font-weight: 700; margin-bottom: 12px; }
.ed-slide { touch-action: none; box-shadow: var(--shadow-paper); }
.ed-box { position: absolute; outline: 2px solid var(--accent); outline-offset: 0; background: rgba(94, 106, 210, .10); cursor: move; touch-action: none; user-select: none; }
.ed-box.on { outline: 3px solid var(--accent-hi); background: rgba(113, 112, 255, .14); z-index: 2; }
.ed-box:focus-visible { outline: 3px solid var(--accent-hi); }
.ed-box img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: .88; pointer-events: none; }
.ed-box .lbl { position: absolute; left: 0; top: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ed-box.on .lbl { background: var(--accent-hi); color: #fff; font-weight: 700; }
.ed-box .lbl .lucide { width: 13px; height: 13px; }
.ed-box .handle { position: absolute; right: -10px; bottom: -10px; width: 20px; height: 20px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; cursor: nwse-resize; }
.ed-box.on .handle { border-color: var(--accent-hi); }
.ed-side { overflow-y: auto; border-left: 1px solid var(--line); padding: 18px; }
.ed-panel + .ed-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ed-panel h3 { font-size: 15px; }
#selPanel { margin: -18px -18px 0; padding: 18px; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--accent-hi); }
#selPanel + .ed-panel { border-top: 0; }
.ed-sel-name { font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--fg); font-size: 14px; min-height: 36px; cursor: pointer; margin: 0; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent-hi); }
.ed-vid { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ed-vid:last-child { border-bottom: 0; }
.ed-vid.on .ed-vthumb { outline: 3px solid var(--accent-hi); }
.ed-vthumb { width: 76px; height: 76px; align-self: flex-start; flex: none; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8a90a2; }
.ed-vthumb img { width: 100%; height: 100%; object-fit: contain; }
.ed-vbody { min-width: 0; flex: 1; }
.ed-vname { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.ed-narrow { display: none; margin: 16px; }
@media (max-width: 900px) {
  .ed { display: none; }
  .ed-narrow { display: block; }
  #save, #saveState { display: none; }
}
.fill.w20 { width: 20%; } .fill.w30 { width: 30%; } .fill.w55 { width: 55%; } .fill.w100 { width: 100%; }
.panel-row > .panel { margin-top: 0; }
.links td:first-child { word-break: keep-all; overflow-wrap: anywhere; }
#selPanel + .ed-panel { margin-top: 0; }

/* =========================================================
   ソフトな立体（参考画像の感じ）
   面は下地と同じ色で、影の向きで「浮く／押しこむ」を表す。差し色はオレンジ1色で光らせる
   ========================================================= */
:root {
  --bg: #2b2d31;
  --bg-deep: #26282b;
  --raise: #2b2d31;
  --raise-2: #303237;
  --well: #25272a;                 /* 押しこんだ面（入力欄・つまみの溝） */
  --line: rgba(255, 255, 255, .05);
  --line-2: rgba(255, 255, 255, .08);
  --fg: #ecedef;
  --sub: #8e9197;
  --accent: #ff5722;
  --accent-hi: #ff6a2c;
  --accent-ink: #ff8a5c;
  --info-soft: rgba(255, 255, 255, .03);
  --out: 7px 7px 16px rgba(0, 0, 0, .42), -5px -5px 14px rgba(255, 255, 255, .035);
  --out-sm: 4px 4px 9px rgba(0, 0, 0, .45), -3px -3px 8px rgba(255, 255, 255, .035);
  --in: inset 3px 3px 7px rgba(0, 0, 0, .5), inset -2px -2px 6px rgba(255, 255, 255, .035);
  --glow: 0 0 0 1px rgba(255, 106, 44, .55), 0 0 18px rgba(255, 87, 34, .45);
  --orange: radial-gradient(circle at 35% 30%, #ff8a4c 0%, #ff5722 55%, #e2410f 100%);
  --shadow-paper: 6px 6px 16px rgba(0, 0, 0, .45), -4px -4px 12px rgba(255, 255, 255, .03);
}
body { background: var(--bg); }
body.landing, body.viewer { background: var(--bg); }

/* 面：浮かせる */
.panel, .card, .steps li, .track-sample, .ed-side, .ed-pages {
  background: var(--bg); border: 1px solid rgba(255, 255, 255, .035); box-shadow: var(--out); border-radius: 18px;
}
.ed-side, .ed-pages { border-radius: 0; box-shadow: none; border: 0; }
.ed-side { box-shadow: -1px 0 0 rgba(0, 0, 0, .35), -2px 0 0 rgba(255, 255, 255, .03); }
.ed-pages { box-shadow: 1px 0 0 rgba(0, 0, 0, .35), 2px 0 0 rgba(255, 255, 255, .03); }

/* 置き場・入力欄・溝：押しこむ */
.drop { background: var(--well); border: 0; box-shadow: var(--in); border-radius: 18px; }
.drop.over { box-shadow: var(--in), var(--glow); background: var(--well); }
input[type=text], input[type=email], select { background: var(--well); border: 0; box-shadow: var(--in); border-radius: 12px; }
input:focus, select:focus { box-shadow: var(--in), 0 0 0 2px rgba(255, 106, 44, .6); }
.form-row { background: transparent; padding: 0; }
.progress, .bar .track { background: var(--well); box-shadow: var(--in); border-radius: 999px; height: 8px; }
.bar .track { height: 10px; }
.progress > div, .bar .fill { background: linear-gradient(90deg, #ff7a3d, #ff5722); border-radius: 999px; box-shadow: 0 0 10px rgba(255, 87, 34, .55); }
.chip { background: var(--bg); border: 0; box-shadow: var(--out-sm); border-radius: 10px; }
.badge { background: var(--well); box-shadow: var(--in); }
.badge.run { background: var(--well); color: var(--accent-ink); }
.badge.warn { background: var(--well); }

/* ボタン：浮いた丸み。押すとへこむ */
.btn { background: var(--bg); border: 0; box-shadow: var(--out-sm); border-radius: 12px; min-height: 40px; padding: 8px 16px; }
.btn:hover { background: var(--raise-2); }
.btn:active { box-shadow: var(--in); }
.btn.primary { background: var(--orange); color: #fff; border: 0; box-shadow: var(--glow), var(--out-sm); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.btn.primary:hover { background: var(--orange); filter: brightness(1.06); }
.btn.primary:active { box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .35); }
.btn.danger { color: #ff8a80; }
.btn.danger:hover { background: var(--raise-2); }
.icon-btn { border-radius: 50%; width: 38px; height: 38px; background: var(--bg); box-shadow: var(--out-sm); }
.icon-btn:hover { background: var(--raise-2); }
.icon-btn:active { box-shadow: var(--in); }
.topbar .btn { background: var(--bg); }
.topbar .btn.primary { background: var(--orange); }

/* 上の帯：下地と同じ色で、下に影を落とす */
.topbar { background: var(--bg); border-bottom: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); backdrop-filter: none; }
.lp-top, .lp-hero { background: var(--bg); }
.lp-hero { border-bottom: 0; }
.logo .mark { border-radius: 6px; box-shadow: var(--out-sm); }
.logo .mark::after { background: var(--orange); box-shadow: 0 0 8px rgba(255, 87, 34, .8); border-color: var(--bg); }

/* はじめの画面の見本 */
.demo-slide { box-shadow: var(--out); }
.demo-slide .ds-bar { background: var(--accent); }
.dv-chart i { background: #45474d; }
.dv-chart i:nth-child(4) { background: var(--orange); box-shadow: 0 0 12px rgba(255, 87, 34, .6); }
.dv-time b { background: linear-gradient(90deg, #ff7a3d, #ff5722); box-shadow: 0 0 8px rgba(255, 87, 34, .7); }
.steps li::before {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg); box-shadow: var(--out-sm); color: var(--accent-ink); font-size: 14px; font-weight: 600;
}

/* ビューア */
.vbar { background: var(--bg); border-bottom: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.vbar .page input { background: var(--well); border: 0; box-shadow: var(--in); border-radius: 8px; }
.vbar .sep { background: rgba(0, 0, 0, .35); box-shadow: 1px 0 0 rgba(255, 255, 255, .04); }
.thumbs { background: var(--bg); border-right: 0; box-shadow: 1px 0 0 rgba(0, 0, 0, .35), 2px 0 0 rgba(255, 255, 255, .03); }
.thumbs .tw { border-radius: 6px; box-shadow: var(--out-sm); }
.thumbs button.on .tw { outline: 2px solid var(--accent-hi); box-shadow: var(--glow); }
.thumbs .vmark, .ed-pages .cnt { background: var(--orange); box-shadow: 0 0 8px rgba(255, 87, 34, .6); }
.slide { box-shadow: var(--out); }
.media .tap span { background: var(--orange); box-shadow: var(--glow); }
.vtip { background: var(--bg); border: 0; border-radius: 16px; box-shadow: var(--out); border-top: 0; }
.vtip::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--orange); box-shadow: 0 0 10px rgba(255, 87, 34, .6); }

/* 一覧・共有と記録 */
.deck .thumb, .deck-cover { border-radius: 10px; box-shadow: var(--out); }
.decks .empty { background: var(--well); border: 0; box-shadow: var(--in); border-radius: 18px; }
.links th, .links td { border-bottom-color: rgba(0, 0, 0, .3); box-shadow: 0 1px 0 rgba(255, 255, 255, .02); }
.danger-zone { border-top: 0; box-shadow: 0 -1px 0 rgba(0, 0, 0, .35), 0 -2px 0 rgba(255, 255, 255, .03); }
.note { border-radius: 14px; }

/* 動画の場所を決める画面 */
.ed-stage { background: var(--bg-deep); box-shadow: var(--in); }
.ed-pages .tw { border-radius: 6px; box-shadow: var(--out-sm); }
.ed-pages button.on .tw { outline: 2px solid var(--accent-hi); box-shadow: var(--glow); }
.ed-box { outline-color: #6b6e75; background: rgba(0, 0, 0, .06); }
.ed-box .lbl { background: #44464c; }
.ed-box .handle { border-color: #6b6e75; }
.ed-box.on { outline: 2px solid var(--accent-hi); box-shadow: var(--glow); background: rgba(255, 87, 34, .08); }
.ed-box.on .lbl { background: var(--orange); }
.ed-box.on .handle { border-color: var(--accent-hi); box-shadow: 0 0 8px rgba(255, 87, 34, .7); }
#selPanel { box-shadow: none; border-bottom: 0; }
#selPanel::after { content: ""; display: block; height: 2px; margin: 16px -18px -18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03); background: rgba(0, 0, 0, .35); }
.ed-vid { border-bottom-color: rgba(0, 0, 0, .3); }
.ed-vthumb { border: 0; box-shadow: var(--in); border-radius: 10px; }
.ed-vid.on .ed-vthumb { outline: 2px solid var(--accent-hi); box-shadow: var(--glow); }
label.check input { accent-color: var(--accent); }
.toast { background: var(--bg); border: 0; box-shadow: var(--out); border-radius: 12px; }

/* =========================================================
   少しだけ平らに（立体の感じを弱める）
   左上の光はやめて、影は下に薄く1つだけ。面は少し明るい色と細い線で分ける
   ========================================================= */
:root {
  --raise: #313338;
  --raise-2: #383a40;
  --well: #26282b;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --out: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 14px rgba(0, 0, 0, .18);
  --out-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --in: inset 0 1px 2px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(255, 106, 44, .45), 0 0 10px rgba(255, 87, 34, .28);
  --orange: linear-gradient(180deg, #ff6d36 0%, #ff5722 100%);
  --shadow-paper: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}
.panel, .card, .steps li, .track-sample { background: var(--raise); border: 1px solid var(--line); border-radius: 14px; }
.drop { background: var(--well); border: 1px dashed var(--line-2); border-radius: 14px; }
.decks .empty { background: var(--well); border: 1px dashed var(--line-2); border-radius: 14px; }
input[type=text], input[type=email], select { background: var(--well); border: 1px solid var(--line-2); border-radius: 10px; }
input:focus, select:focus { border-color: rgba(255, 106, 44, .7); box-shadow: 0 0 0 3px rgba(255, 87, 34, .18); }
.progress, .bar .track { background: var(--well); box-shadow: none; }
.progress > div, .bar .fill { background: var(--accent); box-shadow: none; }
.chip { background: var(--raise); border: 1px solid var(--line); box-shadow: none; }
.badge, .badge.run, .badge.warn { box-shadow: none; }
.btn { background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--out-sm); }
.btn:hover { background: var(--raise-2); }
.btn:active { box-shadow: none; transform: translateY(1px); }
.btn.primary { background: var(--orange); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 10px rgba(255, 87, 34, .25); text-shadow: none; }
.btn.primary:active { box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.icon-btn { background: transparent; box-shadow: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); }
.icon-btn:active { box-shadow: none; background: rgba(255, 255, 255, .1); }
.vtip .icon-btn, .title-edit .icon-btn { background: transparent; }
.topbar, .vbar { box-shadow: none; border-bottom: 1px solid var(--line); }
.topbar .btn, .topbar .btn:hover { background: var(--raise); }
.logo .mark { box-shadow: none; }
.logo .mark::after { box-shadow: none; }
.dv-chart i:nth-child(4), .dv-time b { box-shadow: none; }
.steps li::before { background: var(--well); box-shadow: none; border: 1px solid var(--line-2); }
.thumbs, .ed-pages { box-shadow: none; border-right: 1px solid var(--line); }
.ed-side { box-shadow: none; border-left: 1px solid var(--line); }
.thumbs .tw, .ed-pages .tw { box-shadow: none; }
.thumbs button.on .tw, .ed-pages button.on .tw { box-shadow: 0 0 0 3px rgba(255, 87, 34, .2); }
.thumbs .vmark, .ed-pages .cnt { box-shadow: none; background: var(--accent); }
.vbar .page input { background: var(--well); border: 1px solid var(--line-2); box-shadow: none; }
.vbar .sep { background: var(--line-2); box-shadow: none; }
.vtip { background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.vtip::before { box-shadow: none; }
.media .tap span { background: var(--accent); box-shadow: none; }
.deck .thumb, .deck-cover { border-radius: 8px; }
.links th, .links td { border-bottom-color: var(--line); box-shadow: none; }
.danger-zone { box-shadow: none; border-top: 1px solid var(--line); }
.ed-stage { box-shadow: none; }
.ed-box.on { box-shadow: 0 0 0 4px rgba(255, 87, 34, .18); }
.ed-box.on .handle { box-shadow: none; }
#selPanel::after { background: var(--line); box-shadow: none; height: 1px; }
.ed-vid { border-bottom-color: var(--line); }
.ed-vthumb { box-shadow: none; border: 1px solid var(--line); }
.ed-vid.on .ed-vthumb { box-shadow: 0 0 0 3px rgba(255, 87, 34, .2); }
.toast { background: var(--raise-2); border: 1px solid var(--line-2); }

.share-panel { margin-bottom: 20px; }
.share-panel .share-box { margin: 10px 0 8px; }
.share-panel a { color: var(--accent-ink, var(--accent)); }

/* よくある質問（はじめの画面） */
.lp-faq { max-width: 1160px; margin: 0 auto; padding: 24px 32px 88px; }
.lp-faq h2 { font-size: var(--fs-5); line-height: 1.35; letter-spacing: -.01em; margin-bottom: 24px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
.faq-item { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 500; font-size: 15px; line-height: 1.6; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--sub); transition: transform .15s;
  -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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain 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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--sub); font-size: 14px; line-height: 1.9; word-break: auto-phrase; }
@media (max-width: 720px) { .lp-faq { padding: 8px 20px 56px; } .faq { grid-template-columns: 1fr; } .lp-faq h2 { font-size: var(--fs-4); } }

/* 動画の場所：確かめてほしい枠・足りないかもしれない場所・見比べ */
.ed-box.chk { outline: 2px dashed #f5b14c; outline-offset: 2px; }
.ed-box .chk-badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #f5b14c; color: #1a1b20; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.ed-box .chk-badge .lucide { width: 13px; height: 13px; }
.ed-suspect { position: absolute; border: 2px dashed rgba(245, 177, 76, .9); background: rgba(245, 177, 76, .08); pointer-events: none; border-radius: 2px; }
.ed-suspect .lbl { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(26, 27, 32, .85); color: #f5b14c; font-size: 12px; white-space: nowrap; }
.ed-suspect .lbl .lucide { width: 13px; height: 13px; }
#checkPanel { border-color: rgba(245, 177, 76, .45); }
#checkPanel h3 { color: #f5b14c; }
.ed-cands { margin-top: 10px; }
.ed-cands .link-row { margin-top: 6px; }
.ed-cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.ed-cmp figure { margin: 0; }
.ed-cmp figcaption { font-size: 12px; color: var(--sub); margin-top: 4px; }
.ed-cmp-pdf { width: 100%; background-color: #fff; background-repeat: no-repeat; border-radius: 4px; max-height: 220px; }
.ed-cmp-vid { width: 100%; display: block; background: #000; border-radius: 4px; max-height: 220px; object-fit: contain; }

/* 一覧：サムネイルと名前を押すと資料のページへ */
a.thumb { display: flex; cursor: pointer; transition: box-shadow .15s, transform .15s; }
a.thumb:hover { box-shadow: 0 0 0 2px rgba(255, 87, 34, .55); }
a.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.deck a.title { color: inherit; text-decoration: none; }
.deck a.title:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { a.thumb { transition: none; } }

/* リンクの名前（相手に見える名前） */
.share-title { margin-top: 14px; }
.share-title label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.link-title { color: var(--sub); margin-top: 2px; }
.link-title span { color: var(--fg); }
.btn-text { background: none; border: 0; color: var(--sub); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 6px; min-height: 28px; display: inline-flex; align-items: center; gap: 4px; }
.btn-text:hover { color: var(--fg); }
.btn-text .lucide { width: 13px; height: 13px; }
.rename-row { display: flex; gap: 6px; margin-top: 4px; }
.rename-row input { flex: 1; min-width: 0; }
.paren { display: inline-block; }

/* アップロード → 確認・修正 → リンクを発行 */
.publish-panel { margin-bottom: 20px; }
.flow-steps { list-style: none; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 16px; counter-reset: st; flex-wrap: wrap; }
.flow-steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.flow-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; }
.flow-steps li:not(:last-child)::after { content: ""; width: 16px; height: 1px; background: var(--line); margin-left: 2px; }
.flow-steps li.cur { color: var(--fg); font-weight: 600; }
.flow-steps li.cur::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.publish-panel p a { color: var(--accent); }

/* =========================================================
   リンクの設定（ダイアログ）・ロゴと問い合わせボタン
   ========================================================= */
.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--raise, #33353a); color: var(--fg); border: 1px solid var(--line-2); border-radius: 12px; padding: 22px 22px 18px; }
.dlg::backdrop { background: rgba(0, 0, 0, .55); }
.dlg h2 { margin: 0 0 4px; font-size: 18px; }
.dlg fieldset { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.dlg legend { font-weight: 700; font-size: 14px; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.dlg .opt { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 14px; }
.dlg .opt input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.dlg input[type=text] { min-height: 40px; }
.dlg input:disabled, .dlg .opt:has(input:disabled) { opacity: .5; cursor: default; }
.dlg .dlg-btns { margin-top: 18px; }
.pro-badge { background: rgba(255, 87, 34, .16) !important; color: #ffb199 !important; box-shadow: none !important; }
.share-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.opt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.opt-badges:empty { display: none; }
.brand-logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-logo-box { width: 160px; height: 56px; border-radius: 8px; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 12px; overflow: hidden; }
.brand-logo-box img { max-width: 140px; max-height: 40px; object-fit: contain; }
.brand-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.brand-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.brand-form input { width: 100%; }
@media (max-width: 720px) { .brand-form { grid-template-columns: 1fr; } }

/* =========================================================
   ログイン・登録（Google）
   ========================================================= */
.lp-auth { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); }
.auth-wrap { min-height: calc(100dvh - 64px); display: flex; align-items: center; justify-content: center; padding: 24px 20px 64px; }
.auth-card { width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.auth-card h1 { font-size: 24px; margin: 0; text-wrap: balance; }
.auth-card p { margin: 0; word-break: auto-phrase; text-wrap: pretty; }
.auth-google { min-height: 44px; width: 100%; display: flex; justify-content: center; }
.auth-card .note { text-align: left; width: 100%; }
.auth-switch a, .auth-skip a { color: var(--accent-hi); }
.auth-skip { margin-top: 8px !important; }
.keep-google { margin-top: 12px; display: flex; }
.dev-login { display: flex; gap: 8px; width: 100%; max-width: 360px; }
.dev-login input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; background: var(--well, rgba(255, 255, 255, .08)); color: var(--fg); border: 1px dashed var(--line-2); border-radius: 8px; }
@media (max-width: 480px) { .lp-auth .btn { padding: 6px 10px; } }
.lp-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-foot a { color: var(--sub); }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; line-height: 1.9; font-size: 15px; word-break: auto-phrase; }
.legal h1 { font-size: 28px; margin: 0 0 4px; }
.legal h2 { font-size: 18px; margin: 32px 0 8px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent-hi); }
.auth-legal a { color: var(--sub); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-table th { width: 30%; font-weight: 600; color: var(--sub); }
@media (max-width: 560px) { .legal-table th, .legal-table td { display: block; width: auto; padding: 6px 0; } .legal-table th { border-top: 1px solid var(--line); padding-top: 14px; } .legal-table td { border-top: 0; } }
.plan-panel h3.plan-name { font-size: 16px; margin: 14px 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price { font-size: 14px; color: var(--accent-hi); font-weight: 700; white-space: nowrap; }
.plan-features { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.plan-features .lucide { width: 16px; height: 16px; margin-top: 4px; color: var(--ok, #4ade80); flex: none; }
.plan-terms { margin: 0 0 14px; word-break: auto-phrase; }
.plan-terms a { color: var(--sub); }
.plan-panel .badge { vertical-align: middle; }
.ts-box:empty { display: none; } .ts-box { margin-top: 12px; display: flex; justify-content: center; }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise, rgba(255,255,255,.03)); }
.admin-row.is-blocked { border-color: rgba(255, 90, 90, .5); }
.admin-thumb { width: 160px; height: 90px; object-fit: contain; background: var(--bg-deep); border-radius: 6px; flex: none; }
.admin-body { min-width: 0; display: grid; gap: 4px; }
.admin-title { font-weight: 700; overflow-wrap: anywhere; }
.admin-links a { color: var(--accent-hi); margin-right: 8px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .admin-row { flex-direction: column; } .admin-thumb { width: 100%; height: 160px; } }
