:root {
  --rose: #b76e79;
  --rose-dark: #9a5560;
  --rose-light: #f7e8ea;
  --bg: #fdf7f5;
  --card: #ffffff;
  --text: #3d2c2e;
  --muted: #8a7376;
  --border: #ecd9dc;
  --ok: #2e7d52;
  --ng: #b03a3a;
  --event: #7a5fb0;
  --private: #4a7fb5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
.app-header {
  background: linear-gradient(135deg, var(--rose), #d29ba3);
  color: #fff;
  padding: 18px 16px 14px;
}
.app-header-inner { max-width: 640px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; }
.app-header h1 { margin: 0; font-size: 26px; letter-spacing: .04em; }
.tagline { margin: 2px 0 0; font-size: 12px; opacity: .9; }
.mode-badge { background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
main { max-width: 640px; margin: 0 auto; padding: 14px 12px 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.card h2 { margin: 0 0 10px; font-size: 18px; }
.card h3 { margin: 16px 0 8px; font-size: 15px; }
.no-margin { margin: 0; }
.point-card { background: linear-gradient(135deg, #fff, var(--rose-light)); border-color: var(--rose); }
.point-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.point-card-title { font-weight: 700; color: var(--rose-dark); }
.member-no { font-size: 12px; color: var(--muted); }
.card-name { font-size: 16px; font-weight: 700; margin: 4px 0 8px; }
.stamp-grid { display: flex; gap: 8px; margin: 8px 0; }
.stamp {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px dashed var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: transparent; background: #fff;
}
.stamp.on { background: var(--rose); color: #fff; border-style: solid; }
.card-points { margin: 6px 0; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0; }
.msg { font-size: 13px; min-height: 1.2em; margin: 8px 0 0; }
.msg.ok { color: var(--ok); }
.msg.ng { color: var(--ng); }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.space-between { justify-content: space-between; }
input[type="text"], input[type="tel"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  margin-bottom: 8px;
}
.row input, .row select { margin-bottom: 0; }
textarea { resize: vertical; }
.btn {
  border: none; border-radius: 10px; padding: 10px 16px;
  font-size: 15px; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:active { background: var(--rose-dark); }
.btn-sub { background: var(--rose-light); color: var(--rose-dark); }
.btn-block { display: block; width: 100%; text-align: center; text-decoration: none; }
.btn-big { display: block; width: 100%; padding: 16px; font-size: 18px; font-weight: 700; margin-bottom: 14px; border-radius: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: none; color: var(--rose-dark); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 2px 4px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 6px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 6px 0; }
.check input { width: auto; margin: 0; }
.date-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.date-chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: #fff; border-radius: 10px;
  padding: 8px 6px; width: 58px; text-align: center; cursor: pointer; font-size: 12px; line-height: 1.35;
}
.date-chip .dow { display: block; font-size: 11px; color: var(--muted); }
.date-chip.selected { background: var(--rose); color: #fff; border-color: var(--rose); }
.date-chip.selected .dow { color: #fff; }
.date-chip[disabled] { opacity: .4; cursor: not-allowed; }
.frame-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.frame-box .frame-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.time-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.time-btn {
  border: 1px solid var(--rose); color: var(--rose-dark); background: #fff;
  border-radius: 999px; padding: 8px 18px; font-size: 15px; cursor: pointer;
}
.time-btn.selected { background: var(--rose); color: #fff; }
.time-btn[disabled] { border-color: var(--border); color: var(--muted); background: #f5eeee; cursor: not-allowed; text-decoration: line-through; }
.frame-note { font-size: 12px; color: var(--ng); margin-top: 6px; }
.profile-box { background: var(--rose-light); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; }
.list-item { border-top: 1px solid var(--border); padding: 10px 2px; }
.list-item:first-child { border-top: none; }
.list-item .title { font-weight: 700; }
.list-item .sub { font-size: 12px; color: var(--muted); }
.status { font-size: 11px; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.status.request { background: #fdf0d5; color: #8a6d1a; }
.status.confirmed { background: #dff2e4; color: var(--ok); }
.status.visited { background: #e4e7f2; color: #44548a; }
.status.cancelled { background: #f2dede; color: var(--ng); }
.talk .bubble {
  background: #f6efee; border-radius: 4px 14px 14px 14px; padding: 10px 12px; margin-bottom: 10px;
}
.talk .bubble.pinned { background: var(--rose-light); border: 1px solid var(--rose); }
.talk .bubble .b-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.talk .bubble .b-body { font-size: 14px; white-space: pre-wrap; }
.talk .bubble .b-date { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.pin-label { font-size: 11px; color: var(--rose-dark); font-weight: 700; }
.menu-item { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding: 10px 2px; }
.menu-item:first-of-type { border-top: none; }
.menu-item .m-name { font-weight: 700; }
.menu-item .m-desc { font-size: 12px; color: var(--muted); }
.menu-item .m-price { font-weight: 700; color: var(--rose-dark); white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.tab { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.tab.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; }
.cal-dow { text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0; }
.cal-day {
  border: 1px solid var(--border); border-radius: 8px; min-height: 52px; padding: 4px;
  font-size: 12px; cursor: pointer; background: #fff;
}
.cal-day.other-month { opacity: .35; }
.cal-day.today { border-color: var(--rose); }
.cal-day.selected { background: var(--rose-light); }
.cal-day .dots { display: flex; gap: 3px; margin-top: 3px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.booking { background: var(--rose); }
.dot.private { background: var(--private); }
.dot.event { background: var(--event); }
.dot.other { background: #999; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.app-footer { max-width: 640px; margin: 0 auto; padding: 8px 12px 28px; text-align: center; }
.install-hint { text-align: center; }
.links-card { text-align: center; }
.small-btn { padding: 6px 10px; font-size: 13px; }
.point-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.point-actions input { width: 130px; margin-bottom: 0; }
