.j-steps li { grid-template-columns: 32px 1fr; padding: 24px 0; border-top-color: var(--line); }
.j-steps li:first-child { border-top-color: var(--ink); }
.j-steps li:last-child { border-bottom: 1px solid var(--line); }
.j-steps .num { font-size: 16px; line-height: 1.75; color: var(--sub); }
.j-steps p { color: var(--ink); font-size: 16px; line-height: 1.75; }
@media (min-width: 820px) {
  .j-steps { grid-template-columns: 1fr; gap: 0; }
  .j-steps li { grid-template-columns: 48px 1fr; padding: 28px 0; border-top: 1px solid var(--line); }
  .j-steps li:first-child { border-top: 1px solid var(--ink); }
  .j-steps li:last-child { border-bottom: 1px solid var(--line); }
  .j-steps .num { font-size: 18px; margin-bottom: 0; }
  .j-steps li > div { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; align-content: start; }
  .j-steps li > div > * { grid-column: 1; }
  .j-steps li > div > .fig-s { grid-column: 2; grid-row: 1 / span 6; margin: 0; }
}
.stage { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; background: var(--ink); color: #fff; font-family: var(--num); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.stage-h { display: flex; align-items: flex-start; gap: 12px; }
.stage-h::before { display: none; }
.j-steps .j-addr { font-size: 20px; }
.stage-h .stage { margin-top: 2px; }
@media (min-width: 820px) { .stage-h .stage { margin-top: 6px; } }
main > .toc-sec { padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; }
.toc ol li a { display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.toc ol li:first-child a { border-top: 1px solid var(--ink); }
.toc ul { margin-top: 16px; grid-template-columns: 1fr; }
.toc ul a { display: flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 16px; line-height: 24px; }
@media (min-width: 820px) { .toc ul { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 32px; } }
.j-steps .note { color: var(--sub); }
.key { display: inline-block; font-weight: 700; padding: 1px 6px; border: 1px solid var(--ink); background: var(--paper); line-height: 1.375; white-space: nowrap; }
p:has(> .key), .j-steps p:has(> .key) { line-height: 32px; }
.j-steps .note:has(> .key) { line-height: 30px; }
.j-addr { justify-self: start; font-family: var(--num); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; margin-top: 8px !important; padding: 10px 14px; border: 1px solid var(--ink); border-left-width: 6px; background: var(--paper); white-space: nowrap; }

.f-form { display: grid; gap: 26px; }
.f-row > label, .f-row > .f-label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.f-row .note { margin: 0 0 8px; }
.f-row input[type="text"], .f-row input[type="email"], .f-row input[type="date"], .f-row select {
  width: 100%; max-width: 520px; font: inherit; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 0; padding: 12px 14px; -webkit-appearance: none; appearance: none; }
.f-row input:focus-visible, .f-row select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.f-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.f-opts label { position: relative; display: inline-flex; align-items: center; min-width: 56px; justify-content: center; padding: 10px 16px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 700; cursor: pointer; }
.f-opts input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.f-opts label:has(input:checked) { background: var(--ink); color: #fff; }
.f-opts label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.f-err { color: var(--red); font-weight: 700; min-height: 1.9em; margin: 0; }
.f-sum { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--ink); margin-bottom: 20px; }
.f-sum th { text-align: left; width: 38%; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--sub); padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.f-sum td { padding: 12px 14px; border-top: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.f-sum tr:first-child th, .f-sum tr:first-child td { border-top: 0; }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.t-btn.ghost { background: var(--paper); color: var(--ink); }
.f-link { color: inherit; font-weight: 700; }

.fig { margin: 18px auto 22px; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.fig img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.fig-s { display: block; width: 100%; max-width: 300px; height: auto; margin: 12px 0 4px; }
.fig-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px auto 12px; }
.fig-row .fig-s { flex: 0 1 300px; margin: 0; }
.fig figcaption { margin-top: 10px; font-size: 13px; color: var(--sub); text-align: center; }
