:root {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans JP",
    sans-serif;
  color: #183329;
  background: #f3f6f2;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 48px 24px;
}
header {
  margin-bottom: 32px;
}
h1 {
  font-size: 54px;
  letter-spacing: -2px;
  margin: 16px 0 12px;
}
h1 small {
  font-size: 18px;
  letter-spacing: 0;
  margin-left: 20px;
  font-weight: 500;
}
h2 {
  margin: 0 0 16px;
  font-size: 22px;
}
p {
  line-height: 1.8;
}
header > p {
  color: #53695e;
}
.badge {
  border: 1px solid #b7cfc1;
  background: #e5efe7;
  color: #2d6145;
  border-radius: 24px;
  padding: 7px 12px;
  font-size: 12px;
}
.card {
  background: white;
  border: 1px solid #dce5dc;
  border-radius: 20px;
  padding: 28px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #65806d;
  margin: 0 0 8px;
}
button,
.file-label,
.button {
  font: inherit;
  font-size: 14px;
  border: 1px solid #bad0be;
  border-radius: 10px;
  background: #e9f1ea;
  color: #244c35;
  padding: 13px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
button:hover:not(:disabled),
.file-label:hover,
.button:hover {
  background: #dbeade;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
.secondary {
  background: #fff;
  border-color: #d8e2d9;
  color: #456151;
}
.primary {
  background: #286044;
  color: #fff;
  border-color: #286044;
  width: 100%;
  margin-top: 20px;
}
.primary:hover:not(:disabled) {
  background: #1e4d35;
}
.file-label {
  width: 100%;
  margin-top: 16px;
}
input[type="file"] {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  font: inherit;
  font-size: 12px;
  color: #617166;
}
.small {
  font-size: 12px;
  color: #577060;
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 10px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.result {
  margin-top: 20px;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-heading h2 {
  margin: 0;
}
.transcript {
  font-size: 24px;
  line-height: 1.8;
  min-height: 110px;
  padding: 24px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
audio {
  display: block;
  width: 100%;
  margin-top: 20px;
}
audio[hidden] {
  display: none;
}
footer {
  padding: 24px 4px;
  color: #6f7f73;
  font-size: 12px;
}
footer a {
  color: #286044;
}
footer p {
  margin: 5px 0;
}
.error {
  color: #a73e25;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #7099be;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  main {
    padding: 30px 16px;
  }
  .card {
    padding: 23px;
  }
  h1 {
    font-size: 44px;
  }
  h1 small {
    display: block;
    margin: 10px 0 0;
  }
  .transcript {
    font-size: 21px;
  }
}
