body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f4f8;
  padding: 20px;
  max-width: 700px;
  margin: auto;
}

h1, h2 {
  text-align: center;
}

textarea, input[type="text"], input[type="password"], select, input[type="number"], input[type="range"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.password-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-container button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
}

.password-container button:focus {
  outline: none;
}

.password-container svg {
  width: 24px;
  height: 24px;
  fill: #555;
}
.password-container button:hover {
  background-color: transparent !important;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 4px 2px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  flex-grow: 1;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0057b3;
}

img {
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  display: block;
  object-fit: contain;
  height: auto;
}

.section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#imageDropArea {
  border: 2px dashed #ccc;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: #666;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

#imageDropArea.dragover {
  border-color: #007bff;
  background-color: #e7f1ff;
  color: #007bff;
}

.char-count {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 10px;
}

.note {
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
}

.buttons-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.buttons-row button {
  flex: 1;
  margin: 0;
}

/* 画像プレビューの高さ制限 */
#imagePreview {
  max-height: 300px;
  width: 100%;
  border-radius: 6px;
  background: white;
  object-fit: contain;
  display: block;
}
.slider-number-container {
  display: flex;
  gap: 1px;
  align-items: center;
  width: 100%;
}

#imageResizeSlider {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

#imageResizeNumber {
  width: 60px;
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  flex-shrink: 0;
}

