body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.settings-panel,
.preview-panel,
.output-panel {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.output-panel {
  grid-column: 1 / span 2;
  height: 400px;
  overflow-y: auto;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.video-container {
  width: 100%;
  margin-bottom: 15px;
}

video {
  width: 100%;
  border-radius: 4px;
}

.progress-container {
  margin-top: 20px;
  display: none;
}

.progress-bar {
  height: 20px;
  background-color: #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.3s;
}

.status {
  font-style: italic;
  color: #555;
}

.manual-content {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  min-height: 300px;
  overflow: auto;
}

/* Additional styling for rich HTML manual content */
.manual-content h1,
.manual-content h2,
.manual-content h3 {
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 10px;
}

.manual-content h1 {
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}

.manual-content h2 {
  border-left: 4px solid #3498db;
  padding-left: 10px;
}

.manual-content ul,
.manual-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.manual-content li {
  margin-bottom: 5px;
}

.manual-content .important {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 10px;
  margin: 10px 0;
}

.manual-content .note {
  background-color: #e1f5fe;
  border-left: 4px solid #03a9f4;
  padding: 10px;
  margin: 10px 0;
}

.manual-content .warning {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  padding: 10px;
  margin: 10px 0;
}

.manual-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
}

.manual-content th,
.manual-content td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.manual-content th {
  background-color: #f2f2f2;
}

.manual-content tr:nth-child(even) {
  background-color: #f9f9f9;
}

.export-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.loader {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.alert {
  padding: 10px;
  background-color: #f44336;
  color: white;
  margin-bottom: 15px;
  border-radius: 4px;
  display: none;
}

/* 手順書改良ページ用 */
.file-info {
  font-size: 0.9em;
  color: #666;
  margin-top: -10px;
  margin-bottom: 15px;
}

.diff-panel {
  grid-column: 1 / span 2;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.diff-content {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}
