:root {
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
  color: #172d28;
  background: #eef2ee;
  --green: #123e35;
  --muted: #4d635b;
  --line: #cad7d0;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0 }
.site-head { background: var(--green); color: #fff }
.head-inner { max-width: 840px; margin: auto; padding: .8rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem }
.brand { font-weight: 750 }
.brand span { font-weight: 500; margin-left: .4rem; color: #c3e4d4 }
#account { display: flex; gap: .55rem; align-items: center; font-size: .85rem }
#account button { background: transparent; color: white; border-color: #8eb2a3 }
main { max-width: 840px; margin: auto; padding: 1rem 1rem 3rem }
.intro { padding: .65rem 0 .8rem }
h1 { font-size: clamp(1.65rem, 6.5vw, 2.4rem); margin: 0; letter-spacing: .035em }
h2 { margin: 0 0 .7rem; font-size: 1.25rem }
h3 { margin: 0 0 .55rem; font-size: 1.01rem }
p { margin: 0 0 .85rem; line-height: 1.55 }
p:last-child { margin-bottom: 0 }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: .85rem }
.muted { color: var(--muted); font-size: .9rem }
label { display: grid; gap: .4rem; font-weight: 650; min-width: 0 }
input, select, button, .button {
  font: inherit; color: inherit; min-height: 44px; max-width: 100%; min-width: 0;
  border: 1px solid #a6b9af; border-radius: 8px; padding: .5rem .65rem; background: #fff;
}
input, select { width: 100% }
input[type=file] { border-style: dashed; background: #f3f7f3; font-size: .95rem }
button, .button { cursor: pointer; font-weight: 700; text-decoration: none; text-align: center; display: inline-grid; place-items: center }
button:disabled { opacity: .65; cursor: wait }
.primary, button[aria-current=page] { background: var(--green); color: white; border-color: var(--green) }
form, .stack { display: grid; gap: .8rem }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem }
@media(min-width:700px) {
  .account-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; align-items:start }
}
.pin-upgrade:empty { display:none }
nav, .actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem }
nav:empty { display: none }
.actions:last-child { margin-bottom: 0 }
#notice:not(:empty) { background: #d8eee4; border-radius: 8px; padding: .75rem; margin-bottom: .7rem; overflow-wrap: anywhere }
#notice.error { background: #ffe8e2; color: #632515 }
.preview { display: block; max-width: 100%; max-height: 300px; border: 1px solid var(--line); border-radius: 8px }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: .4rem .55rem; padding: .55rem; align-items: center; border-radius: 8px; background: #edf4ef }
.entry small { grid-column: 1/-1; font-weight: 500; overflow-wrap: anywhere }
.flagged { padding: .55rem; border-radius: 8px }
.flagged .entry { padding: 0; background: transparent }
.yellow { background: #ffed9d }
.orange { background: #ffcfaa }
.check { display: flex; align-items: center; gap: .4rem; grid-column: 1/-1; font-size: .9rem }
.check input { width: 1.2rem; min-height: 32px }
.list { display: grid; gap: .55rem; padding-left: 1.1rem; overflow-wrap: anywhere }
.scroll { overflow-x: auto }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem }
td, th { padding: .5rem; border-bottom: 1px solid var(--line) }
:focus-visible { outline: 3px solid #3b826d; outline-offset: 2px }
#print-area { display: none }
.reader-method, #page form + .muted { margin-top: .75rem }
.preview + .button { margin-bottom: .8rem }
.status-summary { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem }
.count-status { display: inline-block; padding: .35rem .55rem; border-radius: 6px; font-weight: 650 }
[data-state=合格] { background: #e2f2e8 }
[data-state=不一致] { background: #fce4e0 }
[data-state=枚数超過] { background: #ffedbb }
[data-state=未登録] { background: #f1f3f0 }
[data-state=要確認], .manifest-warning { background: #ffedbb; color: #5b3802; font-weight: 700 }
.manifest-warning { padding: .3rem }
.reconciliation { width: 100%; table-layout: fixed; margin-top: .65rem }
.reconciliation :is(th,td) { padding: .45rem .22rem; text-align: right; white-space: normal; overflow-wrap: anywhere }
.reconciliation :is(th,td):first-child { text-align: left; width: 31% }
.reconciliation small { display: block }
.reconciliation button { padding: .2rem .25rem; font-size: .75rem; margin-top: .25rem }
.reconciliation td.manifest-detail-cell { padding: .5rem .55rem; width: auto }
.manifest-ticket { padding: .65rem; border: 1px solid var(--line); margin-top: .55rem; border-radius: 8px }
.manifest-ticket p { margin: .3rem 0 }
.manifest-ticket details { margin-top: .5rem }
.manifest-ticket form { margin: .55rem 0 0 }
.manifest-ticket > button { display: block; margin-top: .5rem }
summary { cursor: pointer; padding-block: .35rem }
#page .panel > button + .stack:not(:empty) { margin-top: .7rem }

@page { size: A4 portrait; margin: 8mm }
@media print {
  body { background: white; color: black }
  body > :not(#print-area) { display: none !important }
  #print-area { display: block; font-size: 8pt; print-color-adjust: exact; -webkit-print-color-adjust: exact }
  #print-area h1 { font-size: 16pt }
  #print-area p { margin: 2mm 0 3mm }
  #print-area table { width: 100%; border-collapse: collapse; table-layout: fixed }
  #print-area :is(th,td) { text-align: center; border: 1px solid #555; padding: 0 .25mm; white-space: normal; overflow-wrap: anywhere }
  #print-area thead th { height: 6mm; line-height: 1.15 }
  #print-area thead tr:first-child th:first-child { width: 17mm }
  #print-area thead tr:first-child th:last-child { width: 14mm }
  #print-area tbody th { font-size: 7pt }
  #print-area tbody tr { height: 6.4mm; break-inside: avoid }
  #print-area .holiday { background: #dadada }
}
/* 日立工場の撮影画面 */
.field-mode { color:#16201c; background:#f3f5f4; font-size:20px }
.field-mode :is(.site-head,.intro,#nav) { display:none }
.field-mode main { max-width:480px; min-height:100dvh; padding:0 }
.field-mode #notice:not(:empty) { margin:12px 16px }
.field-mode #page { display:grid; gap:12px; padding:0 16px 18px }
.field-mode #page :is(h1,h2,p) { margin:0 }
.field-mode #page h1 { font-size:32px; letter-spacing:0 }
.field-mode #page button { display:grid; width:100%; min-height:64px; font-size:24px; color:#fff; background:#16201c; border:0 }
.field-mode #page .field-big { display:flex; align-items:center; gap:14px; min-height:124px; padding:12px 16px; font-size:30px; text-align:left; line-height:1.3 }
.field-big b { flex:none; display:grid; place-items:center; width:60px; height:60px; border-radius:50%; background:white; font-size:36px }
.field-big small { display:block; font-size:20px }
.field-mode #page .field-one { background:#0f6244 }
.field-mode #page .field-two { background:#1b4a8a }
.field-one b { color:#0f6244 }
.field-two b { color:#1b4a8a }
.field-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; background:#fff; border-bottom:2px solid #c9d2cd; padding:10px 16px; margin-inline:-16px }
.field-mode #page .field-head h1 { font-size:22px }
.field-head span { color:#4a5650 }
.field-today { background:#fff; border:2px solid #c9d2cd; border-radius:8px; padding:8px 12px }
.field-mode .field-today h2 { font-size:22px }
.field-row { display:flex; align-items:center; justify-content:space-between; gap:4px; min-height:58px; border-top:1px solid #c9d2cd; font-weight:700 }
.field-row:first-of-type { margin-top:6px }
.field-row b { flex-shrink:0 }
.field-done { color:#0f6244 }
.field-yet { color:#a8360b; border:2px dashed; border-radius:8px; padding:4px 12px }
.field-banner { padding:8px 12px; background:#e4f1ea; color:#0f6244; border-radius:8px; font-weight:700 }
.field-help { display:grid; place-items:center; min-height:64px; text-align:center; font-weight:700; color:inherit; background:#fff; border:2px solid #c9d2cd; border-radius:8px }
.field-mode #page.field-result { min-height:100dvh; align-content:center; text-align:center; gap:16px; padding-block:28px }
.field-mark,.field-symbol { display:grid; place-items:center; margin-inline:auto; width:150px; height:150px; color:#fff; background:#0f6244; border-radius:50%; font-size:104px; font-weight:700; line-height:1 }
.field-mode #page.field-result h1 { font-size:clamp(28px,9vw,42px) }
.field-mode #page .field-outline,.field-mode #page .field-subtle { color:#16201c; background:#fff; border:2px solid #16201c }
.field-mode #page .field-subtle { border-color:transparent; background:transparent; font-size:20px }
.field-mode #page.field-problem { background:#fbeae2 }
.field-mode #page .field-again,.field-symbol { background:#a8360b }
.field-mode #page.field-camera { min-height:100dvh; background:#0c0f0e; color:#fff; padding-top:12px; text-align:center; align-content:start }
.field-mode #page.field-camera h1 { font-size:28px }
.field-finder { display:grid; place-items:center; position:relative; height:min(51dvh,450px); background:#46504b; overflow:hidden }
.field-finder video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain }
.field-frame { position:relative; height:86%; max-width:84%; aspect-ratio:210 / 297; border:4px solid #f6d54d; border-radius:8px }
.field-controls { display:grid; grid-template-columns:104px 1fr 104px; align-items:center; gap:4px }
.field-mode #page.field-camera .field-controls .field-outline { background:transparent; color:#fff; border-color:#fff; font-size:20px }
.field-mode #page .field-shutter { justify-self:center; padding:0; background:transparent; font-size:20px }
.field-shutter::before { content:''; width:92px; height:92px; background:white; border:5px double #222; border-radius:50% }
.field-camera .field-help { color:#16201c }
.morning-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:12px }
.morning-summary b { padding:6px; border:1px solid #a8360b; border-radius:8px; color:#8e2e0b; text-align:center }
.morning-day { border:1px solid var(--line); border-radius:8px; padding:10px; gap:4px }
.morning-day :is(h3,p) { margin:0 }
.today-office { font-size:20px }
.today-office h2 { font-size:26px }
.today-office h3 { font-size:27px }
.today-office .today-match { color:#0f6244 }
.today-office .today-check { color:#a8360b }
.today-office button,.today-office .today-numbers summary { min-height:56px; font-size:20px }
.today-office > button { width:100%; margin-block:8px }
.today-numbers { margin-top:12px }
.today-numbers summary { padding:12px; border-radius:8px; background:#e9f0ed; font-weight:700; cursor:pointer }
.today-numbers .morning-day { margin-top:8px }
.today-numbers .morning-day h3 { font-size:22px }
.manual-day { border:1px solid var(--line); border-radius:8px; padding:8px }
.manual-day summary { padding:6px; font-size:20px; font-weight:700; cursor:pointer }
.manual-day .entry { margin-top:4px; background:#edf4ef }
.office-start main { display:flex; flex-direction:column }
.office-start #nav { order:1 }
.office-start .intro { display:none }

dialog[aria-label='管理者本人の確認']{width:min(90vw,24rem);border:1px solid #879c94;border-radius:12px;padding:1.25rem}
dialog[aria-label='管理者本人の確認'] form,dialog[aria-label='管理者本人の確認'] label{display:grid;gap:.65rem}dialog::backdrop{background:#172d2870}

[data-state=合う] { background: #e2f2e8 }
[data-state=未撮影], [data-state=確認待ち], [data-state=枚数未締め] { background: #ffedbb }
.manifest-detail-cell form, .jwnet-output { margin-block: .65rem }
textarea[readonly] { width: 100%; font: inherit; padding: .6rem; }

.manifest-review-grid { display: grid; gap: 1.2rem; }
@media (min-width: 800px) {
  .manifest-review-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
  .manifest-review-grid > :first-child { position: sticky; top: 1rem; }
}

.field-mode #page.board-phone {
  --board-green:#123e35; --board-bg:#eef3f1; --board-muted:#d5e0db;
  box-sizing:border-box; width:100%; min-width:0; max-width:480px; min-height:100dvh;
  margin:auto; padding:0 14px 20px; gap:12px; align-content:start; background:var(--board-bg);
}
.board-phone > * {min-width:0}
.board-head {display:flex; justify-content:space-between; align-items:center; gap:8px; margin-inline:-14px;
  padding:14px; background:var(--board-green); color:white; font-size:20px; font-weight:700}
.board-head span {font-size:22px; text-align:right}
.field-mode #page.board-phone h1 {font-size:clamp(24px,7vw,32px); line-height:1.25}
.field-mode #page.board-phone h2 {font-size:21px}
.board-card,.board-result {min-width:0; border:1px solid #cddbd4; background:#fff; border-radius:16px; padding:12px; display:grid; gap:10px}
.board-step {display:flex; align-items:center; gap:12px; font-weight:700; padding:7px 0; font-size:20px; text-align:left}
.board-step b {display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:50%; background:var(--board-muted); color:#30483f}
.board-step small {display:block; color:#3f5950; font-weight:400; font-size:15px}
.field-mode #page.board-phone .board-button {display:block; min-width:0; min-height:52px; line-height:1.2; padding:9px; border:2px solid var(--board-green);
  border-radius:13px; color:var(--board-green); background:white; font-size:20px}
.field-mode #page.board-phone .board-main {background:var(--board-green);color:white;font-size:22px;font-weight:750}
.field-mode #page.board-phone .board-start {min-height:104px;font-size:38px}
.field-mode #page.board-phone .board-button.board-step {display:flex;text-align:left;border:0;padding:5px 0}
.field-mode #page.board-phone .board-main:disabled {background:#d3ded9;color:#3d554e;border-color:#92a69d;cursor:default}
.board-more {font-size:16px}
.board-more summary {min-height:44px; align-content:center}
.board-more[open] .board-button {margin-block:8px}
.field-mode #page.board-phone.board-dark {background:#121514;color:white}
.board-finder {position:relative; display:grid; place-items:center; height:clamp(180px,38dvh,340px); background:#434b47}
.board-finder video {width:100%;height:100%;object-fit:contain; min-height:0}
.board-guide {position:absolute;inset:10% 2%;border:4px solid #ffd748;border-radius:8px;pointer-events:none}
.field-mode #page.board-phone .board-shutter {display:block; margin:auto; color:#17221d; background:#fff; border:7px double #111;
  width:88px; height:88px; border-radius:50%; font-size:15px; font-weight:700}
.field-mode #page.board-phone .board-shutter[hidden] {display:none}
.board-tip {padding:8px;background:#ffeb9c;color:#352d12;border-radius:10px;text-align:center;font-weight:700}
.board-matrix {border-collapse:collapse;table-layout:fixed;width:100%;background:#fff;border:2px solid #9baea5;font-size:13px}
.board-matrix th,.board-matrix td {border:1px solid #cddbd4;padding:0;text-align:center;overflow-wrap:anywhere}
.board-matrix th:first-child {width:43px;color:#39584d}
.board-matrix th b {display:block;font-size:17px;line-height:1.12}
.board-strip,.board-result-photo {display:block;width:100%;height:auto}
.field-mode #page.board-phone :is(.board-crop,.board-cell,.board-total) {border-radius:0;border:0;padding:0;min-height:38px;font-size:17px}
.field-mode #page.board-phone .board-cell {min-height:44px;font-weight:700;overflow-wrap:anywhere}
.field-mode #page.board-phone .board-unknown {color:#4a3500;background:#ffecaa}
.board-totals {display:flex;justify-content:space-between;gap:8px; padding:8px; background:#dcefe5;border-radius:11px;font-size:17px}
.board-totals b {display:block;font-size:36px}
.field-mode #page.board-phone .board-total {background:none; min-height:44px}
.board-actions {display:grid;grid-template-columns:minmax(68px,1fr) minmax(0,2.5fr);gap:8px}
.board-copy-list {margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;background:#fff}
.board-copy-list dt,.board-copy-list dd {border-bottom:1px solid #d1dfd9;margin:0;align-content:center;padding:4px 6px}
.board-copy-list dt {font-size:16px}
.board-copy-list dd {text-align:right;font-size:28px;font-weight:750}
.board-empty {color:#5a7167;font-size:17px!important}
.board-result {padding:15px}
.board-result.board-match {text-align:center;background:#dcefe5;border:2px solid #237450;color:#124d34;padding-block:24px}
.field-mode #page.board-phone .board-match h1 {font-size:clamp(34px,10vw,48px)}
.board-result:is(.board-paper,.board-shift) {background:#fbe3e1;border:2px solid #aa3025;color:#811f19}
.board-result:is(.board-paper,.board-shift) .board-totals {background:none}
.board-change-list {margin:0;padding:0 0 0 24px}
.board-phone input {width:100%;min-height:54px;min-width:0;font-size:23px}

.board-quick {grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); background:#fff3bf; border-color:#b58d1b}
.board-quick p {grid-column:1/-1}

.board-totals strong {font-size:clamp(20px,6vw,27px)}
.board-result-table {width:100%; table-layout:fixed; border-collapse:collapse; font-size:16px}
.board-result-table :is(th,td) {padding:8px 2px; overflow-wrap:anywhere; text-align:center}
.board-result-table tr+tr {border-top:1px solid #cddbd4}
.board-result-table td {font-size:19px;font-weight:700}

.field-mode #page.board-phone .board-shutter {white-space:nowrap; width:108px; font-size:15px; padding:0}
.board-single-total {display:block;width:100%;height:auto;max-height:240px;object-fit:contain}
.board-alignment {display:block;width:100%;height:auto;cursor:crosshair}
.board-photo-scroll {overflow:auto;max-height:43vh;background:#f3f4f6}
.board-photo-enlarged .board-alignment {width:1300px;max-width:none}
.board-edit-cells {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}

.board-report-mode .intro {display:none}
.board-report-mode main,.board-report-mode .head-inner {max-width:1120px}
.board-report-mode .head-inner {padding-block:.45rem}
.board-report-mode #nav:empty,.board-report-mode #notice:empty {display:none}
.board-report {display:grid;gap:9px; max-width:1024px; margin:auto; min-width:0; color:#18342c}
.board-report .board-report-title,.board-report h3 {margin:0}
.board-report-date,.board-report-actions,.board-report-ticket-head {display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.board-report-ticket-head {justify-content:space-between}
.board-report-date label {display:flex;align-items:center;gap:8px;font-size:15px}
.board-report-date button {padding:4px 12px}
.board-report .board-report-date button {min-height:36px;font-size:15px}
.board-report-tickets {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.board-report-tickets dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;font-size:14px}
.board-report-tickets .board-report-fact {display:block}
@media (max-width:680px) {.board-report-tickets {grid-template-columns:minmax(0,1fr)}}
.board-report h1 {margin:0;font-size:clamp(24px,4vw,33px)}
.board-report-head {display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px;background:#123e35;color:#fff;font-size:22px;border-radius:10px}
.board-report-card {display:grid;gap:8px;padding:14px;border:1px solid #c9d8d0;background:#fff;border-radius:13px;min-width:0}
.board-report-card h2,.board-report-card p,.board-report-card dl {margin:0;overflow-wrap:anywhere}
.board-report-fact {display:grid;grid-template-columns:minmax(105px,1fr) minmax(0,2fr);gap:8px;padding-block:4px;border-bottom:1px solid #d7e3dc}
.board-report-fact dd {margin:0;overflow-wrap:anywhere;font-weight:650}
.board-ticket-comparison {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:8px;align-items:center}
.board-ticket-comparison img {display:block;width:100%;height:65px;object-fit:contain;background:#eef3f1}
.board-ticket-number {font-size:clamp(17px,4vw,29px); font-variant-numeric:tabular-nums; overflow-wrap:anywhere}
.board-report button,.board-report .button {min-height:52px; font-size:19px}
.board-report-inputs {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px}
.board-report label {display:grid;gap:4px;min-width:0}
.board-report input,.board-report select {max-width:100%;min-width:0;width:100%}
.board-report .board-report-check {display:flex;align-items:center}
.board-report .board-report-check input {width:auto}
.board-report [hidden] {display:none}
.month-no-intake {display:grid;gap:9px}
.month-no-intake h3,.month-no-intake p {margin:0}
.month-no-intake-days {display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:6px}
.month-no-intake-days .check {grid-column:auto;padding:6px;border:1px solid #c9d8d0;border-radius:7px}
.board-report-current {display:grid;gap:4px;justify-items:start;border-block-end:1px solid #c9d8d0;padding-block:8px}
.board-report-current strong {font-size:22px}
.board-report-uncropped {width:100%;height:120px;object-fit:contain;background:#eef3f1}
.board-report-photo-note {font-size:14px}

.planned-weekdays { border: 2px solid #ac3829; border-radius: .5rem; padding: .75rem; }

.env-label{position:sticky;top:0;z-index:1000;background:#c2410c;color:#fff;font-weight:700;font-size:1.05rem;text-align:center;padding:6px 8px;letter-spacing:.08em}
