/* =========================================================
   AVENIA CONNECT — Base（リセット・タイポグラフィ・レイアウト）
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 420px at 85% -120px, rgba(184, 165, 213, 0.35), transparent 70%),
    radial-gradient(900px 360px at -10% -80px, rgba(233, 183, 220, 0.22), transparent 70%),
    var(--color-bg);
  background-repeat: no-repeat;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-brand); line-height: var(--lh-tight); margin: 0; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0; }

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }

img, svg { display: block; max-width: 100%; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--sp-3); top: var(--sp-3); z-index: 100;
  background: var(--color-primary); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
}
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { color: #fff; }

[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }

.page { padding: 0 0 var(--sp-12); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }

/* PC：メイン＋サイド（キャラクター・補助情報）の2カラム */
.layout-split { display: grid; gap: var(--sp-4); }
.layout-split__aside { display: grid; gap: var(--sp-4); align-content: start; }

@media (min-width: 960px) {
  .container { padding: 0 var(--sp-6); }
  .layout-split { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
  .layout-split__aside { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-xl); }
}

.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.break { overflow-wrap: anywhere; word-break: break-word; }
.pre-wrap { white-space: pre-wrap; }
