* {
  box-sizing: border-box;
}
:root {
  --paper: #faf9f6;
  --white: #fff;
  --ink: #292e2c;
  --muted: #626762;
  --border: #deded5;
  --tint: #efeee7;
  --accent: #a84930;
  --active: #f4e8de;
  color-scheme: light;
}
html.dark {
  --paper: #202320;
  --white: #292d29;
  --ink: #f4f0e6;
  --muted: #c6c9bf;
  --border: #50554d;
  --tint: #363c34;
  --accent: #efa98b;
  --active: #46392f;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.65 "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
}
button:hover,
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid #ab693d;
  outline-offset: 2px;
}
aside {
  width: 218px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 28px 25px 31px;
}
.brand b {
  background: #a44832;
  color: white;
  border-radius: 3px;
  font: bold 32px/44px serif;
  text-align: center;
  width: 44px;
  transform: rotate(-3deg);
  outline: 1px solid #f6e8cd;
  outline-offset: -4px;
}
.brand strong {
  font: 900 29px/1.05 serif;
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font: 700 9px/1.7 sans-serif;
  letter-spacing: 3px;
}
nav {
  padding: 0 14px;
  overflow: auto;
}
nav label {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  margin: 12px 11px 9px;
}
nav label:not(:first-child) {
  border-top: 1px solid var(--border);
  padding-top: 23px;
  margin-top: 22px;
}
nav a,
.sidefoot a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-weight: 550;
  border-radius: 5px;
}
nav a.active {
  background: var(--active);
  color: var(--accent);
}
.sidefoot {
  margin: auto 14px 16px;
  border-top: 1px solid var(--border);
  padding-top: 11px;
}
main {
  margin-left: 218px;
}
header {
  height: 55px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
header div,
header a {
  display: flex;
  align-items: center;
  gap: 7px;
}
header span {
  color: #aaa;
}
header button {
  border: none;
  display: grid;
  place-items: center;
  padding: 7px;
  background: transparent;
}
#theme {
  margin-left: 11px;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding-left: 18px;
}
#menu {
  display: none;
}
article,
footer {
  max-width: 1350px;
  margin: auto;
  padding: 29px 4% 40px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: 0.035em;
  line-height: 1.5;
}
.intro p,
h1 + p,
.cardbody p,
.recipebanner p {
  color: var(--muted);
}
.intro p {
  margin-top: 3px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid #b6b9ad;
  border-radius: 6px;
  padding: 0 16px;
  margin-top: 18px;
  box-shadow: 0 2px 3px #242c2008;
  color: var(--muted);
}
.searchbox input {
  height: 47px;
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
}
.searchbox:focus-within {
  outline: 2px solid var(--accent);
}
kbd {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 7px;
  background: var(--paper);
}
.hints {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.hints button {
  font-size: 11px;
  padding: 1px 9px;
  border-radius: 20px;
  background: var(--white);
}
.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 12px;
  gap: 8px;
}
.section h2 {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 20px;
  letter-spacing: 0.025em;
}
.more {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.toolcard {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s;
}
.toolcard:hover {
  border-color: #a9aa9c;
}
.art {
  display: block;
  height: 93px;
  background-image: radial-gradient(#7d796e35 0.65px, transparent 0.8px);
  background-size: 10px 10px;
  border-bottom: 1px solid var(--border);
}
.art img {
  width: 100%;
  height: 100%;
  display: block;
}
.a0 {
  background-color: #f1e8d8;
}
.a1 {
  background-color: #e6eadf;
}
.a2 {
  background-color: #e5ebef;
}
.a3 {
  background-color: #f1e5db;
}
.a4 {
  background-color: #e9e5ec;
}
.a5 {
  background-color: #e6ebe3;
}
.fav {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #0001;
  border-radius: 50%;
  color: #686d62;
  background: #fffffff2;
}
.fav.active svg {
  fill: #d79d52;
  stroke: #8b5c28;
}
.cardbody {
  display: block;
  padding: 12px 14px 14px;
}
.cardbody h3 {
  font-size: clamp(14px, 1.13vw, 19px);
  line-height: 1.55;
}
.cardbody p {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 4px;
}
.recipebanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-left: 4px solid #848d74;
  border-radius: 6px;
  padding: 19px 22px;
}
.recipebanner h3 {
  font-size: 18px;
}
.recipebanner p {
  font-size: 13px;
}
.recipebanner b {
  display: inline-block;
  color: var(--accent);
  margin-top: 9px;
  font-size: 12px;
}
.flow {
  display: flex;
  align-items: center;
  gap: 7px;
}
.flow i {
  width: 46px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #929985;
  background: var(--white);
  border-radius: 5px;
  box-shadow: 2px 3px 0 #636b5725;
}
.flow em {
  font-style: normal;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chips a {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 13px;
  border-radius: 5px;
}
footer {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.panel {
  margin: 18px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 20px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.panel label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.panel input,
.panel select,
.panel textarea {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 4px;
  padding: 9px;
  min-width: 0;
  width: 100%;
}
.panel textarea {
  min-height: 100px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.panel button,
.output a {
  padding: 7px 14px;
}
.primary,
.output a {
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 4px;
}
.output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.output a {
  display: inline-block;
  margin: 4px;
}
.output img,
.panel canvas {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.step {
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.step select,
.step input {
  width: auto;
  min-width: 0;
  max-width: 45%;
}
.step input {
  width: 75px;
}
.step button {
  padding: 4px 8px;
}
@media (min-width: 1500px) {
  .art {
    height: 120px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 185px;
  }
  main {
    margin-left: 185px;
  }
  .brand {
    padding-left: 19px;
  }
  .cards {
    gap: 10px;
  }
  .cardbody {
    padding: 10px;
  }
  .cardbody h3 {
    font-size: 14px;
  }
}
@media (max-width: 800px) {
  aside {
    transform: translateX(-100%);
    box-shadow: 2px 0 12px #0001;
  }
  body.open aside {
    transform: none;
  }
  main {
    margin: 0;
  }
  #menu {
    display: grid;
  }
  body.open #menu {
    position: fixed;
    left: 188px;
    background: var(--white);
    z-index: 7;
  }
  article {
    padding: 19px 4% 35px;
  }
  .section h2 {
    font-size: 18px;
  }
}
@media (max-width: 580px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .art {
    height: 73px;
  }
  .fav {
    right: 5px;
    top: 5px;
  }
  .cardbody p {
    font-size: 11px;
  }
  .section {
    margin-top: 22px;
  }
  .flow {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  header {
    font-size: 11px;
  }
  header a {
    font-size: 0;
  }
  .hints {
    gap: 4px;
  }
  .panel {
    padding: 12px;
  }
  .step {
    flex-wrap: wrap;
  }
}
.maskedit {
  margin: 14px 0;
}
.maskedit canvas {
  touch-action: none;
  display: block;
  max-width: 100%;
  max-height: 420px;
  cursor: crosshair;
  margin: 10px auto;
}
.maskedit p,
.rstep summary {
  font-size: 13px;
  color: var(--muted);
}
.rstep details {
  margin: 4px 0 10px;
}
.rstep summary {
  cursor: pointer;
}
.rstep .fields {
  margin-top: 7px;
}
.guidebody details {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.guidebody summary {
  font-weight: 600;
  cursor: pointer;
}
.guidebody p {
  padding: 6px 0;
  color: var(--muted);
}
.advert {
  min-height: 110px;
  margin-top: 36px;
  text-align: center;
}
.advert small {
  color: var(--muted);
}
.pdfpreview {
  max-height: 330px;
  overflow: auto;
}
.pdfpreview .step span {
  flex: 1;
  overflow-wrap: anywhere;
}
.printitems details {
  padding: 6px 0;
}
fieldset {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 12px;
}
legend {
  padding: 0 5px;
  font-weight: 700;
}
fieldset button {
  margin-top: 8px;
}
.timegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 3px;
  margin: 8px 0;
  touch-action: pan-y;
}
.timegrid button {
  padding: 6px;
}
.timegrid .selected {
  background: var(--active);
  border-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
