/* ==================================================
init
================================================== */
* {
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  touch-action: none;
}

input, textarea {
  appearance: none;
  background: none;
  border: none;
  border-radius: 0px;
  -moz-appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

input::-webkit-slider-thumb {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

/* ==================================================
base
================================================== */
body {
  background: #E4E3ED;
  font-family: "Noto Sans JP", serif;
}

.prosessing-field {
  opacity: 0;
  transition: 0.3s;
}
.--prosessing .prosessing-field {
  height: 100vh;
  opacity: 1;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  mix-blend-mode: difference;
  width: 100%;
  z-index: 1;
}
.--prosessing .prosessing-field-anim {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  text-align: center;
  transition: 0.3s;
  width: 100%;
}
.--prosessing .prosessing-field-anim p {
  color: #FFF;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  position: relative;
}
.--prosessing .prosessing-field-anim p::before {
  mix-blend-mode: difference;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
}
.--prosessing .prosessing-field-anim .icons {
  -moz-column-gap: 10px;
       column-gap: 10px;
  display: flex;
}
.--prosessing .prosessing-field-anim .icons span {
  -webkit-animation: prosess-anim 0.9s linear infinite;
          animation: prosess-anim 0.9s linear infinite;
  background: #BBB;
  border-radius: 30px;
  display: block;
  height: 18px;
  transform: scale(0.5);
  width: 18px;
}
.--prosessing .prosessing-field-anim .icons span:nth-of-type(2) {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
.--prosessing .prosessing-field-anim .icons span:nth-of-type(3) {
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s;
}

@-webkit-keyframes prosess-anim {
  30% {
    transform: scale(1);
  }
  60% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes prosess-anim {
  30% {
    transform: scale(1);
  }
  60% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}
/* ==================================================
MODE
================================================== */
.mode-switch {
  background: rgba(228, 227, 238, 0.5);
  border-radius: 30px;
  box-shadow: inset 2px 2px 5px rgba(20, 20, 20, 0.3), inset -5px -5px 10px rgba(80, 80, 80, 0.1);
  display: flex;
  height: 35px;
  position: fixed;
  top: 15px;
  right: 15px;
  transition: 0.3s;
  transition-delay: 0.1s;
  width: 70px;
}
.mode-switch.hidden, body.text-edit .mode-switch {
  opacity: 0;
  pointer-events: none;
}
.mode-switch:before {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  content: "";
  display: block;
  height: 26px;
  pointer-events: none;
  position: absolute;
  top: 5px;
  left: 5px;
  transition: 0.3s;
  width: 26px;
}
.mode-switch:has(input:checked)::before {
  left: 40px;
}
.mode-switch input {
  width: 100%;
}

/* ==================================================
PRIMARY MENU
================================================== */
.primary-menu {
  display: flex;
  -moz-column-gap: 10px;
       column-gap: 10px;
  position: fixed;
  left: 30px;
  bottom: 30px;
  transition: 0.3s;
  transition-delay: 0.1s;
}
.primary-menu.hidden {
  opacity: 0;
  pointer-events: none;
}
body.text-edit .primary-menu {
  transform: translateY(80px);
}
.primary-menu .item {
  align-items: center;
  background: #E4E3ED;
  box-shadow: 5px 5px 8px #D2D1DA, -2px -2px 5px #F6F5FF;
  border-radius: 30px;
  display: flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

/* ==================================================
SECONDARY MENU
================================================== */
.secondary-menu .item {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  display: flex;
  height: 50px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  margin: auto;
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  transition: 0.3s;
  width: 50px;
}
.secondary-menu .item.view {
  opacity: 1;
  pointer-events: auto;
}
.secondary-menu .item.active {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.5);
  transform-origin: center;
}
.secondary-menu .item svg {
  aspect-ratio: 1/1;
  fill: #FFF;
  width: 50%;
}

/* ==================================================
CANVAS
================================================== */
.canvas canvas {
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* ==================================================
EDITOR
================================================== */
.editor {
  background: rgba(0, 0, 0, 0.85);
  height: 100dvh;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transition: 0.3s;
  width: 100%;
}
.editor.screen-invert {
  background: rgba(255, 255, 255, 0.85);
}
body.text-edit .editor {
  opacity: 1;
  pointer-events: auto;
}
.editor--screen {
  border-radius: 30px;
  box-shadow: inset 2px 2px 5px rgba(20, 20, 20, 0.8), inset -5px -5px 10px rgba(80, 80, 80, 0.3);
  display: flex;
  height: 35px;
  position: fixed;
  bottom: 30px;
  right: 15px;
  width: 70px;
}
.screen-invert .editor--screen {
  box-shadow: inset 3px 3px 6px rgba(230, 230, 230, 0.8), inset -3px -3px 6px rgb(250, 250, 250);
}
.editor--screen:has(input:nth-of-type(1):checked):before {
  background: #FFF;
  transform: translate(4px, 4px);
}
.editor--screen:has(input:nth-of-type(2):checked):before {
  background: #EEE;
  transform: translate(40px, 4px);
}
.editor--screen:before {
  border-radius: 50px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  content: "";
  display: block;
  height: 26px;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.3s;
  width: 26px;
}
.editor--screen input {
  pointer-events: none;
}
.editor--screen input:before {
  background: url("../img/screen-icon-01.svg") no-repeat;
  background-size: cover;
  content: "";
  display: block;
  height: 16px;
  margin: auto;
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto;
  right: 9px;
  width: 16px;
}
.screen-invert .editor--screen input:before {
  background: url("../img/screen-icon-02.svg") no-repeat;
  left: 9px;
  right: auto;
}
@-webkit-keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
.editor--text {
  color: #FFF;
  display: block;
  font-family: "Noto Sans JP", serif;
  font-size: 24px;
  height: 70dvh;
  letter-spacing: 0.025em;
  line-height: 1.4;
  margin: auto;
  outline: none;
  position: fixed;
  top: 0;
  bottom: 0;
  /*right: 10px;*/
  left: 0;
  right: 0;
  resize: none;
  /*width: calc(100% - 60px);*/
  width: 75%;
}
.screen-invert .editor--text {
  color: #333;
}
.editor--text.b {
  font-weight: bold;
}
.editor--text.i {
  font-style: italic;
}
.editor--fa {
  border-bottom: 1px solid #FFF;
  box-sizing: border-box;
  padding-bottom: 3px;
  position: fixed;
  top: 15px;
  left: 65px;
  width: 140px;
}
.screen-invert .editor--fa {
  border-bottom: 1px solid #333;
}
.editor--fa-selected {
  color: #FFF;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.screen-invert .editor--fa-selected {
  color: #333;
}
.editor--fa-selected:after {
  background: #ffffff;
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
          clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
  display: block;
  height: calc(tan(60deg) * 8px / 2);
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 2px;
  transform: rotate(180deg);
  width: 8px;
}
.screen-invert .editor--fa-selected:after {
  background: #333;
}
.editor--fa select {
  height: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.editor--sub-menu {
  align-items: center;
  -moz-column-gap: 10px;
       column-gap: 10px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 30px;
  left: 15px;
}
.editor--sub-menu .item {
  align-items: center;
  border-radius: 5px;
  box-shadow: inset 5px 5px 8px rgba(20, 20, 20, 0.5), inset -5px -5px 25px rgba(80, 80, 80, 0.5);
  color: #FFF;
  display: flex;
  font-size: 18px;
  font-weight: bold;
  height: 45px;
  justify-content: center;
  margin: auto;
  position: relative;
  transition: 0.3s;
  width: 45px;
}
.screen-invert .editor--sub-menu .item {
  color: #333;
  box-shadow: inset 3px 3px 6px rgba(230, 230, 230, 0.8), inset -3px -3px 6px rgba(250, 250, 250, 0.8);
}
.editor--sub-menu .item:has(input:checked) {
  background: #FFF;
  box-shadow: none;
  color: #333;
}
.screen-invert .editor--sub-menu .item:has(input:checked) {
  background: #333;
  color: #FFF;
}
.editor--sub-menu .item input {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.editor--it {
  font-style: italic;
}
.editor--ts span {
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}
.screen-invert .editor--ts span {
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}
.editor--ts:has(input:checked) span {
  -webkit-animation: editorTS 0.3s linear 0.2s forwards;
          animation: editorTS 0.3s linear 0.2s forwards;
}
@-webkit-keyframes editorTS {
  0% {
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
  }
  100% {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  }
}
@keyframes editorTS {
  0% {
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
  }
  100% {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  }
}
.screen-invert .editor--ts:has(input:checked) span {
  -webkit-animation: in-editorTS 0.3s linear 0.2s forwards;
          animation: in-editorTS 0.3s linear 0.2s forwards;
}
@-webkit-keyframes in-editorTS {
  0% {
    text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.5);
  }
  100% {
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
  }
}
@keyframes in-editorTS {
  0% {
    text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.5);
  }
  100% {
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
  }
}
.editor--st span {
  color: #333;
  text-shadow: -1px -1px 0px #FFF, -1px 1px 0px #FFF, 1px -1px 0px #FFF, 1px 1px 0px #FFF;
}
.screen-invert .editor--st span {
  color: #FFF;
  text-shadow: -1px -1px 0px #333, -1px 1px 0px #333, 1px -1px 0px #333, 1px 1px 0px #333;
}
.editor--bg span {
  background: #449CED;
  box-sizing: border-box;
  line-height: 1;
  padding: 0.1em 0.25em;
}
.editor--ag {
  align-items: center;
  border-radius: 5px;
  display: flex;
  height: 18px;
  justify-content: center;
  position: fixed;
  top: calc(35dvh - 60px);
  left: 15px;
  width: 18px;
}
.editor--ag label {
  align-items: center;
  color: #FFF;
  display: flex;
  height: 100%;
  opacity: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.screen-invert .editor--ag label {
  color: #333;
}
.editor--ag label:has(input:checked) {
  opacity: 1;
}
.editor--fs input {
  background: linear-gradient(90deg, #449CED 18%, transparent 0%);
  border-radius: 10px;
  box-shadow: 1px -1px 3px rgba(0, 0, 0, 0.5) inset, 0px 0px 1px rgba(0, 0, 0, 0.8) inset;
  display: block;
  height: 10px;
  margin: auto;
  position: fixed;
  left: calc(-15dvh + 25px);
  top: 0;
  bottom: 0;
  transform: rotate(-90deg);
  width: 30dvh;
}
.screen-invert .editor--fs input {
  box-shadow: inset 3px 3px 6px rgba(230, 230, 230, 0.3), inset -3px -3px 6px rgba(240, 240, 240, 0.8);
}
.editor--fs input::-webkit-slider-thumb {
  background: #BBB;
  border-radius: 50%;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
  height: 24px;
  width: 24px;
}
.screen-invert .editor--fs input::-webkit-slider-thumb {
  background: #DDD;
}
.editor--fc {
  border-radius: 30px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.85);
  height: 18px;
  overflow: hidden;
  position: fixed;
  top: calc(65dvh + 30px);
  left: 15px;
  width: 18px;
}
.screen-invert .editor--fc {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}
.editor--fc input {
  transform: scale(3);
}
.editor--ds {
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  left: 15px;
  width: 36px;
}
.editor--ds svg {
  aspect-ratio: 50/48;
  fill: #FFF;
  height: auto;
  transform: rotate(90deg);
  transition: 0.3s;
  width: 65%;
}
.screen-invert .editor--ds svg {
  fill: #333;
}
.editor--ds.active svg {
  fill: #449CED;
}
.editor--ds-menu {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  height: 12em;
  justify-content: center;
  margin: auto;
  opacity: 0;
  position: fixed;
  pointer-events: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(10px);
  transition: 0.3s;
  width: 90%;
}
.editor--ds-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.editor--ds-menu li {
  align-items: center;
  color: #FFF;
  display: flex;
  font-size: 20px;
  font-weight: bold;
  justify-content: center;
  width: 100%;
}
.editor--back {
  align-items: center;
  background: none;
  border: none;
  color: #FFF;
  display: flex;
  font-size: 10px;
  height: 36px;
  justify-content: center;
  position: fixed;
  letter-spacing: 0.1em;
  top: 15px;
  left: 15px;
  text-align: center;
  width: 36px;
}
.screen-invert .editor--back {
  color: #333;
}
.editor--back i {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.editor--comp {
  align-items: center;
  background: none;
  border: 1px solid #FFF;
  border-radius: 30px;
  color: #FFF;
  display: flex;
  font-size: 10px;
  height: 25px;
  justify-content: center;
  letter-spacing: 0.25em;
  margin: auto;
  opacity: 0.25;
  pointer-events: none;
  position: fixed;
  top: 15px;
  left: 310px;
  transition: 0.3s;
  width: 50px;
}
.screen-invert .editor--comp {
  border: 1px solid #333;
  color: #333;
}
.editor--comp.active {
  background: #FFF;
  color: #333;
  opacity: 1;
  pointer-events: auto;
}
.screen-invert .editor--comp.active {
  background: #333;
  color: #FFF;
}

/* ==================================================
CONSOLE
================================================== */
.console-field {
  display: none;
  height: 100dvh;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}
body.developer .console-field {
  display: block;
}
.console-field .begin-posi, .console-field .diff-posi, .console-field .scale-per, .console-field .calc-angle,
.console-field .act-obj, .console-field .multiple, .console-field .obj-posi,
.console-field .monitor-inner, .console-field .monitor-screen {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 8px;
  padding: 2px 5px;
  text-align: center;
}
.console-field .obj-posi {
  max-width: 120px;
  overflow: hidden;
}
.console-field .line01, .console-field .line02, .console-field .line03, .console-field .line04, .console-field .line05 {
  -moz-column-gap: 5px;
       column-gap: 5px;
  display: flex;
  position: fixed;
}
.console-field .line01, .console-field .line02, .console-field .line03 {
  left: 10px;
  width: 100%;
}
.console-field .line04, .console-field .line05 {
  right: 10px;
}
.console-field .line01 {
  top: 10px;
}
.console-field .line02 {
  top: 30px;
}
.console-field .line03 {
  top: 50px;
}
.console-field .line04 {
  top: 10px;
}
/*# sourceMappingURL=style.css.map */