:root {
  --bg: #fbf8f6;
  --card: #ffffff;
  --text: #2b2522;
  --muted: #7a706b;
  --accent: #b5657a;
  --accent-dark: #974f62;
  --line: #e6dcd7;
  --error: #c0392b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
/* 上の画像：スマホでは画面の横幅いっぱい、縦は画像の比率のまま。PC では広がりすぎないよう 720px まで */
.hero { max-width: 720px; margin: 0 auto; }
.hero img { display: block; width: 100%; height: auto; }
.wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; }
.head { text-align: center; margin-bottom: 20px; }
.brand { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .1em; font-size: 14px; }
h1 { margin: 4px 0 0; font-size: 22px; }
h2 { font-size: 20px; margin: 0 0 12px; }
.view { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; }
.muted { color: var(--muted); text-align: center; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.field em { font-style: normal; font-size: 12px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=email] {
  width: 100%; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field em.auto { background: var(--muted); }
.field em.opt { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.guide { background: #f8f3f0; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.guide p { margin: 0; }
.guide ul { margin: 4px 0 0; padding-left: 1.2em; }
.photo-pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 120px; border: 2px dashed var(--accent); border-radius: 12px;
  background: #fff; color: var(--accent-dark); font-weight: 700; cursor: pointer; padding: 12px;
}
.photo-pick img { max-width: 100%; max-height: 260px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field small.ok { color: #2e7d4f; font-weight: 700; }
.field small.ng { color: var(--error); font-weight: 700; }
.consent { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 16px; font-size: 14px; }
.consent-title { margin: 0 0 4px; font-weight: 700; }
.consent ul { margin: 0 0 12px; padding-left: 1.2em; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check em { font-style: normal; font-size: 12px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.check a { color: var(--accent-dark); }
.warn { color: var(--error); font-weight: 700; }
.static {
  width: 100%; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #f4efec; font-weight: 700; min-height: 50px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { color: var(--error); min-height: 1.7em; margin: 0 0 8px; }
button {
  width: 100%; font-size: 18px; font-weight: 700; padding: 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; cursor: pointer;
}
button:active { background: var(--accent-dark); }
button:disabled { opacity: .6; cursor: default; }
.code {
  font-size: 44px; font-weight: 800; letter-spacing: .15em; text-align: center;
  margin: 8px 0; padding: 12px 0; border: 2px dashed var(--accent); border-radius: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.note { text-align: center; font-weight: 700; color: var(--accent-dark); }
.mock { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* 店向けページ（shop.html） */
.totals { display: flex; gap: 12px; margin: 8px 0 20px; }
.total { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.total-label { margin: 0; color: var(--muted); font-size: 13px; }
.total-num { margin: 4px 0 0; font-size: 34px; font-weight: 800; line-height: 1.2; }
.total-num small { font-size: 14px; font-weight: 700; margin-left: 2px; }
.days-title { font-size: 16px; margin: 0 0 8px; }
.days { width: 100%; border-collapse: collapse; font-size: 15px; }
.days th, .days td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.days th:first-child, .days td:first-child { text-align: left; }
.days th { font-size: 13px; color: var(--muted); font-weight: 700; }
.days tr.today td { background: #fbeff2; font-weight: 700; }
.updated { color: var(--muted); font-size: 13px; text-align: right; margin: 8px 0 16px; }
.switch { text-align: center; margin: 16px 0 0; font-size: 14px; }
.switch a { color: var(--accent-dark); }
.note-small { font-size: 13px; margin-top: 16px; }
.shop { margin: 0 0 12px; font-weight: 700; font-size: 18px; text-align: center; }
