/* Shared legal/support presentation. No form behavior or document content. */
@font-face {
  font-family: SnapDisplay;
  src: url("/app/count-snap/assets/fonts/Orbitron-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #111419;
  --ink: #242a32;
  --muted: #536377;
  --gold: #bfcbd7;
  --gold-ink: #526477;
  --line: #d8e0e7;
  --display: SnapDisplay, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body {
  margin: 0;
  color: var(--ink);
  background: #eff3f6;
  font: 15px/1.95 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 440px;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(175,196,217,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(175,196,217,.04) 1px,transparent 1px);
  background-size: 80px 80px;
}
a { color: var(--gold-ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: #24394e; }
button, input, select, textarea { font: inherit; }
button, [href] { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #647e97; outline-offset: 5px; }
::selection { color: var(--navy); background: var(--gold); }
.wrap { width: min(1280px,calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); padding: 10px 20px; background: var(--gold); color: var(--navy); }
.skip-link:focus { transform: none; }
body > header { position: sticky; top: 0; z-index: 50; background: rgba(8,14,25,.97); border-bottom: 1px solid rgba(176,195,214,.19); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #f1f2ee; font: 700 12px/1.3 var(--display); letter-spacing: .08em; text-decoration: none; }
.brand:hover { color: var(--gold); }
.brand img { width: 35px; height: 35px; object-fit: contain; border-radius: 22%; }
.nav nav { display: flex; justify-content: flex-end; gap: 28px; margin-left: auto; }
.nav nav a { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: #c1cad4; white-space: nowrap; text-decoration: none; border-bottom: 1px solid transparent; }
.nav nav a:hover,.nav nav a[aria-current] { color: var(--gold); border-color: var(--gold); }
main.wrap { padding-block: 64px 80px; }
.document {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(28px,5vw,64px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: #fff;
  box-shadow: 0 16px 50px rgba(8,14,25,.035);
  overflow-wrap: anywhere;
}
.eyebrow { margin: 0 0 22px; color: var(--gold-ink); font: 500 11px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.document h1 { margin: 0 0 22px; font-size: clamp(26px,3.8vw,46px); line-height: 1.55; letter-spacing: -.035em; }
.document h2 { margin: 46px 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.7; letter-spacing: -.02em; }
.document h3 { margin: 30px 0 12px; font-size: 17px; }
.document p { margin: 0 0 20px; }
.document p.eyebrow { margin-bottom: 22px; }
.document .meta { color: var(--muted); font-size: 12px; line-height: 1.9; }
.document h1 + .meta { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.document ul { padding-left: 1.4em; margin: 18px 0 24px; }
.document li { padding-left: .2em; margin: 8px 0; }
.document li::marker { color: var(--gold-ink); }
.document > :last-child { margin-bottom: 0; }
.notice { margin: 24px 0; padding: 20px 24px; border: 1px solid #dbe3e9; border-left: 3px solid #8194a8; background: #f4f7fa; color: #34475b; font-size: 14px; }
.notice-warning { border-color: #e9dfc7; border-left-color: #aa7d28; background: #fcf8ef; color: #514127; }
.support-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 28px 0; border-block: 1px solid var(--line); }
.support-summary p { margin: 0; padding: 20px; border-right: 1px solid var(--line); }
.support-summary p:first-child { padding-left: 0; }
.support-summary p:last-child { border-right: 0; }
.support-summary strong { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.support-summary span { font-size: 13px; font-weight: 600; }
.contact-form { margin: 38px 0 50px; }
.contact-form fieldset { min-width: 0; margin: 0 0 32px; padding: 24px; border: 1px solid var(--line); }
.contact-form legend { padding: 0 12px; color: var(--ink); font-size: 16px; font-weight: 700; }
.field { margin-bottom: 22px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.required,.optional { display: inline-block; margin-left: 5px; padding: 2px 7px; font-size: 10px; font-weight: 500; vertical-align: middle; letter-spacing: .03em; }
.required { color: #425b70; background: #e7edf2; }
.optional { color: #536377; background: #edf1f5; }
.field input,.field select,.field textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #b8c5d2; border-radius: 3px; color: var(--ink); background: #fafcfd; font: 16px/1.6 var(--body); }
.field input::placeholder,.field textarea::placeholder { color: #657387; opacity: 1; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: #647e97; background: #fff; }
.field textarea { min-height: 170px; resize: vertical; }
.field textarea#diagnostics { min-height: 130px; }
.document .field-help,.document .form-footnote { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-form fieldset > .field-help { margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.form-grid .field { margin-bottom: 0; }
.consent-row { display: flex; align-items: flex-start; gap: 13px; margin: 26px 0; font-size: 13px; }
.consent-row input { flex: 0 0 22px; width: 22px; height: 22px; margin: 3px 0 0; accent-color: #526477; }
.submit-button,.contact-link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 30px; border: 1px solid var(--gold); border-radius: 2px; color: #101a29; background: var(--gold); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.submit-button:hover,.contact-link:hover { color: #101a29; background: #dce6ee; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result-card { max-width: 800px; }
.result-success { border-top-color: #5c846f; }
.result-error { border-top-color: #b66c55; }
footer { border-top: 1px solid #d8e0e7; padding: 28px 0; color: var(--muted); font: 9px/1.8 var(--display); letter-spacing: .05em; }
.footer-row { display: flex; justify-content: space-between; gap: 22px; }
@media(max-width:1100px) {
  .wrap { width: calc(100% - 56px); }
  .nav { gap: 20px; }
  .nav nav { gap: 20px; }
}
@media(max-width:800px) {
  html { scroll-padding-top: 145px; }
  .nav { flex-wrap: wrap; gap: 4px 20px; padding: 13px 0 0; }
  .brand { min-height: 40px; font-size: 11px; }
  .nav nav { flex: 1 0 100%; justify-content: flex-start; gap: 30px; margin-left: 0; }
  .nav nav a { min-height: 43px; font-size: 11px; }
  main.wrap { padding-block: 32px 50px; }
  .document { padding: 34px; }
  .document h1 { font-size: 30px; }
  .support-summary p { padding: 14px; }
  .support-summary span { font-size: 12px; }
}
@media(max-width:480px) {
  .wrap { width: calc(100% - 36px); }
  .brand { font-size: 10px; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .nav nav { justify-content: space-between; gap: 8px; }
  .nav nav a { font-size: 10px; }
  main.wrap { width: 100%; padding-block: 24px 36px; }
  .document { padding: 30px 20px; border-inline: 0; font-size: 14px; }
  .document h1 { font-size: clamp(24px,6.6vw,30px); letter-spacing: -.055em; }
  .document h2 { margin-top: 36px; font-size: 18px; }
  .eyebrow { font-size: 9px; }
  .document .meta { font-size: 11px; }
  .notice { padding: 17px; font-size: 13px; }
  .support-summary { grid-template-columns: 1fr; }
  .support-summary p,.support-summary p:first-child { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .support-summary p:last-child { border-bottom: 0; }
  .support-summary strong { margin: 0; }
  .contact-form fieldset { padding: 20px 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .submit-button { width: 100%; }
  .footer-row { flex-direction: column; gap: 12px; font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

/* COUNT SNAP: shared editorial structure, silver identity. */
.skip{position:fixed;top:-80px;left:16px;z-index:100;padding:12px;background:white}.skip:focus{top:12px}
.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.error{border-left-color:#ac4b50;background:#fff3f3}.success{border-left-color:#4b8066;background:#eff8f2}
.faq-item{border-bottom:1px solid var(--line);padding:18px 0}.faq-item summary{cursor:pointer;font-weight:600}.faq-item p{margin:14px 0 0;color:var(--muted)}
.document-toc{margin:28px 0 36px;padding:20px 24px;background:#f4f6f8;border:1px solid var(--line)}
.document-toc summary{cursor:pointer;font-weight:600}.document-toc ol{columns:2;column-gap:34px;padding-left:22px}.document-toc li{break-inside:avoid;font-size:13px}.document h2{scroll-margin-top:150px}
.document-links{display:flex;flex-wrap:wrap;gap:14px 24px;margin-top:48px;padding-top:24px;border-top:1px solid var(--line);font-size:12px}
.field label input,.field label textarea,.field label select{margin-top:10px}
@media(max-width:600px){.document-toc ol{columns:1}.document-toc{padding:18px}.document h2{scroll-margin-top:145px}}
/* Shared header geometry follows WORD SMASH on every COUNT SNAP page. */
body>header{position:sticky;top:0;z-index:50;background:rgba(17,20,25,.97);border-bottom:1px solid rgba(176,195,214,.19);box-shadow:none}
body>header .wrap.nav{width:min(1280px,calc(100% - 96px));max-width:1280px;height:auto;min-height:82px;margin-inline:auto;padding:0;display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:nowrap}
body>header .brand{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#f1f2ee;font:700 12px/1.3 SnapDisplay,Arial,sans-serif;letter-spacing:.08em;text-decoration:none}
body>header .brand img{width:35px!important;height:35px!important;max-width:35px!important;max-height:35px!important;flex-basis:35px;object-fit:contain;border-radius:22%}
body>header .brand span{display:inline}
body>header .nav nav{display:flex;justify-content:flex-end;gap:28px;margin-left:auto;width:auto;font-weight:400}
body>header .nav nav a:nth-child(n){display:flex;align-items:center;min-height:44px;padding:0;font-size:12px;line-height:1.95;color:#c1cad4;white-space:nowrap;text-decoration:none;letter-spacing:0;border-radius:0;background:none;border-bottom:1px solid transparent;transition:color .2s,border-color .2s;box-shadow:none}
body>header .nav nav a:hover,body>header .nav nav a[aria-current]{color:#c2cfdb;border-color:#c2cfdb;opacity:1}
@media(max-width:1100px){body>header .wrap.nav{width:calc(100% - 56px);gap:20px}body>header .nav nav{gap:20px}body>header .brand{font-size:10px}}
@media(max-width:800px){html{scroll-padding-top:145px}body>header .wrap.nav{flex-wrap:wrap;gap:4px 20px;padding:13px 0 0}body>header .brand{min-height:40px;font-size:11px}body>header .nav nav{order:2;flex:1 0 100%;justify-content:flex-start;gap:30px;margin-left:0}body>header .nav nav a{font-size:11px;min-height:43px}}
@media(max-width:480px){body>header .wrap.nav{width:calc(100% - 36px)}body>header .brand{gap:9px;font-size:10px}body>header .brand img{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;flex-basis:30px}body>header .nav nav{justify-content:space-between;gap:8px}body>header .nav nav a{font-size:10px}}
@media(prefers-reduced-motion:reduce){body>header .nav nav a{transition:none}}
