/* 普通じゃないよ Web 診断: トークンと共通部品 */
:root {
  --navy: #154E7F;
  --navy-deep: #0D3559;
  --navy-tint: #E4EDF5;
  --pink: #DB5A72;
  --pink-deep: #B03F57;
  --pink-soft: #F2A9AD;
  --pink-tint: #FDE8E7;
  --cream: #FFF4EE;
  --white: #FFFFFF;
  --muted: #3F6283;
  --dot: rgba(242, 169, 173, 0.42);

  --font-pop: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Zen Maru Gothic", system-ui, sans-serif;
  --font-ui: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 16px;
  --border: 2px solid var(--navy);
  --shadow-soft: 5px 5px 0 var(--pink-soft);
  --shadow-navy: 5px 5px 0 var(--navy);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.7px, transparent 2px);
  background-size: 22px 22px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 18px calc(env(safe-area-inset-bottom, 0px) + 40px);
}

.boot { font-family: var(--font-pop); text-align: center; margin-top: 30vh; }

h1, h2, h3, p { overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 24px;
  border: var(--border);
  border-radius: 999px;
  font-family: var(--font-pop);
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn .icon svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn-sm .icon svg { width: 16px; height: 16px; }

.btn-primary { background: var(--pink); color: var(--white); box-shadow: 0 4px 0 var(--navy); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn-secondary { background: var(--white); color: var(--navy); box-shadow: 0 4px 0 var(--navy); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 4px 0 var(--navy-deep); }
.btn-light:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy-deep); }

.icon { display: inline-grid; place-items: center; line-height: 0; }
.icon svg { width: 1em; height: 1em; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.app-banner {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  background: var(--navy);
  color: var(--white);
  border: var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}
.app-banner h3 { margin: 0; font-family: var(--font-pop); font-weight: 400; font-size: 22px; line-height: 1.4; }
.app-banner p { margin: 0; font-size: 14px; font-weight: 700; opacity: 0.92; }

.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 36px 0 0; padding: 0; list-style: none; font-size: 12px;
}
.footer-links a { color: var(--muted); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
