/* 「白い手帖」— Bの線と形のまま、紙を白に。字は Zen Kaku Gothic New */
:root {
  --night: #ffffff;      /* 紙（白） */
  --panel: #ffffff;
  --panel-2: #ffffff;
  --edge: #ececec;
  --ink: #24283a;        /* インク（留紺より少し黒） */
  --dim: #777a86;
  --leaf: #4f8a35;
  --sun: #c8862a;
  --warn: #b8641c;
  --bad: #b8433b;
  --rule: #24283a;
  --f-pix: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --f-head: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  color-scheme: light;
}
body {
  font-weight: 500;
  background-color: var(--night);
  background-image: none;
}
#app { gap: 10px; padding-block: 12px; }

.win, .btn, .tab {
  box-shadow: none;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}
.btn, .tab { box-shadow: 2px 2px 0 0 var(--rule); }
.btn:active:not(:disabled), .tab:active { transform: translate(2px, 2px); box-shadow: none; }
.tab { font-family: var(--f-head); font-weight: 700; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--night); box-shadow: 2px 2px 0 0 var(--sun); }

#date { font-family: var(--f-head); }
#dM { font-family: var(--f-head); font-weight: 700; font-size: 34px; }
#vbar { height: 10px; box-shadow: none; border: 1.5px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--panel); }
#vbar::after { background: repeating-linear-gradient(90deg, transparent 0 9px, var(--panel) 9px 11px); }
.mcell { box-shadow: inset 1.5px 0 0 0 rgba(36, 40, 58, 0.25); color: var(--dim); }
.mcell.past { color: var(--ink); }
.ctick { background: var(--ink); }
#calNow { color: #fff; }

#view {
  margin-inline: 0;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  box-shadow: 3px 3px 0 0 var(--rule);
}
#logo {
  left: 12px; top: 10px;
  padding: 3px 10px 4px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  text-shadow: none;
}
.sq, .tool { background: var(--panel); border-radius: 8px; }
.chip { border-radius: 999px; padding: 0 9px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--k); }
.chip.bad { color: var(--bad); }
.pop { color: var(--ink); text-shadow: 0 0 3px var(--panel), 0 0 3px var(--panel); }

#msg { margin-inline: 0; height: 96px; border-radius: 12px; padding: 6px 12px 6px 10px; box-shadow: 2px 2px 0 0 var(--rule); }
#mHead { color: var(--dim); }
#acts { padding-inline: 0; padding-bottom: 4px; }
#acts .btn { border-radius: 10px; }
.btn.primary { background: var(--leaf); color: #fff; box-shadow: 2px 2px 0 0 var(--rule); }
.btn.on { background: var(--sun); color: #fff; }
.btn.danger { color: #fff; }
.btn:focus-visible, .tab:focus-visible, #cal:focus-visible { outline-color: var(--sun); }

#sheet { background: rgba(36, 40, 58, 0.45); }
#sheetIn { border-radius: 16px; padding: 18px 18px 16px; box-shadow: 4px 4px 0 0 var(--rule); }
#sheetIn h2 { font-family: var(--f-head); font-weight: 700; font-size: 28px; line-height: 36px; }
#sheetIn h3 { color: var(--sun); }
.goal { box-shadow: none; border: 1.5px solid var(--rule); border-radius: 999px; }
.goal.hit { box-shadow: none; color: #fff; }
textarea.code { box-shadow: none; border: 1.5px solid var(--rule); border-radius: 8px; background: #f7f7f8; }
.btn:disabled { opacity: 1; color: #a4a6ae; box-shadow: none; border-color: #c6c8ce; }
