/* オリパマーケット - v4: 信頼性 × 次世代（データ基盤/フィンテック・ダッシュボードトーン） */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap");

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --ink: #0f1728;
  --ink-soft: #616e85;
  --border: #e2e7f1;
  --header: #070b16;
  --header-grad: radial-gradient(1200px 400px at 15% -20%, #17284f 0%, transparent 60%), linear-gradient(160deg, #070b16 0%, #0c1730 60%, #070b16 100%);
  --accent: #2f6fed;
  --accent-deep: #1d4ed8;
  --accent-soft: #e8f0ff;
  --cyan: #06b6d4;
  --cyan-soft: #e0fbff;
  --verified: #16a34a;
  --verified-soft: #e7f8ec;
  --store: #7c3aed;
  --store-soft: #f1e9fe;
  --danger: #dc2626;
  --danger-soft: #fde8e7;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 16px 32px rgba(15, 23, 40, 0.08);
  --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.35);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 900; letter-spacing: -.01em; }
.logo, .stat-num, .kicker, .badge-mono { font-family: "Space Grotesk", "Noto Sans JP", sans-serif; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  background: var(--header-grad), var(--header);
  color: #cdd6ea;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.15rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.logo img.mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--cyan)); padding: 6px; }
/* マスコットはキャラクターの輪郭をそのまま見せるので、背景・角丸・余白は付けない。 */
.logo img.mascot-mark {
  width: 56px;
  height: auto;
  border-radius: 0;
  background: none;
  padding: 0;
  /* 中央揃えのままだと文字列より上にずれて浮いて見えるため、文字の下端に合わせる。 */
  align-self: flex-end;
  margin-bottom: 5px;
}
.logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo .logo-text small { font-size: .6rem; font-weight: 500; opacity: .6; letter-spacing: .06em; color: #9fb0d0; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .84rem; }
.nav-links a { opacity: .82; letter-spacing: .01em; }
.nav-links a:hover { opacity: 1; color: var(--cyan); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.35);
  color: #7fe3f2; font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: #34e2b3; box-shadow: 0 0 0 0 rgba(52,226,179,.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,226,179,.55); }
  70% { box-shadow: 0 0 0 7px rgba(52,226,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,226,179,0); }
}
.nav-cta { background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: .82rem; }
.nav-cta:hover { filter: brightness(1.08); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 780px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ===== Breadcrumb / page title ===== */
.breadcrumb { font-size: .78rem; color: var(--ink-soft); padding: 16px 0 0; }
.breadcrumb a:hover { color: var(--accent-deep); }
.page-title { padding: 18px 0 10px; border-bottom: 1px solid var(--border); }
.page-title h1 { font-size: 1.5rem; margin: 6px 0 12px; }
.updated-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verified-soft); border: 1px solid var(--verified);
  color: var(--verified); border-radius: var(--radius-sm); padding: 4px 12px;
  font-size: .74rem; font-weight: 700;
}

/* ===== Section heading ===== */
.section { padding: 32px 0; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.15rem; margin: 0; }
/* ワンポイント（虫眼鏡＝検証しているイメージ）。統計ボックスの上端に座らせる。 */
.trust-stats-wrap { position: relative; margin: 20px 0; }
.trust-stats-wrap .point-mascot {
  position: absolute;
  right: 40px;
  /* 下端は平らに切れている。ボックスの手前に重ねると切り口の線がイラストを横切って見えるため、
     z-index を下げてボックスの「後ろ」へ回し、フッターと同じ“顔を出している”見え方にする。 */
  bottom: calc(100% - 12px);
  z-index: -1;
  width: 84px;
  height: auto;
  pointer-events: none;
}
@media (max-width: 720px) {
  .trust-stats-wrap .point-mascot { width: 60px; right: 14px; }
}
.section-heading .bar { width: 6px; height: 20px; background: linear-gradient(180deg, var(--accent), var(--cyan)); border-radius: 4px; display: inline-block; }

/* ===== Hero (trust dashboard style) ===== */
.hero {
  background: var(--header-grad), var(--header);
  border-radius: var(--radius-lg);
  padding: 34px 32px 28px;
  color: #fff;
  margin: 24px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
/* ヒーローのメインビジュアル。文章と重ならないよう右端に置き、狭い画面では隠す。 */
.hero-mascot {
  position: absolute;
  /* 位置は指定画像（赤丸）に合わせている。右端・下寄りだと統計行にかかるため、左へ寄せて上げる。 */
  right: 8%;
  top: 8px;
  width: min(230px, 22%);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .kicker { font-size: .74rem; letter-spacing: .18em; color: var(--cyan); font-weight: 700; }
.hero-copy h1 { font-size: 1.65rem; margin: 8px 0 10px; max-width: 34ch; line-height: 1.45; }
.hero-copy p { margin: 0 0 18px; font-size: .88rem; color: #b8c3dc; max-width: 42em; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius-md); overflow: hidden; margin-top: 6px; }
.trust-stats .stat { background: rgba(255,255,255,.03); padding: 14px 12px; }
.trust-stats .stat-num { font-size: 1.35rem; font-weight: 700; color: #fff; display: flex; align-items: baseline; gap: 2px; }
.trust-stats .stat-num .unit { font-size: .68rem; color: #8fa0c4; font-weight: 500; }
.trust-stats .stat-label { font-size: .68rem; color: #8fa0c4; margin-top: 2px; }
@media (max-width: 720px) {
  .hero { padding: 26px 20px; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  /* 狭い画面では文章に重なるため隠す。 */
  .hero-mascot { display: none; }
}

/* Trust badges row */
.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .trust-badges { grid-template-columns: 1fr; } }
.trust-badge {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.trust-badge .ico {
  width: 38px; height: 38px; border-radius: 999px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.trust-badge h3 { margin: 0 0 3px; font-size: .92rem; }
.trust-badge p { margin: 0; font-size: .78rem; color: var(--ink-soft); }

/* ===== Category grid ===== */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 720px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; text-align: center; transition: transform .15s, box-shadow .15s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
/* ジャンルのサムネイルは背景透過の実写画像（genre-*.webp）。被写体が切れないよう contain。
   背景を透過にしたのでカード側の色をそのまま活かす（白を敷くと将来カード色を変えた時に浮く）。 */
.category-card .cat-thumb { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 10px 10px 4px; }
/* ボックスの商品画像は写真そのもの（背景は元画像のまま）。切れないよう contain で全体を見せる。 */
.category-card .box-thumb { padding: 6px; background: var(--surface-2); }
.category-card .cat-body { padding: 12px 8px 16px; }
.category-card .cat-name { font-weight: 700; font-size: 1.02rem; }
.category-card .cat-count { font-size: .72rem; color: var(--ink-soft); margin-top: 4px; }

.lottery-thumb { display: block; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-sm); object-fit: contain; background: var(--surface-2); }

/* ===== 応募方法ポップアップ（single-lottery.php の静的モーダル / common.js の動的モーダル共通） ===== */
body.oripa-modal-open { overflow: hidden; }
.oripa-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.oripa-modal[hidden] { display: none; }
.oripa-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .55); }
.oripa-modal-panel { position: relative; background: #fff; border-radius: var(--radius, 12px); padding: 24px; width: min(420px, 92vw); max-height: 86vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.oripa-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surface-2); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.oripa-modal-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; }
.oripa-modal-shop-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.oripa-modal-shop-row .method-chip { position: static; background: var(--surface-2); }
.oripa-modal-shop-name { font-weight: 700; }
.oripa-modal-steps { margin: 0 0 14px; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.oripa-modal-note { font-size: .74rem; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.5; }
/* 応募方法ポップアップの詳細セクション（手順・条件・当選確認・持ち物・注意点）。 */
.oripa-modal-platform { font-size: .82rem; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.oripa-modal-heading { font-size: .78rem; font-weight: 700; margin: 0 0 6px; color: var(--ink-soft); letter-spacing: .02em; }
.oripa-modal-section { margin-bottom: 14px; }
.oripa-modal-list { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 5px; font-size: .8rem; line-height: 1.55; }
.oripa-modal-list.caution { color: #b42318; }
.oripa-modal-text { margin: 0; font-size: .8rem; line-height: 1.55; }
.oripa-modal-steps { font-size: .82rem; line-height: 1.55; }

/* カード上の「応募方法をみる」テキストリンク（ボタンではなく控えめに）。 */
.text-link { display: block; margin: 4px auto 0; background: none; border: none; padding: 2px 4px; font-size: .74rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; text-align: center; }
.text-link:hover { color: var(--accent-deep, var(--accent)); }
.btn.is-disabled { background: var(--surface-2); color: var(--ink-soft); cursor: default; pointer-events: none; }

/* ===== ボックス別ページ: 商品画像ヒーロー ＋ リスト（行）表示（2026-09-09追加） ===== */
.box-hero { display: flex; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 18px; }
.box-hero[hidden] { display: none; }
.box-hero-img { display: block; max-width: 320px; width: 100%; max-height: 220px; object-fit: contain; }

/* 行レイアウト。カード（グリッド）と違い、1件を横長の行として縦に積む */
/* .lottery-list のグリッド指定（後方で定義）に負けないよう、クラス2つ分の詳細度にする。
   単一クラス同士だと後に書かれた .lottery-list が勝ち、グリッドのままになる。 */
.lottery-list.lottery-list--rows { display: flex; flex-direction: column; gap: 10px; }
.lottery-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px 14px; }
.lottery-row.is-ended { opacity: .62; }
.lottery-row .row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lottery-row .row-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lottery-row .row-countdown { flex-shrink: 0; font-size: .74rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.lottery-row .row-countdown.urgent { color: var(--accent-deep, #d8402f); }
.lottery-row .row-countdown.ended { color: var(--ink-soft); }
.lottery-row .row-shop { font-weight: 700; font-size: 1rem; }
.lottery-row .row-meta { font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.lottery-row .row-verified { display: flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: var(--verified); margin: 6px 0 10px; }
/* 応募ボタンは行の横幅いっぱいに（.btn.block の width:100% は .card-body 配下限定の指定で、
   行レイアウトでは効かず横幅が中途半端になっていた）。 */
.lottery-row .btn.block { display: block; width: 100%; margin-top: 2px; }

/* 行の中では方式チップを絶対配置しない（カードのサムネ上に重ねる用の指定を打ち消す） */
.method-chip.static { position: static; background: var(--surface-2); }

/* ===== Promo cards ===== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .promo-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .promo-grid { grid-template-columns: 1fr; } }
.promo-card { background: var(--surface); color: var(--ink); padding: 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform .15s, box-shadow .15s; }
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-card .icon { font-size: 1.4rem; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo-card h3 { margin: 0 0 4px; font-size: 1rem; }
.promo-card p { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.promo-card .go { margin-left: auto; background: var(--accent); color: #fff; padding: 7px 16px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.promo-card:hover .go { background: var(--accent-deep); }

/* ===== Filter sidebar ===== */
.layout-with-sidebar { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .layout-with-sidebar { grid-template-columns: 1fr; } }
.filter-sidebar { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .filter-sidebar { position: static; } }
.filter-sidebar .fs-title { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.filter-sidebar label { font-size: .74rem; color: var(--ink-soft); font-weight: 700; }
.filter-sidebar select { width: 100%; border: 1px solid var(--border); padding: 9px 10px; font-size: .82rem; background: var(--surface-2); color: var(--ink); border-radius: var(--radius-sm); }
.filter-sidebar .fs-count { font-size: .78rem; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 12px; }
.filter-sidebar .fs-count b { color: var(--accent-deep); font-size: 1.1rem; }

/* ===== Lottery gallery (trust card) ===== */
.lottery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lottery-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.lottery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.thumb-wrap { position: relative; }
.thumb-wrap .lottery-thumb { border-radius: 0; aspect-ratio: 4/3; }
.lottery-thumb-link { display: block; }
.lottery-thumb-link:hover .lottery-thumb { filter: brightness(.95); }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; padding: 4px 11px; border-radius: var(--radius-sm); font-size: .7rem; font-weight: 700; }
.ribbon.urgent { background: var(--danger); }
.method-chip { position: absolute; bottom: 8px; left: 10px; font-size: .66rem; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.94); }
.method-chip.online { color: var(--verified); }
.method-chip.store { color: var(--store); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.verified-row { display: flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: var(--verified); }
.verified-row .check { width: 14px; height: 14px; border-radius: 999px; background: var(--verified); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .58rem; }
.freshness { font-size: .68rem; color: var(--ink-soft); }
.card-body .badges { display: flex; gap: 5px; flex-wrap: wrap; }
.badge { font-size: .66rem; padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 700; background: var(--surface-2); color: var(--ink-soft); }
.card-body .shop-name { font-weight: 700; font-size: .98rem; margin: 2px 0 0; }
.card-body .meta { font-size: .74rem; color: var(--ink-soft); }
.card-body .btn.block { width: 100%; margin-top: 8px; }

.btn { display: inline-block; border-radius: var(--radius-sm); padding: 9px 18px; font-size: .82rem; font-weight: 700; text-align: center; cursor: pointer; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.more-btn { display: block; margin: 20px auto 0; background: none; border: 1px solid var(--accent); color: var(--accent-deep); border-radius: var(--radius-sm); padding: 11px 30px; font-weight: 700; cursor: pointer; font-size: .84rem; }
.more-btn:hover { background: var(--accent); color: #fff; }

/* ===== FAQ ===== */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item summary { cursor: pointer; padding: 16px 4px; font-weight: 700; list-style: none; display: flex; gap: 10px; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::before { content: "Q"; color: #fff; background: var(--accent); border-radius: 999px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; flex-shrink: 0; }
.accordion-item p { padding: 0 4px 16px 30px; color: var(--ink-soft); font-size: .88rem; }

/* ===== Calendar ===== */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav h2 { margin: 0; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--ink-soft); padding: 6px 0; }
/* セルは button なので、見た目を揃えるために既定のスタイルを打ち消す。
   touch-action: manipulation はタップ時の遅延と誤判定を減らす。 */
.cal-cell {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 68px;
  padding: 8px;
  font-size: .78rem;
  cursor: pointer;
  touch-action: manipulation;
}
.cal-cell:hover { background: var(--accent-soft); border-color: var(--accent); }
.cal-cell.empty { background: transparent; border: none; cursor: default; }
.cal-cell.empty:hover { background: transparent; }
.cal-cell.today { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
/* 選択中の日。押した日が分かれば、隣を押してしまってもすぐ気づける（2026-09-11）。 */
.cal-cell.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-cell.selected .count { background: rgba(255,255,255,.25); color: #fff; }
.cal-cell.selected .d { color: #fff; }

/* ===== 日別リストの絞り込み（2026-09-11）=====
   9/11 のように締切が数十件集中する日があり、そのままでは探せない。 */
.day-count { margin-left: auto; font-size: .76rem; color: var(--ink-soft); }
.day-close { margin-left: 10px; font-size: .74rem; padding: 4px 10px; }
.day-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.day-q {
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 12px;
  font-size: .82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.day-cat {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: .82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.day-more { display: block; width: 100%; margin-top: 12px; }
@media (max-width: 560px) {
  .day-cat { flex: 1 1 100%; }
}
.cal-cell .d { font-weight: 700; }
.cal-cell .count { margin-top: 6px; display: inline-block; background: var(--verified-soft); color: var(--verified); border-radius: var(--radius-sm); padding: 1px 8px; font-size: .68rem; font-weight: 700; }

/* ===== Guide article ===== */
.article h2 { font-size: 1.2rem; margin-top: 32px; border-left: 4px solid var(--accent); padding-left: 12px; }
.article p { color: var(--ink-soft); }
.callout { background: var(--verified-soft); border: 1px solid var(--verified); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; font-size: .88rem; color: #0e6b34; }

/* ===== Shop table ===== */
.shop-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.shop-table th, .shop-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: .86rem; text-align: left; }
.shop-table th { background: var(--surface-2); color: var(--ink-soft); font-weight: 700; }
.trust-score { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.trust-score .bar-track { width: 54px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.trust-score .bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--verified)); }

/* ===== Forms ===== */
.form-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); border-top: 4px solid var(--accent); padding: 30px; max-width: 420px; margin: 36px auto; box-shadow: var(--shadow); text-align: center; }
.form-box label { text-align: left; display: block; font-size: .78rem; margin: 14px 0 5px; color: var(--ink-soft); }
.form-box input { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; background: var(--surface-2); }
.form-box .btn { width: 100%; margin-top: 18px; }
.oauth-row { display: flex; gap: 8px; margin-top: 14px; }
.oauth-row .btn { flex: 1; background: none; color: var(--ink); border: 1px solid var(--border); }

/* ===== Footer ===== */
.site-footer { background: var(--header); color: #97a4c2; margin-top: 56px; padding: 34px 0 22px; font-size: .82rem; position: relative; }
/* フッターの覗き込みポーズ。フッター上辺から顔を出す形にするので、上方向へずらす。 */
.footer-mascot {
  position: absolute;
  right: 24px;
  /* 画像下端の透明な余白ぶん、フッターの上辺へ食い込ませて浮きを消す。 */
  bottom: calc(100% - 7px);
  width: 108px;
  height: auto;
  pointer-events: none;
}
@media (max-width: 720px) {
  .footer-mascot { width: 76px; right: 12px; }
}
.footer-trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.footer-trust-row span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 6px 13px; font-size: .72rem; color: #cfe0ff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.footer-links a:hover { color: var(--cyan); }
/* 注意書きは長文になりがちなので、行間を空けて読めるようにする（2026-09-11）。
   段落を続けて置く場合の間隔もここで決める。 */
.footer-note { opacity: .6; font-size: .74rem; line-height: 1.85; }
.footer-note + .footer-note { margin-top: 8px; }

.empty-state { text-align: center; padding: 44px 0; color: var(--ink-soft); border: 1px dashed var(--border); border-radius: var(--radius-md); }
.empty-state img { width: 60px; opacity: .7; margin-bottom: 10px; }

.legal h1 { font-size: 1.3rem; }
.legal h2 { font-size: 1.02rem; margin-top: 26px; border-left: 4px solid var(--accent); padding-left: 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .9rem; }

/* ===== コラム（記事）まわり ===== */
.column-hero {
  background: var(--header-grad), var(--header);
  color: #cdd6ea;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin: 20px 0 0;
  box-shadow: var(--shadow-dark);
}
.column-hero .kicker { font-size: .72rem; letter-spacing: .18em; color: var(--cyan); font-weight: 700; }
.column-hero h1 { color: #fff; font-size: 1.45rem; margin: 8px 0 6px; }
.column-hero p { font-size: .86rem; opacity: .8; margin: 0; max-width: 42em; color: #b8c3dc; }

.cat-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.cat-menu a { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #cdd6ea; border-radius: var(--radius-sm); padding: 7px 14px; font-size: .8rem; font-weight: 700; }
.cat-menu a:hover, .cat-menu a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.column-layout { display: grid; grid-template-columns: 1fr 260px; gap: 26px; align-items: start; margin-top: 12px; }
@media (max-width: 860px) { .column-layout { grid-template-columns: 1fr; } }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.article-card .art-thumb { display: block; width: 100%; aspect-ratio: 16/10; }
.article-card .art-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card .art-cat { font-size: .68rem; font-weight: 700; color: var(--accent-deep); letter-spacing: .03em; }
.article-card .art-title { font-size: .94rem; font-weight: 700; line-height: 1.45; }
.article-card .art-excerpt { font-size: .78rem; color: var(--ink-soft); flex: 1; }
.article-card .art-meta { font-size: .68rem; color: var(--ink-soft); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 4px; }

.ranking-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 84px; }
@media (max-width: 860px) { .ranking-box { position: static; } }
.ranking-box h3 { font-size: 1rem; margin: 0 0 12px; }
.ranking-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.ranking-item:last-child { border-bottom: none; }
.ranking-item .rank-no { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ranking-item .rank-title { font-size: .8rem; font-weight: 700; line-height: 1.4; }

/* Article detail page */
.article-detail-hero { display: block; width: 100%; aspect-ratio: 21/9; border-radius: var(--radius-lg); margin: 18px 0; }
.article-meta-row { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--ink-soft); flex-wrap: wrap; }
.article-body { font-size: .95rem; max-width: 68ch; }
.article-body p { margin: 0 0 1.2em; color: var(--ink); }
.article-body p:first-of-type { font-weight: 700; }
.toc-box { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-md); padding: 16px 18px; margin: 20px 0; font-size: .85rem; }
.toc-box .toc-title { font-weight: 700; margin-bottom: 8px; }

/* ===== Trust / verification process page ===== */
.process-timeline { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.process-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 26px; position: relative; }
.process-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.process-step .num { width: 40px; height: 40px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.process-step h3 { margin: 4px 0 4px; font-size: 1rem; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

/* --- 終了済セクション（トップ / 抽選アーカイブ） --- */
.ended-section { margin-top: 34px; border-top: 1px solid var(--border); padding-top: 8px; }
.ended-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin: 8px 0 16px; padding: 8px 2px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .95rem; color: var(--ink-soft);
}
.ended-toggle:hover { color: var(--ink); }
.ended-toggle .tri { font-size: .7rem; transition: transform .15s; }
.ended-toggle[aria-expanded="false"] .tri { transform: rotate(-90deg); }
.ended-section.collapsed .ended-list,
.ended-section.collapsed [id$="-more-wrap"] { display: none; }
.ended-section #ended-count { font-variant-numeric: tabular-nums; }

.lottery-card.is-ended { opacity: .6; }
.lottery-card.is-ended .lottery-thumb { filter: grayscale(1); }
.lottery-card.is-ended:hover { opacity: .9; transform: none; box-shadow: none; border-color: var(--border); }
.lottery-card.is-ended .verified-row,
.lottery-card.is-ended .badges { display: none; }
.lottery-card.is-ended .btn.primary { background: var(--surface-2); color: var(--ink-soft); border-color: var(--border); pointer-events: auto; }
.ribbon.ended { background: var(--ink-soft); }

/* ===== コラムのタグと出典クレジット（Notion記事ソースDB連携・2026-09-09） ===== */
.art-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.art-tag { font-size: .66rem; color: var(--ink-soft); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.article-tag { font-size: .72rem; color: var(--ink-soft); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.article-tag:hover { background: #e6ebf5; }
.article-credit { margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: var(--radius-sm); font-size: .76rem; line-height: 1.6; }
.article-credit span { color: var(--ink-soft); }

/* ===== 記事内のデータ表現（表・横棒グラフ・要点ボックス）・2026-09-09 =====
   画像ではなくHTMLで描く。更新のたびに作り直す必要がなく、本文として検索にも読まれるため。 */
.article-table { margin: 18px 0; overflow-x: auto; }
.article-table table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.article-table th, .article-table td { border: 1px solid var(--line, #e2e8f0); padding: 8px 10px; text-align: left; }
.article-table th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.article-table tr:nth-child(even) td { background: #fbfcfe; }

.article-bars { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.article-bar-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; align-items: center; gap: 10px; font-size: .82rem; }
.article-bar-label { color: var(--ink); }
.article-bar-track { background: var(--surface-2); border-radius: 999px; height: 14px; overflow: hidden; }
.article-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 999px; }
.article-bar-value { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.article-callout { margin: 18px 0; padding: 12px 14px; background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.7; }

/* ===== ガイドハブ（/guide） ===== */
.guide-section { margin-bottom: 32px; }
.guide-cat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.guide-cat { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line, #e2e8f0); border-radius: 999px; padding: 6px 14px; font-size: .82rem; text-decoration: none; color: var(--ink); }
.guide-cat b { color: var(--accent); font-variant-numeric: tabular-nums; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: gs; }
.guide-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; text-decoration: none; color: inherit; }
.guide-step:hover { box-shadow: var(--shadow); }
.guide-step .no { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .84rem; }
.guide-step h3 { margin: 0 0 3px; font-size: .92rem; }
.guide-step p { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.guide-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.guide-table th, .guide-table td { border-bottom: 1px solid var(--line, #e2e8f0); padding: 9px 10px; text-align: left; }
.guide-table th { color: var(--ink-soft); font-weight: 600; font-size: .76rem; }
.guide-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== 一覧の商品名（2026-09-10追加） =====
   パック種類だけでは同じBOXの別商品を見分けられなかったため、商品名を主に出す。 */
.product-name, .row-product {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 2px 0 4px;
  /* 商品名は長いので2行で打ち切る。カードの高さを揃えるため。 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-box {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 1px;
}

/* ===== 新商品カレンダー（/release/）・2026-09-10 ===== */
.release-month { padding-top: 0; }
.release-count { margin-left: auto; font-size: .76rem; color: var(--ink-soft); }
.release-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.release-item {
  /* 日付 / 商品画像 / 本文 / 公式リンク。
     以前は grid で4列を固定していたが、商品画像が無い行では子要素が3つになり、
     「公式」リンクが本文用の 1fr 列に入って横に伸びていた（2026-09-11 修正）。
     flex なら要素の数が変わっても各自の幅で並ぶので、この崩れ方をしない。 */
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.release-date { flex: 0 0 52px; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1; }
.release-date small { display: block; font-size: .6rem; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
/* 本文だけが伸び縮みする。min-width:0 が無いと長い商品名で他を押し出す。 */
.release-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.release-genre {
  align-self: flex-start;
  font-size: .66rem;
  font-weight: 700;
  color: #fff;
  background: var(--genre-color, #8a93a6);
  border-radius: 999px;
  padding: 1px 8px;
}
/* 商品名は公式の表記をそのまま出すため長い。行間を空けて読めるようにする。 */
.release-title { font-size: .85rem; font-weight: 600; line-height: 1.65; }
.release-type { font-size: .72rem; line-height: 1.5; color: var(--ink-soft); }
.release-link {
  /* 幅は文字ぶんだけ。伸ばさない・縮めない。 */
  flex: 0 0 auto;
  align-self: center;
  text-align: center;
  font-size: .74rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
}
.release-link:hover { background: var(--surface-2); }
@media (max-width: 560px) {
  /* 狭い画面では折り返す。日付は左に残し、本文とリンクが下へ回る。 */
  .release-item { flex-wrap: wrap; gap: 10px; }
  .release-date { flex: 0 0 44px; }
  .release-body { flex: 1 1 60%; }
}

/* リード文の注記。抽選一覧と混同されやすいので目立たせる。
   【配色の注意・2026-09-11】
   ここは .column-hero の中＝**暗い背景**。
   最初 --surface-2（明るい灰）＋ --ink-soft（灰文字）にしていたため、
   暗背景の上に明るい箱が浮き、その中の灰文字が読めなかった。
   暗背景に馴染む半透明の箱＋明るい文字にする。
   親の .column-hero p が opacity:.8 を掛けているので、ここで打ち消す。 */
/* 【セレクタの詳細度に注意・2026-09-11】
   `.release-lead-note` だけだと詳細度(0,1,0)で、
   `.column-hero p`(0,1,1) に負けて color も opacity も効かない。
   実測してはじめて気づいた（指定した #dce4f5 ではなく #b8c3dc が出ていた）。
   親を含めた `.column-hero .release-lead-note`(0,2,0) にする。 */
.column-hero .release-lead-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .08);
  /* 色だけに頼らず、左線という形の差でも「注記」だと分かるようにする */
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  line-height: 1.75;
  color: #dce4f5;
  opacity: 1;
}
.column-hero .release-lead-note strong { color: #fff; font-weight: 700; }

/* 商品画像。公式サイトの商品写真をそのまま出すので、切り取らず全体を収める。 */
.release-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 3px;
}
@media (max-width: 560px) {
  .release-thumb { width: 48px; height: 48px; }
}

/* ===== 記事のPR注記（2026-09-10）=====
   広告を含む記事にだけ出す。読む前に分かる位置（本文の直前）へ置く。 */
.article-pr-notice {
  margin: 14px 0 0;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: .72rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
/* 記事本文中の広告リンクは、普通のリンクと同じ見た目にしない（どれが広告か分かるように） */
.article-body a[rel~="sponsored"]::after {
  content: "PR";
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 3px;
  font-size: .6rem;
  color: var(--ink-soft);
  vertical-align: middle;
}

/* ===== 全店舗一覧：チェーン系列でまとめる（2026-09-11）=====
   170店舗をフラットに並べていたため探せず、大会情報まで混ざっていた。 */
.shop-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-q {
  flex: 1 1 240px;
  min-width: 0;
  padding: 9px 12px;
  font-size: .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.shop-area {
  flex: 0 0 auto;
  padding: 9px 12px;
  font-size: .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.shop-group { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.shop-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.shop-group-head::-webkit-details-marker { display: none; }
/* 開閉の向きを三角で示す。details の既定マーカーは位置が揃わないので自前で描く。 */
.shop-group-head::before {
  content: "▸";
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: .8rem;
  transition: transform .15s;
}
.shop-group[open] > .shop-group-head::before { transform: rotate(90deg); }
.shop-group-head:hover { background: var(--surface-2); }
.shop-group-name { font-size: .92rem; font-weight: 700; }
.shop-group-num { font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.shop-group-meta { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.shop-group-genres { display: flex; gap: 4px; flex-wrap: wrap; }
.shop-genre { font-size: .66rem; color: var(--ink-soft); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.shop-group-count { font-size: .74rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.shop-group .shop-table { border: none; border-radius: 0; border-top: 1px solid var(--border); }
.shop-group .shop-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .shop-area { flex: 1 1 100%; }
  .shop-group-meta { margin-left: 0; width: 100%; }
  /* 表は横に長いので、はみ出すぶんだけ横スクロールさせる（ページ全体は動かさない）。 */
  .shop-group .shop-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== おすすめ記事（外部サイト）・2026-09-11 =====
   当サイトが扱っていない「当たりカード・相場・環境」を補う。
   外部リンクだと分かる見た目にし、抽選の導線とは明確に分ける。 */
.reco-source { margin-left: auto; font-size: .7rem; color: var(--ink-soft); }
.reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.reco-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.reco-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.reco-tag {
  align-self: flex-start;
  font-size: .64rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 9px;
}
.reco-title { font-size: .86rem; font-weight: 700; line-height: 1.55; }
.reco-desc { font-size: .74rem; line-height: 1.7; color: var(--ink-soft); }
.reco-go { margin-top: 3px; font-size: .74rem; font-weight: 700; color: var(--accent); }
/* 外部リンクであることを矢印で示す。文字だけだと内部リンクと区別がつかない。 */
.reco-ext { margin-left: 3px; font-size: .8em; }
.reco-note { margin-top: 12px; }
@media (max-width: 560px) {
  .reco-grid { grid-template-columns: 1fr; }
  .reco-source { margin-left: 0; width: 100%; margin-top: 4px; }
}

/* ===== 記事末尾「いま応募できる抽選」・2026-09-11 =====
   記事を読んだ流れで応募できるようにする。中身は毎日入れ替わる。 */
.related-lotteries { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--border); }
.related-more { display: inline-block; margin-top: 12px; }

/* 3列のギャラリー表示。
   既定の .lottery-list は auto-fill なので、記事本文の幅では2列になったり
   3列になったりして揃わない。ここは列数を固定する。 */
.related-lotteries .related-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) {
  .related-lotteries .related-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .related-lotteries .related-list { grid-template-columns: 1fr; }
}

/* ===== 記事内の図版とクレジット（2026-09-11）=====
   自社で描いた図や、商品を特定するために必要な画像を置く。
   出典はテキストで示し、**リンクにはしない**（読者を他社サイトへ送らないため）。 */
.article-figure { margin: 22px 0; }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.article-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-top: 8px;
  font-size: .76rem;
  line-height: 1.7;
}
.article-figure-caption { color: var(--ink); }
.article-figure-credit { color: var(--ink-soft); font-size: .72rem; }

/* ===== 記事本文の読みやすさ（2026-09-11）=====
   見出しの階層が見た目で分からず、長い記事が読みにくかった。 */
.article-body h2 {
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-size: 1.18rem;
  line-height: 1.5;
}
.article-body h3 {
  margin: 28px 0 12px;
  padding-left: 11px;
  /* 色だけでなく、左の線という形の差でも階層を示す */
  border-left: 4px solid var(--accent);
  font-size: 1.02rem;
  line-height: 1.55;
}
.article-body h4 { margin: 22px 0 10px; font-size: .93rem; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin-bottom: .5em; line-height: 1.85; }
.article-body strong { font-weight: 700; }
