/* MCJ Web — base
   デザインは未確定。ここは足場として最小限のみ置く。 */

:root {
  --bg: #ffffff;
  --fg: #14161a;
  --muted: #5b6068;
  --line: #e3e5e9;
  --accent: #0b2a4a;
  --brand: #00A2E8;   /* ロゴのシアン。図形アクセント用。文字色には使わない（白背景でコントラスト不足） */
  --radius: 10px;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --fg: #e8eaed;
    --muted: #9aa0a8;
    --line: #262a30;
    --accent: #cfe0f2;
  }
}

:root[data-theme="light"] {
  --bg: #ffffff; --fg: #14161a; --muted: #5b6068;
  --line: #e3e5e9; --accent: #0b2a4a;
}
:root[data-theme="dark"] {
  --bg: #0e1013; --fg: #e8eaed; --muted: #9aa0a8;
  --line: #262a30; --accent: #cfe0f2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

/* ロゴ原寸 766x132（比率 5.8:1・背景透過）
   ライト背景=logo.png / ダーク背景=logo-white.png */
.brand img {
  height: 26px;
  width: auto;
  display: block;
}

/* layout */
.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: .02em;
  line-height: 1.35;
}

h2 {
  margin: 1.5rem 0 .5rem;
  font-size: .95rem;
  letter-spacing: .04em;
}

.lead {
  margin: 0 0 2rem;
  color: var(--muted);
}

.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

.note h2:first-child { margin-top: 0; }

.note ul {
  margin: 0;
  padding-left: 1.1rem;
}

.note li { margin: .2rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875em;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  padding: .12em .4em;
  border-radius: 4px;
}

.foot {
  color: var(--muted);
  font-size: .875rem;
  margin: 0;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

/* 広い要素は個別にスクロールさせる（body に横スクロールを出さない） */
table, pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

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

/* 404 */
.notfound .eyebrow {
  display: inline-block;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--brand);  /* ブランドカラーは図形アクセントのみ */
}

.back {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.back:hover { opacity: .75; }

.back:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
