:root {
  --ink: #102b26;
  --ink-2: #314c46;
  --muted: #687b76;
  --green: #087b5a;
  --green-deep: #075e48;
  --mint: #bfe8d9;
  --mint-light: #edf7f2;
  --cream: #f7f7f2;
  --yellow: #f5cc59;
  --white: #fff;
  --line: #dbe6e1;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(5,68,50,.1);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(247,247,242,.92); border-color: rgba(16,43,38,.08); box-shadow: 0 8px 30px rgba(16,43,38,.05); backdrop-filter: blur(18px); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 950; letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand small { margin-left: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.nav-links > li > a { position: relative; padding: 12px 0; font-size: 13px; font-weight: 800; }
.nav-links > li > a:not(.nav-cta)::after { content: ""; position: absolute; bottom: 6px; left: 0; width: 100%; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .2s; }
.nav-links > li > a:hover::after, .nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; padding: 11px 18px !important; border-radius: 999px; background: var(--ink); color: #fff; }
.nav-cta::after { content: "↗"; margin-left: 8px; }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.menu-button span { display: block; width: 18px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s; }

.page-hero { position: relative; padding: 156px 0 82px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: -270px; right: -170px; width: 670px; height: 670px; border-radius: 48% 52% 43% 57%; background: var(--mint); opacity: .72; transform: rotate(18deg); }
.hero-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 26px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumb a:hover { color: var(--green); }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.page-hero h1 { max-width: 880px; margin: 0; font-size: clamp(46px,7vw,80px); line-height: 1.08; letter-spacing: -.065em; }
.hero-lead { max-width: 700px; margin: 25px 0 0; color: var(--ink-2); font-size: 17px; }
.update { display: inline-flex; margin-top: 28px; padding: 6px 12px; border: 1px solid #c9dad3; border-radius: 999px; background: rgba(255,255,255,.65); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }

.support-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 70px; padding: 78px 0 112px; align-items: start; }
.toc { position: sticky; top: 112px; }
.toc-title { margin: 0 0 15px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.toc-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.toc-list a { display: flex; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; }
.toc-list a:hover { color: var(--green); }
.toc-note { margin: 22px 0 0; padding: 16px; border-radius: 13px; background: var(--mint-light); color: var(--muted); font-size: 11px; }
.content { min-width: 0; }

.manual-section { margin-bottom: 84px; scroll-margin-top: 105px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.manual-section:last-child { margin-bottom: 0; }
.chapter { display: inline-flex; margin-bottom: 13px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.manual-section h2 { margin: 0 0 15px; font-size: clamp(30px,4vw,44px); line-height: 1.2; letter-spacing: -.045em; }
.manual-section > p { max-width: 720px; margin: 0 0 28px; color: var(--muted); }
.steps { display: grid; gap: 22px; }
.step-card { display: grid; grid-template-columns: minmax(0,.8fr) minmax(280px,1.2fr); gap: 34px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 40px rgba(5,68,50,.05); }
.step-copy { align-self: start; padding-top: 8px; }
.step-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; }
.step-card h3 { margin: 0 0 11px; font-size: 21px; line-height: 1.4; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; }
.manual-image { display: flex; max-height: 520px; align-items: flex-start; justify-content: center; margin: 0; overflow: hidden; border-radius: 16px; background: var(--mint-light); }
.manual-image img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; object-position: top center; }
.tip { margin-top: 20px; padding: 18px 20px; border-left: 4px solid var(--yellow); border-radius: 0 13px 13px 0; background: #fff9e8; color: #6c5a27; font-size: 13px; }

.document-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 78px; padding: 75px 0 112px; align-items: start; }
.legal-document { min-width: 0; padding: 54px 58px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 14px 45px rgba(5,68,50,.055); }
.legal-document .intro { margin: 0 0 45px; padding: 22px 24px; border-radius: 14px; background: var(--mint-light); color: var(--ink-2); }
.legal-section { padding: 38px 0; border-top: 1px solid var(--line); scroll-margin-top: 105px; }
.legal-section:first-of-type { border-top: 0; }
.legal-section h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.45; letter-spacing: -.025em; }
.legal-section h3 { margin: 28px 0 10px; font-size: 16px; }
.legal-section p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.legal-section ul { margin: 14px 0 20px; padding-left: 1.3em; color: var(--ink-2); font-size: 14px; }
.legal-section li + li { margin-top: 9px; }
.contact-box { margin-top: 25px; padding: 22px; border-radius: 15px; background: var(--cream); }
.contact-box strong { display: block; margin-bottom: 7px; }
.contact-box a { color: var(--green); font-weight: 800; }
.doc-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.doc-switch a { padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; }
.doc-switch a.active { border-color: var(--green); background: var(--green); color: #fff; }

.site-footer { padding: 48px 0 26px; background: #0b2822; color: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 38px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 950; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 21px; color: rgba(255,255,255,.68); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: 11px; }

@media (max-width: 960px) {
  .menu-button { display: block; }
  .nav-links { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 100px 28px 50px; background: var(--cream); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .22s; }
  .nav-links.open { z-index: 99; opacity: 1; visibility: visible; transform: none; }
  .nav-links > li > a { display: block; font-size: 25px; }
  .nav-links .nav-cta { margin-top: 16px; font-size: 16px; }
  .menu-button { position: relative; z-index: 101; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .support-layout, .document-layout { grid-template-columns: 1fr; gap: 45px; }
  .toc { position: static; }
  .toc-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; border: 0; }
  .toc-list a { height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px),var(--max)); }
  .nav { height: 70px; }
  .brand small { display: none; }
  .page-hero { padding: 120px 0 62px; }
  .support-layout, .document-layout { padding: 55px 0 78px; }
  .toc-list { grid-template-columns: 1fr; }
  .step-card { grid-template-columns: 1fr; padding: 22px; }
  .manual-image { max-height: 440px; }
  .manual-image img { max-height: 440px; }
  .legal-document { padding: 30px 21px; border-radius: 18px; }
  .legal-section { padding: 31px 0; }
  .legal-section h2 { font-size: 21px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media print {
  .site-header, .page-hero::after, .toc, .site-footer { display: none; }
  .page-hero { padding: 20px 0; }
  .document-layout, .support-layout { display: block; padding: 0; }
  .manual-section { content-visibility: visible; contain-intrinsic-size: none; }
  .legal-document, .step-card { box-shadow: none; }
}

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