/* QnoNote Classroom 説明ページ 第4版
   土台は試作の案B「授業の画面」。アプリの水色の面と、2台の iPad の画面。
   区画ごとに組み方を変える（全部に同じ2段組みを当てない）。 */

:root {
  --blue: #009FE8;      /* アプリのアクセント。大きな平らな面 */
  --bg: #F7FAFC;        /* アプリの背景色 */
  --ink: #10191F;       /* アプリの文字色 */
  --navy: #021E8A;      /* アプリアイコンの濃い青 */
  --red: #D9353E;       /* 赤ペンの赤。小さな差し色だけ */
  --tint: #E1F4FD;      /* 吹き出しの地 */
  --pale: #EEF2F5;      /* 写真の床の色に合わせた淡い面 */
  --ink-sub: #46535B;
  --r-ui: 12px;
  --r-tab: 10px;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
p, li, td, figcaption { text-wrap: pretty; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 900;
  margin: 0;
  text-wrap: balance;
  line-break: strict;
  word-break: auto-phrase;
}
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.data a:focus-visible, .s-navy a:focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 10;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: var(--r-ui); font-weight: 700;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.only-sp { display: none; }
.nw { white-space: nowrap; }

/* ───── ボタン・リンク ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--r-ui);
  font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.3;
  text-decoration: none;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--ink); min-height: 48px; padding: 0 22px; font-size: 16px; }
.textlink {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* ───── 札（アプリの部品に近い形） ───── */
.tab {
  position: absolute; left: 16px; top: 0; transform: translateY(-50%);
  background: #fff; color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 1;
  padding: 10px 14px; border-radius: var(--r-tab);
  box-shadow: 0 4px 12px rgba(2, 30, 138, 0.18);
  white-space: nowrap;
}

/* 切り抜き: 画像の一部だけを枠に出す。--cx --cy は左上、--cw は幅の割合、--r は画像の 高さ÷幅 */
.crop {
  --cx: 0; --cy: 0; --cw: 1; --r: 0.75;
  position: relative; overflow: hidden; container-type: inline-size;
  background: #fff;
}
.crop img {
  position: absolute; display: block; max-width: none; height: auto;
  width: calc(100cqw / var(--cw));
  left: calc(-1 * var(--cx) * 100cqw / var(--cw));
  top: calc(-1 * var(--cy) * 100cqw / var(--cw) * var(--r));
}

/* ───── ヘッダーと一番上: 水色の面 ───── */
.site-header { background: var(--blue); }
.site-header-in {
  max-width: 1440px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  color: var(--ink); font-family: var(--font-head); font-weight: 900; font-size: 20px; text-decoration: none;
}
.brand img { border-radius: 9px; display: block; }

.hero { background: var(--blue); overflow: hidden; }
.hero-in {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 24px;
  padding: 28px 0 0 40px; align-items: start;
}
.hero-text { padding-top: 16px; }
.hero-kicker { font-weight: 700; font-size: 16px; line-height: 1.6; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.2; letter-spacing: -0.01em;
}
.hero-lead { margin-top: 28px; font-size: 18px; font-weight: 500; line-height: 1.9; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.hero-note { margin-top: 24px; font-size: 14px; line-height: 1.7; }

.stage { position: relative; padding: 28px 0 150px; }
.fig { position: relative; }
.fig .crop { border-radius: var(--r-ui); box-shadow: 0 18px 44px rgba(2, 30, 138, 0.30); }
.hero-crop-t { aspect-ratio: 2732 / 2048; --r: 0.7496; }
.hero-crop-s { aspect-ratio: 2360 / 1640; --r: 0.6949; }
.fig-teacher { width: calc(100% - 28px); }
.fig-student { position: absolute; left: -12px; bottom: -96px; width: 60%; }
@media (min-width: 861px) and (max-width: 1100px) { .fig-student { bottom: -48px; } }

/* 注記: 図の該当箇所から引いた直線の札 */
.note { position: absolute; width: 0; --c: var(--ink); }
.note::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--c); }
.note::after { content: ""; position: absolute; top: -3px; left: -4px; width: 8px; height: 8px; background: var(--c); }
.note b {
  position: absolute; top: 100%; left: 0; transform: translateX(-50%);
  background: var(--c); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1;
  padding: 10px 14px; border-radius: var(--r-tab); white-space: nowrap;
}
.note-black { left: 48.8%; top: 57%; height: 8%; }
.note-red { --c: var(--red); left: 91.9%; top: 50.5%; height: 14.5%; }
.note-red b { transform: translateX(-84%); }

/* ───── 作り手: 写真が、白い面と淡い面の境目をまたぐ ───── */
.maker { background: #fff; overflow: hidden; }
.maker-photo-row { padding: 80px 32px 0; }
.maker-photo { position: relative; max-width: 1096px; margin: 0 auto; }
.maker-photo > img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* 写真の壁と床の境目（画像の高さの 85%）から下を、淡い面に続ける。写真の床の色と同じにして、灰色の帯を消す */
.floor {
  position: absolute; left: 0; right: 0; top: 85.2%; bottom: 0;
  background: var(--pale);
  box-shadow: -100vmax 0 0 var(--pale), 100vmax 0 0 var(--pale);
}
.maker-say {
  position: absolute; z-index: 2; inset: 0 auto 0 0; width: 47%;
  display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-bottom: 8%;
}
.maker-say h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.35; }
.balloon {
  position: relative; background: var(--tint); border-radius: var(--r-ui);
  padding: 26px 30px; font-weight: 700; font-size: 21px; line-height: 1.8;
}
.balloon::after {
  content: ""; position: absolute; right: -20px; top: 48px; width: 22px; height: 30px;
  background: var(--tint); clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.maker-lower { background: var(--pale); padding: 48px 0 104px; }
.maker-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start;
}
.letter p { font-size: 18px; line-height: 2.05; max-width: 34em; }
.letter p + p { margin-top: 1.2em; }
.who { background: #fff; padding: 28px 28px 30px; }
.who-name { font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: 1.3; }
.who-yomi { font-size: 14px; color: var(--ink-sub); line-height: 1.6; }
.who-role { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.7; }
.who-career { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--ink-sub); }

/* ───── できること ───── */
.can { background: #fff; }

/* 大: 同じノートに同時に書く */
.can-big { padding: 112px 0 120px; }
.can-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.3; margin-bottom: 56px; }
.big { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.big-text h3 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.3; }
.big-text p { margin-top: 28px; font-size: 18px; line-height: 2; }
.big-fig { display: grid; gap: 44px; }
.pane { position: relative; }
.pane .crop { border-radius: var(--r-ui); box-shadow: 0 14px 36px rgba(16, 25, 31, 0.16); }
.big-crop-t { aspect-ratio: 1253.4 / 580.6; --cx: 0.5255; --cy: 0.3268; --cw: 0.4588; --r: 0.7496; }
.big-crop-s { aspect-ratio: 1153.3 / 534; --cx: 0.4922; --cy: 0.3511; --cw: 0.4887; --r: 0.6949; }
.pane-s { margin-left: 56px; }
.big-fig figcaption { font-size: 14px; line-height: 1.7; color: var(--ink-sub); margin-left: 56px; }

/* 中: レイヤー。水色の面に、3枚を少しずつずらして重ねた説明図 */
.can-layer { background: var(--tint); padding: 96px 0 104px; }
.layer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.layers { grid-column: 1; grid-row: 1; }
.layer-text { grid-column: 2; grid-row: 1; }
.layer-text h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.4; }
.layer-text p { margin-top: 24px; font-size: 17px; line-height: 2; }
.layers figcaption { margin-top: 28px; font-size: 14px; line-height: 1.7; }
/* 3枚の紙を、少しずつ下げて横に並べる。どの紙も同じ範囲（右の3問）を切り抜いているので、頭の中で重ねられる。
   レイヤー1・2の紙には、位置が分かるように教材をごく薄く敷く */
.layers-stack { position: relative; container-type: inline-size; aspect-ratio: 100 / 63; }
.sheet { position: absolute; width: 36cqw; }
.sheet-crop { aspect-ratio: 972 / 1290; --cx: 0.345; --cw: 0.655; --r: 0.8693; border-radius: var(--r-ui); box-shadow: 0 10px 26px rgba(2, 30, 138, 0.22); }
.sheet-crop .ghost { opacity: 0.16; }
.sheet-pdf { left: 0; top: 3cqw; }
.sheet-1 { left: 32cqw; top: 9cqw; }
.sheet-2 { left: 64cqw; top: 15cqw; }
.sheet .tab { left: 10px; }
.sheet-1 .tab { background: var(--ink); color: #fff; }
.sheet-2 .tab { background: var(--red); color: #fff; }

/* 中: 生徒ごとにノートが分かれる。横長の図を右の端まで */
.can-home { padding: 104px 0 112px 0; }
.home-text {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
}
.home-text h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.4; }
.home-text p { margin-top: 20px; max-width: 33em; font-size: 17px; line-height: 2; }
.home-fig { margin: 48px 0 0 max(32px, calc((100% - 1096px) / 2)); }
.home-crop { aspect-ratio: 1912 / 1080; --cw: 0.7; --cy: 0.035; --r: 0.4173; border-radius: var(--r-ui) 0 0 var(--r-ui); box-shadow: 0 14px 36px rgba(16, 25, 31, 0.16); background: var(--bg); }
.home-fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--ink-sub); }

/* 小: 文だけの4つ。面の有無と大きさを揃えない */
.can-small { background: var(--bg); padding: 88px 0 104px; }
.small-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }
.s h3 { font-size: 22px; line-height: 1.5; }
.s p { margin-top: 12px; font-size: 16px; line-height: 1.95; }
.s-navy { grid-column: 1 / span 7; grid-row: 1; background: var(--navy); color: #fff; padding: 40px 40px 44px; }
.s-navy h3 { font-size: 28px; }
.s-pdf { grid-column: 9 / span 4; grid-row: 1; align-self: end; }
.s-timer { grid-column: 1 / span 5; grid-row: 2; }
.s-blue { grid-column: 7 / span 6; grid-row: 2; background: var(--blue); padding: 28px 32px 32px; margin-top: 36px; }
.red-ul {
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 5px; text-underline-offset: 6px;
}

/* ───── はじめかた: 手順と、水色の面に縦長の図 ───── */
.start {
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(32px, 1fr) minmax(0, 516px) minmax(0, 580px) minmax(32px, 1fr);
  grid-template-areas:
    "panel panel text ."
    ". table table .";
}
.start-text { grid-area: text; padding: 104px 0 72px 56px; }
.start-text h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.35; }
.start-lead { margin-top: 24px; font-size: 17px; line-height: 2; }
.steps { margin-top: 40px; counter-reset: step; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; min-height: 44px; line-height: 1.9; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: var(--r-tab);
  font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1;
}
.start-panel { grid-area: panel; background: var(--blue); }
.start-figs { padding: 72px 48px 72px 40px; max-width: 516px; margin-left: auto; }
.fig-admin { position: relative; width: 80%; }
.fig-admin .tab { left: auto; right: 16px; }
.fig-admin img { display: block; width: 100%; border-radius: var(--r-ui); box-shadow: 0 14px 32px rgba(2, 30, 138, 0.28); }
.fig-qr { position: relative; width: 78%; margin: -96px 0 0 22%; }
.fig-qr img { display: block; width: 100%; border-radius: var(--r-ui); box-shadow: 0 14px 32px rgba(2, 30, 138, 0.28); }
.fig-qr figcaption { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.start-table { grid-area: table; padding: 24px 0 112px; }
.start-note { margin-top: 20px; font-size: 15px; color: var(--ink-sub); }

/* 表（罫線を使わず、行の地色で分ける） */
table { border-collapse: collapse; width: 100%; }
.plain { font-size: 16px; line-height: 1.8; }
.plain th, .plain td { text-align: left; vertical-align: top; padding: 18px 24px; }
.plain thead th { background: var(--navy); color: #fff; font-weight: 700; padding-top: 12px; padding-bottom: 12px; }
.plain tbody th { width: 28%; font-weight: 700; }
.plain tbody tr:nth-child(odd) { background: #fff; }
.plain tbody tr:nth-child(even) { background: var(--pale); }

/* ───── データの扱い: 濃い青の面に一言 ───── */
.data { background: var(--navy); color: #fff; padding: 120px 0 128px; }
.data h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.35; }
.data-lead { margin-top: 32px; max-width: 36em; font-size: 18px; line-height: 2; }
.data-lead a { color: #fff; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.table-panel { margin-top: 56px; background: #fff; color: var(--ink); border-radius: var(--r-ui); overflow: hidden; }
.table-panel table { font-size: 16px; line-height: 1.75; }
.table-panel th, .table-panel td { padding: 20px 24px; text-align: left; vertical-align: top; }
.table-panel thead th { background: var(--blue); color: var(--ink); font-weight: 700; padding-top: 14px; padding-bottom: 14px; }
.table-panel tbody th { width: 38%; font-weight: 700; }
.table-panel tbody tr:nth-child(even) { background: var(--bg); }
.data-lists { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.data-lists h3 { font-size: 22px; line-height: 1.5; }
.data-lists ul { margin-top: 20px; display: grid; gap: 10px; }
.data-lists li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.8; }
.data-lists li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 8px; background: #fff; }
.data-never { background: var(--blue); color: var(--ink); padding: 32px 32px 36px; }
.data-never li::before { background: var(--ink); }
.data-note { margin-top: 28px; max-width: 40em; font-size: 15px; line-height: 1.9; }
.table-keep { margin-top: 64px; }
.table-keep + .data-note { margin-top: 24px; }

/* ───── できないこと: 白い面に短い言い切り ───── */
.limits { background: #fff; padding: 112px 0 72px; }
.limits h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.35; }
.limits-lead { margin-top: 16px; font-size: 17px; }
.limit-list { margin-top: 56px; column-count: 2; column-gap: 64px; }
.limit-list li { break-inside: avoid; padding-bottom: 32px; }
.limit-list strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 21px; line-height: 1.55; }
.limit-list span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.85; color: var(--ink-sub); }

/* ───── 動作環境と費用: 表だけ。いちばん静かな区画 ───── */
.specs { background: #fff; padding: 0 0 96px; } /* できないことと地続きにする（白い面のまま） */
.specs h2 { font-size: 26px; line-height: 1.4; margin-bottom: 24px; }
.specs-table { font-size: 15px; }
.specs-table tbody th { width: 18%; }
.specs-table tbody tr:nth-child(odd), .specs-table tbody tr:nth-child(even) { background: transparent; }
.specs-table th, .specs-table td { padding: 14px 24px 14px 0; }

/* ───── 使いはじめるまで ───── */
.flow { background: #fff; padding: 104px 0 96px; }
.flow h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.4; }
.flow-steps { margin-top: 40px; max-width: 760px; counter-reset: flow; display: grid; gap: 28px; }
.flow-steps li { counter-increment: flow; position: relative; padding-left: 64px; min-height: 44px; }
.flow-steps li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--navy);
  font-family: var(--font-head); font-weight: 900; font-size: 36px; line-height: 1;
} /* はじめかたの手順は箱つきの番号、こちらは大きな数字だけ（同じ見た目を繰り返さない） */
.flow-steps strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 20px; line-height: 1.7; }
.flow-steps span { display: block; font-size: 16px; line-height: 1.9; }

/* ───── よく聞かれること ───── */
.faq { background: var(--bg); padding: 88px 0 96px; }
.faq h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.4; }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-list { display: grid; gap: 36px; }
.qa h3 { font-size: 20px; line-height: 1.6; }
.qa p { margin-top: 6px; font-size: 16px; line-height: 1.95; }
.data-note-strong { font-size: 17px; font-weight: 700; }
.faq details { background: #fff; border-radius: var(--r-tab); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 56px;
  padding: 10px 64px 10px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 900; font-size: 18px; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 700; font-size: 20px; color: var(--navy);
}
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 24px 22px; font-size: 16px; line-height: 1.95; }

/* ───── 問い合わせ: 水色の面に写真 ───── */
.contact { background: var(--blue); padding-top: 96px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.contact-text { padding-bottom: 96px; }
.contact-text h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.35; }
.contact-text p { margin-top: 24px; font-size: 18px; line-height: 2; max-width: 30em; }
.contact-text .btn { margin-top: 36px; }
.contact-text .mail { margin-top: 16px; font-size: 20px; font-weight: 700; }
.contact-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: var(--r-ui) var(--r-ui) 0 0;
}

/* ───── フッター ───── */
.site-footer { background: var(--bg); padding: 56px 0 64px; font-size: 14px; line-height: 1.9; color: var(--ink-sub); }
.footer-in p + p { margin-top: 4px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.brand-foot { font-size: 18px; color: var(--ink); }
.footer-link {
  display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* ───── 中くらいの幅 ───── */
@media screen and (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); padding-left: 32px; }
  .hero h1 { font-size: min(5vw, 55px); }
  .site-header-in { padding-left: 32px; padding-right: 32px; }
  .big { gap: 40px; }
  .maker-body { gap: 40px; }
  .layer-grid { gap: 40px; }
  .start { grid-template-columns: minmax(32px, 1fr) minmax(0, 480px) minmax(0, 520px) minmax(32px, 1fr); }
  .start-text { padding-left: 40px; }
}

/* ───── スマホ（タブレット縦まで） ───── */
@media screen and (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .only-pc { display: none; }
  .only-sp { display: inline; }

  .site-header-in { padding: 12px 16px; }
  .brand { font-size: 17px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }

  /* 一番上: 2台を縦に並べ、どちらも解答欄の行を見せる（右半分を切り抜く） */
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px 16px 0; }
  .hero-text { padding-top: 8px; }
  .hero h1 { font-size: 40px; margin-top: 14px; }
  .hero-lead { font-size: 16px; margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .stage { padding: 28px 0 32px; display: grid; gap: 40px; }
  .fig-teacher, .fig-student { position: relative; left: auto; bottom: auto; width: 100%; }
  .hero-crop-t { aspect-ratio: 1530 / 1556; --cx: 0.44; --cw: 0.56; }
  .hero-crop-s { aspect-ratio: 1203.6 / 1180.8; --cx: 0.49; --cw: 0.51; }
  .tab { left: 10px; font-size: 12px; padding: 9px 11px; }
  .note b { font-size: 12px; padding: 8px 10px; }
  .note-black { left: 24.1%; top: 68.4%; height: 11.8%; }
  .note-red { left: 85.5%; top: 66.4%; height: 15.8%; }

  .maker-photo-row { padding: 56px 16px 0; }
  .maker-photo { display: flex; flex-direction: column; }
  .maker-say { position: static; width: auto; padding-bottom: 0; gap: 24px; display: flex; }
  .maker-say h2 { font-size: 32px; }
  .balloon { padding: 20px 20px; font-size: 18px; }
  .balloon::after { right: auto; left: 56%; top: auto; bottom: -18px; width: 30px; height: 20px; clip-path: polygon(0 0, 50% 100%, 100% 0); }
  .maker-photo > img { margin-top: 28px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 90% 50%; }
  .floor { top: auto; height: 14.6cqw; bottom: 0; }
  .maker-photo { container-type: inline-size; }
  .maker-lower { padding: 32px 0 72px; }
  .maker-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .letter p { font-size: 16px; }
  .who { padding: 22px 20px 24px; }

  .can-big { padding: 72px 0 80px; }
  .can-title { margin-bottom: 32px; }
  .big { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .big-text h3 { font-size: 30px; }
  .big-text p { font-size: 16px; margin-top: 18px; }
  .big-fig { gap: 36px; }
  .big-crop-t { aspect-ratio: 1001 / 580.6; --cx: 0.6178; --cw: 0.3665; }
  .big-crop-s { aspect-ratio: 921 / 534; --cx: 0.5906; --cw: 0.3903; }
  .pane-s, .big-fig figcaption { margin-left: 0; }

  .can-layer { padding: 64px 0 72px; }
  .layer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .layers, .layer-text { grid-column: 1; grid-row: auto; }
  .layer-text p { font-size: 16px; }
  .sheet .tab { left: 4px; max-width: calc(100% - 8px); white-space: normal; font-size: 11px; line-height: 1.35; padding: 6px 8px; }
  .layers-stack { aspect-ratio: 100 / 68; }

  .can-home { padding: 64px 0 72px; }
  .home-text { padding: 0 16px; }
  .home-text p { font-size: 16px; }
  .home-fig { margin: 32px 0 0 16px; }
  .home-crop { aspect-ratio: 983 / 1000; --cw: 0.36; }
  .home-fig figcaption { padding-right: 16px; }

  .can-small { padding: 56px 0 64px; }
  .small-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .s-navy, .s-pdf, .s-timer, .s-blue { grid-column: 1; grid-row: auto; margin-top: 0; align-self: auto; }
  .s-navy { padding: 28px 22px 30px; }
  .s-navy h3 { font-size: 24px; }
  .s-blue { padding: 24px 22px 28px; }
  .s-plain { padding: 8px 4px; }

  .start { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "panel" "table"; }
  .start-text { padding: 64px 16px 40px; }
  .start-figs { margin-left: 0; }
  .start-figs { padding: 56px 16px 48px; max-width: none; }
  .fig-admin { width: 78%; }
  .fig-qr { width: 78%; margin: -72px 0 0 22%; }
  .start-table { padding: 32px 16px 72px; }

  .plain th, .plain td { padding: 14px 14px; }
  .plain { font-size: 14px; }
  .plain tbody th { width: 34%; }

  .data { padding: 72px 0 80px; }
  .data h2 { font-size: 32px; }
  .data-lead { font-size: 16px; margin-top: 20px; }
  .table-panel { margin-top: 36px; }
  .table-panel table { font-size: 14px; }
  .table-panel th, .table-panel td { padding: 14px 14px; }
  .table-panel tbody th { width: 40%; }
  .data-lists { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 48px; }
  .data-never { padding: 24px 20px 28px; }
  .table-keep { margin-top: 40px; }

  .limits { padding: 72px 0 56px; }
  .limit-list { column-count: 1; margin-top: 36px; }
  .limit-list strong { font-size: 19px; }

  .specs { padding: 48px 0 56px; }
  .specs-table tbody th { width: 30%; }
  .specs-table th, .specs-table td { padding: 12px 12px 12px 0; }

  .flow { padding: 64px 0 64px; }
  .faq { padding: 56px 0 64px; }
  .faq .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq summary { font-size: 16px; padding: 10px 56px 10px 18px; }
  .faq details p { padding: 0 18px 20px; }

  .contact { padding-top: 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-text { padding-bottom: 40px; }
  .contact-text h2 { font-size: 32px; }
  .contact-text p { font-size: 16px; }
  .contact-photo { max-width: 320px; margin-left: auto; }
}

/* ───── 印刷（A4）: 色の面は印刷しない前提。文字は黒、ボタンは消す、<details> は開いて出す ───── */
@media print {
  @page { size: A4; margin: 14mm; }
  html { scroll-behavior: auto; }
  body { font-size: 11pt; line-height: 1.7; color: #000; background: #fff; }
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  .btn, .skip, .textlink, .site-header .btn, .hero-actions, .contact-text .btn { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .site-header-in, .hero-in { padding-left: 0; padding-right: 0; }
  .hero { overflow: visible; }
  .hero-in { display: block; padding-top: 8mm; }
  .stage { padding: 8mm 0 8mm; display: flex; align-items: flex-start; gap: 6mm; }
  .fig-teacher { width: 108mm; }
  .fig-student { position: relative; left: auto; bottom: auto; width: 66mm; margin-top: 12mm; }
  .fig, .pane, .fig-admin { display: flex; flex-direction: column; }
  .fig .tab, .pane .tab, .fig-admin .tab { position: static; transform: none; order: -1; align-self: flex-start; margin: 0 0 2mm; }
  .fig-admin .tab { align-self: flex-end; }
  .fig .note b { font-size: 9pt; padding: 2mm 3mm; }
  .hero h1 { font-size: 28pt; }
  .tab, .note b { border: 1px solid #000; background: #fff !important; }
  .note::before, .note::after { background: #000 !important; }
  .crop, .pane .crop, .fig .crop { box-shadow: none; border: 1px solid #999; }

  .maker-photo-row { padding: 8mm 0 0; }
  .maker-photo { display: block; max-width: 110mm; margin: 0; }
  .maker-say { position: static; width: auto; padding: 0; gap: 4mm; }
  .maker-say h2 { font-size: 20pt; }
  .balloon { font-size: 12pt; padding: 4mm 5mm; }
  .maker-photo > img { margin-top: 5mm; }
  .maker-lower { padding: 6mm 0 8mm; }
  .floor { display: none; }
  .who { border: 1px solid #999; }
  .balloon { border: 1px solid #000; }
  .balloon::after { display: none; }

  .can-big, .can-layer, .can-home, .can-small, .start-text, .start-figs, .start-table,
  .data, .limits, .specs, .flow, .faq, .contact, .maker-lower { padding-left: 0; padding-right: 0; }
  .can-big, .can-layer, .can-home, .can-small, .data, .limits, .specs, .flow, .faq { padding-top: 8mm; padding-bottom: 8mm; }
  .big, .layer-grid, .data-lists, .contact-grid { display: block; }
  .big-fig, .layers { margin-top: 6mm; }
  .big-fig { gap: 6mm; }
  .big-fig .pane { width: 130mm; }
  .big-fig .pane-s, .big-fig figcaption { margin-left: 0; }
  .layers-stack { max-width: 150mm; }
  .home-text { padding: 0; }
  .home-fig { margin: 6mm 0 0; }
  .home-fig img { border-radius: var(--r-ui); border: 1px solid #999; }
  .small-grid { display: block; }
  .s, .s-navy, .s-blue { padding: 0 0 5mm !important; margin: 0 !important; }
  .s-navy { border: none; }
  .start { display: block; }
  .start-panel { background: none; }
  .start-figs { padding: 4mm 0; max-width: none; margin: 0; display: flex; align-items: flex-start; gap: 8mm; }
  .fig-admin { width: 62mm; }
  .fig-qr { width: 86mm; margin: 0; }
  .start-table { padding: 4mm 0 0; }
  .plain thead th, .table-panel thead th { border-bottom: 1.5px solid #000; }
  .plain tbody th, .plain tbody td, .table-panel th, .table-panel td { border-bottom: 1px solid #bbb; }
  .table-panel { border: 1px solid #999; border-radius: 0; }
  .data-never { border: 1px solid #000; padding: 4mm !important; margin-top: 5mm; }
  .data-lists li::before { background: #000 !important; }
  .steps li::before, .flow-steps li::before { border: 1.5px solid #000; }
  .limit-list { column-count: 2; column-gap: 10mm; }
  .contact-photo { display: none; }
  .contact { padding-top: 8mm; break-inside: avoid; }
  .contact * { break-inside: avoid; }
  .contact-text { padding-bottom: 6mm; }
  .site-footer { padding: 6mm 0 0; }

  /* 図・表の行・手順・問い合わせは途中で切らない */
  figure, .fig, .pane, .sheet, tr, li, .contact-text, .maker-photo, .who, .balloon, .data-never, .s, .big-text, .layer-text, .home-text, .faq details { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  /* <details> は閉じていても答えを出す */
  details > *:not(summary) { display: block !important; }
  details::details-content { content-visibility: visible !important; display: block !important; }
  .faq summary::after { content: none; }
  .faq details { border: none; }
  .faq summary { padding: 3mm 0 1mm; }
  .faq details p { padding: 0 0 3mm; }
}
