:root { color: #18223d; background: #f4efe8; font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 10% 0%, rgba(255,255,255,.8), transparent 32rem), #f4efe8; }
.legal-shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 30px 0 70px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding-bottom: 14px; border-bottom: 1px solid rgba(24,34,61,.12); }
  .brand { display: block; width: 160px; text-decoration: none; }
  .brand img { display: block; width: 100%; height: auto; }
.back { color: #253d66; font-size: 13px; font-weight: 750; text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #49a6ff; outline-offset: 4px; border-radius: 5px; }
main { padding-top: 32px; }
.eyebrow { margin: 0 0 8px; color: #253d66; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 42px); letter-spacing: -.04em; }
.updated { margin: 0 0 34px; color: #62616a; font-size: 12px; }
.lead { padding: 20px 22px; border: 1px solid rgba(24,34,61,.12); border-radius: 20px; background: rgba(255,253,249,.88); box-shadow: 0 12px 32px rgba(24,34,61,.05); font-size: 14px; line-height: 1.8; }
section { margin-top: 34px; }
h2 { margin: 0 0 10px; font-size: 18px; }
p, li { color: #4f4e55; font-size: 14px; line-height: 1.85; }
ul { padding-left: 1.3em; }
.note { padding: 16px 18px; border-left: 3px solid #49a6ff; background: rgba(255,255,255,.5); }
.legal-footer { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(24,34,61,.12); color: #62616a; font-size: 11px; }
::selection { color: #fff; background: #1b2541; }
@media (max-width: 420px) { .legal-shell { width: min(100% - 24px, 760px); padding-top: 20px; } p, li { font-size: 13px; } }


/* Native help only: local sections, no external URLs or outgoing actions. */
.native-help { width:min(100% - 32px,760px); margin:32px auto; scroll-margin-top:16px; }
.native-help p,.native-help h2 { overflow-wrap:anywhere; }
/* Native legal documents only. Preserve the existing 20/30px shell top gap;
   put device insets outside it, including landscape sides. No sticky header. */
body[data-native-legal-safe-area="v1"] {
  padding:calc(env(safe-area-inset-top,0px) + 12px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
}
body[data-native-legal-safe-area="v1"] > main { width:min(100% - 32px,760px); margin:0 auto; }
body[data-native-legal-safe-area="v1"] .legal-header { flex-wrap:wrap; gap:.5rem 1rem; min-width:0; }
body[data-native-legal-safe-area="v1"] :is(main,section,p,li,h1,h2,a) { min-width:0; overflow-wrap:anywhere; }
body[data-native-legal-safe-area="v1"] .legal-header > a { max-width:100%; }
body[data-native-legal-safe-area="v1"] .legal-header > .back,
body[data-native-legal-safe-area="v1"] > main a[href^="index.html"] {
  display:inline-flex; align-items:center; min-height:44px; min-width:44px;
  max-width:100%; padding:8px; box-sizing:border-box;
}

/* PC-only formal-information layout; no runtime or external assets. */
.formal-description {white-space:pre-line;}
.formal-navigation {display:flex;flex-wrap:wrap;gap:8px 16px;}
.formal-navigation a {display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:4px 0;}

/* Owner-supplied Japanese illustration; original image bytes are preserved. */
.formal-illustration { display: block; width: min(100%, 540px); height: auto; margin: 24px auto; }
