/* ===================================
   Tool: audio-noise-remover
   音声ノイズ除去ツール
   =================================== */

/* Hero Section */
.tool-hero {
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--teal-pale) 100%);
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: var(--space-md);
}

.badge-separator {
  color: var(--sage-400);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Tool Card */
.tool-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  padding: var(--space-xl);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.upload-area:hover {
  border-color: var(--green-main);
  background: var(--green-pale);
}

.upload-area.drag-over {
  border-color: var(--green-main);
  background: var(--green-pale);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.upload-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.upload-link {
  color: var(--green-main);
  font-weight: 600;
  text-decoration: underline;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* File Info */
.file-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.file-icon {
  font-size: 2rem;
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-name {
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.file-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--sage-200);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.file-remove:hover {
  background: var(--red-pale);
  color: var(--red);
}

/* Settings */
.setting-group {
  margin-bottom: var(--space-lg);
}

.setting-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.label-text {
  font-weight: 600;
  color: var(--text-primary);
}

.label-value {
  font-weight: 700;
  color: var(--green-main);
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--sage-200);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-main);
  cursor: pointer;
  border: none;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.setting-info {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--blue-pale);
  border-radius: var(--radius-md);
}

.info-icon {
  font-size: 1.2rem;
}

.setting-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Audio Section */
.audio-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.audio-section.processed {
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--teal-pale) 100%);
  border: 2px solid var(--green-mist);
}

.audio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--text-primary);
}

.audio-label-icon {
  font-size: 1.2rem;
}

.audio-badge {
  padding: 2px 8px;
  background: var(--green-main);
  color: white;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.audio-player {
  width: 100%;
}

.audio-player audio {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
}

.waveform-container {
  height: 60px;
  margin-top: var(--space-md);
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--green-main);
  color: white;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--sage-200);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--sage-300);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Processing Overlay */
.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.processing-content {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 300px;
}

.processing-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--sage-200);
  border-top-color: var(--green-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-lg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--sage-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-main), var(--teal));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-percent {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.use-cases {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-cases li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.use-cases li:last-child {
  border-bottom: none;
}

.use-cases strong {
  color: var(--text-primary);
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  position: relative;
  padding-left: var(--space-lg);
  padding-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-weight: bold;
}

.privacy-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.trivia-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.trivia-content p {
  margin: 0 0 var(--space-sm);
}

.trivia-content p:last-child {
  margin-bottom: 0;
}

.trivia-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Features Section */
.features-section {
  background: var(--bg-secondary);
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Guide Section */
.guide-section {
  padding: var(--space-3xl) 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.guide-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.guide-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.guide-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.guide-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.guide-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.guide-tips li {
  position: relative;
  padding-left: var(--space-lg);
  padding-bottom: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-tips li:last-child {
  padding-bottom: 0;
}

.guide-tips li::before {
  content: '•';
  position: absolute;
  left: var(--space-xs);
  color: var(--green-main);
  font-weight: bold;
}

/* Tips Section */
.tips-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.tip-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-main), var(--teal));
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.tip-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: var(--space-3xl) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--green-main);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--green-main);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-xl);
  background: var(--dark-forest);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

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

.toast-success {
  background: var(--green-main);
}

.toast-error {
  background: var(--red);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
