:root { color-scheme: light; }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: #e7dccb;
    color: #1c140f;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  }
  button, input, textarea { font-family: inherit; }
  button { cursor: pointer; touch-action: manipulation; }
  button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #1f6b4a;
    outline-offset: 2px;
  }
  .app {
    max-width: 480px;
    height: 100dvh;
    margin: 0 auto;
    background: #f6f1e8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e4d8c8;
  }
  .header {
    flex: 0 0 auto;
    padding: 16px 16px 10px;
    background: #f6f1e8;
  }
  .brand {
    margin: 0;
    color: #8a4b24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
  }
  .header h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.25; }
  .header-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
  .lead { margin: 6px 0 0; color: #5e534a; font-size: 15px; line-height: 1.5; }
  .main {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 4px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .footer {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fffdf9;
    border-top: 1px solid #eadfce;
  }
  .btn {
    min-height: 56px;
    border-radius: 14px;
    border: 0;
    padding: 12px 14px;
    font-size: 18px;
    font-weight: 800;
  }
  .btn.primary { background: #1f6b4a; color: #fff; }
  .btn.ghost { background: #fff; color: #1c140f; border: 2px solid #d7c9b6; }
  .btn.danger { background: #fff; color: #9b2c2c; border: 2px solid #e7c1c1; }
  .btn:disabled { opacity: 0.45; }
  .btn:active, .choice:active, .site:active { transform: translateY(1px); }
  .footer .btn { flex: 1; }
  .footer .btn.ghost { flex: 0 0 96px; }
  .stack { display: flex; flex-direction: column; gap: 12px; }
  .stack > .btn, .card > .btn, .main > .btn, .choice, .site { width: 100%; }
  .main h2 { margin: 8px 0 0; font-size: 16px; }
  .choice-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .choice, .site {
    text-align: left;
    background: #fffdf9;
    border: 2px solid #eadfce;
    border-radius: 16px;
    padding: 14px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
  .choice.is-selected, .site.is-selected {
    border-color: #1f6b4a;
    background: #f3faf6;
    box-shadow: inset 0 0 0 2px #1f6b4a;
  }
  .choice-label { font-size: 22px; font-weight: 800; line-height: 1.3; }
  .choice-sub, .muted { color: #5e534a; font-size: 14px; line-height: 1.45; }
  .choice.is-sun .choice-sub { color: #9b2c2c; }
  .card {
    background: #fffdf9;
    border: 1px solid #eadfce;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .card h2, .section-head h2 { margin: 0; font-size: 18px; }
  .section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .text-btn, .badge {
    border: 0;
    background: transparent;
    color: #1f6b4a;
    font-weight: 800;
    font-size: 16px;
    min-height: 44px;
  }
  .badge {
    background: #e7f5ee;
    border-radius: 999px;
    padding: 6px 12px;
  }
  .field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
  .field input, .field textarea {
    width: 100%;
    min-height: 56px;
    border: 2px solid #d9cbb8;
    border-radius: 12px;
    background: #fff;
    color: #1c140f;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 14px;
  }
  .field textarea { min-height: 96px; resize: vertical; }
  .qty-box { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .qty-btn {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 0;
    background: #1f6b4a;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
  }
  .qty-btn:disabled { background: #cfc3b4; }
  .qty-value { min-width: 92px; text-align: center; font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .qty-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .qty-row .btn { width: auto; min-height: 52px; }
  .qty-row .qty-btn { width: 52px; height: 52px; border-radius: 14px; font-size: 28px; }
  .banner, .notice {
    margin: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
    line-height: 1.5;
  }
  .banner { background: #fff4f0; color: #7a241c; border: 1px solid #f0c7bf; }
  .notice { background: #fff8e8; color: #6a4a1e; border: 1px solid #ead7a4; }
  .pill {
    display: inline-block;
    margin: 0;
    background: #efe2c9;
    color: #6a4a1e;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
  }
  .empty, .loading { color: #5e534a; font-size: 16px; line-height: 1.6; }
  .done-card { background: #fffdf9; border: 1px solid #eadfce; border-radius: 20px; padding: 22px 16px; text-align: center; }
  .done-kicker { margin: 0; color: #1f6b4a; font-weight: 800; letter-spacing: 0.08em; }
  .order-no { margin: 8px 0; font-size: 32px; font-weight: 800; letter-spacing: 0.03em; user-select: all; }
  .linkish { border: 0; background: transparent; color: #1c140f; font-weight: 700; text-decoration: underline; min-height: 44px; }
  @media (max-width: 360px) {
    .choice-grid.cols-2 { grid-template-columns: 1fr; }
    .header h1 { font-size: 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .btn:active, .choice:active, .site:active { transform: none; }
  }
