/* ========== リセット ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== コンテナ ========== */
.sim__box {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 2em auto;
}

/* ========== 背景画像 ========== */
.sim__bg img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== 体重入力フィールド ========== */
.sim__input {
  position: absolute;
  top: 44%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: clamp(60%, 70vw, 90%);
  text-align: center;
}

.dogWeight {
  width: 55%;
  height: clamp(2.5em, 4vw, 3.5em);
  padding: 0.2em;
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: right;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

/* ========== ボタン ========== */
.sim__btn {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.sim__btn img,
.sim__btn source {
  pointer-events: none;
  display: block;
  width: clamp(120px, 20vw, 200px);
  height: auto;
}

/* ========== 結果表示 ========== */
.resultBox {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(90%, 480px, 90%);
  padding: clamp(0.8em, 2vw, 1.2em);
  background: rgba(255,255,255,0.95);
  border-radius: 0.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.6;
  display: none; /* JS で切り替え */
}

.resultBox--daily {
  bottom: 21.8%;
}

.resultBox--monthly {
  bottom: 4.6%;
}

@media (max-width: 480px) {
  .resultBox {
    font-size: clamp(1.1rem, 2vw, 1.1rem);
  }
}
