* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f5f7fb;
  background:
    radial-gradient(circle at top, rgba(93, 95, 239, 0.28), transparent 34%),
    linear-gradient(180deg, #070814 0%, #0b0d18 48%, #05060b 100%);
}

.app {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 16px 30px;
}
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(164, 169, 255, 0.35);
  border-radius: 999px;
  color: #cfd3ff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.lead {
  margin: 16px auto 0;
  max-width: 680px;
  color: #b9bfd8;
  font-size: 15px;
  line-height: 1.9;
}

.tool-card {
  overflow: hidden;
  border: 1px solid rgba(180, 186, 255, 0.18);
  border-radius: 28px;
  background: rgba(12, 14, 28, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px;
  border-bottom: 1px solid rgba(180, 186, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.tab {
  flex: 0 0 auto;
  border: 1px solid rgba(180, 186, 255, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  color: #d9dcf5;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(169, 176, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.tab.active {
  color: #ffffff;
  border-color: rgba(118, 129, 255, 0.78);
  background: linear-gradient(135deg, #5967ff, #8b5cf6);
  box-shadow: 0 10px 24px rgba(91, 103, 255, 0.28);
}

.tool-area {
  padding: 24px;
}

.tool-header {
  margin-bottom: 18px;
}

.tool-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.tool-header p {
  margin: 8px 0 0;
  color: #aeb5d6;
  font-size: 14px;
}

label {
  display: block;
  margin: 14px 0 8px;
  color: #e4e7ff;
  font-size: 13px;
  font-weight: 700;
}

textarea,
input {
  width: 100%;
  border: 1px solid rgba(180, 186, 255, 0.17);
  border-radius: 18px;
  color: #f7f8ff;
  background: rgba(4, 6, 15, 0.72);
  outline: none;
  font: inherit;
  font-size: 14px;
}

textarea {
  min-height: 190px;
  padding: 15px;
  resize: vertical;
  line-height: 1.7;
}

input {
  height: 48px;
  padding: 0 15px;
}

textarea:focus,
input:focus {
  border-color: rgba(125, 137, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(92, 103, 255, 0.14);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #6673ff, #b45cff);
  box-shadow: 0 14px 30px rgba(108, 112, 255, 0.34);
}

.secondary-btn {
  color: #101225;
  background: #f5f7ff;
}

.ghost-btn {
  color: #d8dcff;
  border: 1px solid rgba(180, 186, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.hidden {
  display: none;
}

.softmotion-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin: 24px auto 0;
  color: #eef0ff;
  text-decoration: none;
  opacity: 0.78;
  transition: 0.18s ease;
}

.softmotion-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #6673ff, #b45cff);
  font-weight: 900;
}

.logo-text {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .app {
    padding-top: 28px;
  }

  .tool-area {
    padding: 18px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 160px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }
}

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