/* ── ベースレイアウト ── */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── ヘッダー（sticky） ── */
header {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .05em;
  flex: 1;
}

/* ── ヘッダー認証ボタン ── */
.auth-header-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s;
}
.auth-header-btn:hover { background: rgba(255,255,255,.25); }

/* ── メインコンテンツ ── */
main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

/* ── セクションヘッダー（お気に入り・よく検索） ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-sub);
}

/* ── フッター ── */
footer {
  padding: 12px 16px;
  text-align: center;
  font-size: .75rem;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
}

/* ── ユーティリティ ── */
.hidden {
  display: none !important;
}
