@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-sans.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-serif-display.woff2') format('woff2');
}
:root {
    --ink: #202c4c;
    --muted: #5d6580;
    --accent: #2447c5;
    --line: #dce1ef;
    --soft: #f3f5fc;
    color: var(--ink);
    background: #fff;
    font-family: 'DM Sans', system-ui, sans-serif;
    line-height: 1.7;
    font-synthesis: weight;
    scroll-padding-top: 32px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #142b7e; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; }
.language-menu { position: relative; }
.language-menu > summary { list-style: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--muted); }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.language-menu nav { position: absolute; z-index: 2; top: 48px; right: 0; display: grid; grid-template-columns: 1fr 1fr; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #202c4c20; }
.language-menu nav a { padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.language-menu nav a:hover, .language-menu nav a[aria-current="page"] { background: var(--soft); color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-divider { color: #8992b0; margin-inline: 8px; font-weight: 400; }
.brand-help { color: var(--muted); font-weight: 400; }
.hero { background: #e7ebff; border-block: 1px solid #d9dff8; padding: 52px 0 40px; }
.eyebrow, .step-label, .contents-title, .example-label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; color: #405498; }
h1, h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(44px, 6vw, 68px); margin: 0 0 18px; letter-spacing: -.025em; }
.intro { margin: 0 0 24px; font-size: 21px; line-height: 1.6; }
.platform-note { color: #535f80; font-size: 13px; margin: 0; }
.pro-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.guide-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 52px; }
.contents { position: sticky; top: 30px; font-size: 14px; padding-right: 22px; }
.contents-title { color: var(--muted); margin: 0 0 16px; }
.contents ol { margin: 0 0 20px; padding-left: 22px; }
.contents li { padding-left: 3px; margin-bottom: 10px; color: #7783a5; }
.contents a { color: var(--muted); text-decoration: none; }
.contents a:hover, .contents a:focus-visible { color: var(--accent); text-decoration: underline; }
.contents-extra { display: block; margin: 9px 0; }
main { min-width: 0; font-size: 17px; }
.guide-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.first-section { padding-top: 0; }
.step-label { margin: 0 0 12px; color: var(--accent); }
h2 { font-size: clamp(29px, 3vw, 36px); margin: 0 0 24px; letter-spacing: -.015em; }
h3 { font-size: 19px; line-height: 1.45; margin: 28px 0 12px; }
p { margin: 0 0 18px; }
.guide-section > :last-child, .detail-body > :last-child, .example > :last-child { margin-bottom: 0; }
.steps { padding-left: 24px; margin: 20px 0; }
.steps li { padding-left: 6px; margin-bottom: 14px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.example { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin: 28px 0; }
.example-label { color: var(--muted); margin-bottom: 10px; }
.example p:not(.example-label) { font-size: 16px; }
.example-result { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.example-result > span { font-size: 14px; color: var(--muted); }
.example-result > strong { font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.example-result small { color: var(--muted); font-size: 13px; font-weight: 400; }
.note { background: #f5f6fc; border-left: 3px solid #8b9fe8; padding: 16px 20px; margin: 24px 0; font-size: 15px; }
.quiet { color: var(--muted); font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 28px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; text-align: left; }
caption { text-align: left; font-weight: 700; font-size: 16px; padding-bottom: 12px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
thead { background: var(--soft); }
tbody th { width: 22%; }
tbody td { width: 39%; }
.pro-label { display: inline-block; font: 700 10px/1.5 'DM Sans', system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #594794; background: #efebfa; border-radius: 4px; padding: 2px 7px; vertical-align: middle; margin-left: 6px; }
.guide-section details { margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.guide-section summary { padding: 17px 20px; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.55; }
.guide-section summary::marker { color: #7886b6; }
.guide-section details[open] > summary { border-bottom: 1px solid var(--line); background: var(--soft); border-radius: 8px 8px 0 0; }
.detail-body { padding: 20px; font-size: 15px; }
.detail-body .steps { margin-top: 0; }
.further-reading { font-size: 15px; }
.platform-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; margin-top: -4px; }
.platforms { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.platform-badge { display: inline-flex; align-items: center; color: var(--muted); }
.platform-icon { width: 18px; height: 22px; fill: currentColor; flex-shrink: 0; }
.platform-icon-android { width: 26px; }
.platform-icon-ios, .platform-icon-macos, .platform-icon-watch { width: 26px; height: 26px; }
.platform-tools { margin: 0; }
.platform-tools > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.platform-tools > div:last-child { border-bottom: 0; padding-bottom: 0; }
.platform-tools dt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 16px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.platform-tools dd { margin: 0; font-size: 15px; }
.help-footer { padding: 44px 0 60px; }
.help-footer h2 { font-size: 30px; margin-bottom: 16px; }
.help-footer p { font-size: 16px; }
.back-to-top { display: inline-block; margin-top: 10px; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 26px; color: var(--muted); font-size: 12px; }
.skip-link { position: absolute; left: 20px; top: -100px; background: white; padding: 12px 20px; z-index: 1; }
.skip-link:focus { top: 12px; }
@media (max-width: 860px) {
    .guide-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 32px; }
    .contents { position: static; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
    .contents ol { columns: 2; column-gap: 36px; margin-bottom: 12px; }
    .contents li { break-inside: avoid; }
    .contents-extra { display: inline-block; padding-block: 6px; margin: 0 24px 8px 0; }
    main { max-width: 720px; }
}
@media (max-width: 540px) {
    .wrap { width: calc(100% - 40px); }
    .site-header { min-height: 72px; gap: 8px; }
    .brand { font-size: 16px; gap: 8px; }
    .brand img { width: 30px; height: 30px; }
    .brand-divider { margin-inline: 4px; }
    .hero { padding: 34px 0 30px; }
    .eyebrow { font-size: 10px; }
    .intro { font-size: 18px; margin-bottom: 18px; }
    .desktop-break { display: none; }
    .platform-note { font-size: 12px; }
    .contents ol { columns: 1; }
    main { font-size: 16px; }
    .guide-section { padding-block: 32px; }
    .first-section { padding-top: 0; }
    .example { padding: 18px; }
    .example-result { flex-wrap: wrap; gap: 2px 14px; }
    th, td { padding: 10px 8px; }
    tbody th { width: 28%; }
    tbody td { width: 36%; }
    table { font-size: 13px; }
    .guide-section summary { padding: 16px; font-size: 15px; }
    .detail-body { padding: 16px; }
    .platform-tools dt > .platforms { flex-basis: 100%; }
    .site-footer { flex-direction: column; gap: 8px; }
}
@media print {
    :root { color: #000; font-size: 11pt; }
    .wrap { width: 100%; }
    .site-header, .contents, .site-footer, .skip-link, .back-to-top { display: none; }
    .hero { padding: 0 0 20px; background: none; }
    .guide-layout { display: block; padding-top: 24px; }
    .guide-section { padding-block: 24px; }
    h2, h3 { break-after: avoid; }
    .example, tr { break-inside: avoid; }
}
