:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --card: #fff;
  --line: #e7e5df;
  --mute: #6b6b66;
  --main: #FF9900;
  --btn: #E68A00;
  --ok: #1e8e3e;
  --link: #0b57d0;
  --soft: #F5F5F2;
}
/* 端末が暗い設定でも明るい配色だけで出す(2026-11-19 オーナー指定「黒背景は怪しいサイトに見える」) */
:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.site-h { background: #fff; border-top: 3px solid #FF9900; border-bottom: 1px solid var(--line); }
.site-h .wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.site-h img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand { color: var(--fg); font-weight: 700; text-decoration: none; }

main { padding-bottom: 24px; }
h1 { font-size: 26px; line-height: 1.4; margin: 24px 0 4px; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.4; margin: 40px 0 12px; padding-left: 10px; border-left: 4px solid var(--main); }
h2 a { color: inherit; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 24px 0 8px; }
h3 a { color: inherit; }
h4 { font-size: 17px; line-height: 1.5; margin: 0; }
.tx { margin: 0 0 1em; }
.by { margin: 0 0 16px; font-size: 13px; color: var(--mute); }
.by a { color: var(--mute); margin-left: 6px; }

/* 結論の箱・目次 */
.concl { background: #FFF7EB; border-left: 4px solid #FF9900; border-radius: 0 8px 8px 0; padding: 16px; margin: 16px 0 24px; }
.concl-t { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.concl .tx { margin-bottom: 0; }
.concl .cd-wrap { margin-top: 10px; }
.concl .cd { margin: 0; }
.concl-btn { margin: 14px 0 0; }
.toc { background: var(--soft); border-radius: 8px; padding: 16px 16px 12px; margin: 24px 0; }
.toc-t { margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.6em; }
.toc li { margin: 2px 0; }
.sub { margin: 0 0 12px; font-size: 14px; color: var(--mute); }
.lead { margin: 0 0 8px; }
.crumbs { margin: 16px 0 0; font-size: 13px; color: var(--mute); }
.crumbs a { color: var(--mute); }

/* 確定・予想・ショップの印 */
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok); color: #fff; }
.badge.est { border: 1px dashed var(--mute); color: var(--mute); font-weight: 400; }
.src { font-size: 12px; margin-left: 4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--main)); margin-right: 6px; flex: none; }

/* カード */
.cards { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--main)); border-radius: 12px; padding: 14px 16px; }
.card[data-state="live"] { border-color: var(--c, var(--main)); border-left-width: 8px; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.card-h h3, .card-h h4 { display: flex; align-items: center; margin: 0; font-size: 17px; }
.card-b { display: flex; align-items: center; flex-wrap: wrap; }
.when { margin: 6px 0 0; font-size: 15px; }
.when .pre { display: block; font-size: 13px; color: var(--mute); }
.when .t { display: inline-block; white-space: nowrap; }
.cd { margin: 8px 0 0; line-height: 1.3; }
.cd-n { font-size: 32px; font-weight: 700; line-height: 1.2; }
.cd-u { margin-left: 2px; }
.cd-s { font-size: 13px; color: var(--mute); }
.cd-soon { color: var(--ok); }
.more { margin: 8px 0 0; font-size: 14px; }
.note { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.pred-t { margin: 6px 0 0; font-size: 18px; }

/* ボタン */
.btns, .store-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { display: inline-block; max-width: 100%; padding: 10px 16px; border-radius: 8px; background: var(--btn); color: #1a1a1a; font-weight: 700; text-decoration: none; line-height: 1.4; text-align: center; }
.btn.ghost { background: transparent; border: 1px solid var(--btn); color: var(--fg); }
.pr-tag { display: inline-block; margin-left: 8px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; font-weight: 400; vertical-align: 2px; }

/* 箱 */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 24px; }
.box h2 { margin: 0 0 8px; padding-left: 0; border-left: 0; font-size: 18px; }
.box p { margin: 0; font-size: 15px; }
.app-h { display: flex; align-items: center; gap: 12px; }
.app-h img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.app-h h2 { margin: 0; }
.app-box p { margin-top: 10px; }

/* トップのショップごとの箱 */
.shop-box { border-left: 4px solid var(--c, var(--main)); }
.shop-box > h3 { display: flex; align-items: center; margin: 0 0 10px; font-size: 18px; }
.shop-box > h3 a { display: flex; align-items: center; color: var(--fg); text-decoration: none; }
.shop-box .card { box-shadow: none; }

/* 一覧・傾向・表 */
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links .yr { display: block; font-size: 13px; color: var(--mute); }
.links .ld { display: block; margin-top: 4px; font-size: 14px; }
.trend { margin: 0 0 16px; padding-left: 1.2em; }
.sum { margin: 0 0 1em; padding-left: 1.2em; }
.sum li { margin: 4px 0; }
.srcs { margin: 0 0 1em; padding-left: 1.2em; }
.srcs li { margin: 4px 0; }
.cap { margin: 0 0 4px; font-size: 13px; color: var(--mute); }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); }
.tbl th, .tbl td { padding: 8px; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--soft); font-size: 13px; font-weight: 700; }
.tbl tbody th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.tbl + .note { margin-bottom: 1em; }
.hist .t { display: inline-block; white-space: nowrap; }
.hist .len, .hist .ref { white-space: nowrap; }
.cal-tbl, .sched-tbl { table-layout: fixed; }
.cal-tbl th:first-child, .sched-tbl th:first-child { width: 3.4em; }
.cal-tbl td { font-size: 13px; }
@media (max-width: 480px) {
  .cal-tbl, .cal-tbl td, .cal-tbl thead th { font-size: 11px; }
  .cal-tbl th, .cal-tbl td { padding: 6px 3px; }
  .cal-tbl th:first-child { width: 2.6em; }
  .hist { font-size: 13px; }
}
/* 360px 前後では 9 文字の名前(ブラックフライデー)も 1 行に収める */
@media (max-width: 400px) {
  .cal-tbl, .cal-tbl td, .cal-tbl thead th { font-size: 10px; }
}

/* 月ごとの横棒(CSS だけ) */
.mbars { list-style: none; margin: 0 0 1em; padding: 0; }
.mbars li { display: grid; grid-template-columns: 2.6em 1fr 2em; align-items: center; gap: 8px; font-size: 13px; line-height: 1.8; }
.mb-b { display: block; height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.mb-b i { display: block; height: 10px; background: var(--main); }
.mb-n { color: var(--mute); }

footer { border-top: 1px solid var(--line); padding: 16px 0 32px; font-size: 13px; color: var(--mute); }
footer p { margin: 0 0 6px; }
footer a { color: var(--mute); }

/* ---------- 使い方・読み物の汎用ページ(site/SPEC-guide.md) ---------- */
.site-nav { display: flex; gap: 16px; margin-left: auto; font-size: 14px; }
.site-nav a { color: var(--fg); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .site-h .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; margin-left: 42px; }
}
.box .app-more { margin-top: 10px; font-size: 14px; }

/* 手順(丸い橙の番号) */
.steps { list-style: none; margin: 0 0 1em; padding: 0; counter-reset: st; }
.steps li { position: relative; margin: 0 0 20px; padding-left: 44px; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--main); color: #1a1a1a; font-weight: 700; font-size: 16px; line-height: 30px; text-align: center; }
.steps .st-t { display: block; font-size: 17px; line-height: 30px; margin: 0 0 4px; }
.steps .tx { margin: 0; }

/* 画面写真 */
.shot { margin: 16px 0 24px; }
.shot img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.shot figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--mute); }

/* 箇条書き・注意書き */
.gl { margin: 0 0 1em; padding-left: 1.3em; }
.gl li { margin: 6px 0; }
.callout { background: #FFF9E5; border: 1px solid #F2E3A8; border-radius: 8px; padding: 12px 16px; margin: 0 0 1em; }
.callout .tx { margin: 0; font-size: 15px; }

/* 表(汎用・ブラックフライデーの年ごとの表) */
.gtbl { margin: 0 0 1em; }
.gtbl th, .gtbl td { overflow-wrap: break-word; }
.bf-tbl { table-layout: fixed; margin-bottom: 4px; }
.bf-tbl th:first-child { width: 4.4em; }
.bf-tbl td { font-size: 13px; }
.bf-tbl .ref { font-size: 12px; white-space: nowrap; }
@media (max-width: 480px) {
  .gtbl { font-size: 13px; }
  .bf-tbl, .bf-tbl td, .bf-tbl thead th { font-size: 11px; }
  .bf-tbl th, .bf-tbl td { padding: 6px 4px; }
  .bf-tbl th:first-child { width: 4.2em; }
}

/* カード型のリンク一覧 */
.lcards { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.lcard { display: block; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; }
.lcard:hover { border-color: var(--main); }
.lc-t { display: block; font-weight: 700; line-height: 1.5; color: var(--link); }
.lc-d { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--mute); }
