@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("fonts/NotoSansJP-Thin.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/NotoSansJP-ExtraLight.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/NotoSansJP-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/NotoSansJP-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/NotoSansJP-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/NotoSansJP-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/NotoSansJP-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/NotoSansJP-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/NotoSansJP-Black.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/NotoSerifJP-ExtraLight.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/NotoSerifJP-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/NotoSerifJP-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/NotoSerifJP-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/NotoSerifJP-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/NotoSerifJP-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/NotoSerifJP-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/NotoSerifJP-Black.woff2") format("woff2");
}
:root {
  --ui-bgcolor: #cccccc;
  --ui-primarycolor: #000000;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  color: var(--ui-primarycolor);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP", sans-serif;
  background-color: var(--ui-bgcolor);
  letter-spacing: 0;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0px;
  font-feature-settings: "palt";
}
.editor {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100dvh;
}
.controls {
  padding: 20px;
  border-right: 1px solid var(--ui-primarycolor);
  overflow-y: auto;
  height: 100dvh;
}
.controls__title {
  margin: 0 0 12px;
  font-size: 18px;
}
.field {
  margin: 14px 0 18px;
}
.label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--ui-primarycolor);
}
.row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hint {
  font-size: 12px;
  color: var(--ui-primarycolor);
}
.tags-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tags-edit .tag {
  border: 1px solid var(--ui-primarycolor);
  padding: 4px 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag .remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.controls input[type="text"],
.controls textarea,
.controls input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
}
.controls input[type="range"]{
  width: 100%;
}
.actions {
  margin-top: 18px;
}
.btn-primary {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ui-primarycolor);
  color: #fff;
  border: none;
  cursor: pointer;
}
.size-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.size-preset-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--ui-primarycolor);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.size-preset-btn:hover {
  background: var(--ui-primarycolor);
  color: var(--ui-bgcolor);
}
.size-preset-btn.active {
  background: var(--ui-primarycolor);
  color: var(--ui-bgcolor);
}
.preview {
  padding: 24px;
  display: grid;
  place-items: center;
  height: 100dvh;
  overflow: hidden;
}
.preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-wrapper {
  transform-origin: top left;
}