@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0f1726;
  --header: #121d2e;
  --card: #182437;
  --raised: #1e2c42;
  --ink: #f3f6fc;
  --soft: #c0cad9;
  --muted: #8f9bae;
  --line: #304059;
  --primary: #7899ff;
  --primary-hover: #91aaff;
  --on-primary: #101827;
  --teal: #55c8ba;
  --teal-soft: #16382f;
  --warn: #f1a46f;
  --warn-soft: #2b231d;
  --footer: #0b1220;
  --footer-ink: #f3f6fc;
  --footer-muted: #9eabbe;
  --focus: #91aaff;
  --header-h: 64px;
}
body.light-theme {
  --bg: #faf9ff;
  --header: rgba(250, 249, 255, 0.92);
  --card: #ffffff;
  --raised: #f1f3ff;
  --ink: #0f1b34;
  --soft: #434655;
  --muted: #747686;
  --line: #c4c5d8;
  --primary: #0040cf;
  --primary-hover: #0038b7;
  --on-primary: #ffffff;
  --teal: #006a62;
  --teal-soft: #e5f8f6;
  --warn: #873a02;
  --warn-soft: #fff1e8;
  --footer: #24304a;
  --footer-ink: #edf0ff;
  --footer-muted: #c4c5d8;
  --focus: #0040cf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, sans-serif;
  font-size: 17px;
  line-height: 28px;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font-family: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.formula, .example-box, .info-item strong, .scenario-row strong, td, th {
  font-variant-numeric: tabular-nums lining-nums;
}
.wrap { width: min(1260px, calc(100% - 32px)); margin: 0 auto; min-width: 0; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  background: var(--header); border-bottom: 1px solid var(--line);
}
body.light-theme .site-header { backdrop-filter: blur(12px); }
.header-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-row, .header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand strong { font-size: 18px; line-height: 26px; }
.brand span { color: var(--primary); }
.desktop-nav { display: none; align-items: center; gap: 4px; }
.desktop-nav a, .mobile-nav a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 8px; color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600;
}
.desktop-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { background: var(--raised); color: var(--primary); }
.theme, .menu-btn, .share-btn, .toc-toggle {
  min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.menu-btn { display: inline-flex; align-items: center; }
.mobile-nav {
  display: none; position: absolute; left: 16px; right: 16px; top: 72px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.mobile-nav.is-open { display: grid; }
.guide-page { padding: 88px 0 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.breadcrumb a { color: var(--soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hero-card, .toc-card, .content-card, .cta-card, .related-card, .faq-card, .tool-card, .note, .warning-box, .example-box, .info-item, .factor-card, .priority-card, .comparison-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; max-width: 100%;
}
.hero-card { padding: 20px; margin-bottom: 24px; }
.eyebrow, .label {
  display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px;
  background: var(--raised); color: var(--primary); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 34px; line-height: 42px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
h2 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
.hero-text, .content-card p, .cta-card p, .faq-answer, .note, .warning-box, .example-box, .info-item span, .factor-card span, .priority-card span {
  color: var(--soft); overflow-wrap: anywhere;
}
.hero-text { font-size: 17px; line-height: 28px; margin: 12px 0 0; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-meta span, .share-btn { font-size: 13px; line-height: 20px; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.toc-card, .tool-card { padding: 16px; }
.toc-title { margin-bottom: 8px; }
.toc-toggle { display: inline-flex; align-items: center; width: 100%; justify-content: space-between; margin-bottom: 8px; }
.toc-list { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 4px; }
.toc-card.is-open .toc-list { display: flex; }
.toc-list a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 8px;
  text-decoration: none; color: var(--soft); font-size: 14px; line-height: 20px; font-weight: 600;
}
.toc-list a.is-active, .toc-list a:hover { background: var(--raised); color: var(--primary); }
.content-card, .cta-card, .related-card, .faq-card { padding: 16px; }
.content-card section { scroll-margin-top: 88px; padding-top: 8px; }
.content-card section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.content-card p { margin: 12px 0 0; }
.content-card h2, .content-card h3 { color: var(--ink); }
.content-card h3 { margin-top: 16px; }
.content-card ul, .content-card ol { margin: 12px 0 0; padding-left: 20px; color: var(--soft); }
.content-card li + li { margin-top: 6px; }
.note, .warning-box, .example-box, .info-item, .factor-card, .priority-card, .comparison-card { padding: 16px; margin-top: 16px; }
.note { background: var(--teal-soft); }
.warning-box { background: var(--warn-soft); border-color: var(--warn); }
.formula {
  display: block; margin-top: 8px; padding: 12px; border-radius: 8px; background: var(--raised);
  overflow-wrap: anywhere; font-weight: 700; color: var(--ink);
}
.info-grid, .factor-grid, .related-list, .tool-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.info-item strong, .factor-card strong, .priority-card strong, .example-box > strong { display: block; color: var(--ink); margin-bottom: 4px; }
.scenario { display: grid; gap: 8px; margin-top: 16px; }
.scenario-row { padding: 12px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); }
.table-scroll { width: 100%; overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-size: 13px; }
.cta-card { display: flex; flex-direction: column; gap: 12px; }
.cta-actions, .tool-list a, .related-list a {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.button-primary, .button-secondary, .tool-list a, .related-list a, .faq-question {
  min-height: 44px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.button-primary, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px;
}
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-secondary { background: var(--raised); border: 1px solid var(--line); }
.tool-list a, .related-list a {
  align-items: center; padding: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--ink);
}
.related-card, .faq-card { margin-top: 24px; }
.faq-list { display: grid; gap: 8px; margin-top: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 16px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; font-size: 16px;
}
.faq-answer { display: none; padding: 0 16px 16px; }
.faq-item.open .faq-answer { display: block; }
.site-footer { background: var(--footer); color: var(--footer-muted); padding: 40px 0; }
.footer-grid { display: grid; gap: 24px; }
.site-footer strong, .site-footer h2 { color: var(--footer-ink); font-size: 16px; }
.site-footer a { color: var(--footer-ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-links { display: flex; flex-direction: column; }
.footer-note { margin: 8px 0 0; color: var(--footer-muted); }
.side-title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
@media (min-width: 768px) {
  .wrap { width: min(1260px, calc(100% - 48px)); }
  h1 { font-size: 40px; line-height: 48px; }
  .hero-card, .content-card, .cta-card { padding: 24px; }
  .info-grid, .factor-grid, .related-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .toc-toggle { display: none; }
  .toc-list { display: flex; }
  .guide-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .toc-card { position: sticky; top: 80px; }
  .related-list { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .guide-layout { grid-template-columns: 240px minmax(0, 1fr) 220px; }
  .tool-card { position: sticky; top: 80px; }
}
