* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--white); font: var(--body)/var(--body-line) var(--font); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--dark); text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.16; }
h2 { font-size: var(--h2); line-height: 1.25; }
h3 { font-size: var(--h3); line-height: 1.4; }
p + p { margin-top: var(--space-12); }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[id] { scroll-margin-top: var(--space-24); }
.wrap { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.measure { max-width: var(--measure); }
.skip { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 8px 16px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .brand, .nav, .actions { display: flex; align-items: center; }
.top-inner { justify-content: space-between; gap: var(--space-16); }
.brand { gap: 8px; min-height: 72px; flex: none; }
.brand img { display: block; }
.nav { gap: clamp(4px, .6vw, 10px); flex-wrap: wrap; }
.nav a { min-height: var(--touch); display: grid; place-items: center; padding-inline: 9px; border-radius: var(--radius); font-size: var(--nav); font-weight: 600; }
.nav a:is(:hover, :active, [aria-current]) { background: var(--canvas); color: var(--brand-blue); }
.actions { gap: 12px; flex-wrap: wrap; margin-top: var(--space-24); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--brand-blue); background: var(--brand-blue); color: white; text-decoration: none; font: 600 var(--nav)/1.45 var(--font); cursor: pointer; gap: 6px; }
.btn:is(:hover, :active) { background: var(--blue-hover); color: white; }
.btn.secondary { background: var(--white); color: var(--brand-blue); }
.btn.secondary:is(:hover, :active) { background: var(--canvas); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.related-link { display: flex; flex-direction: column; gap: 8px; }
.related-link strong { display: flex; justify-content: space-between; gap: 8px; }
.related-link span:not([aria-hidden]) { color: var(--muted); font-size: var(--small); }
.related-link:is(:hover, :active) { background: var(--canvas); border-color: var(--control-line); }
.footer { border-top: 1px solid var(--line); font-size: var(--small); padding-block: 32px; background: var(--dark); color: white; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.footer-group strong { display: block; margin-bottom: 8px; }
.footer a:not(.btn) { display: flex; align-items: center; width: fit-content; min-height: var(--touch); color: white; }
.footer a:not(.btn):is(:hover, :active) { background: var(--brand-blue); }
.footer .btn { margin-top: 16px; gap: 6px; }

.content-hero {
  background: linear-gradient(112deg, #f6f8fc 45%, #e8eef8 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid, .asset-grid, .comparison-grid, .input-grid {
  display: grid;
  gap: clamp(16px, 3vw, 36px);
}
.hero-grid {
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: clamp(36px, 5.6vw, 80px);
}
.stripe { width: 40px; height: 4px; background: var(--brand-green); margin-bottom: 20px; }
.phrase { display: inline-block; max-width: 100%; }
.lead { font-size: var(--lead); margin-top: 18px; }
.hero-figure {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  padding: clamp(16px, 3vw, 32px);
}
.hero-figure figcaption { color: var(--dark); font-weight: 700; margin-bottom: 16px; }
.source-node { display: flex; gap: 12px; align-items: center; color: var(--brand-blue); }
.question-flow { list-style: none; margin: 0 0 0 19px; padding: 12px 0 0 18px; border-left: 1px solid var(--control-line); display: grid; gap: 9px; }
.question-flow li { position: relative; background: var(--canvas); padding: 9px 12px; border-radius: var(--radius); }
.question-flow li::before { content: ''; position: absolute; width: 18px; height: 1px; background: var(--control-line); top: 50%; right: 100%; }
.question-flow li span { display: block; color: var(--muted); font-size: var(--small); }
.line-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); color: var(--brand-blue); }
.line-icon::before { content: ''; display: block; width: 15px; height: 17px; border: 2px solid currentColor; border-radius: 2px; }
.line-icon.document::before { background: linear-gradient(currentColor,currentColor) center 5px / 8px 2px no-repeat, linear-gradient(currentColor,currentColor) center 10px / 8px 2px no-repeat; }
.line-icon.frame::before { width: 18px; height: 14px; background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 1px 1px / 6px 6px no-repeat, linear-gradient(135deg, transparent 48%, currentColor 50% 59%, transparent 61%) bottom right / 12px 8px no-repeat; }
.line-icon.speech::before { width: 17px; height: 13px; border-radius: 6px 6px 6px 1px; background: radial-gradient(circle, currentColor 1px, transparent 1.5px) center / 5px 5px repeat-x; }
.page-guide { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 28px); border-bottom: 1px solid var(--line); padding-block: 6px; }
.page-guide a, .inline-link { display: inline-flex; align-items: center; min-height: var(--touch); padding-inline: 3px; font-size: var(--nav); font-weight: 700; }
.page-guide a:hover, .inline-link:hover { background: var(--canvas); }
.section { padding-block: clamp(36px, 5.4vw, 72px); }
.section-intro { margin-bottom: clamp(18px, 3vw, 30px); }
.section h2 + p, .section h3 + p { margin-top: 10px; }
.band { background: var(--canvas); }
.panel { padding: clamp(16px, 2.3vw, 25px); border: 1px solid var(--line); border-radius: var(--panel-radius); background: white; }
.input-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.input-grid h3 { margin-top: 12px; }
.section-note { max-width: var(--measure); margin-top: 18px; }
.comparison { border: 1px solid var(--line); border-radius: var(--panel-radius); background: white; overflow: hidden; }
.comparison figcaption { padding: 12px clamp(16px, 3vw, 28px); color: var(--green-text); border-bottom: 1px solid var(--line); font-weight: 700; font-size: var(--nav); }
.comparison-grid { grid-template-columns: .87fr 1.13fr; gap: 0; }
.comparison-side { padding: clamp(16px, 3vw, 28px); }
.comparison-side p { margin-top: 12px; }
.example-output { border-left: 1px solid var(--line); background: #fafdff; }
blockquote, .sample-en { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--control-line); background: var(--canvas); }
.sample-en { border-color: var(--brand-green); background: var(--green-tint); }
.sample-en p { line-height: 1.55; margin-top: 4px; }
.example-detail { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.example-detail summary { min-height: var(--touch); padding: 10px 16px; color: var(--brand-blue); font-weight: 700; cursor: pointer; }
.example-detail summary:hover { background: var(--canvas); }
.detail-body { padding: 0 16px 14px; max-width: var(--measure); }
.consult-bar, .closing { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; padding: clamp(16px, 3vw, 32px); border-radius: var(--panel-radius); }
.consult-bar { margin-top: 18px; border: 1px solid #cadfc5; background: var(--green-tint); }
.consult-bar .btn, .closing .btn { flex: none; }
.asset-grid { grid-template-columns: .9fr 1.1fr; }
.asset-highlight { background: var(--dark); color: white; border-radius: var(--panel-radius); padding: clamp(18px, 3vw, 32px); }
.asset-highlight h3 { color: white; margin-top: 12px; }
.reuse-list { margin: 0; }
.reuse-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.reuse-list div:first-child { padding-top: 0; }
.reuse-list dt { color: var(--dark); font-weight: 700; }
.reuse-list dd { margin: 4px 0 0; }
.review-list { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: review; max-width: 58rem; }
.review-list li { position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); counter-increment: review; }
.review-list li::before { content: counter(review); position: absolute; left: 0; top: 12px; border-radius: 50%; background: white; color: var(--brand-blue); width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; }
.closing { background: var(--dark); color: white; margin-bottom: 18px; }
.closing h2 { color: white; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.closing p { max-width: 42rem; }
@media (max-width: 950px) {
  .top-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 5px; }
  .brand { min-height: 56px; }
  .nav a { padding-inline: 7px; }
}
@media (max-width: 740px) {
  .hero-grid, .input-grid, .comparison-grid, .asset-grid, .related-grid { grid-template-columns: 1fr; }
  .comparison-grid .example-output { border-left: 0; border-top: 1px solid var(--line); }
  .consult-bar, .closing { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

.service-overview { padding-bottom: 0; }
.service-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
.service-fit > div { border-top: 2px solid var(--brand-green); padding-top: var(--space-16); }
.service-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-16); }
.service-flow li { border: 1px solid var(--line); padding: clamp(14px, 2vw, 22px); border-radius: var(--radius); background: white; }
.service-flow .step { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; color: var(--brand-blue); background: var(--canvas); border-radius: 50%; font-weight: 700; }
.service-flow h3 { font-size: 1.125rem; }
.service-why { border-top: 1px solid var(--line); }
.service-why .actions { margin-top: 16px; }
@media (max-width: 900px) { .service-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .service-fit, .service-flow { grid-template-columns: 1fr; } }
