/* KEN OFFICE SYSTEM PWAランチャー — 既存システムの配色（--navy #142c3e / --bg #f3f6f9）に合わせる */
:root{--ink:#172e40;--muted:#637384;--line:#dfe5eb;--accent:#245b7b;--bg:#f3f6f9;--navy:#142c3e}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--ink);
  font:15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.shell{max-width:560px;margin:0 auto;padding:24px 16px 32px;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center}
.view{display:flex;flex-direction:column;gap:16px}
.view[hidden]{display:none}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 20px;box-shadow:0 10px 40px #142c3e14}
.center{text-align:center}
.logo{display:block;margin:0 auto 8px;border-radius:22%;border:1px solid var(--line)}
h1{font-size:22px;line-height:1.3;margin:8px 0 6px;color:var(--navy);letter-spacing:.02em}
h2{font-size:16px;margin:0;color:var(--navy)}
p{margin:8px 0}
.lead{color:var(--muted);margin-bottom:18px}
.note{font-size:13px;color:var(--muted)}
.en{font-size:13px;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 22px;border-radius:10px;border:0;
  font:inherit;font-weight:700;text-decoration:none;cursor:pointer;width:100%;max-width:360px;margin:10px auto 4px}
.btn.primary{background:var(--navy);color:#fff}
.btn.primary:hover{background:#1d3d55}
.btn:focus-visible,.close:focus-visible,.linkish:focus-visible{outline:3px solid #6aa7d0;outline-offset:2px}
.install-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.close{border:0;background:transparent;font-size:22px;line-height:1;width:40px;height:40px;border-radius:8px;color:var(--muted);cursor:pointer}
.close:hover{background:var(--bg)}
.install ol{margin:8px 0;padding-inline-start:1.4em}
.install li{margin:4px 0}
.guide[hidden]{display:none}
.footer{text-align:center;margin:4px 0 0}
.linkish{border:0;background:none;color:var(--accent);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;padding:8px}
/* 起動中（既存の読み込み画面と同じ雰囲気） */
.kos-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#3d5568;text-align:center;min-height:60vh}
.kos-char{width:168px;height:168px;border-radius:22%;animation:kos-bow 2.4s ease-in-out infinite;transform-origin:50% 90%;box-shadow:0 10px 40px #142c3e1f}
.kos-loader-text{font-size:15px;font-weight:600;letter-spacing:.06em;margin-top:10px}
.kos-loader .sub{font-size:12px;color:var(--muted);max-width:320px}
.kos-dots{display:inline-flex;gap:3px;margin-inline-start:4px}
.kos-dots i{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.25;animation:kos-dot 1.2s infinite}
.kos-dots i:nth-child(2){animation-delay:.2s}.kos-dots i:nth-child(3){animation-delay:.4s}
@keyframes kos-bow{0%,100%{transform:rotate(0)}50%{transform:rotate(-4deg) translateY(-3px)}}
@keyframes kos-dot{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.kos-char,.kos-dots i{animation:none}.kos-dots i{opacity:.7}}
