body {
    margin: 0;
    padding-top: 75px; 
    font-family: 'Kiwi Maru', serif;
  }
  
  header {
    background-color: #000;
    padding: 10px 0;
    position: fixed; 
    top: 0; 
    width: 100%;
    z-index: 1003;
  }
  
  .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
  }
  
  .logo img {
    height: 55px;
  }
  
  .hamburger-menu {
    position: relative;
    z-index: 1002;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border: 2px solid #fff;
    cursor: pointer;
    outline: none;
    padding: 10px;
    border-radius: 5px;
    width: 60px;
    height: 60px;
    position: relative;
    user-select: none;
    margin-right: 10px;
  }
  
  .hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: absolute;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .hamburger-line:nth-child(1) {
    top: 8px;
  }
  
  .hamburger-line:nth-child(2) {
    top: 18px;
  }
  
  .hamburger-line:nth-child(3) {
    top: 28px;
  }
  
  .hamburger.close .hamburger-line:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
  }
  
  .hamburger.close .hamburger-line:nth-child(2) {
    display: none;
  }
  
  .hamburger.close .hamburger-line:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
  }
  
  .menu-text {
    display: block;
    font-size: 14px;
    color: #fff;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
  }
  
  .menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    z-index: 1001;
    user-select: none;
  }
  
  .menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .menu li {
    padding: 20px 0;
  }
  
  .menu li a {
    text-decoration: none;
    color: #fff;
    font-size: 24px;
  }

/*ここまで固定*/

main {
  color: #545454;
  background-color: white;
  max-width: 800px;
  width: 80%;
  margin: 0 auto;
  padding-top: 10px;

}

/* プレビューセクション */
#preview {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 10px;
  user-select: none;
}

#template-image {
  width: 95%;
  border-radius: 5px;
  padding: 10px;
  border: 2px solid rgb(59, 59, 59);
}  

/* カラーセレクター */
#color-selector {
border-radius: 5px;
padding: 10px;
background-color: #e2e0e0;
}

.color-selector-container {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  user-select: none;
}

#color-selector input[type="radio"] {
  display: none;
}

.color-selector-container label {
  display: block;
  cursor: pointer;
  text-align: center;
  padding: 5px 3px;
  border: 2px solid rgb(59, 59, 59);
  background-color: #ffffff;
  transition: background-color 0.3s;
  width: 22%; 
  border-radius: 2px;
}

.color-selector-container label:hover, 
.color-selector-container input[type="radio"]:checked + label {
  color: #fff;
  background-color: rgb(59, 59, 59);
}

@media (max-width: 600px) {
  #color-selector label {
    font-size: 0.8em;
  }
}

input[type="range"].rainbow-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, 
      #f00 0%, #ff0 16.7%, #0f0 33.3%, #0ff 50%, #00f 66.7%, #f0f 83.3%, #f00 100%);
  outline: none;
  opacity: 0.7;
  -webkit-transition: opacity .2s;
  transition: opacity .2s;
}

input[type="range"].monochrome-slider {
  background: linear-gradient(to right, #000 0%, #fff 100%);
}

input[type="range"].rainbow-slider:hover {
  opacity: 1;
}

input[type="range"].rainbow-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"].rainbow-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 50%;
  cursor: pointer;
}

/* フォントセレクター */

#font-selector {
  margin-top: 15px;
  border-radius: 5px;
  padding: 10px;
  background-color: #e2e0e0;
}

#font-selector input[type="radio"] {
  display: none;
}

.font-selector-container {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  user-select: none;
}

.font-selector-container label {
  display: block;
  cursor: pointer;
  text-align: center;
  padding: 5px 3px;
  border: 2px solid rgb(59, 59, 59);
  background-color: #ffffff;
  transition: background-color 0.3s;
  width: 14%; 
  border-radius: 2px;
}

.font-selector-container label:hover, 
.font-selector-container input[type="radio"]:checked + label {
  color: #fff;
  background-color: rgb(59, 59, 59);
}

.font-selector-container label:nth-of-type(1) {
  font-family: 'Zen Maru Gothic', sans-serif;
}

.font-selector-container label:nth-of-type(2) {
  font-family: 'Hachi Maru Pop', cursive;
}

.font-selector-container label:nth-of-type(3) {
  font-family: 'Klee One', cursive;
}

.font-selector-container label:nth-of-type(4) {
  font-family: 'Yusei Magic', sans-serif;
}

.font-selector-container label:nth-of-type(5) {
  font-family: 'DotGothic16', sans-serif;
}

.font-selector-container label:nth-of-type(6) {
  font-family: 'New Tegomin', serif;
}

@media (max-width: 600px) {
  #font-selector label {
    font-size: 0.8em;
  }
}

/* ラベル */
.tag-label-eng,
.tag-label-jpn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-left: 5px;
  text-shadow: 2px 2px 0 #fff;
  user-select: none;
}

.tag-label-eng {
  font-size: small;
  color: #6cacc0;
}

.tag-label-jpn {
  margin-top: -30px;
  margin-bottom: -15px;
  font-size: larger;
  font-weight: bold;
}

/* シンボルエディター */

  /* テキスト */
  .text-symbols{
    margin-top: 15px;
    border-radius: 5px;
    padding: 10px;
    background-color: #e2e0e0;
  }

  .text-inputs {
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid rgb(59, 59, 59);
    border-radius: 2px;
    height: 32px;
    padding: 5px;
  }

  .text-inputs:focus {
    outline: none;
    border: 2px solid #a8a8a8;
  }

  /* チェックボックス */
  .checkboxes-symbols{
    margin-top: 15px;
    border-radius: 5px;
    padding: 10px;
    background-color: #e2e0e0;
  }
  .symbol-checkboxes-container {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    user-select: none;
  }
  
  .symbol-checkbox {
    display: none;
  }
  
  .symbol-checkbox + label {
    display: block;
    cursor: pointer;
    text-align: center;
    padding: 5px 3px;
    border: 2px solid rgb(59, 59, 59);
    background-color: #ffffff;
    transition: background-color 0.3s;
    width: 17%; 
    border-radius: 2px;
  }
  
  .symbol-checkbox:checked + label {
    color: #fff;
    background-color: rgb(59, 59, 59);
  }
  
  @media (hover: hover) and (pointer: fine) {
    .symbol-checkbox:hover + label {
      color: #fff;
      background-color: rgb(59, 59, 59);
    }
  }  

  @media (max-width: 600px) {
    .symbol-checkbox + label {
      font-size: 0.8em;
    }
  }
      
/* エディットツールバー */
#edit-toolbar {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  user-select: none;
  border-radius: 5px;
  padding: 10px;
  background-color: #e2e0e0;
  margin-bottom: 30px;
}

#terms-container {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

#buttons-container {
  display: flex;
  justify-content: space-between;
}

#edit-toolbar button {
  width: 32%; 
  padding: 5px 3px;
  border: 2px solid rgb(59, 59, 59);
  background-color: #ffffff;
  transition: background-color 0.3s;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Kiwi Maru', serif;
}

@media (hover: hover) and (pointer: fine) {
  #edit-toolbar button:hover {
    color: #fff;
  }

  #edit-toolbar #reset:hover {
    background-color: #c2cf0d;
    border: none;
  }

  #edit-toolbar #download:hover {
    background-color: #1dcf0d;
    border: none;
  }

  #edit-toolbar #tweet:hover {
    background-color: #0d8ecf;
    border: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  #edit-toolbar button {
    color: #fff;
  }

  #edit-toolbar #reset {
    background-color: #c2cf0d;
    border: none;
  }

  #edit-toolbar #download {
    background-color: #1dcf0d;
    border: none;
  }

  #edit-toolbar #tweet {
    background-color: #0d8ecf;
    border: none;
  }
}

/* オーバーレイ */
#preview-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.8);
}

#preview-container.hidden {
  display: none;
}

#preview-image {
  max-height: 50%;
  max-width: 80%;
}

#preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 昇降ボタン */
#scroll-to-top,
#scroll-to-bottom {
  position: fixed;
  right: 20px;
  background-color: #ffffff;
  padding: 10px;
  cursor: pointer;
  z-index: 998;
  border: none; 
  border-radius: 20%; 
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3); 
}

#scroll-to-top {
  bottom: 60px; 
}

#scroll-to-bottom {
  bottom: 20px; 
}

#scroll-to-top:before {
  content: "";
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
  width: 10px;
  height: 10px;
  border-bottom: 2px solid rgb(0, 0, 0, 0.3);
  border-left: 2px solid rgb(0, 0, 0, 0.3);
}


#scroll-to-bottom:before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
  width: 10px;
  height: 10px;
  border-top: 2px solid rgb(0, 0, 0, 0.3);
  border-right: 2px solid rgb(0, 0, 0, 0.3);
}

h1{
display:none;
}
