#create-type {
  color: #388E3C;
  font-size: 2.5rem;
  background-color: #C8E6C9;
}

#header-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

#wiki-button {
  font-size: 2.5rem;
  padding: 10px 14px;
  background-color: white;
  color: #388E3C;
  border: 2px solid #388E3C;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s, color 0.2s;
}

#wiki-button:hover {
  background-color: #f2fff2;
}

#signin-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9000;
}
/*
#signin-button {
  font-size: 2.5rem;
  padding: 10px 14px;
  background-color: #388E3C;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

#signin-button:hover {
  background-color: #2E7D32;
}*/

#visitor-button {
  width: 338px;
  font-size: 2.5rem;
  text-align: left;
  padding: 10px 14px;
  background-color: #388E3C;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

#visitor-button:hover {
  background-color: #2E7D32;
}

#account-button {
  width: 338px;
  font-size: 2.5rem;
  text-align: left;
  padding: 10px 14px;
  background-color: #388E3C;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

#account-button:hover {
  background-color: #2E7D32;
}

#account-menu {
  font-size: 2.5rem;
  position: absolute;
  right: 0;           /* 左端揃え */
  background: #388E3C;
  border: 1px solid #388E3C;
  padding: 4px;
  border-radius: 4px;
  z-index: 1000;
}

#account-menu button {
  display: block;
  width: 328px;
  height: 70px;
  text-align: left;
  padding: 4px 6px;
  font-size: 2.5rem;
  background-color: #81C784;
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 4px;
  transition: background-color 0.2s;
}

#account-menu button:hover {
  background-color: #C8E6C9;
}

#visitor-menu {
  font-size: 2.5rem;
  position: absolute;
  top: 100%;         /* ボタンの下に */
  right: 0;           /* 左端揃え */
  background: #388E3C;
  border: 1px solid #388E3C;
  padding: 4px;
  border-radius: 4px;
  z-index: 1000;
}

#visitor-menu button {
  display: block;
  width: 328px;
  height: 70px;
  text-align: left;
  padding: 4px 6px;
  font-size: 2.5rem;
  background-color: #81C784;
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 4px;
  transition: background-color 0.2s;
}

#visitor-menu button:hover {
  background-color: #C8E6C9;
}



/* 🔘 ラベル全体のデザイン(図案選択) */
#locator-area {
  position: fixed;
  top: -0.5%;
  left: 50%;
  transform: translate(-50%, -10px);  /* 中央にずらす */
  z-index: 9999;                     /* 他の要素より前に出す */
}
.switch-label {
  position: relative;
  display: flex;                  /* ← blockではなくflex */
  flex-direction: row;           /* ← 横並びに見せつつ左寄せ */
  align-items: center;
  justify-content: flex-start;   /* ← 左寄せ！ */
  gap: 10px;                     /* ← チェックボックスとの間 */

  height: 100px;
  cursor: pointer;
  font-size: 3rem;
  margin: 0;
  border-radius: 12px;
  padding: 5px 0px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0);
}
/* 🔘 select要素(FIDセレクトボックス)のデザイン */
#locator {
  font-size: 2.8rem;
  font-weight: bold;
  padding: 2px 8px;
  border: 2px solid #388E3C;
  border-radius: 8px;
  background-color: #fff;
  color: #000;

  appearance: none; /* 標準の矢印を非表示 */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%234CAF50%22%20d%3D%22M2%200L0%202h4z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  padding-right: 30px; /* 矢印分の余白 */
}

/* 🔘 表示されないimgnameスパン */
#imgname {
  display: none;
}




h1.with-reset {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* リセットボタンのスタイル(他のボタンと合わせたサイズ) */
h1.with-reset button {
  font-size: 2.1rem;
  padding: 14px 24.5px;
  background-color: white;
  color: #388E3C;
  border: 5px solid #388E3C;
  border-radius: 20px;
  cursor: pointer;
  height: 84px !important; /* 120px の 70% */
  min-width: 140px !important; /* 200px の 70% */
}

/* ホバー時 */
h1.with-reset button:hover {
  background-color: #e6f2ff;
}

#preview-box {
  border: 0;
  margin: 0;
  margin-top: 5px;
  padding: 0;
  width: 1018px;
  height: 1018px;
  position: relative;
  background-color: #eee;
  overflow: hidden;
}

#preview-img {
  border: 0;
  margin: 0;
  padding: 0;
  width: 1018px;
  height: 1018px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
/* 手描き用の箱（最初はJSで表示切り替えする想定なら display:none でOK） */
#manual-box {
  display: none;                 /* JSで from-zero 時に block にする */
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background-color 0.15s ease;
}

/* ラベルは普通に表示したいので display:none は消す */
#manual-box label {
  font-size: 1.8rem;
  font-weight: 600;
  color: #444;
}

/* 説明文も、初期非表示なら JSで制御。ここでは見た目だけ */
#comment-from-zero {
  /* display は JS 側で制御するとして、見た目だけ整える */
  text-align: left;
  margin-top: 6px;
  color: #555;
  font-size: 1.5rem;
}

/* カラーピッカー本体のスタイル（四角 & 大きめ） */
#handdraw-color {
  width: 90%;
  height: 220px;
  padding: 0;

  appearance: none;
  -webkit-appearance: none;

  border: none;
  border-radius: 15px;

  cursor: pointer;
  overflow: hidden;

  box-shadow:
    0 0 0 2px #ccc inset,
    0 4px 10px rgba(0, 0, 0, 0.15);

  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* WebKit系で形だけ整える（色は消さない） */
#handdraw-color::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 15px;
}

#handdraw-color::-webkit-color-swatch {
  border: none;
  border-radius: 15px;
}

/* タップ/クリック時の反応 */
#handdraw-color:active {
  transform: scale(0.93);
  box-shadow:
    0 0 0 2px #ccc inset,
    0 1px 2px rgba(0, 0, 0, 0.18);
}

#catch {
  font-size: 2.8rem;
  margin: 10px;
  margin-top: 90px;
  margin-bottom: 20px;
}

#catch2 {
  font-size: 1.6rem;
  margin: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#catch3 {
  color: gray;
  font-size: 1.6rem;
  margin: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.overlay {
  border: 0;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.palette-links {
  width: 400px;
  height: 493px;
  padding: 0;
  margin: 0;
  background-color: white;
}

.palette-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.palette-links li {
  margin-bottom: 10px;
}

.palette-links a {
  font-size: 3rem;
  color: #388E3C;
  text-decoration: none;
}

.palette-links a:hover {
  text-decoration: underline;
}

.grid-list {
  width: 800px;
  height: 493px;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2列 */
  gap: 10px;                       /* アイテムの間隔(調整OK) */
  list-style: none;
  padding: 0;
  margin: 0;
}

.palette-button {
  display: inline-block;
  padding: 5px 20px;
  margin: 5px 0;
  width: 350px;
  font-size: 1rem;
  color: #388E3C;
  background-color: white;
  border: 5px solid #388E3C;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  /*transform: scale(0.7);       /* ← ここ追加 */
  /*transform-origin: left top; /* ← 左上基準で縮小 */
}

option.disabled-option {
  color: gray;
  background-color: #666666;
}

/* カラーチャート用の大きなチェックボックス */
.color-chart-colors input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 60px;
  height: 60px;
  border: 5px solid #388E3C;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

.color-chart-colors input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: -3px;                     /* ✅ 微調整(中心に近づける) */
  left: 4px;
  font-size: 3rem;
  color: #388E3C;                /* ✅ セレクトと同じ青 */
}



#upload-container {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  width: 100%;
}

#progress-container {
  background-color: #ccc;
  width: 100%;
  height: 60px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  border-radius: 5px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #C8E6C9;
  transition: width 0.3s ease;
}

#progress-comment label {
  font-size: 3rem; /* 1.6rem の 3倍 */
}

/* 横・縦ドット数の自由入力チェックボックスを大きく揃える */
#cols-free-check,
#rows-free-check {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 60px;
  height: 60px;
  border: 5px solid #388E3C;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 10px;
  position: relative;
}

#cols-free-check:checked::after,
#rows-free-check:checked::after {
  content: "✔";
  position: absolute;
  top: -3px;
  left: 4px;
  font-size: 3rem;
  color: #388E3C;
}

/* 
label[for="cols-free-check"] {
  display: flex;
  align-items: center;
  gap: 6px;
}
 */

/* 🔢 横・縦ドット数のセレクト＆自由入力テキストを同じテイストに */
#colors,
#cols,
#rows,
#guide,
#cols-text,
#rows-text {
  box-sizing: border-box;
  font-size: 2.5rem;
  padding: 10px 14px;
  border: 5px solid #388E3C;
  border-radius: 20px;
  color: #388E3C;
  background-color: #fff;
}

/* 自由入力テキスト用の横幅・レイアウト調整 */
#cols-text,
#rows-text {
  width: 380px;           /* セレクトと揃うように調整 */
  height: 100px;
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* デバッグ用に追記 */
.preview-overlay {
  background: rgba(0, 0, 0, 0.5);
}

#char-table {
  display: none;
  margin-top: 1em;
}
#toggle-button {
  cursor: pointer;
  color: #388E3C;
  background: none;
  border: none;
  font-size: 1em;
  text-decoration: underline;
}
