@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;
  }
}

#preview_area {
  background-color: #444;
  padding: 10px;
  overflow-x: scroll;
  height: 350px;
}

#preview_list {
  white-space: nowrap;
}

#preview_list li {
  display: inline-block;
  vertical-align: top;
  height: 300px;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  margin-right: 1em
}

#preview_list li img {
  width: auto;
  height: 100%;
}

#preview_list 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
}

.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;
}

.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;
}


#drop_area {
  margin: 1em;
  height: 350px;
  width: calc(100%-2em);
  border: 5px dotted #ccc;
  border-radius: 10px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
  cursor: pointer;
}

#drop_area2 {
  height: 300px;
  border: 5px dotted #ccc;
  border-radius: 10px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
}

.thumb_setting {
  margin-top: 0.3em;
}

.status {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  border-radius: 5px;
  padding: 0.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view_info_area {
  text-align: right;
}

.style_area {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  border-radius: 5px;

  padding: 0.5em;
}

.image_area {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  border-radius: 5px;
  border: 1px solid #777;
  padding: 0;
}

.thumb_setting {
  margin: 0.5em;
}

.input_area {
  font-size: 1.2em;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 5px;
  padding: 0.5em;
}

.submit_area {
  margin-bottom: 2em;
}

#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%;
}

#contents {
  height: 20em;
  width: 100%;
  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;
}

#options_area label {
  margin-left: 0.5em;
}


#tagcloud_area {
  margin: 1em 2em 1em 2em;
}

#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;
}

footer {
  position: relative;
}

.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, #fff);
  border: 1px solid var(--dialog-base-d-color, #999);
  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;
  }
}