/* /for-teachers 専用スタイル。SPA とは独立した静的 1 枚もの。
   読み手が先生・学校の担当者なので、 /about (こども向け・ルビあり・キラキラ背景) とは
   意図的に体裁を変える:
     - ルビを使わない。フォントも装飾せず OS 標準の本文書体に任せる
     - 背景は /about と同じ sparkles + navy グラデ (同じサービスだと分かるように)。
       ただし本文の下には「今の背景色」を透過で敷いて (.page の veil) sparkles を
       弱め、 大人向けの落ち着きと可読性を保つ。 左右の余白では sparkles が見える
     - 1 行を読みやすい幅で止め、行間を広めに取る
   ブランドの色だけは本体 (src/style.css) / /about と揃え、同じサービスだと分かるようにする。
   CSP が style-src 'self' なので inline style は使えない。すべてここに書く。 */

:root {
  --bg: #0a0a1a;
  --bg-soft: #14142a;
  --panel: rgba(255, 255, 255, 0.035);
  --text: #f2f2f6;
  --text-soft: #b8b8cc;
  /* 注記 (.note) / figcaption / footer / URL の薄い文字。 白の本文や
     --text-soft より控えめだが、 読める明るさを確保する (対 --bg-soft で約 7.6:1)。 */
  --text-dim: #a6a6bd;
  --brand-yellow: #fcd34d;
  --brand-pink: #f9a8d4;
  --brand-sky: #93c5fd;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  /* 本文カラムの下に敷く veil = 「今の背景色」(--bg / --bg-soft のグラデ) を透過に
     したもの。 背後の sparkles を薄く残しつつ (透過)、 文字は読める濃さにする。 */
  --veil-top: rgba(10, 10, 26, 0.8);
  --veil-bottom: rgba(20, 20, 42, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic',
    'Noto Sans JP', sans-serif;
  /* /about と同じ sparkles + navy グラデを viewport 固定で敷く。 ただし fixed だけだと、
     印刷やページ全体のスクリーンショットのように viewport を超える描画で下側が塗られず、
     明るい地に薄い文字が乗って読めなくなる。 下地の単色を必ず併せて置く。
     sparkles は /about と共有 (同一 origin の静的アセット /about/sparkles.svg)。 */
  background-color: var(--bg-soft);
  background-image: url('/about/sparkles.svg'),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-position: 0 0, 0 0;
  background-size: 800px 800px, cover;
  background-repeat: repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-sky);
}

a:hover {
  color: var(--text);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 64px;
  /* 文字のある部分の下に「今の背景色」を透過で敷く。 背後の sparkles を弱めて
     可読性を確保しつつ、 透過なので星屑はうっすら残る。 左右の余白 (760px の外)
     では veil が無く、 body の sparkles がそのまま見える。 */
  background: linear-gradient(
    180deg,
    var(--veil-top) 0%,
    var(--veil-bottom) 100%
  );
}

/* --- hero --- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--brand-yellow);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 1.875rem;
  line-height: 1.5;
  font-weight: 700;
}

.lead {
  margin: 0 0 28px;
  color: var(--text-soft);
}

.hero-actions {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: #1a1a2e;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta:hover {
  color: #1a1a2e;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta-url {
  font-size: 0.875rem;
  color: var(--text-dim);
  word-break: break-all;
}

/* --- 本文 --- */

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-soft);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  margin: 0 0 20px;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.5;
}

h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--brand-pink);
  vertical-align: -0.12em;
}

p {
  margin: 0 0 18px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text);
  font-weight: 700;
}

.note {
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  color: var(--brand-sky);
  word-break: break-all;
}

/* --- 単語の例カード --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  color: var(--brand-yellow);
  font-weight: 700;
}

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

.card li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.card li + li {
  margin-top: 4px;
}

/* --- 手順 --- */

.steps {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.steps li {
  margin-bottom: 14px;
}

.steps li::marker {
  color: var(--brand-yellow);
  font-weight: 700;
}

/* --- 安全の箇条書き --- */

.checks {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 14px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0.15em;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-sky);
}

/* --- スクリーンショット --- */

figure {
  margin: 24px 0;
}

figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
}

figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
}

/* --- つくっている理由 --- */

.belief-line {
  margin: 0 0 20px;
  padding: 20px 24px;
  border-left: 3px solid var(--brand-yellow);
  border-radius: 0 8px 8px 0;
  background: var(--panel);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.7;
}

/* --- footer --- */

.footer {
  padding: 32px 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-dim);
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* --- 狭い画面 --- */

@media (max-width: 560px) {
  .hero {
    padding: 36px 0 28px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 32px 0;
  }
}
