* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px 48px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
  color: #1f2937;
  background: #f1f5f9;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.app-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.app-title {
  margin: 0 0 4px;
  font-size: 27px;
  line-height: 1.4;
}

.app-subtitle {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.logout-link {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.logout-link:hover {
  color: #1d4ed8;
  border-color: #93c5fd;
}

.app-body {
  padding: 0 24px;
}

.step {
  padding: 28px 0;
  border-bottom: 1px solid #e2e8f0;
}

.step:last-child {
  border-bottom: 0;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: #3b82f6;
  border-radius: 50%;
}

.step-title {
  margin: 0;
  font-size: 20px;
}

.step-description {
  margin: -8px 0 20px 42px;
  color: #64748b;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: #1f2937;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #dbeafe;
  border-color: #3b82f6;
}

textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.record-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    background 0.2s;
}

.button:hover:not(:disabled) {
  opacity: 0.9;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-primary {
  background: #3b82f6;
}

.button-secondary {
  background: #64748b;
}

.button-analysis {
  background: #0f766e;
}

.button-save {
  background: #3b82f6;
}

.recording-panel {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
  background: #f8fafc;
  border-radius: 12px;
}

.recording-status {
  margin-bottom: 10px;
  font-weight: 800;
}

.recording-status.active {
  color: #b91c1c;
}

.recording-time {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.audio-area {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.audio-area.show {
  display: block;
}

.audio-area-title {
  margin-bottom: 8px;
  font-weight: 700;
}

audio {
  width: 100%;
}

.analysis-panel {
  padding: 18px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
}

.analysis-status {
  margin: 0 0 12px;
  font-weight: 800;
}

.analysis-note {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.7;
}

.progress {
  overflow: hidden;
  height: 10px;
  margin-bottom: 18px;
  background: #e2e8f0;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: #3b82f6;
  transition: width 0.3s;
}

.result {
  display: none;
  margin-top: 18px;
  padding: 14px;
  line-height: 1.7;
  border-radius: 10px;
}

.result.show {
  display: block;
}

.result.info {
  color: #1e3a8a;
  background: #dbeafe;
}

.result.success {
  color: #166534;
  background: #dcfce7;
}

.result.error {
  color: #991b1b;
  background: #fee2e2;
}

.privacy-note {
  margin: 18px 0 0;
  padding: 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
}

/* ログイン画面 */

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.service-name {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.4;
}

.demo-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
}

.login-description {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.8;
}

.login-button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #3b82f6;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.login-button:hover {
  background: #2563eb;
}

.login-error {
  margin-top: 16px;
  padding: 12px 14px;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 10px;
}

@media (max-width: 560px) {
  body {
    padding: 12px 10px 32px;
  }

  .login-page {
    padding: 12px;
  }

  .login-card {
    padding: 28px 20px;
  }

  .app-header {
    padding: 20px 16px;
  }

  .app-title {
    font-size: 23px;
  }

  .app-body {
    padding: 0 16px;
  }

  .step {
    padding: 24px 0;
  }

  .record-buttons {
    grid-template-columns: 1fr;
  }

  .step-description {
    margin-left: 0;
  }

  .logout-link {
    padding: 7px 9px;
    font-size: 13px;
  }
}
.analysis-results {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.analysis-result-card {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.analysis-result-title {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.analysis-result-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

.analysis-result-list li + li {
  margin-top: 8px;
}

.todo-person {
  font-weight: 700;
}

.todo-deadline {
  display: inline-block;
  margin-left: 8px;
  color: #64748b;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-tag {
  display: inline-block;
  padding: 6px 10px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
  background: #dbeafe;
  border-radius: 999px;
}

.keyword-tag {
  color: #475569;
  background: #e2e8f0;
}

.empty-result {
  color: #94a3b8;
  font-size: 14px;
}