/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #f4f6f9;
  color: #333;
}

/* ラッパー：サイドバーとメインコンテンツ */
.wrapper {
  display: flex;
  height: 100vh;
}

/* サイドバー */
.sidebar {
  width: 250px;
  background: #2c3e50;
  color: #ecf0f1;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  padding: 20px;
  text-align: center;
  background: #1a252f;
}

.sidebar nav ul {
  list-style: none;
  padding: 20px 0;
}

.sidebar nav ul li {
  padding: 15px 20px;
  transition: background 0.3s;
}

.sidebar nav ul li.active,
.sidebar nav ul li:hover {
  background: #34495e;
}

.sidebar nav ul li a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* トップバー */
.topbar {
  background: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topbar .search input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 250px;
}

.topbar .user-info {
  display: flex;
  align-items: center;
}

.topbar .user-info img {
  border-radius: 50%;
  margin-right: 10px;
}

/* ダッシュボード */
.dashboard {
  padding: 20px;
  overflow-y: auto;
}

.dashboard h1 {
  margin-bottom: 20px;
}

/* カードエリア */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  color: #555;
}

/* コンテンツエリア */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.chart-placeholder {
  flex: 1 1 60%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-height: 300px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-container {
  flex: 1 1 35%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-height: 300px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-container h2 {
  margin-bottom: 15px;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container table th,
.table-container table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table-container table th {
  background: #f8f8f8;
}
