/* あさひかわVASE 会員アプリの見た目。色・角丸・影・書体はすべて :root の変数（ダークモードは同じ変数を切り替える）
   前半は試作 prototype/index.html の CSS をそのまま移植。後半は本実装で足した部品 */
/* Layout: app shell. Desktop = glass rail on the left + content column; phone = content + floating glass tab bar. Sheets slide over everything. */
:root{
  --sky:#82CAD1; --sky-deep:#5FAEB7; --sky-light:#DFF1F2; --cream:#FBF6E8;
  --navy:#1E2538; --orange:#FD843A; --orange-ink:#B8541A; --yellow:#F2DF4B; --pink:#F08AA6;
  --bg:#E9F4F5; --surface:#FFFFFF; --surface-2:#F4FAFA; --text:#1E2538; --muted:#5B6578; --line:rgba(30,37,56,.10);
  --glass:rgba(255,255,255,.62); --glass-edge:rgba(255,255,255,.9); --glass-shade:rgba(30,37,56,.08);
  --ok:#2F7D5B; --warn:#A8670F; --danger:#B8443A; --cork:#C49A6C;
  --radius-l:26px; --radius-m:18px; --radius-s:12px;
  --shadow:0 10px 30px rgba(30,37,56,.10);
  --jp:"Zen Kaku Gothic New","Hiragino Sans","Noto Sans JP",system-ui,sans-serif;
  --round:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Maru Gothic ProN",sans-serif;
  --en:"Archivo","Helvetica Neue",Arial,sans-serif;
  --pixel:"DotGothic16","Zen Kaku Gothic New",monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#121725; --surface:#1B2234; --surface-2:#20283C; --text:#EEF3F7; --muted:#A7B1C2; --line:rgba(255,255,255,.10);
  --glass:rgba(30,37,56,.62); --glass-edge:rgba(255,255,255,.16); --glass-shade:rgba(0,0,0,.3);
  --sky-light:#203440; --cream:#2A2A26; --orange-ink:#FFA36B; --ok:#62C496; --warn:#E8B14A; --danger:#F07A6E; --cork:#6E5640;
  --shadow:0 10px 30px rgba(0,0,0,.35); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#121725; --surface:#1B2234; --surface-2:#20283C; --text:#EEF3F7; --muted:#A7B1C2; --line:rgba(255,255,255,.10);
  --glass:rgba(30,37,56,.62); --glass-edge:rgba(255,255,255,.16); --glass-shade:rgba(0,0,0,.3);
  --sky-light:#203440; --cream:#2A2A26; --orange-ink:#FFA36B; --ok:#62C496; --warn:#E8B14A; --danger:#F07A6E; --cork:#6E5640;
  --shadow:0 10px 30px rgba(0,0,0,.35); color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:500 15px/1.7 var(--jp);font-feature-settings:"palt";letter-spacing:.01em;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--bg)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.num{font-family:var(--en);font-variant-numeric:tabular-nums}
.glass{background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
  border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-edge),0 12px 32px var(--glass-shade)}

/* background aura */
.aura{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(60% 50% at 10% 0%,color-mix(in srgb,var(--sky) 45%,transparent),transparent 70%),
             radial-gradient(50% 40% at 100% 20%,color-mix(in srgb,var(--yellow) 22%,transparent),transparent 70%),
             radial-gradient(60% 50% at 80% 100%,color-mix(in srgb,var(--sky) 30%,transparent),transparent 70%)}

/* demo bar */
.demo{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;
  padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));
  background:var(--navy);color:#fff;font-size:12.5px}
.demo b{font:400 12px/1 var(--pixel);letter-spacing:.12em;color:var(--yellow)}
.demo .seg{display:flex;flex-wrap:wrap;gap:4px}
.demo button{border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;border-radius:999px;padding:4px 10px;cursor:pointer;font-size:12.5px}
.demo button[aria-pressed="true"]{background:var(--orange);border-color:var(--orange);color:var(--navy);font-weight:900}

/* shell */
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100% - 44px)}
.rail{position:sticky;top:calc(44px + env(safe-area-inset-top,0px));height:calc(100vh - 44px);padding:18px 14px 18px max(14px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:6px}
.rail .panel{border-radius:var(--radius-l);padding:16px 10px;display:flex;flex-direction:column;gap:4px;height:100%}
.brand{display:flex;flex-direction:column;padding:4px 12px 14px}
.brand small{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--muted)}
.brand b{font:900 21px/1.2 var(--round)}
.brand b span{color:var(--orange)}
.nav{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;border:0;background:none;cursor:pointer;text-align:left;font-weight:700;font-size:15px;color:var(--text);transition:background .2s,transform .2s}
.nav svg{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav:hover{background:var(--line)}
.nav[aria-current="page"]{background:var(--navy);color:#fff}
.nav .badge{margin-left:auto}
.rail .sep{height:1px;background:var(--line);margin:8px 10px}
.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:var(--surface-2)}
.me small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.main{min-width:0;padding-block:28px 120px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
.wrap{max-width:1040px;margin:0 auto}
.tabbar{display:none}

/* type */
.eyebrow{font:400 12px/1 var(--pixel);letter-spacing:.14em;color:var(--orange-ink);margin-bottom:8px}
h1.t{margin:0 0 6px;font:900 clamp(26px,3.4vw,34px)/1.3 var(--round);text-wrap:balance}
.sub{margin:0 0 22px;color:var(--muted)}
h2.s{margin:0 0 12px;font:900 19px/1.4 var(--round);display:flex;align-items:center;gap:10px}
h2.s a,h2.s button{margin-left:auto;font:700 13px/1 var(--jp);color:var(--orange-ink);background:none;border:0;cursor:pointer}
h3{margin:0;font-weight:900;font-size:16px;line-height:1.5}

/* blocks */
.card{background:var(--surface);border-radius:var(--radius-l);padding:20px;box-shadow:var(--shadow)}
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.stack{display:flex;flex-direction:column;gap:14px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.muted{color:var(--muted)}
.small{font-size:13px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:900;background:var(--sky-light);color:var(--text);white-space:nowrap}
.pill.o{background:color-mix(in srgb,var(--orange) 22%,var(--surface));color:var(--orange-ink)}
.pill.ok{background:color-mix(in srgb,var(--ok) 16%,var(--surface));color:var(--ok)}
.pill.warn{background:color-mix(in srgb,var(--warn) 16%,var(--surface));color:var(--warn)}
.pill.dg{background:color-mix(in srgb,var(--danger) 14%,var(--surface));color:var(--danger)}
.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--orange);color:var(--navy);font:800 12px/20px var(--en);text-align:center}
.btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:11px 20px;border:1.5px solid var(--line);background:var(--surface);font-weight:900;font-size:14.5px;cursor:pointer;transition:transform .18s ease,background .2s;text-decoration:none;color:var(--text)}
.btn:active{transform:scale(.97)}
.btn.p{background:var(--orange);border-color:var(--orange);color:var(--navy);box-shadow:0 10px 22px color-mix(in srgb,var(--orange) 35%,transparent)}
.btn.n{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.ghost{background:transparent}
.btn.s{padding:7px 14px;font-size:13px}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.link{background:none;border:0;color:var(--orange-ink);font-weight:900;cursor:pointer;padding:0}
input.f,select.f,textarea.f{width:100%;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface-2);font-size:15px;outline:none;transition:border .2s}
input.f:focus,select.f:focus,textarea.f:focus{border-color:var(--sky-deep)}
textarea.f{min-height:96px;resize:vertical}
label.l{display:block;font-weight:900;font-size:13.5px;margin-bottom:6px}
label.l small{font-weight:500;color:var(--muted);margin-left:6px}
.field{display:flex;flex-direction:column}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:7px 13px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;font-weight:700;font-size:13.5px}
.chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}

/* home */
.hero{border-radius:var(--radius-l);padding:22px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:center;
  background:linear-gradient(140deg,var(--sky),var(--sky-deep));color:var(--navy);box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero h2{margin:0;font:900 clamp(22px,3vw,28px)/1.35 var(--round)}
.hero .state{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.7);font-weight:900;font-size:13px;margin-bottom:10px}
.dot{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px color-mix(in srgb,var(--ok) 25%,transparent)}
.hero .glass{border-radius:22px;padding:16px;color:var(--navy);background:rgba(255,255,255,.55)}
.bignum{font:800 44px/1 var(--en);font-variant-numeric:tabular-nums}
.who{display:flex;margin-top:8px}
.who .av{margin-left:-8px;border:2px solid var(--surface)}
.who .av:first-child{margin-left:0}
.av{width:34px;height:34px;border-radius:50%;overflow:hidden;flex:none;display:grid;place-items:center;font:800 12px/1 var(--en);color:#fff}
.av.lg{width:64px;height:64px;font-size:20px}
.av.xl{width:96px;height:96px;font-size:28px}
.av.blur{position:relative}
.av.blur::after{content:"";position:absolute;inset:0;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}

/* quest board */
.board{border-radius:var(--radius-l);padding:22px;background:var(--cork);
  background-image:radial-gradient(rgba(255,255,255,.10) 1.4px,transparent 2px),radial-gradient(rgba(0,0,0,.08) 1px,transparent 1.6px);background-size:14px 14px,9px 9px;background-position:0 0,4px 6px;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px 18px}
.qc{position:relative;background:#FFFDF6;color:#1E2538;padding:22px 16px 14px;border-radius:6px;box-shadow:0 10px 18px rgba(30,37,56,.22);transform:rotate(var(--r,0deg));cursor:pointer;border:0;text-align:left;transition:transform .2s cubic-bezier(.2,1.4,.4,1)}
.qc:hover{transform:rotate(0deg) translateY(-4px)}
.qc::before{content:"";position:absolute;left:50%;top:-8px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--orange);border:2px solid #1E2538}
.qc.group{background:#FFF8D6}
.qc .tag{font:400 11px/1 var(--pixel);color:#B8541A;letter-spacing:.1em}
.qc b{display:block;margin:8px 0 6px;font-size:15.5px;line-height:1.5}
.qc .meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:#5B6578}
.qc .slot{font:800 12px/1 var(--en)}
.filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:12px}
.search{position:relative}
.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2}
.search input{padding-left:42px}
.quota{display:flex;align-items:center;gap:10px;font-weight:900;font-size:13.5px}
.quota i{display:inline-block;width:22px;height:8px;border-radius:4px;background:var(--line)}
.quota i.on{background:var(--orange)}
.empty{grid-column:1/-1;text-align:center;color:#fff;font-weight:900;padding:30px}

/* company */
.co{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:start;cursor:pointer;border:0;text-align:left;width:100%}
.logo{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;font:900 26px/1 var(--round);color:#fff}
.cover{border-radius:var(--radius-l);height:200px;display:flex;align-items:flex-end;padding:22px;color:#fff;position:relative;overflow:hidden}
.cover h1{margin:0;font:900 clamp(24px,3.6vw,34px)/1.3 var(--round);text-shadow:0 2px 12px rgba(0,0,0,.25)}
.video{aspect-ratio:16/9;max-width:100%;border-radius:var(--radius-m);background:linear-gradient(135deg,#2A3550,#1E2538);display:grid;place-items:center;color:#fff;position:relative;overflow:hidden}
.video button{width:66px;height:66px;border-radius:50%;border:0;background:rgba(255,255,255,.85);cursor:pointer;display:grid;place-items:center}
.video span{position:absolute;left:14px;bottom:12px;font-size:12.5px;font-weight:700;opacity:.85}
.sns{display:flex;flex-wrap:wrap;gap:8px}
.sns a{padding:7px 12px;border-radius:999px;background:var(--surface-2);font-weight:900;font-size:13px;color:var(--text);text-decoration:none;border:1px solid var(--line)}

/* people */
.pc{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.pc .nm{font:800 22px/1 var(--en);letter-spacing:.06em}

/* messages */
.thread{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow:auto;padding:4px}
.msg{max-width:78%;padding:10px 14px;border-radius:18px;background:var(--surface-2);font-size:14.5px;line-height:1.65}
.msg.me{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:6px}
.msg.them{border-bottom-left-radius:6px}
.msg.sys{align-self:center;background:transparent;color:var(--muted);font-size:12.5px;max-width:100%}
.msg.ai{background:var(--sky-light)}
.composer{display:flex;gap:8px;margin-top:10px}
.composer input{flex:1}
.prop{border:1.5px dashed var(--sky-deep);border-radius:16px;padding:12px 14px;background:var(--surface)}

/* admin */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kpi small{display:block;color:var(--muted);font-weight:700;font-size:12.5px}
.kpi b{font:800 34px/1.1 var(--en);font-variant-numeric:tabular-nums}
.bars{display:flex;flex-direction:column;gap:10px}
.bar{display:grid;grid-template-columns:7.5em minmax(0,1fr) 2.5em;gap:10px;align-items:center;font-size:13.5px;font-weight:700}
.bar .tr{height:14px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.bar .tr span{display:block;height:100%;border-radius:999px;background:var(--sky-deep)}
.bar b{font:800 14px/1 var(--en);text-align:right}
table.t{width:100%;border-collapse:collapse;font-size:14px}
table.t th{text-align:left;font-size:12px;color:var(--muted);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--line)}
table.t td.w{min-width:16em}
table.t td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.tablewrap{overflow-x:auto;position:relative}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cal .h{text-align:center;font-size:12px;color:var(--muted);font-weight:700}
.cal button{aspect-ratio:1;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;font:700 14px/1 var(--en);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0}
.cal button small{font:700 9.5px/1 var(--jp)}
.cal button.open{background:color-mix(in srgb,var(--sky) 35%,var(--surface));border-color:var(--sky-deep)}
.cal button.closed{color:var(--muted)}
.cal button.today{outline:2px solid var(--orange);outline-offset:1px}
.cal .pad{visibility:hidden}
.qr{width:200px;height:200px;max-width:100%;border-radius:16px;background:#fff;padding:12px}
.notif{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.notif:last-child{border-bottom:0}
.notif i{width:10px;height:10px;border-radius:50%;background:var(--orange);margin-top:8px;flex:none}

/* register */
.steps{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.steps span{padding:6px 12px;border-radius:999px;font-size:12.5px;font-weight:900;background:var(--surface);color:var(--muted)}
.steps span.on{background:var(--navy);color:#fff}
.steps span.done{background:var(--sky-light);color:var(--text)}
.types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.type{padding:18px;border-radius:20px;border:2px solid var(--line);background:var(--surface);cursor:pointer;text-align:left}
.type[aria-pressed="true"]{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 8%,var(--surface))}
.type small{display:block;color:var(--muted);font-size:12.5px;margin-top:4px}
.type .fee{font:800 13px/1 var(--en);color:var(--orange-ink);margin-top:10px;display:block}
.amount{display:flex;align-items:baseline;gap:8px}
.amount input{font:800 30px/1 var(--en);width:9ch;padding:8px 12px}
.slider{width:100%;accent-color:var(--orange)}
.note{padding:12px 14px;border-radius:14px;background:var(--sky-light);font-size:13.5px}

/* sheet & toast */
.scrim{position:fixed;inset:0;z-index:70;background:rgba(18,23,37,.35);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-end;justify-content:center;
  padding:16px max(16px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
@media (min-width:760px){.scrim{align-items:center}}
.sheet{width:min(640px,100%);max-height:calc(100% - 20px);overflow:auto;border-radius:30px;padding:24px;animation:up .32s cubic-bezier(.2,1.1,.3,1)}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.sheet .x{float:right;width:38px;height:38px;border-radius:50%;border:0;background:var(--line);cursor:pointer;font-size:18px}
.toast{position:fixed;z-index:80;left:50%;transform:translateX(-50%);top:calc(56px + env(safe-area-inset-top,0px));padding:12px 18px;border-radius:18px;font-weight:900;font-size:14px;max-width:calc(100% - 32px);text-align:center}
.lock{border:1.5px dashed var(--line);border-radius:var(--radius-l);padding:28px;text-align:center}

/* responsive */
@media (max-width:980px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(2,minmax(0,1fr))}.types{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .shell{grid-template-columns:1fr}
  .rail{display:none}
  .main{padding-block:18px calc(120px + env(safe-area-inset-bottom,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .tabbar{display:flex;position:fixed;z-index:55;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));border-radius:28px;padding:6px;justify-content:space-around}
  .tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:8px 2px;border-radius:20px;font-size:10.5px;font-weight:900;color:var(--muted);cursor:pointer;position:relative}
  .tabbar button svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .tabbar button[aria-current="page"]{color:var(--text);background:var(--glass-edge)}
  .tabbar .badge{position:absolute;top:2px;right:14%;min-width:16px;height:16px;line-height:16px;font-size:10px}
  .hero{grid-template-columns:1fr}
  .g2,.g3,.types{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr}
  .board{padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .qc{padding:20px 10px 10px}.qc b{font-size:13.5px}
  .cover{height:160px}
}
@media (max-width:400px){.board{grid-template-columns:1fr}.kpis{grid-template-columns:1fr 1fr}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* layout fixes */
.grid.split{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr)}
table.t{min-width:760px}
.tablehint{display:none}
@media (max-width:760px){.grid{grid-template-columns:1fr!important}.tablehint{display:block}.kpis{grid-template-columns:1fr 1fr}.demo>span{display:none}.demo{padding-block:6px}}
.cal button small{font-size:10.5px}

/* wantedly-like pages: extras */
.install{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface);text-align:left;width:100%}
.isteps{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.isteps li{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start}
.isteps .n{width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700}
.reason{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);cursor:pointer;color:var(--text)}
.reason[aria-pressed="true"]{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}
.factrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.factrow div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.factrow small{display:block;color:var(--muted);font-size:12px}.factrow b{font-size:15px}
.vals{display:grid;gap:10px}.val{display:flex;gap:14px;align-items:baseline;padding:14px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.val .num{color:var(--orange);font-weight:700}
.ways{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.way{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.locked{display:flex;gap:10px;align-items:center;padding:16px;border-radius:14px;border:1px dashed var(--line);color:var(--muted);font-size:14px}
ol.tl{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}ol.tl li{position:relative;padding:0 0 14px 18px}ol.tl li::before{content:"";position:absolute;left:-6px;top:8px;width:10px;height:10px;border-radius:50%;background:var(--sky-deep)}ol.tl .num{display:block;font-size:12.5px;color:var(--muted)}
.shot img,.thumb img,.wcover img,.cover img{display:block;width:100%;height:100%;object-fit:cover}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.av.blur img{filter:blur(5px);transform:scale(1.15)}
@media (max-width:760px){.factrow{grid-template-columns:1fr 1fr}.ways{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}}
/* wantedly-like pages */
.wgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.wcard{display:flex;flex-direction:column;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:18px;overflow:hidden;cursor:pointer;padding:0;transition:transform .2s,box-shadow .2s;color:var(--text)}
.wcard:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(30,37,56,.10)}
.wcard .thumb{margin:0;border-radius:0}
.wbody{padding:16px 18px 18px;display:flex;flex-direction:column;gap:12px}
.whead{margin:0;font:700 17px/1.55 var(--jp);text-wrap:balance}
.corow{display:flex;align-items:center;gap:10px}
.logo.sm{width:36px;height:36px;border-radius:10px;font-size:12px}
.logo.lg{width:88px;height:88px;border-radius:20px;font-size:28px;border:4px solid var(--surface);box-shadow:var(--shadow);flex:none}
.wcover{margin-top:12px;height:280px;border-radius:22px;overflow:hidden;position:relative}
.wcover .art{position:absolute;inset:0}.wcover .art svg{width:100%;height:100%;display:block}
.wtitle{display:flex;gap:18px;align-items:flex-start;margin:0 0 26px 24px;position:relative}
.wtitle .logo.lg{margin-top:-44px}
.wtitle>div{padding-top:14px}
.wtitle h1{text-wrap:balance}
.wlayout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.story{display:flex;flex-direction:column;gap:34px;max-width:680px}
.story h2{margin:0 0 12px;font:700 20px/1.4 var(--jp);padding-left:12px;border-left:3px solid var(--sky-deep)}
.story p{margin:12px 0 0;font-size:16px;line-height:1.95}
.shot.wide{aspect-ratio:16/9;border-radius:16px}
.side{position:sticky;top:calc(64px + env(safe-area-inset-top,0px))}
.btn.big{width:100%;padding:16px;font-size:16px}
dl.info{display:grid;grid-template-columns:5em 1fr;gap:6px 10px;margin:0;font-size:13.5px}
dl.info dt{color:var(--muted)}dl.info dd{margin:0}
.members{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.mem{display:flex;align-items:center;gap:12px}
.qline{display:flex;gap:10px;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:none;padding:12px 0;cursor:pointer;color:var(--text)}
.qline b{flex:1;font-size:15px}
.pcard{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.pcover{height:84px;opacity:.85}.pcover svg{width:100%;height:100%;display:block;filter:saturate(.8)}
.pbody{padding:0 18px 18px;display:flex;flex-direction:column;gap:6px}
.pbody .av.xl{margin-top:-44px;position:relative;z-index:1}
.av.ring{border:4px solid var(--surface);box-shadow:var(--shadow)}
@media (max-width:900px){.wlayout{grid-template-columns:1fr}.side{position:static}.wcover{height:190px}.wtitle{margin:0 0 20px 14px}.wtitle .logo.lg{margin-top:-36px}.logo.lg{width:72px;height:72px}}
/* ===== refined pass: quieter, Apple-like restraint ===== */
:root{--round:var(--jp); --pixel:var(--jp); --bg:#F3F6F7; --surface-2:#F5F8F9; --line:rgba(30,37,56,.09);
  --shadow:0 1px 2px rgba(30,37,56,.04),0 8px 24px rgba(30,37,56,.05); --radius-l:22px; --radius-m:16px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0F131C;--surface:#171C27;--surface-2:#1D2330;--line:rgba(255,255,255,.08)}}
:root[data-theme="dark"]{--bg:#0F131C;--surface:#171C27;--surface-2:#1D2330;--line:rgba(255,255,255,.08)}
body{font-weight:400;font-size:15px;letter-spacing:.02em}
.aura{background:radial-gradient(70% 45% at 0% 0%,color-mix(in srgb,var(--sky) 22%,transparent),transparent 70%)}
.demo{background:color-mix(in srgb,var(--navy) 94%,transparent);font-size:12px}
.demo b{font:600 11px/1 var(--en);letter-spacing:.16em;color:rgba(255,255,255,.6)}
.demo button{border-color:rgba(255,255,255,.18);font-size:12px}
.demo button[aria-pressed="true"]{background:#fff;border-color:#fff;color:var(--navy);font-weight:700}
.brand b{font:700 19px/1.2 var(--jp);letter-spacing:.02em}
.brand b span{color:var(--text)}
.brand small{font-weight:500;letter-spacing:.08em}
.nav{font-weight:500;font-size:14.5px;padding:9px 12px;border-radius:12px;color:var(--muted)}
.nav svg{stroke-width:1.6}
.nav:hover{background:color-mix(in srgb,var(--text) 5%,transparent);color:var(--text)}
.nav[aria-current="page"]{background:var(--surface);color:var(--text);font-weight:700;box-shadow:0 1px 2px rgba(30,37,56,.08),0 4px 14px rgba(30,37,56,.06)}
.nav[aria-current="page"] svg{stroke:var(--orange)}
.me{background:transparent;border-top:1px solid var(--line);border-radius:0;padding-top:14px}
.eyebrow{font:600 11.5px/1 var(--en);letter-spacing:.16em;color:var(--muted);text-transform:uppercase}
h1.t{font:700 clamp(26px,3vw,32px)/1.3 var(--jp);letter-spacing:.01em}
.sub{font-size:14.5px}
h2.s{font:700 16px/1.4 var(--jp)}
h2.s a,h2.s button{font-weight:500;color:var(--muted)}
h3{font-weight:700;font-size:15px}
.card{border:1px solid var(--line);box-shadow:var(--shadow);padding:22px}
.pill{background:var(--surface-2);color:var(--muted);font-weight:500;font-size:11.5px;padding:2px 9px;border:1px solid var(--line)}
.pill.o{background:transparent;color:var(--orange-ink);border-color:color-mix(in srgb,var(--orange) 40%,transparent)}
.pill.ok,.pill.warn,.pill.dg{border:0;font-weight:700}
.badge{font-weight:700;background:var(--orange);color:#fff}
.btn{font-weight:700;font-size:14px;border:1px solid var(--line);padding:10px 18px}
.btn.p{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:none}
.btn.n{background:var(--surface);border-color:var(--line);color:var(--text)}
.link{color:var(--text);text-decoration:underline;text-underline-offset:3px;font-weight:500}
.chip{font-weight:500;font-size:13px;border:1px solid var(--line);padding:6px 12px}
.chip[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--bg)}
input.f,select.f,textarea.f{border:1px solid var(--line);border-radius:12px;background:var(--surface)}
label.l{font-weight:700;font-size:13px}
/* home hero: calm surface, numbers carry it */
.hero{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--text)}
.hero h2{font:700 clamp(20px,2.4vw,24px)/1.45 var(--jp);color:var(--text);text-wrap:balance}
.hero .state{background:var(--surface-2);color:var(--text);font-weight:500}
.hero .glass{background:linear-gradient(150deg,color-mix(in srgb,var(--sky) 30%,var(--surface)),var(--surface));border:1px solid var(--line);box-shadow:none;color:var(--text)}
.hero .btn.ghost{border-color:var(--line)!important}
.bignum{font-weight:600;font-size:48px;letter-spacing:-.02em}
.av{font-weight:600}
.av svg{display:block;width:100%;height:100%}
.av.blur::after{display:none}
.av.blur svg{filter:blur(4px) saturate(.9);transform:scale(1.15)}
.thumb{display:block;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;margin-bottom:14px}
.thumb svg,.shot svg{display:block;width:100%;height:100%}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shot{aspect-ratio:4/3;border-radius:12px;overflow:hidden;margin:0}
.shot figcaption{font-size:12px;color:var(--muted);margin-top:4px}
.cover .art{position:absolute;inset:0}
.cover .art svg{width:100%;height:100%;display:block}
.cover::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(18,23,37,.65))}
.cover>div:last-child{position:relative;z-index:1}
.co.card{display:block}
.co .head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.co .logo{width:56px;height:56px;font-size:18px}
/* quest board: cork board with pinned paper (restored) */
.qc{font-family:var(--jp)}
.qc .tag{font:400 11px/1 "DotGothic16",var(--jp);letter-spacing:.1em;color:#B8541A}
.qc b{font-weight:700}
.qc .meta{font-weight:500}
.qc .prog{background:rgba(30,37,56,.10);margin:2px 0}
.prog{height:4px;border-radius:999px;background:var(--line);overflow:hidden}
.prog span{display:block;height:100%;background:var(--orange);border-radius:999px}
.quota{font-weight:500}
.quota i{width:18px;height:5px}
.empty{color:var(--muted)}
/* company */
.logo{border-radius:16px;font:700 22px/1 var(--en)}
.cover{height:180px}
.cover h1{font:700 clamp(24px,3.4vw,32px)/1.3 var(--jp);text-shadow:none}
.cover .pill{color:var(--navy);border:0}
.pc .nm{font-weight:600}
.kpi b{font-weight:600}
.type{border:1px solid var(--line)}
.type[aria-pressed="true"]{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);background:var(--surface)}
.type .fee{color:var(--muted);font-weight:600}
.steps span{font-weight:500;background:transparent;border:1px solid var(--line)}
.steps span.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.steps span.done{background:var(--surface-2)}
.note{background:var(--surface-2);border:1px solid var(--line)}
.bar .tr span{background:var(--navy)}
.cal button{border:1px solid var(--line);font-weight:500}
.cal button.open{background:color-mix(in srgb,var(--sky) 22%,var(--surface));border-color:color-mix(in srgb,var(--sky-deep) 40%,transparent)}
.msg.me{background:var(--navy)}
.msg.ai{background:color-mix(in srgb,var(--sky) 18%,var(--surface))}
.sheet{padding:26px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn.p,:root:not([data-theme="light"]) .msg.me{background:#EEF3F7;border-color:#EEF3F7;color:#121725}:root:not([data-theme="light"]) .cal button.closed{border-color:rgba(255,255,255,.18)}}
:root[data-theme="dark"] .btn.p,:root[data-theme="dark"] .msg.me{background:#EEF3F7;border-color:#EEF3F7;color:#121725}
:root[data-theme="dark"] .cal button.closed{border-color:rgba(255,255,255,.18)}
@media (max-width:760px){.tabbar button{font-weight:600}}
/* quest detail */
.qhero{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:8px;border-radius:22px;overflow:hidden;aspect-ratio:21/9;margin:12px 0 18px}
.qhero>*{position:relative;overflow:hidden;background:var(--soft,#eef4f5)}
.qhero>*:first-child{grid-row:1/3}
.qhero img,.qhero svg,.qhero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.qhero .vbadge{position:absolute;left:10px;bottom:10px;z-index:1;font-size:12px;padding:4px 10px;border-radius:999px;background:rgba(18,23,37,.7);color:#fff;display:flex;gap:6px;align-items:center}
.qhero .vbadge svg{position:static;width:12px;height:12px;fill:#fff}
.qmeta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:22px}
.qmeta>div{background:var(--card,#fff);padding:12px 14px}
.qmeta small{display:block;color:var(--muted);font-size:12px;margin-bottom:2px}
.qmeta b{font-weight:600;font-size:14px}
ol.flow{list-style:none;padding:0;margin:0;display:grid;gap:10px;counter-reset:f}
ol.flow li{counter-increment:f;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start}
ol.flow li::before{content:counter(f);width:26px;height:26px;border-radius:50%;background:var(--sky,#DFF1F2);color:#1E2538;display:grid;place-items:center;font:600 13px Archivo,sans-serif}
.att{display:grid;gap:8px;margin-top:8px}
.attf{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;font-size:13px}
.attf .tn{width:44px;height:44px;border-radius:8px;overflow:hidden;flex:none;position:relative;background:var(--soft,#eef4f5);display:grid;place-items:center;font:600 11px Archivo,sans-serif;color:var(--muted)}
.attf .tn img,.attf .tn svg,.attf .tn video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.attf .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px;border:1.5px dashed var(--line);border-radius:14px;cursor:pointer;font-size:14px;color:var(--muted)}
.drop:hover{border-color:var(--sky2,#6DBAC2);color:var(--text)}
.qa{display:grid;gap:12px}
.qa .qq{padding:12px 14px;border-radius:14px;background:var(--soft,#f3f7f8)}
.qa .qa-a{margin-top:8px;padding-left:12px;border-left:3px solid var(--orange,#FD843A)}
.joiners{display:flex;align-items:center}
.joiners .av{width:32px;height:32px;margin-left:-8px;border:2px solid var(--card,#fff)}
.joiners .av:first-child{margin-left:0}
@media (max-width:760px){.qhero{aspect-ratio:4/3;grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr}.qhero>*:first-child{grid-column:1/3;grid-row:auto}.qmeta{grid-template-columns:1fr 1fr}}
.msg.media{padding:4px;max-width:min(320px,80%)}
.msg.media img,.msg.media video{display:block;width:100%;border-radius:14px}
.wcover img,.shot img,.pcover img,.cover img,.qhero img,.wcard img{filter:saturate(.92) contrast(1.04)}
.rec{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border-radius:24px;overflow:hidden;background:var(--card,#fff);border:1px solid var(--line);box-shadow:0 14px 34px rgba(30,37,56,.08)}
.recimg{position:relative;min-height:220px;background:#DFF1F2;overflow:hidden}
.recimg img,.recimg>svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.recimg .recface{position:absolute;inset:0;display:grid;place-items:center}
.recimg .recface svg{width:62%;height:auto;filter:blur(5px);border-radius:50%}
.rectag{position:absolute;left:14px;top:14px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.88);font-size:12px;font-weight:700;color:#1E2538}
.recbody{padding:20px 22px;display:flex;flex-direction:column;gap:8px}
.rect{margin:2px 0 0;font-size:20px;line-height:1.45}
.recwhy{margin:4px 0 6px;padding:10px 12px;border-radius:12px;background:var(--soft,#F3F7F8);font-size:14px;line-height:1.7}
.recwhy b{display:block;font-size:12px;color:var(--muted)}
.rec.done{display:block;padding:16px 20px}
.ntable{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.nrow{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,72px);align-items:center;gap:6px;padding:10px 14px;border-top:1px solid var(--line);font-size:14px}
.nrow:first-child{border-top:0}.nrow>span:not(:first-child){text-align:center}
.nrow.nh{background:var(--soft,#F3F7F8);font-size:12px;font-weight:700;color:var(--muted)}
.nrow input{width:20px;height:20px;accent-color:#1E2538}
.push{position:fixed;left:50%;top:14px;z-index:90;transform:translate(-50%,-140%);transition:transform .45s cubic-bezier(.2,1.2,.4,1);width:min(380px,calc(100% - 24px));display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:20px;font-size:14px;line-height:1.5}
.push.on{transform:translate(-50%,0)}
.pico{width:38px;height:38px;flex:none;border-radius:10px;background:#1E2538;color:#fff;display:grid;place-items:center;font-weight:700}
@media (max-width:760px){.rec{grid-template-columns:1fr}.recimg{min-height:170px}.nrow{grid-template-columns:minmax(0,1fr) repeat(3,48px);padding:10px}.nrow.nh{font-size:11px}}
.feedwrap{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
.feedside{position:sticky;top:20px}
.post{display:flex;flex-direction:column;gap:10px}
.pauth{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;background:none;border:0;padding:0;cursor:pointer;color:inherit;font:inherit}
.ptext{margin:0;white-space:pre-wrap;line-height:1.8}
.pmedia{display:grid;gap:6px;border-radius:16px;overflow:hidden}
.pmedia.n2{grid-template-columns:1fr 1fr}.pmedia.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.pmedia.n3>*:first-child{grid-row:1/3}
.pmedia>*{position:relative;aspect-ratio:16/10;overflow:hidden;background:#DFF1F2}.pmedia.n3>*{aspect-ratio:auto;min-height:110px}
.pmedia img,.pmedia video,.pmedia svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pacts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.pre{padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.pre.on{background:#1E2538;color:#fff;border-color:#1E2538}
.pcom{display:grid;gap:8px;padding:10px 12px;border-radius:14px;background:var(--soft,#F3F7F8)}
.composerbox textarea{flex:1}
.pickrow{display:grid;grid-template-columns:5em minmax(0,1fr);gap:6px 10px;align-items:center}
.pickrow input{grid-column:2}
.modq{padding:12px 0;border-top:1px solid var(--line)}.modq:first-of-type{border-top:0}
.aiflag{padding:8px 10px;border-radius:10px;background:#FFF1E6}
.funnel{display:grid;gap:10px}.funnel>div{display:grid;grid-template-columns:11em 3em 1fr;gap:10px;align-items:center}
.funnel small{font-size:13px}.funnel b{font-size:18px;text-align:right}
.fbar{height:10px;border-radius:999px;background:var(--soft,#EEF1F4);overflow:hidden}.fbar i{display:block;height:100%;background:#6DBAC2;border-radius:999px}
.todaypick{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;margin-bottom:12px;border-radius:12px;background:#FFF1E6}
.weekly{display:grid;gap:12px}.wk{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:center}
.wd{width:40px;height:40px;border-radius:12px;background:#1E2538;color:#fff;display:grid;place-items:center;font-weight:700}
.meetq{border-left:4px solid #FD843A}
@media (max-width:900px){.feedwrap{grid-template-columns:1fr}.feedside{position:static;order:-1;display:none}.funnel>div{grid-template-columns:8em 2.5em 1fr}.pickrow{grid-template-columns:1fr}.pickrow input{grid-column:1}}

/* ===================================================================
   本実装で足したもの（試作にない部品・アクセシビリティ・ダークモードの補い）
   =================================================================== */
:root{
  --soft:#F3F7F8; --card:var(--surface); --warm:#FFF1E6; --warm-ink:#8A4A1C; --paper:#FFFDF6; --paper-2:#FFF8D6;
  --sky2:#6DBAC2; --navy-fixed:#1E2538;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--soft:#1D2330;--warm:#3A2A20;--warm-ink:#FFC69E;--paper:#F4EFE2;--paper-2:#F1E7BC}}
:root[data-theme="dark"]{--soft:#1D2330;--warm:#3A2A20;--warm-ink:#FFC69E;--paper:#F4EFE2;--paper-2:#F1E7BC}
/* Web フォントが届かない環境でも端末の書体で表示する（読み込みは main.js が後から行う） */
:root{--jp:"Zen Kaku Gothic New","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Meiryo",system-ui,sans-serif}

.todaypick,.aiflag{background:var(--warm);color:var(--text)}
.todaypick .ic{color:var(--warm-ink)}
.qc{background:var(--paper)}.qc.group{background:var(--paper-2)}
.pre.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.wd{background:var(--navy-fixed)}
.nrow input{accent-color:var(--text)}

/* 画面の枠 */
.demo[hidden]{display:none}
.shell{min-height:100vh}
.rail .panel{overflow:auto}
.navlist{display:flex;flex-direction:column;gap:4px}
.me{position:relative}
.me b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.iconbtn{margin-left:auto;width:34px;height:34px;border-radius:10px;border:0;background:transparent;color:var(--muted);cursor:pointer;display:grid;place-items:center}
.iconbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.iconbtn:hover{background:var(--line);color:var(--text)}
.nav[aria-pressed="true"] svg{stroke:var(--orange)}
.tabbar button span{line-height:1.2}
body.modal-open{overflow:hidden}
.ic{display:inline-block;vertical-align:-3px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.btn svg.ic,.btn .ic{stroke:currentColor}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hr{height:1px;background:var(--line)}
.vsep{width:1px;background:var(--line);margin:0 4px;align-self:stretch}
.plain{border:0;background:none;padding:0;cursor:pointer;color:inherit;font:inherit}
.pill.lg{font-size:13px;padding:5px 12px}
.muted.link,.link.muted{color:var(--muted)}
.btn.danger{color:var(--danger)}
.card.flat{box-shadow:none;border:1.5px solid var(--line)}
.qmini{text-align:left;border:1px solid var(--line);box-shadow:none;cursor:pointer;color:var(--text)}
.qmini:hover{border-color:color-mix(in srgb,var(--sky-deep) 50%,var(--line))}
.dot.off{background:var(--muted);box-shadow:none}
.pname{font-size:22px;margin:0;line-height:1.3}
.grid.split{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr)}
.grid.split-ev{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.grid.split-pf{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.convlist .conv{flex-direction:column;align-items:flex-start;gap:2px;color:var(--text)}
.convlist .conv[aria-current="page"]{color:var(--text)}
.composer .attach{padding:0 12px;cursor:pointer}
.composer .attach svg{stroke:currentColor;fill:none}
fieldset.guard{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:0}
fieldset.guard legend{padding:0 6px}
.rcrow{justify-content:space-between;padding:10px 12px;border:1px solid var(--line);border-radius:12px}
.camera{aspect-ratio:1;max-width:280px;border-radius:24px;background:#000;display:grid;place-items:center;color:#fff;margin:0 auto 14px;position:relative;overflow:hidden}
.camera video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.camera .frame{position:absolute;inset:22%;border:3px solid var(--orange);border-radius:16px}
.qr.big{width:min(320px,100%);height:auto;border-radius:20px;padding:0}
.qr.skel,.skel{background:var(--surface-2);border-radius:16px}
.video iframe,.video video{position:absolute;inset:0;width:100%;height:100%;border:0}
.msg.thinking{color:var(--muted)}
.msg.thinking::after{content:"…";animation:blink 1.2s steps(3,end) infinite}
@keyframes blink{0%{opacity:.2}50%{opacity:1}100%{opacity:.2}}
.sheet{scrollbar-gutter:stable}
.sheet .x{position:sticky;top:0;z-index:2}
.sheet:focus{outline:none}
.toast[hidden]{display:none}
.lock .btn{margin-top:10px}

/* 読み込み中の仮の行（index.html の直書きと同じ見た目） */
.sk-line{height:14px;border-radius:7px;background:linear-gradient(90deg,var(--surface-2),var(--line),var(--surface-2));background-size:200% 100%;animation:sk 1.2s ease-in-out infinite}
.sk-card{height:180px;border-radius:var(--radius-l);background:var(--surface);border:1px solid var(--line);margin-top:18px}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* フォーカスが見えること */
:focus-visible{outline:3px solid var(--orange);outline-offset:2px;border-radius:6px}
.chip:focus-visible,.btn:focus-visible,.nav:focus-visible{outline-offset:3px}
h1:focus{outline:none}
input[type=checkbox]{width:18px;height:18px;accent-color:var(--navy);flex:none}
:root[data-theme="dark"] input[type=checkbox]{accent-color:#EEF3F7}

@media (max-width:980px){.grid.split-ev,.grid.split-pf{grid-template-columns:1fr}}
@media (max-width:760px){
  .demo{position:sticky}
  .wtitle{flex-wrap:wrap}
  .pname{font-size:20px}
  .filters .row{flex-wrap:wrap}
  .filters .row select{flex:1}
  .rec .row .btn{flex:1 1 auto}
  .hero h2{font-size:19px}
  .sheet{padding:20px 18px;border-radius:26px}
  .grid.split,.grid.split-ev,.grid.split-pf{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* デモの切り替えバーとトーストが重ならないように */
:root[data-mode="demo"] .toast{top:calc(60px + env(safe-area-inset-top,0px))}
@media (max-width:760px){:root[data-mode="demo"] .toast{top:calc(108px + env(safe-area-inset-top,0px))}}
/* チェックボックスと文言を同じ行に（狭い画面で折り返さない） */
label.row{flex-wrap:nowrap;align-items:flex-start;gap:10px}
label.row input[type=checkbox]{margin-top:3px}

/* ===== スマホらしい操作（js/ui/gestures.js・sheet.js） ===== */
/* Pull to Refresh：ブラウザの引っ張り更新と二重にならないように */
html,body{overscroll-behavior-y:contain}
.ptr{position:fixed;z-index:65;left:50%;top:calc(env(safe-area-inset-top,0px) - 44px);width:40px;height:40px;margin-left:-20px;border-radius:50%;
  background:var(--surface);border:1px solid var(--line);box-shadow:0 6px 18px rgba(18,23,37,.16);display:grid;place-items:center;color:var(--text);
  transform:translateY(var(--ptr,0px));opacity:0;pointer-events:none;transition:transform .25s cubic-bezier(.2,1.2,.4,1),opacity .2s}
.ptr.on{transition:none}
.ptr-ic{display:grid;width:22px;height:22px;transition:transform .2s}
.ptr-ic svg{width:22px;height:22px}
.ptr.ready .ptr-ic{transform:rotate(180deg);color:var(--orange)}
.ptr.spin{transition:transform .25s ease}
.ptr.spin .ptr-ic{border:2.5px solid var(--line);border-top-color:var(--orange);border-radius:50%;animation:ptrspin .7s linear infinite}
.ptr.spin .ptr-ic svg{display:none}
@keyframes ptrspin{to{transform:rotate(360deg)}}
:root[data-mode="demo"] .ptr{top:calc(env(safe-area-inset-top,0px) + 4px)}

/* Skeleton Screen */
.skel-screen{animation:skin .2s ease both}
@keyframes skin{from{opacity:0}to{opacity:1}}
.skel-screen .sk-line{margin-bottom:9px}
.sk-box{padding:18px;border-radius:var(--radius-l);background:var(--surface);border:1px solid var(--line);margin-top:14px}
.sk-row{display:flex;gap:12px;align-items:center;padding:8px 0}
.sk-row+.sk-row{border-top:1px solid var(--line)}
.sk-col{flex:1;min-width:0}.sk-col .sk-line:last-child{margin-bottom:0}
.sk-av{width:42px;height:42px;border-radius:50%;flex:none}
.sk-img{border-radius:14px;height:120px;margin-bottom:12px}
.sk-av,.sk-img{background:linear-gradient(90deg,var(--surface-2),var(--line),var(--surface-2));background-size:200% 100%;animation:sk 1.2s ease-in-out infinite}
.sk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:14px}
.sk-tile{padding:14px;border-radius:var(--radius-l);background:var(--surface);border:1px solid var(--line)}

/* Toast：操作ボタンつき */
.toast{display:flex;align-items:center;gap:12px;justify-content:center}
.toast.pop{animation:tpop .28s cubic-bezier(.2,1.3,.4,1)}
@keyframes tpop{from{transform:translate(-50%,-14px);opacity:0}to{transform:translateX(-50%);opacity:1}}
.toast[data-kind="error"]{box-shadow:0 0 0 2px #E5533D inset}
.toast .tact{flex:none;border:0;border-radius:999px;padding:7px 12px;background:var(--navy);color:#fff;font:inherit;font-size:13px;cursor:pointer}
:root[data-theme="dark"] .toast .tact{background:#EEF3F7;color:#121725}

/* Bottom Sheet：スマホでは画面の下からせり上がり、取っ手を下に引くと閉じる */
.grab{display:none}
@media (max-width:760px){
  .scrim{padding:0;background:rgba(18,23,37,calc(.35 * var(--dim,1)))}
  .sheet{width:100%;max-height:calc(100% - 28px - env(safe-area-inset-top,0px));border-radius:26px 26px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));transition:transform .22s ease}
  .scrim.enter .sheet{animation:sheetup .34s cubic-bezier(.2,1,.3,1)}
  .grab{display:block;position:sticky;top:-12px;z-index:3;width:44px;height:5px;border-radius:3px;background:var(--line);margin:-8px auto 10px;box-shadow:0 0 0 10px transparent}
}
@keyframes sheetup{from{transform:translateY(100%)}to{transform:none}}

/* Swipe Action */
.swipe{position:relative;overflow:hidden;border-radius:16px;touch-action:pan-y}
.swipe-acts{position:absolute;inset:0;display:flex;justify-content:space-between;align-items:center;padding:0 20px;font-weight:900;font-size:14px;color:#fff;background:var(--muted)}
.swipe.to-r .swipe-acts{background:#2F9E6E}.swipe.to-l .swipe-acts{background:#C2453A}
.swipe .sa{opacity:.55;transition:opacity .15s,transform .15s}
.swipe.to-r .sa-l,.swipe.to-l .sa-r{visibility:hidden}
.swipe.arm .sa{opacity:1;transform:scale(1.08)}
.swipe-fg{position:relative;background:var(--surface);transition:transform .25s cubic-bezier(.2,1.2,.4,1);will-change:transform}
.swipe.gone{transition:opacity .25s ease .15s;opacity:0}
.swipe-hint{display:none}
@media (pointer:coarse){.swipe-hint{display:block}}

/* Autocomplete */
.ac-wrap{position:relative}
.ac-list{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;border:1px solid var(--line);position:absolute;z-index:40;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;border-radius:16px;max-height:260px;overflow:auto;box-shadow:0 14px 34px rgba(18,23,37,.16)}
.ac-list li{padding:10px 12px;border-radius:10px;cursor:pointer;font-size:15px}
.ac-list li b{color:var(--orange)}
.ac-list li[aria-selected="true"],.ac-list li:hover{background:var(--surface-2)}
.ac-list[hidden]{display:none}
.swipe+.swipe{margin-top:8px}.swipe-fg.modq{padding:12px;border:1px solid var(--line);border-radius:16px}
.legal-links{margin:10px 0 0;font-size:11.5px;line-height:1.7}.legal-links a{color:inherit}

/* カンパの目安（立場ごと） */
.kanpa-tiers { margin: 6px 0 8px; display: grid; gap: 4px; }
.kanpa-tiers > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.kanpa-tiers > div:last-child { border-bottom: 0; }
.kanpa-tiers dt { font-size: 13px; word-break: keep-all; line-break: strict; }
.kanpa-tiers dd { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; }

/* ログインしていない人の入口（3つの選択肢） */
.entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:8px}
.entry-card{display:flex;flex-direction:column;gap:6px;min-height:200px}
.entry-card .s{margin:0}
.entry-card p{margin:0 0 14px}
@media (max-width:760px){.entry{grid-template-columns:1fr}.entry-card{min-height:0}}

/* ---------- オープニング期間の電子チケット（申込・チケット・受付・運営） ---------- */
.tickets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ticket{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;background:var(--surface);border-radius:var(--radius-l);padding:18px 20px;box-shadow:var(--shadow);
  border-left:6px solid var(--orange);position:relative}
.ticket.is-used{border-left-color:var(--muted)}
.ticket.is-used .tk-qr svg{opacity:.35}
.tk-title{margin:6px 0 8px;font:900 20px/1.35 var(--round)}
.tk-qr{display:flex;flex-direction:column;align-items:center;gap:6px}
.qr.tkqr{width:156px;height:156px;padding:8px}
.tk-dl{margin:0;display:grid;gap:4px}
.tk-dl>div{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:8px;font-size:13.5px}
.tk-dl dt{color:var(--muted);font-weight:700}
.tk-dl dd{margin:0;overflow-wrap:anywhere}
.tk-no{font-size:16px;letter-spacing:.04em;font-weight:700}
.tkqr-big{display:flex;justify-content:center}
label.sess{padding:6px 2px}
.note.warnbox{background:color-mix(in srgb,var(--warn) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--warn) 30%,transparent)}
.dk-res{padding:14px 16px;border-radius:var(--radius-m);background:var(--surface-2);border:2px solid var(--line)}
.dk-res.dk-ok{background:color-mix(in srgb,var(--ok) 14%,var(--surface));border-color:var(--ok)}
.dk-res.dk-warn{background:color-mix(in srgb,var(--warn) 14%,var(--surface));border-color:var(--warn)}
.dk-res.dk-ng{background:color-mix(in srgb,var(--danger) 12%,var(--surface));border-color:var(--danger)}
.dk-big{display:block;font:900 26px/1.3 var(--round)}
.dk-ok .dk-big{color:var(--ok)}.dk-warn .dk-big{color:var(--warn)}.dk-ng .dk-big{color:var(--danger)}
.dk-warnline{margin:8px 0 0;font-weight:700;color:var(--warn)}
.quota-row{display:grid;grid-template-columns:minmax(0,1fr) 9em;gap:12px;align-items:end}
.qbar{display:block;height:8px;border-radius:999px;background:var(--surface-2);margin-top:6px;overflow:hidden}
.qbar i{display:block;height:100%;background:var(--sky-deep);border-radius:inherit}
.invlist{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px;max-height:240px;overflow:auto}
.invlist li{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;overflow-wrap:anywhere}
.bulkbar{gap:8px}
@media (max-width:980px){.tickets{grid-template-columns:1fr}}
@media (max-width:520px){
  .ticket{grid-template-columns:1fr;padding:16px}
  .tk-qr{order:-1}
  .qr.tkqr{width:min(220px,70vw);height:auto}
  .tk-dl>div{grid-template-columns:6.5em minmax(0,1fr)}
  .quota-row{grid-template-columns:1fr}
}
.tk-dl .num{white-space:nowrap}

/* ---------- オープニング：イベントのカード（#/opening）と運営のイベント編集 ---------- */
.evgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.evc{display:flex;flex-direction:column;background:var(--surface);border-radius:var(--radius-l);box-shadow:var(--shadow);overflow:hidden;border:2px solid transparent;transition:border-color .15s}
.evc:has(input[name="session"]:checked){border-color:var(--orange)}
.evc-media{position:relative;aspect-ratio:16/9;background:var(--sky-light);overflow:hidden}
.evc-media img,.evc-media svg{display:block;width:100%;height:100%;object-fit:cover}
.evc-date{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;align-items:center;min-width:62px;padding:6px 10px 5px;border-radius:14px;
  background:#fff;color:#1E2538;box-shadow:0 6px 16px rgba(30,37,56,.18);line-height:1.1}
.evc-date b{font:800 21px/1.1 var(--en);letter-spacing:.01em}
.evc-date span{font-size:12px;font-weight:700;color:#5B6578}
.evc-group{position:absolute;right:12px;top:12px;padding:4px 10px;border-radius:999px;background:rgba(30,37,56,.78);color:#fff;font-size:12px;font-weight:700}
.evc-stamp{position:absolute;inset:auto 12px 12px auto;padding:4px 12px;border-radius:8px;background:#B8443A;color:#fff;font-weight:900;font-size:14px;letter-spacing:.1em}
.evc.is-cancelled .evc-media img,.evc.is-cancelled .evc-media svg{filter:grayscale(1);opacity:.55}
.evc.is-past .evc-media img,.evc.is-past .evc-media svg{filter:grayscale(.6);opacity:.7}
.evc-body{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;flex:1}
.evc-title{margin:0;font:900 19px/1.4 var(--round)}
.evc-when{margin:0;font-weight:700;font-size:14px;color:var(--orange-ink)}
.evc-desc{margin:0;font-size:14px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.evc-note{margin:0;font-size:13px;color:var(--muted)}
.evc-foot{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}
.evc-pick{display:flex;align-items:center;gap:10px;width:100%;margin-top:auto;padding:11px 14px;border-radius:var(--radius-s);border:2px solid var(--line);
  background:var(--surface-2);font-weight:700;font-size:14.5px;cursor:pointer;min-height:48px}
.evc-pick input{width:20px;height:20px;accent-color:var(--orange);flex:none;margin:0}
.evc-pick:has(input:checked){border-color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,var(--surface))}
.evc-pick:has(input:disabled){cursor:default;color:var(--muted)}
.evc-pick:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:2px}
.evc-picked{margin:0;font-weight:700}
.ev-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ev-path{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;border-radius:var(--radius-m);background:var(--surface-2);border:1px solid var(--line)}
.ev-path h3{margin:0;font:800 16px/1.4 var(--round)}
.ev-path p{margin:0 0 6px}
.ev-path[data-path="guest"]{border-color:color-mix(in srgb,var(--orange) 45%,transparent)}
.ev-admin{display:grid;gap:10px}
.ev-row{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border-radius:var(--radius-m);background:var(--surface-2);border:1px solid var(--line)}
.ev-row.is-cancelled{opacity:.75}
.ev-thumb{position:relative;width:112px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--sky-light)}
.ev-thumb img,.ev-thumb svg{display:block;width:100%;height:100%;object-fit:cover}
.ev-row .ev-acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.ev-imgpick{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:center}
.ev-imgpick .ev-thumb{width:160px}
@media (max-width:520px){
  .evgrid{grid-template-columns:1fr}
  .ev-paths{grid-template-columns:1fr}
  .ev-row{grid-template-columns:88px minmax(0,1fr)}
  .ev-thumb{width:88px}
  .ev-row .ev-acts{grid-column:1/-1;justify-content:flex-start}
  .ev-imgpick{grid-template-columns:1fr}
}
.ev-lead{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ev-lead span{flex:1 1 220px}
.ev-imgpick input.sr:focus-visible + label{outline:3px solid var(--orange);outline-offset:2px}
.ev-row .num{white-space:nowrap}
@media (max-width:760px){.grid.g3.ev-when{grid-template-columns:1fr 1fr!important}.grid.g3.ev-when>:first-child{grid-column:1/-1}}
.ev-imglabel{display:block;font-weight:700;font-size:13px;margin-bottom:6px}
.ev-imglabel small{font-weight:500;color:var(--muted);margin-left:6px}

/* ゲスト登録の手順表示とログイン済みの表示 */
.gsteps{display:flex;gap:8px;margin:0;padding:0;list-style:none;counter-reset:g}
.gsteps li{counter-increment:g;flex:1;font-size:13px;font-weight:700;color:var(--muted);border-top:4px solid var(--line);padding-top:6px}
.gsteps li::before{content:counter(g) "　"}
.gsteps li.on{color:var(--text);border-color:var(--accent,#FD843A)}
.gsteps li.done{color:#1a7f4b;border-color:#1a7f4b}
.gsteps li.done::before{content:"✓　"}
.gdone{display:grid;gap:2px;background:#e8f6ee;border:1.5px solid #1a7f4b;border-radius:12px;padding:12px 14px;color:#14532d}
.gdone b{font-size:16px}.gdone span{font-size:13px;word-break:break-all}
.gdone .link{justify-self:start;margin-top:4px;color:#14532d}

/* ホーム画面に追加の案内（下のタブの上に出す） */
.nudge{position:fixed;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;gap:10px;background:var(--surface,#fff);color:var(--text,#1E2538);border:1.5px solid var(--line,#d5dbe3);border-radius:14px;padding:12px 14px;box-shadow:0 8px 24px rgba(30,37,56,.18);max-width:560px;margin:0 auto}
.nudge p{margin:0;font-size:14px;line-height:1.55;flex:1}
.nudge p b{display:block;font-size:15px}
@media (min-width:900px){.nudge{bottom:20px}}

/* 画面の切り替え（View Transitions）：中身だけを短く入れ替え、メニューやタブは動かさない */
#view{view-transition-name:page}
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-old(page){animation:vt-out .12s ease-in both}
::view-transition-new(page){animation:vt-in .2s cubic-bezier(.2,.8,.2,1) both}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* イベントの詳細（一覧の行・オープニングのカードから開く） */
.ev-open{flex:1;min-width:0;background:none;border:0;padding:4px 0;margin:0;text-align:left;color:inherit;font:inherit;cursor:pointer;border-radius:10px}
.ev-open:hover b{text-decoration:underline;text-underline-offset:3px}
.ev-open:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.evc[data-session]{cursor:pointer}
.evc-more{align-self:flex-start;font-size:14px;margin-top:2px}
.evd{display:flex;flex-direction:column;gap:12px}
.evd-media{border-radius:var(--radius-l);overflow:hidden;aspect-ratio:16/9;background:var(--surface-2,#eef3f4)}
.evd-media img,.evd-media svg{width:100%;height:100%;object-fit:cover;display:block}
.evd-title{font-size:22px;margin:0}
.evd-dl{margin:0}
.evd-desc{margin:0;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}

/* ===== 2026-11-04 追加：参加者の一覧・お知らせ・通知の案内・カレンダー・チャット（運営チャットとメッセージで共通） ===== */
/* イベントの一覧 */
.evlist{display:flex;flex-direction:column}
.evitem{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main rsvp" "who rsvp";column-gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.evitem:first-child{border-top:0}
.evitem-main{grid-area:main;display:flex;gap:14px;align-items:center}
.evitem-date{display:flex;flex-direction:column;align-items:center;min-width:54px}
.evitem-date .num{font-weight:800;font-size:20px;line-height:1.1}
.evitem-title{display:flex;flex-direction:column;min-width:0}
.evitem-rsvp{grid-area:rsvp}
.evwho{grid-area:who;justify-self:start;margin-left:68px;display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:600 12.5px/1.4 var(--jp);cursor:pointer}
.evwho:hover{border-color:var(--orange);color:var(--orange-ink)}
.evwho .ic{stroke:currentColor;fill:none}
.calrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.calrow .link{display:inline-flex;align-items:center;gap:4px}
.calrow svg,.gcal svg{stroke:currentColor;fill:none}
.gcal{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.tk-cal{grid-column:1/-1;padding:0 4px}
.steps{margin:0 0 6px;padding-left:1.3em;line-height:1.8}

/* 参加者の一覧 */
.plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.plist>li{border-top:1px solid var(--line)}
.plist>li:first-child{border-top:0}
.prow{display:flex;align-items:center;gap:12px;width:100%;padding:10px 2px;background:none;border:0;color:inherit;font:inherit;text-align:left}
button.prow{cursor:pointer;border-radius:12px}
button.prow:hover{background:var(--surface-2)}
.pmain{display:flex;flex-direction:column;min-width:0;flex:1}
.pmain b{overflow-wrap:anywhere}
.pav{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font:700 12px/1 var(--en);color:#fff;background:#8C96A8}
.pav.pv-co{background:#1E2538}.pav.pv-ex{background:#8C7AE6}.pav.pv-wk{background:#5FAEB7}.pav.pv-st{background:#FD843A;color:#1E2538}.pav.pv-gs{background:#A7B1C2;color:#1E2538}.pav.pv-ad{background:#2F7D5B}

/* お知らせ */
.nav.bell{position:relative}
.nav.bell svg{stroke:currentColor;fill:none}
.bellfab{display:none}
@media (max-width:760px){
  .bellfab{display:block;position:fixed;top:calc(10px + env(safe-area-inset-top,0px));right:12px;z-index:30}
  :root[data-mode="demo"] .bellfab{top:calc(112px + env(safe-area-inset-top,0px))}
  .bellfab .iconbtn{margin:0;width:42px;height:42px;border-radius:14px;position:relative;color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow)}
  .bellfab .badge{position:absolute;top:-6px;right:-6px}
}
.nlist{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.nitem{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:inherit;font:inherit;cursor:pointer}
.nitem.unread{border-color:color-mix(in srgb,var(--orange) 45%,var(--line));background:color-mix(in srgb,var(--orange) 6%,var(--surface))}
.nitem.unread b::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--orange);margin-right:6px;vertical-align:2px}
.nbody{white-space:pre-line;color:var(--muted)}
.pushnote{display:flex;gap:8px;align-items:center;width:100%;text-align:left;margin:10px 0 4px;cursor:pointer;color:inherit;font:inherit}
.pushnote svg{stroke:currentColor;fill:none;flex:none}
.pushcard{display:flex;align-items:center;gap:12px;border:1.5px solid color-mix(in srgb,var(--orange) 40%,var(--line))}
.pushcard .iconbtn{margin-left:0}
.pushcard-ic{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--orange) 16%,var(--surface));color:var(--orange-ink)}
.pushcard-ic svg{stroke:currentColor;fill:none}
@media (max-width:520px){.pushcard{flex-wrap:wrap}.pushcard>.row{width:100%;justify-content:flex-end}}
.invite-preview{margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);display:flex;flex-direction:column;gap:2px}

/* チャット（共通） */
.chat{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:16px;align-items:stretch}
.chat .card{padding:0;overflow:hidden}
.clist{display:flex;flex-direction:column;max-height:calc(100dvh - 210px);min-height:420px}
.clist-head{display:flex;gap:8px;align-items:center;padding:14px 14px 8px}
.clist-head .search{flex:1;min-width:0}
.clist-head .search .f{padding-left:40px}
.clist-head .search span svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:var(--muted);fill:none}
.clist-head .btn svg{stroke:currentColor;fill:none}
.ctabs{display:flex;gap:4px;padding:0 14px 8px;border-bottom:1px solid var(--line)}
.ctabs button{flex:1;display:inline-flex;justify-content:center;align-items:center;gap:6px;padding:8px 6px;border:0;border-bottom:2.5px solid transparent;background:none;color:var(--muted);font:700 13px/1 var(--jp);cursor:pointer}
.ctabs button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--orange)}
.ctabs .num{font-size:11px;padding:2px 6px;border-radius:999px;background:var(--surface-2)}
.citems{list-style:none;margin:0;padding:6px;overflow:auto;flex:1}
.citem{display:flex;gap:10px;align-items:center;padding:10px;border-radius:14px;color:inherit;text-decoration:none}
.citem:hover{background:var(--surface-2)}
.citem.on{background:color-mix(in srgb,var(--sky) 22%,var(--surface))}
.citem.unread .cname{font-weight:900}
.cmeta{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
.crow{display:flex;align-items:center;gap:6px;min-width:0}
.cname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crow .pill{font-size:10.5px;padding:2px 7px}
.cago{margin-left:auto;white-space:nowrap;flex:none}
.clast{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cflags{display:flex;align-items:center;gap:4px;color:var(--muted)}
.cflags svg{stroke:currentColor;fill:none}
.cdot{width:9px;height:9px;border-radius:50%;background:var(--orange)}
.star.on{color:#E0B93A}.star.on svg{fill:#E0B93A;stroke:#E0B93A}
.cav{flex:none;border-radius:50%;display:grid;place-items:center;background:var(--c,#5FAEB7);color:#fff;font:700 12px/1 var(--jp);letter-spacing:-.02em;width:34px;height:34px}
.cav.grp{background:var(--navy);color:#fff;width:34px;height:34px;border-radius:12px}
.cav.grp svg{stroke:currentColor;fill:none}
.cthread-wrap{display:flex;flex-direction:column;height:calc(100dvh - 210px);min-height:480px}
.cthread-wrap.cempty{justify-content:center;padding:20px}
.chead{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.chead-t{display:flex;flex-direction:column;min-width:0;flex:1}
.chead-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chead-a{display:flex;align-items:center;gap:2px;flex:none}
.chead .iconbtn,.ccomposer .iconbtn,.cmention .iconbtn{margin-left:0}
.chead .iconbtn[aria-pressed="true"]{background:var(--surface-2);color:var(--text)}
.cback{display:none}
.ctsearch{display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid var(--line)}
.ctsearch[hidden]{display:none}
.cnotice{margin:0;padding:8px 14px;border-bottom:1px solid var(--line)}
.cthread{flex:1;overflow:auto;padding:14px 16px 8px;display:flex;flex-direction:column;gap:2px;background:var(--surface-2)}
.cday{display:flex;justify-content:center;margin:14px 0 8px}
.cday span{font-size:12px;font-weight:700;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:3px 12px}
.csys{align-self:center;text-align:center;font-size:12.5px;color:var(--muted);margin:6px 0;max-width:90%}
.cmsg{display:flex;gap:8px;align-items:flex-start;margin-top:10px;max-width:min(560px,86%);position:relative}
.cmsg.grouped{margin-top:3px;padding-left:42px}
.cmsg.mine{align-self:flex-end;flex-direction:row-reverse}
.cmsg.mine.grouped{padding-left:0}
.cmsg.dim{opacity:.28}
.cbody{display:flex;flex-direction:column;min-width:0;gap:3px}
.cmsg.mine .cbody{align-items:flex-end}
.cwho{display:flex;gap:8px;align-items:baseline;font-size:13px}
.cbubble{padding:9px 13px;border-radius:16px;background:var(--surface);border:1px solid var(--line);font-size:14.5px;line-height:1.65;overflow-wrap:anywhere;max-width:100%}
.cmsg.other .cbubble{border-top-left-radius:6px}
.cmsg.mine .cbubble{background:var(--navy);border-color:var(--navy);color:#fff;border-top-right-radius:6px}
.cmsg.mine .cbubble a{color:#FFC69E}
.cmsg.tome .cbubble{border:2px solid var(--orange);background:color-mix(in srgb,var(--orange) 8%,var(--surface))}
.cmsg.flash .cbubble{box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 55%,transparent)}
.cbubble.media{padding:4px}
.cbubble.media img,.cbubble.media video{display:block;max-width:min(320px,100%);border-radius:12px}
.cbubble.prop{background:var(--surface);color:var(--text);border:1.5px solid color-mix(in srgb,var(--orange) 45%,var(--line))}
.cmsg.mine .cbubble.prop{background:var(--surface);color:var(--text);border-color:var(--line)}
.ctext a{color:var(--orange-ink);text-decoration:underline;overflow-wrap:anywhere}
.mention{font-weight:800;color:var(--orange-ink);background:color-mix(in srgb,var(--orange) 14%,transparent);border-radius:6px;padding:0 3px}
.cmsg.mine .mention{color:#FFC69E;background:rgba(255,255,255,.12)}
.cquote{display:block;width:100%;text-align:left;margin:0 0 6px;padding:6px 10px;border:0;border-left:3px solid var(--orange);border-radius:6px;background:color-mix(in srgb,var(--text) 6%,transparent);color:inherit;font:inherit;font-size:12.5px;line-height:1.5;cursor:pointer;opacity:.9;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cmsg.mine .cquote{background:rgba(255,255,255,.12)}
.cquote b{margin-right:6px}
.cdel{margin:0;font-style:italic;opacity:.7;font-size:13px}
.cfoot{display:flex;gap:8px;align-items:center;font-size:11.5px}
.cack{display:inline-flex;align-items:center;gap:3px;padding:1px 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ok);font:700 11.5px/1.6 var(--en);cursor:pointer}
.cack svg{stroke:currentColor;fill:none}
.cack.on{background:color-mix(in srgb,var(--ok) 14%,var(--surface));border-color:color-mix(in srgb,var(--ok) 40%,var(--line))}
.cact{display:none;gap:2px;flex-wrap:wrap;padding:3px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.cact button{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:0;border-radius:8px;background:none;color:var(--text);font:600 12px/1 var(--jp);cursor:pointer}
.cact button:hover{background:var(--surface-2)}
.cact button[aria-pressed="true"]{color:var(--ok)}
.cact svg{stroke:currentColor;fill:none}
.cmsg.show .cact{display:flex}
@media (hover:hover){.cmsg:hover .cact,.cmsg:focus-within .cact{display:flex}}
.cfiles{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.cimg img{display:block;max-width:min(260px,100%);max-height:220px;border-radius:10px;object-fit:cover}
.cfile{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);text-decoration:none;max-width:100%}
.cmsg.mine .cfile{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#fff}
.cfile svg{stroke:currentColor;fill:none;flex:none}
.cfile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:13px}
.cvote{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 14px;border-top:1px solid var(--line)}
.cvote .link{display:inline-flex;align-items:center;gap:4px}
.cvote svg{stroke:currentColor;fill:none}
.ccomposer{position:relative;display:flex;flex-direction:column;gap:6px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}
.ccomposer.is-off{align-items:center;padding:14px}
.cinput{resize:none;min-height:44px;max-height:180px;line-height:1.6;padding:10px 12px}
.cbar{display:flex;align-items:center;gap:4px}
.cbar .iconbtn{color:var(--muted)}
.cbar .csend{margin-left:auto}
.cbar .csend svg{stroke:currentColor;fill:none}
.chint{margin-left:6px}
.creply,.cpicked{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:var(--surface-2)}
.creply[hidden],.cpicked[hidden],.cmention[hidden]{display:none}
.creply svg{stroke:currentColor;fill:none;flex:none}
.creply span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.creply .iconbtn{margin-left:auto;width:28px;height:28px}
.cpicked .chip{display:inline-flex;align-items:center;gap:6px;cursor:default;max-width:100%}
.cpicked .chip svg{stroke:currentColor;fill:none}
.cpicked .chip button{border:0;background:none;color:var(--muted);cursor:pointer;font-size:15px;padding:0 2px}
.cmention{position:absolute;left:12px;right:12px;bottom:calc(100% - 4px);z-index:5;display:flex;flex-direction:column;max-height:240px;overflow:auto;padding:4px;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.cmention button{display:flex;align-items:center;gap:8px;padding:8px 10px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.cmention button:hover,.cmention button:focus-visible{background:var(--surface-2)}
.cmention .cav{width:26px;height:26px;font-size:11px}
@media (max-width:760px){
  .chat{grid-template-columns:1fr;gap:0}
  .chat.has-thread .clist{display:none}
  .chat:not(.has-thread) .cthread-wrap{display:none}
  .clist{max-height:none;min-height:0}
  .cthread-wrap{height:calc(100dvh - 300px - env(safe-area-inset-bottom,0px));min-height:360px}
  .chat.has-thread .cthread-wrap{margin-bottom:8px}
  .cback{display:grid}
  .chint{display:none}
  .cmsg{max-width:92%}
  .chead-a .iconbtn{width:32px}
  .evwho{margin-left:0}
}
@media (max-width:760px){.chead-a .pill{display:none}}

/* 使い方の案内（チュートリアル） */
.tour{display:flex;flex-direction:column;gap:12px}
.tour-ic{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--sky-light);margin-top:4px}
.tour-ic svg{width:28px;height:28px;stroke:var(--text);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tour-t{font-size:22px;margin:0}
.tour-b{margin:0;line-height:1.8}
.tour-go{align-self:flex-start;color:var(--orange-ink);font-weight:700}
.tour-dots{display:flex;gap:6px;justify-content:center;margin-top:4px}
.tour-dots span{width:7px;height:7px;border-radius:50%;background:var(--line);transition:width .2s}
.tour-dots span.on{width:20px;border-radius:999px;background:var(--navy)}
.tour-nav{display:flex;justify-content:space-between;gap:10px}
.tour-nav .btn{min-width:110px}

/* ホームの直近のイベント：行ごと押せる */
.evrow{width:100%;border:0;background:none;padding:6px 4px;margin:-6px -4px;border-radius:14px;text-align:left;color:var(--text);cursor:pointer;font:inherit}
.evrow:hover,.evrow:focus-visible{background:var(--sky-light)}
.evrow-go{font-size:22px;color:var(--muted);line-height:1}

/* ホーム画面に追加の案内 */
.install .ititle{display:block;font-size:15px;margin-bottom:10px}
.install .itabs{margin:0 0 12px}
.install .chip small{font-size:11px;font-weight:500;margin-left:2px;opacity:.8}
.isteps .ist{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.iglyph{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--surface-2,var(--bg));color:#0A84FF;flex:none}
.iglyph svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.iquick{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border-radius:14px;background:var(--sky-light);margin-bottom:12px}
.iquick .btn .iglyph{width:22px;height:22px;border:0;background:none;color:inherit}
.iwarn{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--warn) 12%,var(--surface));margin-bottom:12px;font-size:13.5px}
.iwarn b{font-size:14.5px}
.iswitch{margin-top:10px;display:inline-block;text-align:left}
.iok{display:flex;gap:12px;align-items:center}
.iok .iglyph{color:var(--ok);width:36px;height:36px}

/* その他のメニュー：まとまりごとの見出し */
.mgroup{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-top:1px solid var(--line)}
.mgroup:first-of-type{border-top:0;padding-top:0}
.mhead{font-size:12px;font-weight:700;color:var(--muted);padding:6px 12px 2px;letter-spacing:.04em}

/* スマホ：会員登録の手順の表示を1行に、下のメニューの文字を少し大きく */
@media (max-width:760px){
  .steps{flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none}
  .steps span{padding:5px 10px;font-size:12px;flex:none}
  .tabbar button{font-size:11px}
}
.install .itabs{flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none}
.install .itabs .chip{flex:none;padding:6px 11px;font-size:13px}
.sheet h2 + .mgroup{border-top:0;padding-top:0}

/* チャットの入力欄：textarea.f の既定の高さ（96px・伸縮のつまみ）を使わない */
textarea.f.cinput{min-height:44px;resize:none}
.chmore{display:none}

/* スマホ：会話を開いたら全画面（下のメニュー・見出しを隠す。ほかの画面へは会話の「戻る」から） */
@media (max-width:760px){
  body.chat-full{overflow:hidden}
  body.chat-full .tabbar,body.chat-full #bellfab,body.chat-full .nudge,body.chat-full .demo,body.chat-full .aura{display:none!important}
  body.chat-full #view > :not(.chat){display:none}
  body.chat-full .chat.has-thread .cthread-wrap{position:fixed;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh);min-height:0;margin:0;z-index:58;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top,0px)}
  body.chat-full .chead{padding:8px 10px;gap:8px}
  body.chat-full .cback{width:40px;height:40px}
  .chead-a [data-do="files"],.chead-a [data-do="star"],.chead-a [data-do="mute"]{display:none}
  .chmore{display:grid}
  /* 入力欄は1行：添付・メンション・入力・送信を横に並べる */
  .ccomposer:not(.is-off){flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))}
  .ccomposer .creply,.ccomposer .cpicked{flex-basis:100%;order:-1}
  .ccomposer .cbar{display:contents}
  .ccomposer .cbar .iconbtn{order:1;width:38px;height:44px}
  .ccomposer .cinput{order:2;flex:1;min-width:0;width:auto;border-radius:22px;padding:10px 14px;font-size:16px}
  .ccomposer .chint{display:none}
  .ccomposer .csend{order:3;margin-left:0;height:44px;padding:0 14px}
}

/* アカウントの切り替え */
.me-btn{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:none;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer;border-radius:12px}
.me-btn:hover b{text-decoration:underline;text-underline-offset:3px}
.accts{display:flex;flex-direction:column;gap:6px}
.acct{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);text-align:left;font:inherit;cursor:pointer}
.acct.on{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);cursor:default}
.acct.add{border-style:dashed}
.acct-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--sky-light);font-weight:700}
.acct-av svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.acct-t{display:flex;flex-direction:column;min-width:0;flex:1}
.acct-t b,.acct-t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-ck svg{width:22px;height:22px;stroke:var(--ok);fill:none;stroke-width:2}
.acct-sw{color:var(--orange-ink);font-weight:700;flex:none}
.mgroup .accts{padding:4px 0 6px}
