/* ========================================
   レシピモード（画面スリープ防止） - kicchow
   ======================================== */

/* ===== ボタン ===== */
.recipe-mode-btn {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  background: #fff;
  border: 2px solid #C4D4B4;
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #4A7A35;
  transition: all 0.2s;
  white-space: nowrap;
}
.recipe-mode-btn:hover {
  border-color: #4A7A35;
  box-shadow: 0 4px 16px rgba(74,122,53,0.2);
}
.recipe-mode-btn.active {
  background: #4A7A35;
  border-color: #4A7A35;
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,122,53,0.35);
}
.recipe-mode-icon {
  font-size: 16px;
}

/* スマホでは診断ボタンの上に積んで重なりを防ぐ（左揃え・縦並び） */
@media (max-width: 768px) {
  .recipe-mode-btn {
    left: 14px;
    transform: none;
    bottom: 134px;      /* 診断ボタン(bottom:80px)の上に配置 */
    padding: 9px 16px;
    font-size: 12px;
  }
}

/* 診断ボタンと被らないよう、PCでは下中央に固定 */
@media (min-width: 769px) {
  .recipe-mode-btn {
    bottom: 24px;
    left: 50%;
  }
}

/* ===== トースト通知 ===== */
.recipe-mode-toast {
  position: fixed;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(44, 58, 36, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  white-space: nowrap;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.recipe-mode-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .recipe-mode-toast {
    bottom: 160px;
    font-size: 12px;
    max-width: 85vw;
    text-align: center;
    white-space: normal;
  }
}
