/* 朝霞市卓球協会 団体戦：スマホ向けページ共通（申込・受付・オーダー・結果入力） */
:root { --blue:#2563eb; --blue-d:#1d4ed8; --blue-l:#eff6ff; --bg:#f4f6f8; --line:#d9dee3; --text:#1f2937; --muted:#6b7280; --ok:#16a34a; --ok-l:#f0fdf4; --warn:#b45309; --warn-l:#fffbeb; --red:#dc2626; --red-l:#fef2f2; --male:#1e40af; --male-l:#dbeafe; --female:#9d174d; --female-l:#fce7f3; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif; background:var(--bg); color:var(--text); -webkit-text-size-adjust:100%; line-height:1.55; }
header.top { background:var(--blue); color:#fff; padding:14px 16px 12px; position:sticky; top:0; z-index:5; }
header.top h1 { margin:0; font-size:18px; }
header.top p { margin:2px 0 0; font-size:13px; opacity:.92; }
main { max-width:560px; margin:0 auto; padding:14px 14px 60px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:12px; }
.card h2 { margin:0 0 10px; font-size:16px; }
.how { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; font-size:13.5px; line-height:1.7; margin-bottom:12px; }
.how ol, .how ul { margin:0; padding-left:1.3em; }
.how b { color:var(--blue-d); }
label.f { display:block; font-size:13px; font-weight:700; color:#374151; margin:10px 0 4px; }
label.f .req { color:var(--red); font-size:11.5px; margin-left:4px; }
input.in, select.in, textarea.in { width:100%; padding:11px 12px; font-size:16px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--text); }
textarea.in { min-height:72px; }
input.in:focus, select.in:focus, textarea.in:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.hint { font-size:12.5px; color:var(--muted); margin-top:4px; line-height:1.6; }
.btn { border:none; border-radius:10px; padding:11px 16px; font-size:15px; font-weight:700; cursor:pointer; white-space:nowrap; background:var(--blue); color:#fff; font-family:inherit; }
.btn.ghost { background:#fff; color:var(--blue); border:1px solid var(--blue); }
.btn.gray { background:#fff; color:#374151; border:1px solid var(--line); }
.btn.ok { background:var(--ok); }
.btn.danger { background:var(--red); }
.btn.wide { width:100%; padding:15px; font-size:17px; }
.btn.sm { padding:7px 11px; font-size:13px; }
.btn:disabled { opacity:.5; cursor:default; }
.row2 { display:flex; gap:10px; }
.row2 > * { flex:1; }
.seg { display:flex; gap:8px; margin-bottom:12px; }
.seg button { flex:1; border:2px solid var(--line); background:#fff; border-radius:12px; padding:11px; font-size:16px; font-weight:800; color:var(--muted); cursor:pointer; font-family:inherit; }
.seg button.on.male { border-color:var(--male); background:var(--male-l); color:var(--male); }
.seg button.on.female { border-color:var(--female); background:var(--female-l); color:var(--female); }
.seg button.on { border-color:var(--blue); background:var(--blue-l); color:var(--blue-d); }
.list .item { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:8px; display:flex; align-items:center; gap:10px; cursor:pointer; width:100%; text-align:left; font-family:inherit; font-size:inherit; color:inherit; }
.list .item:active { background:var(--blue-l); }
.item .who { flex:1; min-width:0; }
.item .name { font-weight:800; font-size:16px; }
.item .sub { font-size:12.5px; color:var(--muted); margin-top:1px; }
.badge { display:inline-block; font-size:12px; padding:3px 9px; border-radius:12px; white-space:nowrap; font-weight:700; }
.badge.ok { background:var(--ok-l); color:var(--ok); }
.badge.warn { background:var(--warn-l); color:var(--warn); }
.badge.gray { background:#f3f4f6; color:var(--muted); }
.badge.red { background:var(--red-l); color:var(--red); }
.badge.blue { background:var(--blue-l); color:var(--blue-d); }
.msg { border-radius:10px; padding:10px 12px; font-size:14px; line-height:1.6; margin:10px 0; }
.msg.err { background:var(--red-l); color:#991b1b; font-weight:700; }
.msg.ok { background:var(--ok-l); color:#166534; font-weight:700; }
.msg.warn { background:var(--warn-l); color:#78350f; }
.msg.info { background:var(--blue-l); color:#1e3a8a; }
.empty, .loading { text-align:center; color:var(--muted); padding:30px 10px; }
.toast { position:fixed; left:50%; top:12px; transform:translateX(-50%); background:#111827; color:#fff; padding:11px 16px; border-radius:10px; font-size:14.5px; z-index:50; max-width:92vw; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.toast.err { background:var(--red); }
.toast.ok { background:var(--ok); }
.sheet-bg { position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:flex-end; justify-content:center; z-index:20; }
.sheet { background:#fff; width:100%; max-width:560px; max-height:92vh; overflow:auto; border-radius:18px 18px 0 0; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet h2 { margin:0 0 12px; font-size:18px; }
.kv { display:grid; grid-template-columns:auto 1fr; gap:6px 12px; font-size:15px; margin:0 0 12px; }
.kv dt { color:var(--muted); }
.kv dd { margin:0; font-weight:700; }
.pw { display:flex; gap:10px; justify-content:center; margin:8px 0; }
.pw input { width:56px; height:64px; font-size:30px; font-weight:800; text-align:center; border:2px solid var(--line); border-radius:12px; }
.pw input:focus { outline:none; border-color:var(--blue); }
.back { display:inline-block; color:var(--blue); font-size:14px; margin:0 0 10px; background:none; border:none; padding:4px 0; cursor:pointer; font-family:inherit; }
.mrow { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid #eef0f2; }
.mrow:last-child { border-bottom:0; }
.mrow .no { width:24px; height:24px; border-radius:50%; background:#e5e7eb; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; }
.mrow .nm { flex:1; min-width:0; }
.mrow .nm b { font-size:15.5px; }
.mrow .nm small { display:block; font-size:12px; color:var(--muted); }
.ftag { font-size:11px; background:var(--female-l); color:var(--female); border-radius:6px; padding:0 5px; font-weight:700; margin-left:4px; }
