:root {
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --color-low-weight: #3b82f6;
  --color-standard-weight: #16a34a;
  --color-over-weight1: #f59e0b;
  --color-over-weight2: #f97316;
  --color-over-weight3: #ef4444;
  --color-over-weight4: #991b1b;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container__inner {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  max-width: var(--tantive-container-width-pc);
  margin: 50px auto;
}

.tool-area {
  flex-grow: 1;
}

h1 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

h2 {
  position: relative;
  font-size: 1.5em;
  padding: 0.25em 0.5em;
  width: -moz-fit-content;
  width: fit-content;
}

h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background-color: var(--tantive-main-dark-color);
}

.title-section {
  margin-bottom: 50px;
}

.title-wrap {
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
}

.title-catch {
  font-size: 0.75em;
}

.card {
  background: white;
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  padding: 1.5em;
  margin-bottom: 1em;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-bottom: 1em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.field label {
  font-size: 0.75em;
  font-weight: 500;
}

.input-wrap {
  position: relative;
}
.input-wrap .unit {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75em;
  pointer-events: none;
}

input[type=number] {
  width: 100%;
  padding: 0.75em 2em 0.5em 0.75em;
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.sex-selector {
  display: flex;
  gap: 0.5em;
}

.sex-btn {
  flex: 1;
  padding: 0.75em 0.5em;
  border: 1.5px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  background: var(--tantive-body-background-color);
  font-size: 0.75em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.sex-btn.active {
  background: var(--tantive-main-dark-color);
  color: white;
}

.calc-btn {
  width: 100%;
  padding: 0.75em;
  background: var(--tantive-main-dark-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}

.calc-btn:hover {
  opacity: 0.88;
}

.calc-btn:active {
  opacity: 0.75;
}

.result1-section,
.result2-section {
  display: none;
}

.bmi-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.25em;
}

.bmi-number-wrap {
  flex-shrink: 0;
}

.bmi-value {
  font-size: 4em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.bmi-label {
  font-size: 0.75em;
  margin-top: 2px;
}

.bmi-judgment {
  flex: 1;
  text-align: right;
}

.judgment-badge {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 1em;
  font-weight: 700;
}

.gauge-wrap {
  margin-bottom: 1.25em;
}

.gauge-track {
  height: 0.75em;
  border-radius: 6px;
  background: linear-gradient(to right, var(--color-low-weight) 0%, var(--color-low-weight) 17%, var(--color-standard-weight) 17%, var(--color-standard-weight) 42%, var(--color-over-weight1) 42%, var(--color-over-weight1) 58%, var(--color-over-weight2) 58%, var(--color-over-weight2) 71%, var(--color-over-weight3) 71%, var(--color-over-weight3) 83%, var(--color-over-weight4) 83%, var(--color-over-weight4) 100%);
  position: relative;
  margin-bottom: 0.5em;
}

.gauge-pointer {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 22px;
  background: #333;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.5em;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5em;
  margin-bottom: 1em;
}

.stat-card {
  background: var(--tantive-body-background-color);
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  padding: 0.75em;
}

.stat-label {
  font-size: 0.75em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.25em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-size: 0.75em;
  margin-top: 2px;
}

.bodyfat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tantive-body-background-color);
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  padding: 0.75em 1em;
  margin-bottom: 0.5em;
}

.bodyfat-main {
  font-size: 0.75em;
}

.bodyfat-val {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--accent);
}

.bodyfat-note {
  font-size: 0.75em;
  margin-top: 2px;
  text-align: right;
}

.info-box {
  background: var(--tantive-body-background-color);
  border-left: 3px solid var(--tantive-main-dark-color);
  border-radius: 0 5px 5px 0;
  padding: 0.75em;
  margin-top: 0.5em;
}
.info-box p {
  font-size: 0.75em;
  line-height: 1.7;
}

.targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.target-card {
  border-radius: 5px;
  padding: 0.75em;
  text-align: center;
}

.target-label {
  font-size: 0.75em;
  font-weight: 500;
  margin-bottom: 0.25em;
}

.target-weight {
  font-size: 1.25em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.target-bmi {
  font-size: 0.5em;
  margin-top: 2px;
  opacity: 0.75;
}

.target-diff {
  font-size: 0.75em;
  font-weight: 500;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.bg-underweight {
  background: #eff6ff;
  color: #1d4ed8;
}

.bg-normal {
  background: #f0fdf4;
  color: #15803d;
}

.bg-pre {
  background: #fffbeb;
  color: #b45309;
}

.bg-ob1 {
  background: #fff7ed;
  color: #c2410c;
}

.bg-ob2 {
  background: #fef2f2;
  color: #b91c1c;
}

.bg-ob3 {
  background: #fef2f2;
  color: #991b1b;
}

.bg-ob4 {
  background: #fff1f2;
  color: #881337;
}

.sim-title {
  font-size: 0.75em;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75em;
}
.sim-table th {
  background: var(--tantive-body-background-color);
  padding: 0.5rem;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid var(--tantive-main-dark-color);
}
.sim-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--tantive-main-dark-color);
  font-variant-numeric: tabular-nums;
}
.sim-table td:not(:first-child) {
  text-align: right;
  font-weight: 500;
}
.sim-table td:not(:first-child) {
  text-align: right;
  font-weight: 500;
}
.sim-table tr:last-child td {
  border-bottom: none;
}

.goal-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid var(--tantive-main-dark-color);
}

.goal-row label {
  font-size: 0.75em;
  white-space: nowrap;
  flex-shrink: 0;
}

.goal-input-wrap {
  position: relative;
  flex: 1;
}
.goal-input-wrap .unit {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75em;
}
.goal-input-wrap input {
  padding: 0.5em 2em 0.5em 0.75em;
  font-size: 0.75em;
}

#goal-result {
  font-size: 0.75em;
  font-weight: 500;
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}

.class-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75em;
  margin-top: 4px;
}
.class-table th {
  background: var(--tantive-body-background-color);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid var(--tantive-main-dark-color);
  font-size: 0.75rem;
}
.class-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--tantive-main-dark-color);
}
.class-table tr:last-child td {
  border-bottom: none;
}
.class-table tr:last-child .current-row td {
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.metabo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.metabo-card {
  background: var(--tantive-body-background-color);
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  padding: 1em;
}

.metabo-label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.metabo-val {
  font-size: 1.25rem;
  font-weight: 700;
}

.metabo-note {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.metabo-source {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--tantive-main-dark-color);
}

.share-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.share-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  background: var(--tantive-body-background-color);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.share-btn:hover {
  filter: brightness(0.9);
}

.disclaimer {
  font-size: 11px;
  color: var(--text3);
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.7;
}

.usecase-section {
  margin-top: 1.5em;
}
.usecase-section li::before {
  content: "- ";
}

.related-tools-section {
  margin-top: 1.5em;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
}

.related-tools-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1em;
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.related-tools-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.related-tools-emoji {
  font-size: 2rem;
}

.related-tools-name {
  font-weight: bold;
  font-size: 1rem;
}

.related-tools-desc {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

.ad-area {
  flex: 0 0 200px;
}

.ad-area-wrap {
  width: 400px;
  position: sticky;
  top: 100px;
}
.ad-area-wrap ins {
  width: 300px;
  height: 250px;
}

@media screen and (max-width: 1280px) {
  .container__inner {
    flex-direction: column-reverse;
    padding: 0 1em;
  }
  .ad-area {
    flex: unset;
  }
  .ad-area-wrap {
    margin: auto;
  }
  .ad-area-wrap ins {
    width: 300px;
    height: 100px;
    margin: auto;
  }
  .ad-moved-area:has(> *) {
    margin-top: 1em;
    margin-bottom: 1em;
  }
}/*# sourceMappingURL=style-tools-calc-bmi.css.map */