html,
body {
  margin: 0;
  padding: 0;
}

/* =========================
   ダッシュボード共通
========================= */

.dashboard {
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {
  .dashboard {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .ponkichi-image {
    width: 120px;
  }
}

/* =========================
   背景
========================= */

.dashboard.background1 {
  background-image: url("/assets/backgrounds/background1-b236f287.jpeg");
}

.dashboard.background2 {
  background-image: url("/assets/backgrounds/background2-28f2bc1f.jpeg");
}

.dashboard.background3 {
  background-image: url("/assets/backgrounds/background3-28c62f0a.png");
}

.dashboard.background4 {
  background-image: url("/assets/backgrounds/background4-f23c3405.jpeg");
}

/* =========================
   PC背景
========================= */

@media (min-width: 769px) {
  .dashboard.background1 {
    background-image: url("/assets/backgrounds/background1_pc-b82b496d.jpeg") !important;
  }

  .dashboard.background2 {
    background-image: url("/assets/backgrounds/background2_pc-d93607e4.jpeg") !important;
  }

  .dashboard.background3 {
    background-image: url("/assets/backgrounds/background3_pc-b1cf7274.jpeg") !important;
  }

  .dashboard.background4 {
    background-image: url("/assets/backgrounds/background4_pc-01293adc.jpeg") !important;
  }
}

/* =========================
   レイアウト
========================= */

.dashboard-header {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.room-area {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

/* =========================
   ポン吉
========================= */

.ponkichi {
  position: absolute;
  transform: translate(-50%, -50%);
}

.ponkichi-image {
  width: 140px;
}

/* =========================
   エネルギー
========================= */

.energy-area {
  display: flex;
  gap: 16px;
}

.energy-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-card {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 190px;
  padding: 12px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.status-top {
  display: flex;
  flex-direction: column;
}

.status-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.energy-bar {
  height: 12px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #78d64b, #ffd95e);
}

/* =========================
   家事一覧
========================= */

.task-area {
  background: white;
  border-radius: 20px;
  padding: 20px;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================
   下部ナビ
========================= */

.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 64px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  background: #fff;
  border-radius: 22px;
  border: 2px solid #f5f5f5;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333;
  font-size: 11px;
  transition: 0.2s;
}

.nav-item .icon {
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
  transition: 0.2s;
}

.nav-item.active {
  color: #ffb84d;
}

.nav-item.active .icon {
  transform: translateY(-3px) scale(1.15);
}

/* =========================
   ヘッダー
========================= */

.menu-button {
  text-decoration: none;
  font-size: 30px;
  color: #4f6b3c;
}

.home-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* =========================
   ホワイトボード
========================= */

.whiteboard {
  position: absolute;

  left: 8%;
  top: 0px;

  width: 220px;
  min-height: 150px;

  background: #fffdf5;

  border: 6px solid #c99a6b;
  border-radius: 8px;

  box-shadow:
    0 5px 0 #a9794e,
    0 8px 15px rgba(0, 0, 0, 0.15);

  padding: 14px;

  transform: rotate(-2deg);
}

.whiteboard-title {
  font-size: 16px;
  font-weight: bold;
  color: #5f5147;

  padding-bottom: 10px;
  margin-bottom: 10px;

  border-bottom: 2px dashed #d8c9b8;
}

.whiteboard-content {
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.7;
}

.whiteboard-content p {
  margin: 6px 0;
}

.whiteboard-link {
  text-decoration: none;
  color: inherit;
}

/* =========================
   スマホ用ホワイトボード
========================= */

@media (max-width: 768px) {
  .whiteboard {
    left: 3%;
    top: 120px;

    width: 120px;
    min-height: 120px;

    padding: 8px;
    border-width: 4px;

    transform: rotate(-2deg);
  }

  .whiteboard-title {
    font-size: 12px;
    line-height: 1.4;
  }

  .whiteboard-content {
    font-size: 10px;
    line-height: 1.4;
  }
}
