/* ===== 目標管理（Tsumikitools）— スタイル（予実・全ページ版） ===== */
:root { --radius: 14px; --gap: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
[data-theme="dark"] {
  --bg:#0d1117; --bg-elev:#161b22; --bg-card:#1b222c; --border:#2a323d;
  --text:#e6edf3; --text-dim:#8b97a7; --accent:#2dd4bf; --accent-2:#38bdf8;
  --ok:#34d399; --warn:#fbbf24; --bad:#f87171; --track:#232c38; --shadow:0 6px 20px rgba(0,0,0,.35); }
[data-theme="light"] {
  --bg:#f4f6fb; --bg-elev:#fff; --bg-card:#fff; --border:#e3e8f0;
  --text:#16202c; --text-dim:#66758a; --accent:#0d9488; --accent-2:#0284c7;
  --ok:#16a34a; --warn:#d97706; --bad:#dc2626; --track:#eaeef4; --shadow:0 6px 20px rgba(20,40,80,.08); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
#app { display: flex; min-height: 100vh; }

/* アイコン */
.ico { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.ico.i14 { width: 14px; height: 14px; }
.ico.i16 { width: 16px; height: 16px; }
.ico.i18 { width: 18px; height: 18px; }
.ico.i28 { width: 28px; height: 28px; }
.ico.bn { width: 22px; height: 22px; }

/* ===== サイドバー ===== */
.sidebar { width: 224px; flex: 0 0 224px; background: var(--bg-elev); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-mark { color: var(--accent); display: inline-flex; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-dim); font-size: 14px; font-weight: 600; transition: .15s; }
.side-nav a:hover { background: var(--bg-card); color: var(--text); }
.side-nav a.active { background: var(--accent); color: #07221f; }
.btn-record { margin-top: auto; padding: 11px; border: none; border-radius: 10px; background: var(--accent-2);
  color: #042537; font-weight: 700; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-record:hover { filter: brightness(1.07); }
.ico-slot { display: inline-flex; }
.side-foot { color: var(--text-dim); font-size: 10px; letter-spacing: 1px; text-align: center; }

/* ===== メイン ===== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.topbar-left { display: flex; align-items: center; gap: 10px; }
#top-title { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.only-mobile { display: none; }
.view { padding: 22px; max-width: 1120px; width: 100%; }

/* ===== 共通 ===== */
.page-head { margin-bottom: 18px; }
.page-head h2 { margin: 0 0 4px; font-size: 22px; }
.page-sub { color: var(--text-dim); font-size: 13px; }
.section-title { margin: 22px 0 10px; font-size: 13px; font-weight: 700; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px; }
.section-title .ico { color: var(--accent); }
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.dim { opacity: .85; }
.clickable { cursor: pointer; }
.empty { color: var(--text-dim); font-size: 13px; padding: 10px 0; }
.muted { color: var(--text-dim); font-size: 12px; }

/* バッジ */
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; }
.badge.ok { background: rgba(52,211,153,.16); color: var(--ok); }
.badge.warn { background: rgba(251,191,36,.16); color: var(--warn); }
.badge.bad { background: rgba(248,113,113,.16); color: var(--bad); }
.badge.sub { background: rgba(139,151,167,.16); color: var(--text-dim); }

/* プログレスバー＋予定マーカー */
.bar { position: relative; height: 9px; background: var(--track); border-radius: 999px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar.thin { height: 6px; }
.bar.tall { height: 18px; }
.bar.lg { height: 18px; }
.bar-pct { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700;
  color: var(--text); text-shadow: 0 0 3px var(--bg-card), 0 0 3px var(--bg-card); pointer-events: none; }
.plan-mark { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--text); opacity: .65; }
.plan-mark::after { content: ""; position: absolute; top: -3px; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }

/* メトリクスカード */
.metric-card .mcard-actions { margin-top: 12px; }
.mcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mcard-name { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.mcard-name .ico { color: var(--accent); }
.mcard-today { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 8px; }
.mcard-today .now { font-size: 30px; font-weight: 800; }
.mcard-today .quota { color: var(--text-dim); font-size: 14px; }
.mcard-meta { color: var(--text-dim); font-size: 12px; display: flex; justify-content: space-between; margin-top: 8px; }
.mcard-actions { display: flex; gap: 8px; }
.btn-step { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text); cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.btn-step.plus { background: var(--accent); color: #07221f; border-color: transparent; }
.btn-step:hover { filter: brightness(1.08); }

/* ヒーロー */
.hero { background: linear-gradient(135deg, rgba(45,212,191,.12), rgba(56,189,248,.08));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.hero h2 { margin: 0; font-size: 22px; }
.hero .date { color: var(--text-dim); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-2);
  border: 1px solid var(--border); padding: 7px 11px; border-radius: 9px; }
.hero-link:hover { border-color: var(--accent-2); }
.hero-pct { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.hero-pct .big { font-size: 26px; font-weight: 800; min-width: 64px; }
.hero-pct .bar { flex: 1; }

/* 行 */
.row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-name { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.row-name .ico { color: var(--accent); }
.row-name small { color: var(--text-dim); font-weight: 500; font-size: 12px; }
.row-nums b { color: var(--text); font-size: 15px; }
.row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-dim); font-size: 12px; }
.clickable:hover .row-name, .clickable:hover .mcard-name { color: var(--accent); }
.goal-aim { font-size: 13px; color: var(--text-dim); }
.goal-aim b { color: var(--text); font-size: 15px; }

/* 予実セル */
.yo-line { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 2px; }
.yo-cell { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.yo-k { font-size: 11px; color: var(--text-dim); }
.yo-v { font-size: 14px; color: var(--text-dim); }
.yo-v b { color: var(--text); font-size: 17px; }
.yo-big { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 8px; }
.yo-now { font-size: 28px; font-weight: 800; }
.yo-plan { color: var(--text-dim); font-size: 13px; }

/* aim バナー（指標詳細トップ） */
.aim-banner { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(45,212,191,.14), rgba(56,189,248,.08));
  border: 1px solid var(--border); border-radius: var(--radius); }
.aim-ico { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 13px; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; color: var(--accent); }
.aim-body { flex: 1; min-width: 0; }
.aim-cat { font-size: 12px; color: var(--text-dim); }
.aim-main { font-size: 19px; font-weight: 700; margin: 2px 0; }
.aim-main b { color: var(--accent); }
.aim-sub { font-size: 12px; color: var(--text-dim); }

/* 回遊 */
.hop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; color: var(--text-dim); font-size: 13px; }
.metric-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); cursor: pointer; font-size: 13px; font-weight: 600; }
.chip .ico { color: var(--accent); }
.chip.active { background: var(--accent); color: #07221f; border-color: transparent; }
.chip.active .ico { color: #07221f; }
.chip.sm { padding: 5px 10px; font-size: 12px; }

/* ヒートマップ */
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.heat .dot { height: 34px; border-radius: 8px; background: var(--track); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-dim); }
.heat .lbl { font-size: 11px; color: var(--text-dim); margin-top: 4px; text-align: center; }

/* 詳細リスト */
.item-list { margin-top: 4px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.item:last-child { border-bottom: none; }
.item a { color: var(--accent-2); }
.chart-wrap { position: relative; height: 240px; }

/* フォーム */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--text-dim); }
.field input, .field select { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 10px; font-size: 15px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.btn-primary { width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--accent); color: #07221f;
  font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px dashed var(--border);
  color: var(--text-dim); padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.modal-hint { color: var(--text-dim); font-size: 11px; text-align: center; margin: 10px 0 0; }

/* 設定 目標カード */
.set-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.set-card-top { display: flex; gap: 8px; margin-bottom: 10px; }
.s-name { flex: 1; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 9px 10px; font-size: 15px; font-weight: 600; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.set-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-dim); }
.set-grid input, .set-grid select { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px; font-size: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; }
.set-row select { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 10px; font-size: 14px; width: 150px; }

/* 時間×達成 ゲージ（指標詳細） */
.gauge-card { margin-bottom: 16px; }
.gauge-row { margin-bottom: 12px; }
.gauge-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.gauge-head span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.gauge-head .ico { color: var(--accent); }
.bar.lg { height: 14px; }
.bar > span.time { background: var(--text-dim); }
.gauge-verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 9px; margin-top: 2px; }
.gauge-verdict.ok { background: rgba(52,211,153,.14); color: var(--ok); }
.gauge-verdict.warn { background: rgba(251,191,36,.14); color: var(--warn); }
.gauge-verdict.bad { background: rgba(248,113,113,.14); color: var(--bad); }

/* 予実カード（4カラム・週/月/年/目標） */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.pred-card { padding: 14px; }
.card-name { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.card-name .ico { color: var(--accent); }
.card-name small { color: var(--text-dim); font-weight: 500; font-size: 11px; }
.frac { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 1px; color: var(--text-dim); font-size: 15px; }
.frac b { font-size: 26px; font-weight: 800; color: var(--text); }
.frac-sep { color: var(--text-dim); font-size: 18px; }
.frac-unit { font-size: 12px; }
.frac-cap { font-size: 11px; color: var(--text-dim); margin-bottom: 9px; }
.frac-sub { font-size: 13px; color: var(--text-dim); margin: 2px 0 9px; }
.frac-sub b { color: var(--text); font-size: 15px; }
.frac-note { font-size: 10px; color: var(--text-dim); margin-left: 3px; }
.scale-foot-note { color: var(--text-dim); font-size: 11px; margin-top: 8px; }
.pred-card:hover .card-name { color: var(--accent); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.s-up, .icon-btn.s-down { width: 32px; height: 32px; }

/* 4スケール予実カード（指標詳細） */
.scale-card { padding: 14px; }
.scale-top { display: flex; align-items: center; justify-content: space-between; }
.scale-key { font-weight: 800; font-size: 15px; color: var(--accent); }
.scale-nums { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 2px; }
.scale-label { font-size: 11px; color: var(--text-dim); }
.scale-actual { font-size: 26px; font-weight: 800; }
.scale-unit { color: var(--text-dim); font-size: 12px; }
.scale-budget { color: var(--text-dim); font-size: 12px; margin-bottom: 9px; }
.scale-bar-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.scale-tag { font-size: 11px; color: var(--text-dim); width: 28px; flex: 0 0 auto; }
.scale-bar-row .bar { flex: 1; height: 8px; }
.scale-val { font-size: 12px; font-weight: 700; width: 58px; text-align: right; flex: 0 0 auto; }
.scale-foot { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-2); font-size: 11px; font-weight: 600; margin-top: 10px; }
.scale-card:hover .scale-foot { text-decoration: underline; }
.scale-card:hover .scale-key { color: var(--accent); }

/* 設定: アイコンピッカー・カテゴリ管理 */
.set-cur-ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: var(--bg-elev);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.set-sub { font-size: 12px; color: var(--text-dim); margin: 0 0 6px; }
.set-icon-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ip { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-elev);
  color: var(--text-dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ip:hover { color: var(--text); border-color: var(--accent); }
.ip.active { border-color: var(--accent); color: var(--accent); background: rgba(45,212,191,.14); }
.cat-manage { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.cat-chip .ico { color: var(--accent); }
.cat-add { display: flex; gap: 8px; }
.cat-add input { flex: 1; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 9px 10px; font-size: 14px; }

/* 使い方 */
.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.flow-step { flex: 1; min-width: 150px; display: flex; gap: 10px; align-items: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 13px; }
.flow-step small { color: var(--text-dim); }
.flow-no { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #07221f;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.flow-arrow { display: flex; align-items: center; color: var(--text-dim); }
.guide-steps { margin: 14px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.8; }
.guide-yo p { font-size: 13px; line-height: 1.7; }
.leg-actual { color: var(--accent); font-weight: 700; }
.leg-plan { color: var(--text-dim); font-weight: 700; }
.guide-yo .bar { margin: 12px 0; }

/* デバイス図解 */
.device { position: relative; border: 2px solid var(--border); border-radius: 16px; padding: 12px; background: var(--bg); }
.device.phone { max-width: 230px; margin: 8px auto 6px; }
.d-head { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.d-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-size: 12px;
  margin-bottom: 7px; display: flex; justify-content: space-between; align-items: center; }
.d-plus { color: var(--accent); font-weight: 800; }
.d-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 9px; font-size: 11px; color: var(--text-dim); }
.d-bottom .on { color: var(--accent); font-weight: 700; }
.d-bottom .add { color: var(--accent-2); font-weight: 800; }
.device.pc { display: flex; gap: 10px; }
.d-side { display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: var(--text-dim); border-right: 1px solid var(--border); padding-right: 10px; min-width: 66px; }
.d-side .on { color: var(--accent); font-weight: 700; }
.d-main { flex: 1; }
.d-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; padding: 7px 9px; font-size: 11px; margin-bottom: 7px; }
.mark { position: absolute; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-2); color: #04222f;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bg); }
.device.phone .m1 { right: 6px; bottom: 14px; }
.device.phone .m2 { left: 6px; top: 40px; }
.device.phone .m3 { right: 40px; bottom: 14px; }
.device.pc .m1 { left: 52px; top: 30px; }
.device.pc .m2 { right: 14px; top: 50px; }

/* ===== ログイン画面 ===== */
.login-screen { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-screen[hidden] { display: none; }
.login-card { width: 100%; max-width: 360px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.login-logo { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; }
.login-card .field { text-align: left; }
.login-card .btn-primary { margin-top: 6px; }
.login-google, .login-register { width: 100%; justify-content: center; margin-top: 10px; }
.login-msg { font-size: 12px; color: var(--bad); min-height: 16px; margin: 10px 0 0; }

/* ===== ハブ（アプリ・ランチャー） ===== */
.hub-screen { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; padding: 28px 20px; }
.hub-screen[hidden] { display: none; }
.hub-inner { max-width: 880px; margin: 0 auto; }
.hub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.hub-brand { display: flex; align-items: center; gap: 12px; }
.hub-logo { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.hub-brand h1 { margin: 0; font-size: 22px; }
.hub-user { margin: 2px 0 0; font-size: 12px; color: var(--text-dim); }
.hub-sub { color: var(--text-dim); font-size: 13px; margin: 14px 0 14px; }
.hub-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: .15s; }
.app-tile.ready:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-tile.soon { opacity: .55; cursor: default; }
.app-tile .tile-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-elev); color: var(--accent);
  display: flex; align-items: center; justify-content: center; }
.app-tile h3 { margin: 4px 0 0; font-size: 16px; }
.app-tile p { margin: 0; font-size: 12px; color: var(--text-dim); }
.app-tile .tile-badge { align-self: flex-start; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--track); color: var(--text-dim); }
.app-tile.ready .tile-badge { background: rgba(45,212,191,.16); color: var(--accent); }
@media (max-width: 860px) { .hub-apps { grid-template-columns: 1fr; } .hub-screen { padding: 18px 14px; } }

/* ===== LP（集客・未来的） ===== */
.lp { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #060b16; color: #e8f0f7; font-family: var(--font); -webkit-font-smoothing: antialiased; }
.lp[hidden] { display: none; }
.lp-grid-tex { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(900px 520px at 82% -8%, rgba(45,212,191,.22), transparent 60%), radial-gradient(720px 520px at -5% 18%, rgba(56,189,248,.14), transparent 60%), #060b16; }
.lp-grid-tex::after { content: ""; position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 25%, #000, transparent 78%); mask-image: radial-gradient(circle at 50% 25%, #000, transparent 78%); }
.lp > *:not(.lp-grid-tex) { position: relative; z-index: 1; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 18px 22px; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.lp-logo-ico { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#2dd4bf,#38bdf8); display: flex; align-items: center; justify-content: center; color: #04222f; }
.lp-hero { max-width: 1080px; margin: 0 auto; padding: 40px 22px 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.lp-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #7ee7d8; border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08); padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: 46px; line-height: 1.18; margin: 16px 0 14px; letter-spacing: -.5px; font-weight: 900; }
.lp-grad { background: linear-gradient(120deg,#2dd4bf,#38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 16px; line-height: 1.85; color: #aab8c6; max-width: 560px; }
.lp-lead b { color: #e8f0f7; }
.lp-cta { display: flex; gap: 12px; margin: 24px 0 10px; flex-wrap: wrap; }
.lp-btn-primary { border: none; cursor: pointer; font-weight: 800; font-size: 15px; color: #04222f; background: linear-gradient(135deg,#2dd4bf,#38bdf8); padding: 13px 24px; border-radius: 12px; box-shadow: 0 8px 30px rgba(45,212,191,.35); transition: .15s; }
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(45,212,191,.5); }
.lp-btn-primary.lp-lg { font-size: 17px; padding: 16px 34px; }
.lp-btn-ghost { background: rgba(255,255,255,.05); color: #e8f0f7; border: 1px solid rgba(255,255,255,.15); padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.lp-btn-ghost:hover { border-color: #2dd4bf; }
.lp-note { font-size: 12px; color: #7e8a99; }
.lp-hero-img img { width: 100%; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 70px rgba(0,0,0,.6), 0 0 60px rgba(45,212,191,.15); display: block; }
.lp-section { max-width: 1080px; margin: 0 auto; padding: 46px 22px; }
.lp-h2 { text-align: center; font-size: 28px; font-weight: 800; margin: 0 0 30px; }
.lp-feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lp-feat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; transition: .15s; }
.lp-feat:hover { border-color: rgba(45,212,191,.4); transform: translateY(-3px); }
.lp-feat-img { aspect-ratio: 16/10; overflow: hidden; }
.lp-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-feat h3 { margin: 16px 18px 6px; font-size: 17px; }
.lp-feat p { margin: 0 18px 18px; font-size: 13px; line-height: 1.7; color: #aab8c6; }
.lp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.lp-step { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 24px; }
.lp-step-no { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#2dd4bf,#38bdf8); color: #04222f; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.lp-step h3 { margin: 14px 0 6px; font-size: 16px; }
.lp-step p { margin: 0; font-size: 13px; line-height: 1.7; color: #aab8c6; }
.lp-tool { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px; max-width: 640px; margin: 0 auto; }
.lp-tool-ico { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px; background: linear-gradient(135deg,rgba(45,212,191,.25),rgba(56,189,248,.18)); color: #2dd4bf; display: flex; align-items: center; justify-content: center; }
.lp-tool-body { flex: 1; }
.lp-tool-body h3 { margin: 0 0 4px; font-size: 18px; }
.lp-tool-body p { margin: 0; font-size: 13px; color: #aab8c6; }
.lp-soon { text-align: center; color: #7e8a99; font-size: 12px; margin-top: 16px; }
.lp-final { text-align: center; padding: 60px 22px 40px; }
.lp-final h2 { font-size: 30px; font-weight: 900; margin: 0 0 24px; }
.lp-footer { text-align: center; color: #5d6b7a; font-size: 12px; padding: 28px; border-top: 1px solid rgba(255,255,255,.06); }
.lp-logo-ico .ico, .lp-tool-ico .ico { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; padding: 24px 18px; gap: 24px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-feat-grid, .lp-steps { grid-template-columns: 1fr; }
  .lp-tool { flex-direction: column; text-align: center; }
}

/* ===== ドロワー（スマホ） ===== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; }
.drawer-backdrop[hidden] { display: none; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background: var(--bg-elev);
  border-right: 1px solid var(--border); z-index: 46; padding: 16px 14px; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.drawer-nav { display: flex; flex-direction: column; gap: 3px; }
.drawer-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--text-dim); font-size: 15px; font-weight: 600; }
.drawer-nav a.active { background: var(--accent); color: #07221f; }

/* ===== 下タブ（スマホ） ===== */
.bottom-nav { display: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 880px) {
  .sidebar { display: none; }
  .only-mobile { display: inline-flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .view { padding: 16px 14px 92px; }
  .topbar { padding: 12px 14px; }
  .hero h2 { font-size: 20px; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); margin: -2px auto; }
  .flow-step { min-width: 0; }
  .device.pc { font-size: 11px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-elev);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 40; }
  .bottom-nav a, .bottom-nav button { flex: 1; background: none; border: none; color: var(--text-dim); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 5px 0; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav .bn-add .ico { color: var(--accent-2); }
}
