:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #30382f;
  --muted: #63665d;
  --green: #365c41;
  --line: #d8d8cc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.7; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; background: var(--paper); padding: 10px; z-index: 10; }
.skip:focus { top: 10px; }
.nav { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; padding-block: 30px 20px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 24px; font-weight: 600; letter-spacing: -1px; text-decoration: none; color: var(--ink); }
.nav-right { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.language-switch { display: flex; justify-content: flex-end; gap: 12px; font-size: 13px; }
.language-switch a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: none; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; }
.nav-links a[aria-current="page"] { font-weight: 650; }
.app-nav { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 22px; font-size: 14px; }
.app-nav a[aria-current="page"] { font-weight: 650; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(32px, 6vw, 40px); margin-bottom: 20px; }
h2 { font-size: 26px; margin-block: 38px 16px; }
h3 { font-size: 21px; }
p { margin: 0 0 18px; }
li { margin-bottom: 10px; padding-left: 4px; }
ol, ul { padding-left: 24px; }
.small, .updated, .breadcrumb, figcaption { font-size: 14px; color: var(--muted); }
.intro { max-width: 600px; padding-block: 48px 12px; }
.catalog h2 { margin-top: 18px; }
.app-list { list-style: none; padding: 0; margin: 0; }
.app-entry { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; padding: 26px 0; margin: 0; border-top: 1px solid var(--line); }
.app-entry:last-child { border-bottom: 1px solid var(--line); }
.app-entry h3 { margin: 0 0 8px; font-size: 26px; }
.app-entry p { margin-bottom: 10px; }
.app-entry .app-links { margin-bottom: 0; font-size: 14px; }
.product-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.app-icon { flex: none; border-radius: 12px; }
figure { margin: 0; min-width: 0; }
.screenshot { width: 100%; border: 1px solid var(--line); border-radius: 10px; }
figcaption { margin-top: 10px; text-align: center; }
.home-contact { padding-top: 4px; }
.home-contact h2 { margin-top: 28px; }
.product, .article { padding-top: 44px; }
.product-heading h1 { margin: 0 0 4px; }
.product-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.screenshots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-block: 34px; }
.article { max-width: 680px; margin-inline: auto; }
.article .lead { font-size: inherit; }
.article .notice { border-left: 2px solid var(--green); padding-left: 20px; margin-block: 24px; }
.contact-card { margin-block: 20px 32px; }
.contact-card > a { font-size: 22px; overflow-wrap: anywhere; }
.contact-card p { margin-top: 18px; }
.faq details { border-top: 1px solid var(--line); padding-block: 18px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.faq details p { margin: 14px 0 0; }
.breadcrumb { margin-bottom: 20px; }
.footer { margin-top: 50px; border-top: 1px solid var(--line); padding-block: 22px 30px; color: var(--muted); font-size: 13px; }
.footer p { margin-bottom: 6px; }
.not-found { padding-top: 48px; min-height: 50vh; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 22px; gap: 12px; }
  .nav-right { display: contents; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; gap: 12px; }
  .intro { padding-top: 36px; }
  .app-entry { gap: 14px; }
  .product, .article { padding-top: 32px; }
  .product-heading { gap: 12px; align-items: flex-start; }
  .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
}
