/* プレビューの素材一覧専用。共通の外観は変更しません。 */
.sample-notice { padding: 14px 18px; margin-bottom: 20px; border-radius: 12px; background:#f5f0f8; color:#604b70; line-height:1.7; }
.sample-intro { color:#625c68; line-height:1.8; }
.sample-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:24px 0; }
.sample-item { margin:0; padding:12px; border:1px solid #e9e0ed; border-radius:14px; background:#fff; }
.sample-placeholder { aspect-ratio:1; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#f3f0f4; color:#827a86; font-size:0.95rem; }
.sample-item figcaption { margin-top:10px; color:#514557; font-weight:600; }
.sample-item small { display:block; color:#776d7b; margin-top:4px; }
.sample-custom { margin-top:28px; padding-top:20px; border-top:1px solid #eee7f1; }
.sample-options { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.sample-options span { border:1px solid #e5d9e9; border-radius:20px; padding:7px 13px; color:#75667a; background:#fbf9fc; }
.sample-button { padding:12px 22px; border:0; border-radius:10px; color:#777; background:#e9e5eb; cursor:not-allowed; font:inherit; }
@media(max-width:650px) { .sample-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }

.sample-item img { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:10px; background:#fff; }
.sample-item .btn { display:inline-flex; margin-top:10px; text-decoration:none; font-size:.9rem; padding:10px 15px; }
.sample-terms { margin-top:28px; }

/* Gallery layout: preserve the card style while fitting every screen. */
.sample-grid { display:flex; flex-wrap:wrap; justify-content:center; }
.sample-grid > .sample-item { box-sizing:border-box; width:calc((100% - 40px) / 3); min-width:0; }
.sample-item img { height:auto; aspect-ratio:auto; }
.sample-item .btn { max-width:100%; box-sizing:border-box; justify-content:center; white-space:nowrap; }
@media(max-width:650px) {
  .sample-grid > .sample-item { width:calc((100% - 12px) / 2); padding:8px; }
  .sample-item .btn { font-size:clamp(10px, 2.9vw, 14px); padding:9px 5px; letter-spacing:0; }
}

.wallpaper-editor{margin:24px 0 32px;padding:22px;border:1px solid #d8c7e2;border-radius:16px;background:#faf7fc;color:#4a3151;scroll-margin-top:85px}.wallpaper-editor__layout{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:24px;align-items:start}.wallpaper-editor__preview{max-width:360px;width:100%;overflow:hidden;background:#eee7f1;border-radius:12px}.wallpaper-editor__preview canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.wallpaper-editor__controls{display:grid;gap:14px}.wallpaper-editor__field{display:grid;gap:6px;font-weight:600}.wallpaper-editor__field select,.wallpaper-editor__field input[type=file]{max-width:100%;padding:10px;border:1px solid #d8c7e2;border-radius:8px;background:#fff;color:inherit;font:inherit}.wallpaper-editor__field input[type=range]{width:100%;accent-color:#9674af}.wallpaper-editor__controls button{justify-self:start}.wallpaper-gallery-edit{margin-top:8px;max-width:100%;white-space:normal}@media(max-width:700px){.wallpaper-editor{padding:16px}.wallpaper-editor__layout{grid-template-columns:minmax(0,1fr)}.wallpaper-editor__preview{max-width:300px;margin:auto}.wallpaper-editor__controls button{justify-self:stretch}}
