:root {
  color-scheme: light dark;
  --page: #fff;
  --wash: #f5f8ff;
  --stage: #eaf1ff;
  --ink: #0f172a;
  --body: #34445e;
  --muted: #52627b;
  --line: #dbe4f2;
  --edge: #7284a0;
  --blue: #2563eb;
  --link: #1d4ed8;
  --solid: #2563eb;
  --solid-hover: #1d4ed8;
  --on-solid: #fff;
  --shadow: 0 22px 60px #102c6220, 0 2px 8px #102c6210;
  --radius: 20px;
  --sans: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #101a2b;
    --wash: #152239;
    --stage: #1a2b49;
    --ink: #f0f5ff;
    --body: #d3dff2;
    --muted: #aec0df;
    --line: #354664;
    --edge: #8ca4ca;
    --blue: #8cb5ff;
    --link: #a4c4ff;
    --solid: #97bbff;
    --solid-hover: #bfd5ff;
    --on-solid: #10203e;
    --shadow: 0 22px 60px #0006, 0 2px 8px #0003;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--page); color: var(--body); font: 1rem/1.85 var(--sans); overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, strong, th { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -.025em; margin: 0 0 .65em; }
h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.42rem, 3vw, 2.35rem); }
h3 { font-size: 1.13rem; }
p, ul, ol, dl { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.shell { width: min(1220px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; inset: 12px auto auto 12px; z-index: 10; transform: translateY(-200%); padding: .65rem 1rem; background: var(--page); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.mast { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 750; line-height: 1.35; }
.brand-mark { flex: 0 0 42px; width: 42px; height: 42px; }
.primary-nav, .menu-links { display: flex; align-items: center; gap: .2rem; }
.primary-nav a, .nav-menu summary, .menu-links a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: var(--body); text-decoration: none; font-size: .9rem; font-weight: 650; border-radius: 8px; }
.primary-nav a:hover, .nav-menu summary:hover, .menu-links a:hover, .primary-nav [aria-current], .menu-links [aria-current] { background: var(--wash); color: var(--link); text-decoration: underline; }
.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; gap: .5rem; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.menu-links { position: absolute; z-index: 4; inset: calc(100% + 7px) 0 auto auto; align-items: stretch; flex-direction: column; width: max-content; max-width: calc(100vw - 28px); padding: .45rem; background: var(--page); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.mobile-nav { display: none; }
.review-banner { background: var(--wash); color: var(--muted); border-bottom: 1px solid var(--line); font-size: .83rem; }
.review-banner .shell { display: flex; align-items: baseline; padding-block: .62rem; gap: .45rem 1rem; }
.review-banner strong { color: var(--link); flex-shrink: 0; }
.eyebrow { color: var(--link); font-size: .83rem; line-height: 1.5; font-weight: 750; letter-spacing: .07em; }
.lead { font-size: clamp(1rem, 2vw, 1.22rem); max-width: 42em; }
.muted, .caption, figcaption { color: var(--muted); font-size: .87rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 46px; padding: .6rem 1rem; border: 1px solid transparent; border-radius: 10px; background: var(--solid); color: var(--on-solid); text-decoration: none; font-weight: 700; line-height: 1.45; }
.button:hover { background: var(--solid-hover); text-decoration: underline; }
.button.secondary { border-color: var(--edge); background: var(--page); color: var(--link); }
.button.secondary:hover { background: var(--wash); }
button:disabled, .button[aria-disabled="true"] { background: var(--wash); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.text-link { font-weight: 650; }
.hero { background: linear-gradient(180deg, var(--page), var(--wash)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(60px, 7.5vw, 108px); }
.hero h1 { font-size: clamp(2.15rem, 3.9vw, 3.45rem); line-height: 1.23; letter-spacing: -.065em; margin-bottom: .48em; }
.hero h1 span { color: var(--link); }
.hero-copy .lead { margin-bottom: 1.65rem; }
.hero-copy .caption { margin-top: .9rem; }
.hero-figure, .screen-card { margin: 0; min-width: 0; }
.hero-figure { padding: clamp(10px, 2vw, 25px); border: 1px solid var(--line); border-radius: 24px; background: var(--stage); }
.preview-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .65rem; color: var(--body); padding: 0 .1rem .65rem; font-size: .76rem; }
.preview-bar strong { line-height: 1.4; }
.screen-link { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f3f5f7; }
.hero-figure .screen-link { box-shadow: var(--shadow); }
.hero-figure img { width: 100%; }
.hero-figure figcaption { margin: .7rem .15rem 0; }
.home-section { padding-block: clamp(54px, 7vw, 96px); }
.home-section.tinted { background: var(--wash); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(22px, 3.4vw, 42px); max-width: 53rem; }
.section-head h2 { margin-bottom: .38em; }
.cards, .plan-grid, .screen-grid, .steps { display: grid; gap: 16px; }
.cards, .screen-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cards > *, .panel, .caution, .plan, .screen-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); }
.cards > *, .plan, .panel, .caution { padding: clamp(17px, 3vw, 30px); }
.feature-cards h3 { margin-bottom: .45rem; }
.feature-cards p { margin: 0; }
.feature-cards h3::before { content: ""; display: block; width: 18px; height: 4px; background: var(--blue); border-radius: 9px; margin-bottom: .95rem; }
.screen-card { padding: 14px; }
.screen-card figcaption { padding: .85rem .2rem .2rem; }
.screen-card figcaption strong { display: block; font-size: .98rem; }
.screen-card .screen-link { display: grid; place-items: start center; background: #f8f8f8; }
.screen-card img { width: auto; max-height: 310px; }
.steps { grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; counter-reset: workflow; }
.steps li { counter-increment: workflow; border-top: 2px solid var(--line); padding: 1.1rem .4rem .5rem 0; }
.steps li::before { content: counter(workflow, decimal-leading-zero); display: block; color: var(--link); font-weight: 750; font-size: .85rem; margin-bottom: .6rem; }
.plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 1.35rem; }
.plan.featured { border: 1px solid var(--blue); box-shadow: var(--shadow); }
.plan h3 { margin: 0; }
.plan-price { color: var(--ink); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.25; margin: .32em 0; }
.plan-price small { color: var(--body); font-size: .95rem; font-weight: 650; }
.plan ul { padding-inline-start: 1.2rem; margin-bottom: 0; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1rem; }
.status-grid p { margin-bottom: .5rem; }
#status + #delivery-details { margin-top: clamp(30px, 5vw, 68px); }
.home .after-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: clamp(24px, 5vw, 72px); }
.document { padding-block: clamp(42px, 7vw, 85px); }
.document:not(.manual) { max-width: 920px; }
.document.legal { max-width: 800px; }
.page-intro { padding-bottom: 1.9rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.document .page-intro h1 { font-size: clamp(2rem, 5vw, 3.55rem); }
.document section + section { margin-top: 2.15rem; }
.document section[id] { scroll-margin-top: 1.2rem; }
.document section > h2 { font-size: clamp(1.32rem, 2.8vw, 1.78rem); }
.panel, .caution { background: var(--wash); margin-block: 1rem; }
.table-scroll, .table-wrap { overflow-x: auto; max-width: 100%; margin-block: .75rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; text-align: start; font-size: .93rem; }
caption { text-align: start; padding: .7rem .95rem; color: var(--muted); }
th, td { border-top: 1px solid var(--line); text-align: start; padding: .75rem .95rem; }
thead { background: var(--wash); }
details:not(.nav-menu) > summary { cursor: pointer; padding: .7rem 0; color: var(--link); font-weight: 750; }
details:not(.nav-menu) { border-bottom: 1px solid var(--line); }
details:not(.nav-menu)[open] { padding-bottom: .85rem; }
.manual-layout { display: grid; grid-template-columns: minmax(210px,.31fr) minmax(0,1fr); gap: clamp(20px,5vw,72px); align-items: start; }
.manual-toc { position: sticky; top: 1.2rem; max-height: calc(100vh - 2.4rem); overflow-y: auto; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: .5rem .85rem 1rem; }
.manual-toc nav ul { list-style: none; margin: 0; padding: 0; }
.manual-toc a { display: block; font-size: .86rem; padding: .36rem; }
.manual-copy { min-width: 0; max-width: 78ch; }
.manual-copy section { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.site-footer { background: var(--wash); border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: 1.35fr repeat(2,1fr); gap: 22px 36px; padding-block: 2.5rem; }
.footer-row nav { display: grid; gap: .2rem; align-content: start; }
.footer-row nav a { width: fit-content; }
.footer-row p { margin: .55rem 0 0; }
.footer-row .footer-meta { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: .9rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 43rem; }
  .primary-nav { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .mast { min-height: 62px; }
  .mast .brand { font-size: .83rem; }
  .review-banner .shell { flex-direction: column; gap: .06rem; line-height: 1.6; }
  .hero-grid { padding-block: 42px; gap: 24px; }
  .hero h1 { letter-spacing: -.05em; }
  .hero-copy .lead { margin-bottom: 1.15rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .screen-grid, .manual-layout, .home .after-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manual-toc { position: static; max-height: 260px; }
  .footer-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
  .footer-identity { grid-column: 1/-1; }
}
@media (max-width: 420px) {
  .plan-grid, .status-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .16s ease, color .16s ease; }
}
@media (forced-colors: active) {
  .button, .screen-link { border: 1px solid ButtonText; }
}

.screen-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen-card .screen-link { min-height: 160px; align-items: center; }
@media (max-width: 700px) {
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card .screen-link { min-height: 0; }
}
