.doc-page .header { border-bottom: 1px solid var(--line); }
.doc-brand { display: flex; align-items: center; gap: 18px; }
.doc-divider { color: #c7cebf; font-size: 21px; font-weight: 300; }
.doc-wordmark { font-family: var(--serif); font-size: 22px; color: #7a8b6c; }
.doc-page .header .doc-home { display: flex; align-items: center; gap: 9px; }
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 72px; padding-top: 65px; padding-bottom: 70px; }
.doc-sidebar { position: sticky; align-self: start; top: 35px; }
.doc-sidebar .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 22px; }
.doc-sidebar-label { font-size: 10px; color: #87917c; margin-bottom: 15px; }
#doc-nav { display: flex; flex-direction: column; gap: 3px; }
#doc-nav a { display: flex; align-items: center; gap: 11px; border-left: 2px solid transparent; padding: 10px 12px; margin-left: -12px; font-size: 12px; line-height: 1.6; color: #74816a; border-radius: 0 5px 5px 0; transition: background .18s, color .18s; }
#doc-nav a > span { font: 9px ui-monospace, monospace; color: #a0aa95; }
#doc-nav a:hover { background: #f0f3e9; color: var(--green); }
#doc-nav a[aria-current] { border-left-color: #6e9263; background: #edf1e5; color: var(--green); }
.doc-sidebar-back { display: flex; gap: 8px; font-size: 10px; color: #86917b; padding-top: 25px; margin-top: 24px; border-top: 1px solid var(--line); }
.doc-main { overflow: visible; min-width: 0; max-width: 735px; }
.doc-hero .eyebrow { font-size: 9px; letter-spacing: 1.6px; margin-bottom: 20px; }
.doc-page .doc-hero h1 { font-size: 39px; font-family: var(--serif); line-height: 1.45; font-weight: 400; letter-spacing: -1.2px; margin-bottom: 17px; }
.doc-hero > p:last-child { max-width: 560px; font-size: 13px; line-height: 1.95; color: #78826f; margin: 0; }
.doc-tip { display: flex; align-items: center; gap: 18px; margin: 35px 0 12px; padding: 24px; border: 1px solid #e1e7d7; background: #f0f3e9; border-radius: 8px; }
.doc-tip-icon { width: 49px; height: 49px; border-radius: 12px; display: grid; place-items: center; background: #e1e8d5; border: 1px solid #d5dfc6; flex-shrink: 0; transform: rotate(-6deg); }
.doc-tip h2 { font-size: 13px; font-weight: 550; margin: 0 0 7px; letter-spacing: 0; }
.doc-tip p { font-size: 11px; color: #78866a; line-height: 1.9; margin: 0; max-width: 470px; }
.doc-tip-arrow { font-size: 21px; color: #95a186; margin-left: auto; }
.doc-section { padding: 45px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.doc-section-number { color: #91a080; font-size: 9px; letter-spacing: 1.3px; margin: 0 0 12px; }
.doc-section h2 { font-size: 26px; font-weight: 500; margin-bottom: 9px; }
.doc-section-intro { font-size: 12px; line-height: 1.9; color: #7c8772; margin: 0 0 26px; }
.doc-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.doc-steps li { counter-increment: step; padding: 0 0 24px 41px; position: relative; }
.doc-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; height: 23px; width: 23px; display: grid; place-items: center; border: 1px solid #dce3d2; border-radius: 50%; font: 10px var(--serif); color: #829173; }
.doc-steps h3 { font-size: 13px; font-weight: 550; line-height: 1.8; margin: 0 0 7px; }
.doc-steps p { margin: 0; color: #6f7b65; font-size: 12px; line-height: 2; }
.doc-note { font-size: 11px; line-height: 1.95; color: #6f7f60; background: #f1f4eb; border-left: 2px solid #bdcdae; border-radius: 0 5px 5px 0; padding: 14px 18px; margin: 3px 0 24px; }
.doc-next { display: inline-flex; font-size: 10px; line-height: 1.8; color: #789064; margin-top: 8px; }
.doc-next:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.doc-ending { padding: 47px 0 10px; }
.doc-ending > span { color: #8fa278; font-size: 27px; }
.doc-ending h2 { font: 25px/1.6 var(--serif); letter-spacing: -.5px; margin: 15px 0 10px; }
.doc-ending p { font-size: 12px; line-height: 1.9; color: #7c8772; margin: 0 0 22px; }
.doc-page .footer-top a { white-space: nowrap; }
html[lang=en] .doc-hero h1 { font-size: 43px; }
html[lang=ja] .doc-hero h1 { font-size: 34px; }
.header nav > a.doc-nav-link { display: inline-flex; }
@media (max-width: 1050px) {
  .doc-layout { gap: 40px; grid-template-columns: 175px minmax(0, 1fr); }
  .doc-page .doc-hero h1 { font-size: 33px; }
  html[lang=ja] .doc-hero h1 { font-size: 30px; }
}
@media (max-width: 780px) {
  .doc-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 30px; padding-top: 40px; }
  #doc-nav a { font-size: 11px; gap: 8px; }
  .doc-tip { padding: 19px; gap: 14px; }
  .doc-tip-icon { width: 39px; height: 39px; }
  .doc-tip-arrow { display: none; }
  .doc-page .doc-hero h1 { font-size: 29px; }
  html[lang=en] .doc-hero h1 { font-size: 35px; }
  html[lang=ja] .doc-hero h1 { font-size: 26px; }
}
@media (max-width: 620px) {
  .doc-brand { gap: 11px; }
  .doc-wordmark { font-size: 20px; }
  .doc-page .header .doc-home { display: none; }
  .doc-layout { display: block; padding-top: 25px; padding-bottom: 45px; }
  .doc-sidebar { position: static; margin-bottom: 37px; }
  .doc-sidebar .eyebrow, .doc-sidebar-back { display: none; }
  .doc-sidebar-label { font-size: 10px; margin: 0 0 12px; }
  #doc-nav { display: flex; flex-direction: row; gap: 7px; flex-wrap: wrap; }
  #doc-nav a { font-size: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; margin: 0; gap: 0; }
  #doc-nav a > span { display: none; }
  #doc-nav a[aria-current] { border-color: #c8d6b7; }
  .doc-hero .eyebrow { font-size: 8px; letter-spacing: .9px; margin-bottom: 16px; }
  .doc-page .doc-hero h1 { font-size: 30px; line-height: 1.5; }
  html[lang=en] .doc-hero h1 { font-size: 36px; }
  html[lang=ja] .doc-hero h1 { font-size: 26px; }
  .doc-hero > p:last-child { font-size: 12px; }
  .doc-tip { margin: 25px 0 0; padding: 18px; align-items: flex-start; }
  .doc-tip h2 { font-size: 12px; }
  .doc-tip p { font-size: 10px; }
  .doc-section { padding: 35px 0; scroll-margin-top: 22px; }
  .doc-section h2 { font-size: 24px; }
  .doc-section-intro { font-size: 11px; }
  .doc-steps li { padding-left: 34px; padding-bottom: 22px; }
  .doc-steps h3 { font-size: 12px; }
  .doc-steps p { font-size: 11px; }
  .doc-note { padding: 12px 14px; font-size: 10px; }
  .doc-ending h2 { font-size: 24px; }
}
