html{overflow-x:clip}
:root{--hand:"Yomogi","Zen Maru Gothic",cursive;--crayon:#e2752b}
main.board{max-width:1040px}
main.board+footer .in{max-width:1040px}
.board h1{margin:0 0 34px 104px}
.board-in{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 40px;align-items:start;background:var(--paper-2);border-radius:26px 20px 28px 18px;padding:54px 44px 40px}
.board .face{position:absolute;left:-12px;top:-86px;z-index:1;width:96px;background:var(--card);padding:5px 5px 7px;box-shadow:0 4px 10px rgba(74,52,34,.24);transform:rotate(-7deg)}
.board .face img{width:100%}
.note{--r:0deg;position:relative;margin:0;background:var(--card);padding:28px 26px 12px;box-shadow:0 4px 12px rgba(74,52,34,.16);transform:rotate(var(--r))}
.note::before{content:"";position:absolute;left:50%;top:-10px;width:70px;height:20px;margin-left:-35px;background:rgba(226,117,43,.5);transform:rotate(-3deg)}
.note{animation:note-paste .7s cubic-bezier(.25,.7,.3,1) both;transform-origin:50% 0}
.note::before{animation:note-tape .7s ease-out both}
.note.old{animation-delay:.12s}
.note.old::before{animation-delay:.12s}
.note.old~.note.old{animation-delay:.22s}
.note.old~.note.old::before{animation-delay:.22s}
@keyframes note-paste{
  0%{transform:translateY(-36px) rotate(calc(var(--r) - 4.5deg)) scale(1.04);opacity:0;box-shadow:0 26px 30px rgba(74,52,34,.08)}
  18%{opacity:1}
  46%{transform:translateY(3px) rotate(calc(var(--r) + .7deg)) scale(1);box-shadow:0 2px 5px rgba(74,52,34,.2)}
  66%{transform:translateY(1px) rotate(calc(var(--r) - .2deg)) scale(.99);box-shadow:0 1px 3px rgba(74,52,34,.22)}
  84%{transform:translateY(-1px) rotate(var(--r)) scale(1.003)}
  100%{transform:rotate(var(--r));opacity:1;box-shadow:0 4px 12px rgba(74,52,34,.16)}
}
@keyframes note-tape{
  0%,38%{transform:translate(-10px,-22px) rotate(-14deg) scale(1.25,1.1);opacity:0}
  60%{transform:translate(0,1px) rotate(-2deg) scale(1.06,.94);opacity:1}
  78%{transform:rotate(-3.5deg) scale(.99,1.02)}
  100%{transform:rotate(-3deg);opacity:1}
}
html[data-motion="off"] .note,html[data-motion="off"] .note::before{animation:none}
.note .line{margin:0;font:400 21px/1.7 var(--hand);color:var(--ink);word-break:normal;overflow-wrap:normal}
.note .line span{display:inline-block}
.note .shot{display:block;width:100%;margin:16px 0 0;padding:0;border:0;background:none;cursor:zoom-in;border-radius:8px;transition:transform .12s ease-out}
.note .shot:hover{transform:translateY(-2px)}
.note .shot img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:50% 0;border-radius:8px;box-shadow:0 3px 10px rgba(74,52,34,.18);background:var(--paper-2)}
.note .shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0}
.note .shots .shot{margin:0}
.note .foot{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-top:6px}
.note time{font-size:14px;color:var(--ink-soft)}
.note.now{--r:-.6deg;grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:1fr auto;column-gap:34px;padding:34px 30px 14px}
.note.now .line{grid-column:1;grid-row:1;font-size:27px}
.note.now>.shot{grid-column:2;grid-row:1 / span 2;margin:0}
.note.now .shots{grid-column:2;grid-row:1 / span 2;margin:0}
.note.now .foot{grid-column:1;grid-row:2}
.note.old{--r:.9deg}
.note.old+.note.old{--r:-.6deg}
dialog.view{border:0;padding:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;background:none;display:none;place-items:center;cursor:zoom-out}
dialog.view[open]{display:grid}
dialog.view::backdrop{background:rgba(30,24,14,.86)}
dialog.view img{width:auto;height:auto;max-width:min(calc(100vw - 32px),1400px);max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);border-radius:6px;cursor:default;box-shadow:0 8px 32px rgba(0,0,0,.5)}
dialog.view .x{position:fixed;top:12px;right:12px;width:48px;height:48px;border:0;border-radius:50%;background:var(--card);color:var(--ink);font:400 22px/1 var(--pop);cursor:pointer}
dialog.view{touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
dialog.view .nv{position:fixed;top:50%;width:46px;height:46px;margin-top:-23px;padding:0;border:0;border-radius:50%;background:rgba(255,253,245,.82);color:var(--ink);cursor:pointer}
dialog.view .nv svg{display:block;width:24px;height:24px;margin:0 auto;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
dialog.view .pv{left:8px}
dialog.view .nx{right:8px}
dialog.view .nv:hover{background:var(--card)}
@media (max-width:760px){
  .board h1{margin:0 0 30px 88px}
  .board-in{grid-template-columns:minmax(0,1fr);gap:26px;padding:44px 16px 24px;margin:0 -8px}
  .board .face{left:4px;width:76px;top:-74px}
  .note{padding:26px 18px 10px}
  .note .line{font-size:19px}
  .note.now{display:block;padding:28px 18px 10px}
  .note.now .line{font-size:22px}
  .note.now>.shot{margin:16px 0 0}
  .note.now .shots{margin:16px 0 0}
}
