/* Nail Note — soft pink-beige prototype */
:root {
  --bg: #faf6f3;
  --bg-card: #ffffff;
  --pink: #e8a0b0;
  --pink-deep: #d4788c;
  --pink-soft: #f7e4e8;
  --pink-banner: linear-gradient(135deg, #fce8ee 0%, #f5d6de 50%, #f8e0d8 100%);
  --beige: #f3ebe4;
  --text: #4a3f3c;
  --text-muted: #8a7a75;
  --border: #efe6e0;
  --line-green: #06c755;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(74, 63, 60, 0.06);
  --nav-h: 64px;
  --header-h: 52px;
  --max: 430px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  background: #e8ddd6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea { font-family: inherit; }

a { color: inherit; text-decoration: none; }

#app {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* Screens */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  padding-bottom: calc(var(--nav-h) + 12px);
  min-height: 0;
}
.screen.active { display: flex; }

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Top bar */
.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(250, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
}
.topbar.solid { border-bottom-color: var(--border); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--pink-deep);
}
.brand-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.topbar-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  text-align: center;
}
.topbar-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
}
.icon-btn:active { background: var(--pink-soft); }
.icon-btn.pink { color: var(--pink-deep); }

.topbar-actions { display: flex; gap: 2px; }
.topbar-side { width: 36px; flex-shrink: 0; }

/* Weekly theme banner */
.theme-banner {
  margin: 8px 16px 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--pink-banner);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1px solid rgba(232, 160, 176, 0.25);
}
.theme-banner:active { transform: scale(0.99); }
.theme-label {
  font-size: 11px;
  color: var(--pink-deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.theme-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.theme-cta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.theme-leaf {
  font-size: 36px;
  line-height: 1;
  opacity: 0.9;
}

/* Early entry */
.early-entry {
  margin: 0 16px 14px;
  padding: 10px 14px;
  background: var(--pink-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--pink-deep);
  text-align: center;
  font-weight: 600;
}

/* Section headers */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
}
.section-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.link-more {
  font-size: 12px;
  color: var(--pink-deep);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* Feed grid */
.feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
/* Home: single column at phone width (~430px) */
.feed-grid--home {
  grid-template-columns: 1fr;
  gap: 14px;
}
.feed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  align-items: center;
}
.feed-legend .label-chip { margin-bottom: 0; }

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  display: block;
}
.post-card:active { transform: scale(0.98); }

.post-card-media {
  position: relative;
  display: block;
}
.card-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(212, 120, 140, 0.94);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  pointer-events: none;
}
.card-badge.real {
  background: rgba(46, 125, 50, 0.92);
}

.post-card-img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--beige);
  display: block;
}
.feed-grid--home .post-card-img {
  aspect-ratio: 4 / 3;
}
.post-card-img.placeholder {
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--pink);
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f5e8e4, #f0ddd6);
}
.feed-grid--home .post-card-img.placeholder {
  aspect-ratio: 4 / 3;
  font-size: 40px;
}

.post-card-body { padding: 10px 10px 12px; }
.post-card-body .label-chip { margin-bottom: 6px; }
.post-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 600;
}
.tag.muted {
  background: var(--beige);
  color: var(--text-muted);
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.likes { display: flex; align-items: center; gap: 3px; }

.ai-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
  margin: 0 16px 20px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 8px 4px;
}
.nav-item .nav-ico { font-size: 20px; line-height: 1; }
.nav-item.active { color: var(--pink-deep); }
.nav-item.accent .nav-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-top: -18px;
  box-shadow: 0 4px 14px rgba(212, 120, 140, 0.4);
}
.nav-item.accent { color: var(--pink-deep); }

/* Post detail */
.hero-wrap {
  position: relative;
  margin: 0 16px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--beige);
}
.disclaimer-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(212, 120, 140, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.post-detail-info { padding: 0 16px 16px; }
.post-detail-info h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.post-detail-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.chip.active {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: #fff;
}

.salon-list { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 10px; }

.salon-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.salon-card:active { background: var(--pink-soft); }

.salon-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0ddd6, #e8cfc8);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}
.salon-body { flex: 1; min-width: 0; }
.salon-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.salon-name { font-size: 14px; font-weight: 700; }
.can-do-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--pink-deep);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}
.salon-rating {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.salon-area {
  font-size: 11px;
  color: var(--text-muted);
}

/* Salon profile */
.salon-header-block {
  padding: 8px 16px 16px;
  text-align: center;
}
.salon-header-block h1 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.salon-station {
  font-size: 12px;
  color: var(--text-muted);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 14px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
  box-shadow: var(--shadow);
}
.info-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.info-card-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--beige);
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item .ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(145deg, #f5e8e4, #edd8d0);
}
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  padding: 12px 4px 4px;
  text-align: center;
}
.photo-type {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  color: var(--pink-deep);
}
.photo-type.real {
  color: #5a7a5a;
  background: rgba(220, 240, 220, 0.95);
}

.cta-block {
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25);
}
.btn-line:active { opacity: 0.9; }
.btn-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--beige);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.btn-phone small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.updated {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 8px;
}

/* Generate stub */
.gen-wrap { padding: 16px; }
.gen-note {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.gen-note strong { color: var(--pink-deep); }
.gen-note code {
  font-size: 10px;
  background: var(--beige);
  padding: 1px 4px;
  border-radius: 3px;
}
.gen-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.gen-textarea {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  background: #fff;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.gen-textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.gen-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.hint-chip {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary {
  width: 100%;
  background: var(--pink-deep);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 120, 140, 0.35);
}
.btn-primary:active { opacity: 0.9; }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gen-result {
  margin-top: 20px;
  display: none;
}
.gen-result.show { display: block; }
.gen-result .post-card { cursor: default; }
.gen-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(var(--max) - 32px);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-hint {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Multi-page static MVP helpers ===== */
.screen.page-open {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: calc(var(--nav-h) + 12px);
  min-height: 0;
}
a.nav-item { text-decoration: none; color: var(--text-muted); }
a.nav-item.active { color: var(--pink-deep); }
a.post-card { display: block; text-align: left; border: none; background: var(--bg-card); cursor: pointer; color: inherit; }
a.salon-card-link { display: block; color: inherit; text-decoration: none; }
.lp-hero {
  margin: 12px 16px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--pink-banner);
  box-shadow: var(--shadow);
}
.lp-hero h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.lp-hero p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.btn-primary-link {
  display: block;
  text-align: center;
  margin: 12px 16px;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(212, 120, 140, 0.35);
}
.list-simple { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.list-simple a.card-row {
  display: block;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
}
.list-simple a.card-row span.meta { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 4px; }
.stub-note { font-size: 11px; color: var(--text-muted); text-align: center; padding: 8px 16px 20px; }
.label-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  margin-bottom: 6px;
}
.label-chip.real { background: #e8f5e9; color: #2e7d32; }
.topbar a.brand { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.topbar a.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--beige); font-size: 16px; text-decoration: none;
}
