:root {
  --voice-bg: #fbfbfa;
  --voice-ink: #101010;
  --voice-muted: #666666;
  --voice-soft: #f4f4f2;
  --voice-panel: rgba(255, 255, 255, 0.92);
  --voice-line: #e7e4df;
  --voice-accent: #3d94dc;
  --voice-accent-soft: #eef7ff;
  --voice-radius: 28px;
  --voice-shadow: 0 24px 70px rgba(20, 20, 20, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(620px 360px at 50% 6%, rgba(76, 148, 221, 0.10), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, var(--voice-bg) 48%, #ffffff 100%);
  color: var(--voice-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.voice-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(231, 228, 223, 0.7);
  backdrop-filter: blur(18px);
}

.voice-header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.voice-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--voice-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.voice-brand img {
  width: 34px;
  height: 34px;
}

.voice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  color: #ffffff;
  background: #303030;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.voice-main {
  padding: 3rem 0 5.5rem;
}

.voice-hero {
  max-width: 920px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: clamp(2.2rem, 6vw, 5rem) 1rem 2rem;
}

.voice-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0;
  padding: 0.58rem 1rem;
  border: 1px solid var(--voice-line);
  border-radius: 999px;
  color: #595959;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(40, 40, 40, 0.05);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.voice-eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--voice-accent);
  box-shadow: 0 0 0 4px rgba(61, 148, 220, 0.12);
}

.voice-hero .voice-eyebrow,
.voice-section-head .voice-eyebrow {
  margin-inline: auto;
}

.voice-hero h1,
.voice-section-head h2 {
  margin: 0;
  color: var(--voice-ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.voice-hero h1 {
  max-width: 760px;
  margin: 2rem auto 0;
  font-size: clamp(2.45rem, 8vw, 5.1rem);
}

.voice-lead {
  max-width: 720px;
  margin: 1.45rem auto 0;
  color: var(--voice-muted);
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  font-weight: 500;
  line-height: 2;
}

.voice-hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.voice-hero-notes article,
.voice-preview-form,
.voice-option-card,
.voice-ops-grid article {
  background: var(--voice-panel);
  border: 1px solid var(--voice-line);
  border-radius: var(--voice-radius);
  box-shadow: var(--voice-shadow);
}

.voice-hero-notes article {
  padding: 1.15rem;
  text-align: left;
}

.voice-hero-notes strong {
  display: block;
  color: var(--voice-ink);
  font-size: 0.95rem;
}

.voice-hero-notes p,
.voice-option-card p,
.voice-ops-grid p {
  margin: 0.45rem 0 0;
  color: var(--voice-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.voice-section {
  margin-top: 2.2rem;
}

.voice-section-subtle {
  margin-top: 3rem;
}

.voice-section-head {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.voice-section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 5vw, 3.25rem);
}

.voice-preview-form {
  display: grid;
  gap: 1.05rem;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3.4vw, 2rem);
}

.voice-preview-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--voice-ink);
  font-weight: 800;
}

.voice-preview-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--voice-line);
  border-radius: 18px;
  padding: 1rem 1.08rem;
  color: var(--voice-ink);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font: inherit;
}

.voice-preview-form select:focus {
  outline: 3px solid rgba(61, 148, 220, 0.18);
  border-color: rgba(61, 148, 220, 0.58);
}

.voice-sample-text {
  margin: 0;
  padding: 1rem 1.08rem;
  border: 1px solid var(--voice-line);
  border-radius: 18px;
  color: var(--voice-ink);
  background: #ffffff;
  line-height: 1.8;
  font-weight: 700;
}

.voice-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.voice-preview-form .btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.65rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #050505;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.voice-preview-form .btn.primary::after {
  content: "→";
  margin-left: 0.8rem;
  font-size: 1.1rem;
}

.voice-preview-form .btn.primary:disabled {
  cursor: wait;
  opacity: 0.62;
}

.voice-preview-count,
.voice-preview-status {
  color: var(--voice-muted);
  font-size: 0.93rem;
}

.voice-preview-status {
  margin: 0;
  line-height: 1.75;
}

.voice-preview-status.is-error {
  color: #b74232;
}

.voice-preview-player audio {
  width: 100%;
  margin-top: 0.2rem;
}

.voice-option-grid,
.voice-ops-grid {
  display: grid;
  gap: 1rem;
}

.voice-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.voice-option-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.25rem;
}

.voice-option-card h3,
.voice-ops-grid h3 {
  margin: 0;
  color: var(--voice-ink);
  font-size: 1.03rem;
  line-height: 1.45;
}

.voice-option-voices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  color: #232323;
  background: var(--voice-soft);
  border: 1px solid #ebe8e2;
  font-size: 0.82rem;
  font-weight: 700;
}

.voice-pill em {
  color: #2f7fbd;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}

.voice-ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#voice-note-grid {
  display: contents;
}

.voice-ops-grid article {
  padding: 1.25rem;
}

.voice-reference-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--voice-muted);
}

.voice-reference-list li + li {
  margin-top: 0.45rem;
}

.voice-reference-list a {
  color: #111111;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(61, 148, 220, 0.38);
  text-underline-offset: 0.22em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--voice-soft);
  border-radius: 8px;
  padding: 0.15rem 0.35rem;
}

@media (max-width: 980px) {
  .voice-main {
    padding-top: 2rem;
  }

  .voice-hero {
    padding-top: 3.5rem;
  }

  .voice-hero-notes,
  .voice-option-grid,
  .voice-ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .voice-header-row {
    min-height: 68px;
  }

  .voice-brand img {
    display: none;
  }

  .voice-brand span {
    font-size: 1.05rem;
  }

  .voice-badge {
    padding: 0.62rem 1rem;
    font-size: 0.86rem;
  }

  .voice-hero {
    padding-inline: 0;
  }

  .voice-hero h1 {
    margin-top: 1.7rem;
  }

  .voice-preview-actions {
    align-items: stretch;
  }

  .voice-preview-form .btn.primary {
    width: 100%;
  }
}
