/* Shared by every page: tokens, navigation, buttons, footer and the legal documents.
   System fonts only: the site loads nothing from another origin. */
:root {
  color-scheme: light;
  --ink: #111111;
  --ink-2: #3a3a3c;
  --ink-3: #6e6e73;
  --ink-4: #8e8e93;
  --line: #e5e5ea;
  --soft: #f5f5f7;
  --night: #0b0b0e;
  --grad: linear-gradient(90deg, #ff6a3d 0%, #f0386b 38%, #8a3fd6 68%, #2f55e0 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-latin: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #2f55e0; outline-offset: 3px; border-radius: 6px; }
.h { font-feature-settings: "palt"; word-break: auto-phrase; }
.nb { display: inline-block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation: one floating glass capsule. */
.nav-wrap { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; padding: 14px 16px 0; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 20px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .22); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.nav.is-scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .3); }
.nav-logo { display: block; margin-right: 12px; }
.nav-logo img { display: block; height: 18px; width: auto; }
.nav-links { display: flex; align-items: center; font-size: 13px; font-weight: 500; }
.nav-links a { padding: 8px 12px; border-radius: 999px; line-height: 1.4; transition: background-color .2s ease; }
.nav-links a:hover { background: rgba(0, 0, 0, .04); }
.nav-links a[aria-current="true"] { background: rgba(0, 0, 0, .06); }

/* Buttons and links. */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 16px; font-weight: 700; line-height: 1; transition: transform .2s var(--ease), background-color .2s ease; }
.btn:hover { background: #2c2c2e; }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; margin-left: 6px; }
.btn-md { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-light { background: rgba(255, 255, 255, .94); color: var(--ink); }
.btn-light:hover { background: #ffffff; }
.link-underline { font-size: 16px; font-weight: 500; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; }
.link-arrow .arrow { display: inline-block; transition: transform .2s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* Footer. */
.site-footer { padding: 0 var(--gutter) 40px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.site-footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer .note { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-footer .bottom { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .bottom img { display: block; height: 16px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.site-footer nav a { color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); }

/* Legal documents. */
.document { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 120px; }
.document h1 { margin: 0 0 32px; font-size: clamp(32px, 4vw, 44px); line-height: 1.25; letter-spacing: -.02em; font-weight: 800; font-feature-settings: "palt"; }
.document h2 { margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 20px; line-height: 1.5; font-weight: 800; }
.document h3 { margin: 32px 0 8px; font-size: 16px; font-weight: 700; }
.document p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.95; }
.document p.list-item { position: relative; padding-left: 1.2em; margin-bottom: 8px; }
.document p.list-item::before { content: "・"; position: absolute; left: 0; }
.document a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Guide pages (pages/*.html): one readable column, built from plain elements. */
.article { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 120px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 32px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.article .crumbs a { color: var(--ink-3); text-decoration: none; }
.article .crumbs a:hover { color: var(--ink); }
.crumbs a::after { content: "›"; margin: 0 10px; color: var(--ink-4); }
.article h1 { margin: 0 0 20px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.3; letter-spacing: -.02em; font-weight: 800; font-feature-settings: "palt"; word-break: auto-phrase; }
.article .lead { margin: 0 0 40px; font-size: 18px; line-height: 1.9; color: var(--ink-2); }
.article h2 { margin: 64px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.5; font-weight: 800; font-feature-settings: "palt"; word-break: auto-phrase; }
.article h3 { margin: 36px 0 8px; font-size: 17px; line-height: 1.6; font-weight: 700; }
.article p, .article li { color: var(--ink-2); font-size: 16px; line-height: 1.95; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 1.4em; }
.article li { margin-bottom: 6px; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article a.btn { text-decoration: none; color: #ffffff; }
.article strong { color: var(--ink); }
.article .note { font-size: 14px; color: var(--ink-3); }
.article table { width: 100%; margin: 8px 0 24px; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.article th, .article td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.article td { color: var(--ink-2); }
.article .table-wrap { overflow-x: auto; }
.article .callout { margin: 24px 0; padding: 20px 24px; border-radius: 20px; background: var(--soft); }
.article .callout p:last-child { margin-bottom: 0; }
.article figure { margin: 28px 0; }
.article figure img { display: block; height: auto; border-radius: 24px; }
.article figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.article details { border-bottom: 1px solid var(--line); }
.article details:first-of-type { border-top: 1px solid var(--line); }
.article summary { cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.article details > p { padding-bottom: 8px; }
.article .updated { margin: -24px 0 40px; font-size: 13px; color: var(--ink-3); }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 72px; padding: 24px; border-radius: 28px; background: var(--soft); }
.article-cta img { display: block; width: 64px; height: 64px; border-radius: 15px; }
.article-cta div { flex: 1 1 260px; min-width: 0; }
.article-cta p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.article-cta .name { font-size: 17px; font-weight: 800; color: var(--ink); }
.site-footer .guides { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 24px 0 20px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer .guides a { color: var(--ink-2); }
.site-footer .guides a:hover { color: var(--ink); }
.site-footer .guides + .note { border-top: 0; padding-top: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
