body {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.app {
  max-width: 1200px;
  width: 100%;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
  color: #333;
}

.container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

textarea {
  flex: 1;
  min-height: 400px;
  resize: vertical;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.controls * {
  margin: 6px;
}

button {
  background: #6200ea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #3700b3;
}

#output {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.output-block {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.output-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: monospace;
  font-size: 13px;
}

.copy-btn {
  margin-left: 10px;
  background: #03dac6;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #018786;
  color: white;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  textarea {
    min-height: 200px;
  }
}