:root {
  --phi: 1.618;
  --bg: #0b0d18;
  --ink: #f4f6ff;
  --ink-2: rgba(244, 246, 255, .72);
  --ink-3: rgba(244, 246, 255, .48);
  --glass: rgba(255, 255, 255, .085);
  --glass-2: rgba(255, 255, 255, .14);
  --edge: rgba(255, 255, 255, .22);
  --hl: rgba(255, 255, 255, .55);
  --a1: #8fd3ff; --a2: #a98bff; --a3: #ff9ecf;
  --grad: linear-gradient(135deg, var(--a1), var(--a2) 61.8%, var(--a3));
  --r-s: 14px; --r-m: 22px; --r-l: 36px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(169, 139, 255, .45); }

/* ---------- 背景：流れる色 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; animation: drift 26s var(--ease) infinite alternate; }
.b1 { background: radial-gradient(circle, #3a7bff, transparent 62%); top: -18vmax; left: -12vmax; }
.b2 { background: radial-gradient(circle, #9b5cff, transparent 62%); top: 10vmax; right: -20vmax; animation-duration: 32s; animation-delay: -6s; }
.b3 { background: radial-gradient(circle, #ff5fa8, transparent 62%); bottom: -24vmax; left: 18vmax; animation-duration: 38s; animation-delay: -12s; opacity: .4; }
.b4 { background: radial-gradient(circle, #2fe0c8, transparent 62%); bottom: -10vmax; right: 10vmax; width: 32vmax; height: 32vmax; animation-duration: 22s; opacity: .3; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0); }
  50% { transform: translate3d(8vmax, 6vmax, 0) scale(1.15) rotate(40deg); }
  100% { transform: translate3d(-6vmax, 10vmax, 0) scale(.92) rotate(-20deg); }
}
.grain { position: absolute; inset: -50%; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { to { transform: translate(-6%, 4%); } }
.cursor-light { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 60%); transform: translate(-50%, -50%); transition: opacity .4s; left: var(--cx, -999px); top: var(--cy, -999px); }

/* ---------- 液体ガラス ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, var(--glass-2), var(--glass) 38.2%, rgba(255,255,255,.04));
  backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--hl), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 24px rgba(255,255,255,.05), 0 18px 50px -18px rgba(0,0,0,.55);
}
@supports (backdrop-filter: url(#lg-refract)) {
  .glass.refract { backdrop-filter: url(#lg-refract) blur(14px) saturate(185%); }
}
.glass::before { /* 光の反射（カーソルで動く） */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 30%) var(--my, -20%), rgba(255,255,255,.16), transparent 40%);
  transition: opacity .3s;
}
.glass::after { /* 縁の虹色 */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,0) 30%, rgba(169,139,255,.35) 61.8%, rgba(143,211,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7;
}
.glass-btn {
  cursor: pointer; border: 1px solid var(--edge); border-radius: 999px; padding: 10px 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--hl), 0 8px 24px -10px rgba(0,0,0,.6);
  transition: transform .5s var(--spring), background .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.glass-btn:hover { transform: translateY(-2px) scale(1.03); background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); }
.glass-btn:active { transform: scale(.96); transition-duration: .12s; }
.glass-btn.primary { background: var(--grad); color: #10122a; font-weight: 700; border-color: rgba(255,255,255,.5); }
.glass-btn.primary:hover { box-shadow: inset 0 1px 0 #fff, 0 12px 40px -8px rgba(169,139,255,.7); }
.glass-btn[disabled] { opacity: .5; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: ripple .7s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- 上の帯 ---------- */
.topbar { position: sticky; top: 14px; z-index: 20; margin: 14px auto 0; width: min(1180px, calc(100% - 28px)); display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 999px; animation: drop .9s var(--spring) both; }
@keyframes drop { from { transform: translateY(-40px) scale(.96); opacity: 0; } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 28px; transition: transform .8s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word { font-size: 17.3px; letter-spacing: .24em; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.nav { position: relative; display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.18); }
.nav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.nav a.active { color: var(--ink); }
.nav-pill { position: absolute; z-index: 0; top: 4px; height: calc(100% - 8px); border-radius: 999px; background: linear-gradient(160deg, rgba(255,255,255,.32), rgba(255,255,255,.1)); box-shadow: inset 0 1px 0 var(--hl); transition: left .6s var(--spring), width .6s var(--spring), opacity .3s; opacity: 0; }
.avatar { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; font-weight: 700; background-size: cover; background-position: center; }
.menu { background: linear-gradient(160deg, rgba(40,42,70,.92), rgba(22,24,44,.94)) !important; position: absolute; right: 8px; top: calc(100% + 10px); min-width: 220px; border-radius: var(--r-m); padding: 10px; transform-origin: top right; animation: pop .45s var(--spring); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.menu-email { font-size: 12px; color: var(--ink-2); padding: 6px 10px 10px; word-break: break-all; }
.menu-item { width: 100%; text-align: left; background: none; border: 0; padding: 10px; border-radius: 12px; cursor: pointer; }
.menu-item:hover { background: rgba(255,255,255,.1); }

/* ---------- 画面 ---------- */
.app { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 80px; }
.view-enter > * { animation: rise .8s var(--ease) both; }
.view-enter > *:nth-child(2) { animation-delay: .06s; }
.view-enter > *:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; filter: blur(8px); } }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.015); filter: blur(6px); } }

/* ログイン */
.login { min-height: calc(100vh - 56px); display: grid; place-items: center; }
.login-card { width: min(420px, 100%); border-radius: var(--r-l); padding: 48px 36px 36px; text-align: center; animation: float-in 1.1s var(--spring) both; }
@keyframes float-in { from { transform: translateY(40px) scale(.9) rotateX(12deg); opacity: 0; } }
.login-logo { width: 61.8%; margin: 0 auto 26px; display: block; filter: drop-shadow(0 12px 30px rgba(169,139,255,.45)); }
.login-logo .aj-spiral { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.login-word { font-size: 22px; letter-spacing: .3em; font-weight: 700; margin: 0 0 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; font-weight: 600; }
.gbtn svg { width: 20px; height: 20px; }
.login-err { color: #ffb3c8; font-size: 13px; margin-top: 16px; }
.dev-login { margin-top: 18px; font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dev-login a { padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.25); }
.pending-card { width: min(460px, 100%); border-radius: var(--r-l); padding: 40px; text-align: center; }
.pulse-ring { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169,139,255,.6); } 100% { box-shadow: 0 0 0 30px rgba(169,139,255,0); } }

/* 検索 */
.searchbar { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; padding: 10px; border-radius: var(--r-l); margin-bottom: 16px; }
.field { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 12px 18px; outline: none; transition: border-color .3s, box-shadow .3s, background .3s; min-width: 0; }
.field:focus { border-color: rgba(169,139,255,.8); box-shadow: 0 0 0 4px rgba(169,139,255,.2); background: rgba(0,0,0,.3); }
select.field { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field option { background: #1a1c2e; }
textarea.field { border-radius: var(--r-m); resize: vertical; min-height: 140px; line-height: 1.7; }
.search-wrap { position: relative; }
.search-wrap .field { width: 100%; padding-left: 44px; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; opacity: .6; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { cursor: pointer; border-radius: 999px; padding: 8px 16px; font-size: 13px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); transition: all .45s var(--spring); display: inline-flex; gap: 8px; align-items: center; }
.chip b { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.chip.on { background: var(--grad); color: #10122a; border-color: transparent; transform: scale(1.05); }
.chip.on b { color: rgba(16,18,42,.6); }
.count { color: var(--ink-3); font-size: 13px; margin: 0 0 14px 6px; }
.count strong { color: var(--ink); font-size: 20px; margin-right: 4px; font-variant-numeric: tabular-nums; }

/* カード */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; perspective: 1200px; }
.card { border-radius: var(--r-m); padding: 22px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transform-style: preserve-3d; transition: transform .6s var(--spring), box-shadow .4s; opacity: 0; transform: translateY(30px) scale(.97); }
.card.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--spring), box-shadow .4s; transition-delay: calc(var(--i, 0) * 55ms); }
.card.in:hover { box-shadow: inset 0 1px 0 var(--hl), 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.2); transition-delay: 0s; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.card .co { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.salary { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.salary small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.meta span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.fee { margin-left: auto; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(143,211,255,.14); color: var(--a1); border: 1px solid rgba(143,211,255,.3); white-space: nowrap; }
.fav { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); transition: transform .5s var(--spring), background .3s; position: relative; }
.fav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; transition: all .4s var(--spring); }
.fav:hover { transform: scale(1.12); }
.fav.on svg { fill: var(--a3); stroke: var(--a3); transform: scale(1.1); }
.fav.burst::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--a3); animation: burst .6s var(--ease) forwards; }
@keyframes burst { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.empty { text-align: center; padding: 70px 20px; border-radius: var(--r-l); color: var(--ink-2); }
.empty-orb { width: 90px; height: 90px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad); opacity: .7; animation: morph 6s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 61% 39% / 45% 38% 62% 55%; transform: rotate(0); } 50% { border-radius: 61% 39% 38% 62% / 58% 61% 39% 42%; transform: rotate(120deg); } }

/* 詳細 */
.detail { display: grid; grid-template-columns: 1.618fr 1fr; gap: 18px; align-items: start; }
.panel { border-radius: var(--r-l); padding: 30px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); margin-bottom: 16px; padding: 8px 14px 8px 10px; }
.back:hover { color: var(--ink); }
.detail h1 { font-size: 28px; margin: 0 0 8px; line-height: 1.4; }
.detail .salary { font-size: 36px; margin: 18px 0 14px; }
.sec { margin-top: 26px; }
.sec h2 { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); margin: 0 0 10px; font-weight: 600; }
.sec p { margin: 0; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.ai-out { min-height: 120px; line-height: 1.9; white-space: pre-wrap; color: var(--ink); font-size: 14px; }
.ai-out .caret { display: inline-block; width: 2px; height: 1em; background: var(--a2); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-src { font-size: 11px; color: var(--ink-3); margin-top: 10px; }
.ai-src.warn { color: #ffcf8f; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-btn { font-size: 13px; padding: 8px 14px; }

/* AIマッチ */
.match { display: grid; grid-template-columns: 1fr 1.618fr; gap: 18px; align-items: start; }
.match .panel h2 { margin: 0 0 14px; font-size: 16px; }
.orbit { position: relative; width: 120px; height: 120px; margin: 40px auto; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--a1); animation: spin 1.4s linear infinite; }
.orbit i:nth-child(2) { inset: 16px; border-top-color: var(--a2); animation-duration: 1.1s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: 32px; border-top-color: var(--a3); animation-duration: .8s; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r-m); margin-bottom: 12px; cursor: pointer; animation: rise .7s var(--ease) both; transition: transform .5s var(--spring); }
.result:hover { transform: translateX(6px); }
.score { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; background: conic-gradient(var(--a2) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #171a2e; }
.score span { position: relative; }
.result h3 { margin: 0 0 4px; font-size: 15px; }
.result p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 管理 */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.paper-re { margin: 0 0 8px; font-size: 12px; color: #b45309; }
.tab { flex-shrink: 0; border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: all .4s var(--spring); }
.tab.on { background: rgba(255,255,255,.18); color: var(--ink); box-shadow: inset 0 1px 0 var(--hl); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-3); }
.form .full { grid-column: 1 / -1; }
.form .field { border-radius: var(--r-s); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.table th { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.badge.approved, .badge.open { background: rgba(47,224,200,.16); color: #7ff0dc; }
.badge.pending { background: rgba(255,207,143,.16); color: #ffcf8f; }
.badge.rejected, .badge.closed { background: rgba(255,120,150,.16); color: #ff9fb6; }
.mini { padding: 6px 12px; font-size: 12px; }

/* ---------- 全画面スケルトン ---------- */
.skeleton { position: fixed; inset: 0; z-index: 50; background: var(--bg); padding: 14px; display: flex; flex-direction: column; align-items: center; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); overflow: hidden; }
.skeleton.show { opacity: 1; pointer-events: auto; }
.skeleton .bg-s { position: absolute; inset: 0; background: radial-gradient(60vmax 60vmax at 10% 0%, rgba(58,123,255,.25), transparent 60%), radial-gradient(50vmax 50vmax at 100% 40%, rgba(155,92,255,.22), transparent 60%); }
.skw { position: relative; width: min(1180px, 100%); }
.sk { position: relative; overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.14) 42%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.14) 58%, transparent 80%); animation: shimmer 1.5s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-bar { height: 60px; border-radius: 999px; margin-bottom: 28px; }
.sk-search { height: 64px; border-radius: 36px; margin-bottom: 16px; }
.sk-chips { display: flex; gap: 8px; margin-bottom: 22px; }
.sk-chips .sk { height: 34px; width: 90px; border-radius: 999px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.sk-card { height: 210px; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.sk-card::after { animation-delay: calc(var(--i) * 90ms); }
.sk-line { height: 14px; border-radius: 8px; background: rgba(255,255,255,.09); }
.sk-detail { display: grid; grid-template-columns: 1.618fr 1fr; gap: 18px; }
.sk-login { position: absolute; inset: 0; display: grid; place-items: center; }

/* トースト */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; padding: 12px 22px; border-radius: 999px; font-size: 14px; transform: translate(-50%, 160%) scale(.9); opacity: 0; transition: transform .6s var(--spring), opacity .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 860px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .search-wrap { grid-column: 1 / -1; }
  .detail, .match, .sk-detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .brand-word { display: none; }
  .nav a { padding: 8px 11px; }
  .form { grid-template-columns: 1fr; }
  .grid, .sk-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* プライバシーポリシー */
.legal { max-width: 760px; margin: 28px auto; line-height: 1.9; }
.legal h1 { font-size: 24px; margin: 26px 0 14px; }
.legal h2 { font-size: 15px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 14px; }
.legal a:not(.brand) { color: var(--a1); text-decoration: underline; }
.legal-date { margin-top: 28px; color: var(--ink-3) !important; }
.login-foot { margin-top: 22px; font-size: 12px; }
.login-foot a { color: var(--ink-3); text-decoration: underline; }
.ai-note { font-size: 11px; color: var(--ink-3); margin: 6px 4px 12px; line-height: 1.6; }
.grp { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.grp-h { margin: 0 0 4px; font-size: 13px; letter-spacing: .18em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grp .sec { margin-top: 16px; }
a.ext { color: var(--a1); text-decoration: underline; word-break: break-all; }

/* ---------- 世界一に近づけるための追加 ---------- */
.foot { text-align: center; font-size: 11px; color: var(--ink-3); padding: 0 16px 40px; line-height: 1.8; }
.foot a { color: var(--ink-3); text-decoration: underline; }
.new { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; background: var(--grad); color: #10122a; animation: shine 2.4s ease-in-out infinite; }
@keyframes shine { 50% { filter: brightness(1.25) drop-shadow(0 0 8px rgba(169,139,255,.7)); } }
.saved-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.saved-row .count { margin: 0 0 0 6px; }
.saved { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.saved-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; font-size: 12px; }
.saved-chip .x { font-style: normal; opacity: .5; padding: 0 4px; cursor: pointer; }
.saved-chip .x:hover { opacity: 1; }
.badge-new { min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: var(--a3); color: #2a0b1c; animation: pop .5s var(--spring); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 16px; }
.stats div { border-radius: 16px; padding: 10px 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats b.upd { font-size: 13px; padding-top: 6px; }
.stats span { font-size: 11px; color: var(--ink-3); }
.rec-btn { width: 100%; padding: 16px; font-size: 16px; }
.rec-btn small { font-weight: 500; opacity: .7; margin-left: 6px; }
.qa-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.qa-item.pop { animation: rise .6s var(--ease); }
.qa-item .q { margin: 0 0 6px; font-weight: 600; }
.qa-item .a { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.qa-item .a.wait { color: #ffcf8f; font-size: 12px; }
.qa-empty { color: var(--ink-3); font-size: 13px; }
.qa-form { display: flex; gap: 8px; margin-top: 14px; }
.qa-form .field { flex: 1; }
.sheet-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(5,6,14,0); backdrop-filter: blur(0); transition: background .45s var(--ease), backdrop-filter .45s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap.open { background: rgba(5,6,14,.55); backdrop-filter: blur(6px); }
.sheet { width: min(720px, 100%); max-height: 92vh; overflow: auto; border-radius: 36px 36px 0 0; padding: 26px; transform: translateY(105%); transition: transform .6s var(--spring); background: linear-gradient(160deg, rgba(40,42,72,.9), rgba(18,20,38,.94)) !important; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.sheet-h h2 { margin: 4px 0 0; font-size: 18px; }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.form .check input { width: 18px; height: 18px; accent-color: var(--a2); }
.check-box { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.05); animation: rise .5s var(--ease); }
.check-box p { margin: 2px 0; font-size: 13px; }
.check-box .ok { color: #7ff0dc; } .check-box .ng { color: #ffcf8f; }
.rec { grid-template-columns: 70px 1fr auto; }
.rec-who b { display: block; font-size: 18px; } .rec-who span { font-size: 12px; color: var(--ink-3); }
.stage { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.stage span { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ink-3); transition: all .5s; }
.stage span.done { background: rgba(169,139,255,.25); color: var(--ink); }
.stage span.now { background: var(--grad); color: #10122a; font-weight: 700; animation: pop .6s var(--spring); }
.stage.ended span.done { background: rgba(255,255,255,.08); color: var(--ink-3); }
.stage span.end { background: rgba(255,120,150,.25) !important; color: #ffb3c8 !important; }
.st-pill { font-size: 12px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.st-a { background: rgba(143,211,255,.16); color: var(--a1); } .st-b { background: rgba(169,139,255,.2); color: #cdbbff; }
.st-c { background: rgba(47,224,200,.18); color: #7ff0dc; } .st-x { background: rgba(255,120,150,.16); color: #ff9fb6; }
.adm-rec { margin-bottom: 12px; padding: 18px 22px; }
.adm-rec .row { gap: 10px; } .adm-rec .co { font-size: 12px; }
.adm-p { margin: 10px 0; color: var(--ink-2); font-size: 13px; white-space: pre-wrap; line-height: 1.7; }
.mini-f { padding: 8px 14px; border-radius: 12px; font-size: 13px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .rec { grid-template-columns: 1fr; } .nav a { padding: 8px 8px; font-size: 13px; } }
@media (max-width: 860px) {
  .rec-btn { position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: auto; z-index: 30; box-shadow: 0 18px 40px -10px rgba(169,139,255,.7); animation: rise .8s var(--spring) both; }
  .detail { padding-bottom: 80px; }
}

/* ---------- 2026-11-23 追加：知らせ・添付・公開範囲・お金・印刷 ---------- */
.bell { position: relative; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; margin-left: 0; }
.bell svg { width: 20px; height: 20px; }
.bell.ring svg { animation: ring 1s var(--spring); transform-origin: 50% 8%; }
@keyframes ring { 0%,100% { transform: rotate(0) } 20% { transform: rotate(16deg) } 40% { transform: rotate(-13deg) } 60% { transform: rotate(8deg) } 80% { transform: rotate(-4deg) } }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #10122a; font-size: 10px; font-weight: 800; display: grid; place-items: center; animation: pop .5s var(--spring); }
.topbar .avatar { margin-left: 0; }
.notif { background: linear-gradient(160deg, rgba(40,42,70,.94), rgba(22,24,44,.96)) !important; position: absolute; right: 56px; top: calc(100% + 10px); width: min(380px, calc(100vw - 28px)); max-height: 70vh; overflow: auto; border-radius: var(--r-m); padding: 12px; transform-origin: top right; animation: pop .45s var(--spring); }
.notif-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 10px; font-size: 14px; }
.notif-mail { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.notif-mail input { accent-color: var(--a2); }
.notif-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; font-size: 13px; color: var(--ink-2); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); transition: background .3s; }
.notif-item:hover { background: rgba(255,255,255,.07); }
.notif-item b { color: var(--ink); font-weight: 600; }
.notif-item.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--a3); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 10px var(--a3); }
.notif-item small { color: var(--ink-3); font-size: 11px; }
.notif-empty { color: var(--ink-3); font-size: 13px; text-align: center; padding: 24px 0; margin: 0; }

.tag-lim, .tag-ng { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; margin: 0 6px 6px 0; vertical-align: middle; }
.tag-lim { background: rgba(169,139,255,.22); color: #d6c9ff; border: 1px solid rgba(169,139,255,.4); }
.tag-ng { background: rgba(255,120,150,.16); color: #ffb3c5; border: 1px solid rgba(255,120,150,.35); }
.has-wm { position: relative; overflow: hidden; }
.wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 70px 60px; padding: 40px; transform: rotate(-18deg) scale(1.3); opacity: .06; font-size: 13px; z-index: 0; user-select: none; }
.has-wm > :not(.wm) { position: relative; z-index: 1; }
.ng-note { font-size: 12px; color: #ffb3c5; background: rgba(255,120,150,.1); border: 1px solid rgba(255,120,150,.25); border-radius: 14px; padding: 10px 14px; margin: 14px 0 0; }

.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--edge); animation: pop .4s var(--spring); }
.file-chip a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.file-chip svg, .add-file svg { width: 14px; height: 14px; }
.file-chip small { color: var(--ink-3); }
.file-chip .x { cursor: pointer; color: var(--ink-3); font-style: normal; padding: 0 2px; }
.file-chip .x:hover { color: #ff9fb6; }
.add-file { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.payout { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(47,224,200,.07); border: 1px solid rgba(47,224,200,.2); font-size: 13px; color: var(--ink-2); }
.payout b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.payout .warn, .warn { color: #ffcf8f; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 6px; animation: rise .7s var(--ease) both; }
.kpi span { font-size: 12px; color: var(--ink-3); }
.kpi b { font-size: 22px; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.money { margin-bottom: 14px; display: grid; gap: 14px; }
.m-grid { grid-template-columns: repeat(3, 1fr); }
.m-grid h4 { margin: 8px 0 -4px; font-size: 12px; letter-spacing: .16em; color: var(--ink-3); font-weight: 600; }
.m-calc { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.m-calc small { font-size: 11px; color: var(--ink-3); }
.ag-pick { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); }

/* 印刷用の紙 */
body.printing .bg, body.printing .foot, body.printing #cursor-light { display: none; }
body.printing { background: #e9eaf0; }
.print-bar .glass-btn:not(.primary) { color: #222; background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.15); }
.print-bar { display: flex; gap: 10px; justify-content: space-between; width: min(800px, 100%); margin: 20px auto 12px; }
.paper { background: #fff; color: #111; width: min(800px, 100%); margin: 0 auto 40px; padding: 56px 60px; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.25); font-size: 13px; line-height: 1.7; animation: rise .7s var(--ease) both; }
.paper-h { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #111; padding-bottom: 12px; }
.paper-h h1 { margin: 0; font-size: 26px; letter-spacing: .4em; }
.paper-no { text-align: right; font-size: 12px; color: #444; }
.paper-2 { display: grid; grid-template-columns: 1.618fr 1fr; gap: 24px; margin: 26px 0; }
.paper-to b { font-size: 17px; border-bottom: 1px solid #111; padding-bottom: 2px; }
.paper-from { font-size: 12px; color: #333; }
.paper-total { display: flex; justify-content: space-between; align-items: baseline; background: #f2f3f7; padding: 14px 18px; border-radius: 4px; }
.paper-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.paper-t { width: 100%; border-collapse: collapse; margin: 22px 0; }
.paper-t th, .paper-t td { border-bottom: 1px solid #ddd; padding: 9px 6px; text-align: left; }
.paper-t td:last-child, .paper-t th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper-t .sum td { font-weight: 700; border-bottom: 2px solid #111; }
.paper-dl { display: grid; grid-template-columns: 8em 1fr; gap: 8px 12px; margin: 0; }
.paper-dl dt { color: #555; } .paper-dl dd { margin: 0; }
.paper .warn { color: #b45309; }
@media print {
  body.printing { background: #fff; }
  .print-bar, .topbar, .toast, #skeleton { display: none !important; }
  .paper { box-shadow: none; margin: 0; width: 100%; padding: 0; animation: none; }
  .app { padding: 0 !important; margin: 0 !important; }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .m-grid { grid-template-columns: 1fr 1fr; }
  .notif { right: 8px; }
  .paper { padding: 28px 22px; }
  .paper-2 { grid-template-columns: 1fr; }
}
.bell, .avatar, .brand { flex-shrink: 0; }
@media (max-width: 860px) {
  .topbar { gap: 8px; padding: 8px 8px 8px 12px; }
  .nav { min-width: 0; flex-shrink: 1; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 9px; font-size: 12.5px; }
  .bell, .avatar { width: 36px; height: 36px; }
}
@media (max-width: 860px) { .sk-detail { grid-template-columns: 1fr !important; } }
