:root {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #203e35;
  background: #f5f2e9;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1160px; padding: 0 clamp(18px, 5vw, 62px); }
a { color: inherit; text-underline-offset: .24em; }
header, footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 22px 0; font-size: .9rem; }
header { justify-content: space-between; border-bottom: 1px solid #c4cdc1; }
.brand { font-family: Arial, sans-serif; font-weight: 900; font-size: 1.3rem; letter-spacing: .06em; text-decoration: none; }
.editor { display: grid; grid-template-columns: 1.1fr minmax(0, 1fr); gap: clamp(22px, 6vw, 80px); align-items: center; padding: clamp(28px, 7vw, 78px) 0; }
h1 { font: 700 clamp(28px, 4.3vw, 54px)/1.28 "Yu Mincho", "Hiragino Mincho ProN", serif; margin: 0 0 22px; }
.instructions p { max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
button, .file-button, .download { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; font: inherit; font-weight: 700; border: 1px solid #255344; border-radius: 8px; padding: 9px 18px; cursor: pointer; }
button, .download { background: #255344; color: #fff; text-decoration: none; }
.file-button { position: relative; color: #255344; background: #fffdf6; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
:focus-visible, .file-button:focus-within { outline: 3px solid #ad502e; outline-offset: 3px; }
.privacy, #status, figcaption { font-size: .85rem; }
.estimate { margin: 16px 0 0; }
.estimate a { display: inline-flex; align-items: center; min-height: 44px; color: #255344; font-weight: 700; text-underline-offset: 3px; }
#status:empty { display: none; }
figure { width: 100%; max-width: 376px; margin: 0 auto; }
.frame { position: relative; box-shadow: 3px 9px 28px #233b3222; background: #faf7ed; }
canvas { display: block; width: 100%; height: auto; }
#empty { position: absolute; inset: 41% 0 auto; text-align: center; color: #385448; font-size: .88rem; }
figcaption { margin-top: 13px; color: #4a5f54; text-align: center; }
footer { border-top: 1px solid #c4cdc1; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .editor { grid-template-columns: 1fr; }
  h1 { margin-bottom: 12px; }
  .actions { margin-top: 16px; }
  figure { max-width: 290px; }
}
