/* 見た目＝「D：A（信頼）と B（ポップ）の間」（10-22 オーナー決定）。白地＋青→紫→ピンクの色の流れ */
:root { --fg: #14183a; --muted: #5f6485; --line: #e6e8f2; --bg: #f7f8fd; --card: #fff; --accent: #3b5bfd; --pink: #ff4f9a; --danger: #c62f2f; --ok: #0f7a43;
  --grad: linear-gradient(100deg, #3b5bfd, #8b5cf6 55%, #ff4f9a); }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.7; }
/* 左右の余白は main の中身（1040px）にそろえる＝ロゴがページの文字の左の線に乗る */
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px max(20px, calc((100% - 1040px) / 2)); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 9; }
.brand { font-weight: 900; font-size: 22px; text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
nav a { color: var(--fg); text-decoration: none; font-size: 14px; }
header nav a.button { color: #fff; }
.nav-i { display: inline-flex; align-items: center; gap: 5px; }
.nav-i svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
main { max-width: 1080px; margin: 0 auto; padding: 16px 20px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; margin-top: 48px; border-top: 1px solid var(--line); background: var(--card); }
h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 19px; margin: 28px 0 10px; }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0f2fb; font-weight: 600; white-space: nowrap; }
table.kv th { width: 160px; }
.num { text-align: right; white-space: nowrap; }
.minus { color: var(--danger); }
.link-cell { word-break: break-all; }
.note { color: var(--muted); font-size: 13px; }
.flash { background: #ecfdf3; border: 1px solid #b9e2c9; padding: 8px 12px; border-radius: 10px; }
.error { background: #fdecec; border: 1px solid #f3c0c0; padding: 8px 12px; border-radius: 10px; color: var(--danger); }
.error-text { color: var(--danger); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 16px 0; }
.box.admin { border-color: #f0c36d; background: #fffaf0; }
tr.overdue td { background: #fdecec; }
.claim { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.form { display: grid; gap: 12px; max-width: 540px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.form label, .product-form label { display: grid; gap: 4px; font-size: 14px; }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid #cdd2e3; border-radius: 10px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c7cdfc; border-color: var(--accent); }
textarea { min-height: 90px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
td.pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 480px; }
input.short { width: 110px; }
button, .button { font: inherit; font-weight: 700; display: inline-block; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; text-align: center; box-shadow: 0 4px 12px rgba(91, 76, 250, .2); }
button.secondary, .button.white { background: #fff; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
button.danger { background: var(--danger); box-shadow: none; }
button.link { background: none; color: var(--fg); padding: 0; font-weight: 400; box-shadow: none; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 4px 6px 4px 0; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.product-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.subnav { display: flex; gap: 14px; flex-wrap: wrap; }
.logout { margin-top: 32px; }
.status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #f0f2fb; white-space: nowrap; }
.s-completed { background: #e3f4ea; color: var(--ok); }
.s-partial, .s-awaiting_payment { background: #fff3db; color: #8a5a00; }
.s-canceled { background: #f1f1f1; color: var(--muted); }
.s-submitting { background: #fdecec; color: var(--danger); }
input.mid { width: 200px; }
.product-form .pf-head { flex-basis: 100%; font-weight: 600; font-size: 14px; }
.product-form label.wide { flex: 1 1 320px; }
.box.notice { border-color: #f0c36d; background: #fff8e6; }
.total { margin: 0; font-size: 16px; }

/* ── トップ（pages.js の home）：SNS のロゴで選ぶ → SNS ごとの商品カード ── */
main.home { max-width: none; padding: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero { background: radial-gradient(1200px 400px at 85% -10%, #ffd6ea 0, transparent 60%), radial-gradient(900px 400px at 0% 0%, #dfe5ff 0, transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero .wrap.solo { grid-template-columns: 1fr; } /* ランキングがまだ無いとき（右を空けない） */
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0 0 24px; }
.hero .button { padding: 13px 24px; font-size: 16px; margin: 0 8px 8px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.checks span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.checks b { color: var(--accent); }
.sec-title { font-size: 26px; margin: 52px 0 4px; text-align: center; }
.lead { text-align: center; color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 18px 22px; text-align: center; position: relative; color: var(--fg); text-decoration: none; transition: .15s; }
a.cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 24, 58, .1); border-color: #c7cdfc; }
.cat h3 { margin: 0; font-size: 18px; }
.cat .what { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.cat .from { font-size: 13px; }
.cat .from b { font-size: 20px; }
.cat.soon { opacity: .55; }
.cat.soon .soon-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; background: #eef0f7; border-radius: 99px; padding: 2px 8px; font-weight: 800; }
.cat-icon { display: block; width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 12px; box-shadow: 0 6px 16px rgba(20, 24, 58, .16); }
.sns-logo { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 12px; }
.sns-logo svg { width: 40px; height: 40px; }
.sns-x, .sns-tiktok { background: #000; }
.sns-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sns-youtube { background: #f00; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.sec { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.sec-head .sns-logo { width: 52px; height: 52px; border-radius: 16px; margin: 0; }
.sec-head .sns-logo svg { width: 28px; height: 28px; }
.sec-head h2 { margin: 0; font-size: 22px; }
.howto { background: var(--bg); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: var(--muted); margin: 12px 0 18px; word-break: break-all; }
.howto b { color: var(--fg); }
.kind { display: inline-block; font-size: 12px; font-weight: 800; color: var(--accent); background: #eef1ff; border-radius: 99px; padding: 3px 10px; width: max-content; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.tag { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 9px; }
.tag.jp { background: #fff1f6; color: #c0266d; }
.tag.rf { background: #ecfdf3; color: var(--ok); }
.price { margin: 12px 0 0; font-size: 28px; font-weight: 900; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; }
.step .no { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; display: grid; place-items: center; margin: 0 auto 8px; }
.step b { display: block; }
.step span { font-size: 13px; color: var(--muted); }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.qa summary { font-weight: 800; cursor: pointer; }
.qa details p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.home .more { text-align: center; margin: 16px 0 0; }
main.home > .flash { max-width: 1040px; margin: 12px auto; }
.cat .count { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sns-threads, .sns-soundcloud { background: #000; }
.sns-soundcloud { background: linear-gradient(180deg, #ff7700, #ff3300); }
.sns-facebook { background: #1877f2; }
.sns-line { background: #06c755; }
.sns-telegram { background: #229ed9; }
.sns-twitch { background: #9146ff; }
.sns-pinterest { background: #e60023; }
.sns-logo .glyph { color: #fff; font-weight: 900; font-size: 38px; line-height: 1; font-family: Arial, "Hiragino Sans", sans-serif; }
.sns-logo.mini { width: 26px; height: 26px; border-radius: 8px; margin: 0; }
.sns-logo.mini svg { width: 15px; height: 15px; }
.sns-logo.mini .glyph { font-size: 14px; }
.button.off { background: #e9ebf3; color: var(--muted); box-shadow: none; cursor: default; }

/* ── ランキング（pages.js の rankBlock）：トップの右・SNS のページの上 ── */
.rank { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 8px; box-shadow: 0 18px 40px rgba(20, 24, 58, .08); min-width: 0; }
main > .rank { margin: 8px 0 18px; }
.rank-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.rank-head h2 { margin: 0; font-size: 18px; }
.rank-head .note { margin: 0; }
.rank ol { list-style: none; margin: 0; padding: 0; }
.rank li + li { border-top: 1px solid var(--line); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--fg); text-decoration: none; border-radius: 10px; }
.rank-row:hover { background: var(--bg); }
.rank-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: #eef0f7; color: var(--muted); }
.rank-no.r1 { background: linear-gradient(135deg, #ffd76a, #f5a623); color: #fff; }
.rank-no.r2 { background: linear-gradient(135deg, #d9dde8, #a9b0c2); color: #fff; }
.rank-no.r3 { background: linear-gradient(135deg, #f0c09a, #c98552); color: #fff; }
.rank .sns-logo.mini { flex: none; }
.rank-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-name b { font-size: 14px; line-height: 1.4; }
.rank-name .tags { min-height: 0; }
.rank-price { flex: none; font-weight: 900; font-size: 17px; text-align: right; line-height: 1.2; }
.rank-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rank-go { flex: none; color: var(--muted); font-size: 20px; }

/* ── SNS ごとのページ（pages.js の snsPage）：ほかの SNS へ・「何を増やしたい？」の種類カード ── */
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.crumbs a { color: var(--muted); }
.sns-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } /* 折り返す＝スクロールバーを出さない（10-22 オーナー「美しくない」） */
.sns-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--fg); text-decoration: none; }
.sns-chip.on { border-color: var(--accent); background: #eef1ff; box-shadow: 0 0 0 1px var(--accent) inset; }
.sns-chip:hover { border-color: #c7cdfc; }
.sns-chip .short { display: none; }
.sns-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 8px; }
.sns-head .sns-logo { margin: 0; flex: none; }
.sns-head h1 { margin: 0; }
.sns-head .note { margin: 0; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 30px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .sec { padding: 20px; }
}
@media (max-width: 640px) {
  /* SNS の切り替えはロゴの升目（6列）＝全部が一度に見える・押しやすい */
  .sns-switch { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .sns-chip { flex-direction: column; justify-content: center; gap: 4px; padding: 7px 1px 6px; border-radius: 12px; font-size: 9px; letter-spacing: -.02em; min-width: 0; }
  .sns-chip .sns-logo.mini { width: 30px; height: 30px; border-radius: 9px; }
  .sns-chip .full { display: none; }
  .sns-chip .short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .sns-head .sns-logo { width: 56px; height: 56px; border-radius: 16px; }
  .sns-head .sns-logo svg { width: 30px; height: 30px; }
  .sns-head h1 { font-size: 24px; }
}

@media (max-width: 640px) {
  table { display: block; overflow-x: auto; }
  table.kv th { width: auto; }
  /* ★狭い画面では1行を1かたまり（カード）に組み替える。見出しの行は隠し、data-label を小さく前に出す */
  table.cards { display: block; overflow: visible; background: none; border: 0; }
  table.cards tbody { display: block; }
  table.cards tr:first-child { display: none; }
  table.cards tr { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
  table.cards td { display: block; border: 0; padding: 0; text-align: left; }
  table.cards td[data-label]::before { content: attr(data-label) "："; color: var(--muted); font-size: 12px; }
  table.cards td.c-name { flex-basis: 100%; font-weight: 600; }
  table.cards td.c-action { margin-left: auto; }
  /* 注文の一覧：状態と金額を先に（左上）・リンクは1行で省略 */
  table.orders td.c-status { order: -3; }
  table.orders td.c-amount { order: -2; font-weight: 600; }
  table.orders td.c-id { order: -1; margin-left: auto; }
  table.orders td.c-date, table.orders td.c-email { color: var(--muted); font-size: 13px; }
  table.orders td.link-cell { flex-basis: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; color: var(--muted); font-size: 13px; }
}
footer .legal-links { justify-content: center; gap: 4px 14px; margin-bottom: 8px; }
footer .legal-links a { color: var(--muted); font-size: 13px; }
.legal { max-width: 760px; }
.legal li { margin: 4px 0; }
.draft { background: #fff3db; border: 1px dashed #d9a400; color: #6b4a00; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dd { margin: 4px 0 0; }

/* 選ぶ順の段（pathSteps）・種類カード（snsPage）・商品ページ（productPage）＝10-22 見本 */
.path { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0; counter-reset: st; }
.path li { counter-increment: st; font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.path li::before { content: counter(st); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #eef0f7; margin-right: 6px; font-size: 11px; }
.path li.done { color: var(--fg); }
.path li.on { color: #fff; background: var(--grad); border-color: transparent; }
.path li.on::before { background: rgba(255, 255, 255, .3); }
.pick-title { font-size: 22px; margin: 18px 0 10px; }
.kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kind-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; scroll-margin-top: 80px; }
.kind-card h3 { margin: 0; font-size: 18px; display: flex; align-items: baseline; gap: 8px; }
.kind-card h3 .mark { color: var(--accent); }
.kind-card h3 small { font-size: 12px; color: var(--muted); font-weight: 600; }
.kind-card > .note { margin: 2px 0 8px; }
.picks { list-style: none; margin: 0; padding: 0; }
.picks li + li { border-top: 1px solid var(--line); }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--fg); text-decoration: none; border-radius: 10px; }
.pick-row:hover { background: var(--bg); }
.pick-row .tag { flex: none; }
.pick-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.4; display: flex; flex-direction: column; gap: 3px; }
.pick-name .tags { min-height: 0; }
.pick-price { flex: none; text-align: right; font-size: 13px; line-height: 1.2; }
.pick-price b { font-size: 18px; font-weight: 900; }
.pick-price small { display: block; font-size: 11px; color: var(--muted); }
.pick-row .go { flex: none; color: var(--muted); font-size: 20px; }
.pp-head h1 { margin: 6px 0 8px; }
.pp { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.pp-main h2 { margin-top: 22px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: fl; }
.flow li { counter-increment: fl; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; font-size: 13px; }
.flow li::before { content: counter(fl); display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; }
.flow b { display: block; }
.flow span { color: var(--muted); font-size: 12px; }
.pp-buy { position: sticky; top: 76px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 18px 40px rgba(20, 24, 58, .08); scroll-margin-top: 80px; }
.pp-buy .price { margin: 0 0 12px; }
.qbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; margin-bottom: 10px; padding-top: 6px; }
.qbtn { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 7px 4px; text-align: center; color: var(--fg); text-decoration: none; font-size: 12px; line-height: 1.35; }
.qbtn b { display: block; font-size: 14px; }
.qbtn small { display: block; color: var(--pink); font-weight: 700; }
.qbtn.on { border-color: var(--accent); background: #eef1ff; box-shadow: 0 0 0 1px var(--accent) inset; }
/* 数のボタンの目印（お試し・おすすめ）と、すぐ下の届くまでの目安 */
.qtag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.pp-eta { margin: 0 0 12px; font-size: 12px; color: var(--muted); background: #f5f7ff; border-radius: 10px; padding: 7px 10px; }
.pp-eta b { display: block; color: var(--fg); font-size: 13px; }
/* 注文の画面：リンクの確かめ方・注文の前の確認 */
.howto { font-size: 13px; background: #f7f8fb; border-radius: 10px; padding: 8px 12px; margin-top: -6px; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.howto ol { margin: 6px 0 0; padding-left: 20px; }
.precheck { border: 1px solid #f0c36d; background: #fff8e6; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.precheck ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.precheck li::before { content: '☐ '; color: #b7791f; font-weight: 700; }
.pp-total { margin: 0 0 10px; }
.pp-total strong { font-size: 22px; }
.pp-total small { margin-left: 6px; color: var(--pink); font-weight: 700; }
.pp-buy .button { display: block; }
@media (max-width: 800px) {
  .kinds, .pp { grid-template-columns: 1fr; }
  .pp-buy { position: static; order: -1; scroll-margin-top: 150px; } /* 狭い画面は名前のすぐ下で数を選ぶ・ヘッダーが2段になるので #buy で飛んだとき隠れないように（★基本の .pp-buy より後ろに書く＝後ろが勝つ） */
}
@media (max-width: 640px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}

/* 商品のサムネイル（pages.js の thumb・10-27 オーナー「競合と同じようにアイコン＋増える物の絵」）。地は SNS の色・左上に SNS のロゴ・まん中に絵・下に大きな文字 */
.thumb { position: relative; flex: none; width: 168px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--accent), var(--pink)); box-shadow: 0 6px 18px rgba(20, 24, 58, .14); }
.thumb.th-x { background: radial-gradient(circle at 70% 20%, #3a3f4b 0, #14161b 55%, #000 100%); }
.thumb.th-instagram { background: radial-gradient(circle at 25% 110%, #fdd56a 0, #fd5949 40%, #d6249f 65%, #6a3df0 100%); }
.thumb.th-tiktok { background: radial-gradient(circle at 15% 15%, rgba(37, 244, 238, .55) 0, transparent 45%), radial-gradient(circle at 90% 90%, rgba(254, 44, 85, .6) 0, transparent 50%), #0b0b0f; }
.thumb.th-youtube { background: linear-gradient(160deg, #ff4a4a, #c40000); }
.thumb .th-logo { position: absolute; top: 9%; left: 9%; width: 20%; height: 20%; }
.thumb .th-art { width: 56%; height: 56%; object-fit: contain; margin-top: -14%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
.thumb .th-label { position: absolute; left: 6%; right: 6%; bottom: 9%; text-align: center; font-size: 22px; font-weight: 900; line-height: 1.15; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); word-break: keep-all; overflow-wrap: anywhere; }
.thumb.card { width: 92px; border-radius: 16px; }
.thumb.card .th-label { font-size: 12px; bottom: 7%; }
.thumb.card .th-art { margin-top: -18%; }
.thumb.mini { width: 40px; border-radius: 10px; box-shadow: none; }
.thumb.mini .th-art { margin-top: 0; width: 64%; height: 64%; filter: none; }
.thumb.mini .th-logo { top: 6%; left: 6%; width: 30%; height: 30%; }
.kc-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.kc-top > div { min-width: 0; }
.kc-top .note { margin: 2px 0 0; }
.pp-head { display: flex; gap: 18px; align-items: center; }
@media (max-width: 640px) {
  .thumb { width: 120px; border-radius: 18px; }
  .thumb .th-label { font-size: 16px; }
  .thumb.card { width: 80px; }
  .thumb.card .th-label { font-size: 11px; }
  .thumb.mini { width: 36px; }
  .pp-head { gap: 12px; }
}
/* 全面の絵のサムネイル（pages.js の TILES・元は src/tiles.js・10-28 オーナー決定「数字とグラフ」）。ロゴと文字は絵の中 */
.thumb.tile { display: block; background: #0b0b0f; }
.thumb.tile .tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.big { width: 100%; border-radius: 18px; }
.kc-art { display: block; flex: none; border-radius: 18px; } .kc-art:hover .thumb { filter: brightness(1.08); }
.kinds.tiled { grid-template-columns: repeat(4, 1fr); }
.kinds.tiled .kind-card { padding: 12px; }
.kinds.tiled .kc-top { flex-direction: column; align-items: stretch; gap: 10px; }
@media (max-width: 900px) { .kinds.tiled { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kinds.tiled { grid-template-columns: repeat(2, 1fr); gap: 10px; } .thumb.big { width: 100%; } }
.thumb.big:not(.tile) .th-label { font-size: 10cqw; } .thumb.big:not(.tile) { container-type: inline-size; }
/* 4列の狭いカードの中の商品の行：札・名前は上に1行ずつ、値段はその下（縦に積む） */
.kinds.tiled .pick-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tag go" "name go" "price go"; gap: 4px 6px; justify-items: start; }
.kinds.tiled .pick-row > .tag { grid-area: tag; }
.kinds.tiled .pick-name { grid-area: name; font-size: 13px; }
.kinds.tiled .pick-price { grid-area: price; text-align: left; }
.kinds.tiled .pick-price small { display: inline; margin-left: 4px; }
.kinds.tiled .pick-row .go { grid-area: go; align-self: center; }
.kinds.tiled .kind-card h3 { font-size: 16px; }
footer .indep { max-width: 720px; margin: 0 auto 8px; padding: 0 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
/* コラム（/column・原稿は content/column） */
main.col-read { max-width: 800px; } /* 記事はページのまん中（中身 760px） */
.column, .col-sns { max-width: 760px; }
.column h2 { border-left: 4px solid var(--accent); padding-left: 10px; }
.column h3 { font-size: 16px; margin: 20px 0 8px; }
.column img { max-width: 100%; height: auto; border-radius: 10px; }
.column figure { margin: 16px 0; }
.column blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.column .table-wrap { overflow-x: auto; }
/* 一覧＝いちばん新しい記事を大きく・ほかは3列のカード。題のリンクをカード全体に広げる（::after） */
.col-lead { color: var(--muted); margin: -8px 0 20px; }
.col-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-list li { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: transform .15s, box-shadow .15s; }
.col-list li:not(.has-thumb) { padding: 16px; }
.col-list li:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 24, 58, .1); }
.col-list li:first-child { grid-column: 1 / -1; }
.col-list li a:not(.col-thumb) { color: var(--fg); text-decoration: none; line-height: 1.5; }
.col-list li a:not(.col-thumb)::after { content: ""; position: absolute; inset: 0; }
.col-list li:hover a:not(.col-thumb) { color: var(--accent); }
.col-list li a:focus-visible { outline: none; }
.col-list li:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.col-list li p { margin: 8px 0 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.col-list li p.note { font-size: 12px; }
.col-thumb { flex: none; }
.col-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.col-text { flex: 1 1 auto; min-width: 0; padding: 14px 16px 16px; }
.col-list li.has-thumb:first-child { flex-direction: row; align-items: center; }
.col-list li.has-thumb:first-child .col-thumb { flex: 0 0 52%; }
.col-list li.has-thumb:first-child .col-text { padding: 20px 28px; }
.col-list li:first-child strong { font-size: 22px; }
.col-list li:first-child p { -webkit-line-clamp: 5; }
@media (max-width: 900px) { .col-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .col-list { grid-template-columns: 1fr; gap: 14px; }
  .col-list li.has-thumb:first-child { flex-direction: column; align-items: stretch; }
  .col-list li.has-thumb:first-child .col-thumb { flex: none; }
  .col-list li.has-thumb:first-child .col-text { padding: 14px 16px 16px; }
  .col-list li:first-child strong { font-size: 18px; }
}
.col-sns { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }

.ref-card { max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.ref-card .note { margin: 12px 0 0; }
.ref-card .note code { display: inline-block; background: var(--bg); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.ref-link { display: flex; align-items: stretch; gap: 8px; margin: 0; }
.ref-link code { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
#ref-copy { flex: none; min-width: 148px; }
#ref-copy.done { background: var(--ok); box-shadow: none; }
#ref-copy[hidden] { display: none; }
@media (max-width: 520px) {
  .ref-link { flex-direction: column; }
  #ref-copy { width: 100%; }
}
.form [hidden] { display: none; }
