:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-2: #fff3e6;
  --ink: #2b2d42;
  --ink-2: #5c5f77;
  --line: #eadfce;
  --primary: #ff7a59;
  --primary-ink: #ffffff;
  --primary-soft: #ffe3d9;
  --teal: #2a9d8f;
  --teal-soft: #d9f2ee;
  --warn: #e76f51;
  --warn-soft: #fde4dc;
  --tip: #e9a400;
  --tip-soft: #fff3cf;
  --good: #2a9d8f;
  --good-soft: #dcf3ef;
  --shadow: 0 6px 24px rgba(80, 50, 20, .08);
  --radius: 18px;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1b22; --surface: #27242d; --surface-2: #322d36; --ink: #f3eee8; --ink-2: #c4bdb6; --line: #403a45;
    --primary-soft: #4a2d26; --teal-soft: #1f3b38; --warn-soft: #4a2a24; --tip-soft: #463a17; --good-soft: #1f3b38;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1b22; --surface: #27242d; --surface-2: #322d36; --ink: #f3eee8; --ink-2: #c4bdb6; --line: #403a45;
  --primary-soft: #4a2d26; --teal-soft: #1f3b38; --warn-soft: #4a2a24; --tip-soft: #463a17; --good-soft: #1f3b38;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; }
h2 { font-size: 1.3rem; font-weight: 900; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--ink-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--primary-soft); font-size: 20px; }
.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .92rem; }
.topnav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .topnav a:not(.btn) { display: none; } .topbar { padding: 8px 16px; } }

main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
main.full { max-width: none; padding: 0; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-danger { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; display: inline-grid; place-items: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sheet-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.sheet-card .thumb { border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 1123 / 794; display: grid; place-items: center; }
.sheet-card .thumb.portrait { aspect-ratio: 1123 / 794; }
.sheet-card .thumb svg { width: 100%; height: 100%; display: block; }
.sheet-card h3 { margin: 0; font-size: 1rem; }
.progress-bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.badge.ai { background: var(--teal-soft); color: var(--teal); }
.badge.cloud { background: var(--primary-soft); color: var(--primary); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding: 20px 0 36px; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-2); }
.hero .demo { transform: rotate(-2deg); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(80, 50, 20, .18); }
.hero .demo svg { display: block; width: 100%; height: auto; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 8px 0 36px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .ico { font-size: 1.6rem; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.feature b { display: block; }
.feature span { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero .demo { transform: none; } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }

/* ---- forms ---- */
label.field { display: grid; gap: 6px; font-weight: 700; }
label.field > small { font-weight: 500; }
input[type=text], input[type=number], input[type=url], select, textarea { width: 100%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
textarea { min-height: 80px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--teal); }
input[type=color] { width: 44px; height: 36px; border: 2px solid var(--line); border-radius: 10px; padding: 2px; background: var(--surface); cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 99px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 700; }
.chip.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.chip button { border: none; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; padding: 0 0 0 4px; }
.chip-input { display: grid; gap: 8px; }
.chips.suggestions .chip { font-weight: 500; color: var(--ink-2); }

/* ---- wizard ---- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.wizard .steps { display: grid; gap: 18px; }
.step { display: grid; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.aside-tip { position: sticky; top: 80px; }
.aside-tip ul { padding-left: 1.2em; margin: 0; }
.aside-tip li { margin-bottom: .5em; font-size: .92rem; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .aside-tip { position: static; } }
.color-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.color-dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.color-dot.on { box-shadow: 0 0 0 3px var(--teal); }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.variant .thumb { border-radius: 12px; overflow: hidden; }
.variant .thumb svg { width: 100%; height: auto; display: block; }
.loading { display: grid; place-items: center; gap: 14px; padding: 48px 0; text-align: center; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { padding: 10px 14px; border-radius: 12px; background: var(--tip-soft); font-size: .92rem; }

/* ---- editor ---- */
.editor { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: calc(100vh - 57px); height: calc(100dvh - 57px); }
.editor-panel { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; }
.tab { padding: 8px 12px; border: none; background: none; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: .92rem; }
.tab.on { color: var(--ink); border-bottom-color: var(--primary); }
.tab .dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #fff; font-size: .7rem; margin-left: 3px; }
.panel-body { padding: 16px; overflow-y: auto; display: grid; gap: 18px; align-content: start; flex: 1; }
.panel-section { display: grid; gap: 10px; }
.panel-section > h3 { margin: 0; font-size: .95rem; color: var(--ink-2); }
.editor-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-2); }
.editor-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.editor-toolbar .title-input { font-weight: 900; font-size: 1.05rem; border: 2px solid transparent; background: transparent; padding: 4px 8px; max-width: 280px; }
.editor-toolbar .title-input:hover { border-color: var(--line); }
.editor-toolbar .spacer { flex: 1; }
.save-state { font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.canvas-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 20px; overflow: auto; }
.canvas-wrap { position: relative; }
.canvas-wrap .svg-box { position: absolute; inset: 20px; display: grid; place-items: center; }
.canvas-wrap svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 24px rgba(60, 40, 20, .18)); touch-action: none; }
.canvas-wrap .deco { cursor: grab; }
.canvas-wrap .deco:active { cursor: grabbing; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option { border: 2px solid var(--line); border-radius: 12px; background: var(--surface); padding: 6px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.option.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.option .mini { width: 100%; aspect-ratio: 1123/794; border-radius: 8px; overflow: hidden; background: #fff; }
.option .mini svg { width: 100%; height: 100%; display: block; }
.option .big { font-size: 1.6rem; line-height: 1.2; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-btn { font-size: 1.45rem; padding: 4px 0; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); cursor: pointer; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.emoji-btn.on { border-color: var(--teal); background: var(--teal-soft); }
.emoji-btn:hover { transform: scale(1.12); }
.list-edit { display: grid; gap: 8px; }
.list-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 6px; align-items: center; }
.list-item .emoji-pick { font-size: 1.4rem; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.palette-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.palette-row label { display: grid; gap: 2px; justify-items: center; font-size: .72rem; color: var(--ink-2); }
.theme-swatch { height: 26px; border-radius: 8px; display: flex; overflow: hidden; width: 100%; }
.theme-swatch span { flex: 1; }
.advice-item { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 12px; border-radius: 12px; }
.advice-item.warn { background: var(--warn-soft); }
.advice-item.tip { background: var(--tip-soft); }
.advice-item.good { background: var(--good-soft); }
.advice-item b { display: block; }
.advice-item p { margin: 2px 0 6px; font-size: .88rem; }
.score { display: flex; align-items: center; gap: 14px; }
.score .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
@media (max-width: 860px) {
  .editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: auto; }
  .editor-toolbar .title-input { flex: 1 1 140px; min-width: 0; }
  .editor-toolbar .save-state { display: none; }
  .editor-main { order: -1; }
  .canvas-wrap { min-height: 0; height: 62vw; max-height: 60vh; padding: 10px; }
  .canvas-wrap .svg-box { inset: 10px; }
  .editor-panel { border-right: none; }
  .panel-body { overflow: visible; }
}

/* ---- play ---- */
.play { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - 57px); height: calc(100dvh - 57px); background: var(--surface-2); }
.play.fs { height: 100vh; height: 100dvh; }
.play-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; flex-wrap: wrap; }
.play-head .count { font-size: 1.3rem; font-weight: 900; }
.play-stage { position: relative; min-height: 0; overflow: hidden; }
.play-stage .svg-box { position: absolute; inset: 8px; display: grid; place-items: center; }
.play-stage svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 24px rgba(60, 40, 20, .15)); }
.play-stage .slot { cursor: pointer; }
.play-stage .slot.next path { animation: pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.play-stage .slot.just .tok { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 10px 14px 16px; }
.behavior-btn { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 20px; border: 3px solid var(--line); background: var(--surface); font-size: 1.15rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); }
.behavior-btn .e { font-size: 1.8rem; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.behavior-btn:active { transform: scale(.96); }
.praise { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; font-weight: 900; font-size: clamp(1.6rem, 5vw, 3.2rem); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); padding: 18px 32px; border-radius: 28px; background: var(--primary); box-shadow: 0 16px 50px rgba(255, 122, 89, .45); animation: praise 1.8s ease both; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.praise small { display: block; font-size: .5em; color: #fff; opacity: .95; }
@keyframes praise { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(.95); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.reward-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.reward-opt { padding: 16px; border: 3px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; display: grid; gap: 6px; justify-items: center; font-weight: 900; }
.reward-opt .e { font-size: 3rem; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.reward-opt.on { border-color: var(--teal); background: var(--teal-soft); }
.big-reward { text-align: center; }
.big-reward .e { font-size: 5rem; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both; display: inline-block; }

/* ---- modal / toast ---- */
.modal-back { position: fixed; inset: 0; background: rgba(30, 20, 10, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 22px; width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 8px 20px 20px; overflow-y: auto; display: grid; gap: 12px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.copy-row input { font-size: .82rem; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 99px; font-weight: 700; z-index: 70; transition: transform .25s; max-width: 92vw; }
#toast.show { transform: translate(-50%, 0); }
#toast.error { background: var(--warn); color: #fff; }

/* ---- research / docs ---- */
.prose { max-width: 860px; }
.principle { display: grid; gap: 6px; }
.principle .comp { font-size: .78rem; font-weight: 700; color: var(--teal); }
.principle .app { font-size: .9rem; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }
.refs { font-size: .85rem; color: var(--ink-2); padding-left: 1.2em; }
.refs li { margin-bottom: .4em; }
pre.code { background: #23212b; color: #f4efe8; padding: 14px 16px; border-radius: 14px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .9em; }
table.tools { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tools td, table.tools th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty .big { font-size: 3rem; }

/* ---- print ---- */
.print-only { display: none; }
@page { size: A4 landscape; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .no-print, .topbar, #toast, .modal-back { display: none !important; }
  .print-only { display: block !important; }
  .print-page { width: 297mm; height: 209.5mm; page-break-after: always; break-after: page; overflow: hidden; display: grid; place-items: center; }
  .print-page.portrait { width: 210mm; height: 296.5mm; }
  .print-page svg { width: 100%; height: 100%; display: block; }
  .print-page:last-child { page-break-after: auto; break-after: auto; }
  .print-page.nup { display: grid; gap: 0; }
  .print-page.nup-2 { grid-template-columns: 1fr 1fr; }
  .print-page.nup-2.rows { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .print-page.nup-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .nup-cell { display: grid; place-items: center; overflow: hidden; outline: 0.3mm dashed #bbb; outline-offset: -0.15mm; padding: 2mm; }
  .nup-cell svg { width: 100%; height: 100%; display: block; }
  .print-guide { display: block !important; text-align: left; padding: 14mm 16mm; font-size: 10.5pt; color: #222; }
  .print-guide h2 { font-size: 15pt; }
  .print-guide h3 { font-size: 11pt; margin: .6em 0 .2em; }
  .print-guide p, .print-guide li { margin: 0 0 .35em; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.modal-body p { white-space: pre-line; }

/* ---- 成功の4要件 ---- */
.req-grid { display: grid; gap: 8px; }
.req { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); }
.req small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.4; }
.req-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--tip); }
.req.warn { border-color: var(--warn); background: var(--warn-soft); }
.req.warn .req-no { background: var(--warn); }
.req.good { border-color: var(--good); background: var(--good-soft); }
.req.good .req-no { background: var(--good); }
input[type=date] { width: 100%; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.play-note { text-align: center; font-size: .9rem; padding: 4px 12px; }
.shop-item { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.shop-item small { display: block; color: var(--ink-2); }
.badge.pr { background: #6b6b6b; color: #fff; }

.product-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.product-row:empty { display: none; }
.product { display: grid; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--surface); }
.product img, .product .noimg { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 2rem; }
.product .pt { font-size: .75rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .pp { font-size: .7rem; color: var(--ink-2); }

/* ---- 画像スロット ---- */
.img-grid { display: grid; gap: 10px; }
.img-card { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; padding: 8px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); }
.img-card.has { border-style: solid; }
.img-card.drag, .img-card:focus { border-color: var(--teal); background: var(--teal-soft); outline: none; }
.img-thumb { width: 84px; height: 84px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.img-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.img-thumb .ph { font-size: 2.2rem; opacity: .55; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.img-meta { display: grid; gap: 6px; }
.img-meta b { font-size: .88rem; }
.howto { margin: 0; padding-left: 1.3em; font-size: .9rem; display: grid; gap: 4px; }
