:root {
  /* Colors */
  --color-bg: #f6f8f6;
  --color-surface: #ffffff;
  --color-text: #24364f;
  --color-muted: #71807e;
  --color-border: #d8e4e1;
  --color-primary: #2fa99d;
  --color-primary-soft: #e8f4f1;
  --color-success: #2f855a;
  --color-danger: #c95d5d;


  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;

  /* Radius */
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft:
    0 1px 4px rgba(36, 54, 79, 0.06);
  --shadow-floating:
    0 4px 16px rgba(36, 54, 79, 0.10);

  /* Layout */
  --bottom-nav-height: 64px;
  --safe-area-bottom:
    env(safe-area-inset-bottom, 0px);
}
/* ===== Reset ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom:
    calc(
      var(--bottom-nav-height) +
      var(--safe-area-bottom) +
      32px
    );

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--color-text);
  background: var(--color-bg);
}
/* ===== Buttons ===== */

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== Task Card ===== */

.task-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);

  transition:
    transform .15s,
    box-shadow .15s;
}

.task-card:hover {
  transform: translateY(-1px);

  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

/* ===== Bottom Navigation ===== */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;

  height:
    calc(
      var(--bottom-nav-height) +
      var(--safe-area-bottom)
    );

  padding-bottom:
    var(--safe-area-bottom);

  box-sizing: border-box;

  background: var(--color-surface);
  border-top: 1px solid var(--color-border);

  z-index: 1000;
}

.bottom-nav a {
  flex: 1;

  padding: 10px 0;

  color: var(--color-muted);

  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.bottom-nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  padding: 6px 0;

  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.bottom-nav svg {
  display: block;
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.bottom-nav-icon {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0 auto 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.bottom-nav svg.bottom-nav-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* タスクアイコンだけ少し大きくする */
.bottom-nav-icon-task {
  width: 31px;
  height: 31px;
  margin-top: -3px;
  margin-bottom: 0;
}

/* 選択中を示す上部ライン */
.bottom-nav a {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;
  width: 100%;
  height: 100%;

  gap: 3px;
  padding: 6px 0;

  box-sizing: border-box;

  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 64px;
  height: 3px;
  background: #18aeb1;
  border-radius: 0 0 3px 3px;
  transform: translateX(-50%);
}

.today-timeline-section {
  margin-top: 10px;
}

.today-timeline-header {
  margin-bottom: 2px;
}

.today-timeline-label {
  display: block;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #7f9690;

  margin-bottom: 4px;
}

.today-timeline-header h2 {
  margin: 0;

  font-size: 22px;
  font-weight: 700;

  color: #2d3b38;
}
/* ===== Account Menu ===== */

.account-menu {
  position: fixed;
  z-index: 2000;

  width: min(
    280px,
    calc(100vw - 24px)
  );

  padding: 10px;

  background: #ffffff;

  border: 1px solid #dfe8e6;
  border-radius: 18px;

  box-shadow:
    0 12px 30px
    rgba(38, 65, 60, 0.12);
}

.account-menu-section {
  padding: 8px;
}

.account-menu-label {
  margin: 0 0 10px;

  font-size: 12px;
  font-weight: 700;

  color: #7d8d89;
}

.account-menu-google {
  display: grid;
  gap: 8px;

  font-size: 13px;
  color: #647470;
}

.account-menu-email {
  margin: 0 0 4px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 13px;
  color: #53635f;
}

.account-menu-primary,
.account-menu-secondary,
.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 42px;

  padding: 0 14px;

  border-radius: 12px;

  font: inherit;
  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;
}

.account-menu-primary {
  border: 0;

  background: #edf4f2;
  color: #355e57;
}

.account-menu-secondary {
  border: 1px solid #dfe8e6;

  background: #ffffff;
  color: #6d7d79;
}

.account-menu-item {
  justify-content: flex-start;

  margin-top: 4px;

  border: 0;
  border-top: 1px solid #edf1f0;

  background: transparent;

  color: #43534f;
}

.account-menu-primary:active,
.account-menu-secondary:active,
.account-menu-item:active {
  transform: scale(0.98);
}

.account-menu button:disabled {
  opacity: 0.55;
  cursor: default;
}
