:root {
  --max-width: 720px;
  --font-main: "Noto Sans JP", sans-serif;
  --border: #e5e7eb;
  --text-main: #111;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background: #fff;
  line-height: 1.75;
}

.nw-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.title {
  font-size: 26px;
  margin-bottom: 8px;
}

.subtitle {
  margin-bottom: 24px;
  color: #555;
}

.generator-panel {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 32px;
}

.generator-panel label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 500;
}

.generator-panel select,
.generator-panel input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}

.generate-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
}

.generate-btn:disabled {
  background: #aaa;
}

.progress {
  height: 4px;
  background: #111;
  margin-top: 16px;
}

.hidden { display: none; }

/* Result Section */
.result-section {
  margin-top: 40px;
}

.result-text {
  white-space: pre-wrap;
  font-size: 16px;
  margin-bottom: 20px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-direction: column; /* スマホ：縦並び */
}

.outline-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

/* PC 768px 以上 */
@media (min-width: 480px) {
  .result-actions {
    flex-direction: row; /* 横並び */
  }
}

/* Additional styles for interactions */
.nw-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
}

.lang-switch button.active {
  background: #111;
  color: #fff;
}

.progress.loading {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.progress.loading::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #111 0%, #444 50%, #111 100%);
  animation: slide 1.1s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.result-text .part-label {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.copy-success {
  color: #0a7f42;
  font-size: 14px;
  margin-top: 6px;
}
