:root {
  --primary-color: #007aff;
  --bg-color: #f2f2f7;
  --nav-height: 60px;
  --header-height: 100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#main-header {
  height: var(--header-height);
  background: #fff;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 1000;
}

#search-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.filters { display: flex; gap: 5px; }
.filters select { flex: 1; padding: 6px; border-radius: 4px; border: 1px solid #ccc; }

#app-container {
  flex: 1;
  position: relative;
  overflow: auto;
}

.view-section {
  display: none;
  height: 100%;
  width: 100%;
}
.view-section.active { display: block; }

/* マップビュー */
#map { height: 100%; width: 100%; z-index: 1; }
.fab-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 400;
}

/* ボトムナビ */
#bottom-nav {
  height: var(--nav-height);
  background: #fff;
  display: flex;
  border-top: 1px solid #ccc;
  z-index: 1000;
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  font-size: 14px;
  color: #888;
}
.nav-btn.active { color: var(--primary-color); font-weight: bold; }

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: flex-end;
}
.modal-content {
  background: #fff;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px 12px 0 0;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; }

/* マイページ */
.dashboard { padding: 15px; }
.dashboard h2 { font-size: 16px; margin: 15px 0 5px; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
.dashboard button { margin-top: 10px; padding: 10px; width: 100%; }
