/* =========================================================
   業務効率化AI研修 ― AIに仕事を頼める人になる（/ai-training/）2026-10 刷新版
   ・ページ専用。テンプレート page-ai-training.php だけが読み込む（テーマのCSSは来ない）
   ・黒い地に巨大な詰め組みの英字（Inter 850・字間 -0.065em・行ごとに下からせり上がる）＋和文の太字（Noto Sans JP 900）
   ・マザリアルの他ページの見た目（明朝・空のグラデーション）は持ち込まない
   ・すべて .aitr の内側に閉じる。文字は14px未満にしない（C-01）
   ・色は「地の色の組」（.aitr-dark＝気持ちを伝える欄／.aitr-light・.aitr-gray＝事実を書いた欄）で切り替える
   ========================================================= */

body.page-ai-training {
  margin: 0;
  background: #0b0b0c;
  -webkit-text-size-adjust: 100%;
}
.page-ai-training .grecaptcha-badge { visibility: hidden; } /* 右下のチャットと重なるため。表記はフォームの下に出す */

.aitr {
  --ink: #0b0b0c;
  --ink-2: #151517;
  --ink-3: #202024;
  --paper: #ffffff;
  --paper-2: #f3f3f0;
  --hot: #dcff3a;           /* 差し色は1つだけ。文字に使うのは暗い地の上だけ（明るい地では塗り＋黒い字） */
  --hot-ink: #0b0b0c;
  --en: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 5.5vw, 96px);
  --dock-h: 64px;

  /* 地の色の組（既定は暗い地） */
  --bg: var(--ink);
  --fg: #fff;
  --sub: #a8a8ad;
  --line: rgba(255, 255, 255, .16);
  --card: var(--ink-2);

  background: var(--ink);
  color: var(--fg);
  font-family: var(--ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  font-feature-settings: "palt" 0;
  overflow-x: clip;
}
/* リセットは :where() で詳細度0にする（部品のクラスの余白・色を消さない＝教訓064） */
:where(.aitr) *, :where(.aitr) *::before, :where(.aitr) *::after { box-sizing: border-box; }
:where(.aitr) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, blockquote) { margin: 0; padding: 0; }
:where(.aitr) :where(ul, ol) { list-style: none; }
:where(.aitr) :where(img) { max-width: 100%; height: auto; display: block; }
:where(.aitr) :where(a) { color: inherit; }
:where(.aitr) :where(button) { font: inherit; color: inherit; }
:where(.aitr) :where(p, li, dd) { text-wrap: pretty; }
.aitr [hidden] { display: none !important; } /* 自作の display 指定に hidden が負けないように（教訓059） */
.aitr mark { background: #ffe1dc; color: #9b1400; padding: 0 .1em; }
.aitr :focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
.aitr-light :focus-visible, .aitr-gray :focus-visible { outline-color: #2d5bff; }
.aitr .aitr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aitr .aitr-hide-sp { display: none; } /* スマホは画面の下の帯に同じボタンがある */
.aitr .aitr-print-only { display: none; } /* 印刷したときだけ出す（申請書類に添付する紙のため） */

/* ---------- 地の色の組 ---------- */
.aitr-dark { --bg: var(--ink); --fg: #fff; --sub: #a8a8ad; --line: rgba(255, 255, 255, .16); --card: var(--ink-2); background: var(--bg); color: var(--fg); }
.aitr-light { --bg: var(--paper); --fg: #08090b; --sub: #54565b; --line: #cfd0d3; --card: var(--paper-2); background: var(--bg); color: var(--fg); }
.aitr-gray { --bg: var(--paper-2); --fg: #08090b; --sub: #54565b; --line: #c9cacd; --card: #fff; background: var(--bg); color: var(--fg); }

/* ---------- 共通の部品 ---------- */
.aitr-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.aitr-sec { position: relative; padding: 88px 0; }

/* 小さなラベル（等幅・番号つき＝ゲームの計器の文字） */
.aitr-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sub);
  line-height: 1.4;
}
.aitr-eyebrow b { font-weight: 500; color: var(--fg); }
.aitr-eyebrow::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: .6; }

/* 見出し: 上に巨大な英字、下に和文の太字 */
.aitr-head { margin-bottom: 48px; }
.aitr-head .aitr-eyebrow { margin-bottom: 18px; }
.aitr-en {
  display: block;
  font-family: var(--en);
  font-weight: 850;
  font-size: clamp(54px, 11vw, 168px);
  line-height: .88;
  letter-spacing: -.065em;
  margin-left: -.04em;
  color: var(--fg);
}
.aitr-title {
  font-family: var(--ja);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.45;
  letter-spacing: -.04em;
  color: var(--fg);
}
.aitr-en + .aitr-title, .aitr-title .aitr-en { margin-bottom: 14px; }
.aitr-head__lead { margin-top: 18px; max-width: 38em; color: var(--sub); }

/* 行ごとに下からせり上がる（枠で切って、字が下から出てくる） */
.aitr-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.aitr-line > span { display: block; }
.aitr.aitr-anim .aitr-hero .aitr-line > span { animation: aitr-rise 1s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .09s); }
.aitr.aitr-js [data-aitr-reveal] .aitr-line > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .09s); }
.aitr.aitr-js [data-aitr-reveal].is-in .aitr-line > span { transform: none; }
@keyframes aitr-rise { from { transform: translateY(105%); } to { transform: none; } }

.aitr-prose { max-width: 40em; }
.aitr-prose p + p { margin-top: 1em; }
.aitr-note { margin-top: 20px; font-size: 14px; color: var(--sub); line-height: 1.8; }

/* ボタン（丸・最初の1つだけ差し色・→ が抜けて戻る） */
.aitr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 30px;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--ja);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.aitr-btn:hover { background: var(--fg); color: var(--bg); }
.aitr-btn--hot { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.aitr-btn--hot:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.aitr-btn--ink { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.aitr-btn--ink:hover { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.aitr-btn--small { min-height: 44px; padding: 8px 20px; font-size: 14px; }
.aitr-btn__arrow { display: inline-block; width: 1.1em; overflow: hidden; font-family: var(--en); font-weight: 700; }
.aitr-btn__arrow::before { content: "→"; display: inline-block; }
.aitr-btn:hover .aitr-btn__arrow::before { animation: aitr-arrow .5s var(--ease); }
.aitr-btn__arrow--down::before { content: "↓"; }
.aitr-btn:hover .aitr-btn__arrow--down::before { animation-name: aitr-arrow-down; }
@keyframes aitr-arrow { 0% { transform: none; } 45% { transform: translateX(120%); } 46% { transform: translateX(-120%); } 100% { transform: none; } }
@keyframes aitr-arrow-down { 0% { transform: none; } 45% { transform: translateY(120%); } 46% { transform: translateY(-120%); } 100% { transform: none; } }
.aitr-link-btn { border: 0; background: none; padding: 6px 0; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 15px; }

/* ---------- ヘッダー ---------- */
.aitr-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px var(--gutter);
  color: #fff;
}
.aitr-header__logo { font-family: var(--en); font-weight: 850; font-size: 20px; letter-spacing: -.04em; text-decoration: none; line-height: 1; }
.aitr-header__label { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; opacity: .8; }
.aitr-header__nav { display: none; margin-left: auto; gap: 26px; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.aitr-header__nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.aitr-header__nav a:hover { border-bottom-color: currentColor; }
.aitr-header__nav sup { font-size: 14px; vertical-align: super; line-height: 0; margin-left: 2px; opacity: .6; }
.aitr-header__cta { display: none; margin-left: auto; }
.aitr-header__nav + .aitr-header__cta { margin-left: 8px; }

/* ---------- ① 最初の画面 ---------- */
.aitr-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
/* 後ろを流れる巨大な文字（左右に流れ続ける。2つ並べて半分ずらす＝つなぎ目なし） */
.aitr-hero__bg { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 2vh; pointer-events: none; }
.aitr-marquee { overflow: hidden; white-space: nowrap; }
.aitr-marquee__track { display: inline-flex; width: max-content; animation: aitr-marquee var(--dur, 60s) linear infinite; }
.aitr-marquee--rev .aitr-marquee__track { animation-direction: reverse; }
.aitr-marquee__track span {
  font-family: var(--en);
  font-weight: 850;
  font-size: clamp(90px, 17vw, 260px);
  line-height: .9;
  letter-spacing: -.06em;
  padding-right: .35em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .13);
}
.aitr-marquee__track span i { font-style: normal; color: rgba(220, 255, 58, .16); -webkit-text-stroke: 0; }
@keyframes aitr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 画面の内側の細い枠（ゲームの画面の枠） */
.aitr-hud { position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 20px; pointer-events: none; z-index: -1; }
.aitr-hud__tag { position: absolute; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--sub); }
.aitr-hud__tag--tr { top: 76px; right: var(--gutter); text-align: right; }
.aitr-hud__tag--bl { display: none; }

.aitr-hero__inner { position: relative; width: 100%; padding: 0 var(--gutter); }
.aitr-hero__eyebrow { margin-bottom: 20px; }
.aitr-hero__display {
  font-family: var(--en);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .9;
  margin-left: -.05em;
  color: var(--fg);
}
/* 大きさは JS（ai-training-fx.js の fitDisplay）が列の幅と画面の高さに合わせて決める。これは JS が無いときの値 */
.aitr-hero__display { font-size: clamp(56px, min(14vw, 19vh), 200px); }
.aitr-hero__display .aitr-line > span { position: relative; width: max-content; } /* 幅は JS が一番長い行を測るのに使う */
.aitr-hero__display .aitr-hot { color: var(--hot); }

/* 英字の日本語訳（英語を読めない人にも意味が届くように）
   すぐ上の英字の左下から L 字の線が降りて「日本語訳」の札につながる＝「この英字の訳」と見て分かる */
.aitr-trans { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 0; padding: 12px 0 0 30px; font-size: 16px; line-height: 1.5; color: var(--fg); }
.aitr-trans::before { content: ""; position: absolute; left: 6px; top: -12px; width: 16px; height: calc(50% + 18px); border-left: 2px solid var(--hot); border-bottom: 2px solid var(--hot); border-bottom-left-radius: 4px; }
.aitr-trans__tag { flex: 0 0 auto; padding: 4px 9px; border-radius: 4px; background: var(--hot); color: var(--hot-ink); font-family: var(--ja); font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .04em; }
.aitr-trans__text { font-weight: 700; letter-spacing: .02em; }
.aitr.aitr-anim .aitr-hero .aitr-trans { animation: aitr-copy-in .8s var(--ease) both; animation-delay: .45s; }

.aitr-hero__copy { margin-top: 30px; max-width: 36em; }
.aitr-hero__catch { font-family: var(--ja); font-weight: 900; font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.04em; line-height: 1.4; color: var(--fg); }
.aitr-hero__lead { margin-top: 12px; color: var(--sub); font-size: 16px; }
.aitr.aitr-anim .aitr-hero__copy, .aitr.aitr-anim .aitr-hero__course { animation: aitr-copy-in .8s var(--ease) both; animation-delay: .55s; }
.aitr.aitr-anim .aitr-hero__course { animation-delay: .7s; }
@keyframes aitr-copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.aitr-hero__course { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.aitr-hero__provider { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--sub); }
.aitr-hero__name { font-family: var(--ja); font-weight: 900; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; line-height: 1.4; color: var(--fg); }
.aitr-hero__sub { display: block; font-weight: 700; font-size: .72em; letter-spacing: 0; color: var(--sub); margin-top: 2px; }
.aitr-hero__sub::before { content: "― "; }
.aitr-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.aitr-facts li { font-size: 14px; line-height: 1.4; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); }
.aitr-hero__btns { display: grid; gap: 10px; }

/* 回り続けるバッジ（1周で元の角度に戻る） */
.aitr-badge { display: none; position: absolute; z-index: 1; pointer-events: none; } /* スマホでは輪の文字が14px未満になるので出さない */
.aitr-badge svg { width: 100%; height: 100%; animation: aitr-spin 22s linear infinite; overflow: visible; }
.aitr-badge text { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: .1em; fill: var(--fg); text-transform: uppercase; }
.aitr-badge__core { position: absolute; inset: 27%; border-radius: 50%; background: var(--hot); display: grid; place-items: center; color: var(--hot-ink); font-family: var(--en); font-weight: 850; font-size: 20px; letter-spacing: -.04em; }
@keyframes aitr-spin { to { transform: rotate(360deg); } }

/* ---------- ② 宣言 ---------- */
.aitr-manifesto { padding: 96px 0 120px; }
.aitr-manifesto__lines { display: grid; gap: 26px; max-width: 1080px; }
.aitr-manifesto__lines li {
  font-family: var(--ja);
  font-weight: 900;
  font-size: clamp(22px, 3.1vw, 44px);
  line-height: 1.5;
  letter-spacing: -.035em;
  color: var(--fg);
  transition: color .6s var(--ease), opacity .6s var(--ease);
}
.aitr.aitr-fx .aitr-manifesto__lines li { opacity: .22; }
.aitr.aitr-fx .aitr-manifesto__lines li.is-lit { opacity: 1; }
.aitr-manifesto__big { margin-top: 72px; font-family: var(--ja); font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.aitr-manifesto__big span { display: block; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; color: var(--sub); margin-bottom: 14px; }
.aitr-manifesto__big strong { display: inline-block; font-size: clamp(88px, 21vw, 300px); font-weight: 900; color: var(--hot); transform-origin: 0 80%; }
.aitr.aitr-js .aitr-manifesto__big[data-aitr-reveal] strong { transform: scale(.86) rotate(-3deg); transition: transform 1.1s cubic-bezier(.2, 1.6, .3, 1); }
.aitr.aitr-js .aitr-manifesto__big[data-aitr-reveal].is-in strong { transform: none; }
.aitr-manifesto__after { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--fg); }

/* ---------- ③ 遊んでみる（端末の枠） ---------- */
.aitr-play__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.aitr-play__text, .aitr-phone-wrap { min-width: 0; }
/* スマホ・タブレット: 見出し → 端末 → ゲームの選択 の順（PC は左に文字・右に端末） */
@media (max-width: 1023px) {
  .aitr-play__grid { gap: 0; }
  .aitr-play__text { display: contents; }
  .aitr-play__text > .aitr-head { order: 1; margin-bottom: 32px; }
  .aitr-phone-wrap { order: 2; margin-bottom: 8px; }
  .aitr-games { order: 3; }
  .aitr-play__text > .aitr-note, .aitr-play__text > .aitr-print-only { order: 4; }
}
.aitr-games { display: grid; gap: 12px; margin-top: 28px; }
.aitr-game {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: start;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.aitr-game:hover { border-color: var(--fg); }
.aitr-game[aria-pressed="true"] { border-color: var(--hot); background: rgba(220, 255, 58, .06); }
.aitr-game__no { grid-row: span 3; font-family: var(--en); font-weight: 850; font-size: 34px; letter-spacing: -.05em; line-height: 1; color: var(--sub); }
.aitr-game[aria-pressed="true"] .aitr-game__no { color: var(--hot); }
.aitr-game__kind { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--sub); line-height: 1.5; }
.aitr-game__name { font-weight: 900; font-size: 20px; letter-spacing: -.02em; line-height: 1.4; }
.aitr-game__what { font-size: 15px; line-height: 1.75; color: var(--sub); }
.aitr-game__train { grid-column: 2; margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--fg); }
.aitr-game__train b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--sub); margin-right: 6px; }

.aitr-phone-wrap { position: relative; display: flex; justify-content: center; }
.aitr-phone { --w: 390px; --h: 760px; --s: .8; /* JS が列の幅と画面の高さで決め直す */ width: calc((var(--w) + 28px) * var(--s)); height: calc((var(--h) + 28px) * var(--s)); }
.aitr-phone__frame {
  position: relative;
  width: calc(var(--w) + 28px);
  height: calc(var(--h) + 28px);
  padding: 14px;
  border-radius: 58px;
  background: #1b1b1f;
  box-shadow: inset 0 0 0 1.5px #3a3a40, inset 0 0 0 5px #0e0e10, 0 40px 80px rgba(0, 0, 0, .55);
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.aitr-phone__side { position: absolute; right: -3px; top: 180px; width: 3px; height: 92px; border-radius: 0 3px 3px 0; background: #2a2a30; }
.aitr-phone__screen { position: relative; width: var(--w); height: var(--h); border-radius: 44px; overflow: hidden; background: #000; isolation: isolate; }
.aitr-phone__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.aitr-phone__poster { position: absolute; inset: 0; display: grid; align-content: end; gap: 12px; padding: 28px 24px 36px; color: #fff; background: #111 center / cover no-repeat; }
.aitr-phone__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, .78) 52%, rgba(0, 0, 0, .94) 100%); z-index: -1; }
.aitr-phone__poster { z-index: 0; }
.aitr-phone__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.aitr-phone__ptitle { font-weight: 900; font-size: 24px; letter-spacing: -.03em; line-height: 1.35; }
.aitr-phone__pmeta { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: #d6d6da; }
.aitr-phone__play { justify-self: start; }
.aitr-phone__bar { position: absolute; z-index: 3; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; pointer-events: none; }
.aitr-phone.is-playing .aitr-phone__bar { display: none; } /* 遊んでいる間は画面の上を隠さない */
.aitr-phone__tools { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.aitr-phone__tools[hidden] { display: none !important; }

/* スマホ: 枠の中では小さすぎるので、全画面で遊ぶ */
.aitr-playfull { position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; background: #000; }
.aitr-playfull__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px calc(8px); padding-top: calc(8px + env(safe-area-inset-top)); background: #0b0b0c; color: #fff; font-size: 14px; }
.aitr-playfull__close { min-width: 44px; min-height: 44px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.aitr-playfull iframe { flex: 1; width: 100%; border: 0; background: #fff; }
html.aitr-lock, html.aitr-lock body { overflow: hidden; }

/* ---------- ④ 講師陣（動く顔写真） ---------- */
.aitr-trainers__list { display: grid; gap: 64px; }
.aitr-trainer { display: grid; gap: 22px; align-items: end; }
.aitr-live { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #151517; border-radius: 6px; }
.aitr-live img, .aitr-live__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aitr-live img { object-fit: cover; transform: scale(1.05); } /* 動く絵の1枚目（t=0）と同じ寄り（WebGL 側の uZoom=1.05） */
.aitr-live.is-live img { visibility: hidden; }
.aitr-live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, 0) 55%, rgba(11, 11, 12, .55) 100%); pointer-events: none; }
.aitr-live__rec { position: absolute; z-index: 2; left: 14px; top: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.aitr-live__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: aitr-blink 1.6s steps(1) infinite; }
@keyframes aitr-blink { 50% { opacity: 0; } }
.aitr-trainer__initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ja); font-weight: 900; font-size: 96px; color: var(--sub); }
.aitr-trainer__role { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--sub); }
.aitr-trainer__name { margin-top: 6px; font-family: var(--ja); font-weight: 900; font-size: clamp(40px, 6vw, 76px); letter-spacing: -.06em; line-height: 1.05; color: var(--fg); }
.aitr-trainer__reading { display: block; margin-top: 10px; font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: .12em; color: var(--sub); }
.aitr-trainer__title { margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--fg); }
.aitr-trainer__profile { margin-top: 14px; color: var(--sub); max-width: 34em; }

/* ---------- ⑤ なぜ ---------- */
.aitr-episodes { display: grid; gap: 0; margin: 48px 0; border-top: 1px solid var(--line); }
.aitr-episode { display: grid; gap: 8px 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.aitr-episode__no { font-family: var(--en); font-weight: 850; font-size: clamp(48px, 6vw, 84px); letter-spacing: -.06em; line-height: .9; color: var(--fg); }
.aitr-episode__tag { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--sub); }
.aitr-episode__what { font-weight: 900; font-size: clamp(19px, 2vw, 24px); letter-spacing: -.03em; line-height: 1.55; color: var(--fg); }
.aitr-episode__learn { color: var(--sub); }
.aitr-quote { margin-top: 8px; font-weight: 900; font-size: clamp(22px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.5; max-width: 26em; color: var(--fg); }
.aitr-quote em { font-style: normal; background: linear-gradient(transparent 64%, var(--hot) 64%, var(--hot) 92%, transparent 92%); }

/* ---------- ⑥ 大事にしていること・手軽さ ---------- */
.aitr-values__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.aitr-value { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.aitr-value__no { grid-row: span 2; font-family: var(--mono); font-size: 14px; color: var(--sub); padding-top: 6px; }
.aitr-value__ttl { font-weight: 900; font-size: 20px; letter-spacing: -.02em; line-height: 1.5; color: var(--fg); }
.aitr-value p { color: var(--sub); }
.aitr-easy__list { display: grid; gap: 14px; }
.aitr-easy__item { position: relative; padding: 24px 22px 24px 76px; border-radius: 16px; background: var(--card); }
.aitr-easy__ico { position: absolute; left: 22px; top: 24px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); }
.aitr-easy__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aitr-easy__item h3 { font-weight: 900; font-size: 18px; letter-spacing: -.02em; line-height: 1.5; color: var(--fg); }
.aitr-easy__item p { margin-top: 6px; color: var(--sub); font-size: 15px; }

/* ---------- ⑦ メニュー ---------- */
.aitr-menu__course { padding: 30px 0 34px; border-top: 3px solid var(--fg); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.aitr-menu__name { font-weight: 900; font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -.05em; line-height: 1.3; color: var(--fg); }
.aitr-menu__sub { margin-top: 4px; font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); color: var(--fg); }
.aitr-menu__sub::before { content: "― "; }
.aitr-menu__lead { margin-top: 16px; max-width: 42em; color: var(--sub); }
.aitr-menu__levels, .aitr-days { display: grid; gap: 16px; }
.aitr-days { margin-top: 16px; }
.aitr-level, .aitr-day { padding: 28px 24px; border-radius: 18px; background: var(--card); }
/* セミオーダーだけ地を反転（変数を自分自身から作ると循環して消えるので、色は直接書く） */
.aitr-level--semi { background: #08090b; color: #fff; --fg: #fff; --sub: #c4c4c9; }
.aitr-level__tag, .aitr-day__no { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--sub); }
.aitr-level--semi .aitr-level__tag { color: var(--hot); }
.aitr-level__name, .aitr-day__ttl { margin: 6px 0 12px; font-weight: 900; font-size: 22px; letter-spacing: -.03em; line-height: 1.45; color: var(--fg); }
.aitr-level > p { font-size: 15px; }
.aitr-level__dl { margin-top: 18px; display: grid; gap: 10px; }
.aitr-level__dl div { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); }
.aitr-level__dl dt { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; opacity: .75; }
.aitr-level__dl dd { font-size: 15px; font-weight: 700; }
.aitr-day__list { counter-reset: d; display: grid; gap: 2px; }
.aitr-day__list li { counter-increment: d; position: relative; padding: 9px 0 9px 40px; border-top: 1px solid var(--line); font-size: 15px; }
.aitr-day__list li::before { content: counter(d, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: 14px; color: var(--sub); }

/* ---------- ⑧ 題材の例 ---------- */
.aitr-themes__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.aitr-theme { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.aitr-theme h3 { font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: var(--fg); }
.aitr-theme p { color: var(--sub); font-size: 15px; }

/* ---------- ⑨ 料金・助成金 ---------- */
.aitr-price__box, .aitr-subsidy__box { padding: 32px 26px; border-radius: 22px; background: var(--card); }
.aitr-price__main { font-weight: 900; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.06em; line-height: 1.1; color: var(--fg); }
.aitr-price__how { margin-top: 12px; color: var(--sub); }
.aitr-price__inc-ttl { margin-top: 24px; font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .06em; color: var(--sub); }
.aitr-price__inc { margin-top: 8px; display: grid; gap: 0; }
.aitr-price__inc li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); }
.aitr-price__inc li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 2px; background: var(--fg); }
.aitr-price__more { margin: 14px 0 22px; font-size: 14px; color: var(--sub); }
.aitr-subsidy__box p + p, .aitr-subsidy__box p + ul, .aitr-subsidy__box ul + p { margin-top: 16px; }
.aitr-subsidy__docs { display: flex; flex-wrap: wrap; gap: 8px; }
.aitr-subsidy__docs li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 700; background: var(--bg); }

/* ---------- ⑩ 流れ ---------- */
.aitr-flow__list { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.aitr-step { counter-increment: s; position: relative; padding: 24px 0 24px 84px; border-bottom: 1px solid var(--line); }
.aitr-step::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--en); font-weight: 850; font-size: 44px; letter-spacing: -.06em; line-height: 1; color: var(--fg); }
.aitr-step h3 { font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: var(--fg); }
.aitr-step p { margin-top: 4px; color: var(--sub); font-size: 15px; }

/* ---------- ⑪ よくある質問 ---------- */
.aitr-faq__list { border-top: 1px solid var(--line); }
.aitr-faq__item { border-bottom: 1px solid var(--line); }
.aitr-faq__q { list-style: none; position: relative; cursor: pointer; padding: 22px 52px 22px 0; font-weight: 900; font-size: 17px; letter-spacing: -.01em; line-height: 1.6; color: var(--fg); }
.aitr-faq__q::-webkit-details-marker { display: none; }
.aitr-faq__q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 1.5px solid var(--fg); background: linear-gradient(var(--fg), var(--fg)) center / 10px 1.5px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 1.5px 10px no-repeat; transition: transform .35s var(--ease); }
.aitr-faq__item[open] .aitr-faq__q::after { transform: rotate(45deg); }
.aitr-faq__a { padding: 0 0 24px; color: var(--sub); max-width: 46em; }

/* ---------- ⑫ 申し込み・相談（Contact Form 7） ---------- */
.aitr-contact { padding-bottom: 96px; }
.aitr-closing { padding: 40px 0 56px; }
.aitr-closing .aitr-en { font-size: clamp(64px, 16vw, 240px); }
.aitr-closing .aitr-en .aitr-hot { color: var(--hot); }
.aitr-closing__lead { margin-top: 20px; font-weight: 900; font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -.035em; line-height: 1.5; color: var(--fg); }
.aitr-contact__grid { display: grid; gap: 40px; }
.aitr-contact__form { padding: 22px 18px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.aitr .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aitr .wpcf7-form .hidden-fields-container { border: 0; padding: 0; margin: 0; }
.aitr .wpcf7-form-control-wrap { display: block; }
.aitr-f__row { display: block; margin-bottom: 18px; border: 0; padding: 0; }
.aitr-f__label { display: block; font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 6px; padding: 0; }
.aitr legend.aitr-f__label { margin-bottom: 8px; }
.aitr-f__req, .aitr-f__opt { font-style: normal; font-size: 14px; font-weight: 500; padding: 1px 8px; margin-left: 6px; border-radius: 999px; }
.aitr-f__req { background: var(--hot); color: var(--hot-ink); }
.aitr-f__opt { border: 1px solid var(--line); color: var(--sub); }
.aitr .wpcf7-form input.aitr-f__input,
.aitr .wpcf7-form select.aitr-f__input,
.aitr .wpcf7-form textarea.aitr-f__input,
.aitr .aitr-f__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #08090b;
  font-family: var(--ja);
  font-size: 16px; /* 16px 未満だと iPhone が拡大する */
  line-height: 1.6;
}
.aitr .wpcf7-form textarea.aitr-f__input { min-height: 104px; resize: vertical; }
.aitr .aitr-f__input:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 4px rgba(220, 255, 58, .35); }
.aitr .aitr-f__input::placeholder { color: #85878c; }
.aitr .aitr-f__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aitr .aitr-f__seg .wpcf7-list-item { margin: 0; display: block; }
.aitr .aitr-f__seg label { display: block; cursor: pointer; }
.aitr .aitr-f__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aitr .aitr-f__seg .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 700;
  text-align: center;
  transition: background-color .25s, color .25s, border-color .25s;
}
.aitr .aitr-f__seg input:checked + .wpcf7-list-item-label { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.aitr .aitr-f__seg input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--hot); outline-offset: 3px; }
.aitr .aitr-f__checks { display: grid; grid-template-columns: 1fr; gap: 6px; }
.aitr .aitr-f__checks .wpcf7-list-item { margin: 0; display: block; }
.aitr .aitr-f__checks label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border-radius: 10px; background: rgba(127, 127, 127, .1); cursor: pointer; }
.aitr .aitr-f__checks input { width: 20px; height: 20px; accent-color: var(--hot); flex: 0 0 auto; }
.aitr .aitr-f__checks .wpcf7-list-item-label { color: var(--fg); font-size: 15px; }
.aitr-f__more { margin: 8px 0 18px; border: 1px dashed var(--line); border-radius: 12px; }
.aitr-f__more-sum { list-style: none; cursor: pointer; padding: 12px 40px 12px 14px; position: relative; color: var(--fg); font-weight: 700; }
.aitr-f__more-sum::-webkit-details-marker { display: none; }
.aitr-f__more-sum::after { content: "＋"; position: absolute; right: 14px; top: 12px; }
.aitr-f__more[open] > .aitr-f__more-sum::after { content: "－"; }
.aitr-f__more-hint { display: block; font-weight: 400; font-size: 14px; color: var(--sub); }
.aitr-f__more-body { padding: 4px 14px 2px; }
.aitr-f__purpose-note { font-size: 14px; color: var(--sub); margin: 4px 0 14px; }
.aitr-f__handoff { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--hot); background: rgba(127, 127, 127, .12); color: var(--fg); font-size: 15px; }
.aitr .wpcf7-form .aitr-f__submit,
.aitr .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--hot);
  color: var(--hot-ink);
  font-family: var(--ja);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.aitr .wpcf7-form .aitr-f__submit:hover { background: var(--fg); color: var(--bg); }
.aitr .wpcf7-form .aitr-f__submit:disabled { opacity: .6; cursor: wait; }
.aitr .wpcf7-spinner { display: block; margin: 10px auto 0; }
.aitr .wpcf7-form .aitr-f__input.wpcf7-not-valid { border-color: #ff6b5e; }
.aitr .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #fff; background: #a3271c; font-size: 14px; padding: 2px 10px; border-radius: 6px; }
.aitr .wpcf7-response-output { margin: 14px 0 0; padding: 10px 12px; border: 1.5px solid var(--fg); border-radius: 12px; color: var(--fg); font-size: 15px; }
.aitr .wpcf7-response-output:empty,
.aitr .wpcf7 form.init .wpcf7-response-output,
.aitr .wpcf7 form.resetting .wpcf7-response-output,
.aitr .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.aitr .wpcf7-form.invalid .wpcf7-response-output,
.aitr .wpcf7-form.unaccepted .wpcf7-response-output,
.aitr .wpcf7-form.failed .wpcf7-response-output,
.aitr .wpcf7-form.aborted .wpcf7-response-output,
.aitr .wpcf7-form.spam .wpcf7-response-output { border-color: #ff6b5e; background: rgba(163, 39, 28, .3); }
.aitr .wpcf7-form.sent .wpcf7-response-output { border-color: #8be0a4; background: rgba(31, 138, 76, .25); }
.aitr-recaptcha { font-size: 14px; color: var(--sub); margin-top: 12px; line-height: 1.7; }
.aitr-recaptcha a { color: var(--fg); }
.aitr-contact__fallback p { margin-bottom: 16px; }
.aitr-contact__fallback .aitr-btn { width: 100%; }
.aitr-thanks { padding: 24px 22px; border-radius: 22px; border: 1.5px solid var(--hot); background: var(--card); }
.aitr-thanks:focus { outline: none; }
.aitr-thanks__ttl { font-size: 22px; font-weight: 900; color: var(--fg); margin-bottom: 6px; letter-spacing: -.02em; }
.aitr-thanks__steps { list-style: decimal; margin: 12px 0 0 1.4em; }
.aitr-thanks__steps li { padding: 2px 0; }
.aitr-thanks__note { margin-top: 12px; font-size: 14px; color: var(--sub); }

/* ---------- フッター ---------- */
.aitr-footer { padding: 56px var(--gutter) calc(48px + var(--dock-h)); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.aitr-footer__logo a { font-family: var(--en); font-weight: 850; font-size: 28px; letter-spacing: -.05em; text-decoration: none; color: var(--fg); }
.aitr-footer__copy { color: var(--sub); font-size: 15px; }
.aitr-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.aitr-footer__nav a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.aitr-footer__c small { font-family: var(--mono); font-size: 14px; color: var(--sub); }

/* ---------- 画面の下の帯（スマホ）／右下（PC） ---------- */
.aitr-dock {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, .9);
  border-top: 1px solid rgba(255, 255, 255, .12);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.aitr-dock.is-show { transform: none; }
.aitr-dock.is-typing { transform: translateY(110%); }
.aitr-dock__cta { flex: 1; min-height: 48px; padding: 8px 12px; transition: opacity .3s, visibility .3s; }
.aitr-dock .aitr-btn--hot { --fg: #fff; --bg: #0b0b0c; }
.aitr-dock.is-near-form .aitr-dock__cta { visibility: hidden; opacity: 0; }
.aitr-dock__ava {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--hot);
  border-radius: 50%;
  background: #2a2a2e;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.aitr-dock__ava img { width: 100%; height: 100%; object-fit: cover; }
.aitr-dock__ava:hover { transform: scale(1.06); }
.aitr-dock__ava-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- AIよしひこ ---------- */
.aitr-chat {
  --fg: #fff; --bg: #121214; --sub: #a8a8ad; --line: rgba(255, 255, 255, .14);
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(82vh, 640px);
  height: min(82dvh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  border-top: 2px solid var(--hot);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, .6);
  animation: aitr-up .35s var(--ease);
  overflow: hidden;
}
.aitr-chat[aria-modal="true"] { box-shadow: 0 -16px 40px rgba(0, 0, 0, .6), 0 0 0 100vmax rgba(0, 0, 0, .55); }
@keyframes aitr-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.aitr-chat__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.aitr-chat__ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--hot); background: #2a2a2e; flex: 0 0 auto; }
.aitr-chat__ava img { width: 100%; height: 100%; object-fit: cover; }
.aitr-chat__name { font-weight: 900; color: #fff; line-height: 1.3; }
.aitr-chat__sub { font-size: 14px; color: var(--sub); line-height: 1.4; }
.aitr-chat__close { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: #ccc; font-size: 24px; cursor: pointer; }
.aitr-chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.aitr-msg { max-width: 88%; padding: 10px 14px; font-size: 15px; line-height: 1.75; animation: aitr-flip .35s var(--ease); }
@keyframes aitr-flip { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aitr-msg--bot { align-self: flex-start; background: #232327; color: #eee; border-radius: 4px 16px 16px 16px; }
.aitr-msg--me { align-self: flex-end; background: var(--hot); color: var(--hot-ink); border-radius: 16px 4px 16px 16px; }
.aitr-msg--typing { color: var(--sub); letter-spacing: .3em; }
.aitr-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.aitr-chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.aitr-chip:hover { border-color: var(--hot); }
.aitr-chip--strong { background: #fff; color: #0b0b0c; border-color: #fff; font-weight: 700; }
.aitr-chip--strong:hover { background: var(--hot); border-color: var(--hot); }
.aitr-chat__form { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); }
.aitr-chat__input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid #4a4a50; border-radius: 12px; background: #1c1c20; color: #fff; font-size: 16px; font-family: var(--ja); }
.aitr-chat__input:focus { outline: none; border-color: var(--hot); }
.aitr-chat__send { min-width: 64px; border: 0; border-radius: 12px; background: var(--hot); color: var(--hot-ink); font-weight: 900; cursor: pointer; }
.aitr-chat__note { font-size: 14px; color: #9c9ca2; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); line-height: 1.6; }

/* ---------- 出現の動き（JS が .aitr-js を付けたときだけ隠す） ---------- */
.aitr.aitr-js [data-aitr-reveal] { opacity: .2; transform: translateY(19px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.aitr.aitr-js [data-aitr-reveal].is-in { opacity: 1; transform: none; }
.aitr.aitr-js .aitr-head[data-aitr-reveal], .aitr.aitr-js .aitr-closing__head[data-aitr-reveal] { opacity: 1; transform: none; } /* 見出しは行のせり上がりで見せる */

/* ---------- 画面の幅ごと ---------- */
@media (min-width: 640px) {
  .aitr-hero__btns { grid-template-columns: auto auto; justify-content: start; }
  .aitr-themes__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .aitr .aitr-f__checks { grid-template-columns: 1fr 1fr; }
  .aitr-easy__list { grid-template-columns: 1fr 1fr; }
  .aitr-hud__tag--bl { display: block; left: var(--gutter); bottom: 26px; }
}
@media (min-width: 768px) {
  .aitr { font-size: 17px; }
  .aitr-sec { padding: 128px 0; }
  .aitr-head { margin-bottom: 64px; }
  .aitr-header__cta { display: inline-flex; }
  .aitr .aitr-hide-sp { display: inline-flex; }
  .aitr-episode { grid-template-columns: 140px 1fr; }
  .aitr-episode__no { grid-row: span 3; }
  .aitr-values__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .aitr-menu__levels, .aitr-days { grid-template-columns: 1fr 1fr; }
  .aitr-trainers__list { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
  .aitr-trainer:nth-child(2n) { margin-top: 140px; }
  .aitr-contact__form { padding: 32px; }
  .aitr-footer { grid-template-columns: auto 1fr; align-items: end; padding-bottom: 56px; }
  .aitr-footer__nav { justify-content: flex-end; }
  .aitr-footer__c { grid-column: 1 / -1; }
  .aitr-badge { display: block; width: 168px; height: 168px; top: 120px; right: var(--gutter); } /* 輪の文字 17/200×168 ≒ 14.3px */

  /* PC: 帯をやめて右下に固定 */
  .aitr-dock {
    left: auto;
    right: 20px;
    bottom: 20px;
    padding: 0;
    background: none;
    border: 0;
    gap: 12px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateY(calc(100% + 40px));
  }
  .aitr-dock__cta { flex: 0 0 auto; min-height: 56px; padding: 10px 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  .aitr-dock.is-hero .aitr-dock__cta { visibility: hidden; opacity: 0; }
  .aitr-dock__ava { width: 64px; height: 64px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  .aitr-chat { left: auto; right: 20px; bottom: 96px; width: 400px; height: min(620px, calc(100vh - 140px)); border: 1px solid #2c2c31; border-top: 2px solid var(--hot); border-radius: 20px; }
}
@media (min-width: 1024px) {
  .aitr .aitr-br-sp { display: none; }
  .aitr-header__nav { display: flex; }
  .aitr-header__label { display: inline; }
  .aitr-hero { padding-bottom: 64px; }
  .aitr-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); column-gap: 56px; align-items: end; }
  .aitr-hero__course { margin-top: 0; border-top: 0; padding-top: 0; padding-left: 28px; border-left: 1px solid var(--line); }
  .aitr-hero__course .aitr-hero__btns { grid-template-columns: 1fr; }
  .aitr-hero__course .aitr-btn { white-space: nowrap; }
  .aitr-play__grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 6vw, 110px); align-items: center; }
  .aitr-contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; column-gap: 64px; }
  .aitr-contact__grid .aitr-head { position: sticky; top: 40px; }
  .aitr-themes__list { grid-template-columns: repeat(3, 1fr); }
  .aitr-easy__list { grid-template-columns: repeat(3, 1fr); }
  .aitr-price__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .aitr *, .aitr *::before, .aitr *::after { animation: none !important; transition: none !important; }
  .aitr.aitr-js [data-aitr-reveal] { opacity: 1; transform: none; }
  .aitr.aitr-js [data-aitr-reveal] .aitr-line > span { transform: none; }
  .aitr.aitr-fx .aitr-manifesto__lines li { opacity: 1; }
  .aitr.aitr-js .aitr-manifesto__big[data-aitr-reveal] strong { transform: none; }
}

/* ---------- 印刷（申請書類に添付される前提） ---------- */
@media print {
  /* 先に「全部の字を濃く・地を白く」：背景色は印刷されないことが多く、白や差し色の字が消えるため */
  .aitr, .aitr-dark, .aitr-light, .aitr-gray { --bg: #fff; --fg: #111; --sub: #333; --line: #bbb; --card: #fff; --hot: #111; --hot-ink: #fff; background: #fff !important; color: #111 !important; }
  .aitr :where(*) { color: #111 !important; text-shadow: none !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; transition: none !important; }
  /* 飾りの英字・計器の文字は紙では出さない（意味は和文の見出しにある） */
  .aitr-hero__display, .aitr-en, .aitr-trans, .aitr-hud__tag { display: none !important; }
  body.page-ai-training { background: #fff; }
  .aitr { font-size: 11pt; }
  .aitr-hero { min-height: 0; padding: 0 0 12pt; display: block; }
  .aitr-hero__bg, .aitr-hud, .aitr-badge, .aitr-header__nav, .aitr-header__cta, .aitr-dock, .aitr-chat, .aitr-playfull, .aitr-hero__btns,
  .aitr-phone-wrap, .aitr-games, .aitr-noprint, .aitr-contact__form, .aitr-recaptcha, .aitr-footer__nav, .aitr-live__rec, .aitr-price__box .aitr-btn, .aitr-closing .aitr-btn { display: none !important; }
  .aitr-header { position: static; padding: 0 0 8pt; }
  .aitr .aitr-print-only { display: block !important; margin-top: 8pt; }
  .aitr.aitr-js [data-aitr-reveal], .aitr.aitr-js [data-aitr-reveal] .aitr-line > span, .aitr.aitr-anim .aitr-hero .aitr-line > span, .aitr.aitr-anim .aitr-hero__copy, .aitr.aitr-anim .aitr-hero__course { opacity: 1 !important; transform: none !important; animation: none !important; }
  .aitr.aitr-fx .aitr-manifesto__lines li { opacity: 1 !important; }
  .aitr-sec, .aitr-manifesto { padding: 14pt 0; }
  .aitr-quote em { background: none !important; text-decoration: underline; }
  .aitr-manifesto__lines li { font-size: 14pt !important; }
  .aitr-manifesto__big { margin-top: 12pt; }
  .aitr-manifesto__big strong { font-size: 40pt !important; background: none !important; transform: none !important; }
  .aitr-live { width: 42mm; aspect-ratio: 4 / 5; }
  .aitr-live img { visibility: visible !important; }
  .aitr-live__cv, .aitr-live::after { display: none !important; }
  .aitr-trainers__list { grid-template-columns: 1fr !important; gap: 10pt; }
  .aitr-trainer, .aitr-trainer:nth-child(2n) { margin-top: 0; grid-template-columns: 42mm 1fr; align-items: start; column-gap: 8mm; break-inside: avoid; }
  .aitr-trainer__name { font-size: 20pt !important; }
  .aitr-level, .aitr-day, .aitr-price__box, .aitr-subsidy__box, .aitr-easy__item, .aitr-episode, .aitr-value, .aitr-step, .aitr-theme { background: #fff !important; border: 1px solid #bbb; break-inside: avoid; }
  .aitr-level--semi { --fg: #111; --bg: #fff; }
  .aitr-easy__ico { background: #111 !important; }
  .aitr-easy__ico svg { stroke: #fff; }
  .aitr-head { break-after: avoid; }
}
