@media (max-width: 767px) {

  /* 携帯電話用 */
  body {
    padding-bottom: 3em;
  }

  .sp-fix-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3.5em;
    background-color: #fff;
    border-top: 1px solid #999;
    width: 100%;
  }


  .sp-fix-footer button {
    display: block;
    margin: 0.3em auto 0.3em auto;
  }

  #submit {
    display: none;
  }

}

@media (min-width: 767px) {

  /* PC用 */
  .sp-fix-footer {
    display: none;
  }
}

#previewArea {
  background-color: #444;
  padding: 10px;
  overflow-x: scroll;
  height: 350px;
}

#previewList {
  white-space: nowrap;
}

#previewList li {
  display: inline-block;
  vertical-align: top;
  height: 300px;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  margin-right: 1em
}

#previewList li img {
  width: auto;
  height: 100%;
}

#previewList li button {
  position: absolute;
  display: inline-block;
  left: 0;
  top: 0;
  width: 1.2em;
  height: 1.2em;
  line-height: 1.1em;
  vertical-align: middle;
  margin: 2px;
  padding: 0;
  border-radius: 1em;
  border: 1px solid #999;
  font-weight: 800;
  background-color: #fff
}

.contextmenubutton {
  position: absolute;
  display: inline-block;
  right: 5px;
  top: 2px;
  font-size: 1em;
  opacity: 0.7;
  text-shadow: 2px 2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, -2px -2px 0 #fff;
}

.mover {
  position: absolute;
  display: inline-block;
  right: 2px;
  bottom: 2px;
  font-size: 2em;
  opacity: 0.7;
  text-shadow: 2px 2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, -2px -2px 0 #fff;
}

.movel {
  position: absolute;
  display: inline-block;
  left: 2px;
  bottom: 2px;
  font-size: 2em;
  opacity: 0.7;
  text-shadow: 2px 2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, -2px -2px 0 #fff;
}

#dropArea {
  height: 350px;
  width: 100%;
  border: 5px dotted #ccc;
  border-radius: 10px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
  cursor: pointer;
}

#dropArea2 {
  height: 300px;
  border: 5px dotted #ccc;
  border-radius: 10px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
}

.view-info-area {
  margin-top: 2em;
  font-size: em;
  text-align: right;
}

.input-area {
  font-size: 1.2em;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 5px;
  padding: 0.5em;
}


#title {
  margin-bottom: 0.2em;
  width: 100%;
}

#created_at {
  margin-bottom: 0.2em;
  font-size: 0.8em;
  color: #888;
  width: 100%;
}


#tags {
  width: 100%;
}

#delete_key {
  width: 100%;
}

.tag-cloud-more {
  width: 100%;
}

#comment {
  height: 20em;
  border: none;
  margin: 0.2em 0 0.2em 0;
  padding: 0;
}

#tag-input-area {
  margin-top: 2em;
}

#submit-area {
  margin-top: 2em;
  text-align: center;
}

#delete-area {
  margin-top: 3em;
  text-align: center;
}

#options-area {
  margin-top: 2em;
}

#tagcloud_area {
  margin: 1em 2em 1em 2em;
}

.tag-cloud-more-link {
  font-size: 0.8em;
  display: inline-block;
  padding: 2px 0.5em 2px 0.5em;
  color: #777;
  margin-right: 1em;
}

.tag-cloud-more-link:hover {
  color: #000;
}

.tag {
  font-size: 0.8em;
  display: inline-block;
  background-color: #777;
  padding: 2px 0.5em 2px 0.5em;
  color: #fff;
  border-radius: 5px;
  margin-right: 1em;
  margin-bottom: 0.5em;
  cursor: pointer;
}

.tag:hover {
  background-color: #CCC;
}

.tag a {
  color: #fff;
}

#time_reload {
  font-size: 0.8em;
  position: absolute;
  margin-left: -1.5em;
  color: #CCC;
  cursor: pointer
}

#time_reload:hover {
  color: #999;
}

.command_palette {
  max-height: 95%;
}

.command_palette_inner {
  margin-bottom: 2em;
  max-height: 80%;
}

.command_palette ul {
  list-style: none;

}

.insert_item {
  margin-bottom: 0.3em;
  cursor: pointer;
}

.thumb-setting {
  margin-top: 0.5em;
}

.image-edit-overlay {
  display: box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9999;
  overflow: auto;
}

.image-edit {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;

  width: 90vw;
  height: 90vh;
  padding: 2em 1em 1em 1em;
  background-color: var(--dialog-base-color);
  border: 1px solid var(--dialog-base-d-color);
  border-radius: 5px;

  display: flex;
  flex-direction: column;
}

.image-edit-contents {
  overflow-y: auto;
  width: auto;
  text-align: center;

}

#canvas {
  border: 1px solid #555;
  touch-action: none;
}

.gradient_slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  outline: none;
  margin: 15px;
  padding: 0;
  border: 1px solid #000;
  overflow: visible;
}

#tintInput {
  background: linear-gradient(to right, #FF99FF, #CCF, #99FF99);
}

#temperatureInput {
  background: linear-gradient(to right, #9999FF, #FEF, #FF9955);
}

#brightnessInput {
  background: linear-gradient(to right, #555555, #FFffff);
}

.gradient_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 25px;
  background-color: #fff;
  cursor: pointer;
  border: 1px solid #000;
}

@media (max-width: 450px) {
  .slider-container {
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    align-items: center;
    justify-content: center;
  }

  .gradient_slider {
    width: 90%;
  }
}

@media (min-width: 450px) {
  .slider-container {
    width: 100%;
    display: grid;
    grid-template-columns: 7em 350px 7em;
    align-items: center;
    justify-content: center;
  }

  .gradient_slider {
    width: 300px;
  }
}