/* =====================================================================
   つなぴ(サイト全体)と関連図ノートの紹介(kanrenzu/index.html) — レイアウトと部品
   ---------------------------------------------------------------------
   ・色・角の丸み・余白などの「値」は tokens.css の変数を使う(ここに直接書かない)。
   ・すべてのページで読み込む。1〜4・15・16 はサイト共通、5〜14 は関連図ノートの紹介(kanrenzu/index.html)用、17 はつなぴについて(about/index.html)とお問い合わせ(contact/index.html)用。
     トップ(index.html)のタイルの部品は home.css、ツールのページの部品は tools.css / self-check.css。
   ・並び順はページの上から順。各見出しの【 】は、index.html のどこに当たるか。
   ・画面幅の切り替え位置の一覧は tokens.css の先頭にある。

   目次
     1. 基本(リセット・文字・改行の小道具)
     2. ヘッダー(全ページ共通)【<header class="site-header">】【<nav class="site-nav">】
     2-2. ツールの切り替えの帯  【<nav class="tool-switch">】(ツールのページだけ)
     3. 共通の部品(カード・ボタン・状態表示・アイコン・!マーク)
     4. セクション共通          【<section class="section">】
     5. ヒーロー                【<section class="hero">】
     6. 関連図の画面イメージ    【<figure class="phone-wrap">】
     7. 困りごと                【<p class="before feature-pain">】
     8. できること              【<section id="features">】
     9. ちがい                  【<div class="compare">】
    10. データの扱い            【<section id="data">】
    11. 先生方へ                【<section id="teachers">】
    12. よくある質問            【<section id="faq">】
    13. お問い合わせのカード    【<div class="card contact">】(contact/index.html と about/index.html#contact で使う)
    14. 最後のひと言・フッター  【<section class="closing">】【<footer>】
    15. キャラクター(つなぴ)  【<img class="mascot …">】
    16. 印刷・動きを減らす設定
    17. つなぴについて・お問い合わせ 【about/index.html】【contact/index.html】
   ===================================================================== */

/* ===== 1. 基本 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* スクロールバーの場所をいつも空けておく(短いページでもヘッダーが横にずれないように) */
  scrollbar-gutter: stable;
  /* ページ内リンクで飛んだとき、追従するヘッダーの下に隠れないようにする */
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden; /* 背景の丸(blob)やキャラクターのはみ出しで横スクロールが出ないように */
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  /* 日本語を文節の区切りで改行する(「チェ/ック」「根/拠」のような単語の途中での改行を防ぐ)。
     対応していないブラウザ(Safari など)では、ふつうの改行になる */
  word-break: auto-phrase;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  /* 文節で改行するのは body で指定済み。対応していないブラウザ向けに、見出しは <span class="nw"> でも補う */
}
p {
  margin: 0;
}
a {
  color: var(--mint);
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 中身の幅をそろえる箱。.narrow は文章中心のセクション用 */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.wrap.narrow {
  max-width: var(--wrap-narrow);
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 var(--gutter-wide);
  }
}

/* 改行の小道具(見出しの変な改行を防ぐ)
   <span class="nw">直していい。</span> … この中では改行しない
   <br class="pc"> … PC(720px 以上)だけで改行
   <br class="sp"> … スマホ(720px 未満)だけで改行 */
.nw {
  white-space: nowrap;
}
br.pc {
  display: none;
}
@media (min-width: 720px) {
  br.pc {
    display: inline;
  }
  br.sp {
    display: none;
  }
}

/* キーボード操作用:Tab を押したときだけ左上に出る「本文へ移動」 */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  top: 8px;
}

/* ===== 2. ヘッダー =====
   全ページで同じ形(2026-11-10 決定):左にロゴ「つなぴ」(トップへ)、右にサイトのメニュー。
   ・メニュー(<nav class="site-nav">)はトップ・関連図ノートの紹介・つなぴについて・疾患ページで同じ中身にする
     (npm run check が食い違いを見つける)。今いるページのリンクには aria-current="page" を付ける(太字+下線)。
   ・狭い画面では「≡ メニュー」のボタン(<details class="site-menu"> の <summary>)にたたむ。JS なしで開閉できる。
     広い画面(860px 以上)では、ボタンを出さずにリンクを横に並べる(::details-content に対応したブラウザだけ。
     対応していないブラウザでは広い画面でもボタンのまま)。
   ・ツールのページはメニューを出さず、ロゴ+ツールの切り替えの帯(2-2)。ロゴの大きさ・位置・ヘッダーの高さは
     全ページで同じ(npm run check:layout が 390px・1280px で確かめる)。高さは tokens.css の --header-h。 */
@media (min-width: 720px) {
  :root {
    --header-h: var(--header-h-wide);
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg); /* 下の color-mix に対応していない古いブラウザ用 */
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
/* サイト名(ヘッダーとフッター) */
.brand {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand.small {
  font-size: 17px;
}
/* サイト「つなぴ」のロゴ(つなぴの顔。画像は favicon.svg を使い回す) */
.logo-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
}

/* サイトのメニュー */
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px; /* 指で押しやすい大きさ */
  min-width: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
/* よくある質問(12)の「+/−」を出さない */
.site-menu > summary::after,
.site-menu[open] > summary::after {
  content: none;
  display: none;
}
.site-menu > summary:hover,
.site-menu[open] > summary {
  border-color: var(--mint);
  color: var(--mint);
}
.menu-icon {
  font-size: 18px;
}
/* 開いたときの一覧(ヘッダーの右下に重ねる。ヘッダーの高さは変わらない) */
.site-menu > ul {
  position: absolute;
  right: var(--gutter);
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .site-menu > ul {
    right: var(--gutter-wide);
  }
}
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 44px; /* 指で押しやすい高さ */
  padding: 0 12px;
  border-radius: 8px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-menu a:hover {
  background: var(--mint-bg);
  color: var(--mint);
}
/* 今いるページ(色だけでなく、太字+下線でも示す) */
.site-menu a[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* メニューの中の「アプリ」「無料ツール」(押すと、その一覧が開く。name="menu-sub" で、一度に開くのは1つだけ) */
.menu-sub > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px; /* 指で押しやすい高さ */
  padding: 0 12px;
  border-radius: 8px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}
.menu-sub > summary::after,
.menu-sub[open] > summary::after {
  content: '▾' / '';
  position: static;
  transform: none;
  width: auto;
  height: auto;
  background: none;
  color: inherit;
  font-size: 14px;
}
.menu-sub[open] > summary::after {
  content: '▴' / '';
}
.menu-sub > summary:hover {
  background: var(--mint-bg);
  color: var(--mint);
}
.menu-sub > ul {
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
}
/* 広い画面:ボタンを出さず、リンクを横に並べる */
@supports selector(::details-content) {
  @media (min-width: 860px) {
    .site-menu > summary {
      display: none;
    }
    .site-menu::details-content {
      content-visibility: visible;
    }
    .site-menu > ul {
      position: static;
      display: flex;
      gap: 4px;
      min-width: 0;
      padding: 0;
      background: none;
      border: 0;
      box-shadow: none;
    }
    .site-menu a {
      padding: 0 10px;
      color: var(--muted);
      font-size: 14px;
    }
    /* 横並びでは太字にしない(文字の幅が変わり、ページを移るとメニューがずれるため)。色と下線で示す */
    .site-menu a[aria-current='page'] {
      color: var(--fg);
      font-weight: 500;
    }
    /* 「アプリ」「無料ツール」は、押すと下に小さな一覧が重なって開く */
    .menu-sub {
      position: relative;
    }
    .menu-sub > summary {
      padding: 0 10px;
      color: var(--muted);
      font-size: 14px;
    }
    .menu-sub > ul {
      position: absolute;
      left: 0;
      top: calc(100% + 4px);
      z-index: 20;
      min-width: 200px;
      padding: 6px;
      background: var(--surface);
      border: 1.5px solid var(--line);
      border-radius: var(--radius-s);
      box-shadow: var(--shadow);
    }
    .menu-sub > ul a {
      color: var(--fg);
      font-size: 15px;
    }
  }
}

/* ===== 2-2. ツールのページのヘッダーと、ツールの切り替えの帯 =====
   ツールのページ(body class="tool-page")は、ロゴ+帯だけにして画面を道具に使う(メニューは出さない)。
   ヘッダーの高さ・ロゴは 2 の共通のもの(ほかのページと同じ見た目・位置)。
   ヘッダーと帯の位置・高さは全ツールページで同じにする(ページを移っても上の部分が動かないように。
   npm run check:layout が 390px・1280px で確かめる)。ツールごとの CSS(tools.css・self-check.css)では変えない。 */

/* ツールの切り替えの帯
   ツールのページ(tools/〇〇/)のヘッダーのすぐ下。ツールを横に並べ、入らないときは横にスクロールする。
   今のツールは aria-current="page" を付け、太字+下線で示す(色だけで区別しない)。
   中身は全ツールページで同じにする(npm run check で食い違いを確かめている)。準備中のツールは出さない。 */
.tool-switch ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.tool-switch ul::-webkit-scrollbar {
  display: none;
}
.tool-switch li {
  flex: none;
}
.tool-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* 指で押しやすい高さ */
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tool-switch a:hover {
  border-color: var(--mint);
  color: var(--mint);
}
.tool-switch a[aria-current='page'] {
  border-color: var(--mint);
  background: var(--mint-bg);
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* キーボードで選んだとき、横スクロールの箱で枠が切れないように内側に出す */
.tool-switch a:focus-visible {
  outline-offset: -3px;
}

/* ===== 3. 共通の部品 ===== */

/* カード(白い背景・丸い角・薄い影)。
   使い方:<div class="card"> 。角の丸みを変えたいときは、そのクラスで --card-radius を指定する。
   印刷では自動で枠線つきになる(16. 印刷)。 */
.card {
  background: var(--surface);
  border-radius: var(--card-radius, var(--radius-m));
  box-shadow: var(--shadow);
}

/* ボタン(押せるもの・リンクだけに使う) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* 指で押しやすい高さ */
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--mint);
  color: var(--mint);
  background: var(--surface);
}
.btn:hover {
  background: var(--mint-bg);
}

/* 状態の表示(押せない)。ボタンと見間違えないよう、角を小さく・点をつける。
   「ただいま公開準備中」は2か所(ヒーローと最後)にあるので、変えるときは両方 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  border-radius: var(--radius-s);
  background: var(--peach-bg);
  color: var(--peach);
  font-weight: 700;
  font-size: 15px;
}
.status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* 「仮」の札(まだ決まっていないものにつける) */
.tentative {
  font-size: 14px;
  font-weight: 700;
  color: var(--peach);
  background: var(--peach-bg);
  border-radius: var(--radius-pill);
  padding: 0 8px;
  line-height: 1.8;
}

/* アイコンの丸い下地。.small はピーチ色の小さい版(ご利用にあたって) */
.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mint-bg);
  display: grid;
  place-items: center;
}
.icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.small {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--surface);
}
.icon.small svg {
  stroke: var(--peach);
  width: 26px;
  height: 26px;
}

/* チェックの「!」マーク(画面イメージの中と、チェックの表示例で共通) */
.mark,
.check-sample li::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sym);
  color: var(--sym);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ===== 4. セクション共通 ===== */
.section {
  padding: var(--section-space) 0;
}
@media (min-width: 960px) {
  .section {
    padding: var(--section-space-wide) 0;
  }
}
/* 色つきの帯にするときは section に .tint-mint / .tint-peach を足す */
.tint-mint {
  background: var(--mint-bg);
  border-radius: var(--radius-band) var(--radius-band) 0 0;
}
.tint-peach {
  background: var(--peach-bg);
  border-radius: var(--radius-band) var(--radius-band) 0 0;
}
/* 見出しの上の小さいラベル(「できること」など) */
.kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(24px, 5vw, 34px);
  margin-bottom: 40px;
}
/* 見出し+右にキャラクター:<div class="sec-head"><h2>…</h2><img class="mascot mascot-side"></div>
   スマホでは見出しの幅を確保するため、キャラクターを見出しの上(右寄せ)に回す */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.sec-head h2 {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .sec-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 4px;
  }
  .sec-head .mascot-side {
    align-self: flex-end;
  }
}
/* セクションの最後の補足文 */
.note {
  margin-top: 24px;
  color: var(--muted);
}
.note strong {
  color: var(--fg);
}
/* カードを並べる箱(スマホは1列、タブレット以上は2列) */
.card-grid {
  display: grid;
  gap: var(--card-gap);
}
@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--card-gap-wide);
  }
}

/* ===== 5. ヒーロー ===== */
.hero {
  position: relative;
  padding: 32px 0 64px;
  overflow: hidden; /* 背景の丸(blob)を切り取る */
}
/* 背景のぼかした丸(飾り) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.blob-mint {
  width: 520px;
  height: 520px;
  background: var(--mint-blob);
  opacity: 0.55;
  top: -120px;
  right: -140px;
}
.blob-peach {
  width: 340px;
  height: 340px;
  background: var(--peach-blob);
  opacity: 0.5;
  bottom: -80px;
  left: -120px;
}
.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero {
    padding: 64px 0 104px;
  }
  .hero-inner {
    grid-template-columns: 1fr auto; /* 左:文章/右:スマホの画面イメージ */
    gap: 64px;
  }
}
/* 「実習、おつかれさま。」 */
.hello {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--peach);
  background: var(--peach-bg);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}
.hero h1 {
  font-size: clamp(36px, 8vw, 58px);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.lead {
  /* 背景の丸(blob)の上に乗るので、薄い灰色ではなく本文の色にする */
  color: var(--fg);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}

/* ===== 6. 関連図の画面イメージ(スマホの枠) ===== */
.phone-wrap {
  position: relative; /* ヒーローのキャラクターの位置の基準 */
  margin: 0 auto;
  width: 100%;
  max-width: 330px;
}
.phone {
  position: relative;
  border-radius: 44px;
  padding: 12px;
  background: var(--fg);
  box-shadow: var(--shadow-phone);
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  z-index: 1;
}
.screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--canvas);
  padding-top: 48px; /* ノッチの分 */
}
.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
  font-size: 14px;
}
.app-title {
  font-weight: 700;
}
/* 画面の中の「架空の例」の札 */
.app-sample {
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 8px;
  background: var(--surface);
}
.mini-map {
  display: block;
  width: 100%;
  height: auto;
  background-image: radial-gradient(var(--grid) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
}
.app-check {
  margin: 4px 12px 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  font-family: var(--f-data);
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow);
}
.app-check .mark {
  flex: none;
}
/* スマホの枠の中の、アプリの実際の画面(滴下計算。2026-11-19) */
.screen .shot {
  display: block;
  width: 100%;
  height: auto;
}
.phone-wrap figcaption {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  /* スマホ枠の影と背景の丸の上に乗るので本文の色にする */
  color: var(--fg);
}

/* 関連図(SVG)のノードと矢印
   ノード:<g class="n n-種類 [pot]">。種類は n-path(病態) n-sym(症状) n-tx(治療)
   n-risk(リスク) n-psy(心理) n-prob(看護問題)。pot をつけると点線(潜在的)。
   各種類は --c(線と種類ラベルの色)と --cb(塗り)を決めるだけ。 */
.edges line {
  stroke: var(--edge);
  stroke-width: 1.6;
}
.edges line.pot {
  stroke-dasharray: 5 4;
}
.ah {
  fill: var(--edge); /* 矢印の先 */
}
.n rect {
  fill: var(--cb);
  stroke: var(--c);
  stroke-width: 1.8;
}
.n.pot rect {
  stroke-dasharray: 5 4;
}
.n .tag {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: var(--c);
}
.n .lbl {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  fill: var(--fg);
}
.n-path {
  --c: var(--path);
  --cb: var(--path-bg);
}
.n-sym {
  --c: var(--sym);
  --cb: var(--sym-bg);
}
.n-tx {
  --c: var(--tx);
  --cb: var(--tx-bg);
}
.n-risk {
  --c: var(--risk);
  --cb: var(--risk-bg);
}
.n-psy {
  --c: var(--psy);
  --cb: var(--psy-bg);
}
.n-prob {
  --c: var(--prob);
  --cb: var(--prob-bg);
}
/* 看護問題は塗りが濃いので文字を白に。潜在的な看護問題は白地+点線 */
.n-prob .tag,
.n-prob .lbl {
  fill: var(--on-prob);
}
.n-prob.pot rect {
  fill: var(--surface);
}
.n-prob.pot .tag {
  fill: var(--prob);
}
.n-prob.pot .lbl {
  fill: var(--fg);
}

/* ===== 7. 困りごと(できることのカードの上の1行) =====
   <p class="before feature-pain">困りごと</p>。「これまで」のラベルは CSS で自動でつく */
.feature-pain {
  margin: 0 0 14px;
  font-size: 14px;
}
.before,
.after {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.before {
  color: var(--muted);
}
.after {
  font-weight: 700;
}
.before::before,
.after::before {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 10px;
  line-height: 1.8;
  position: relative;
  top: -1px;
}
.before::before {
  content: 'これまで';
  background: var(--peach-bg);
  color: var(--peach);
}
.after::before {
  content: 'これからは';
  background: var(--mint-bg);
  color: var(--mint);
}

/* ===== 8. できること =====
   <article class="card feature"> を .card-grid に並べる */
.feature {
  --card-radius: var(--radius-l);
  position: relative; /* 右上のキャラクター(.mascot-corner)の位置の基準 */
  padding: 28px;
}
.feature h3 {
  font-size: 20px;
  margin: 16px 0 10px;
}
.feature p {
  color: var(--muted);
}
/* チェックの表示例 */
.check-sample {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 16px;
  font-family: var(--f-data);
  font-size: 14px;
  line-height: 1.6;
}
.sample-label {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.check-sample ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.check-sample li {
  padding-left: 26px;
  position: relative;
}
.check-sample li::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 0.1em;
}

/* ===== 9. ちがい(見て学ぶ/作って学ぶ) =====
   .compare は .card-grid と同じ並び。左 .cmp-other(点線)、右 .cmp-ours(ミント) */
.cmp {
  border-radius: var(--radius-l);
  padding: 28px;
}
.cmp-other {
  background: var(--surface);
  border: 1.5px dashed var(--edge);
  color: var(--muted);
}
.cmp-ours {
  background: var(--mint);
  color: var(--on-mint);
  box-shadow: var(--shadow-accent);
}
.cmp-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.cmp-other .cmp-label {
  color: var(--fg);
}
.cmp ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.cmp li {
  padding-left: 24px;
  position: relative;
}
.cmp-other li::before {
  content: '・';
  position: absolute;
  left: 4px;
}
.cmp-ours li {
  font-weight: 700;
}
.cmp-ours li::before {
  content: '✓';
  position: absolute;
  left: 2px;
}

/* ===== 10. データの扱い(関連図ノートの紹介の id="data"。部品の名前は .safety のまま) ===== */
.safety {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .safety {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.safe-item h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}
.safe-item p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== 11. 先生方へ ===== */
.teacher-card {
  --card-radius: var(--radius-xl);
  position: relative; /* 右上のキャラクター(.mascot-card)の位置の基準 */
  padding: 36px 28px;
}
@media (min-width: 720px) {
  .teacher-card {
    padding: 48px 56px;
  }
}
.teacher-card h2 {
  margin-bottom: 24px;
}
.teacher-card p + p {
  margin-top: 16px;
}
.teacher-card p:not(.kicker) {
  color: var(--muted);
}
.teacher-card strong {
  color: var(--fg);
}

/* ===== 12. よくある質問 =====
   <details class="card"><summary>質問</summary><p>答え</p></details> を足すだけで増やせる */
.faq {
  display: grid;
  gap: 12px;
}
summary {
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
/* 右の「+/−」。「/ ''」は読み上げソフトに読ませないための書き方 */
summary::after {
  content: '+' / '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
details[open] summary::after {
  content: '−' / '';
}
details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ===== 13. お問い合わせのカード(contact/index.html・about/index.html#contact) ===== */
.contact {
  margin-top: 40px;
  padding: 28px;
}
.contact-h {
  font-size: 20px;
  margin-bottom: 8px;
}
.contact p {
  color: var(--muted);
}
.contact-mail {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}
.contact-mail a {
  overflow-wrap: anywhere; /* 長いメールアドレスでも横にはみ出さない */
}
.contact-warn {
  margin-top: 12px;
  font-size: 14px;
}
.contact-warn::before {
  content: '※ ';
}

/* ===== 14. 最後のひと言・フッター ===== */
.closing {
  padding: 88px 0;
  text-align: center;
  background: var(--mint-bg);
}
.closing-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 5.5vw, 38px);
  margin-bottom: 24px;
}
.site-footer {
  padding: 24px 0 32px; /* 中身が少ないので、余白で長くしない */
  font-size: 14px;
  color: var(--muted);
  background: var(--mint-bg);
  border-top: 1px solid var(--line); /* color-mix に対応していない古いブラウザ用 */
  border-top: 1px solid color-mix(in srgb, var(--mint) 20%, transparent);
}
.site-footer .wrap > * + * {
  margin-top: 12px;
}
/* ロゴと著作権表示は1行に並べる(ツールのページのフッターは別の形)。説明の文やリンクがあれば、その上に置く */
.site-footer:not(.tool-footer) .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.site-footer:not(.tool-footer) .wrap > * {
  margin: 0;
}
.site-footer:not(.tool-footer) .wrap > :not(.brand):not(.copy) {
  flex-basis: 100%;
  order: -1;
}
.site-footer:not(.tool-footer) .copy {
  margin-left: auto;
}
.site-footer strong {
  color: var(--fg);
}
/* 文の中のリンクは、見た目を変えずに押せる範囲だけ上下に広げる(行の高さは変わらない) */
.note a {
  padding-block: 10px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* 指で押しやすい高さにする */
}
.copy {
  font-size: 14px;
}

/* ===== 15. キャラクター(つなぴ) =====
   画像は assets/character/ の SVG(正方形)。差し替えは index.html の class="mascot" の src を変える。
   置き方は4種類:
     .mascot-hero   … ヒーローのスマホ枠のそば
     .mascot-side   … 見出しの右(.sec-head の中)
     .mascot-corner … 「できること」のカードの右上
     .mascot-card   … 「先生方へ」のカードの右上
   はみ出し量はキャラクター自身の大きさに対する割合(translate の %)で決めているので、
   別の正方形の絵に替えてもほぼ同じ位置に収まる。
   左向きにしたいときは class="flip" を足す(となりの文章のほうを向くように置く)。
   位置は translate、向きは transform と別のプロパティにしているので、両方つけても打ち消し合わない。 */
.mascot {
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.flip {
  transform: scaleX(-1);
}

/* ヒーロー:スマホ〜タブレットでは画面の右上からのぞく/広い PC では画面の左下に立つ */
.mascot-hero {
  position: absolute;
  z-index: 2;
  width: 25%;
  right: 0;
  top: 0;
  translate: 10% -55%;
}
@media (min-width: 1101px) {
  .mascot-hero {
    width: 33%;
    right: auto;
    top: auto;
    left: 0;
    bottom: 9%;
    translate: -88% 0;
  }
}
/* 見出しの右 */
.mascot-side {
  width: 120px;
  flex: none;
  margin-bottom: -8px;
}
@media (max-width: 600px) {
  .mascot-side {
    width: 84px;
  }
}
/* カードの右上に乗る */
.mascot-corner,
.mascot-card {
  position: absolute;
  top: 0;
}
.mascot-corner {
  width: 84px;
  right: 8px;
  translate: 0 -22%;
}
.mascot-card {
  width: 104px;
  right: 20px;
  translate: 0 -40%;
}
@media (max-width: 600px) {
  .mascot-card {
    width: 80px;
    right: 12px;
  }
}
/* 最後のひと言の上 */
.closing .mascot {
  width: 140px;
  margin: 0 auto 8px;
}

/* ===== 16. 印刷・動きを減らす設定 =====
   印刷の確認は npm run check:layout(.shots/print.pdf ができる) */
@media print {
  .site-header {
    position: static;
    backdrop-filter: none;
  }
  /* 印刷に不要なもの:メニュー・飾り・押すためのボタン・キャラクター */
  .site-header nav,
  .tool-switch,
  .skip-link,
  .blob,
  .hero-actions .btn,
  .closing,
  .mascot {
    display: none;
  }
  /* 「公開準備中」は印刷にも残す(回覧されたときに、もう使えると誤解されないように) */
  .status {
    border: 1px solid currentColor;
  }
  .hero {
    overflow: visible;
    padding: 16px 0 32px;
  }
  .section {
    padding: 32px 0;
  }
  /* 背景色・影は印刷で消えるので、カードは枠線にする */
  .card {
    box-shadow: none;
    border: 1px solid #999;
  }
  .tint-mint,
  .tint-peach,
  .site-footer {
    background: none;
  }
  /* 白文字の箱は、背景が消えると読めないので枠線+本文色にする */
  .cmp-ours {
    color: var(--fg);
    background: none;
    border: 2px solid var(--fg);
    box-shadow: none;
  }
  /* よくある質問は答えも印刷する(今の Chrome は ::details-content で中身を隠すため両方書く) */
  details::details-content {
    content-visibility: visible;
    display: block;
  }
  details > p {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== 17. つなぴについて(about/index.html)・お問い合わせ(contact/index.html) =====
   about/ はサイト全体の「ご利用にあたって」(#safety)と、お問い合わせへの案内(#contact)。
   contact/ も同じ部品(about-main・about-head・about-sec・about-list)を使う。
   お問い合わせのカードは 13 の .contact を使う */
.about-main {
  padding: 32px 0 56px;
}
.about-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-head h1 {
  font-size: clamp(26px, 6vw, 34px);
}
.about-head .mascot {
  width: 72px;
  flex: none;
}
.about-lead {
  margin-top: 12px;
  color: var(--muted);
}
.about-sec {
  margin-top: 40px;
}
.about-sec h2 {
  font-size: clamp(21px, 4.5vw, 26px);
  margin-bottom: 16px;
}
.about-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-list li {
  padding: 18px 22px;
}
.about-list h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.about-list p {
  color: var(--muted);
}
.about-sec .contact {
  margin-top: 0;
}

/* お問い合わせ(contact/index.html)の「ご注意」のカード。
   色だけに頼らず、太い枠線と「ご注意」の文字で目立たせる(白黒印刷でも分かるように) */
.contact-alert {
  padding: 20px 22px;
  border: 2px solid var(--peach);
}
.contact-alert-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--peach);
}
.about-sec .contact-alert h2 {
  font-size: clamp(18px, 4.2vw, 21px);
  margin: 4px 0 8px;
}
.contact-alert p:last-child {
  color: var(--muted);
}

/* ===== 18. 横にスクロールする列(ツールの切り替えの帯・チップ) =====
   続きがあるときだけ右端をぼかし、隠れた項目に気づけるようにする。端までスクロールすると消える。
   スクロールしない(全部見えている)ときは、タイムラインが無効になり、ぼかさない。
   対応していないブラウザでは、今までどおりぼかさない */
@property --hfade {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@keyframes hfade-end {
  0%,
  92% {
    --hfade: 36px;
  }
  100% {
    --hfade: 0px;
  }
}
@supports (animation-timeline: scroll()) {
  .tool-switch ul,
  .chips {
    mask-image: linear-gradient(to right, #000 calc(100% - var(--hfade)), transparent);
    animation: hfade-end linear both;
    animation-timeline: scroll(self inline);
  }
}
@media print {
  .tool-switch ul,
  .chips {
    mask-image: none;
  }
}
