@charset "UTF-8";

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }

section { margin-bottom: 24px; }
h2 { font-size: 20px; margin: 0 0 12px; line-height: 1.4; }

.card { background: var(--white); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }

/* ---- 店舗選択（カテゴリごとのまとまり） ---- */
.store-groups { display: grid; gap: 10px; margin-top: 12px; }
.cat {
  --band: var(--orange); --tint: var(--orange-pale);
  background: var(--white); border: 2px solid var(--band); border-left-width: 10px; border-radius: var(--radius);
  overflow: hidden;
}
.cat-0 { --band: #F05B00; --tint: #FFF3E8; }
.cat-1 { --band: #6A2C91; --tint: #F3ECF8; }
.cat-2 { --band: #1B7F3B; --tint: #E8F5EC; }
.cat-3 { --band: #1F6FB5; --tint: #E6F1FA; }
.cat-4 { --band: #B4287A; --tint: #FBE9F3; }
.cat-5 { --band: #0F8A8A; --tint: #E3F5F5; }
.cat > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 14px 14px; min-height: 60px; background: var(--tint); font-weight: 800; font-size: 18px;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::after { content: "＋"; margin-left: 4px; color: var(--band); font-size: 22px; line-height: 1; }
.cat[open] > summary::after { content: "－"; }
.cat-name { flex: 1; word-break: break-all; }
.cat-count { font-size: 14px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.store-list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.store-item {
  display: block; width: 100%; text-align: left; font: inherit;
  background: var(--white); border: 2px solid var(--line); border-radius: 10px;
  padding: 14px; min-height: 52px; cursor: pointer;
}
.store-item:hover, .store-item:focus { border-color: var(--band); outline: none; }
.store-empty { color: var(--ink-mute); padding: 12px 4px; }
.hint { color: var(--ink-mute); font-size: 14px; margin: 12px 0 0; }

/* ---- 現在の店舗 ---- */
.shopbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--purple-pale); border: 2px solid var(--purple); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 16px;
}
.shopbar-label { font-size: 12px; color: var(--purple); font-weight: 700; display: block; line-height: 1.3; }
.shopbar-name { font-size: 18px; font-weight: 700; line-height: 1.4; word-break: break-all; }

/* ---- 数量の選択 ---- */
.bag-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; padding: 0; border: none; }
.bag-option { position: relative; }
.bag-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.bag-face {
  display: block; text-align: center; border: 3px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px; background: var(--white);
}
.bag-num { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; }
.bag-num small { font-size: 20px; font-weight: 700; }
.bag-sub { display: block; font-size: 13px; color: var(--ink-mute); }
.bag-option input:checked + .bag-face { border-color: var(--orange); background: var(--orange-pale); }
.bag-option input:checked + .bag-face .bag-num { color: var(--orange-dark); }
.bag-option input:focus-visible + .bag-face { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ---- 確認画面 ---- */
.confirm-lead { font-weight: 700; margin: 0 0 12px; }
.confirm-card {
  border: 4px solid var(--orange); background: var(--orange-pale); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}
.confirm-row { margin: 0 0 14px; }
.confirm-row:last-child { margin-bottom: 0; }
.confirm-key { display: block; font-size: 13px; font-weight: 700; color: var(--purple); }
.confirm-val { display: block; font-size: 22px; font-weight: 800; line-height: 1.4; word-break: break-all; }
.confirm-val.big { font-size: 44px; color: var(--orange-dark); line-height: 1.2; }
.confirm-val.big small { font-size: 20px; color: var(--ink); }
.confirm-val.memo { font-size: 16px; font-weight: 500; }
.confirm-buttons { display: grid; gap: 12px; }

/* ---- 完了 ---- */
.done-mark { font-size: 20px; font-weight: 800; color: var(--ok); margin: 0 0 8px; }
.done-no { font-size: 32px; font-weight: 800; letter-spacing: .04em; margin: 0 0 8px; }

/* ---- 依頼状況 ---- */
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.my-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.my-main { font-weight: 700; }
.my-sub { grid-column: 1 / -1; font-size: 13px; color: var(--ink-mute); }
.my-actions { grid-column: 1 / -1; }
