* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #fff7fa;
  color: #333;
  line-height: 1.6;
}
.site-header {
  background: #f48fb1;
  color: #fff;
  text-align: center;
  padding: 20px 12px;
}
.site-header h1 { margin: 0; font-size: 22px; }
.site-header .subtitle { margin: 4px 0 0; font-size: 13px; opacity: 0.9; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.step {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.hidden { display: none !important; }
h2 { font-size: 18px; margin: 0 0 12px; }
.hint { font-size: 13px; color: #666; }
.error { color: #d32f2f; font-size: 14px; min-height: 1em; }
.mt { margin-top: 28px; }

/* カレンダー */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-nav span { font-weight: bold; font-size: 16px; }
.nav-btn {
  background: #fce4ec; border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 20px; cursor: pointer; color: #c2185b;
}
.nav-btn:disabled { opacity: 0.3; cursor: default; }
table.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.calendar th { font-size: 12px; color: #888; padding: 4px 0; }
table.calendar th.sun { color: #d32f2f; }
table.calendar th.sat { color: #1565c0; }
table.calendar td { padding: 2px; }
.day-cell {
  width: 100%; border: 1px solid #f8bbd0; background: #fff; border-radius: 8px;
  padding: 4px 0 3px; cursor: pointer; text-align: center; font-size: 14px; line-height: 1.25;
}
.day-cell .mark { display: block; font-size: 12px; color: #2e7d32; }
.day-cell .mark.few { color: #ef6c00; font-size: 10px; }
.day-cell .mark.none { color: #c62828; }
.day-cell:disabled { background: #f5f5f5; color: #bbb; cursor: default; border-color: #eee; }
.day-cell.in-range { background: #fce4ec; }
.day-cell.selected { background: #f48fb1; color: #fff; border-color: #ec407a; }
.day-cell.selected .mark { color: #fff; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #666; margin: 10px 0; flex-wrap: wrap; }
.selection-box { background: #fff7fa; border: 1px dashed #f48fb1; border-radius: 8px; padding: 8px 12px; margin: 12px 0; }
.selection-box p { margin: 2px 0; font-size: 14px; }

/* 入力欄：
   枠・背景・角丸・高さはラッパー(.field-wrap)が持ち、flexで縦中央揃えにする。
   input 自体は透明・枠線なし・素の行高さ（line-height: normal）にして、
   iPhone で文字とカーソルの縦位置がずれる問題を避ける。 */
.field-label { display: block; font-size: 14px; font-weight: bold; margin: 14px 0 6px; }
.field-wrap {
  display: flex; align-items: center;
  height: 50px; padding: 0 12px;
  background: #fff; border: 1.5px solid #ddd; border-radius: 10px;
}
.field-wrap:focus-within { border-color: #f48fb1; }
.field-wrap input {
  flex: 1; min-width: 0;
  border: none; background: transparent; outline: none;
  font-size: 16px; line-height: normal; padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
}
.field-wrap input[type="date"] { height: auto; }

/* ボタン */
.primary-btn {
  display: block; width: 100%; margin-top: 16px;
  background: #ec407a; color: #fff; border: none; border-radius: 10px;
  padding: 14px; font-size: 16px; font-weight: bold; cursor: pointer; text-align: center;
}
.primary-btn:disabled { background: #ccc; cursor: default; }
.primary-btn.small { width: auto; padding: 10px 18px; font-size: 14px; margin-top: 0; }
.secondary-btn {
  background: #fff; color: #ec407a; border: 1.5px solid #ec407a; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: bold; cursor: pointer;
}
.link-btn { text-decoration: none; }
.text-btn {
  display: block; margin: 12px auto 0; background: none; border: none;
  color: #c2185b; font-size: 14px; cursor: pointer; text-decoration: underline;
}
.row-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* 確認画面 */
.confirm-list { display: grid; grid-template-columns: 110px 1fr; row-gap: 8px; margin: 0; }
.confirm-list dt { font-weight: bold; color: #666; font-size: 14px; }
.confirm-list dd { margin: 0; font-size: 14px; word-break: break-all; }

/* 管理画面 */
.reservation-card {
  border: 1px solid #f8bbd0; border-radius: 10px; padding: 12px; margin-bottom: 12px;
}
.reservation-card.cancelled { opacity: 0.55; background: #fafafa; }
.reservation-card p { margin: 2px 0; font-size: 14px; }
.reservation-card .dates { font-weight: bold; font-size: 15px; }
.badge { display: inline-block; font-size: 11px; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.badge.ok { background: #e8f5e9; color: #2e7d32; }
.badge.ng { background: #ffebee; color: #c62828; }
.badge.cancel { background: #eee; color: #666; }

footer { text-align: center; padding: 20px; font-size: 13px; }
footer a { color: #999; }
