:root { color-scheme: light; --ink: #29231f; --muted: #6b5e53; --paper: #fbf8f4; --line: #e9dfd6; --accent: #a8482b; --green: #226646; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #79321c; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.skip-link { position: absolute; top: -80px; left: 16px; padding: 8px 14px; background: white; z-index: 2; }
.skip-link:focus { top: 8px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1040px; padding: 24px 32px; margin: auto; border-bottom: 1px solid var(--line); }
.site-header > span { font-size: 13px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.brand img { object-fit: contain; }
main { max-width: 960px; margin: auto; padding: 0 32px; }
.hero { padding: 52px 0 36px; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .1em; font-weight: 700; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.35; letter-spacing: -.04em; margin: 0 0 18px; }
.intro { color: var(--muted); max-width: 690px; margin: 0; }
.intro strong { color: var(--ink); font-weight: 600; }
.image-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.contents a { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.5; }
.contents a:hover { border-color: #b88061; }
.contents a > span:last-child { margin-left: auto; color: var(--accent); }
.nav-number { font-size: 22px; font-weight: 700; color: var(--accent); }
.contents small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.chapter { padding: 32px; margin: 0 0 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.chapter-head { display: flex; align-items: flex-start; gap: 20px; }
.chapter-number { flex: 0 0 auto; white-space: nowrap; color: #ba6b4b; font-size: 42px; font-weight: 600; line-height: 1.2; letter-spacing: -.06em; }
.chapter-head > div { min-width: 0; }
.chapter-head .eyebrow { margin-bottom: 4px; }
h2 { font-size: 25px; line-height: 1.45; margin: 0 0 8px; letter-spacing: -.025em; }
.chapter-head p:last-child { color: var(--muted); margin: 0; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 10px 18px; margin-top: 22px; border: 1px solid #d3bbaa; border-radius: 9px; text-decoration: none; font-weight: 600; background: #fcf6ef; }
.action:hover { background: #faebde; }
.instructions { counter-reset: instructions; list-style: none; padding: 0; margin: 30px 0 0; }
.instructions > li { counter-increment: instructions; position: relative; padding: 0 0 26px 44px; }
.instructions > li:last-child { padding-bottom: 0; }
.instructions > li::before { content: counter(instructions); position: absolute; left: 0; top: 0; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: #f7eee7; color: var(--accent); font-size: 13px; font-weight: 700; text-align: center; }
h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.6; }
p { margin: 0 0 12px; }
.instructions p { color: #534a43; margin-bottom: 8px; }
.hint, .instructions .hint { font-size: 14px; color: var(--muted); }
figcaption { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.screenshot { width: 100%; margin: 18px 0 4px; }
.screenshot > a { display: block; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.screenshot img { display: block; width: 100%; height: auto; }
.screenshot figcaption { margin: 8px 0 0; line-height: 1.6; }
.screenshot-small { max-width: 520px; }
.screenshot-dialog { max-width: 430px; }
.screenshot-tool { max-width: 460px; }
.screenshot-button { max-width: 360px; }
.screenshot-payment { max-width: 540px; }
.check { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #deede0; color: var(--green); font-size: 18px; font-weight: 600; }
.comparison { margin-top: 28px; padding: 22px; background: #fbf8f4; border-radius: 12px; }
.comparison > h3 { font-size: 17px; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 16px 0; }
dt { font-weight: 700; color: var(--accent); margin-bottom: 6px; }
dd { margin: 0; font-size: 14px; }
dd span { display: block; margin-top: 8px; color: var(--muted); }
.comparison > p { font-size: 14px; padding-top: 14px; margin: 0; border-top: 1px solid var(--line); }
code { padding: 2px 6px; border-radius: 3px; background: #eee4d9; }
.source-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.case-card { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-label { display: block; color: var(--accent); font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.notice { background: #fff6e7; border-left: 3px solid #c78a35; padding: 16px 18px; margin-top: 14px; border-radius: 0 8px 8px 0; font-size: 14px; }
.notice > strong { display: block; margin-bottom: 5px; }
.notice p { margin-bottom: 8px; }
.compact { margin-top: 22px; }
.compact h3 { font-size: 16px; }
.compact p { font-size: 15px; }
.finish { display: flex; align-items: flex-start; gap: 16px; background: #f0f3ec; border-radius: 12px; padding: 24px 28px; }
.finish h2 { font-size: 20px; }
.finish p { color: #53604c; margin: 0; font-size: 14px; }
footer { margin-top: 28px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0 0 3px; }
footer > a { display: inline-block; margin-top: 10px; min-height: 32px; }
@media (max-width: 600px) {
  .site-header { padding: 18px 20px; }
  main { padding: 0 16px; }
  .hero { padding: 32px 4px 24px; }
  .intro { font-size: 15px; }
  .contents { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .contents a { padding: 14px 16px; }
  .chapter { padding: 24px 18px; border-radius: 14px; margin-bottom: 20px; }
  .chapter-head { gap: 12px; }
  .chapter-number { font-size: 32px; }
  h2 { font-size: 22px; }
  h3 { font-size: 17px; }
  .chapter-head p:last-child { font-size: 14px; }
  .action { width: 100%; gap: 14px; font-size: 15px; }
  .instructions > li { padding-left: 36px; }
  .screenshot { width: calc(100% + 36px); max-width: none; margin-left: -36px; }
  .case-card > .screenshot { width: 100%; margin-left: 0; }
  .instructions { font-size: 15px; }
  .comparison { padding: 18px; }
  dl { grid-template-columns: 1fr; gap: 16px; }
  .finish { padding: 20px; gap: 12px; }
  .finish h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; font-size: 10pt; line-height: 1.65; }
  .site-header { padding: 0 0 12px; }
  main { max-width: none; padding: 0; }
  .hero { padding: 20px 0; }
  h1 { font-size: 27pt; }
  h2 { font-size: 19pt; }
  .contents, .skip-link, footer > a { display: none; }
  .chapter { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  #payments { break-before: page; }
  .chapter-head, .action, h3 { break-after: avoid; }
  .case-card > p { break-after: avoid; }
  .instructions > li { padding-bottom: 20px; }
  .instructions > li, .comparison, .notice, .finish { break-inside: avoid; }
  .screenshot { break-inside: avoid; max-width: 145mm; }
  .screenshot img { max-height: 75mm; width: auto; max-width: 100%; object-fit: contain; }
  .screenshot-dialog, .screenshot-tool { max-width: 90mm; }
  a { color: inherit; }
  .action { margin-top: 12px; min-height: 0; }
  .action::after { content: attr(href); font-size: 9pt; font-weight: 400; }
  .source-note { font-size: 9pt; }
}
