* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
  padding: 24px 16px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
	padding-bottom: 50px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
	margin-top: 2em;
}

.subtitle {
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 20px;
}

/* Editor */
.editor-area {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 220px;
  padding: 16px;
  border: none;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.7;
  color: #2d3748;
  outline: none;
}

textarea::placeholder {
  color: #a0aec0;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}

/* Buttons */
.btn {
  padding: 6px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.8; }

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-danger {
  background: #fc8181;
  color: #fff;
}

/* Results */
.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-group {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
}

.result-group h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 500px) {
  .result-grid { grid-template-columns: 1fr; }
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f7fafc;
  border-radius: 8px;
}

.label {
  font-size: 0.85rem;
  color: #4a5568;
}

.value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3182ce;
  min-width: 60px;
  text-align: right;
}

.value small {
  font-size: 0.65rem;
  font-weight: 400;
  color: #718096;
  margin-left: 2px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2d3748;
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
