* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.28), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(236, 72, 153, 0.24), transparent 34%),
    radial-gradient(circle at 50% 90%, rgba(20, 184, 166, 0.18), transparent 34%),
    #070b16;
}

.app {
  width: min(880px, 92%);
  margin: 0 auto;
  padding: 48px 0;
}

.hero,
.card {
  background: rgba(30, 41, 59, 0.74);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero {
  text-align: center;
  padding: 40px 36px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 34%),
    rgba(30, 41, 59, 0.74);
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #d8b4fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-shadow: 0 0 26px rgba(196, 181, 253, 0.22);
}

.lead {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
  color: #dbeafe;
  opacity: 0.9;
}

.card {
  padding: 28px 36px;
  margin: 0;
}

.card:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

label {
  display: block;
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.76);
  color: #f8fafc;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

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

select:focus,
textarea:focus,
input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16);
}

.area-result {
  margin-top: 16px;
  min-height: 48px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
  color: #e5e7eb;
  line-height: 1.7;
}
button {
  display: block;
  width: min(220px, 100%);
  margin: 20px auto 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899);
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.22);
}

button:hover {
  transform: translateY(-1px);
}

.result-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

#result {
  min-height: 120px;
  white-space: pre-wrap;
  line-height: 1.8;
  color: #e5e7eb;
  background: rgba(2, 6, 23, 0.62);
  border-radius: 16px;
  padding: 18px;
  font-size: 15px;
}

#copyBtn {
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.footer {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 20px;
  font-size: 15px;
  opacity: 0.72;
}

.footer a {
  color: #d8b4fe;
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .app {
    width: 94%;
    padding: 24px 0;
  }

  .hero {
    padding: 28px 18px 20px;
    border-radius: 22px 22px 0 0;
  }

  h1 {
    font-size: 31px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
  }

  .card {
    padding: 18px;
  }

  .card:last-of-type {
    border-radius: 0 0 22px 22px;
  }

  label {
    font-size: 14px;
  }

  select,
  textarea,
  button {
    font-size: 15px;
  }

  textarea {
    min-height: 145px;
  }
}


/* 無料バッジ */
.badge-free-pill {
  display: inline-flex;
  align-items: center;
  background: #1D9E75;
  color: #E1F5EE;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.badge-free-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #1D9E75;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1.5px solid #1D9E75;
  letter-spacing: 0.03em;
}
