* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--modo-paper);
  color: var(--modo-ink);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; font-size: 17px; line-height: 1.8; }
a { color: inherit; }
button, summary { font: inherit; }


main {
  width: calc(100% - 36px);
  margin: 0 auto;
  padding: 48px 0 64px;
}
.help-hero { max-width: 800px; }
.help-kicker {
  margin: 0 0 12px;
  color: var(--modo-violet);
  font-size: var(--modo-text-xs);
  font-weight: 650;
  letter-spacing: .14em;
}
h1, h2, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.35;
  letter-spacing: -.045em;
}
.help-lead {
  max-width: 700px;
  margin: 24px 0 16px;
  color: var(--modo-ink-soft);
  font-size: var(--modo-text-l);
  font-weight: 500;
  line-height: 1.75;
}
.language-note {
  display: inline-block;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper));
  font-size: var(--modo-text-xs);
  font-weight: 650;
}

.help-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 32px 0 48px;
}
.help-shortcuts a {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--modo-line);
  background: transparent;
  text-decoration: none;
}
.help-shortcuts a:last-child { border-bottom: 0; }
.help-shortcuts span { color: var(--modo-muted); font-size: var(--modo-text-xs); font-weight: 500; line-height: 1.5; }
.help-shortcuts strong { font-size: var(--modo-text-m); line-height: 1.35; }

.help-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--modo-line);
}
.help-section-heading { align-self: start; }
.help-section h2 {
  max-width: 360px;
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.45;
  letter-spacing: -.055em;
}
.help-faqs { display: grid; gap: 0; }
.help-faqs details {
  border-bottom: 1px solid var(--modo-line);
  background: transparent;
}
.help-faqs summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.45;
  list-style: none;
}
.help-faqs summary::-webkit-details-marker { display: none; }
.help-faqs summary::after { content: "+"; flex: 0 0 auto; font-size: 1.5rem; font-weight: 500; }
.help-faqs details[open] summary { color: var(--modo-violet); }
.help-faqs details[open] summary::after { content: "−"; }
.help-faqs details > div { padding: 0 0 24px; }
.help-faqs p, .help-faqs li {
  color: var(--modo-ink-soft);
  font-size: var(--modo-text-m);
  font-weight: 500;
  line-height: 1.85;
}
.help-faqs p:first-child, .help-faqs ul:first-child, .help-faqs ol:first-child { margin-top: 0; }
.help-faqs p:last-child, .help-faqs ul:last-child, .help-faqs ol:last-child { margin-bottom: 0; }
.help-faqs li + li { margin-top: 10px; }
.help-faqs ul, .help-faqs ol { padding-left: 1.4rem; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.help-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 17px;
  border: 1px solid var(--modo-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper));
  font-size: var(--modo-text-s);
  font-weight: 650;
  text-decoration: none;
}
.help-actions .help-action { margin-top: 0; }
.help-action-secondary { background: var(--modo-panel); }
.help-action-danger { background: color-mix(in srgb, var(--modo-danger) 10%, var(--modo-panel)); }

.help-privacy {
  margin-top: var(--modo-space-5);
  padding: 24px 0;
  border-top: 2px solid var(--modo-line);
  background: transparent;
}
.help-privacy strong { display: block; font-size: var(--modo-text-l); line-height: 1.45; }
.help-privacy p { color: var(--modo-ink-soft); font-weight: 500; line-height: 1.7; }
.help-privacy a { font-weight: 650; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 30px 18px;
  border-top: 1px solid var(--modo-line);
  color: var(--modo-muted);
  font-size: var(--modo-text-xs);
  font-weight: 500;
}
footer a { min-height: 44px; display: inline-flex; align-items: center; }
footer span { min-height: 44px; display: inline-flex; align-items: center; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--modo-violet); outline-offset: 3px; }
@media (hover: hover) {
  .help-shortcuts a:hover, .help-action:hover { color: var(--modo-violet); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Comfortable text at 320px; Japanese headings break at natural boundaries. */
body { font-size:17px; font-weight:450; }
html[lang="ja"] :is(h1,h2,h3),html[lang="ja"] .boundary strong { word-break:normal; line-break:strict; overflow-wrap:anywhere; }
h1 { font-size:clamp(28px,8.75vw,32px); font-weight:650; line-height:1.45; letter-spacing:-.025em; }
main { padding-top:32px; }
.help-lead { margin-top:18px; font-size:17px; font-weight:450; line-height:1.8; }
.language-note { padding:5px 10px; font-size:13px; font-weight:500; line-height:1.6; background:var(--modo-violet-pale); }
.help-faqs p,.help-faqs li,.help-privacy p { font-size:17px; font-weight:450; line-height:1.8; }
.help-privacy strong { font-size:20px; font-weight:600; }
.help-shortcuts strong { font-size:17px; font-weight:600; }
