:root {
  --pink: #FF6B8A;
  --pink-dark: #F06284;
  --pink-soft: #FFF5F7;
  --text: #333333;
  --muted: #999999;
  --border: #F0E0E4;
  --bg: #FFFBFC;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(255, 107, 138, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.top-banner {
  width: 100%;
  margin-bottom: 16px;
}

.top-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.app > .hero,
.app > .intro-card,
.app > .notice-list,
.app > .line-status-banner,
.app > .page-loading-hint,
.app > form {
  padding-left: 16px;
  padding-right: 16px;
}

.app > .hero {
  padding-top: 20px;
}

.promo-section {
  margin-bottom: 20px;
}

.promo-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero { text-align: center; margin-bottom: 24px; }
.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero h1 { margin: 0 0 8px; font-size: 26px; color: var(--pink); line-height: 1.3; }
.hero-sub { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; }

.intro-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.intro-card p { margin: 0 0 10px; font-size: 14px; color: #555; }
.intro-card p:last-child { margin-bottom: 0; }

.notice-list { list-style: none; padding: 0; margin: 0 0 20px; }
.notice-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #777;
}
.notice-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: bold;
}

.section {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.section-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--pink); }
.section-desc { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #444; }
.field-hint { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }

.method-desc {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--pink-soft);
  border-radius: 12px;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  border-left: 3px solid var(--pink);
}
.delivery-time-note {
  margin: 0;
  padding: 12px 14px;
  background: #F8F8F8;
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.line-status-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.line-status-banner.ok { background: #E8F8EF; color: #2E7D52; border: 1px solid #B8E6CF; }
.line-status-banner.warn {
  background: #FFF5F7;
  color: #C44;
  border: 1px solid #FFD0DA;
  white-space: pre-line;
  text-align: left;
  font-size: 12px;
}

input[type="text"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  appearance: none;
  min-height: 50px;
}

.date-wrap {
  position: relative;
  width: 100%;
}

.date-wrap .date-input {
  width: 100%;
  min-height: 50px;
  height: 50px;
  padding: 12px 14px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.date-wrap .date-ph {
  position: absolute;
  left: 14px;
  top: 0;
  height: 50px;
  line-height: 50px;
  color: #aaa;
  font-size: 16px;
  pointer-events: none;
  z-index: 0;
}

.date-wrap.filled .date-ph {
  display: block;
  color: var(--text);
  text-align: left;
  z-index: 2;
  pointer-events: none;
}

.date-wrap.filled .date-input {
  color: transparent;
  background: transparent;
}

.date-wrap:not(.filled) .date-input::-webkit-datetime-edit {
  color: transparent;
}

.date-wrap.filled .date-input::-webkit-datetime-edit,
.date-wrap.filled .date-input::-webkit-datetime-edit-fields-wrapper,
.date-wrap.filled .date-input::-webkit-datetime-edit-text,
.date-wrap.filled .date-input::-webkit-datetime-edit-month-field,
.date-wrap.filled .date-input::-webkit-datetime-edit-day-field,
.date-wrap.filled .date-input::-webkit-datetime-edit-year-field {
  color: transparent;
}

select.select-placeholder {
  color: #aaa;
}

select option {
  color: var(--text);
}

select option[value=""] {
  color: #aaa;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
}

.confirm-modal.show {
  display: flex;
}

.confirm-modal-inner {
  background: #fff;
  border-radius: 20px 20px 16px 16px;
  padding: 20px 16px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

.confirm-modal-inner h3 {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 18px;
}

.confirm-notice {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  background: #fff8fa;
  border: 1px solid #ffd0da;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  text-align: center;
}

.confirm-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.confirm-summary p {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.confirm-summary p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.confirm-modal-actions button {
  flex: 1;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.label-req::after {
  content: ' *';
  color: var(--pink);
  font-weight: 700;
}

.field-error-hint {
  font-size: 12px;
  color: #d6455d;
  margin-top: 6px;
  display: none;
}

.field.has-error .field-error-hint {
  display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error .chip span,
.field.has-error .box-inner {
  border-color: #d6455d !important;
}

.section.has-error .field-error-hint {
  display: block;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.15);
}

.option-grid { display: grid; gap: 10px; }
.option-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.chip, .radio-card, .check-card { position: relative; cursor: pointer; }
.chip input, .radio-card input, .check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: block;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  text-align: center;
  transition: all 0.15s ease;
}
.chip input:checked + span {
  border-color: var(--pink);
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 600;
}

.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .box-grid { grid-template-columns: 1fr; } }
.box-card input:checked + .box-inner {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 107, 138, 0.25);
}
.box-card .box-inner {
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: all 0.15s ease;
}
.box-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.box-card .box-meta { padding: 10px; text-align: center; }
.box-card .box-name { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 2px; }
.box-card .box-price { font-size: 13px; color: var(--pink); font-weight: 700; }

.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 107, 138, 0.35);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  max-width: 608px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  z-index: 1000;
  display: none;
}
.toast.show { display: block; }
.toast.ok { background: #2e9b6a; }
.toast.err { background: #d6455d; }

.page-loading-hint {
  text-align: center;
  font-size: 13px;
  color: var(--pink);
  margin: 0 0 12px;
  font-weight: 600;
}

.page-loading-hint[hidden] {
  display: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 251, 252, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  font-size: 15px;
  color: var(--pink);
  font-weight: 600;
}
.loading-overlay.show { display: flex; }
