/* 202ch machine & service guides · 2026-09-19 */

/* Homepage: keep tools first, with a compact guide section below them. */
.system-links-section {
  padding: 42px max(24px, calc((100% - 1180px) / 2));
  background: #edf6fc;
  border-block: 1px solid #d7e6f1;
}
.system-links-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.system-links-head h2 { margin: 8px 0 10px; font-size: clamp(21px, 2.5vw, 29px); line-height: 1.5; }
.system-links-head p { margin: 0; color: #526b80; line-height: 1.8; }
.system-links-head .section-kicker { color: #09639c; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.system-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.system-link-card {
  box-sizing: border-box;
  position: relative;
  display: block;
  min-width: 0;
  padding: 20px 18px 36px;
  border: 1px solid #cbdce9;
  border-radius: 12px;
  color: #103550;
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.system-link-card:hover { border-color: #0875aa; background: #f8fcff; }
.system-link-card:focus-visible, .all-guides-link:focus-visible { outline: 3px solid #0875aa; outline-offset: 4px; }
.system-link-card .sys-label { display: block; margin-bottom: 9px; color: #09639c; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.system-link-card strong { display: block; font-size: 18px; line-height: 1.6; }
.system-link-card small { display: block; margin-top: 8px; color: #526b80; font-size: 13px; line-height: 1.7; }
.system-link-card .sys-arrow { position: absolute; bottom: 12px; right: 17px; color: #09639c; }
.all-guides-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #085f95; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.system-links-head .all-guides-link { flex-shrink: 0; }

/* Guide pages are independent of the root stylesheet. */
.system-page { margin: 0; background: #f4f8fb; color: #15354d; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.85; }
.system-page *, .system-page *::before, .system-page *::after { box-sizing: border-box; }
.system-page a { color: #075f95; text-underline-offset: 4px; }
.system-page a:hover { text-decoration-thickness: 2px; }
.system-page a:focus-visible { outline: 3px solid #d08900; outline-offset: 4px; border-radius: 2px; }
.system-page h1, .system-page h2, .system-page h3 { line-height: 1.55; }
.system-page p { margin: 14px 0; }
.system-page li + li { margin-top: 7px; }
.system-page ul, .system-page ol { padding-left: 1.5em; }
.system-page section[id] { scroll-margin-top: 24px; }
.system-skip-link { position: absolute; top: -100px; left: 14px; z-index: 10; padding: 10px 15px; background: #fff; border: 2px solid #075f95; }
.system-skip-link:focus { top: 10px; }
.system-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 76px; padding: 14px max(24px, calc((100% - 1120px) / 2)); background: #082846; color: #fff; }
.system-header .system-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 21px; white-space: nowrap; }
.system-brand img { display: block; }
.system-brand-long { font-size: 14px; }
.system-header nav { display: flex; gap: 21px; flex-wrap: wrap; }
.system-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #eff8ff; font-size: 13px; text-decoration: none; }
.system-breadcrumb { max-width: 1168px; padding: 12px 24px; margin: auto; font-size: 12px; color: #526b80; }
.system-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; padding: 0; margin: 0; }
.system-breadcrumb li + li { margin: 0; }
.system-breadcrumb li + li::before { content: "/"; margin-right: 12px; color: #738698; }
.guide-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(115deg, #092f51, #07577f); color: #fff; }
.guide-hero-inner { position: relative; max-width: 1168px; margin: auto; padding: 42px 24px 36px; }
.system-page .guide-kicker { margin: 0 0 12px; color: #a8e2ff; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.guide-hero h1 { max-width: 920px; margin: 0; font-size: clamp(27px, 3.3vw, 42px); letter-spacing: .01em; overflow-wrap: anywhere; }
.system-page .guide-lead { max-width: 780px; margin: 16px 0 0; font-size: 15px; color: #e3f3fd; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 5px 20px; margin-top: 20px; font-size: 12px; color: #d0e7f6; }
.guide-meta a { color: inherit; }
.guide-wordmark { position: absolute; right: -22px; bottom: -76px; z-index: -1; color: rgb(255 255 255 / 6%); font: 900 clamp(190px, 26vw, 355px)/1 Arial, sans-serif; letter-spacing: -.075em; user-select: none; }
.guide-wordmark span { font-size: .46em; letter-spacing: -.09em; }
.guide-main { max-width: 1168px; margin: auto; padding: 34px 24px 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.guide-article { min-width: 0; padding: 32px; background: #fff; border: 1px solid #dbe6ef; border-radius: 14px; }
.guide-summary { margin-bottom: 24px; padding: 18px 20px; border-left: 3px solid #087db4; background: #eef7fc; border-radius: 0 8px 8px 0; }
.guide-summary h2, .guide-toc h2 { margin: 0 0 9px; font-size: 16px; }
.guide-summary ul { margin: 0; font-size: 15px; }
.guide-toc { padding: 0 4px 25px; margin-bottom: 28px; border-bottom: 1px solid #dbe6ef; }
.guide-toc ol { display: grid; gap: 5px; margin: 0; font-size: 14px; }
.guide-toc li + li { margin-top: 0; }
.guide-toc a { display: inline-block; padding: 5px 0; }
.article-section { margin-top: 40px; }
.article-section h2 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid #d9ebf5; font-size: clamp(20px, 2.1vw, 25px); }
.article-section p, .article-section li { font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.steps { padding-left: 1.6em; }
.steps li { padding: 4px 0 4px 5px; }
.steps li::marker { color: #075f95; font-weight: 700; }
.steps strong { display: block; }
.system-page table { width: 100%; table-layout: fixed; border-spacing: 0; border-collapse: collapse; margin: 22px 0 16px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.system-page caption { text-align: left; font-weight: 700; margin-bottom: 9px; }
.system-page th, .system-page td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid #d2e2ed; }
.system-page thead th { color: #164462; background: #e8f3fa; }
.system-page tbody th { width: 31%; font-weight: 700; background: #f6fafc; }
.system-page th:first-child { width: 31%; }
.system-page .comparison-table th:first-child { width: 24%; }
.system-page .rating-table { font-variant-numeric: tabular-nums; }
.system-page .rating-table th, .system-page .rating-table td { text-align: center; }
.system-page .small-note, .system-page .source-line { color: #526477; font-size: 12px; line-height: 1.9; }
.system-page .source-line { margin-top: 14px; }
.source-line a { display: inline; }
.note-box { margin: 24px 0; padding: 18px 20px; background: #edf7fd; border: 1px solid #d2e7f4; border-radius: 9px; }
.note-box strong { color: #07547e; }
.system-page .note-box p { margin: 7px 0 0; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.system-page .guide-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 17px; min-height: 48px; background: #075f95; color: #fff; border: 1px solid #075f95; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-button:hover { filter: brightness(.94); }
.system-page .guide-button.secondary { background: #fff; color: #075f95; border-color: #aacddd; }
.guide-side { position: sticky; top: 24px; padding: 23px 20px; background: #e8f2f9; border: 1px solid #cfdfec; border-radius: 12px; }
.system-page .side-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #075f95; }
.guide-side h2 { font-size: 18px; margin: 11px 0; }
.guide-side p { font-size: 13px; }
.guide-side .guide-button { width: 100%; margin: 6px 0 16px; }
.guide-side > a:last-child { font-size: 12px; }
.source-box { margin-top: 40px; padding-top: 22px; border-top: 1px solid #cddde8; }
.source-box h2 { font-size: 18px; margin: 0 0 10px; }
.source-box h3 { font-size: 15px; margin: 22px 0 8px; }
.source-box p, .source-box li { font-size: 13px; color: #526477; overflow-wrap: anywhere; }
.related-box { margin-top: 38px; }
.related-box h2, .guide-hub h2 { font-size: 23px; margin: 0 0 18px; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-box .all-guides-link { margin-top: 14px; }
.guide-hub .system-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 25px; }
.hub-tools { margin-top: 36px; padding: 28px; border-radius: 12px; border: 1px solid #d2e3ee; background: #fff; }
.system-footer { padding: 32px max(24px, calc((100% - 1120px) / 2)); background: #082846; color: #d4e7f5; }
.system-footer .footer-brand { color: #fff; font-size: 27px; font-weight: 700; text-decoration: none; }
.system-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
.system-footer nav a { display: inline-flex; align-items: center; min-height: 36px; color: #d4e7f5; font-size: 12px; }
.system-footer p { font-size: 12px; }

@media (max-width: 960px) {
  .system-links-head { align-items: start; flex-direction: column; gap: 10px; }
  .system-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-side { position: static; }
  .guide-side .guide-button { width: auto; margin-right: 20px; }
  .system-brand-long { display: none; }
}
@media (max-width: 560px) {
  .system-links-section { padding: 30px 18px; }
  .system-links-head h2 { font-size: 22px; }
  .system-links-head p { font-size: 14px; }
  .system-link-grid { gap: 10px; }
  .system-link-card { padding: 16px 13px 33px; border-radius: 10px; }
  .system-link-card strong { font-size: 15px; }
  .system-link-card small { font-size: 12px; }
  .system-link-card .sys-label { font-size: 9px; letter-spacing: .04em; }
  .system-header { padding: 10px 18px; flex-wrap: wrap; gap: 0 18px; }
  .system-header .system-brand { font-size: 21px; min-height: 44px; }
  .system-header nav { gap: 20px; }
  .system-header nav a { font-size: 12px; }
  .system-breadcrumb { padding: 11px 18px; font-size: 11px; }
  .guide-hero-inner { padding: 29px 18px 27px; }
  .guide-hero h1 { font-size: 28px; }
  .guide-meta { margin-top: 18px; font-size: 11px; }
  .guide-wordmark { right: -12px; bottom: -26px; font-size: 204px; }
  .guide-main { padding: 22px 12px 40px; }
  .guide-article { padding: 22px 16px; border-radius: 10px; }
  .guide-summary { padding: 15px; }
  .guide-summary ul { font-size: 14px; }
  .article-section { margin-top: 34px; }
  .article-section h2 { font-size: 21px; }
  .system-page th, .system-page td { padding: 10px 8px; font-size: 13px; }
  .system-page .comparison-table th, .system-page .comparison-table td { padding: 9px 6px; font-size: 12px; }
  .system-page .comparison-table th:first-child { width: 24%; }
  .system-page .rating-table th { font-size: 11px; }
  .note-box { padding: 16px; }
  .cta-row .guide-button { width: 100%; }
  .related-box { padding: 0 6px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid .system-link-card { padding: 18px 42px 18px 18px; }
  .related-grid .sys-label { margin-bottom: 5px; }
  .related-grid small { margin-top: 5px; }
  .guide-hub { padding-inline: 18px; }
  .hub-tools { padding: 22px 18px; }
  .system-footer { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .system-link-card { transition: none; } }
@media print {
  .system-header, .system-footer, .guide-side, .guide-wordmark, .related-box { display: none; }
  .system-page, .guide-hero, .guide-article { background: #fff; color: #000; }
  .guide-hero-inner, .guide-main, .guide-article { padding: 0; border: 0; }
  .system-page .guide-lead, .system-page .guide-meta, .system-page .guide-kicker { color: #333; }
  .article-layout { display: block; }
  .guide-main { max-width: none; }
  .article-section h2 { break-after: avoid; }
  tr { break-inside: avoid; }
}
