/* ==============================
   ダッシュボード共通スタイル
   ============================== */
/* ボックスサイズを全要素で border-box に */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ページタイトル */
.dashboard-title-main {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #1f2937;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* ページタイトル */
.dashboard-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 下線アクセント */
.dashboard-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, #81c784, #66bb6a);
}

.dashboard-title-main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, #81c784, #66bb6a);
}

/* テーブル共通 */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.dashboard-table th,
.dashboard-table td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  word-break: break-word;
  font-size: 15px;
}

.dashboard-table th {
  display: none;
}

/* ==============================
   レコード行のホバー効果
   ============================== */
.dashboard-table tr:hover {
  background-color: #f3f4f6;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.dashboard-col-item { width: 15%; }
.dashboard-col-date { width: 20%; }
.dashboard-col-detail { width: 20%; }
.dashboard-col-memo { width: 25%; }

.dashboard-col-item i {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.dashboard-col-memo {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 矢印ボタン */
.dashboard-edit-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #4b5563;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dashboard-edit-btn i {
  font-size: 14px;
}

.stats {
 margin-bottom: 20px;
}

.calendar-responsive {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==============================
   ダッシュボード：スケジュール専用
   ============================== */

/* カラム幅（PC向け） */
.dashboard-schedule-col-date { width: 25%; }
.dashboard-schedule-col-title { width: 35%; }
.dashboard-schedule-col-detail { width: 40%; }

/* ==============================
   ダッシュボード：成長記録ステータス専用
   ============================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.stat-card h3 {
  font-size: 14px;
  color: #555;
  margin-bottom: 0.5rem;
}

.stat-value-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.stat-diff-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 0.5rem;
}

.stat-diff-group {
  display: flex;
  gap: 0.8rem;
}

.stat-diff {
  font-size: 14px;
  font-weight: 600;
}

.stat-diff.up { color: #16a34a; }
.stat-diff.down { color: #dc2626; }

.stat-diff-label {
  display: none;
  position: absolute;
  right: 0;
  font-size: 14px;
  color: #777;
}

#dashboardChart {
  height: 100%;
  max-height: 700px;
  width: 100%;
  max-width: 1500px;
  margin: 50px auto;
}

/* ==============================
   ダッシュボード：空データ用カード
   ============================== */
.no-record-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.no-record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
