/* Layout: 抽選券の半券を縦に積んだリスト。左端に締切カウント、右端に応募ボタン。上部に絞り込みを固定 */
:root {
  --paper: #f3f4f7;      /* 背景：わずかに青みのある紙 */
  --card: #ffffff;
  --ink: #161c2e;        /* 文字：紺がかった墨 */
  --ink-2: #545c73;
  --rule: #dfe2ea;
  --red: #c8102e;        /* 抽選の赤（主役の色） */
  --red-soft: #fbe7ea;
  --amber: #a85d00;      /* 締切が迫っている */
  --amber-soft: #fff1dc;
  --navy-soft: #e6e9f2;
  --st-bg: #161c2e; --st-fg: #ffffff; --sh-bg: #2f7a4f; --seg-on: #ffffff;   /* 店頭受取のラベル */
  --done: #2f7a4f;
  --font-display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10131c; --card: #181c28; --ink: #eceef5; --ink-2: #a3aac0; --rule: #2a3043;
    --red: #ff5a6e; --red-soft: #3a1820; --amber: #ffb547; --amber-soft: #3a2a12; --navy-soft: #232a3d; --done: #5cc78a; --st-bg: #3d4a6b; --st-fg: #ffffff; --sh-bg: #23683f; --seg-on: #3d4a6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10131c; --card: #181c28; --ink: #eceef5; --ink-2: #a3aac0; --rule: #2a3043;
  --red: #ff5a6e; --red-soft: #3a1820; --amber: #ffb547; --amber-soft: #3a2a12; --navy-soft: #232a3d; --done: #5cc78a; --st-bg: #3d4a6b; --st-fg: #ffffff; --sh-bg: #23683f; --seg-on: #3d4a6b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--card); }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ヘッダー */
header.top { background: var(--card); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 6px; flex-wrap: wrap; }
.home { text-decoration: none; }
/* ロゴ：「抽選」を赤い半券（左右の切り欠き＋切り取り線）に。字体は Dela Gothic One */
.logo { display: inline-flex; flex-direction: column; gap: 4px; color: var(--ink); }
.logo small { font-family: var(--font-num); font-size: 9px; font-weight: 600; letter-spacing: .22em; color: var(--ink-2); line-height: 1; }
.logo .w { display: flex; align-items: center; font-family: "Dela Gothic One", "Hiragino Sans", "Noto Sans JP", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: -.01em; line-height: 1; }
.logo .t { position: relative; margin: 0 5px; background: var(--red); color: #fff; padding: 5px 13px 6px 11px; border-radius: 4px;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.logo .t::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 7px; border-right: 1.5px dashed rgb(255 255 255 / .55); }
.lead { margin-block: 18px 0; display: grid; gap: 6px; }
.lead h1 { font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; font-size: 22px; line-height: 1.35; margin: 0; text-wrap: balance; }
.about { margin: 8px 0 18px; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.about h2 { margin: 0; font-size: 14px; color: var(--ink); }
.about p { margin: 0; }
.crumbs { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--ink-2); display: inline-block; padding: 6px 0; }
.lead p.summary { font-size: 13px; color: var(--ink-2); }
.pre { padding-left: 18px; font-size: 13px; } .list h2 { font-size: 15px; margin: 12px 0 4px; }
.lead p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 65ch; }
.st-link { color: inherit; text-decoration: none; }
.st-link:hover { text-decoration: underline; }
.store-dir { display: grid; gap: 14px; margin-block: 8px 18px; }
.store-dir section { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.store-dir h2 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.store-dir h2 small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.store-dir ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.store-dir a { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: 13px; color: var(--ink); }
.store-dir a span { font-family: var(--font-num); font-size: 11px; color: var(--red); }
.store-dir a.zero span { color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.links a { color: var(--ink-2); }
.links b { font-weight: 700; color: var(--ink); }
.aff { font-size: 13px; }
/* 広告枠（PR）：商品カード */
.ad { margin-top: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgb(22 28 46 / .05); }
.ad-top { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--rule);
  background: linear-gradient(90deg, var(--red-soft), transparent 70%); }
.ad-pr { font-family: var(--font-num); font-size: 10px; letter-spacing: .08em; color: var(--card); background: var(--ink-2); border-radius: 3px; padding: 1px 5px; }
.ad-main { display: flex; gap: 14px; padding: 14px; align-items: center; }
.ad-img { flex: none; width: 92px; height: 92px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.ad-img img { width: 100%; height: 100%; object-fit: contain; }
.ad-img .ph { color: var(--ink-2); opacity: .5; }
.ad-info { min-width: 0; flex: 1; display: grid; gap: 2px; }
.ad-info small { font-size: 11px; color: var(--ink-2); }
.ad-info b { font-size: 17px; line-height: 1.3; }
.ad-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ad-btns a { text-align: center; text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 9px 4px; white-space: nowrap; }
.b-rak { background: #bf0000; color: #fff; }
.b-amz { background: #ffd814; color: #0f1111; border: 1px solid #fcd200; }
.b-ymd { background: #e60012; color: #fff; }
.ad-btns a:only-child { grid-column: 1 / -1; }
.ad-sup { padding: 0 14px 14px; }
.ad-sup p { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ad-sup div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ad-tiles { padding-top: 14px; }
.ad-tiles div { grid-template-columns: repeat(4, 1fr); }
.ad-tiles a span { font-size: 11px; letter-spacing: -.04em; white-space: nowrap; }
.ad-sup a { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 700;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.ad-sup a svg { color: var(--red); }
.ad-sup a:hover, .ad-btns a:hover { filter: brightness(1.05); }
/* 商品が横に流れる広告 */
.flow-wrap { overflow: hidden; padding: 12px 0 14px; -webkit-mask: linear-gradient(90deg, #0000, #000 16px, #000 calc(100% - 16px), #0000); mask: linear-gradient(90deg, #0000, #000 16px, #000 calc(100% - 16px), #0000); }
.flow-track { display: flex; width: max-content; animation: flow var(--sec, 40s) linear infinite; }
.flow-dup { display: contents; }
.flow-wrap:hover .flow-track, .flow-wrap:active .flow-track, .flow-wrap:focus-within .flow-track { animation-play-state: paused; }
@keyframes flow { to { transform: translateX(-50%); } }
.fi { flex: none; width: 128px; margin-left: 10px; display: grid; gap: 3px; text-decoration: none; color: var(--ink); }
.fi-img { width: 128px; height: 128px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.fi-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.fi:hover .fi-img img { transform: scale(1.04); }
.fi small { font-size: 10px; color: var(--ink-2); margin-top: 3px; }
.fi b { font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
.fi em { font-style: normal; font-size: 11px; font-weight: 700; color: #bf0000; }
@media (prefers-reduced-motion: reduce) {
  .flow-wrap { overflow-x: auto; -webkit-mask: none; mask: none; }
  .flow-track { animation: none; }
  .flow-dup { display: none; }
}
.ad-sup a small { font-size: 9px; color: var(--ink-2); font-weight: 500; line-height: 1; margin-top: 2px; }
.ad-sup a strong { font-family: var(--font-num); font-size: 13px; color: #bf0000; line-height: 1.1; }
.ad p.ad-note { margin: -6px 14px 10px; font-size: 10px; line-height: 1.4; color: var(--ink-2); }
.ad-amz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 14px 14px; font-size: 12px; }
.ad-amz b { color: var(--ink-2); font-size: 11px; }
.ad-amz a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: #f0c14b; text-underline-offset: 3px; }
.ad-more { display: block; text-align: center; font-size: 12px; font-weight: 700; color: #bf0000; text-decoration: none; padding: 0 14px 14px; }
.aff a { color: var(--red); font-weight: 700; }
.pre { display: grid; gap: 6px; }
.pre li { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; list-style: none; }
.brand p { margin: 0; color: var(--ink-2); font-size: 12px; }
.sample { margin: 0 0 8px; font-size: 12px; color: var(--amber); background: var(--amber-soft); padding: 4px 10px; border-radius: 6px; display: inline-block; }
nav.games { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }  /* 全部のタブを横スクロールなしで並べる */
nav.games button { min-width: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-2); padding: 10px 4px 12px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; text-align: center; }
@media (max-width: 480px) {
  nav.games button { font-size: 12.5px; letter-spacing: -0.02em; padding: 8px 2px 9px; line-height: 1.25; }
  nav.games .n { display: block; margin-left: 0; font-size: 11px; }  /* 件数は名前の下に */
}
nav.games button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
nav.games .n { font-family: var(--font-num); font-size: 12px; margin-left: 4px; color: var(--ink-2); }

/* サマリー */
/* 受付中〜弾の切り替えをまとめる色付きの箱 */
/* 更新情報（5行で流れる） */
.news { margin-top: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.news-h { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; font-size: 12px; border-bottom: 1px solid var(--rule); background: var(--navy-soft); }
.news-h b { font-size: 12px; } .news-h span { color: var(--ink-2); font-size: 11px; }
.news-win { --row: 30px; height: calc(var(--row) * 5); overflow: hidden; }
.news.still .news-win { height: auto; }
#news-list { list-style: none; margin: 0; padding: 0; will-change: transform; }
#news-list li { height: var(--row); border-bottom: 1px dashed var(--rule); }
#news-list a { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; text-decoration: none; color: var(--ink); font-size: 12.5px; }
#news-list i { flex: none; font-style: normal; font-size: 11px; font-weight: 700; min-width: 44px; text-align: center; border-radius: 4px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
#news-list .add i { background: var(--red); color: #fff; }
#news-list .end i { background: var(--amber); color: #fff; }
#news-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#news-list em { font-style: normal; color: var(--red); font-weight: 700; }

/* 締切間近・新着（横スワイプ） */
.hot { margin-top: 14px; }
.hot-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hot-b { min-width: 0; }
.hot-b h2 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hot-b h2 span { font-family: var(--font-num); font-size: 11px; font-weight: 600; color: var(--card); background: var(--ink-2); border-radius: 999px; padding: 1px 7px; }
.hot-b.soon h2 span { background: var(--red); }
.hot-b.fresh .hc::before { background: var(--red); }
.hot-b.soon .hc::before { background: var(--amber); }
.hot-h small { font-size: 11px; color: var(--ink-2); }
.hot-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.hot-row::-webkit-scrollbar { display: none; }
.hc { flex: none; width: 168px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; position: relative; }
.hc::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rule); }
.hc-top { display: flex; align-items: center; gap: 6px; }
.hc-top.soon ~ *, .hc-top.soon { }
.hc-cd { font-family: var(--font-num); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hc-top.soon .hc-cd { color: var(--red); }
.hc-top.near .hc-cd { color: var(--amber); }
.hc .nw { font-size: 10px; background: var(--red); color: #fff; border-radius: 3px; padding: 0 5px; }
.hc-s { font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hc-m { display: flex; gap: 6px; align-items: flex-start; min-width: 0; } .hc-t { display: grid; gap: 2px; min-width: 0; }
.hc-img { position: relative; flex: none; width: 46px; height: 46px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--rule); cursor: pointer; }
.hc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hc-p { font-size: 12px; color: var(--ink-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-pr { font-size: 10px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; margin-right: 4px; }
.hc-f { display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.hc-f i { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 1px 5px; color: #fff; }
.hc-f i.st { background: var(--st-bg); color: var(--st-fg); } .hc-f i.sh { background: var(--sh-bg); }
.hc-f em { font-style: normal; font-size: 10px; color: var(--ink-2); }
.supply-slot:empty { display: none; }
.supply-slot .ad { margin-top: 14px; }
.panel { margin-top: 16px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, var(--red-soft), var(--navy-soft));
  border: 1px solid var(--rule); box-shadow: 0 1px 2px rgb(22 28 46 / .05); }
.panel .stats { margin-block: 0 10px; background: var(--rule); }
.panel .filters { position: static; background: transparent; border-bottom: 0; padding-block: 0; }
.panel .row.scroll { margin-inline: -12px; padding-inline: 12px; }
.panel .region { margin-top: 10px; }
.panel .series { margin: 10px -12px 0; padding: 2px 12px 2px; scroll-padding-inline: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin-block: 16px 12px; }
.stats div { background: var(--card); padding: 10px 14px; }
.stats b { display: block; font-family: var(--font-num); font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats .hot b { color: var(--red); }
.stats span { font-size: 12px; color: var(--ink-2); }

/* 絞り込み（固定） */
.filters { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); padding-block: 8px; display: grid; gap: 8px; border-bottom: 1px solid var(--rule); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--navy-soft); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.seg button small { display: block; font-size: 10px; font-weight: 500; line-height: 1.1; color: var(--ink-2); }
.seg button[aria-pressed="true"] small { color: inherit; opacity: .75; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
select, input[type="search"] { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; min-width: 0; }
input[type="search"] { flex: 1 1 160px; }
.row.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.row.scroll::-webkit-scrollbar { display: none; }
.toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 4px 12px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--red); margin: 0; }
.sortbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.sortbar #list-n { font-size: 13px; color: var(--ink-2); }
.sortbar #list-n b { color: var(--ink); font-family: var(--font-num); font-size: 15px; margin-right: 2px; }
.sortbar .sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 4px 6px 4px 12px; }
.sortbar .sort span { color: var(--ink-2); font-size: 12px; }
.sortbar .sort select { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; padding: 0 2px; cursor: pointer; }
.toggle:has(input:checked) { border-color: var(--ink); }
.hint { font-size: 12px; color: var(--ink-2); }

/* 店頭抽選：地方 → 都道府県の2段 */
.region { margin-top: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 0 12px; }
.region .lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 12px 6px; display: flex; justify-content: space-between; }
.region .lbl small { font-weight: 500; }
.r-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; scroll-padding-inline: 12px; }
.r-row::-webkit-scrollbar { display: none; }
.r-row button { flex: none; font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  border-radius: 8px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.r-row button .c { font-family: var(--font-num); font-size: 11px; color: var(--ink-2); }
.r-row button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.r-row button[aria-pressed="true"] .c { color: inherit; opacity: .7; }
.r-row button:disabled { opacity: .4; cursor: default; }
.r-pref { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.r-row.r-reg { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
.r-row.r-reg button { justify-content: center; padding: 8px 2px; font-size: 12px; letter-spacing: -.03em; white-space: nowrap; flex-direction: column; gap: 1px; line-height: 1.2; }
.r-row.r-pref { flex-wrap: wrap; overflow: visible; }
.r-pref button { background: var(--card); border-radius: 999px; font-weight: 500; padding: 5px 11px; }
.r-pref button.all { font-weight: 700; }

/* 弾の切り替え（横スワイプ） */
.series { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 2px; padding: 2px 16px 6px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; }
.series::-webkit-scrollbar { display: none; }
.series { display: block; overflow: visible; scroll-snap-type: none; margin: 12px 0 2px; padding: 0; }
.ser-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.series .ser-bar button.ser-open { gap: 8px; } .series .ser-open i { font-style: normal; font-size: 10px; color: var(--ink-2); }
.series .ser-open b { font-weight: 800; }
.series .ser-clear { font-weight: 500 !important; color: var(--ink-2) !important; }
.shop-big { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-big .lg { flex-basis: 100%; font-size: 11.5px; color: var(--ink-2); }
.ser-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.panel .series { margin: 10px 0 0; padding: 0; }
.series button { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 700;
  border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 8px 7px 14px; cursor: pointer;
  box-shadow: 0 1px 0 rgb(22 28 46 / .04); }
.series button[data-s=""] { padding-right: 14px; }
.series button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.series .c { font-family: var(--font-num); font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--navy-soft); border-radius: 999px; padding: 1px 7px; min-width: 22px; text-align: center; }
.series button[aria-pressed="true"] .c { background: rgb(255 255 255 / .16); color: inherit; }

/* 一覧：抽選券 */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 12px 32px; }
.group-h { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin: 14px 0 0; display: flex; align-items: baseline; gap: 8px; }
.group-h small { font-family: var(--font-num); font-size: 12px; color: var(--ink-2); }
.ticket { display: grid; grid-template-columns: 112px 1fr auto; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; position: relative; }
.ticket.applied { opacity: .55; }
.stub { padding: 12px 10px; border-right: 2px dashed var(--rule); display: grid; align-content: center; gap: 2px; text-align: center; position: relative; }
.stub::before, .stub::after { content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); }
.stub::before { top: -9px; clip-path: inset(50% 0 0 0); }
.stub::after { bottom: -9px; clip-path: inset(0 0 50% 0); }
.cd { font-family: var(--font-num); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cd-l { font-size: 11px; color: var(--ink-2); }
.dl { font-family: var(--font-num); font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.soon .cd { color: var(--red); }
.near .cd { color: var(--amber); }
.body { padding: 12px 14px; min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.info { min-width: 0; display: grid; gap: 4px; flex: 1; }
.body > .thumb { align-self: center; }  /* 1商品の画像はカードの上下まん中に */
.thumb { flex: none; width: var(--tw, 120px); aspect-ratio: 1; border-radius: 10px; background: var(--navy-soft); overflow: hidden; display: grid; place-items: center; }
/* 複数商品の抽選：4枚までを 〇〇／〇〇 の2×2で並べる */
.thumbs { --tw: 120px; flex: none; width: var(--tw); height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: center; }
.thumbs .thumb { width: auto; border-radius: 7px; }
.thumbs.n2 { --tw: 104px; grid-template-columns: 1fr; gap: 6px; }  /* パソコン：2商品は縦に2つ大きめに */
.thumbs .thumb .pr { font-size: 8px; padding: 1px 3px; }
.thumbs .thumb:not(:last-child) .pr { display: none; }
.thumb { position: relative; background: #fff; border: 1px solid var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .pr { position: absolute; right: 0; bottom: 0; font-size: 9px; font-weight: 700; line-height: 1; color: #fff; background: #bf0000; padding: 2px 4px; border-top-left-radius: 4px; }
.thumb .ph { font-family: var(--font-body); font-weight: 700; font-size: 11px; line-height: 1.25; color: var(--ink-2); text-align: center; padding: 6px; overflow-wrap: anywhere; }
.flow { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.flow i { font-style: normal; opacity: .6; }
.flow span { border-radius: 4px; padding: 1px 6px; background: var(--navy-soft); }
.flow .st { background: var(--st-bg); color: var(--st-fg); }
.flow .sh { background: var(--sh-bg); color: #fff; }
.req { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; border: 1px solid transparent; white-space: nowrap; }
.pill.need { background: var(--amber-soft); color: var(--amber); }
.pill.ok { background: transparent; color: var(--done); border-color: var(--done); }
.pill.unk { background: transparent; color: var(--ink-2); border-color: var(--rule); font-weight: 500; }
.store { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.badge.new { background: var(--red); color: var(--card); }
.rec-note { margin: 6px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--ink); font-size: 13px; line-height: 1.6; }
.rec-note b { color: var(--amber); margin-right: 6px; }
.badge.gm { background: var(--navy-soft); color: var(--ink); }
.badge.rec { background: var(--amber-soft); color: var(--amber); }
.ticket.feed .pr-note { font-family: var(--font-num); font-size: 10px; letter-spacing: .06em; color: var(--ink-2); }
.ticket.feed .cd { color: var(--ink-2); font-size: 15px; }
.go.amz { background: #ffd814; color: #0f1111; border: 1px solid #fcd200; }
.badge.pr { background: var(--navy-soft); color: var(--ink-2); font-family: var(--font-num); }
.ticket.invite { grid-template-columns: 112px minmax(0, 1fr); border-color: #f0c14b; background: linear-gradient(180deg, rgb(255 190 20 / .10), var(--card) 140px); }
.ticket.invite .cd { color: #b06d00; }
.inv { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 6px; }
.inv a { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700;
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; }
.inv a span { min-width: 0; line-height: 1.35; }
.inv a span b { display: block; font-weight: 700; }
.inv a span small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.inv em { flex: none; font-style: normal; font-size: 12px; background: #ffd814; border: 1px solid #fcd200; color: #0f1111; border-radius: 999px; padding: 3px 10px; }
.ticket.invite .info, .ticket.invite .body { min-width: 0; }
.ticket.invite .info, .inv { grid-template-columns: minmax(0, 1fr); }
.inv .more summary { cursor: pointer; list-style: none; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 6px; border: 1px dashed var(--rule); border-radius: 8px; }
.inv .more summary::-webkit-details-marker { display: none; }
.inv .more details[open] summary { margin-bottom: 6px; }
.badge.area { background: var(--navy-soft); color: var(--ink); }
.product { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; border: 1px solid var(--rule); border-radius: 4px; padding: 0 6px; color: var(--ink-2); }
.cond { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.acts { padding: 12px 14px 12px 0; display: grid; gap: 6px; align-content: center; justify-items: stretch; }
.go { display: inline-block; text-align: center; text-decoration: none; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.go:hover { filter: brightness(1.08); }
/* 応募ボタン：ロゴの「抽選」と同じ抽選券の形（左右に切り欠き） */
.go.tk { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 4px; padding: 9px 14px 9px 16px; font-weight: 900; letter-spacing: .04em;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.go.tk i { font-style: normal; font-weight: 700; opacity: .85; }
.mini { display: flex; gap: 6px; justify-content: center; }
.mini a, .mini button { font: inherit; font-size: 12px; color: var(--ink-2); background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 3px 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.mini button[aria-pressed="true"] { color: var(--done); border-color: var(--done); font-weight: 700; }
.sinfo, .faq { margin: 18px 0 0; }
.souba { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px 10px; margin: 8px 0 10px; }
.sb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sb-h b { font-size: 15px; } .sb-h small { color: var(--ink-2); font-size: 12px; }
.sb-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.sb-now em { display: block; font-style: normal; font-family: var(--font-num); font-weight: 800; font-size: 30px; line-height: 1.1; }
.sb-now span { font-size: 13px; color: var(--ink-2); } .sb-now span b { color: var(--red); font-size: 15px; }
.spark { width: 300px; max-width: 100%; height: 64px; display: block; }
.sb-chart { position: relative; margin: 8px 0 10px; padding: 18px 0 0; }
.sb-chart svg { display: block; width: 100%; height: var(--h, 170px); }
@media (min-width: 720px) { .sb-chart svg { height: calc(var(--h, 170px) + 50px); } }
.sb-hi, .sb-lo { position: absolute; left: 0; font-size: 11px; color: var(--ink-2); font-family: var(--font-num); background: var(--card); padding: 0 4px 0 0; }
.sb-hi { top: 0; } .sb-lo { top: 0; left: auto; right: 0; padding: 0 0 0 4px; }  /* 安値もグラフの上に出して線と重ならないように */
.sb-plot { position: relative; }
.sb-dot { position: absolute; right: -4px; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 3px var(--card); }
.sb-ax { position: relative; height: 16px; font-size: 11px; color: var(--ink-2); font-family: var(--font-num); margin-top: 4px; }
.sb-ax span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.sb-ax span:first-child { transform: none; } .sb-ax span:last-child { transform: translateX(-100%); }
.sb-plot { touch-action: pan-y; cursor: crosshair; }
.sb-last { position: absolute; right: 10px; transform: translateY(-140%); font-size: 12px; font-weight: 800; font-family: var(--font-num); background: var(--card); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.sb-vl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--ink-2); pointer-events: none; }
.sb-pt { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--card); pointer-events: none; }
.sb-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--ink, #111827); color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font-num); padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2; }
.sb-vl[hidden], .sb-pt[hidden], .sb-tip[hidden] { display: none; }
.sb-leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.sb-leg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.sb-leg i.dash { height: 0; border-top: 2px dashed; border-radius: 0; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; margin-top: 6px; }
.sb-grid div { background: var(--navy-soft); border-radius: 8px; padding: 6px 10px; display: grid; gap: 1px; }
.sb-grid span { font-size: 11px; color: var(--ink-2); } .sb-grid b { font-size: 14px; font-family: var(--font-num); }
.up { color: var(--red); } .down { color: #2563eb; } .flat { color: var(--ink-2); }
.sb-us { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.sb-note { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; max-width: none; } .sb-note a { color: var(--red); }
.cd-psa { margin: 2px 0; font-size: 12px; display: flex; gap: 6px; align-items: baseline; } .cd-psa span { background: #111827; color: #facc15; font-weight: 800; font-size: 10.5px; border-radius: 4px; padding: 0 5px; } .cd-psa b { font-family: var(--font-num); font-size: 14px; } .cd-psa small { color: var(--ink-2); }
.cd-spark { width: 160px; max-width: 100%; height: 40px; margin: 4px 0; }
.cards { margin: 14px 0 10px; } .cards h2 { font-size: 17px; margin: 0 0 8px; }
.cards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .cards ul { grid-template-columns: 1fr 1fr; } }
.cards li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px; min-width: 0; }
.cd-img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; }
.cd-img img { width: 96px; height: 96px; object-fit: contain; }
.cd-noimg { width: 40px; height: 56px; border: 2px dashed var(--rule); border-radius: 4px; }
.cd-body { min-width: 0; flex: 1; } .cd-body > b { display: block; font-size: 14px; line-height: 1.4; }
.cd-body > small { display: block; font-size: 11px; color: var(--ink-2); }
.cd-p { margin: 4px 0 0; } .cd-p em { font-style: normal; font-family: var(--font-num); font-weight: 700; font-size: 18px; } .cd-p small { margin-left: 6px; font-size: 11px; color: var(--ink-2); }
.cd-d { margin: 2px 0 0; font-size: 11.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); }
.cd-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cd-links a { font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-decoration: none; border: 1px solid var(--rule); color: var(--ink); }
.cd-links a.cd-rk { background: #bf0000; border-color: #bf0000; color: #fff; } .cd-links a.cd-mc { background: #ff333f; border-color: #ff333f; color: #fff; } .cd-links a.cd-az { background: #ff9900; border-color: #ff9900; color: #111; }
.sb-list { margin-top: 14px; } .sb-list h2 { font-size: 17px; margin: 0 0 6px; }
.sb-list { min-width: 0; max-width: 100%; }
.cal-list { list-style: none; margin: 0 0 8px; padding: 0; }
.cal-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 9px 0; border-top: 1px solid var(--rule); }
.cal-list li:first-child { border-top: 0; } .cal-list time { font-family: var(--font-num); font-weight: 800; min-width: 5.5em; }
.cal-t { font-weight: 800; color: var(--ink); } .cal-list small { flex-basis: 100%; color: var(--ink-2); font-size: 12px; padding-left: 5.9em; }
.cal-list time .cal-rl { padding: 0 0 0 3px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.cal-head { margin: 18px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--paper, #f8fafc); border: 1px solid var(--rule); }
.cal-head b { font-size: 17px; } .cal-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.h1-tag { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 13px; font-weight: 800; color: #fff; background: #f59e0b; border-radius: 6px; padding: 3px 9px; letter-spacing: 0; }
.cal-new { font-size: 11px; font-weight: 800; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 6px; }
.cal-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--red); } .cal-n.none { color: var(--ink-2); font-weight: 500; }
.cal-buy { flex-basis: 100%; padding-left: 5.9em; font-size: 12px; color: var(--ink-2); } .cal-buy a { margin-left: .6em; font-weight: 700; color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) { .cal-buy { padding-left: 0; } }
@media (max-width: 600px) { .cal-list small { padding-left: 0; } .cal-n { margin-left: 0; } }
.calsub { border: 2px solid var(--red); border-radius: 10px; padding: 12px 14px; margin: 4px 0 18px; background: var(--card); }
.calsub h2 { margin-top: 0; } .calsub h3 { margin: 14px 0 4px; font-size: 15px; } .calsub p { margin: 6px 0; }
.calsub .btn { display: inline-block; margin: 6px 6px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; background: var(--red); color: #fff; }
.calsub .btn[data-k="g"] { background: #1a73e8; } .calsub select { font-size: 14px; padding: 4px; max-width: 100%; }
.ml-link { grid-column: 1 / -1; display: block; background: var(--card); text-align: center; font-size: 13px; font-weight: 700; padding: 8px; color: var(--red); text-decoration: none; border-top: 1px solid var(--rule); }
.ser-areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.ser-areas b { flex-basis: 100%; font-size: 13px; } .ser-areas a { font-size: 13px; text-decoration: none; color: var(--ink); background: var(--navy-soft); border-radius: 999px; padding: 3px 10px; }
.ser-areas a span { margin-left: 4px; font-family: var(--font-num); font-weight: 700; color: var(--red); }
.none-area { margin: 0 0 10px; padding: 12px 14px; background: var(--card); border: 1px dashed var(--rule); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.none-area b { display: block; color: var(--ink); margin-bottom: 2px; }
.hist { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.hist h2 { font-size: 16px; margin: 0 0 8px; } .hist h2 small { font-size: 12px; color: var(--ink-2); font-weight: 500; margin-left: 8px; }
.hist ul { list-style: none; margin: 0; padding: 0; } .hist li { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.hist li:first-child { border-top: 0; } .hist li > small { float: right; } .hist ul.cg li { line-height: 1.7; } .hist time { font-family: var(--font-num); font-weight: 700; margin-right: 6px; color: var(--ink-2); }
.hist li small { margin-left: 8px; font-size: 11px; color: var(--ink-2); } .hist .note { font-size: 11.5px; color: var(--ink-2); margin: 8px 0 0; }
.hist .ann { font-size: 13px; margin: 0 0 8px; padding: 6px 10px; background: var(--paper); border-radius: 8px; }
.kekka h3 { font-size: 14px; margin: 14px 0 6px; } .kk-list { list-style: none; margin: 0; padding: 0 !important; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.kk-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 12px; border-top: 1px solid var(--rule); } .kk-list li:first-child { border-top: 0; }
.kk-list b { font-size: 14.5px; } .kk-list b a { text-decoration: none; } .kk-s { font-size: 13px; color: var(--ink-2); } .kk-list small { flex-basis: 100%; font-size: 12px; color: var(--ink-2); }
.kk-g { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: #fef3c7; color: #92400e; } .kk-g.kk-onepiece { background: #fee2e2; color: #991b1b; } .kk-none { color: var(--ink-2); font-size: 13px; }
.sb-scroll { overflow-x: auto; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.sb-list table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.sb-list th, .sb-list td { padding: 8px 10px; border-top: 1px solid var(--rule); text-align: right; vertical-align: middle; white-space: nowrap; }
.sb-list thead th { border-top: 0; font-size: 11px; color: var(--ink-2); background: var(--navy-soft); }
.sb-list tbody th { text-align: left; white-space: normal; min-width: 150px; font-weight: 700; }
.sb-list tbody th a { color: var(--ink); } .sb-list small { display: block; font-size: 11px; color: var(--ink-2); font-weight: 500; }
.sb-list small.up { color: var(--red); } .sb-list small.down { color: #2563eb; } .sb-list small.lot { color: var(--red); }
.sb-list td b { font-family: var(--font-num); font-size: 15px; } .sb-list td b.pct { font-size: 13px; }
.sb-buy { display: flex; gap: 4px; margin-top: 4px; } .sb-buy a { font-size: 11px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.sb-buy a.sb-rk { background: #bf0000; color: #fff; } .sb-buy a.sb-az { background: #ff9900; color: #111; }
.band.b-pre { background: #0284c7; color: #fff; } .ticket.pre .go.tk { opacity: .85; }
.sb-list a.sb-more { display: block; width: fit-content; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--red); text-decoration: none; border: 1px solid var(--red); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.sb-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 14px 0 0; padding: 4px; background: var(--navy-soft); border-radius: 999px; position: sticky; top: 0; z-index: 3; }
.sb-tabs button { border: 0; background: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--ink-2); padding: 8px; border-radius: 999px; cursor: pointer; }
.sb-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.sb-list[hidden] { display: none; }
.sb-list tbody th { position: relative; }
.sb-list a.sb-li, .sb-list span.sb-li { float: left; width: 56px; height: 56px; margin: 0 10px 4px 0; border-radius: 8px; background: #fff; border: 1px solid var(--rule); overflow: hidden; }
.sb-li img, .sb-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sb-pic { flex: none; width: 84px; height: 84px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); overflow: hidden; }
.sb-main { justify-content: flex-start; }
.souba { scroll-margin-top: 12px; } .sb-list .spark { width: 160px; height: 40px; }
/* スマホ：相場の一覧は横スクロールの表ではなく、商品ごとのカードに */
@media (max-width: 640px) {
  .sb-scroll { overflow: visible; max-width: none; background: none; border: 0; }
  .sb-list table { min-width: 0; display: block; } .sb-list thead { display: none; }
  .sb-list tbody { display: grid; gap: 10px; }
  .sb-list tbody tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
  .sb-list tbody th, .sb-list tbody td { border: 0; padding: 0; text-align: left; white-space: normal; min-width: 0; }
  .sb-list tbody th { grid-column: 1 / -1; }
  .sb-list tbody td::before { content: attr(data-l); display: block; font-size: 10.5px; color: var(--ink-2); font-weight: 500; }
  .sb-list td.sb-p { grid-column: 1 / -1; } .sb-list td.sb-p b { font-size: 22px; }
  .sb-list td.sb-p small { display: inline; margin-left: 6px; }
  .sb-list td.sb-sp { grid-column: 1 / -1; } .sb-list td.sb-sp::before { display: none; }
  .sb-list .spark { width: 100%; height: 44px; }
  .sb-buy { flex-wrap: wrap; }
  .sb-list a.sb-more { display: block; width: auto; text-align: center; margin-top: 8px; padding: 7px; font-size: 13px; }  /* 枠の一番下に大きめのボタン */
}
/* 弾ページの一番上：発売日・定価・相場・受付中 */
.ch-note { margin: 4px 0 6px; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.line-room { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; padding: 10px 12px; border-radius: 12px; background: #04883c; color: #fff; text-decoration: none; }
.line-room > b { flex: none; font-size: 13px; font-weight: 900; background: #fff; color: #04883c; border-radius: 6px; padding: 2px 6px; }
.line-room span { display: grid; gap: 1px; min-width: 0; } .line-room strong { font-size: 14.5px; } .line-room small { font-size: 11.5px; opacity: .9; }
.line-room.off { background: var(--navy-soft); color: var(--ink-2); } .line-room.off > b { color: var(--ink-2); }
.line-rooms { display: grid; gap: 0; margin-top: 8px; } .line-room.main { background: #048b3c; }
.sns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 6px 0 8px; }
.sns a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap; overflow: hidden; }
.sns a b { font-size: 13px; } .sns a small { font-size: 10.5px; font-weight: 600; opacity: .8; }
.sns-x { background: #000; color: #fff; } .sns-line { background: #04883c; color: #fff; }
@media (max-width: 420px) { .sns-x small, .sns-line small { display: none; } .sns a { font-size: 12px; letter-spacing: -0.02em; } }
.ctabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 4px 0 12px; padding: 4px; background: var(--navy-soft); border-radius: 999px; }
.ctabs a { text-align: center; padding: 8px 4px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ctabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.sq[hidden] { display: none; }
.sq { display: block; margin: 10px 0 4px; padding: 10px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); }
.sq-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; }
.sq-h i { font-style: normal; font-size: 12.5px; color: var(--red); }
.sq-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.sq-i { display: grid; gap: 1px; background: var(--navy-soft); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.sq-i small { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-i b { font-family: var(--font-num); font-size: 15px; font-weight: 800; }
.sq-i em { font-style: normal; font-size: 11px; font-weight: 700; } .sq-i em.up { color: var(--red); } .sq-i em.down { color: #2563eb; }
.promo { margin: 0; padding-top: 4px; font-size: 12px; line-height: 1.4; color: var(--ink); text-align: right; }  /* ヘッダーの右上に小さく */
.squick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin: 4px 0 12px; }
.squick > a, .squick > div { display: grid; gap: 1px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; text-decoration: none; color: var(--ink); }
.squick span { font-size: 11px; color: var(--ink-2); } .squick b { font-size: 16px; font-family: var(--font-num); font-weight: 800; }
.squick i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--red); }
.squick > a { border-color: var(--red); }
.guide { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 4px 18px 14px; margin-top: 8px; }
.guide h2 { font-size: 17px; margin: 18px 0 6px; padding-left: 10px; border-left: 4px solid var(--red); }
.guide h3 { font-size: 15px; margin: 14px 0 4px; }
.guide p, .guide li { font-size: 14px; line-height: 1.8; color: var(--ink); max-width: none; }
.guide ul, .guide ol { padding-left: 1.3em; margin: 6px 0; }
.guide .note { font-size: 13px; color: var(--ink-2); }
.guide a { color: var(--red); font-weight: 700; }
.sinfo h2, .faq h2 { font-size: 16px; margin: 0 0 8px; }
.sinfo table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; font-size: 14px; }
.sinfo th, .sinfo td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.sinfo tr:first-child th, .sinfo tr:first-child td { border-top: 0; }
.sinfo th { width: 8.5em; color: var(--ink-2); font-weight: 700; background: var(--navy-soft); white-space: nowrap; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; margin-top: 8px; }
.faq summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 14px; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 14px 12px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.empty { text-align: center; color: var(--ink-2); padding: 40px 16px; background: var(--card); border: 1px dashed var(--rule); border-radius: 10px; }

/* メニュー（ページ下部と、ヘッダーのボタンで開くシート） */
.foot-nav { padding-block: 8px 20px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.menu { display: grid; gap: 22px; }
.m-sec h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; letter-spacing: .02em; }
.m-sec h3::before { content: ""; width: 4px; height: 1em; background: var(--red); border-radius: 2px; align-self: center; }
.m-sec h3 small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.m-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-game { --acc: var(--red); position: relative; display: grid; gap: 2px; padding: 12px 10px 10px; background: var(--card); border: 1px solid var(--rule);
  border-radius: 10px; text-decoration: none; color: var(--ink); overflow: hidden; }
.m-game::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--acc); }
.m-game.g-onepiece { --acc: #1d4ed8; } .m-game.g-dragonball { --acc: #e07800; }
.m-game small { font-family: var(--font-num); font-size: 9px; letter-spacing: .12em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-game b { font-size: 15px; line-height: 1.3; }
.m-game span { font-size: 11px; color: var(--ink-2); }
.m-game em { font-style: normal; font-family: var(--font-num); font-weight: 600; font-size: 18px; color: var(--ink); margin-right: 2px; }
.m-game[aria-current] { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.m-ser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.m-ser li + li { border-top: 1px solid var(--rule); }
@media (min-width: 600px) { .m-ser li + li { border-top: 0; } .m-ser li { border-bottom: 1px solid var(--rule); } }
.m-ser a { display: grid; grid-template-columns: 26px 1fr auto 10px; align-items: center; gap: 8px; padding: 11px 12px; text-decoration: none; color: var(--ink); }
.m-ser a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: rotate(45deg); opacity: .6; }
.m-ser a:hover, .m-ser a[aria-current] { background: var(--navy-soft); }
.m-ser i { font-style: normal; font-family: var(--font-num); font-size: 12px; color: var(--ink-2); }
.m-ser li:nth-child(-n+3) i { color: var(--red); font-weight: 600; }
.m-ser b { font-size: 14px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-ser span { font-family: var(--font-num); font-size: 12px; color: var(--ink-2); background: var(--navy-soft); border-radius: 999px; padding: 1px 8px; }
.m-more { margin-top: 8px; }
.m-more summary { cursor: pointer; list-style: none; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 9px; border: 1px dashed var(--rule); border-radius: 10px; }
.m-more summary::-webkit-details-marker { display: none; }
.m-more[open] summary { margin-bottom: 8px; }
.m-area { display: flex; flex-wrap: wrap; gap: 6px; }
.m-area a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; }
.m-area a span { font-family: var(--font-num); font-size: 11px; color: var(--ink-2); }

/* ヘッダーのメニューボタンとシート */
.brand-r { display: flex; align-items: center; gap: 10px; }
#updated { margin: 0; font-family: var(--font-num); font-size: 12px; color: var(--ink-2); }
#updated::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--done); margin-right: 6px; vertical-align: 1px; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--card);
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px 6px 10px; cursor: pointer; }
.menu-btn svg { display: block; }
dialog.sheet { border: 0; padding: 0; margin: 0 0 0 auto; width: min(420px, 100%); max-width: 100%; height: 100%; max-height: 100%; background: var(--paper); color: var(--ink); }
dialog.sheet::backdrop { background: rgb(10 14 26 / .45); }
.sheet-h { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: var(--card); border-bottom: 1px solid var(--rule); }
.sheet-h b { font-size: 16px; }
.sheet-h button { font: inherit; font-size: 13px; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; color: var(--ink); cursor: pointer; }
.sheet-b { padding: 16px 16px 40px; }
footer { color: var(--ink-2); font-size: 12px; padding-block: 8px 40px; display: grid; gap: 6px; }
@media (max-width: 560px) {
  /* スマホ：締切は上の帯に横並び、本文を横いっぱいに使う */
  .ticket, .ticket.invite { grid-template-columns: minmax(0, 1fr); }
  .stub { border-right: 0; border-bottom: 2px dashed var(--rule); padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 8px; text-align: left; }
  .stub .dl br { display: none; }
  .stub::before, .stub::after { top: auto; bottom: -9px; }
  .stub::before { left: -9px; right: auto; clip-path: inset(0 0 0 50%); }
  .stub::after { right: -9px; clip-path: inset(0 50% 0 0); }
  .stub .dl { margin-left: auto; }
  .acts { grid-column: 1 / -1; padding: 0 12px 12px; grid-template-columns: 1fr auto; align-items: center; border-top: 1px dashed var(--rule); padding-top: 10px; }
  .cd { font-size: 15px; }
  .thumb { --tw: 108px; }
  .thumbs { --tw: 108px; gap: 3px; }
  /* スマホ：上に画像（大きめ・中央）、下に文字を横いっぱいに並べる */
  .body.has-img { display: grid; gap: 10px; }
  .body.has-img > .thumb, .body.has-img > .thumbs { --tw: 168px; justify-self: center; }
  .body.has-img > .thumbs { gap: 4px; height: auto; }
  .body.has-img > .thumbs.n2 { --tw: 236px; grid-template-columns: 1fr 1fr; gap: 4px; }
  .logo .w { font-size: 21px; }
  .lead h1 { font-size: 19px; }
  .stats b { font-size: 18px; }
}
/* 案B：締切の色帯＋応募に必要なものの4マス */
.ticket.tb { display: block; overflow: hidden; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 14px; color: #fff; font-weight: 800; font-size: 14px; }
.band .cd { font-size: inherit; font-weight: 800; color: inherit; margin-left: 4px; }
.band .dl { color: inherit; font-size: 13px; opacity: .95; font-weight: 700; }
.band.b-today { background: #dc2626; } .band.b-tmr { background: #ea8a00; } .band.b-later { background: #64748b; }
.ticket.tb .body { padding: 12px 14px 8px; }
.conds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 14px 10px; }
.conds div { border-radius: 8px; text-align: center; font-size: 11px; line-height: 1.3; padding: 5px 2px; overflow-wrap: anywhere; }
.conds i { display: block; font-style: normal; font-size: 15px; font-weight: 800; }
.conds .ok { background: #ecfdf5; color: #047857; } .conds .ng { background: #fff7ed; color: #c2410c; }
.conds .unk { background: var(--navy-soft); color: var(--ink-2); } .conds .gr { background: var(--navy-soft); color: var(--ink); }
.tb-cond { padding: 0 14px 8px; }
.acts.tb-acts { display: flex; gap: 6px; padding: 0 14px 14px; align-items: stretch; flex-wrap: wrap; border-top: 0; }
.tb-acts .go { flex: 2 1 140px; }
.tb-acts .ap, .tb-acts .mi { flex: 1 1 70px; text-align: center; font: inherit; font-size: 13px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 4px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tb-acts .ap[aria-pressed="true"] { border-color: var(--done); color: var(--done); }
@media (min-width: 561px) { .conds, .acts.tb-acts { padding-left: 146px; max-width: 780px; } .tb-cond { padding-left: 146px; } }
@media (max-width: 560px) { .tb-acts .mi:last-child { display: none; } .ticket.tb .body.has-img { display: flex; } .ticket.tb .body.has-img > .thumb, .ticket.tb .body.has-img > .thumbs { --tw: 88px; justify-self: auto; align-self: flex-start; } .ticket.tb .body.has-img > .thumbs.n2 { --tw: 88px; grid-template-columns: 1fr; } .band { font-size: 13px; } }
/* スマホ：商品が1つの抽選は、写真の横から下へ文字を回り込ませて、写真の下に空白を作らない */
@media (max-width: 560px) { .ticket.tb .body.has-img:has(> .thumb) { display: block; } .ticket.tb .body.has-img > .thumb { float: left; margin: 2px 12px 6px 0; } .ticket.tb .body.has-img:has(> .thumb) > .info { display: block; } .ticket.tb .body.has-img:has(> .thumb) > .info > * { margin-bottom: 4px; } .ticket.tb .body.has-img::after { content: ""; display: block; clear: both; } }
/* スマホ：商品が複数の抽選は、写真を文字の下に横並び（4枚まで） */
@media (max-width: 560px) { .ticket.tb .body.has-img:has(> .thumbs) { flex-direction: column; } .ticket.tb .body.has-img > .thumbs, .ticket.tb .body.has-img > .thumbs.n2 { order: 2; width: 100%; --tw: 100%; grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conds .ok { background: #12301f; color: #5cc78a; } :root:not([data-theme="light"]) .conds .ng { background: #3a2412; color: #ffb547; } }
:root[data-theme="dark"] .conds .ok { background: #12301f; color: #5cc78a; } :root[data-theme="dark"] .conds .ng { background: #3a2412; color: #ffb547; }
@media (prefers-reduced-motion: no-preference) { .ticket { transition: opacity .2s; } }
.hist small.post { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #fff; background: #0a7d4d; border-radius: 4px; padding: 0 5px; }
.cguide { background: #fffbea; border: 1px solid #f3e3a1; border-radius: 12px; padding: 12px 14px; }
.cguide ul { margin: 6px 0 8px 1.2em; } .cguide p { margin: 4px 0; }
table.wr { width: 100%; border-collapse: collapse; background: var(--card, #fff); font-size: 14px; margin: 6px 0 14px; }
table.wr th, table.wr td { border-bottom: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; } table.wr th { font-size: 12px; color: var(--ink-2); }
.ad .ad-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ad.lose { border: 2px solid #f3d9a4; background: #fffaf0; } .lose-sub { margin: 4px 0 8px; font-size: 13px; color: var(--ink-2); }
.lose-l { list-style: none; margin: 0; padding: 0; } .lose-l li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #f0e2c4; }
.lose-l li:first-child { border-top: 0; } .lose-l small { display: block; font-size: 12px; color: var(--ink-2); } .lose-l a { flex: none; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lose-l .b-rakb { background: #bf0000; color: #fff; } .ad-note { font-size: 11px; color: var(--ink-2); margin: 6px 0 0; }
.anchor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; margin: 8px 0 14px; }
.anchor .an-p { display: flex; gap: 14px; font-size: 13px; } .anchor .an-p b { font-size: 16px; }
.anchor .an-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .anchor .an-b a { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.pr-row { font-size: 12px; color: var(--ink-2); margin: 2px 0 4px; font-family: var(--font-num, inherit); }
.anchor .an-st { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; } .anchor .an-st a { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.b-rakb { background: #bf0000; color: #fff !important; }
.thumb { position: relative; } .th-pr { position: absolute; right: 2px; bottom: 2px; font-size: 9px; line-height: 1; padding: 2px 3px; border-radius: 3px; background: rgba(0,0,0,.6); color: #fff; }
.anchor .an-re { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink-2); }
