/* 回転寿司 店長日報：舞台は 1280×720 の横長。画面に合わせて縮める */
:root {
  --ink: #2a1d14; --paper: #f6efe2; --wood: #c9a074; --wood2: #a77c52; --dark: #1b1410;
  --red: #b8322a; --green: #2f7d4f; --gold: #c99a2e; --blue: #2c5d93; --muted: #7a6a5a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: var(--dark); overflow: hidden; touch-action: manipulation;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; color: var(--ink);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

#wrap { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0;
  background: var(--paper); overflow: hidden; }
.screen { position: absolute; inset: 0; display: none; }
.screen.on { display: block; }

.btn { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 22px; font-size: 26px; font-weight: 700;
  box-shadow: 0 4px 0 var(--ink); transition: transform .05s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--red); color: #fff; }
.btn.big { font-size: 30px; padding: 14px 34px; }
.btn.small { font-size: 22px; padding: 6px 12px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
.btn:disabled { opacity: .4; }

/* タイトル */
#title { background: radial-gradient(ellipse at 50% 30%, #3a2a1e, #140e0a 75%); color: #f6efe2; text-align: center; }
.t-noren { display: flex; justify-content: center; gap: 10px; padding-top: 34px; }
.t-noren span { width: 92px; height: 120px; background: linear-gradient(#24365c, #182641); color: #fff; font-size: 64px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; border-radius: 0 0 10px 10px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.t-name { font-size: 76px; margin-top: 26px; letter-spacing: .08em; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.t-lead { font-size: 28px; line-height: 1.7; margin-top: 16px; color: #e8dccb; }
.t-btns { display: flex; justify-content: center; gap: 24px; margin-top: 28px; }
.t-font { margin-top: 26px; font-size: 24px; color: #d8c8b2; }
.fzb { margin-left: 8px; padding: 6px 18px; border: 2px solid #d8c8b2; border-radius: 10px; font-size: 24px; color: #f6efe2; }
.fzb.on { background: #f6efe2; color: var(--ink); }
.t-note { position: absolute; bottom: 18px; width: 100%; font-size: 20px; color: #a8957e; }
.hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 900px; background: #fff8d8; color: var(--ink);
  border-radius: 14px; padding: 16px 64px 16px 22px; font-size: 26px; text-align: left; display: none; z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.hint.on { display: block; }
.x { position: absolute; right: 10px; top: 8px; width: 48px; height: 48px; font-size: 34px; }

/* 朝の準備 */
#morning { background: var(--paper); }
.m-head { height: 76px; background: var(--dark); color: #fff; display: flex; align-items: center; gap: 28px; padding: 0 28px; }
.m-day { font-size: 36px; font-weight: 800; }
.m-weather { font-size: 28px; color: #e8dccb; }
.m-body { position: absolute; top: 76px; bottom: 96px; left: 0; right: 0; display: flex; gap: 18px; padding: 16px 20px; }
.m-left { width: 470px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.m-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.m-note { font-size: 24px; line-height: 1.55; background: #fff; border-left: 8px solid var(--red); padding: 12px 16px; border-radius: 8px; }
.card { background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.card-h { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.card-h small { font-weight: 500; color: var(--muted); font-size: 22px; }
#mChart { width: 438px; height: 180px; display: block; }
.yest { font-size: 22px; line-height: 1.6; }
.yest b { font-size: 24px; }
.tabs { display: flex; gap: 8px; }
.tab { font-size: 24px; font-weight: 800; padding: 10px 22px; border-radius: 12px 12px 0 0; background: #e3d6c2; color: var(--muted); }
.tab.on { background: #fff; color: var(--ink); }
.tab.lock { opacity: .5; }
.m-pane { flex: 1; background: #fff; border-radius: 0 12px 12px 12px; padding: 12px 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-foot, #report .m-foot, #final .m-foot { position: absolute; bottom: 0; left: 0; right: 0; height: 96px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; background: #eadfcd; }
.m-cost { font-size: 24px; }
.m-cost b { font-size: 28px; }

.st-row { display: grid; grid-template-columns: 50px 1fr 84px 84px 196px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eee3d3; font-size: 22px; }
.st-row.head { font-size: 20px; color: var(--muted); font-weight: 700; }
.st-row img { width: 48px; height: 48px; object-fit: contain; }
.st-name { font-size: 24px; font-weight: 700; }
.st-name small { display: block; font-size: 20px; font-weight: 500; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.stepper button { width: 52px; height: 50px; border: 2px solid var(--ink); border-radius: 10px; font-size: 28px; font-weight: 800; background: #fff; }
.stepper b { min-width: 64px; text-align: center; font-size: 28px; font-variant-numeric: tabular-nums; }
.lockmsg { font-size: 24px; color: var(--muted); padding: 30px 10px; line-height: 1.7; }
.sf-band { border-bottom: 1px solid #eee3d3; padding: 10px 0; }
.sf-band h4 { font-size: 24px; margin-bottom: 6px; }
.sf-line { display: flex; align-items: center; justify-content: space-between; font-size: 24px; padding: 4px 0; }
.sf-cap { font-size: 21px; color: var(--muted); margin-top: 4px; }
.sf-cap.warn { color: var(--red); font-weight: 700; }

/* 営業 */
#play { background: #2a211b; }
.topbar { position: absolute; left: 0; top: 0; width: 1280px; height: 60px; background: var(--dark); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 16px; }
.tb-day { font-size: 24px; font-weight: 700; min-width: 210px; }
.tb-clock { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 110px; }
.tb-speed { display: flex; gap: 4px; }
.tb-speed button { min-width: 64px; height: 46px; border-radius: 10px; background: #3a2f27; font-size: 22px; font-weight: 700; color: #e8dccb; }
.tb-speed button.on { background: #f6efe2; color: var(--ink); }
.tb-num { display: flex; align-items: baseline; gap: 6px; font-size: 26px; min-width: 150px; }
.tb-num small { font-size: 20px; color: #bba890; }
.tb-num b { font-variant-numeric: tabular-nums; }
.tb-num.bad b { color: #ff9b8a; }
.tb-mute { margin-left: auto; width: 50px; height: 46px; border-radius: 10px; background: #3a2f27; color: #fff; font-size: 26px; }
.tb-mute.off { opacity: .4; }
#shop { position: absolute; left: 0; top: 60px; width: 860px; height: 660px; }
.panel { position: absolute; left: 860px; top: 60px; width: 420px; height: 660px; background: var(--paper); display: flex; flex-direction: column; }
.p-head { padding: 10px 12px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #e3d6c2; }
.p-title { font-size: 26px; font-weight: 800; }
.p-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.nr { display: grid; grid-template-columns: 56px 1fr 168px; align-items: center; gap: 6px; padding: 3px 10px; border-bottom: 1px solid #e8dccb; min-height: 57px; }
.nr .pic { position: relative; width: 56px; height: 52px; }
.nr img { width: 50px; height: 50px; object-fit: contain; }
.nr .cnt { position: absolute; right: -4px; bottom: -2px; min-width: 28px; height: 28px; border-radius: 14px; background: var(--blue); color: #fff;
  font-size: 20px; font-weight: 800; text-align: center; line-height: 28px; padding: 0 4px; }
.nr > div:nth-child(2) { min-width: 0; overflow: hidden; }
.nr .nm { font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.nr .nm small { font-size: 19px; font-weight: 600; color: var(--muted); }
.nr .nm i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; border: 2px solid rgba(0,0,0,.35); }
.nr .info { font-size: 20px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.nr .info .warn { color: var(--red); font-weight: 800; }
.nr .stepper button { width: 50px; height: 48px; font-size: 28px; }
.nr .stepper b { min-width: 44px; font-size: 30px; }
.nr.zero { background: #efe6d8; }
.coach { position: absolute; left: 110px; top: 150px; width: 640px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 22px 26px;
  font-size: 26px; line-height: 1.6; display: none; z-index: 4; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.coach.on { display: block; }
.coach h3 { font-size: 30px; margin-bottom: 8px; }
.coach .btn { margin-top: 14px; float: right; }

/* 日報 */
#report { background: var(--paper); }
.r-head { height: 76px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 34px; font-weight: 800; }
.r-stars { color: #f2c94c; font-size: 30px; }
.r-body { position: absolute; top: 76px; bottom: 96px; left: 0; right: 0; padding: 14px 20px; display: grid; grid-template-columns: 430px 1fr; gap: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.r-col { display: flex; flex-direction: column; gap: 12px; }
.r-col.wide { grid-column: 1 / 3; }
.pl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; font-size: 23px; }
.pl td { padding: 6px 14px; border-bottom: 1px solid #eee3d3; }
.pl td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl tr.sub td { font-size: 20px; color: var(--muted); padding-left: 34px; }
.pl tr.total td { font-weight: 800; font-size: 26px; border-top: 3px solid var(--ink); }
.pl .neg { color: var(--red); }
.pl .pos { color: var(--green); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: #fff; border-radius: 12px; padding: 8px 10px; }
.kpi small { display: block; font-size: 19px; color: var(--muted); }
.kpi b { font-size: 30px; font-variant-numeric: tabular-nums; }
.kpi em { display: block; font-style: normal; font-size: 18px; color: var(--muted); }
.kpi.good b { color: var(--green); } .kpi.bad b { color: var(--red); }
.voices { list-style: none; font-size: 23px; line-height: 1.5; }
.voices li { padding: 3px 0; }
.voices li.bad::before { content: "▲ "; color: var(--red); }
.voices li.good::before { content: "● "; color: var(--green); }
.advice { font-size: 23px; line-height: 1.6; }
.neta-t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; font-size: 22px; }
.neta-t th { font-size: 19px; color: var(--muted); font-weight: 700; padding: 6px 8px; text-align: right; }
.neta-t th:first-child, .neta-t td:first-child { text-align: left; }
.neta-t td { padding: 5px 8px; border-top: 1px solid #eee3d3; text-align: right; font-variant-numeric: tabular-nums; }
.neta-t .warn { color: var(--red); font-weight: 800; }

/* まとめ */
#final { background: var(--paper); }
.f-title { height: 76px; background: var(--dark); color: #fff; font-size: 34px; display: flex; align-items: center; padding: 0 28px; }
.f-body { position: absolute; top: 76px; bottom: 96px; left: 0; right: 0; padding: 16px 24px; overflow-y: auto; font-size: 24px; line-height: 1.6; }
.f-body table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; margin-bottom: 14px; }
.f-body th { font-size: 20px; color: var(--muted); padding: 6px 10px; text-align: right; }
.f-body td { padding: 6px 10px; border-top: 1px solid #eee3d3; text-align: right; font-variant-numeric: tabular-nums; }
.f-body th:first-child, .f-body td:first-child { text-align: left; }
.f-body .big { font-size: 40px; font-weight: 800; }
.f-body .card { margin-bottom: 12px; }

/* スマホの案内 */
#rotate { display: none; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; z-index: 6; pointer-events: none; }
#rotate div { display: inline-block; background: rgba(255,248,216,.96); color: var(--ink); font-size: 28px; padding: 12px 24px; border-radius: 14px; line-height: 1.5; }
#rotate small { font-size: 24px; }
body.portrait #title.on ~ #rotate { display: block; }
body.portrait .t-note, body.portrait .t-noren { display: none; }
body.portrait .t-name { margin-top: 40px; }
.lockhint { display: none; position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); background: #fff8d8; color: var(--ink); z-index: 9;
  border-radius: 12px; padding: 10px 56px 10px 16px; font-size: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.5); width: min(92vw, 560px); }
.lockhint.on { display: block; }
.lockhint .x { width: 40px; height: 40px; font-size: 26px; top: 2px; right: 4px; }

/* 小さい画面（縮みが 0.55 倍未満）：字を大きく */
#stage.tiny .nr .nm { font-size: 30px; }
#stage.tiny .nr .info { font-size: 26px; }
#stage.tiny .nr { grid-template-columns: 50px 1fr 150px; min-height: 68px; padding: 3px 6px; }
#stage.tiny .nr .pic { width: 50px; height: 50px; }
#stage.tiny .nr img { width: 44px; height: 44px; }
#stage.tiny .nr .cnt { font-size: 26px; height: 32px; line-height: 32px; min-width: 32px; border-radius: 16px; }
#stage.tiny .nr .nm small, #stage.tiny .p-title .long { display: none; }
#stage.tiny .nr .stepper button { width: 46px; height: 52px; }
#stage.tiny .nr .stepper b { min-width: 40px; font-size: 32px; }
#stage.tiny .p-title { font-size: 28px; }
#stage.tiny .btn.small { font-size: 26px; }
#stage.tiny .tb-day { font-size: 28px; }
#stage.tiny .tb-num { font-size: 30px; } #stage.tiny .tb-num small { font-size: 26px; }
#stage.tiny .tb-speed button { font-size: 28px; min-width: 70px; height: 52px; }
#stage.tiny .m-note, #stage.tiny .st-row, #stage.tiny .sf-line, #stage.tiny .yest, #stage.tiny .voices, #stage.tiny .advice, #stage.tiny .pl, #stage.tiny .neta-t, #stage.tiny .f-body { font-size: 28px; }
#stage.tiny .st-name small, #stage.tiny .sf-cap, #stage.tiny .kpi small, #stage.tiny .kpi em, #stage.tiny .neta-t th, #stage.tiny .pl tr.sub td, #stage.tiny .card-h small, #stage.tiny .st-row.head { font-size: 26px; }
#stage.tiny .st-row { grid-template-columns: 44px 1fr 90px 90px 200px; }
#stage.tiny .coach { font-size: 30px; width: 720px; left: 70px; top: 110px; }
#stage.tiny .t-note { font-size: 26px; }

/* 文字の大きさ（大・特大） */
#stage.fz1 .p-list, #stage.fz1 .m-left, #stage.fz1 .m-pane, #stage.fz1 .r-body, #stage.fz1 .f-body, #stage.fz1 .coach { zoom: 1.15; }
#stage.fz2 .p-list, #stage.fz2 .m-left, #stage.fz2 .m-pane, #stage.fz2 .r-body, #stage.fz2 .f-body, #stage.fz2 .coach { zoom: 1.3; }
