/* ═══════════════════════════════════════════════════════════════
   BASE — 10_base.css
   リセット・基本タイポグラフィ・Cocoon body上書き
   ※ body背景は 90_override.css で一元管理
═══════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* body背景・文字色は 90_override.css に一本化。ここでは非 !important で基本値のみ */
body {
  font-family: var(--font-sans);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: auto-phrase;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ── Cocoon layout wrappers ──────────────────────────────── */
#container, #page, #wrapper {
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#content, .content, #content-in, .content-in {
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

#main, .main {
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s;
}

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

ul, ol { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Accessibility ───────────────────────────────────────── */
.screen-reader-text, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
}

/* オーファン防止 */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }

/* 改行ユーティリティ */
br.sp-only { display: none; }
@media (max-width: 767px) { br.sp-only { display: inline; } }
br.pc-only { display: inline; }
@media (max-width: 767px) { br.pc-only { display: none; } }
