.lg-hero { padding-bottom: 48px; }
.lg-hero .lg-up { margin-top: 12px; color: var(--tx3); font-size: 14px; line-height: 20px; }
.lg { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 32px; }
.lg-toc { position: sticky; top: 96px; max-height: calc(100vh - 128px); overflow: auto; }
.lg-toc h2 { margin-bottom: 12px; color: var(--tx3); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lg-toc nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.lg-toc a { margin-left: -1px; padding: 4px 12px; border-left: 1px solid transparent; color: var(--tx2); font-size: 14px; line-height: 20px; text-decoration: none; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.lg-toc a:hover { color: var(--tx); border-left-color: var(--acc); }
.lg-toc a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.lg-prose { max-width: 720px; color: #e4e4e4; font-size: 16px; line-height: 28px; }
.lg-prose section { scroll-margin-top: 96px; }
.lg-prose section + section { margin-top: 48px; }
.lg-prose h2 { margin-bottom: 12px; color: #f7f7f7; font: 700 24px/32px "Geist", "Geist", sans-serif; letter-spacing: -0.02em; text-wrap: balance; }
.lg-prose h3 { margin: 24px 0 8px; color: #f7f7f7; font-size: 18px; line-height: 28px; font-weight: 600; }
.lg-prose p + p, .lg-prose p + ul, .lg-prose ul + p, .lg-prose ol + p, .lg-prose p + ol, .lg-prose table + p, .lg-prose p + table { margin-top: 12px; }
.lg-prose ul, .lg-prose ol, .ap-faq details > ul { padding-left: 20px; list-style: disc; }
.lg-prose ol { list-style: decimal; }
.lg-prose li + li { margin-top: 8px; }
.lg-prose li::marker { color: var(--tx3); }
.lg-prose strong { color: #f7f7f7; font-weight: 600; }
.lg-prose a { color: var(--acc); text-underline-offset: 3px; }
.lg-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.lg-prose th, .lg-prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lg-prose th { color: #f7f7f7; background: var(--card); }
.pc-chart { margin: 0 0 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: #e4e4e4; }
.pc-chart svg { display: block; width: 100%; max-width: 480px; height: auto; overflow: visible; }
@media (max-width: 560px) { .pc-chart { padding: 16px; } }
.pc-chart figcaption { margin-top: 12px; color: #b9b9b9; font-size: 14px; line-height: 20px; }
.lg-sum { margin-bottom: 48px; padding: 24px; border: 1px solid rgba(var(--g), 0.32); border-radius: 16px; background: rgba(var(--g), 0.06); }
.lg-sum h2 { font-size: 20px; line-height: 28px; }
.fq section { scroll-margin-top: 96px; }
.fq section + section { margin-top: 48px; }
.fq h2 { margin-bottom: 16px; color: #f7f7f7; font: 700 24px/32px "Geist", "Geist", sans-serif; letter-spacing: -0.02em; }
.fq .ws-faq { max-width: none; margin: 0; }
.ab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.ab h2 { color: #f7f7f7; font: 700 48px/1.08 "Geist", "Geist", sans-serif; letter-spacing: -0.03em; }
.ab p { color: var(--tx2); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.ab p + p { margin-top: 16px; }
.ct-hero { padding-bottom: 48px; }
.ct { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.ct-card { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.ct-card > h2 { margin-bottom: 8px; color: #f7f7f7; font: 700 24px/32px "Geist", "Geist", sans-serif; letter-spacing: -0.02em; }
.ct-card form { display: grid; gap: 8px; }
.ct-card label { margin-top: 12px; color: var(--tx); font-size: 14px; line-height: 20px; font-weight: 600; }
.ct-card .field { width: 100%; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); color: var(--tx); font: inherit; font-size: 16px; line-height: 24px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.ct-card select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a2a7b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.ct-card textarea.field { min-height: 144px; resize: vertical; }
.ct-card .field:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--g), 0.32); }
.ct-card .hint { color: var(--tx3); font-size: 14px; line-height: 20px; }
.ct-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-card .form-err { color: var(--risk); font-size: 14px; line-height: 20px; }
.ct-card .notice { margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(var(--g), 0.12); color: #e5e5e4; font-size: 14px; line-height: 20px; }
.ct-card .ct-send { justify-content: center; width: 100%; margin-top: 16px; border: 0; cursor: pointer; font: inherit; }
.ct-side { display: grid; gap: 16px; padding-top: 32px; }
.ct-side p { padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--tx2); font-size: 16px; line-height: 24px; }
.ct-side a { color: var(--acc); }
.nf { padding: 128px 0 96px; }
.nf .nf__code { max-width: none; margin: 0 auto; color: transparent; font: 700 128px/1 "Geist", "Geist", sans-serif; letter-spacing: -0.05em; -webkit-text-stroke: 1px rgba(var(--g), 0.72); }
.nf h1 { margin-top: 16px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 40px; }
.nf__links a { color: var(--tx2); font-size: 14px; line-height: 20px; text-decoration: none; }
.nf__links a:hover { color: var(--tx); }
.ap-hero { padding-bottom: 32px; }
.ap-crumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; color: var(--tx3); font-size: 14px; line-height: 20px; }
.ap-crumb a { color: var(--tx2); text-decoration: none; }
.ap-crumb a:hover { color: var(--tx); }
.ap-crumb [aria-current] { color: var(--tx); }
.ap-hero h1 { max-width: 880px; margin: 0 auto; }
.ap-why { padding-top: 32px; }
.ap-ex { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.ap-ex__tx h2 { margin-top: 0; color: #f7f7f7; font: 700 36px/40px "Geist", "Geist", sans-serif; letter-spacing: -0.03em; text-wrap: balance; }
.ap-ex__tx > p { margin-top: 12px; color: var(--tx2); font-size: 16px; line-height: 24px; }
.ap-ex__tx .ws-tick { margin-top: 24px; }
.ap-ex__code { min-width: 0; }
.ap-ex__code [role="tabpanel"] { display: grid; gap: 12px; margin-top: 12px; }
.ap-ex__code [role="tabpanel"][hidden] { display: none; }
.ap-code small { display: block; padding: 8px 16px 0; color: var(--tx3); font: 500 12px/16px "Geist Mono", monospace; }
.ap-code pre .k { color: #e4e4e4; }
.ap-code pre .s { color: #9fdcb9; }
.ap-code pre .n { color: #f4c58a; }
.ap-code pre .c { color: var(--tx3); }
.ws .ap-tbl th, .ws .ap-tbl td { text-align: left; vertical-align: top; }
.ws .ap-tbl td:first-child { color: #f7f7f7; font-weight: 600; }
.ws .ap-tbl td:last-child, .ws .ap-tbl th:last-child { color: #e5e5e4; background: rgba(var(--g), 0.06); }
.ap-faq details > p, .ap-faq details > ul { padding: 0 16px 16px; color: var(--tx2); font-size: 16px; line-height: 24px; }
.ap-faq details > ul { padding-left: 36px; }
.ap-faq code { font: 500 14px/20px "Geist Mono", monospace; color: #e5e5e4; }
.wp-more a b:only-of-type { margin-bottom: 0; }
@media (max-width: 860px) {
  .lg { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lg-toc { position: static; max-height: none; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
  .lg-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .lg-toc a { margin-left: 0; padding: 4px 0; border-left: 0; }
  .ab, .ct, .ap-ex { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ct-side { padding-top: 0; }
}
@media (max-width: 640px) {
  .lg-toc nav { grid-template-columns: minmax(0, 1fr); }
  .ab h2 { font-size: 36px; line-height: 40px; }
  .ab p { font-size: 16px; line-height: 24px; }
  .ct-card { padding: 24px 16px; border-radius: 16px; }
  .nf { padding: 96px 0 64px; }
  .nf .nf__code { font-size: 96px; }
  .ap-ex__tx h2 { font-size: 30px; line-height: 36px; }
}
.ws .lg-prose th,.ws .lg-prose td{white-space:normal;text-align:left}
.ws .lg-prose tbody td{color:#e4e4e4;font-weight:400}
.lg-prose pre { margin: 14px 0; padding: 16px 18px; border: 1px solid rgba(243, 243, 243, .1); border-radius: 14px; background: #222; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; line-height: 21px; }
.lg-prose pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; color: #f3f3f3; background: none; padding: 0; }
.lg-prose p code, .lg-prose td code, .lg-prose li code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; padding: 1px 6px; border-radius: 6px; background: rgba(243, 243, 243, .08); }
.lg-prose pre + p { margin-top: 12px; }
@media (max-width: 700px) { .lg-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .lg-prose th, .lg-prose td { min-width: 120px; } }
@media (max-width: 640px) {
  .lg-prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lg-prose table.is-stack, .lg-prose table.is-stack tbody, .lg-prose table.is-stack tr, .lg-prose table.is-stack td { display: block; width: 100%; }
  .lg-prose table.is-stack { overflow: visible; }
  .lg-prose table.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-prose table.is-stack tr { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
  .lg-prose table.is-stack tr + tr { margin-top: 8px; }
  .lg-prose table.is-stack td { padding: 8px 12px; border: 0; border-top: 1px solid var(--line); }
  .lg-prose table.is-stack td:first-child { border-top: 0; color: #f7f7f7; font-weight: 600; }
  .lg-prose table.is-stack td[data-label]::before { content: attr(data-label); display: block; color: var(--tx3); font-size: 12px; line-height: 16px; font-weight: 500; }
}
.lg-toc__btn { display: none; }
@media (max-width: 860px) {
  .lg-toc.is-fold h2 { display: none; }
  .lg-toc.is-fold .lg-toc__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: -12px 0; padding: 0; border: 0; background: none; color: var(--tx3); font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
  .lg-toc.is-fold .lg-toc__btn::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
  .lg-toc.is-fold.is-open .lg-toc__btn::after { transform: translateY(2px) rotate(-135deg); }
  .lg-toc.is-fold .lg-toc__btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 8px; }
  .lg-toc.is-fold nav { display: none; }
  .lg-toc.is-fold.is-open nav { display: grid; margin-top: 16px; }
}
@media (pointer: coarse) {
  .lg-toc a { padding-top: 10px; padding-bottom: 10px; }
  .nf__links a, .lg-prose h3 > a { position: relative; }
  .nf__links a::after { content: ""; position: absolute; inset: -10px -8px; }
  .lg-prose h3 > a::after { content: ""; position: absolute; inset: -9px 0; }
  .lg-prose li > a { position: relative; }
  .lg-prose li > a::after { content: ""; position: absolute; inset: -10px -4px; }
  .lg-prose li + li { margin-top: 12px; }
}
