:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #121c2e;
  --surface-alt: #18253a;
  --line: #304056;
  --text: #f2f5f8;
  --muted: #a8b7c9;
  --accent: #a9bfff;
  --accent-ink: #101d45;
  --warm: #ff9e90;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.75; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 8px 16px; background: white; color: #111; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid #dce2eb; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: 232px; height: 56px; object-fit: cover; object-position: center; }
.footer-brand span { color: var(--warm); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; font-size: 13px; font-weight: 700; }
.site-nav a { padding: 12px 0; border-bottom: 2px solid transparent; color: #425068; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: #244ed3; color: #162d80; }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #ffffff20; background: radial-gradient(circle at 78% 35%, #263b61 0, transparent 35%), linear-gradient(135deg, #101d31 0%, #0b1120 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background: repeating-linear-gradient(135deg, transparent 0 18px, #9ab8ff 19px, transparent 20px 42px); mask-image: linear-gradient(90deg, transparent 50%, black 100%); }
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 430px; padding-block: 64px; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .22em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 36px; height: 1px; background: currentColor; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.22; font-weight: 900; letter-spacing: -.05em; }
h1 span { color: var(--accent); }
.hero-description { max-width: 625px; margin: 26px 0 22px; color: #c5d2de; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-meta span { padding: 5px 10px; border: 1px solid #506079; border-radius: 3px; color: #c7d5df; font-size: 11px; font-weight: 700; }
.hero-decoration { position: relative; z-index: 1; flex: 0 0 195px; display: grid; justify-items: end; color: #ffffff1c; }
.deco-number { font-family: Georgia, serif; font-size: 220px; font-weight: 900; line-height: .8; letter-spacing: -.12em; }
.deco-line { width: 125px; height: 2px; margin: 24px 0 16px; background: var(--warm); transform: rotate(-20deg); }
.deco-label { color: #b6cbd2; font-size: 11px; line-height: 1.5; letter-spacing: .2em; text-align: right; }
.content-wrap { padding-block: 42px 110px; }
.section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; margin-bottom: 29px; }
.section-kicker { margin-bottom: 7px; color: var(--warm); font-size: 11px; }
h2 { margin: 0; font-size: clamp(25px, 3vw, 33px); line-height: 1.35; letter-spacing: -.04em; }
h3 { margin: 0 0 5px; font-size: 18px; }
p { margin-top: 0; }
.version-badge { padding: 5px 12px; border: 1px solid #6889db; border-radius: 100px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.download-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 32px; border: 1px solid #6889db; background: linear-gradient(115deg, #1e3154, #152639 58%, #142033); box-shadow: 0 18px 55px #00000022; }
.download-card-main { display: flex; align-items: center; gap: 20px; }
.download-card h3 { margin-bottom: 0; font-size: 25px; }
.download-card p { margin: 2px 0; color: #c8d9df; font-size: 13px; }
.download-card .file-name { color: var(--accent); font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.file-symbol { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 76px; border: 2px solid var(--accent); color: var(--accent); font-family: Consolas, monospace; font-size: 14px; font-weight: 800; }
.file-symbol::before { content: ""; position: absolute; top: -2px; right: -2px; width: 15px; height: 15px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); background: #1e3154; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 10px 22px; border: 1px solid currentColor; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s, background-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #c9d6ff; }
.button-outline { color: var(--accent); }
.button-outline:hover { background: #a9bfff25; }
.button span { font-size: 20px; line-height: 1; }
.download-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 15px; }
.download-links a, .text-link { color: var(--accent); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.download-links a:hover, .text-link:hover { color: white; }
.steps { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 24px 2px; border-bottom: 1px solid var(--line); }
.steps p, .info-card p, .archive-row p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.step-number { color: var(--accent); font-family: Georgia, serif; font-size: 28px; font-style: italic; line-height: 1.35; }
.section-action { margin: 24px 0 0; }
code { padding: 2px 5px; border: 1px solid #3a4d62; border-radius: 3px; background: #0b1726; color: #ccd8ff; font-size: .88em; overflow-wrap: anywhere; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { min-height: 155px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.home-intro { max-width: 850px; margin-bottom: 0; color: #d5e0ea; font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 210px; padding: 25px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), #101a2a); }
.feature-card h3 { margin-top: 18px; }
.feature-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.feature-number { color: var(--accent); font-family: Georgia, serif; font-size: 25px; font-style: italic; }
.archive-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.archive-row.home-guide-card { border-color: #526a94; background: linear-gradient(115deg, #182946, #121c2e); }
.archive-row strong { font-size: 18px; }
.archive-row p { margin-top: 4px; }
.small-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.license-section { border-bottom: none; }
.license-section > p { max-width: 840px; color: var(--muted); font-size: 14px; }
.checksum { padding: 14px 0; margin-top: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.checksum summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.checksum p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.checksum code { display: block; width: fit-content; max-width: 100%; margin-top: 12px; padding: 10px; user-select: all; }
.site-footer { border-top: 1px solid var(--line); background: #080e19; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px; color: var(--muted); font-size: 12px; }
.footer-brand { color: white; font-weight: 800; letter-spacing: .12em; }
.page-heading { max-width: 850px; padding: 32px 0 52px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(38px, 5vw, 64px); }
.page-heading h1 span { color: var(--accent); }
.page-heading > p:last-child { margin: 22px 0 0; color: var(--muted); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--accent); text-underline-offset: 4px; }
.release-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.release-card h3 { font-size: 26px; }
.release-card h3 a { text-decoration: none; }
.release-card h3 a:hover { color: var(--accent); }
.release-card p:last-child { max-width: 710px; margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.release-label { margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.release-notice { margin-top: 40px; padding: 25px 30px; border-left: 4px solid var(--warm); background: var(--surface-alt); }
.release-notice h2 { font-size: 22px; }
.release-notice p { max-width: 780px; margin: 10px 0 0; color: #d5e0ea; }
.release-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.release-list li { padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); }
.release-list strong { font-size: 16px; }
.release-list p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.release-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 45px; }
.manual-toc { width: fit-content; max-width: 100%; margin: 42px 0 8px; padding: 24px 30px; border: 1px solid var(--line); background: var(--surface); }
.manual-chapter-nav { padding: 58px 0; border-bottom: 1px solid var(--line); }
.manual-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.manual-chapter-card { display: flex; flex-direction: column; min-height: 245px; padding: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), #101a2a); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background-color .2s; }
.manual-chapter-card:hover { border-color: #6889db; background: var(--surface-alt); transform: translateY(-2px); }
.manual-chapter-card-current { border-color: #8ca6ec; background: linear-gradient(145deg, #1b2e50, #121c2e); }
.manual-chapter-label { color: var(--warm); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.manual-chapter-card h3 { margin-top: 15px; }
.manual-chapter-card p { margin: 7px 0 20px; color: var(--muted); font-size: 13px; }
.manual-chapter-link { margin-top: auto; color: var(--accent); font-size: 12px; font-weight: 800; }
.manual-toc strong { color: var(--accent); }
.manual-toc ol { margin: 12px 0 0; padding-left: 22px; }
.manual-toc li { padding: 3px 0; }
.manual-toc a { color: var(--text); text-underline-offset: 4px; }
.manual-toc a:hover { color: var(--accent); }
.manual-step > h2 { margin: 0 0 18px; }
.manual-step > p:not(.section-kicker):not(.small-note):not(.section-action) { max-width: 850px; color: #d5e0ea; }
.manual-figure { max-width: 100%; margin: 27px 0 0; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.manual-figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.manual-figure video { display: block; width: 100%; height: auto; background: #000; }
.manual-figure figcaption { margin: 11px 3px 0; color: var(--muted); font-size: 13px; }
.manual-step h3 { margin-top: 30px; }
.manual-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin-top: 27px; }
.manual-option-grid .manual-figure { margin: 0; }
.manual-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.manual-preview-grid .manual-figure { margin: 0; }
.manual-figure-compact img { width: auto; max-width: 100%; margin: 0 auto; }
.manual-figure-compact { max-width: 720px; }
.manual-ordered { display: grid; gap: 13px; max-width: 850px; margin: 18px 0 0; padding-left: 26px; color: #d5e0ea; }
.manual-ordered li { padding-left: 5px; }
.manual-ordered li::marker { color: var(--accent); font-weight: 800; }
.manual-table-wrap { max-width: 850px; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.manual-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
.manual-table th, .manual-table td { padding: 11px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.manual-table th { background: var(--surface-alt); color: var(--accent); font-weight: 800; }
.manual-table th:first-child, .manual-table td:first-child { text-align: center; }
.manual-table th:last-child, .manual-table td:last-child { border-right: 0; }
.manual-table tbody tr:last-child td { border-bottom: 0; }
.manual-subheading { margin: 40px 0 14px; font-size: 22px; }
kbd { padding: 2px 6px; border: 1px solid #65758b; border-radius: 3px; background: var(--surface-alt); color: var(--text); font: inherit; font-size: .88em; }
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1120px); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 14px 3px; }
  .site-nav { gap: 4px 16px; font-size: 12px; }
  .site-nav a { padding: 9px 0; }
  .hero-inner { min-height: auto; padding-block: 65px; }
  .hero-decoration { display: none; }
  .hero-description { font-size: 14px; }
  .section { padding-block: 45px; }
  .download-card { padding: 22px; }
  .download-card .button { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .release-list { grid-template-columns: 1fr; }
  .page-heading { padding-top: 22px; }
  .manual-toc { padding: 18px 21px; }
  .manual-chapter-nav { padding-block: 45px; }
  .manual-chapter-grid { grid-template-columns: 1fr; }
  .manual-figure { padding: 8px; }
  .manual-option-grid { grid-template-columns: 1fr; }
  .manual-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .hero-actions .button { width: 100%; }
  .download-card-main { align-items: flex-start; gap: 13px; }
  .download-card h3 { font-size: 21px; }
  .file-symbol { width: 47px; height: 58px; font-size: 11px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 8px; }
  .step-number { font-size: 22px; }
  .footer-inner { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
