/* Score9 ヘルプ 共通スタイル
   アプリのブランドカラー（navy #1e3a8a）と slate 系ニュートラルを踏襲 */

:root {
  --navy: #1e3a8a;
  --navy-deep: #172b66;
  --blue: #2563eb;
  --ink: #1c2434;
  --muted: #5b6474;
  --faint: #8b93a5;
  --line: #dfe5ee;
  --ground: #f6f8fb;
  --card: #ffffff;
  --tint: #eef4ff;
  --green: #16a34a;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --amber-ink: #92400e;
  --amber-bg: #fff7e6;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

/* ── ヘッダー / パンくず ───────────────────────── */

.site-header {
  background: var(--navy);
  padding: 14px 20px;
}
.site-header .brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-header .brand span {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #bcd0ff;
}

.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 13px;
  color: var(--faint);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; color: var(--faint); }

/* ── 本文レイアウト ───────────────────────────── */

main {
  max-width: 760px;
  margin: 12px auto 32px;
  padding: 28px 24px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 640px) {
  main { margin: 8px 0 24px; border-left: none; border-right: none; border-radius: 0; padding: 22px 16px 28px; }
}

h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--navy);
  text-wrap: balance;
}
h2 {
  font-size: 19px;
  margin: 36px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  color: var(--navy-deep);
}
h3 { font-size: 16px; margin: 24px 0 6px; color: var(--navy-deep); }

p { margin: 10px 0; }
.lead { color: var(--muted); margin: 0 0 18px; }

ul, ol { padding-left: 24px; }
li { margin: 4px 0; }

a { color: var(--blue); }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  margin: 12px 0;
}
th, td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--tint); color: var(--navy-deep); font-weight: 700; white-space: nowrap; }
td.sym { text-align: center; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ── 手順リスト（アプリの打順サークルを踏襲した丸数字） ── */

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 14px 0;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 46px;
  margin: 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
ol.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 34px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
ol.steps > li > p:first-child { margin-top: 2px; }

/* ── UIラベル表記 ─────────────────────────────── */

/* 画面上のボタン */
.ui {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.86em;
  font-weight: 700;
  font-style: normal;
  padding: 1px 9px 2px;
  border-radius: 6px;
  white-space: nowrap;
  vertical-align: 0.06em;
}
.ui.green { background: var(--green); }
.ui.gray  { background: #e2e8f0; color: #1e293b; }
.ui.red   { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; padding-top: 0; padding-bottom: 1px; }
.ui.amber { background: #b45309; }
.ui.cyan  { background: #0891b2; }

/* タブ・画面名・選択チップなどボタン以外のUI要素 */
.scr {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-deep);
}
.chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.84em;
  font-style: normal;
  padding: 0 8px 1px;
  border-radius: 12px;
  white-space: nowrap;
}

/* スコア記号 */
.sym-inline {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}

/* ── 補足・注意ボックス ───────────────────────── */

.note, .warn {
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14.5px;
}
.note { background: var(--tint); border: 1px solid #d3e1fb; }
.warn { background: var(--amber-bg); border: 1px solid #f2dcae; }
.note::before, .warn::before {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.note::before { content: "補足"; color: var(--navy); }
.warn::before { content: "注意"; color: var(--amber-ink); }
.note > p:first-of-type, .warn > p:first-of-type { margin-top: 0; }
.note > p:last-child, .warn > p:last-child { margin-bottom: 0; }

/* ── 図解 ─────────────────────────────────────── */

figure.diagram {
  margin: 18px 0;
  padding: 16px 12px 10px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}
figure.diagram svg { max-width: 100%; height: auto; }
figure.diagram figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

/* 画面構成図（CSSブロック図） */
.screen-map {
  max-width: 340px;
  margin: 0 auto;
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  background: #fff;
}
.screen-map .zone {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
}
.screen-map .zone:last-child { border-bottom: none; }
.screen-map .zone b { color: var(--navy); display: block; font-size: 13.5px; }
.screen-map .zone span { color: var(--muted); font-size: 12px; }
.screen-map .zone.band { background: var(--navy); }
.screen-map .zone.band b { color: #fff; }
.screen-map .zone.band span { color: #bcd0ff; }

/* ── 目次（howtos.html） ──────────────────────── */

.toc-intro { color: var(--muted); margin-bottom: 4px; }

.toc-section { margin-top: 28px; }
.toc-section h2 { margin-top: 0; }
ul.toc {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
ul.toc li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
ul.toc li:last-child { border-bottom: none; }
ul.toc a {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--blue);
}
ul.toc a:hover, ul.toc a:focus-visible { background: var(--tint); }
ul.toc .desc {
  display: block;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.6;
}

/* ── 関連記事・フッター ───────────────────────── */

.related {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.related h2 { border-bottom: none; font-size: 15px; margin: 0 0 6px; padding-bottom: 0; }
.related ul { margin: 0; padding-left: 20px; font-size: 14.5px; }

.site-footer {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 20px;
  font-size: 13.5px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--blue); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
