/* シフト表メーカー: 係の道具箱と同じ「方眼紙の机」の見た目。PC を先に、スマホは下の @media で */
:root {
  --paper: #f4f1ea; --grid: #e7e2d5; --card: #fffdf8; --ink: #22304f; --ink2: #5b6680; --line: #e3dccb;
  --pri: #2f6fd0; --pri-d: #1f4f9e; --pri-t: #e3ecfb; --red: #d8462a; --yellow: #ffcf48; --green: #2e7d67;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --shadow: 0 2px 0 rgba(34, 48, 79, .06), 0 10px 26px rgba(34, 48, 79, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.75;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: var(--pri); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 900; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: 8px 15px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--pri); border-color: var(--pri-d); color: #fff; box-shadow: 0 3px 0 var(--pri-d); }
.btn.primary:hover { box-shadow: 0 4px 0 var(--pri-d); }
.btn.big { padding: 12px 26px; font-size: 18px; border-radius: 14px; font-weight: 900; }
.btn.ghost { border-color: var(--line); box-shadow: none; }
.btn.disabled { background: #eee9dd; border-color: #cfc7b4; color: var(--ink2); box-shadow: none; cursor: default; transform: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .tabs button:focus-visible, .modes button:focus-visible, .pen:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--pri); text-decoration: underline; cursor: pointer; font-weight: 700; font-size: 14px; }
.link.danger { color: #b3261e; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.badges li { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--ink2); }
.badges li::before { content: "✓ "; color: var(--green); }

/* ---- ヘッダー ---- */
.hdr { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 10px 28px; background: rgba(255, 253, 248, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo b { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; letter-spacing: .02em; }
.logo small { display: block; font-size: 11px; color: var(--ink2); line-height: 1.2; }
.tnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.tnav::-webkit-scrollbar { display: none; }
.tnav a { flex: none; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; padding: 5px 11px; border-radius: 99px; border-bottom: 3px solid transparent; }
.tnav a:hover, .tnav a.on { background: #fff; border-bottom-color: var(--pri); }

/* ---- アプリ ---- */
.app, .doc, .read { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 0 18px; }
.app-head h1 { font-size: clamp(25px, 2.6vw, 34px); }
.app-head h1 .mark { background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%); padding: 0 4px; }
.app-head .lead { margin-top: 6px; color: var(--ink2); max-width: 820px; }
.app-head .badges { margin-top: 10px; }
.plan { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 900; font-size: 15px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 16px; }
.plan.full { border-color: var(--green); color: var(--green); }
.plan .link { font-size: 13px; }

.setup, .board { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
.setup { padding: 0 0 18px; margin-bottom: 22px; overflow: hidden; }
.tabs { display: flex; gap: 0; background: #efe9db; border-bottom: 2px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; border: 0; border-right: 1.5px solid #d9d1bd; background: none; padding: 11px 16px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.tabs button:last-child { border-right: 0; }
.tabs button i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: #d9d1bd; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.tabs button small { font-size: 12px; background: #fff; border-radius: 99px; padding: 0 8px; color: var(--ink2); }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: inset 0 -4px 0 var(--pri); }
.tabs button.on i { background: var(--pri); }
.pane { padding: 18px 22px 0; display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 220px minmax(0, 420px); gap: 16px; }
.f { display: grid; gap: 5px; min-width: 0; }
.f > label, .lab { font-weight: 700; font-size: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lab small { font-weight: 500; color: var(--ink2); font-size: 12.5px; }
.lock { font-style: normal; font-size: 12px; background: var(--pri-t); color: var(--pri-d); border-radius: 99px; padding: 0 10px; }
input[type=text], input[type=number], input[type=month], input[type=time], select { width: 100%; padding: 7px 10px; border: 2px solid #cfc7b4; border-radius: 10px; background: #fff; font-size: 16px; line-height: 1.4; min-width: 0; }
input[type=color] { width: 40px; height: 34px; padding: 2px; border: 2px solid #cfc7b4; border-radius: 9px; background: #fff; cursor: pointer; }
input:focus, select:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-t); }
input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--pri); }
.w2 { width: 54px !important; text-align: center; } .w3 { width: 68px !important; text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row input[type=text] { flex: 1 1 220px; width: auto; }
.row select { width: auto; flex: 0 1 240px; }
.hint { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.hint b { color: var(--ink); background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.privacy { background: #eef6f1; border-radius: 10px; padding: 8px 14px; color: #245d4d; font-weight: 700; }
.mini-links { text-align: right; }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.samples .btn { flex-direction: column; align-items: flex-start; white-space: normal; text-align: left; gap: 0; padding: 9px 14px; }
.samples .btn small { font-weight: 500; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.saves { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; max-width: 760px; }
.saves li { display: flex; align-items: baseline; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 5px 12px; }
.saves li small { color: var(--ink2); margin-right: auto; font-size: 13px; }
.tablewrap { overflow-x: auto; max-width: 100%; }
.ed { border-collapse: separate; border-spacing: 0; }
.ed th { font-size: 13px; font-weight: 700; color: var(--ink2); text-align: left; padding: 4px 6px; white-space: nowrap; }
.ed td { padding: 4px 5px; vertical-align: middle; }
.ed tbody tr:nth-child(even) td { background: #faf7f0; }
.ed .no { color: var(--ink2); font-size: 13px; text-align: center; }
.ed .hrs { font-size: 14px; font-weight: 700; white-space: nowrap; }
.ed .hrs i { font-style: normal; color: #c57a00; margin-left: 4px; cursor: help; }
.types-ed input[type=text]:not(.w2) { width: 120px; }
.types-ed input[type=time] { width: 118px; }
.staff-ed input[data-k=name] { width: 150px; }
.staff-ed select { width: 96px; }
.need-ed th.sat { color: var(--pri); } .need-ed th.sun { color: var(--red); }
.need-ed tbody th { color: var(--ink); white-space: nowrap; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .15); }
.cans { display: flex; flex-wrap: wrap; gap: 4px; }
.can { cursor: pointer; }
.can input { position: absolute; opacity: 0; pointer-events: none; }
.can span { display: block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 8px; border: 2px dashed #cfc7b4; color: #a39b88; background: #fff; white-space: nowrap; }
.can input:checked + span { background: var(--c); color: var(--ci); border: 2px solid rgba(0, 0, 0, .15); }
.can input:focus-visible + span { outline: 3px solid var(--yellow); }
.x { border: 0; background: #efe9db; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-weight: 900; color: var(--ink2); }
.x:hover { background: #ffd8cf; color: #b3261e; }
.ops { white-space: nowrap; } .ops .x + .x { margin-left: 4px; }
h3.sub { font-size: 16px; margin-top: 6px; padding-left: 10px; border-left: 6px solid var(--pri); }
h3.sub small { font-size: 12.5px; font-weight: 500; color: var(--ink2); margin-left: 8px; }
.rules { display: grid; gap: 12px; max-width: 860px; }
.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.chk input { margin-top: 4px; flex: none; }
.chk span { display: grid; }
.chk b { font-weight: 700; }
.chk small, .inline small { color: var(--ink2); font-size: 13px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.inline small { flex-basis: 100%; font-weight: 500; }

.board { padding: 18px 22px 22px; display: grid; gap: 12px; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.modes { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.modes button { border: 0; background: none; padding: 9px 18px; font-weight: 700; cursor: pointer; display: flex; gap: 6px; align-items: center; font-size: 15px; }
.modes button + button { border-left: 2px solid var(--ink); }
.modes button i { font-style: normal; font-weight: 900; }
.modes button.on { background: var(--ink); color: #fff; }
.notice { background: #fff4d6; border: 2px solid #f0d58a; border-radius: 12px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
.pens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pens-lab { font-size: 14px; font-weight: 700; color: var(--ink2); margin-right: 4px; }
.pen { border: 2px solid rgba(34, 48, 79, .25); background: var(--bg); color: var(--fg); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 99px; cursor: pointer; }
.pen.tool { border-style: dashed; color: var(--ink2); }
.pen.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.pens-more { margin-left: auto; display: flex; gap: 16px; }
.pen-hint { margin-top: -4px; }

.sheet { min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 8px; }
.sheet-head h2 { font-size: 22px; }
.sheet-head h2 span { margin-left: 6px; }
.sheet-head h2 em { font-style: normal; font-size: 14px; background: #ffd3dc; border-radius: 99px; padding: 1px 10px; margin-left: 8px; vertical-align: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-size: 12px; font-weight: 900; }
.legend i.ake { background: #e6e3f3; color: var(--ink); }
.legend i.hopei { background: #ffd3dc; color: var(--ink); }
.gridwrap { overflow-x: auto; max-width: 100%; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.roster { border-collapse: separate; border-spacing: 0; font-size: 14px; width: 100%; min-width: max-content; }
.roster th, .roster td { border-right: 1px solid #d8d1bf; border-bottom: 1px solid #d8d1bf; text-align: center; padding: 0; }
.roster thead th { background: #f6f2e8; font-weight: 700; font-size: 13px; line-height: 1.15; padding: 4px 0; min-width: 31px; }
.roster thead th small { display: block; font-size: 10.5px; font-weight: 500; }
.roster thead th.sat { color: var(--pri); } .roster thead th.sun { color: var(--red); }
.roster .nm { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; padding: 3px 10px; min-width: 128px; max-width: 170px; border-right: 2px solid var(--ink); }
.roster thead .nm { background: #f6f2e8; z-index: 3; }
.roster .nm b { display: block; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .nm small { display: block; font-size: 11px; color: var(--ink2); line-height: 1.2; }
.roster td.c { height: 38px; min-width: 31px; font-weight: 900; cursor: pointer; background: var(--bg, #fff); color: var(--fg, var(--ink)); position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.roster td.c.we { --bg0: #f8f5ed; }
.roster td.c:not([style]) { background: var(--bg0, #fff); }
.roster td.c:hover { outline: 2px solid var(--pri); outline-offset: -2px; z-index: 1; }
.roster td.c.off { color: #b8b09c; font-weight: 500; font-size: 12.5px; }
.roster td.c.off.hope, .roster td.c.rq.off { background: #ffd3dc; color: var(--ink); font-weight: 900; font-size: 14px; }
.roster td.c.rq:not(.off) { box-shadow: inset 0 0 0 3px #fff; border: 1px dashed var(--ink); }
.roster td.c.ake { background: #e6e3f3; color: #5a5490; font-size: 13px; }
.roster td.c.hope:not(.off)::before { content: ""; position: absolute; left: 2px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #e0457b; }
.roster td.c.pin::after { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent var(--ink) transparent transparent; }
.roster td.c.f-error { box-shadow: inset 0 0 0 3px #d93a1f; }
.roster td.c.f-warn { box-shadow: inset 0 0 0 3px #e7a10b; }
.roster td.c.flash { animation: flash 1.2s 2; }
@keyframes flash { 50% { box-shadow: inset 0 0 0 4px var(--yellow); background: #fff7c2; } }
.roster .tot { background: #f6f2e8; font-weight: 700; min-width: 48px; padding: 0 6px; font-size: 13.5px; }
.roster thead .tot { font-size: 12px; }
.roster tbody tr:hover .nm { background: #fff7d6; }
.roster tfoot td, .roster tfoot th { background: #fbf8f1; font-size: 12.5px; height: 28px; font-weight: 700; color: var(--ink2); }
.roster tfoot tr:first-child > * { border-top: 2px solid var(--ink); }
.roster tfoot th.nm { background: #fbf8f1; font-size: 12.5px; color: var(--ink); }
.roster tfoot td.short { background: #ffd0c4; color: #b3261e; }
.roster tfoot td.short small { font-size: 10px; }
.roster tfoot td.over { color: var(--pri); }
.roster .emptyrow { padding: 30px; color: var(--ink2); }
.note { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.credit { display: none; }
.check-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; background: #f6f2e8; border-radius: 12px; padding: 10px 16px; }
.check-sum b { font-size: 16px; }
.check-sum span { font-size: 14px; color: var(--ink2); }
.check-sum em { font-style: normal; color: #b3261e; font-weight: 700; }
.check-sum.good { background: #e3f3eb; color: #1f5f4c; }
.check-sum.bad { background: #ffe6df; }
.check-sum.bad b { color: #a3291b; }
.issues { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; max-height: 360px; overflow-y: auto; }
.issues li { font-size: 14px; display: flex; gap: 8px; align-items: baseline; padding: 4px 6px; border-radius: 8px; }
.issues li[data-d] { cursor: pointer; }
.issues li[data-d]:hover { background: #fff7d6; }
.issues li i { font-style: normal; flex: none; font-size: 11.5px; font-weight: 900; padding: 0 7px; border-radius: 6px; color: #fff; background: #d93a1f; }
.issues li.lv-warn i { background: #d08a00; }
.issues li.lv-info i { background: #8a93a6; }
.issues .more { color: var(--ink2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- 説明 ---- */
.article { max-width: 920px; margin: 48px auto 0; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 14px 40px 34px; box-shadow: var(--shadow); }
.article h2 { font-size: 23px; margin: 30px 0 12px; display: flex; align-items: center; gap: 10px; }
.article h2::before { content: ""; width: 12px; height: 24px; background: var(--pri); border-radius: 3px; flex: none; }
.article h3 { font-size: 18px; margin: 20px 0 8px; }
.article p { margin: 8px 0; }
.article ul, .article ol { padding-left: 1.4em; margin: 8px 0; }
.article li { margin: 4px 0; }
.steps { list-style: none; counter-reset: st; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.steps li { counter-increment: st; position: relative; padding: 10px 14px 10px 54px; background: #fff; border: 2px solid var(--line); border-radius: 12px; margin: 0; }
.steps li::before { content: counter(st); position: absolute; left: 12px; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 900; display: grid; place-items: center; }
.info { border-collapse: collapse; width: 100%; background: #fff; font-size: 15px; }
.info th, .info td { border: 1.5px solid #cfc7b4; padding: 7px 12px; text-align: left; vertical-align: top; }
.info thead th { background: var(--ink); color: #fff; }
.info tbody th { background: var(--pri-t); white-space: nowrap; }
.callout { background: #fff8e1; border: 2px solid #f0d58a; border-radius: 12px; padding: 10px 16px; margin: 12px 0; font-size: 15px; }
.callout.law { background: #eef3fb; border-color: #c4d4ef; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rcard { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.rcard b { font-size: 17px; line-height: 1.4; }
.rcard span { font-size: 14px; color: var(--ink2); }
.rcard em { font-style: normal; font-weight: 700; color: var(--pri); margin-top: auto; font-size: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 44px 12px 46px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 22px; font-weight: 900; color: var(--ink2); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 14px 46px; color: var(--ink2); }
.crumb { font-size: 13px; color: var(--ink2); display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.crumb a { color: var(--ink2); }
.read { max-width: 976px; padding-top: 24px; }
.read .article { margin-top: 18px; }
.hero-read h1 { font-size: clamp(26px, 3vw, 36px); }
.hero-read .lead { margin-top: 10px; color: var(--ink2); }
.toolbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.back { margin-top: 26px; font-weight: 700; }
.doc { max-width: 860px; padding-top: 26px; }
.doc h1 { font-size: 30px; margin-bottom: 16px; }
.doc h2 { font-size: 21px; margin: 28px 0 10px; padding-left: 12px; border-left: 8px solid var(--pri); }
.doc li { margin-bottom: 6px; }
.doc p { margin: 8px 0; }

/* ---- フッター ---- */
.foot { margin-top: 56px; background: var(--ink); color: #dfe4ee; padding: 40px 28px 20px; }
.foot-in { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand .logo-mark { width: 44px; height: 44px; background: #fff; border-radius: 12px; padding: 4px; }
.foot-brand b { font-size: 20px; font-weight: 900; color: #fff; }
.foot-brand p { font-size: 14px; opacity: .8; }
.foot nav { display: grid; gap: 2px; align-content: start; }
.foot h4 { font-size: 13px; color: var(--yellow); margin-bottom: 4px; letter-spacing: .08em; }
.foot a { color: #dfe4ee; text-decoration: none; font-size: 14px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.copy { max-width: 1144px; margin: 28px auto 0; font-size: 12px; opacity: .6; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }

/* ---- お知らせ・小窓 ---- */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: .22s; z-index: 60; max-width: min(92vw, 560px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
dialog { border: 2px solid var(--ink); border-radius: 18px; padding: 0; width: min(92vw, 520px); box-shadow: 0 8px 0 var(--ink); color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(34, 48, 79, .45); }
.dlg-in { padding: 22px 24px; display: grid; gap: 12px; }
.dlg-in h3 { text-align: center; font-size: 21px; }
.reason { background: #fff4d6; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14.5px; }
.okmsg { background: #e3f3eb; color: #1f5f4c; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.up-list { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; font-size: 15px; }
.price { text-align: center; }
.price b { font-size: 30px; font-weight: 900; color: var(--pri-d); margin-right: 4px; }
.price small { display: block; font-size: 13px; color: var(--ink2); }
.dlg-in .btn.big { width: 100%; }
.msg { font-size: 14px; font-weight: 700; color: #b3261e; min-height: 1.5em; }
.dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg-btns.one { grid-template-columns: 1fr; }

/* ---- タブレット・スマホ ---- */
@media (max-width: 920px) {
  .hdr { padding: 8px 14px; gap: 10px; flex-wrap: wrap; }
  .tnav { margin: 0 -14px; padding: 0 14px; width: calc(100% + 28px); order: 3; }
  .logo small { display: none; }
  .logo-mark { width: 32px; height: 32px; }
  html { scroll-padding-top: 104px; }
  .app, .doc, .read { padding: 0 16px; }
  .app-head { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 0 14px; }
  .plan { flex-direction: row; justify-content: space-between; align-items: center; }
  .grid2 { grid-template-columns: 1fr; }
  .samples { grid-template-columns: 1fr; }
  .issues { grid-template-columns: 1fr; }
  .cards, .cards.c3 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .article { padding: 6px 18px 26px; margin-top: 32px; }
}
@media (max-width: 560px) {
  .pane { padding: 14px 14px 0; }
  .board { padding: 14px 12px 16px; }
  .tabs button { padding: 10px 12px; font-size: 14px; }
  .board-top { flex-direction: column; align-items: stretch; }
  .board-top .btn.big { width: 100%; }
  .modes button { flex: 1; justify-content: center; padding: 9px 6px; font-size: 14px; }
  .pens-more { margin-left: 0; width: 100%; justify-content: flex-end; }
  .roster .nm { min-width: 84px; max-width: 96px; padding: 3px 6px; }
  .roster .nm b { font-size: 13px; }
  .actions .btn { flex: 1 1 46%; padding: 9px 8px; font-size: 14px; }
  .sheet-head h2 { font-size: 19px; }
  .staff-ed thead { display: none; }
  .staff-ed, .staff-ed tbody { display: block; }
  .staff-ed tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "no name name kind kind" ". nw nmin nmax ops" ". can can can can"; gap: 6px; padding: 10px 4px; border-bottom: 1.5px solid var(--line); }
  .staff-ed tbody tr:nth-child(even) td { background: none; }
  .staff-ed tbody tr:nth-child(even) { background: #faf7f0; }
  .staff-ed td { padding: 0; }
  .staff-ed .no { grid-area: no; align-self: center; } .staff-ed .nname { grid-area: name; } .staff-ed .nkind { grid-area: kind; } .staff-ed .ops { grid-area: ops; align-self: end; }
  .staff-ed .nw { grid-area: nw; } .staff-ed .nmin { grid-area: nmin; } .staff-ed .nmax { grid-area: nmax; } .staff-ed .ncan { grid-area: can; }
  .staff-ed td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 700; color: var(--ink2); line-height: 1.4; }
  .staff-ed input[data-k=name], .staff-ed select, .staff-ed .w3 { width: 100% !important; }
}

/* ---- 印刷: A4横に表だけ ---- */
@page { size: A4 landscape; margin: 8mm; }
@media print {
  .noprint, .hdr, .foot, .setup, .app-head, .article, #toast, dialog { display: none !important; }
  html, body { background: #fff !important; font-size: 10pt; }
  .app { max-width: none; padding: 0; }
  .board { border: 0; box-shadow: none; padding: 0; background: #fff; display: block; }
  .sheet-head { margin-bottom: 2mm; }
  .sheet-head h2 { font-size: 14pt; }
  .legend { font-size: 8pt; color: #333; }
  .gridwrap { overflow: visible; border: 1px solid #333; border-radius: 0; }
  .roster { width: 100%; min-width: 0; table-layout: fixed; font-size: 8.5pt; }
  .roster thead th, .roster td.c, .roster .tot { min-width: 0; }
  .roster td.c { height: 6.2mm; }
  .roster .nm { position: static; min-width: 0; width: 24mm; max-width: none; padding: 0 1.5mm; border-right: 1px solid #333; }
  .roster .tot { width: 10mm; padding: 0; }
  .roster thead { display: table-header-group; }
  .roster tr { break-inside: avoid; }
  .roster td.c, .roster td.c.ake, .roster td.c.off.hope, .legend i, .roster tfoot td.short { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .roster td.c.f-error, .roster td.c.f-warn { box-shadow: none; }
  .roster td.c.pin::after { display: none; }
  .credit { display: block; text-align: right; font-size: 7pt; color: #888; margin-top: 1mm; }
}
