/* 練習用ストアの共通スタイル。
 *
 * **わざと「普通の EC サイト」に見えるように作ってある。**
 * ストアのスクリーンショットに他社のサイトを写すのは 5.2 に触れるので使えない。
 * かといって薄いデモページを写すと、道具まで玩具に見える。
 *
 * 4 ページ（商品 → カート → 会計 → 完了）で 1 本の流れになっていて、
 * **ページをまたぐ録画がそのまま試せる**のがいちばんの狙い。
 * 1 ページで完結するデモだと、この製品のいちばん効く部分が試せない。
 *
 * 写真は Unsplash（Unsplash License：商用可・表示義務なし）。
 * **自前で持つ** —— CDN 参照にすると、デモを開くたびに他所へ通信が出て、
 * 「何も端末から出さない」という説明と食い違って見える。
 */
:root {
  --ink: #101317; --ink2: #4a5160; --ink3: #858c9a;
  --line: #e4e6eb; --brand: #1a56db; --ok: #0f7b46; --warn: #c02626;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* 「本物の店に見える」ことと「安心して触れる」ことは両立させる。
 * **店の販促バーとは別の帯にする** —— 同じ見た目に混ぜると、
 * 店側の宣伝文句として読み飛ばされる。 */
.practice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff8e6; color: #7a5a10; border-bottom: 1px solid #f0e2bd;
  font-size: 12px; line-height: 1.4; padding: 8px 14px; text-align: left;
}
.practice b { font-weight: 700; }
.practice svg {
  width: 15px; height: 15px; flex: none;
  stroke: #b8860b; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.bar {
  background: var(--ink); color: #fff; font-size: 12px;
  text-align: center; padding: 7px 12px;
}
nav {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); z-index: 5;
}
.burger { width: 18px; height: 12px; position: relative; flex: none; }
.burger i { position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); border-radius: 2px; }
.burger i:nth-child(1) { top: 0 } .burger i:nth-child(2) { top: 5px }
.burger i:nth-child(3) { top: 10px }
.wordmark { font-weight: 800; letter-spacing: .12em; font-size: 15px;
  text-decoration: none; }
.navr { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.icon { width: 19px; height: 19px; stroke: var(--ink); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: relative; display: inline-flex; }
.badge span {
  position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px;
  border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  padding: 0 4px;
}
.crumb { padding: 11px 16px 0; font-size: 12px; color: var(--ink3); }
.crumb a { text-decoration: none; }
main { padding: 0 16px 28px; max-width: 680px; margin: 0 auto; }
h1 { font-size: 23px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 26px 0 10px; letter-spacing: -.01em; }

/* 商品画像 */
.shot { position: relative; margin: 10px 0 10px; border-radius: 16px;
  overflow: hidden; background: #f4efe8; }
/* アプリの中の webview は縦が短い。写真だけで 1 画面埋めない */
.shot img { width: 100%; height: 160px; object-fit: cover; }
.stock {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.94); color: var(--ok);
  font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px;
}
.thumbs { display: flex; gap: 8px; margin-bottom: 16px; }
.thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: none; cursor: pointer; line-height: 0;
}
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 60px; height: 46px; object-fit: cover; }

.rate { display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--ink2); margin-bottom: 10px; }
.stars { color: #e8a33d; letter-spacing: 1px; font-size: 13px; }

.pricing { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.now { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.was { color: var(--ink3); text-decoration: line-through; font-size: 15px; }
.off { background: #fdecec; color: var(--warn); font-size: 11px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px; }
.unit { font-size: 12px; color: var(--ink3); margin-bottom: 16px; }

.field { margin-bottom: 16px; }
.flabel { font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.flabel span { font-weight: 400; color: var(--ink3); }
.opt { display: flex; gap: 8px; }
.opt button {
  flex: 1; padding: 12px 0; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.opt button.on {
  border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700;
}
.chosen { font-size: 12px; color: var(--ink2); margin: 9px 0 0; }

.qtyrow { display: flex; align-items: center; gap: 14px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: #fff;
  font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; }
.qty output { width: 40px; text-align: center; font-weight: 700; }
.ship { font-size: 12px; color: var(--ink2); }
.ship b { color: var(--ok); }

label.lbl { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
input, select {
  width: 100%; padding: 13px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,219,.13); }
input.bad { border-color: var(--warn); }
.err { color: var(--warn); font-size: 12px; margin-top: 6px; display: none; }
.err.show { display: block; }
.hint { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.two { display: flex; gap: 10px; }
.two > * { flex: 1; }

.buy, .ghost {
  width: 100%; padding: 16px 0; border: 0; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  margin-top: 4px; text-align: center; text-decoration: none; display: block;
}
.buy { background: var(--ink); color: #fff; }
.buy:disabled { background: #c9ccd3; cursor: not-allowed; }
.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.ok {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #e9f7ef; color: var(--ok); font-size: 14px;
  display: none; border: 1px solid #cdeadb;
}
.ok.show { display: block; }
.trust { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px; font-size: 12px; color: var(--ink3); }

/* カート */
.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; flex: none; }
.line .meta { flex: 1; min-width: 0; }
.line .name { font-weight: 650; font-size: 15px; }
.line .sub { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.line .price { font-weight: 700; white-space: nowrap; }
.line .qty { margin-top: 8px; }
.line .qty button { width: 34px; height: 34px; font-size: 16px; }
.line .qty output { width: 32px; }
.remove { background: none; border: 0; color: var(--ink3); font: inherit;
  font-size: 12px; text-decoration: underline; cursor: pointer; padding: 6px 0; }

.totals { margin: 16px 0; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px;
  padding-top: 12px; font-size: 17px; font-weight: 800; }
.empty { text-align: center; color: var(--ink3); padding: 48px 0; }

/* 完了 */
.done-mark {
  width: 62px; height: 62px; border-radius: 50%; background: #e9f7ef;
  display: grid; place-items: center; margin: 28px auto 16px;
}
.done-mark svg { width: 30px; height: 30px; stroke: var(--ok); fill: none;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.center { text-align: center; }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; background: #f4f5f7; border-radius: 8px;
  padding: 8px 12px; display: inline-block; margin: 6px 0 4px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 18px 0; }

.steps { display: flex; gap: 6px; align-items: center; font-size: 11px;
  color: var(--ink3); padding: 12px 16px 0; justify-content: center; }
.steps b { color: var(--ink); }

footer { border-top: 1px solid var(--line); margin-top: 26px;
  padding: 18px 16px 30px; font-size: 12px; color: var(--ink3);
  text-align: center; }
