:root {
  --main-color: rgb(31, 198, 207);
  --main-color-dark: rgb(26, 170, 178);
  --text-color: #777;
  --sub-text-color: #777;
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --card-radius: 10px;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.layout-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 220px;
  background-color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--main-color);
}

.nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.nav-list,
.nav-bottom {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-bottom {
  padding-bottom: 20px;
}

.nav-item a {
  display: block;
  padding: 10px 10px;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.nav-item.active a,
.nav-item a:hover {
  background-color: #e0f8f7;
  border-radius: 4px;
}

.nav-item i {
  margin-right: 8px;
}

.main {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

/* ページタイトル */
.page-title, .dashboard-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 25px;
}

/* セクションタイトル */
.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--main-color);
}

/* 共通ボタン */
.common-button, .search-button, .login-button {
  background-color: var(--main-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;

  margin-bottom: 6px;
}

.common-button:hover,
.search-button:hover,
.login-button:hover {
  background-color: var(--main-color-dark);
}

/* 入力欄 */
.input-date {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* 共通カード領域 */
.card, .chart-section, .hashtag-section, .summary-table {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 30px;
}

.analytics-wrapper {
  padding: 0 10px;
  margin-top: 10px;
}

/* ========================
   ハンバーガー & トップボタン
======================== */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--main-color);
  cursor: pointer;
}

.scroll-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--main-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

/* モバイル表示向けアニメーション */
.sidebar.mobile-hidden {
  transform: translateX(-100%);
}

.sidebar.mobile-visible {
  transform: translateX(0);
  display: block !important;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

/* ========================
   モバイルレイアウト
======================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background-color: #fff;
    z-index: 9998;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
  }
}