/* girl-demo mobile polish (2026-11-13). Scoped; does not change /board /g business markup. */
@font-face{font-family:'ZenMaru';src:url(/static/fonts/zenmaru-Medium.woff2) format('woff2');font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:'ZenMaru';src:url(/static/fonts/zenmaru-Bold.woff2) format('woff2');font-weight:600 800;font-style:normal;font-display:swap}

/* iOS Safari: inputs must be >=16px or the page zooms on focus */
input,textarea,select{font-size:16px !important}
input[type=checkbox],input[type=radio],input[type=color],input[type=range],input[type=file],input[type=hidden]{font-size:inherit !important}

/* safe-area + taller bottom nav */
.wrap{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))}
.nav{padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px))}
.nav a,.nav button{min-height:44px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 8px}
.toast{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.sheet{padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}

/* 44px hit areas */
.btn.sm{min-height:44px;min-width:44px;padding:10px 14px;box-sizing:border-box}
body.admin .topstat,body.admin .langsw a,body.admin .top .brand,
body.admin a[href="/admin"],
.wrap > a[href^="/board"],
a.glink, a.hit44{
  min-height:44px;display:inline-flex;align-items:center;box-sizing:border-box
}
body.admin .langsw a{min-width:44px;padding:10px 12px;justify-content:center}
body.admin .topstat{padding:10px 12px}
body.girl form[action="/logout"] button,
.news-open,.news-ok{
  min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;box-sizing:border-box
}
.todayr-x,.lineprompt button,
.ph figure form button,.ph figure .btn{
  width:44px !important;height:44px !important;min-width:44px;min-height:44px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center
}
.nav svg.ico{width:20px;height:20px;display:block;margin:0 auto 2px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ご確認ください typography + missing-glyph decorations as SVG */
.news-h{align-items:flex-start}
.news-h b{line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
body.girl .mhead h2::before,body.girl .mhead h2::after{
  content:"" !important;display:inline-block;width:.72em;height:.72em;margin:0 .12em;vertical-align:-.05em;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffb3c4' d='M12 2c.4 3.4 2 6.2 5 7.2-3 .8-4.6 3.6-5 7.2-.4-3.6-2-6.4-5-7.2 3-1 4.6-3.8 5-7.2z'/><circle cx='12' cy='12' r='2.1' fill='%23ff8fab'/></svg>") center/contain no-repeat
}
body.girl .top .serif::after{
  content:"" !important;display:inline-block;width:.75em;height:.75em;margin-left:.15em;vertical-align:-.05em;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ff8fab' d='M12 21s-7-4.6-9.3-8.2C.8 10.2 1.6 7 4.5 6.1 6.4 5.5 8.3 6.3 12 9.6c3.7-3.3 5.6-4.1 7.5-3.5 2.9.9 3.7 4.1 1.8 6.7C19 16.4 12 21 12 21z'/></svg>") center/contain no-repeat
}

/* press micro-scale */
.news-open,.news-ok,.todayr-x,.topstat,.langsw a,.nav a,.nav button,.glink,.btn,.hit44{transition:transform .18s ease,box-shadow .18s,filter .18s}
.news-open:active,.news-ok:active,.todayr-x:active,.topstat:active,.langsw a:active,.nav a:active,.nav button:active,.glink:active,.hit44:active{transform:scale(.96)}

/* modal: lock background scroll when a sheet / time-picker / lightbox is open */
body:has(.veil.show),body:has(.tp-veil.show),body:has(#lb:not([hidden])){overflow:hidden;overscroll-behavior:none}

/* loading hint */
#busy-bar{position:fixed;left:0;top:0;right:0;height:3px;z-index:400;pointer-events:none;opacity:0;background:linear-gradient(90deg,#ff7a8a,#ffa36b,#7dd3fc);background-size:200% 100%;transition:opacity .2s}
html.is-busy #busy-bar,body.admin #busy-bar.is-on,html.is-busy #busy-bar{opacity:1;animation:busySlide 1s linear infinite}
#busy-toast{position:fixed;left:50%;bottom:calc(108px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:rgba(30,25,20,.92);color:#fff;padding:8px 14px;border-radius:999px;font-size:13px;z-index:401;opacity:0;pointer-events:none;transition:opacity .2s}
html.is-busy #busy-toast{opacity:1}
@keyframes busySlide{to{background-position:200% 0}}
body.admin #busy-bar{background:linear-gradient(90deg,#38bdf8,#0284c7,#38bdf8);background-size:200% 100%}

/* admin tables → cards on phone; names wrap as words, 状态 not clipped */
@media (max-width:760px){
  body.admin .tbl-cards,body.admin table.sttab,body.admin .scrollbox table{
    display:block !important;width:100% !important;overflow:visible !important;border:0 !important
  }
  body.admin .tbl-cards thead,body.admin .tbl-cards tr:first-child:has(th),
  body.admin table.sttab thead,body.admin .scrollbox table tr:first-child:has(th){display:none !important}
  body.admin .tbl-cards tbody,body.admin table.sttab tbody,body.admin .scrollbox table tbody{display:block !important}
  body.admin .tbl-cards tr,body.admin table.sttab tr,body.admin .scrollbox table tr{
    display:block !important;width:100% !important;margin:0 0 10px !important;padding:12px 14px !important;
    background:#fff !important;border:1px solid #cbd5e1 !important;border-radius:14px !important;
    box-shadow:0 4px 14px rgba(15,23,42,.06) !important
  }
  body.admin .tbl-cards td,body.admin table.sttab td,body.admin .scrollbox table td{
    display:flex !important;align-items:center !important;gap:8px !important;width:100% !important;
    border:0 !important;border-bottom:1px dashed #e2e8f0 !important;padding:8px 0 !important;
    white-space:normal !important;word-break:normal !important;overflow-wrap:anywhere !important;
    line-height:1.45 !important
  }
  body.admin .tbl-cards td:last-child,body.admin table.sttab td:last-child,body.admin .scrollbox table td:last-child{border-bottom:0 !important}
  body.admin .tbl-cards td::before,body.admin table.sttab td::before,body.admin .scrollbox table td::before{
    content:attr(data-label);flex:0 0 4.6em;color:#64748b;font-size:12px;font-weight:700;letter-spacing:.04em
  }
  body.admin .tbl-cards td:not([data-label])::before,body.admin table.sttab td:not([data-label])::before,
  body.admin .scrollbox table td:not([data-label])::before,
  body.admin .tbl-cards td[data-label=""]::before,body.admin table.sttab td[data-label=""]::before,
  body.admin .scrollbox table td[data-label=""]::before{content:none;flex:none;display:none}
  body.admin .tbl-cards td.td-av{justify-content:flex-start}
  body.admin .tbl-cards .pill{white-space:nowrap;flex:none}
  body.admin .scrollbox{max-height:none;overflow:visible;border:0;background:transparent;padding:0}
  body.admin .scrollbox td .btn{padding:10px 12px !important;font-size:14px !important;min-height:44px}
  body.admin .ltrow{background:#fff;border:1px solid #cbd5e1;border-radius:14px;padding:12px;margin:0 0 10px;border-top:0}
  body.admin .ltrow input:not([type=color]),body.admin .ltrow select{min-height:44px}
}

/* public pages: only typography/hit-area; no business markup change */
.wrap > a[href^="/board"]{padding:8px 4px}

/* leftover 44px: month arrows, shift chips, filter pills, text links */
.arrow{width:44px !important;height:44px !important;min-width:44px;min-height:44px;box-sizing:border-box}
.segadd{min-height:44px !important;display:inline-flex;align-items:center;justify-content:center}
.chip{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;box-sizing:border-box}
@media (max-width:760px){
  body.admin a.pill,body.admin .pill{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;box-sizing:border-box}
  body.admin a.sm,body.admin .ltrow a,body.admin .ltrk a{min-height:44px;display:inline-flex;align-items:center}
}

/* prod sttab-full (display:table + nowrap) must yield to cards on phone */
@media (max-width:760px){
  body.admin table.sttab th:first-child,
  body.admin table.sttab td:first-child{
    overflow:visible !important;
    text-overflow:unset !important;
    white-space:normal !important;
    width:auto !important;
  }
}

/* compact expandable /admin girl list */
.exp-btn{display:none}
@media (max-width:760px){
  body.admin .adm-glist tr{position:relative;cursor:pointer;transition:box-shadow .16s,border-color .16s}
  body.admin .adm-glist tr:not(.is-open){
    display:grid !important;
    grid-template-columns:44px auto minmax(0,1fr) auto auto auto;
    grid-template-areas:
      "av num name line stat act"
      "av today today today today act";
    align-items:center;column-gap:8px;row-gap:2px;
    padding:9px 10px !important;margin:0 0 8px !important;
  }
  body.admin .adm-glist tr:not(.is-open) td{
    border:0 !important;padding:0 !important;margin:0 !important;width:auto !important;min-width:0;
  }
  body.admin .adm-glist tr:not(.is-open) td::before{display:none !important;content:none !important}
  body.admin .adm-glist tr:not(.is-open) td.hide-m{display:none !important}
  body.admin .adm-glist tr:not(.is-open) td.td-av{grid-area:av}
  body.admin .adm-glist tr:not(.is-open) td.td-av .av-s{width:42px;height:42px}
  body.admin .adm-glist tr:not(.is-open) td.td-num{grid-area:num;font-size:14px;font-weight:800;white-space:nowrap}
  body.admin .adm-glist tr:not(.is-open) td.td-name{grid-area:name}
  body.admin .adm-glist tr:not(.is-open) td.td-name a.glink{
    min-height:30px;line-height:30px;font-size:15px;font-weight:700;
    display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
  }
  body.admin .adm-glist tr:not(.is-open) td.td-today{
    grid-area:today;font-size:12px;color:#64748b;line-height:1.35;
    white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;display:block !important;
  }
  body.admin .adm-glist tr:not(.is-open) td.td-today::before{
    display:inline !important;content:"今日 " !important;color:#94a3b8;font-weight:600;flex:none;margin-right:2px;
  }
  body.admin .adm-glist tr:not(.is-open) td.td-line{grid-area:line;font-size:13px}
  body.admin .adm-glist tr:not(.is-open) td.td-stat{grid-area:stat}
  body.admin .adm-glist tr:not(.is-open) td.td-stat .pill{
    min-height:24px !important;padding:2px 8px !important;font-size:11px !important;line-height:1.2;
  }
  body.admin .adm-glist tr:not(.is-open) td.td-act{grid-area:act;justify-content:flex-end}
  body.admin .adm-glist tr:not(.is-open) .act-view{display:none !important}
  body.admin .adm-glist .exp-btn{
    display:inline-flex;align-items:center;justify-content:center;
    width:40px;height:40px;min-width:40px;min-height:40px;
    border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#475569;
    font-size:15px;font-weight:700;cursor:pointer;padding:0;transition:transform .18s ease,background .18s;
  }
  body.admin .adm-glist tr.is-open .exp-btn{transform:rotate(180deg);background:#eef2ff;border-color:#93c5fd;color:#1d4ed8}
  body.admin .adm-glist tr.is-open td.td-act{justify-content:space-between;gap:10px}
}
