/* Quiet reading pages in the same paper-and-ink world as the landing page. */
:root {
  --bg: #faf6eb;
  --surface: #fffdf6;
  --surface-2: #ecefdf;
  --ink: #243955;
  --ink-2: #344656;
  --muted: #656b6c;
  --line: #d8d3c5;
  --line-2: #aeb99b;
  --accent: #58734b;
  --accent-ink: #47613c;
  --accent-soft: #e6ecd8;
  --sans: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --mono: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

html[lang='en'] {
  --sans: 'Avenir Next', Avenir, Arial, sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #a15a38;
  outline-offset: 5px;
}

h1, h2, h3, h4, h5, p {
  margin-top: 0;
}

h1, h2, h3 {
  letter-spacing: -.04em;
  font-weight: 650;
  line-height: 1.6;
}

html[lang='en'] h1, html[lang='en'] h2 {
  font-family: Baskerville, Georgia, serif;
  font-weight: 400;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6%;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  max-width: 1320px;
  margin: auto;
  padding: 23px 5%;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.05em;
  text-decoration: none;
}

.mk {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 11px;
}

.nav-links a {
  text-decoration: none;
  padding: 4px 0;
}

.nav-links a.active {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px solid;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--accent-ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav .btn {
  border: 0;
  padding: 6px 0;
  background: transparent;
  font-size: 11px;
}

.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 6px;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  width: 20px;
  margin: 4px 0;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 78px;
  left: 6%;
  right: 6%;
  z-index: 10;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px #2439550c;
}

.mobile-nav.open {
  display: grid;
  gap: 16px;
}

.mobile-nav a {
  font-size: 13px;
  text-decoration: none;
}

.sup-hero, .doc-hero {
  position: relative;
  padding: 45px 0 55px;
  border-bottom: 1px solid var(--line);
}

.sup-hero::after, .doc-hero::after {
  content: '';
  position: absolute;
  left: 3%;
  bottom: 22px;
  width: 92%;
  height: 24px;
  border-bottom: 1px dashed #acb695;
  border-radius: 0 0 48% 55%;
  pointer-events: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 28px;
}

.crumbs a {
  text-decoration: none;
}

.sep {
  color: #98a184;
}

.sup-hero h1, .doc-hero h1 {
  font-size: clamp(30px, 4.5vw, 54px);
  margin-bottom: 20px;
}

.lead {
  max-width: 690px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

.search {
  position: relative;
  max-width: 580px;
  margin-top: 26px;
}

.search svg {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.search input {
  display: block;
  width: 100%;
  padding: 15px 16px 15px 47px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--surface);
  font-size: 13px;
  outline-offset: 3px;
}

.topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  gap: 20px;
  margin-top: 32px;
}

.topic {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.ico, .chk {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 46% 53% 47% 55%;
  background: var(--accent-soft);
  color: var(--accent);
}

.ico svg, .chk svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.topic h4 {
  margin: 0 0 3px;
  font-size: 14px;
}

.topic span {
  font-size: 11px;
  color: var(--muted);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 25px 0 30px;
}

.chip {
  font-size: 11px;
  color: var(--muted);
}

.chip strong {
  color: var(--ink);
  margin-right: 5px;
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.pt h5 {
  font-size: 13px;
  margin: 0 0 7px;
}

.pt span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}

.sup-body, .doc-body {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 55px;
  padding-top: 65px;
  padding-bottom: 90px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 30px;
  font-size: 11px;
  color: var(--muted);
}

.toc-label {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 15px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 0 0 6px;
}

.toc a {
  display: block;
  text-decoration: none;
  padding: 7px 0 7px 11px;
  border-left: 1px solid var(--line);
}

.toc a.on {
  border-left: 2px solid var(--accent);
  color: var(--accent);
}

.doc-content, .sup-content {
  min-width: 0;
  max-width: 760px;
}

.doc-content > section, .sup-content > section {
  padding: 35px 0;
  border-bottom: 1px solid var(--line);
}

.doc-content > section:first-child, .sup-content > section:first-child {
  padding-top: 0;
}

.doc-content > section:last-child, .sup-content > section:last-child {
  border-bottom: 0;
}

.sec-n {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.doc-content h2, .sup-content h2 {
  font-size: 29px;
  margin-bottom: 23px;
}

.doc-content h3, .sup-content h3 {
  font-size: 18px;
  margin: 28px 0 14px;
}

.doc-content p, .sup-content p {
  font-size: 14px;
  line-height: 2.05;
  margin-bottom: 20px;
}

.doc-content li, .sup-content li {
  margin-bottom: 10px;
  line-height: 2;
}

.doc-content ul, .sup-content ul {
  padding-left: 20px;
}

.doc-content a, .sup-content a:not(.btn) {
  color: var(--accent-ink);
}

.bullets {
  padding-left: 20px;
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}

.svc {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
}

.svc h4 {
  margin-bottom: 10px;
  font-size: 14px;
}

.svc p {
  font-size: 12px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 7px;
  margin-bottom: 10px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 3px;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 22px 0;
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 650;
}

.qn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  background: var(--accent-soft);
  color: var(--accent);
  font: italic 13px Georgia, serif;
  border-radius: 45% 53% 47% 55%;
}

.qt {
  flex: 1;
}

.plus {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}

.plus::before, .plus::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.plus::before {
  width: 12px;
  height: 1px;
  top: 8px;
  left: 3px;
}

.plus::after {
  height: 12px;
  width: 1px;
  left: 8px;
  top: 3px;
}

.faq.open .plus::after {
  display: none;
}

.faq-a {
  max-height: none;
  overflow: hidden;
}

.faq-a-inner {
  padding: 0 5px 22px 42px;
}

.faq-a-inner p {
  font-size: 13px;
  color: var(--ink-2);
}

.contact-panel, .contact-card, .feedback-card {
  margin: 22px 0;
  padding: 25px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-panel h3, .contact-card h3, .feedback-card h3 {
  margin-top: 0;
}

.app-info {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.info {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.k {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}

.v {
  font-size: 13px;
}

.footer {
  padding: 45px 0 25px;
  border-top: 1px solid var(--line);
  background: #f3f0e5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-brand .brand {
  font-size: 24px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 11px;
  color: var(--muted);
  max-width: 290px;
  line-height: 1.9;
}

.footer-col h5 {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 11px;
}

.footer-col a {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 10px;
}

.footer-bottom a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-right {
    margin-left: auto;
  }
  .menu-btn {
    display: block;
  }
  .sup-body, .doc-body {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 32px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .principle {
    padding: 16px 0;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 20px 6%;
    gap: 12px;
  }
  .brand {
    font-size: 24px;
  }
  .mk {
    width: 32px;
    height: 32px;
  }
  .nav-right {
    gap: 18px;
  }
  .nav .lang-toggle {
    display: none;
  }
  .nav .btn {
    font-size: 11px;
  }
  .sup-hero, .doc-hero {
    padding: 28px 0 48px;
  }
  .sup-hero h1, .doc-hero h1 {
    font-size: clamp(26px, 7.5vw, 36px);
    line-height: 1.65;
  }
  .crumbs {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .lead {
    font-size: 12px;
  }
  .search input {
    font-size: 12px;
  }
  .topics {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .topic {
    padding: 16px 0;
  }
  .doc-meta {
    gap: 10px;
    flex-direction: column;
  }
  .sup-body, .doc-body {
    display: block;
    padding-top: 30px;
    padding-bottom: 55px;
  }
  .toc {
    position: static;
    margin-bottom: 38px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
  }
  .toc a {
    font-size: 10px;
    padding: 5px 0;
    border: 0;
    text-decoration: underline;
    text-decoration-color: var(--line-2);
  }
  .toc a.on {
    border: 0;
  }
  .doc-content h2, .sup-content h2 {
    font-size: 24px;
  }
  .doc-content p, .sup-content p, .doc-content li, .sup-content li {
    font-size: 13px;
    line-height: 2.1;
  }
  .doc-content > section, .sup-content > section {
    padding: 30px 0;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .faq-q {
    font-size: 13px;
    gap: 10px;
    padding: 19px 0;
  }
  .faq-a-inner {
    padding-left: 0;
  }
  .contact-panel, .contact-card, .feedback-card {
    padding: 20px 16px;
  }
  .app-info {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer {
    padding-top: 32px;
  }
  .footer-bottom {
    font-size: 9px;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.document-interactive .faq-a {
  max-height: 0;
}

/* Long service names and URLs must not widen the legal reading column. */
.svc-grid,
.svc,
.svc > * {
  min-width: 0;
}
.svc dl {
  min-width: 0;
}
.svc dd {
  margin-inline-start: 0;
}
.svc a,
.svc dd,
.svc p {
  overflow-wrap: anywhere;
}
