* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.23), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.20), transparent 34%),
    linear-gradient(135deg, #071827 0%, #070b18 55%, #1a071f 100%);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.tool-card {
  width: min(960px, 100%);
  padding: 46px 48px 34px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 92%, rgba(20, 184, 166, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(148, 163, 184, 0.20), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(226, 232, 240, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #dbeafe;
  border: 1px solid rgba(219, 234, 254, 0.25);
  background: rgba(15, 23, 42, 0.45);
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.lead {
  margin: 0 auto 28px;
  max-width: 680px;
  color: #d7e2ef;
  line-height: 1.9;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  outline: none;
  background: rgba(5, 12, 30, 0.82);
  color: #e5eefb;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

textarea::placeholder {
  color: #8b9bb0;
}

textarea:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.options {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
  color: #cbd5e1;
  font-weight: 800;
}

.options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.options input {
  accent-color: #38bdf8;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.result-card {
  padding: 18px 14px;
  border-radius: 18px;
  background: rgba(5, 12, 30, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.result-card span {
  display: block;
  margin-bottom: 8px;
  color: #aebdd0;
  font-size: 14px;
  font-weight: 800;
}

.result-card strong {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

button {
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.75);
}

#copyBtn {
  border: none;
  background: linear-gradient(135deg, #38bdf8, #a855f7, #ec4899);
}

footer {
  margin-top: 26px;
  color: #a9b8ca;
  font-size: 13px;
  font-weight: 900;
}

footer a {
  color: #bae6fd;
  text-decoration: none;
}

@media (max-width: 760px) {
  .tool-card {
    padding: 34px 20px 28px;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .result-grid {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 220px;
  }
}


/* 無料バッジ */
.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;
}
