:root {
  --ink: #162033;
  --muted: #657085;
  --paper: #f4f6f8;
  --white: #ffffff;
  --navy: #10213a;
  --navy-2: #172e4d;
  --blue: #2b83ba;
  --blue-dark: #1b5c88;
  --orange: #f4a24c;
  --orange-dark: #cf6b2c;
  --line: #dbe2e9;
  --line-dark: #294563;
  --shadow: 0 18px 45px rgba(20, 35, 55, .12);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(16, 33, 58, .97); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 760; letter-spacing: .01em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .88rem; font-weight: 650; }
.site-nav a { color: #dce7f1; transition: color .18s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav .nav-cta { color: var(--navy); background: var(--orange); padding: 8px 15px; border-radius: 5px; }
.nav-toggle { display: none; color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .32); border-radius: 4px; padding: 6px 10px; }
.language-picker { position: relative; flex: 0 0 40px; color: white; border-bottom: 0; }
.language-picker summary { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid #738396; border-radius: 4px; list-style: none; }
.language-picker summary::after { display: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker img { width: 24px; height: 18px; object-fit: contain; flex-shrink: 0; }
.language-options { position: absolute; right: 0; top: 46px; z-index: 100; width: 230px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; background: #10213a; border: 1px solid #738396; border-radius: 6px; padding: 6px; box-shadow: 0 8px 24px #0005; }
.language-options button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; color: white; background: transparent; border: 0; text-align: left; cursor: pointer; }
.language-options button:hover, .language-options button[aria-pressed="true"] { background: #294563; }
.language-picker :focus-visible { outline: 2px solid #ffcf68; outline-offset: 2px; }
@media (max-width: 700px) { .header-inner:has(#language) { gap: 10px; } }
@media (min-width: 701px) { .header-inner:has(#language) { flex-wrap: wrap; gap: 14px; padding-block: 12px; } .header-inner:has(#language) .site-nav { flex-wrap: wrap; } }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-inner { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 50px; padding-top: 52px; padding-bottom: 52px; }
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.eyebrow { margin: 0 0 16px; color: #b8d7ed; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dark { color: var(--blue-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 820; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.17; letter-spacing: -.035em; font-weight: 790; }
h3 { margin-bottom: 8px; font-size: 1.1rem; line-height: 1.35; }
.hero-lede { max-width: 600px; margin-bottom: 28px; color: #dce7f1; font-size: 1.08rem; }
.hero-note { margin: 18px 0 0; color: #9fb4c9; font-size: .79rem; }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; padding: 9px 18px; font-weight: 750; font-size: .92rem; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--orange); }
.button-primary:hover, .button-primary:focus-visible { background: #ffc06f; }
.button-quiet { color: var(--white); border-color: #60758c; background: transparent; }
.button-quiet:hover, .button-quiet:focus-visible { border-color: #b8d7ed; background: #1a3351; }
.button-warm { color: var(--navy); background: var(--orange); }
.button-outline-light { color: var(--white); border-color: #6a8299; }
.button-outline-light:hover, .button-outline-light:focus-visible { border-color: var(--white); background: #1a3351; }
.button-secondary { color: var(--white); background: var(--blue-dark); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--blue); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--blue-dark); font-weight: 750; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

.hero-art { position: relative; justify-self: end; width: min(100%, 480px); }
.art-frame { position: relative; padding: 20px; border: 1px solid #36516f; background: #0c1a2f; box-shadow: 20px 24px 0 #0a1628; }
.art-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.art-caption { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: #c4d7e7; font-size: .87rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #5dcc8b; box-shadow: 0 0 0 4px rgba(93, 204, 139, .13); }
.hero-rule { border-top: 1px solid var(--line-dark); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; color: #afc2d4; font-size: .8rem; font-weight: 700; }

.section { padding: 112px 0; }
.section-light { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark { color: var(--white); background: var(--navy-2); }
.section-heading { max-width: 700px; }
.section-heading p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1rem; }
.section-heading-inverse p:not(.eyebrow) { color: #c5d5e3; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.feature-item { min-height: 250px; padding: 26px 28px 16px 0; border-bottom: 1px solid var(--line); }
.feature-item + .feature-item { padding-left: 28px; border-left: 1px solid var(--line); }
.feature-number, .card-label, .calculator-kicker { display: block; color: var(--orange-dark); font-size: .73rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.feature-item h3 { margin-top: 30px; }
.feature-item p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.cost-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: start; gap: 80px; }
.calculator { padding: 30px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.calculator-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 25px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.calculator-head h3 { margin: 0; font-size: 1.25rem; }
.calculator-kicker { color: var(--blue-dark); }
.input-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.number-input { display: flex; align-items: center; border: 1px solid #bbc9d5; background: var(--white); }
.number-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 131, 186, .14); }
.number-input input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 11px 14px; color: var(--ink); background: transparent; font-size: 1.3rem; font-weight: 750; }
.number-input span { padding-right: 14px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.estimate-result { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.estimate-result span { color: var(--muted); font-size: .84rem; }
.estimate-result strong { color: var(--blue-dark); font-size: 1.35rem; }
.fine-print { margin: 17px 0 0; color: #7a8595; font-size: .73rem; line-height: 1.6; }

.section-dark .section-heading { margin-bottom: 62px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #45627d; border-bottom: 1px solid #45627d; }
.step-item { display: grid; grid-template-columns: 44px 1fr; gap: 17px; min-height: 185px; padding: 27px 30px 25px 0; }
.step-item + .step-item { padding-left: 30px; border-left: 1px solid #45627d; }
.step-index { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); font-weight: 800; }
.step-item h3 { margin-top: 2px; }
.step-item p { margin: 0; color: #c5d5e3; font-size: .88rem; }
.section-dark .section-actions { margin-top: 30px; }

.manual-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.manual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.manual-card { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); background: var(--paper); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.manual-card:hover, .manual-card:focus-visible { border-color: #8bb7d5; transform: translateY(-3px); box-shadow: var(--shadow); }
.manual-card strong { font-size: 1.15rem; line-height: 1.35; }
.manual-card > span:last-child { color: var(--muted); font-size: .84rem; }

.faq-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 34px 20px 0; color: var(--ink); font-weight: 750; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 18px; right: 2px; color: var(--blue-dark); font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -5px 34px 20px 0; color: var(--muted); font-size: .9rem; }

.site-footer { color: #c6d3df; background: #0b1729; }
.footer-inner { min-height: 100px; display: flex; align-items: center; gap: 28px; }
.brand-footer { color: var(--white); font-size: .98rem; }
.brand-footer img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-left: auto; font-size: .82rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.footer-inner p { margin: 0 0 0 12px; color: #869ab0; font-size: .76rem; }

/* Documentation */
.docs-hero { padding: 72px 0 62px; color: var(--white); background: var(--navy); }
.docs-hero h1 { margin-bottom: 15px; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.docs-hero p { max-width: 680px; margin: 0; color: #c9d9e7; }
.docs-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; padding-top: 64px; padding-bottom: 100px; }
.docs-toc { align-self: start; position: sticky; top: 98px; padding: 18px 0; border-top: 2px solid var(--blue-dark); }
.docs-toc strong { display: block; margin-bottom: 12px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.docs-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: .84rem; }
.docs-toc a:hover, .docs-toc a:focus-visible { color: var(--blue-dark); }
.docs-content { min-width: 0; }
.docs-content section { padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.docs-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.docs-content h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.docs-content h3 { margin-top: 28px; font-size: 1.18rem; }
.docs-content p, .docs-content li { color: #4d5a6d; font-size: .94rem; }
.docs-content ul, .docs-content ol { padding-left: 1.4em; }
.docs-content li + li { margin-top: 8px; }
.callout { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--orange); background: #fff7eb; }
.callout p { margin: 0; color: #654b34; font-size: .88rem; }
.callout strong { color: #8d4e1f; }
.warning { border-left-color: #cb5b4e; background: #fff2f0; }
.warning p, .warning strong { color: #793d37; }
.code-block { overflow-x: auto; margin: 18px 0; padding: 17px 19px; color: #dceaf5; background: #132842; font: .82rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.value-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--white); font-size: .87rem; }
.value-table th, .value-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.value-table th { color: var(--ink); background: #edf2f6; font-size: .78rem; }
.value-table td code { color: var(--blue-dark); font: .8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.docs-back { display: inline-flex; gap: 8px; margin-top: 25px; color: #b8d7ed; font-size: .85rem; font-weight: 700; }
.docs-back:hover { color: var(--white); }
.docs-footer { margin-top: 0; }
.docs-shell:not(:has(.docs-toc)) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.docs-hero h1 { font-size: 4rem; overflow-wrap: anywhere; }
.docs-hero .button { margin-top: 25px; }
.docs-content h2 { font-size: 2.25rem; }
.docs-content, .docs-toc, .docs-hero { overflow-wrap: anywhere; }
[data-i18n-page="404"] .language-picker { margin-left: auto; }
@media (max-width: 700px) {
  .docs-hero h1 { font-size: 2.3rem; }
  .docs-content h2 { font-size: 1.7rem; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 72px; }
  .hero-art { justify-self: start; width: min(100%, 390px); margin-top: 22px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature-item:nth-child(3), .feature-item:nth-child(4) { border-top: 1px solid var(--line); }
  .cost-layout, .faq-layout { gap: 45px; }
  .docs-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid #294563; background: var(--navy); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; }
  .site-nav .nav-cta { margin-top: 7px; padding: 10px 14px; text-align: center; }
  .hero-inner { min-height: auto; padding-top: 58px; padding-bottom: 40px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  h2 { font-size: clamp(1.95rem, 10vw, 2.7rem); }
  .hero-lede { font-size: .99rem; }
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: .72rem; }
  .section { padding: 76px 0; }
  .feature-grid, .manual-grid, .steps { grid-template-columns: 1fr; }
  .feature-item, .feature-item + .feature-item { min-height: auto; padding: 24px 0; border-left: 0; }
  .feature-item + .feature-item { border-top: 1px solid var(--line); }
  .feature-item h3 { margin-top: 17px; }
  .cost-layout, .faq-layout { grid-template-columns: 1fr; gap: 35px; }
  .calculator { padding: 22px; }
  .section-dark .section-heading { margin-bottom: 38px; }
  .step-item, .step-item + .step-item { min-height: auto; padding: 22px 0; border-left: 0; }
  .step-item + .step-item { border-top: 1px solid #45627d; }
  .section-actions .button { width: 100%; }
  .manual-header { display: block; }
  .manual-header .button { margin-top: 20px; }
  .manual-card { min-height: 150px; }
  .footer-inner { min-height: 140px; flex-wrap: wrap; gap: 14px 24px; padding-top: 24px; padding-bottom: 24px; }
  .footer-links { margin-left: 0; }
  .footer-inner p { width: 100%; margin-left: 0; }
  .docs-hero { padding: 52px 0 44px; }
  .docs-shell { display: block; padding-top: 32px; }
  .docs-toc { position: static; margin-bottom: 45px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .docs-content section { padding-bottom: 42px; margin-bottom: 42px; }
  .value-table { display: block; overflow-x: auto; white-space: nowrap; }
  .value-table th, .value-table td { white-space: normal; min-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
