: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;
}

/* リストビューのカード基盤設定 */
.sento-card {
  flex: 0 0 200px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  cursor: pointer;
  border-left: 4px solid #888; /* JSでステータス色に上書きされます */
}

/* 変更後 */
#bottom-nav {
  height: var(--nav-height);
  background: #fff;
  display: flex;
  border-bottom: 1px solid #ccc; /* 上部の区切りから下部の区切り線に変更 */
  z-index: 1000;
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  padding: 10px 0; /* タップしやすいよう縦幅を確保 */
}

.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; cursor: pointer; }
.modal-actions button { padding: 8px 12px; margin-right: 5px; border: none; border-radius: 4px; cursor: pointer; }

.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%; cursor: pointer; }
