/* Layout: いちごミルク色の見本帳。丸い文字と水玉の背景、角の丸いカードに品番つきの見本が並ぶ。 */
:root {
  --bg: #fff5f8;
  --dot: #ffe1ea;
  --surface: #ffffff;
  --surface-2: #ffe8ef;
  --fg: #5b3a48;
  --muted: #a77d8e;
  --line: #f8d3df;
  --accent: #f0739c;
  --accent-soft: #ffd0de;
  --accent-fg: #ffffff;
  --hi: #ffe58f;
  --hi-fg: #6b4a1f;
  --danger: #e0526b;
  --sheet: #ffffff;
  --shadow: 0 6px 18px rgba(240, 115, 156, .14);
  --font-display: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-code: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2a1b22; --dot: #33212a; --surface: #37252e; --surface-2: #47303b; --fg: #fbe8ef; --muted: #cda4b4;
    --line: #5c3e4b; --accent: #ff9bbb; --accent-soft: #6a3b4e; --accent-fg: #2a1b22; --hi: #ffe58f; --hi-fg: #4a3312; --danger: #ff8a9c;
    --shadow: 0 6px 18px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2a1b22; --dot: #33212a; --surface: #37252e; --surface-2: #47303b; --fg: #fbe8ef; --muted: #cda4b4;
  --line: #5c3e4b; --accent: #ff9bbb; --accent-soft: #6a3b4e; --accent-fg: #2a1b22; --hi: #ffe58f; --hi-fg: #4a3312; --danger: #ff8a9c;
  --shadow: 0 6px 18px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background-color: var(--bg); background-image: radial-gradient(var(--dot) 2.5px, transparent 2.6px); background-size: 26px 26px; color: var(--fg); font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.7; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.top { padding-block: 28px 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.eyebrow::before { content: "♡ "; }
.brand { display: flex; align-items: flex-end; gap: 10px; }
.brand .ears { width: clamp(40px, 6vw, 56px); height: auto; flex: 0 0 auto; margin-bottom: .18em; }
.subname { font-family: var(--font-display); color: var(--fg); font-size: clamp(15px, 2.2vw, 19px); margin: -2px 0 8px; letter-spacing: .04em; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 5vw, 42px); line-height: 1.25; color: var(--accent); letter-spacing: .02em; margin: 4px 0 6px; text-wrap: balance; }
.lead { margin: 0; color: var(--muted); max-width: 60ch; font-size: 14px; }
.cell { position: relative; min-width: 0; display: grid; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent-soft); background: var(--surface); color: var(--accent); font-size: 18px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.fav[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .fav[aria-pressed="true"] { animation: pop .25s ease; } @keyframes pop { 50% { transform: scale(1.2); } } }
.tab.saved { color: var(--accent); }
.savedbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 2px dashed var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.savedbar p { margin: 0; flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--muted); }
.savedbar .codes { flex-basis: 100%; font-family: var(--font-code); font-weight: 700; color: var(--accent); overflow-wrap: anywhere; user-select: all; }
.perks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--accent-soft); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 13px; min-width: 0; }
.perks b { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 2px 12px; font-weight: 700; white-space: nowrap; }
.perks b::before { content: "♡ "; }
@media (max-width: 520px) { .perks li { border-radius: 18px; } }
.headbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; background: var(--accent); color: var(--accent-fg); display: inline-flex; gap: 8px; align-items: center; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

/* genre tabs */
nav.genres { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 2px dashed var(--accent-soft); padding-block: 6px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.tab .n { font-family: var(--font-code); font-size: 12px; font-weight: 500; }
.tab[aria-selected="true"] { color: var(--accent-fg); background: var(--accent); }
.tab[aria-selected="true"] .n { opacity: .85; }
.tab:hover { color: var(--fg); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-block: 14px; }
.colors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1 1 520px; min-width: 0; }
.colors .lab { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 13px; font-weight: 700; color: var(--fg); }
.cchip .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: 0 0 auto; }
.cchip .n { font-family: var(--font-code); font-size: 11px; font-weight: 500; color: var(--muted); }
.cchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.cchip[disabled] { opacity: .35; cursor: default; }
.cchip.all { padding-left: 10px; }
.cdots { display: inline-flex; gap: 3px; margin-left: auto; }
.cdots i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.metarow { display: flex; align-items: center; gap: 8px; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.sq { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 24px; }
.card { background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; display: grid; padding: 0; text-align: left; width: 100%; }
.thumb { aspect-ratio: 2.3 / 1; max-width: 100%; background: var(--sheet); display: grid; place-items: center; padding: 3%; position: relative; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
/* 仕様書（1200×850）から表・裏の部分だけを見せる */
.thumb.crop { aspect-ratio: 2.243 / 1; padding: 0; overflow: hidden; display: block; }
.thumb.crop img { display: block; width: 119.9%; height: auto; max-width: none; margin-left: -9.95%; margin-top: -14.01%; object-fit: initial; }
.more { display: flex; justify-content: center; padding-bottom: 56px; }
.thumb .ph { color: #9a9ca5; font-size: 12px; }
.thumb::before { content: "読み込み中…"; position: absolute; inset: 0; display: grid; place-items: center; color: #9a9ca5; font-size: 12px; }
.thumb.loaded::before { content: none; }
.thumb.failed::before { content: "画像を表示できません"; }
.thumb img { position: relative; }
.meta { padding: 10px 12px 12px; display: grid; gap: 2px; min-width: 0; }
.code { font-family: var(--font-code); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.meta .name { font-weight: 700; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.meta .g { font-size: 12px; color: var(--muted); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-3px) rotate(-.4deg); border-color: var(--accent-soft); }
}

.empty { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.empty h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0; }
.empty p { margin: 0; color: var(--muted); max-width: 46ch; }
.empty .ghosts { display: flex; gap: 10px; margin-bottom: 6px; }
.empty .ghosts i { width: 64px; height: 64px; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-family: var(--font-code); font-size: 11px; color: var(--muted); }
.banner { padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* dialog */
dialog { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--fg); width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog.narrow { width: min(640px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(91, 58, 72, .45); }
.dlg { display: grid; grid-template-columns: minmax(0, 1fr); }
.big { background: var(--sheet); display: grid; place-items: center; padding: 2%; aspect-ratio: 1200 / 850; max-width: 100%; position: relative; }
.big img { width: 100%; height: 100%; object-fit: contain; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.side { padding: 18px 22px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.side h2, .pad h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.x { flex: 0 0 auto; border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; }
.codebox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.codebox .code { font-size: 20px; }
.codebox small { color: var(--muted); font-size: 12px; flex-basis: 100%; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); }
.field { display: grid; gap: 6px; }
.field > label, .field > .lab { font-size: 13px; font-weight: 700; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
input[type="text"], textarea, select { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 10px; }
textarea { resize: vertical; min-height: 60px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.err { color: var(--danger); font-size: 13px; }
.pad { padding: 22px; display: grid; gap: 16px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.drop.over { border-color: var(--accent); background: var(--surface-2); }
.queue { display: grid; gap: 8px; max-height: 44vh; overflow-y: auto; }
.qrow { display: grid; grid-template-columns: 56px 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg); border-radius: 12px; padding: 6px; }
.qrow img { width: 56px; height: 56px; object-fit: contain; background: var(--sheet); border-radius: 6px; }
.qrow .code { font-size: 12px; }
.qrow .st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.qrow .st.ok { color: var(--accent); font-weight: 700; }
.qrow .st.ng { color: var(--danger); }
.qrow button { border: 0; background: none; color: var(--muted); font-size: 18px; }
@media (max-width: 760px) {
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  dialog.narrow { width: 100vw; }
  .two { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .qrow .code { grid-column: 2; grid-row: 2; }
  .qrow img { width: 48px; height: 48px; grid-row: span 2; }
}
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 50; }
.adminbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--surface); border: 2px solid var(--accent-soft); color: var(--fg); }
.adminbar .pending { color: var(--accent); }
.badge.num { font-size: 15px; padding: 2px 10px; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: 14px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
a.btn { text-decoration: none; }
.dupsets { display: grid; gap: 14px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.dupset { border: 2px dashed var(--accent-soft); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 8px; }
.duphead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; font-size: 12px; }
.dupitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dupitem { border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 0 0 6px; display: grid; gap: 2px; text-align: left; overflow: hidden; opacity: .6; }
.dupitem > span { padding: 0 8px; }
.dupitem.keep { border-color: var(--accent); opacity: 1; box-shadow: var(--shadow); }
.dupitem .tag { font-size: 12px; font-weight: 700; color: var(--muted); }
.dupitem.keep .tag { color: var(--accent); }
.dupitem .thumb::before { content: none; }
.dupfoot { position: sticky; bottom: 0; background: var(--surface); padding-top: 8px; }
.pick { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent-soft); background: var(--surface); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; pointer-events: none; }
.cell.picked .pick { background: var(--danger); border-color: var(--danger); }
.cell.picked .card { border-color: var(--danger); opacity: .75; }
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--accent); border-radius: 24px; padding: 10px 16px; box-shadow: var(--shadow); width: max-content; max-width: calc(100vw - 32px); font-size: 13px; }
.btn.line { background: #06c755; color: #ffffff; }
.btn.line::before { content: "LINE"; font-size: 10px; font-weight: 700; background: #ffffff; color: #06c755; border-radius: 6px; padding: 1px 5px; margin-right: 2px; }

/* 透かし（お客様画面） */
body.wmon .thumb::after, body.wmon .big::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22230%22%20height%3D%22130%22%3E%3Cg%20transform%3D%22rotate%28-24%20115%2065%29%22%20font-family%3D%22sans-serif%22%20font-size%3D%2217%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%3E%3Ctext%20x%3D%22115%22%20y%3D%2260%22%20fill%3D%22%23f0739c%22%20fill-opacity%3D%22.32%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%22.6%22%3E%E3%83%95%E3%82%A9%E3%83%83%E3%82%AF%E3%82%B9%E3%83%9F%E3%83%9F%3C/text%3E%3Ctext%20x%3D%22115%22%20y%3D%2280%22%20font-size%3D%229%22%20fill%3D%22%23f0739c%22%20fill-opacity%3D%22.3%22%3EFOXMIMI%20SAMPLE%3C/text%3E%3C/g%3E%3C/svg%3E"); background-size: 230px 130px; }
body.wmon .thumb.loaded::after { content: ""; }
.notice { margin: 0; font-size: 12px; color: var(--muted); }
.foot { padding-block: 24px 40px; font-size: 12px; color: var(--muted); text-align: center; }
.badge { z-index: 2; }
/* キャラクター */
header.top { position: relative; }
.headright { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mascot { width: clamp(120px, 15vw, 180px); height: auto; filter: drop-shadow(0 8px 12px rgba(240, 115, 156, .22)); }
.mascot-sm { width: 110px; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
}
@media (max-width: 640px) {
  header.top > div:first-child { padding-right: 92px; }
  .headright { position: static; }
  .mascot { position: absolute; top: 14px; right: max(12px, env(safe-area-inset-right, 0px)); width: 86px; }
}
@media (min-width: 641px) {
  header.top { flex-wrap: nowrap; align-items: center; }
  header.top > div:first-child { flex: 1 1 auto; min-width: 0; }
  .headright { flex: 0 0 auto; }
}
/* スマホは横2列 */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 14px; border-width: 1.5px; }
  .meta { padding: 7px 9px 9px; gap: 1px; }
  .meta .name { font-size: 12px; }
  .meta .g { display: none; }
  .code { font-size: 12px; }
  .cdots { gap: 2px; }
  .cdots i { width: 9px; height: 9px; }
  .fav, .pick { width: 30px; height: 30px; top: 6px; right: 6px; font-size: 15px; }
  .badge { top: 6px; left: 6px; font-size: 10px; padding: 0 7px; }
  .badge.num { font-size: 13px; padding: 1px 8px; }
}
/* 品番検索 */
.qsearch { position: relative; flex: 0 1 200px; min-width: 150px; }
.qsearch input { width: 100%; border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px 6px 32px; font-size: 14px; }
.qsearch input:focus { border-color: var(--accent); outline: none; }
.qsearch svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
/* 似ているデザイン */
.sims { display: grid; gap: 8px; border-top: 2px dashed var(--accent-soft); padding-top: 12px; }
.sims h3 { margin: 0; font-size: 15px; }
.simgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.simcard { border: 2px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; padding: 0 0 4px; display: grid; gap: 2px; text-align: left; }
.simcard .code { padding: 0 8px; font-size: 12px; }
.simcard .thumb::before { content: none; }
.backbtn { justify-self: center; margin-top: 4px; }
/* スマホ：閉じるボタンを常に右上に */
@media (max-width: 760px) {
  dialog .x { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); z-index: 30; width: 42px; height: 42px; font-size: 22px; background: var(--surface); border: 2px solid var(--accent-soft); box-shadow: var(--shadow); }
  .simgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qsearch { flex: 1 1 100%; }
}
.badge.pop { background: var(--hi); color: var(--hi-fg); }
.tab[data-genre="popular"] { color: #e0a100; }
.tab[data-genre="popular"][aria-selected="true"] { background: var(--hi); color: var(--hi-fg); }
/* 有料オプション：グリッター */
.optsec { display: grid; gap: 8px; border-top: 2px dashed var(--accent-soft); padding-top: 12px; }
.optsec h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.optsec .hint { margin: 0; }
.paid { background: var(--hi); color: var(--hi-fg); font-size: 11px; padding: 2px 10px; border-radius: 999px; }
.gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.glbtn { border: 2px solid var(--line); background: var(--surface); border-radius: 10px; padding: 3px; display: grid; gap: 2px; justify-items: center; }
.glbtn i { display: block; width: 100%; aspect-ratio: 5 / 4; border-radius: 6px; background-image: url("glitter.jpg"); background-size: 2700% 100%; }
.glbtn span { font-size: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.glbtn[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.glbtn[aria-pressed="true"] span { color: var(--accent); }
.glsel { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }
@media (max-width: 760px) { .gl { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } }
/* サイズ表 */
.sizesec summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sizesec summary::-webkit-details-marker { display: none; }
.sizesec > details > summary h3::after { content: " ＋"; color: var(--accent); }
.sizesec > details[open] > summary h3::after { content: " −"; }
.sizesec .hint { margin: 6px 0; }
.sizewrap { overflow-x: auto; border-radius: 12px; border: 2px solid var(--line); }
.sizetbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.sizetbl th, .sizetbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sizetbl thead th { background: var(--accent); color: var(--accent-fg); position: sticky; top: 0; }
.sizetbl tbody th { background: var(--surface-2); color: var(--accent); }
.sizetbl tbody tr:nth-child(even) td { background: var(--bg); }
.sizeall { margin-top: 8px; }
.sizeall summary { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: underline; }
.sizeall img { margin-top: 8px; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.sharethumb { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; gap: 4px; padding-bottom: 6px; }
.sharethumb .code { padding: 0 10px; }
.sharethumb .thumb::before { content: none; }
/* エンブレム例 */
.origin { background: var(--accent); color: var(--accent-fg); font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.embcopy { margin: 0; font-size: 13px; line-height: 1.8; }
.embcopy b { color: var(--accent); }
.embimg { width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
.emchips { display: flex; flex-wrap: wrap; gap: 6px; }
.emchip { min-width: 38px; border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 13px; color: var(--fg); }
.emchip.orig { border-color: var(--accent); color: var(--accent); }
.emchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
