:root {
  --bg: #F3F7EE;
  --card: #FFFFFF;
  --ink: #2F3A2F;
  --sub: #6E7A6C;
  --line: #E2E8DC;
  --main: #FF8A3D;
  --main-dark: #D9661C;
  --main-soft: #FFEBDD;
  --good: #3DB66B;
  --good-soft: #E1F5E6;
  --grass: #8CCB6E;
  --grass-dark: #5FA548;
  --num: "Outfit", "M PLUS Rounded 1c", sans-serif;
  --warn: #D98E04;
  --warn-soft: #FFF4D6;
  --bad: #D64545;
  --bad-soft: #FDE6E6;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(43, 45, 66, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 16px 16px 96px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 8px; }
.sub { color: var(--sub); font-size: 14px; }
.small { font-size: 13px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; }

/* ボタン */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; border: 0; border-radius: 14px;
  background: var(--main); color: #fff; font: inherit; font-weight: 700; font-size: 17px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--main-dark); transition: transform .08s, box-shadow .08s;
  margin-bottom: 4px;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--main-dark); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[disabled] { opacity: .45; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 700; box-shadow: 0 3px 0 var(--line); }
.btn.ghost:active { box-shadow: 0 0 0 var(--line); }
.btn.small { min-height: 40px; font-size: 15px; width: auto; padding: 0 16px; }
.link { background: none; border: 0; color: var(--main-dark); font: inherit; font-size: 14px; padding: 4px 0; cursor: pointer; text-decoration: underline; }

/* 入力 */
label.f { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
input.in, textarea.in {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; padding: 12px 14px; color: var(--ink);
}
input.in::placeholder, textarea.in::placeholder { color: #B3B8C5; }
input.in:focus, textarea.in:focus { outline: none; border-color: var(--main); }
.hint { font-size: 13px; color: var(--sub); margin-top: 6px; }
.msg { border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.msg.good { background: var(--good-soft); color: #11665E; }
.msg.bad { background: var(--bad-soft); color: #9B2C2C; }
.msg.warn { background: var(--warn-soft); color: #7A5200; }

/* ログイン */
.login { text-align: center; padding-top: 48px; }
.login .hero { width: 180px; margin: 0 auto; }
.login .hero img, .login .hero svg { width: 100%; height: auto; display: block; }
.gbtn { background: #fff; color: #3C4043; border: 1.5px solid #DADCE0; font-weight: 500; }
.gbtn:active { background: #F1F3F4; }
.gmark { width: 20px; height: 20px; }

/* 初期設定の段階 */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--main); }
details.howto { background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-top: 10px; font-size: 14px; }
details.howto summary { cursor: pointer; font-weight: 700; }
details.howto ol { padding-left: 20px; margin: 8px 0 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; font: inherit; cursor: pointer; }
.chip.on { border-color: var(--main); background: var(--main-soft); color: var(--main-dark); font-weight: 700; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick button { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; font: inherit; cursor: pointer; }
.pick button.on { border-color: var(--main); background: var(--main-soft); }
.pick img, .pick svg { width: 100%; height: auto; max-height: 120px; object-fit: contain; display: block; }

/* ホーム */
.hello { margin: 4px 0 12px; }
.chara-card { text-align: center; padding-top: 8px; }
.chara-card svg { width: 190px; height: 190px; }
.bubble { display: inline-block; background: var(--bg); border-radius: 14px; padding: 8px 14px; font-size: 14px; margin-bottom: 4px; }
.lv { font-weight: 700; font-size: 15px; }
.big { font-size: 40px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.big small { font-size: 16px; font-weight: 700; color: var(--sub); margin-left: 4px; }
.bar { position: relative; height: 16px; background: var(--line); border-radius: 8px; margin: 12px 0 6px; overflow: visible; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #FFB199, var(--main)); transition: width .8s ease; }
.bar b { position: absolute; top: -3px; width: 3px; height: 22px; background: #fff; border-radius: 2px; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini .card { margin: 0; padding: 14px; }
.mini .n { font-size: 26px; font-weight: 800; }

/* 送る */
.urls { display: flex; flex-direction: column; gap: 8px; }
.urlrow { display: flex; gap: 8px; align-items: center; }
.urlrow .no { width: 24px; text-align: right; color: var(--sub); font-size: 13px; flex: none; }
.urlrow input { padding: 10px 12px; font-size: 15px; }
.urlrow input { min-width: 0; }
.urlrow .tag { flex: none; width: 78px; text-align: center; font-size: 11px; padding: 2px 0; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--good-soft); color: #11665E; }
.tag.warn { background: var(--warn-soft); color: #7A5200; }
.tag.bad { background: var(--bad-soft); color: #9B2C2C; }
.sticky { position: sticky; bottom: 76px; padding-top: 10px; background: linear-gradient(transparent, var(--bg) 30%); }

/* 履歴 */
.day { font-size: 13px; color: var(--sub); font-weight: 700; margin: 14px 0 6px; }
.hist { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hist:last-child { border-bottom: 0; }
.hist .u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.empty { text-align: center; color: var(--sub); padding: 30px 0; }

/* 下のタブ */
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 5;
}
nav.tabs .in { display: flex; width: 100%; max-width: 480px; }
nav.tabs a { flex: 1; text-align: center; padding: 8px 0 10px; color: var(--sub); text-decoration: none; font-size: 12px; }
nav.tabs a svg { display: block; margin: 0 auto 2px; width: 24px; height: 24px; }
nav.tabs a.on { color: var(--grass-dark); font-weight: 700; }

/* 見本モードの帯 */
.demo { background: #2B2D42; color: #fff; font-size: 12px; text-align: center; padding: 4px 8px; }
.demo button { background: none; border: 0; color: #FFC9B8; font: inherit; text-decoration: underline; cursor: pointer; }
.demo.test { background: #C2410C; }
.demo.test button { color: #FFE4D2; }
.demo.live { background: #1F6F43; }
.demo.live button { color: #D9F5C8; }

/* 確認の小窓 */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* 動き */
.bob { animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.wobble { animation: wob 1.2s ease-in-out infinite; transform-origin: 100px 170px; }
@keyframes wob { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.spark { animation: tw 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tw { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.pop { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bob, .wobble, .spark, .pop, .spin { animation: none; } }

/* ===== A案 ステージ型のホーム ===== */
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
body.home { background: var(--grass); }
body.home #app { padding: 0 0 96px; }
.stage { position: relative; height: 330px; overflow: hidden;
  background-size: cover; background-position: center bottom; }
.stage.s0 { background-color: #FFE4C4; background-image: url(assets/S-0.jpg), linear-gradient(#FFD9B0, #FFF0DC 60%, #A8DA8C 60%); }
.stage.s1 { background-color: #CFEFFF; background-image: url(assets/S-1.jpg), linear-gradient(#9FD8FF, #E3F5FF 60%, #A8DA8C 60%); }
.stage.s2 { background-color: #FFE8EE; background-image: url(assets/S-2.jpg), linear-gradient(#BFE4FF, #FFF1F4 60%, #A8DA8C 60%); }
.stage.s3 { background-color: #FFC9A8; background-image: url(assets/S-3.jpg), linear-gradient(#FFB38A, #FFD2C2 35%, #E9C6F0 60%, #A8DA8C 60%); }
.stage.s4 { background-color: #2B2A5C; background-image: url(assets/S-4.jpg), linear-gradient(#1F2257, #4A3F86 60%, #6FA85A 60%); }
.stage .who { position: absolute; top: 14px; left: 16px; font-weight: 800; font-size: 14px; color: #3B2A1E;
  background: rgba(255,255,255,.75); border-radius: 99px; padding: 4px 12px; }
.stage.s4 .who { color: #2F3A2F; }
.stage .coin { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.88); border-radius: 99px; padding: 4px 12px 4px 5px; font: 800 15px var(--num); }
.stage .coin { font: 800 13px "M PLUS Rounded 1c"; padding: 4px 12px; }
.stage .coin .num { font-size: 15px; }
.stage .chara { position: absolute; left: 50%; bottom: 14px; width: 176px; margin-left: -88px; }
.stage .chara img, .stage .chara svg { width: 100%; height: auto; display: block; }
.stage .say { position: absolute; left: 50%; bottom: 196px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center;
  background: #fff; border-radius: 16px; padding: 7px 12px; font-size: 13px; font-weight: 700; line-height: 1.45;
  box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.stage .say:after { content: ""; position: absolute; left: calc(50% - 8px); bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.panel { padding: 14px 16px 0; margin-top: -14px; position: relative; background: var(--grass); border-radius: 22px 22px 0 0; }
.journey { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 3px 0 rgba(0,0,0,.06); }
.journey .t { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 15px; }
.journey .t span { font-size: 12px; color: var(--sub); font-weight: 500; }
.journey .big2 { font: 800 30px/1.1 var(--num); margin: 4px 0 2px; }
.journey .big2 small { font: 700 13px "M PLUS Rounded 1c"; color: var(--sub); margin-left: 3px; }
.track { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.track .road { position: relative; flex: 1; height: 26px; }
.track .road:before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px;
  background: radial-gradient(circle, #DCE3D6 3px, transparent 3.5px) 0 0 / 13px 6px; }
.track .road .done { position: absolute; left: 0; top: 10px; height: 6px;
  background: radial-gradient(circle, #FFAA2B 3px, transparent 3.5px) 0 0 / 13px 6px; }
.track .road .me { position: absolute; top: 0; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: #FFF4C2; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); overflow: hidden; }
.track .road .me img, .track .road .me svg { width: 130%; height: auto; margin: -2px 0 0 -15%; }
.track .road .flag { position: absolute; top: 2px; width: 2px; height: 22px; background: #fff; border-radius: 1px; }
.track .gift { width: 30px; height: 30px; border-radius: 9px; background: #FFC93C; box-shadow: 0 3px 0 #E0A800;
  display: grid; place-items: center; font: 800 16px var(--num); color: #fff; flex: none; }
.track .gift img { width: 26px; height: 26px; }
.sec { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 11px var(--num); letter-spacing: 1.5px; margin: 16px 2px 10px; }
.sec:after { content: ""; flex: 1; height: 1.5px; background: rgba(255,255,255,.55); border-radius: 1px; }
.rowc { background: #fff; border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; box-shadow: 0 3px 0 rgba(0,0,0,.06); }
.rowc .tile { width: 42px; height: 42px; border-radius: 13px; background: #F1F4EE; display: grid; place-items: center; font-size: 22px; flex: none; }
.rowc .tile img { width: 34px; height: 34px; }
.rowc .l { flex: 1; font-weight: 800; font-size: 15px; }
.rowc .v { font: 800 22px var(--num); }
.rowc .v small { font: 500 11px "M PLUS Rounded 1c"; color: var(--sub); margin-left: 2px; }
.panel .btn { margin-top: 6px; }

/* 送ったあとのシート(Duolingoの正解時) */
.sheet.cheer { background: #E1F5E6; }
.sheet.cheer h2 { color: #2E8B4F; font-size: 22px; }
.sheet.cheer .btn { background: var(--good); box-shadow: 0 4px 0 #2E8B4F; }
.sheet.cheer .btn.ghost { background: #fff; color: #2E8B4F; box-shadow: 0 3px 0 #BFE3C9; border-color: #BFE3C9; }
.mini-chara { width: 120px; margin: 0 auto 4px; }
.mini-chara img, .mini-chara svg { width: 100%; height: auto; display: block; }

/* テスト用パネル */
.testpanel { margin-top: 16px; background: rgba(255,255,255,.92); border: 2px dashed #C2410C; border-radius: 16px; padding: 12px 14px; }
.testpanel .tp-h { font-weight: 800; color: #C2410C; display: flex; justify-content: space-between; align-items: baseline; }
.testpanel .tp-h span { font-size: 11px; font-weight: 500; color: var(--sub); }
.testpanel .tp-l { font-size: 12px; color: var(--sub); margin-top: 6px; }
.testpanel .chips { margin-top: 6px; }
.testpanel .chip { padding: 5px 12px; font-size: 13px; }
.testpanel .tp-row { display: flex; gap: 10px; margin-top: 10px; }
.testpanel .tp-row label { flex: 1; font-size: 12px; color: var(--sub); }
.testpanel .tp-row .in { padding: 8px 10px; margin-top: 2px; font-family: var(--num); font-weight: 800; }

/* ログイン: 見本で見る画面の切り替え */
.who-pick { margin-top: 18px; }
.seg { display: inline-flex; background: #E6EDE1; border-radius: 99px; padding: 3px; margin-top: 4px; }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--sub); padding: 6px 16px; border-radius: 99px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* 管理の画面(売り手) */
.team-head { background: linear-gradient(160deg, #8CCB6E, #5FA548); color: #fff; border-radius: 22px; padding: 16px 18px 14px; margin: 4px 0 14px; box-shadow: 0 4px 0 #4E8C3B; }
.team-head .small { font-weight: 700; opacity: .9; }
.team-head .t { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 16px; margin-top: 2px; }
.team-head .t span { font-size: 14px; }
.team-head .big2 { font: 800 36px/1.1 var(--num); margin: 2px 0 8px; }
.team-head .big2 small { font: 700 14px "M PLUS Rounded 1c"; opacity: .85; margin-left: 4px; }
.bar { height: 10px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; display: block; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFC93C, var(--main)); }
.team-head .bar { background: rgba(255,255,255,.35); }
.bar.thin { height: 6px; margin-top: 6px; }
.kpis { display: flex; gap: 8px; margin-top: 12px; }
.kpis div { flex: 1; background: rgba(255,255,255,.18); border-radius: 12px; padding: 6px 8px; text-align: center; }
.kpis b { display: block; font-size: 20px; line-height: 1.2; }
.kpis b small { font-size: 11px; font-weight: 700; margin-left: 1px; }
.kpis span { font-size: 11px; font-weight: 700; opacity: .92; }
.card.alert { background: var(--warn-soft); box-shadow: none; padding: 14px 16px; }
.card.alert h2 { font-size: 15px; color: #7A5200; margin-bottom: 4px; }
.arow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 14px; border-top: 1px solid rgba(122,82,0,.12); }
.arow span { color: #7A5200; }
.card.list { padding: 4px 14px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mrow:last-child { border-bottom: 0; }
.mrow .grow { min-width: 0; display: block; color: var(--ink); text-decoration: none; }
.mrow .nm { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.mrow .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .pct { font-size: 18px; font-weight: 800; color: var(--grass-dark); min-width: 46px; text-align: right; }
.mrow .btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; margin: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #EEF1EB; color: var(--sub); white-space: nowrap; }
h1 .tag { vertical-align: middle; }
.ava { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #F1F6EC; display: grid; place-items: center; overflow: hidden; }
.ava img, .ava svg { width: 42px; height: 42px; object-fit: contain; }
.ava.none { background: #E6EDE1; color: var(--sub); font-weight: 800; font-size: 18px; }
.ava.big { width: 96px; height: 96px; font-size: 36px; border-radius: 24px; }
.empty { padding: 16px 0; text-align: center; }
.mhead { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.mhead h1 { font-size: 20px; margin: 0 0 2px; }
.mhead p { margin: 0 0 2px; }
.mchara { width: 96px; flex: none; }
.mchara img, .mchara svg { width: 100%; height: auto; display: block; }
.t2 { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.t2 span { color: var(--grass-dark); }
.card .big2 { font: 800 30px/1.1 var(--num); margin: 2px 0 8px; }
.card .big2 small { font: 700 13px "M PLUS Rounded 1c"; color: var(--sub); margin-left: 3px; }
.tiles3 { display: flex; gap: 8px; margin-bottom: 14px; }
.tiles3 div { flex: 1; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 6px; text-align: center; }
.tiles3 b { display: block; font-size: 18px; line-height: 1.3; }
.tiles3 span { font-size: 11px; color: var(--sub); font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.chart .c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart .c i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: #BFE3A9; }
.chart .c.today i { background: var(--main); }
.chart .v { font-size: 10px; font-weight: 800; color: var(--sub); }
.chart .d { font-size: 9px; color: var(--sub); line-height: 1.2; margin-top: 3px; text-align: center; }
.urlrow .tag:not(.ok):not(.warn):not(.bad) { background: none; }
/* 管理の画面: 今日の4つ・目標までの行・売れた商品 */
.tiles4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.tiles4 div { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; }
.tiles4 b { display: block; font-size: 20px; line-height: 1.3; }
.tiles4 b small { font-size: 12px; margin-left: 1px; }
.tiles4 span { font-size: 11px; color: var(--sub); font-weight: 700; }
.grow-row { padding: 4px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.grow-row:last-of-type { border-bottom: 0; }
.grow-row .bar.thin { margin: 6px 0 4px; }
.hist.sold .d { flex: none; width: 34px; }
.hist.sold .u { display: flex; flex-direction: column; color: var(--ink); }
.hist.sold .u b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .small + .small { margin-top: 1px; }

/* 発送: 商品の写真・状態の札・QR */
.thumb { position: relative; flex: none; width: 44px; height: 44px; border-radius: 10px; background: #EEF1EB; overflow: hidden; display: grid; place-items: center; color: #A7B09E; }
.thumb svg { width: 22px; height: 22px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.big { width: 72px; height: 72px; border-radius: 14px; }
.thumb.big svg { width: 32px; height: 32px; }
a.hist.ship { color: inherit; text-decoration: none; }
.hist.ship .u { flex: 1; }
.hist.ship .tag, .hist.ship .btn { flex: none; }
.hist.ship .btn.small { min-height: 34px; padding: 0 10px; font-size: 12px; width: auto; margin: 0; }
.item-head { display: flex; gap: 12px; align-items: flex-start; }
.item-head p { margin: 2px 0 6px; }
.shipsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 10px; }
.shipsteps span { height: auto; text-align: center; font-size: 11px; font-weight: 700; padding: 6px 0; border-radius: 8px; background: #EEF1EB; color: var(--sub); }
.shipsteps span.on { background: var(--good-soft); color: #11665E; }
.qrimg { display: block; width: 100%; border-radius: 12px; margin-top: 8px; }
select { font: inherit; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.hist.ship .u .small { white-space: normal; }
.nw { white-space: nowrap; }

/* お知らせ(アプリ内)とタブの数 */
nav.tabs a { position: relative; }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; }
.toast { position: fixed; left: 50%; top: 10px; z-index: 50; width: min(92vw, 420px); transform: translate(-50%, -140%); transition: transform .35s ease; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 12px 14px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; border-left: 5px solid var(--main); }
.toast.show { transform: translate(-50%, 0); }
.toast span { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 売り手のチームのホーム: キャラ(小さめ) */
.stage.mini { height: 250px; border-radius: 20px; margin-bottom: 12px; }
.stage.mini .chara { width: 140px; margin-left: -70px; }
.stage.mini .say { bottom: 160px; }
/* 売れた商品1件: 商品ページを開くQR(パソコンで開いてスマホで読む) */
.card.pqr { display: flex; gap: 14px; align-items: center; }
.card.pqr #pqr { flex: none; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid #E2E8DC; }
.card.pqr #pqr img, .card.pqr #pqr canvas { display: block; }
/* 一人モードの発送タブ: 行は押すとQRが出るボタン */
button.hist.solo { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line, #eee); text-align: left; font: inherit; color: inherit; cursor: pointer; padding-left: 0; padding-right: 0; }
button.hist.solo:last-child { border-bottom: 0; }
.sheet .pqr { display: flex; gap: 12px; align-items: flex-start; }
/* はじめての方の申し込み: 外注さん/管理者を選ぶ大きなボタンと、共有のお願い */
.pick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pick { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card, #fff); font: inherit; color: inherit; cursor: pointer; }
.pick b { font-size: 17px; }
.pick span { font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.pick.on { border-color: var(--grass-dark); background: #eef6ea; }
.share-ask { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fff6ec; border: 1px solid #f3d9bb; display: flex; flex-direction: column; gap: 6px; }
.share-ask code { font-size: 14px; background: #fff; border-radius: 8px; padding: 6px 10px; word-break: break-all; }
