/* うららん さがす系共通スタイル
 * search.html / search-filter.html で共有
 * home.css の :root トークンを踏襲
 */

:root {
  --c-bg: #F8F8F8;
  --c-surface: #FFFFFF;
  --c-border: #ECECEC;
  --c-text: #2C2C2A;
  --c-text-muted: #7A7770;
  --c-text-hint: #9A968C;
  --c-tag-bg: #EDEDED;
  --c-tag-text: #6A6760;
  --c-tag-track: #F0F0F0;
  --c-purple: #7B5BC4;
  --c-purple-soft: #B5A0DC;
  --c-purple-pale: #F1ECF9;
  --c-divider: #F0EDE8;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- App header --- */
.app-header {
  flex: 0 0 auto;
  background: var(--c-surface);
  border-bottom: 0.5px solid var(--c-border);
}
.topbar {
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.topbar-back {
  margin-right: auto;
  color: var(--c-text);
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}
.topbar-point {
  font-size: 14px;
  color: #5A5A60;
  font-weight: 500;
}
.topbar-buy {
  font-size: 13px;
  color: var(--c-purple);
  border: 1px solid var(--c-purple-soft);
  border-radius: 6px;
  padding: 5px 16px;
  background: var(--c-surface);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.topbar-buy:hover { background: #F8F5FA; }

/* --- Chip grid (タグチップ) --- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--c-tag-bg);
  color: var(--c-tag-text);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 16px;
  white-space: nowrap;
  line-height: 1.3;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip:hover { background: #E4E4E4; }
.chip.is-active {
  background: var(--c-purple-pale);
  color: var(--c-purple);
  font-weight: 500;
}
.chip-more {
  background: var(--c-tag-bg);
  color: var(--c-tag-text);
}
.chip-more::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 2px;
  display: inline-block;
}

/* --- Tabbar（home.cssと揃える） --- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--c-surface);
  border-top: 0.5px solid var(--c-border);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--c-text-hint);
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--c-purple); }
