:root {
  --green-bg: #eaf3de;
  --green-text: #27500a;
  --amber-bg: #faeeda;
  --amber-text: #633806;
  --red-bg: #fcebeb;
  --red-text: #791f1f;
  --blue-bg: #e6f1fb;
  --blue-text: #0c447c;
}

*, *::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;
}

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

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

select, input[type=number] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s;
}

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

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

.sex-group {
  display: flex;
  gap: 0.5rem;
}

.calc-btn {
  width: 100%;
  padding: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  background: var(--tantive-main-dark-color);
  color: #fff;
  cursor: pointer;
  margin-bottom: 1.25rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.calc-btn:hover {
  opacity: 0.85;
}
.calc-btn:active {
  transform: scale(0.99);
}

.result-section.hidden {
  display: none;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  background: var(--tantive-body-background-color);
  border: 1px solid var(--tantive-main-dark-color);
  border-radius: 5px;
  padding: 1rem 1.25rem;
}

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

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.metric-unit {
  font-size: 0.75rem;
  margin-top: 2px;
}

.judgment {
  border-radius: 5px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.judgment-left {
  font-size: 0.75rem;
  font-weight: 500;
}

.judgment-right {
  font-size: 1.25rem;
  font-weight: 700;
}

.j-normal {
  background: var(--green-bg);
}
.j-normal .judgment-left,
.j-normal .judgment-right {
  color: var(--green-text);
}

.j-warn {
  background: var(--amber-bg);
}
.j-warn .judgment-left,
.j-warn .judgment-right {
  color: var(--amber-text);
}

.j-danger {
  background: var(--red-bg);
}
.j-danger .judgment-left,
.j-danger .judgment-right {
  color: var(--red-text);
}

.j-info {
  background: var(--blue-bg);
}
.j-info .judgment-left,
.j-info .judgment-right {
  color: var(--blue-text);
}

.error {
  font-size: 0.75rem;
  color: #a32d2d;
  padding: 0.5rem 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

tr:last-child td {
  border-bottom: none;
}
tr.highlight td {
  background: var(--tantive-body-background-color);
  font-weight: 600;
}

th {
  text-align: left;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--tantive-main-dark-color);
  background-color: var(--tantive-body-background-color);
}

td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--tantive-main-dark-color);
  font-variant-numeric: tabular-nums;
}

.source {
  font-size: 0.75rem;
  line-height: 1.7;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tantive-main-dark-color);
}
.source a {
  color: --tantive-font-link-color;
  text-decoration: underline;
}

.judgment-table td:first-child {
  width: 40%;
}

.j-td-normal {
  color: var(--green-text);
  font-weight: 600;
}

.j-td-warn {
  color: var(--amber-text);
  font-weight: 600;
}

.j-td-danger {
  color: #a32d2d;
  font-weight: 600;
}

.j-td-info {
  color: var(--blue-text);
  font-weight: 600;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
  transform-origin: center center;
}
.toggle-icon.open {
  transform: rotate(180deg);
}

.collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}
.collapsible.open {
  max-height: 2000px;
}

.mt {
  margin-top: 1rem;
}

.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-child-obesity.css.map */