* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 28%),
    radial-gradient(circle at 75% 15%, rgba(236, 72, 153, 0.24), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(45, 212, 191, 0.20), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #10162d 48%, #070b14 100%);
  min-height: 100vh;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 28px 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.tool-card {
  width: min(920px, 100%);
  padding: 34px 42px;  
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.76)),
    rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(226, 232, 240, 0.20);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #dbeafe;
  border: 1px solid rgba(219, 234, 254, 0.24);
  background: rgba(15, 23, 42, 0.42);
}

h1 {
  margin: 18px 0 4px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.brand {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.lead {
  max-width: 660px;
  margin: 18px auto 28px;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 700;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.7);
}

.tab-button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899);
  color: white;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.22);
}

.tab-panel {
  display: none;
  text-align: left;
  padding: 28px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.panel-text {
  margin: 0 0 20px;
  color: #cbd5e1;
  line-height: 1.7;
  text-align: center;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  border-radius: 16px;
  padding: 15px 16px;
  margin-bottom: 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.88);
  font-size: 16px;
  font-weight: 800;
}

input::placeholder {
  color: #64748b;
}

select {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

.display {
  height: 64px;
  text-align: right;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calculator-grid button {
  border: none;
  border-radius: 16px;
  min-height: 58px;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.92);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.calculator-grid button:hover {
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.96);
}

.calculator-grid button:nth-child(4n),
#calcEqual {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
}

.calculator-grid .wide {
  grid-column: span 2;
  font-size: 15px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.main-button {
  display: block;
  width: fit-content;
  min-width: 180px;
  margin: 8px auto 18px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
  transition: 0.2s ease;
}

.main-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.result-box {
  min-height: 64px;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
}

.bmi-meter {
  position: relative;
  margin-top: 22px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.bmi-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #22c55e 45%, #facc15 68%, #ef4444 100%);
}

.bmi-marker {
  position: absolute;
  top: -5px;
  left: 0%;
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  transition: 0.25s ease;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.notice {
  margin: 26px auto 14px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
}

.softmotion-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.9;
  transition: 0.2s ease;
}

.softmotion-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899);
  font-size: 14px;
  font-weight: 900;
}

.logo-text {
  color: #dbeafe;
}

@media (max-width: 680px) {
  .page {
    padding: 28px 12px;
  }

  .tool-card {
    padding: 28px 16px;
    border-radius: 24px;
  }

  .lead {
    font-size: 14px;
  }

  .tab-panel {
    padding: 20px 14px;
  }

  .tabs {
    gap: 8px;
  }

  .tab-button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calculator-grid {
    gap: 8px;
  }

  .calculator-grid button {
    min-height: 54px;
    font-size: 18px;
  }
}

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