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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Segoe UI', sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

header {
  text-align: center;
  padding: 24px 0 8px;
}

h1 {
  font-size: 1.4rem;
  color: #7b9eff;
  letter-spacing: 0.05em;
}

/* ── 録音エリア ── */
.record-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 40px;
  gap: 24px;
}

.record-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  background: #4361ee;
  color: white;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(67, 97, 238, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.record-btn:active {
  transform: scale(0.93);
}

.file-btn {
  border: none;
  border-radius: 999px;
  background: #2f46c8;
  color: white;
  font-size: 0.92rem;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 20px;
  box-shadow: 0 4px 18px rgba(67, 97, 238, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.file-btn:active {
  transform: scale(0.96);
}

.file-btn:disabled,
.record-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.file-input {
  display: none;
}

.record-btn.recording {
  background: #e63946;
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.45);
  animation: pulse 1.5s ease-in-out infinite;
}

.btn-icon {
  font-size: 2rem;
  line-height: 1;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(230, 57, 70, 0.45); }
  50%       { box-shadow: 0 4px 48px rgba(230, 57, 70, 0.85); }
}

.status {
  color: #8888aa;
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}

/* ── カード ── */
section {
  margin-top: 28px;
}

h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6666aa;
  margin-bottom: 10px;
}

.card {
  background: #16213e;
  border-radius: 14px;
  padding: 18px;
  line-height: 1.7;
}

.card pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.95rem;
}

.card.transcript {
  opacity: 0.6;
  font-size: 0.88rem;
}

.save-status {
  color: #4cc9a0;
  font-size: 0.82rem;
  text-align: right;
  margin-top: 8px;
}
