@charset "utf-8";

/* ========== base.css ==========
  - reset / tokens / typography / layout utilities
================================ */

:root{
  --bg: #0b0f18;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.14);

  --accent: #7dd3ff;     /* シアン系 */
  --accent2: #a78bfa;    /* パープル系 */
  --danger: #ff6b6b;

  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.28);

  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;

  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Meiryo", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(125,211,255,.12), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(167,139,250,.10), transparent 55%),
              var(--bg);
  line-height: 1.7;
  letter-spacing: .02em;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

ul{ margin: 0; padding: 0; list-style: none; }

h1,h2,h3,p{ margin: 0; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.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;
}

/* Skip link */
.skip-link{
  position: absolute;
  top: 8px; left: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  transform: translateY(-120%);
  transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); outline: 2px solid var(--accent); }

/* Focus */
:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Body lock for nav */
body.is-locked{
  overflow: hidden;
}

/* fixed header offset（JSで実測して上書きされる） */
:root{
  --header-h: 72px; /* JSが動かない時の保険 */
}

body{
  padding-top: var(--header-h);
}

