/* ===== Design Skill Market ===== */
:root {
  --ink: #1a1d29;
  --ink-soft: #4a4f63;
  --ink-faint: #8b90a3;
  --bg: #f7f7fa;
  --surface: #ffffff;
  --line: #e4e5ee;
  --accent: #4f46e5;
  --accent-dark: #3c34c4;
  --accent-soft: #eef0ff;
  --star: #f5a623;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(26, 29, 41, .06);
  --shadow-hover: 0 10px 28px rgba(26, 29, 41, .12);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); line-height: 1.7; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ----- header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.logo-mark { color: var(--accent); }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }

/* ----- hero ----- */
.hero { padding: 88px 0 72px; background: linear-gradient(160deg, #ffffff 0%, #eef0ff 100%); }
.hero-eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .12em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 42px); line-height: 1.45; font-weight: 800; margin-bottom: 20px; }
.hero h1 strong { color: var(--accent); }
.hero-lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- buttons ----- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none; transition: .18s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }

/* ----- sections ----- */
.section-title { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-lead { text-align: center; color: var(--ink-soft); margin-bottom: 40px; }

.about { padding: 72px 0; background: var(--surface); }
.about .section-title { margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ----- gallery ----- */
.gallery { padding: 72px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.design-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: .2s;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  position: relative;
}
.design-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 10px;
}
.card-title { font-size: 17px; font-weight: 800; }
.card-desc { font-size: 13px; color: var(--ink-soft); flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }
.stars .off { color: #d8d9e4; }
.rating-num { font-weight: 700; margin-left: 6px; color: var(--ink); }
.review-count { color: var(--ink-faint); }
.dl-count { color: var(--ink-faint); font-size: 12px; }

/* ----- CSS製サムネイル ----- */
.thumb { height: 170px; position: relative; overflow: hidden; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.thumb .t-bar { height: 8px; border-radius: 4px; }
.thumb .t-dot { width: 22px; height: 22px; border-radius: 50%; }
.thumb .t-block { border-radius: 6px; flex: 1; }
.thumb .t-row { display: flex; gap: 8px; flex: 1; }
.thumb .t-col { flex: 1; border-radius: 6px; }

/* ----- detail ----- */
.detail-container { padding: 48px 24px 80px; }
.back-link {
  background: none; border: none; color: var(--accent); font-weight: 700;
  font-size: 14px; cursor: pointer; margin-bottom: 24px; padding: 4px 0;
}
.back-link:hover { text-decoration: underline; }

.detail-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; margin-bottom: 48px; align-items: start; }
.detail-thumb { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); border: 1px solid var(--line); }
.detail-thumb .thumb { height: 300px; }
.detail-info h1 { font-size: 30px; font-weight: 800; margin: 8px 0 12px; }
.detail-info .card-tags { margin-bottom: 4px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 15px; }
.detail-desc { color: var(--ink-soft); margin-bottom: 22px; }
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 14px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- reviews ----- */
.reviews { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 32px; }
.reviews h2 { font-size: 21px; margin-bottom: 20px; }
.review-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-item:last-of-type { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-name { font-weight: 700; font-size: 14px; }
.review-date { color: var(--ink-faint); font-size: 12px; }
.review-text { font-size: 14px; color: var(--ink-soft); }

.review-form { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--line); }
.review-form h3 { font-size: 16px; margin-bottom: 14px; }
.star-input { display: flex; gap: 4px; font-size: 28px; cursor: pointer; margin-bottom: 12px; }
.star-input span { color: #d8d9e4; transition: .1s; }
.star-input span.on { color: var(--star); }
.review-form input[type="text"], .review-form textarea, .order-form input, .order-form select, .order-form textarea,
.nice-form input, .nice-form select, .nice-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; background: #fff;
  margin-top: 6px;
}
.review-form input:focus, .review-form textarea:focus, .order-form input:focus, .order-form select:focus, .order-form textarea:focus,
.nice-form input:focus, .nice-form select:focus, .nice-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.review-form label, .order-form label, .nice-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.nice-form input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }

/* ----- order ----- */
.order { padding: 72px 0 88px; }
.order-box {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 52px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
}
.order-text h2 { font-size: 26px; line-height: 1.5; margin-bottom: 16px; }
.order-text p { color: #c6c9d8; font-size: 14px; margin-bottom: 20px; }
.order-points { list-style: none; }
.order-points li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 14px; }
.order-points li::before { content: "✓"; position: absolute; left: 0; color: #9da4ff; font-weight: 800; }
.order-form { background: #fff; border-radius: var(--radius); padding: 28px; color: var(--ink); }
.order-note { font-size: 12px; color: var(--ink-faint); margin-top: 10px; text-align: center; }

/* ----- hero genres ----- */
.hero-genres { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-genres span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  box-shadow: var(--shadow);
}

/* ----- genre tabs ----- */
.genre-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.genre-tab {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 14px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; font-family: inherit; transition: .15s;
}
.genre-tab:hover { border-color: var(--accent); color: var(--accent); }
.genre-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tag-genre { background: var(--ink); color: #fff; }

/* ----- detail gallery（使用例ビューア） ----- */
.detail-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-hover); background: #fff;
}
.sample-stage {
  height: 340px; display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.gallery-img { width: 100%; height: 340px; object-fit: contain; display: block; background: #f0f1f6; cursor: zoom-in; }
.gallery-img.img-tall { object-fit: cover; object-position: top; }
.gallery-img.expanded { height: auto; max-height: none; object-fit: contain; cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; font-family: inherit;
}
.gallery-thumb.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ----- LP sections（Amazon風 商品説明） ----- */
.lp-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; margin-bottom: 24px;
}
.lp-section h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.lp-section p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }
.lp-highlight { background: var(--accent-soft); border-color: #dfe3ff; }
.highlight-list { list-style: none; }
.highlight-list li {
  padding: 10px 0 10px 30px; position: relative; font-size: 14.5px; font-weight: 600;
  border-bottom: 1px dashed #d6daf5;
}
.highlight-list li:last-child { border-bottom: none; }
.highlight-list li::before { content: "👍"; position: absolute; left: 0; }
.lp-tools { font-size: 12.5px; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }

/* ----- avatar image ----- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-input-row { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.avatar-input-row .avatar-lg { width: 56px; height: 56px; font-size: 22px; flex-shrink: 0; }
.avatar-input-row input { flex: 1; margin-top: 0 !important; }
.admin-row { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ----- search & filter toolbar ----- */
.toolbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 14px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.search-box {
  width: 100%; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 13px 22px; font-size: 15px; font-family: inherit; background: var(--bg);
  margin-bottom: 14px;
}
.search-box:focus { outline: none; border-color: var(--accent); background: #fff; }
.filter-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filter-row label { font-size: 12px; font-weight: 700; color: var(--ink-soft); flex: 1; min-width: 130px; }
.filter-row select {
  display: block; width: 100%; margin-top: 5px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px;
  font-size: 13px; font-family: inherit; background: #fff; cursor: pointer;
}
.filter-row select:focus { outline: none; border-color: var(--accent); }
.clear-filters {
  background: none; border: none; color: var(--ink-faint); font-size: 12px;
  font-weight: 700; cursor: pointer; padding: 10px 4px; white-space: nowrap;
}
.clear-filters:hover { color: var(--accent); text-decoration: underline; }
.result-count { font-size: 12px; color: var(--ink-faint); margin-top: 12px; }
.no-hit { grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* ----- badges ----- */
.badge-row {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2;
  display: flex; justify-content: space-between; pointer-events: none;
}
.badge {
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.badge-free { background: #18a058; color: #fff; }
.badge-paid { background: #f5a623; color: #fff; }
.badge-sample { background: #5b6270; color: #fff; }
.badge-new { background: #e0455a; color: #fff; margin-left: auto; }
.detail-rating .badge { box-shadow: none; }

/* 実画像サムネイル */
.thumb-photo { padding: 0; }
.thumb-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}

/* ----- modal（広告・購入） ----- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 22, 35, .6); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: #fff; border-radius: 18px; max-width: 480px; width: 100%;
  padding: 26px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: modal-in .22s ease;
}
@keyframes modal-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.ad-label {
  display: inline-block; font-size: 10px; font-weight: 700; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; margin-bottom: 12px;
}
.ad-box {
  background: linear-gradient(145deg, var(--accent-soft), #f6e9ff);
  border-radius: 12px; padding: 22px; margin-bottom: 16px;
}
.ad-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.ad-title { font-size: 18px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.ad-text { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.ad-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ad-note { font-size: 11px; color: var(--ink-faint); }
.purchase-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--bg); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px;
}
.purchase-name { font-weight: 800; font-size: 15px; }
.purchase-creator { font-size: 12px; color: var(--ink-soft); }
.purchase-price { font-size: 22px; font-weight: 800; color: var(--accent); }

/* ----- creator / account ----- */
.nav-post { color: var(--accent); }
.nav-account {
  background: var(--accent-soft); padding: 7px 16px; border-radius: 999px; color: var(--accent);
}
.nav-account:hover { background: #e0e3ff; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 800; flex-shrink: 0;
}
.avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.avatar-lg { width: 88px; height: 88px; font-size: 36px; }

.card-creator {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--ink-soft); padding: 4px 0;
}
.card-creator:hover .creator-name { color: var(--accent); text-decoration: underline; }
.creator-name { font-weight: 700; }

.creator-box {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
}
.creator-box:hover { background: #e0e3ff; }
.creator-box-name { font-weight: 800; font-size: 14px; }
.creator-box-hint { font-size: 12px; color: var(--accent); }

.creator-head {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; margin-bottom: 40px;
}
.creator-head-info h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.creator-bio { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.link-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.link-chip {
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; transition: .15s;
}
.link-chip:hover { border-color: var(--accent); color: var(--accent); }
.creator-stats { display: flex; gap: 22px; font-size: 14px; color: var(--ink-soft); }
.creator-stats b { color: var(--ink); font-size: 18px; }
.works-title { font-size: 21px; font-weight: 800; margin-bottom: 20px; }

.narrow { max-width: 720px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
}
.panel.center { text-align: center; padding: 56px 36px; }
.panel-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.panel-lead { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.panel-sub { font-size: 16px; font-weight: 800; margin: 32px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.color-row { display: flex; gap: 18px; }
.color-row label { flex: 1; }
.form-hint { font-size: 12px; color: var(--ink-faint); margin: -4px 0 16px; }
#sb-skill { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.6; }

.my-works { list-style: none; }
.my-works li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.my-works a { color: var(--accent); font-weight: 700; }
.my-works a:hover { text-decoration: underline; }
.text-danger {
  background: none; border: none; color: #d23b3b; font-size: 12px;
  cursor: pointer; font-weight: 700;
}
.text-danger:hover { text-decoration: underline; }
.empty-note { color: var(--ink-faint); font-size: 14px; }
.empty-note a { color: var(--accent); font-weight: 700; }

/* ----- Googleログイン ----- */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 13px 28px; font-weight: 700; font-size: 15px;
}
.btn-google:hover { border-color: #b9bdd1; background: #fafafa; transform: translateY(-1px); }
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 18px;
  color: var(--ink-faint); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ----- design picker（代行フォームのデザイン選択） ----- */
.design-picker { display: flex; gap: 8px; margin-top: 6px; }
.design-picker input[type="text"] {
  margin-top: 0; cursor: pointer; background: #fff;
  overflow: hidden; text-overflow: ellipsis;
}
.picker-btn {
  flex-shrink: 0; padding: 0 20px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.picker-btn:hover { background: var(--accent-dark); }
.picker-list { max-height: 50vh; overflow-y: auto; margin-top: 4px; }
.picker-item {
  display: block; width: 100%; text-align: left; background: none;
  border: none; border-bottom: 1px solid var(--line); padding: 13px 8px;
  cursor: pointer; font-family: inherit;
}
.picker-item:hover { background: var(--accent-soft); }
.picker-title { display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.picker-title .badge { font-size: 10px; padding: 2px 9px; }
.picker-sub { display: block; font-size: 12px; color: var(--ink-faint); }
.picker-sub code {
  background: var(--bg); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 7px; font-size: 11px;
}
.design-id {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--ink-faint); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px;
}

/* ----- admin（管理ページ） ----- */
.nav-admin { color: #b45309; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-top: 4px; }
.admin-section { margin-bottom: 24px; }
.panel-sub-plain { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; color: var(--ink-faint); font-size: 11px; font-weight: 700;
  padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--accent); font-weight: 700; }
.admin-table a:hover { text-decoration: underline; }
.admin-table .stars-cell { color: var(--star); }
.review-body-cell { max-width: 320px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- side banner ads（ワイド画面のみ。AdSense導入時はこの枠を差し替え） ----- */
.side-ad {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 170px; z-index: 50; display: none;
}
.side-ad.left { left: 20px; }
.side-ad.right { right: 20px; }
@media (min-width: 1520px) { .side-ad { display: block; } }
.side-ad-box {
  border-radius: 16px; padding: 26px 18px; min-height: 440px;
  display: flex; flex-direction: column; gap: 14px;
  color: #fff; cursor: pointer; box-shadow: var(--shadow-hover);
  transition: .2s;
}
.side-ad-box:hover { transform: translateY(-3px); }
.side-ad-order { background: linear-gradient(165deg, #1a1d29, #343b55); }
.side-ad-post { background: linear-gradient(165deg, #4f46e5, #8b5cf6); }
.side-ad-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  background: rgba(255,255,255,.18); border-radius: 999px;
  padding: 5px 12px; align-self: flex-start;
}
.side-ad-box strong { font-size: 24px; line-height: 1.5; font-weight: 800; }
.side-ad-box p { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,.8); flex: 1; }
.side-ad-btn {
  background: #fff; color: var(--ink); border-radius: 999px;
  padding: 11px 14px; font-size: 13px; font-weight: 800; text-align: center;
}
.side-ad-order .side-ad-btn { color: #1a1d29; }
.side-ad-post .side-ad-btn { color: #4f46e5; }

/* ----- toast ----- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; transition: .3s; z-index: 999;
  box-shadow: var(--shadow-hover);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ----- footer ----- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; text-align: center; color: var(--ink-faint); font-size: 13px; }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--ink-soft); text-decoration: underline; }
.footer-links a:hover { color: var(--accent); }

/* ----- responsive ----- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .order-box { grid-template-columns: 1fr; padding: 32px 24px; }
  .detail-head { grid-template-columns: 1fr; }
  .creator-head { flex-direction: column; gap: 16px; padding: 24px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-account):not(.nav-post) { display: none; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}
