/* TERRAISE corporate site — 「社長のためのAI家庭教師」LP（/lp/ai-tutor/）専用 CSS（main.css・pages.css・lp.css の後に読む）
   参照画像: デザイン/UIパターン/lp_ai-tutor/a/（案A「NIGHT WATCH」）。色・書体・角は DESIGN.md のトークンのまま。
   動きは js/lp-tutor.js と対。演出の初期状態（隠す・ずらす）は html.tw-on（JS が動いた時だけ付く）の下にだけ書く
   ＝ JS が動かなくても、reduced-motion・MOTION OFF でも、全部が最終状態で見える */

.lp--ai-tutor { --tw-gate: 34%; }
.lp--ai-tutor main { overflow-x: clip; }
.tw-h2 { margin-top: 12px; font-size: clamp(32px, 1rem + 3.6vw, 64px); font-weight: 900; line-height: 1.2; letter-spacing: var(--tracking-display); }
.tw-lead { margin-top: 20px; max-width: 34em; font-size: var(--text-lead); font-weight: 500; line-height: 1.8; color: var(--text-2); }
.tone-navy .tw-lead { color: var(--text-on-dark-2); }
.section-label--light .section-label__en { color: var(--lt); }
.section-label--light .section-label__ja { color: var(--text-on-dark-2); }

/* ---------------- スクロール進行バー（ヘッダーの下端） ---------------- */
.tw-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* ---------------- 札・タグ ---------------- */
.tw-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid currentColor; font-weight: 700; font-size: 15px; line-height: 1.4; letter-spacing: .04em; }
.tw-badge__mark { width: 8px; height: 8px; border-radius: 999px; background: var(--cyan); }
.tw-badge--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.tw-tag { display: inline-block; flex: none; padding: 2px 8px; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; border-radius: 2px; white-space: nowrap; }
.tw-tag--do { background: var(--cyan); color: var(--ink); }
.tw-tag--wait { background: var(--pale); color: var(--navy); }
.tw-tag--due { background: var(--orange); color: var(--ink); }
.tw-tag--skip { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }

/* =====================================================================
   00 ヒーロー（濃紺の全面。上に「2つの時計と地球・札の選別」、下に極太の約束）
   ===================================================================== */
.tw-hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--header-h) + 8px) 0 40px; background: var(--navy-deep); color: #fff; overflow: hidden; isolation: isolate; }
.tw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(180deg, #000 0%, transparent 78%); }
.tw-hud { position: absolute; inset: calc(var(--header-h) + 8px) 24px 20px; pointer-events: none; z-index: 3; }
.tw-hud__c { position: absolute; width: 20px; height: 20px; border: solid rgba(255,255,255,.75); border-width: 0; }
.tw-hud__c--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.tw-hud__c--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.tw-hud__c--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tw-hud__c--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.tw-hud__rec, .tw-hud__now { position: absolute; top: 10px; font-size: 11px; color: var(--lt); white-space: nowrap; }
.tw-hud__rec { left: 32px; display: flex; align-items: center; gap: 8px; }
.tw-hud__rec i { width: 6px; height: 6px; border-radius: 999px; background: var(--cyan); animation: tw-blink 1s steps(1) infinite; }
.tw-hud__now { right: 32px; }

/* --- 上: 舞台（地球・2つの時計・札の流れ） --- */
.tw-stage { position: relative; flex: 1 1 auto; min-height: 320px; max-height: 48svh; margin-top: 20px; }
.tw-sky { position: absolute; z-index: 2; top: 22px; right: max(var(--gutter), calc((100% - var(--container)) / 2)); height: 60%; display: flex; align-items: center; gap: clamp(8px, 1.6vw, 28px); }
.tw-globe { position: relative; height: 100%; aspect-ratio: 1; flex: none; }
.tw-globe img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.tw-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tw-arcs path { fill: none; stroke: #fff; stroke-width: .7; stroke-dasharray: 2.5 5; stroke-linecap: round; opacity: .9; animation: tw-dash 1.8s linear var(--o, 0s) infinite; }
.tw-arcs circle { fill: var(--orange); }
.tw-globe::after { content: ""; position: absolute; inset: -5%; border-radius: 999px; border: 1px dashed rgba(169,216,232,.45); animation: tw-spin 80s linear infinite; }
.tw-clock { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.tw-clock__city { font-size: 11px; color: var(--lt); white-space: nowrap; }
.tw-clock__time { font-family: var(--font-en); font-weight: 700; font-size: clamp(18px, 1.7vw, 26px); line-height: 1; letter-spacing: .02em; font-feature-settings: "tnum"; color: var(--cyan); }
.tw-clock__time i { font-style: normal; animation: tw-blink 1s steps(1) infinite; }
.tw-clock__face { position: relative; width: clamp(84px, 11vw, 160px); aspect-ratio: 1; border-radius: 999px; }
.tw-clock--day .tw-clock__face { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--lt); }
.tw-clock--night .tw-clock__face { background: var(--navy-deep); color: #fff; box-shadow: inset 0 0 0 2px var(--mid); }
.tw-clock__face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-hand { transform-box: view-box; transform-origin: 50px 50px; transform: rotate(var(--deg)); }
.tw-clock__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--text-on-dark-2); white-space: nowrap; }
.tw-clock--day .tw-clock__label { color: #fff; }

/* 札の流れ（右＝発表 → 左＝御社）。線（ゲート）を通ると3本だけがシアンで残る */
.tw-stream { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 50%; min-height: 150px; transform: skewY(4deg); transform-origin: left bottom; }
.tw-stream__lane { position: absolute; inset: 0; overflow: hidden; mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%); }
.tw-chip { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; background: #DDE4EC; color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap; will-change: transform; transition: background-color 200ms var(--ease-out), opacity 520ms var(--ease-out), filter 520ms var(--ease-out); }
.tw-chip::before { content: ""; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 1px; opacity: .85; }
.tw-chip.is-pick { background: var(--cyan); color: var(--ink); }
.tw-chip.is-drop { opacity: 0; filter: blur(2px); }
.tw-chip--still { left: calc(var(--tw-gate) + 5% + var(--c) * 11.5%); top: calc(8% + var(--r) * 32%); }   /* 5列×3段に重ならないよう置く */
.tw-stage.is-live .tw-chip--still { display: none; }
.tw-stream__gate { position: absolute; left: var(--tw-gate); top: -30%; bottom: -6%; width: 2px; background: var(--cyan); transform: skewY(-4deg); }
.tw-stream__gate::before, .tw-stream__gate::after { content: ""; position: absolute; left: -5px; width: 12px; height: 2px; background: var(--cyan); }
.tw-stream__gate::before { top: 0; } .tw-stream__gate::after { bottom: 0; }
.tw-picked { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 16%; width: calc(var(--tw-gate) - max(var(--gutter), (100% - var(--container)) / 2) - 28px); }
.tw-picked__label { display: inline-flex; align-items: baseline; gap: .3em; padding-left: 12px; border-left: 2px solid var(--cyan); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--cyan); line-height: 1.2; }
.tw-picked__label b { font-family: var(--font-en); font-size: 1.5em; }
.tw-picked ol { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tw-picked li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; background: var(--cyan); color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.tw-picked li::before { content: ""; width: 11px; height: 13px; border: 2px solid currentColor; border-radius: 1px; }
.tw-stage.is-live .tw-picked li { opacity: .16; transform: translateX(14px); transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out-expo); }
.tw-stage.is-live .tw-picked li.is-on { opacity: 1; transform: none; }

/* --- 下: 約束の一言 --- */
.tw-hero__inner { position: relative; z-index: 2; margin-top: 16px; }
.tw-hero__label { margin-bottom: 10px; }
.tw-hero__title { font-size: clamp(38px, 1rem + 5.6vw, 96px); font-weight: 900; line-height: 1.12; letter-spacing: var(--tracking-display); }
.tw-hero__title .phrase { display: block; }
.tw-hero__title .phrase:first-child { color: var(--cyan); }
.tw-ch { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.tw-ch > span { display: inline-block; animation: tw-rise 640ms var(--ease-out-expo) var(--d, 0ms) both; }
.tw-hero__lead { margin-top: 18px; max-width: 44em; font-size: clamp(15px, .8rem + .45vw, 19px); font-weight: 500; line-height: 1.8; color: var(--text-on-dark-2); }
.tw-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 22px; }
.tw-hero__offer { display: flex; flex-wrap: wrap; gap: 10px; }
.tw-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tw-hero__note { font-size: 11px; color: var(--lt); }
.tw-hero__clocknote { position: absolute; right: 56px; bottom: 30px; font-size: 11px; color: var(--lt); text-align: right; z-index: 2; }

/* 立ち上がり（CSS だけで完結。JS が無くても最後は見える） */
.tw-hero__label, .tw-hero__lead, .tw-hero__row, .tw-sky, .tw-picked, .tw-hero__clocknote { animation: tw-fade-up 620ms var(--ease-out) both; }
.tw-sky { animation-delay: 200ms; } .tw-picked { animation-delay: 900ms; }
.tw-hero__lead { animation-delay: 1100ms; } .tw-hero__row { animation-delay: 1300ms; } .tw-hero__clocknote { animation-delay: 1500ms; }
.tw-hand { animation: tw-hand 1800ms var(--ease-out-expo) 300ms both; }

@media (max-width: 899px) {
  .tw-hero { padding-bottom: 32px; min-height: 0; }
  .tw-hud { inset: calc(var(--header-h) + 6px) 12px 12px; }
  .tw-hud__c { width: 14px; height: 14px; }
  .tw-hud__rec { left: 22px; top: 6px; font-size: 10px; } .tw-hud__now { display: none; }
  .tw-stage { flex: none; height: 352px; min-height: 0; max-height: none; margin-top: 30px; }
  .tw-sky { top: 0; left: 0; right: 0; height: 124px; margin-top: 22px; justify-content: center; gap: 10px; }
  .tw-clock__face { width: 76px; }
  .tw-clock__label { font-size: 11px; }
  .tw-stream { height: 172px; min-height: 0; }
  .tw-stream__gate { top: -4%; bottom: 6%; }
  .lp--ai-tutor { --tw-gate: 40%; }
  .tw-picked { top: 186px; bottom: auto; left: 16px; width: calc(var(--tw-gate) - 28px); }
  .tw-picked__label { font-size: 12px; padding-left: 8px; }
  .tw-picked ol { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
  .tw-picked li { height: 30px; padding: 0 10px 0 8px; font-size: 12px; gap: 6px; }
  .tw-chip { height: 28px; font-size: 11px; padding: 0 10px 0 8px; gap: 6px; }
  .tw-chip--still { left: calc(var(--tw-gate) + 6% + var(--c2) * 27%); }
  .tw-chip--still:nth-child(n+7) { display: none; }
  .tw-hero__clocknote { position: static; margin: 22px 16px 0; text-align: left; font-size: 10px; }
  .tw-hero__inner { margin-top: 20px; }
  .tw-hero__title { font-size: clamp(38px, 10.6vw, 64px); }
  .tw-hero__row { gap: 16px; }
  .tw-badge { font-size: 13px; padding: 7px 12px; }
}

/* =====================================================================
   横に流れる大きな文字（スクロール量に比例。無限ループではない）
   ===================================================================== */
.tw-drift { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line-on-dark); background: var(--navy-deep); color: transparent; }
.tw-drift p { display: inline-block; max-width: none; white-space: nowrap; font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -.01em; -webkit-text-stroke: 1px rgba(169,216,232,.55); will-change: transform; }
.tw-drift p b { color: var(--cyan); -webkit-text-stroke: 0; font-weight: 700; }
.tw-drift--light { background: var(--white); border-color: var(--line); }
.tw-drift--light p { -webkit-text-stroke: 1px rgba(11,42,74,.35); }

/* 絵（画面に入ると左から右へ1回だけ開く） */
.tw-fig { position: relative; overflow: hidden; margin: 0; }
.tw-fig img { display: block; width: 100%; height: auto; }
.tw-fig--panel { background: #fff; }
/* 隠すのは中の img（figure 自体を切り抜くと、IntersectionObserver が「見えていない」と判断して始まらない） */
html.tw-on .tw-fig[data-enter] img { clip-path: inset(0 100% 0 0); transform: scale(1.1); }
html.tw-on .tw-fig--rtl[data-enter] img { clip-path: inset(0 0 0 100%); }
html.tw-on .tw-fig[data-enter].is-in img { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1100ms var(--ease-out-expo), transform 1500ms var(--ease-out-expo); }

/* 並び（画面に入ると順に立ち上がる） */
html.tw-on [data-enter] > [style*="--i"] { opacity: 0; transform: translateY(18px); }
html.tw-on [data-enter].is-in > [style*="--i"] { opacity: 1; transform: none; transition: opacity 520ms var(--ease-out) calc(var(--i) * 90ms), transform 620ms var(--ease-out-expo) calc(var(--i) * 90ms); }

/* 見出しの文節が下からマスク内を立ち上がる */
.tw-wipe { overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.tw-wipe > span { display: inline-block; }
html.tw-on [data-enter] .tw-wipe > span { transform: translateY(112%); }
html.tw-on [data-enter].is-in .tw-wipe > span { transform: none; transition: transform 900ms var(--ease-out-expo) calc(var(--i) * 140ms); }

/* =====================================================================
   絵の帯: 2つの世界（ヒーローの直下。濃紺の面に画面端まで）
   ===================================================================== */
.tw-world { background: var(--navy-deep); }
.tw-world__fig { max-width: 1280px; margin-inline: auto; }

/* =====================================================================
   01 課題（紙の面。左に夜の絵、右に4つ）
   ===================================================================== */
.tw-problem { background: var(--surf); padding-block: var(--section); }
.tw-problem__head { max-width: 60rem; }
.tw-problem__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; margin-top: 48px; }
.tw-problem__fig { margin-left: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2)); }
.tw-problem__list { border-top: 1px solid var(--navy); }
.tw-problem__list li { display: grid; grid-template-columns: clamp(64px, 6vw, 96px) 1fr; align-items: center; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.tw-problem__list .tw-no { font-family: var(--font-en); font-weight: 700; font-size: clamp(36px, 3.4vw, 56px); line-height: 1; letter-spacing: -.03em; color: var(--cyan); font-feature-settings: "tnum"; -webkit-text-stroke: 1px var(--cyan-deep); }
.tw-problem__list p { font-size: clamp(16px, .9rem + .4vw, 20px); font-weight: 700; line-height: 1.6; }
@media (max-width: 899px) {
  .tw-problem__grid { grid-template-columns: 1fr; margin-top: 28px; gap: 24px; }
  .tw-problem__fig { margin-inline: calc(-1 * var(--gutter)); }
  .tw-problem__list li { padding: 16px 0; }
}

/* =====================================================================
   幾何学タイルの帯
   ===================================================================== */
.tw-tiles { display: grid; grid-template-columns: repeat(var(--n), 1fr); background: var(--navy); overflow: hidden; }
.tw-tile { position: relative; aspect-ratio: 1; overflow: hidden; transform: rotate(var(--r)); }
.tw-tile > i { position: absolute; display: block; }
.tw-tile.is-navy, .tw-tile > i.is-navy { background: var(--navy); } .tw-tile.is-deep, .tw-tile > i.is-deep { background: var(--cyan-deep); }
.tw-tile.is-cyan, .tw-tile > i.is-cyan { background: var(--cyan); } .tw-tile.is-white, .tw-tile > i.is-white { background: #fff; }
.tw-tile.is-pale, .tw-tile > i.is-pale { background: var(--pale); } .tw-tile.is-orange { background: var(--orange); }
.tw-tile--0 > i { inset: 10%; border-radius: 999px; }
.tw-tile--1 > i { inset: 0; border-radius: 0 0 100% 0; }
.tw-tile--2 > i { inset: 50% 0 0 0; border-radius: 999px 999px 0 0; }
.tw-tile--3 > i { inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.tw-tile--4 > i { inset: 22%; border-radius: 999px; background: transparent !important; box-shadow: inset 0 0 0 6px currentColor; color: var(--cyan); }
.tw-tile--4.is-cyan > i { color: var(--navy); }
.tw-tile--5 > i { inset: 0 0 50% 0; }
html.tw-on .tw-tiles .tw-tile { opacity: 0; transform: rotate(var(--r)) scale(.4); }
html.tw-on .tw-tiles.is-in .tw-tile { opacity: 1; transform: rotate(var(--r)); transition: opacity 360ms var(--ease-out) calc(var(--i) * 26ms), transform 620ms var(--ease-out-expo) calc(var(--i) * 26ms); }
@media (max-width: 899px) { .tw-tiles { grid-template-columns: repeat(12, 1fr); } .tw-tile:nth-child(n+13) { display: none; } }

/* =====================================================================
   02 1画面1メッセージ（Cyan の全面）
   ===================================================================== */
.tw-statement { position: relative; padding-block: clamp(96px, 14vw, 200px); overflow: hidden; }
.tw-statement__title { margin-top: 16px; font-size: clamp(40px, 1rem + 7vw, 128px); font-weight: 900; line-height: 1.12; letter-spacing: var(--tracking-display); color: var(--ink); }
.tw-statement__title .phrase { display: block; }
.tw-statement__lead { margin-top: 32px; max-width: 36em; font-size: var(--text-lead); font-weight: 700; line-height: 1.8; color: var(--navy); }
.tw-statement__deco { position: absolute; pointer-events: none; background: var(--navy); }
.tw-statement__deco--a { right: -6vw; top: -6vw; width: 22vw; height: 22vw; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 4.4vw var(--navy); }
.tw-statement__deco--b { left: -8vw; bottom: -8vw; width: 18vw; height: 18vw; border-radius: 999px; }
html.tw-on .tw-statement__deco[data-enter] { transform: scale(.2) rotate(-90deg); opacity: 0; }
html.tw-on .tw-statement__deco[data-enter].is-in { transform: none; opacity: 1; transition: transform 1200ms var(--ease-out-expo), opacity 300ms linear; }

/* =====================================================================
   03 お届けするもの（白の面。絵と文を左右交互に）
   ===================================================================== */
.tw-deliver { padding-top: var(--section); background: var(--white); }
.tw-rows { margin-top: 56px; border-top: 1px solid var(--line-strong); }
.tw-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 0 56px; border-bottom: 1px solid var(--line-strong); }
.tw-row__fig { grid-column: 1; }
.tw-row__body { grid-column: 2; padding: 40px max(var(--gutter), calc((100vw - var(--container)) / 2)) 40px 0; }
.tw-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tw-row:nth-child(even) .tw-row__fig { grid-column: 2; grid-row: 1; }
.tw-row:nth-child(even) .tw-row__body { grid-column: 1; grid-row: 1; padding: 40px 0 40px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.tw-row__en { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); }
.tw-row__en::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.tw-row__no { font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--cyan-deep); letter-spacing: .04em; }
.tw-row__when { display: inline-block; margin-top: 20px; padding: 4px 14px; background: var(--cyan); color: var(--ink); font-size: clamp(15px, .8rem + .4vw, 20px); font-weight: 900; line-height: 1.5; letter-spacing: .04em; }
.tw-row__name { margin-top: 10px; font-size: clamp(34px, 1rem + 3.8vw, 72px); font-weight: 900; line-height: 1.15; letter-spacing: var(--tracking-display); }
.tw-row__desc { margin-top: 18px; max-width: 30em; font-size: clamp(15px, .85rem + .3vw, 18px); font-weight: 500; line-height: 1.85; color: var(--text-2); }
.tw-row__point { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--cyan-dark); }
@media (max-width: 899px) {
  .tw-rows { margin-top: 32px; }
  .tw-row, .tw-row:nth-child(even) { grid-template-columns: 1fr; }
  .tw-row .tw-row__fig, .tw-row:nth-child(even) .tw-row__fig { grid-column: 1; grid-row: 1; }
  .tw-row .tw-row__body, .tw-row:nth-child(even) .tw-row__body { grid-column: 1; grid-row: 2; padding: 20px var(--gutter) 40px; }
}

/* =====================================================================
   04 速報の見本（濃紺の面。中央にスマートフォン）
   ===================================================================== */
.tw-sample { position: relative; padding-block: var(--section); background: var(--navy); color: #fff; overflow: hidden; }
.tw-sample__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(300px, 380px) minmax(0, 3.4fr); gap: 40px 56px; align-items: center; }
.tw-sample__src { margin-top: 28px; font-size: 11px; color: var(--lt); }
.tw-sample__links { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; line-height: 1.9; letter-spacing: .02em; }
.tw-sample__links a { color: var(--text-on-dark-2); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.tw-sample__links a:hover { color: #fff; }
.tw-replay { margin-top: 24px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 12px; border-radius: 2px; cursor: pointer; transition: border-color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out); }
.tw-replay:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.tw-legend { display: grid; gap: 0; border-top: 1px solid var(--line-on-dark); }
.tw-legend li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-on-dark); font-size: 14px; line-height: 1.6; color: var(--text-on-dark-2); }
.tw-legend .tw-tag { justify-self: start; font-size: 13px; padding: 3px 10px; }
.tw-legend .tw-tag--skip { color: #fff; }
.tw-phone { position: relative; width: 100%; max-width: 380px; margin-inline: auto; padding: 12px; background: #0A1626; border: 2px solid #35506E; border-radius: 40px; }
.tw-phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; font-size: 10px; color: var(--lt); }
.tw-phone__notch { width: 84px; height: 20px; border-radius: 999px; background: #000; }
.tw-phone__body { position: relative; padding: 14px 12px 12px; background: #EEF3F8; border-radius: 28px; color: var(--ink); }
.tw-msg { position: relative; margin: 0 0 10px 0; padding: 12px 14px; background: #fff; border-radius: 4px 16px 16px 16px; font-size: 13.5px; line-height: 1.7; letter-spacing: .02em; }
.tw-msg p { max-width: none; }
.tw-msg--head { background: var(--navy); color: #fff; }
.tw-msg--head b { font-size: 16px; }
.tw-msg--head p { font-size: 12.5px; color: var(--text-on-dark-2); }
.tw-msg__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.tw-msg__top b { font-size: 15px; line-height: 1.4; }
.tw-msg__no { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--font-en); font-size: 12px; font-weight: 700; }
.tw-msg__you { margin-top: 8px; padding: 8px 10px; background: var(--pale); font-weight: 500; }
.tw-msg__you span { display: block; font-size: 11px; font-weight: 700; color: var(--cyan-dark); letter-spacing: .08em; }
.tw-msg--skip { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: 12.5px; }
html.tw-on .tw-phone .tw-msg { opacity: 0; transform: translateY(14px) scale(.96); transform-origin: left top; }
html.tw-on .tw-phone .tw-msg.is-in { opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out-expo); }
.tw-typing { position: absolute; left: 12px; display: inline-flex; gap: 5px; padding: 12px 14px; background: #fff; border-radius: 4px 16px 16px 16px; }
.tw-typing[hidden] { display: none; }
.tw-typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--mid); animation: tw-typing 900ms ease-in-out infinite; }
.tw-typing i:nth-child(2) { animation-delay: 150ms; } .tw-typing i:nth-child(3) { animation-delay: 300ms; }
.tw-sample__ring { position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 999px; box-shadow: inset 0 0 0 26px var(--cyan); pointer-events: none; }
@media (max-width: 1099px) {
  .tw-sample__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
  .tw-sample__legend { grid-column: 1 / -1; }
  .tw-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 767px) {
  .tw-sample__grid { grid-template-columns: 1fr; }
  .tw-legend { grid-template-columns: 1fr; }
  .tw-sample__ring { width: 140px; height: 140px; right: -60px; top: -60px; box-shadow: inset 0 0 0 16px var(--cyan); }
}

/* =====================================================================
   05 3か月で手元に残るもの（紙の面）
   ===================================================================== */
.tw-months { padding-block: var(--section); background: var(--surf); overflow: hidden; }
.tw-months__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 48px; align-items: center; }
.tw-timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; padding-top: 34px; }
.tw-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--navy); transform-origin: left center; }
.tw-timeline__item { position: relative; }
.tw-timeline__node { position: absolute; top: -34px; left: 0; width: 24px; height: 24px; border-radius: 999px; background: var(--cyan); border: 3px solid var(--navy); }
.tw-timeline__name { font-size: clamp(16px, .9rem + .4vw, 20px); font-weight: 900; line-height: 1.4; }
.tw-timeline__item ul { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
html.tw-on .tw-timeline[data-enter]::before { transform: scaleX(0); }
html.tw-on .tw-timeline[data-enter].is-in::before { transform: none; transition: transform 1400ms var(--ease-out-expo); }
html.tw-on .tw-timeline[data-enter] .tw-timeline__node { transform: scale(0); }
html.tw-on .tw-timeline[data-enter].is-in .tw-timeline__node { transform: none; transition: transform 520ms var(--ease-out-expo) calc(200ms + var(--i) * 380ms); }
.tw-remains { display: grid; gap: 14px; margin-top: 44px; }
.tw-remains li { display: flex; align-items: baseline; gap: .15em; padding-left: 22px; border-left: 12px solid var(--cyan); font-size: clamp(34px, 1rem + 3.4vw, 64px); font-weight: 900; line-height: 1.2; letter-spacing: var(--tracking-display); }
.tw-remains .num { font-size: 1.12em; letter-spacing: -.02em; }
.tw-remains .num__unit { font-size: .89em; font-weight: 900; margin-left: 0; }
@media (max-width: 899px) {
  .tw-months__grid { grid-template-columns: 1fr; }
  .tw-months__fig { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .tw-timeline { gap: 10px; }
  .tw-timeline__item ul { font-size: 12.5px; }
}

/* =====================================================================
   06 料金（白の面。数字が主役）
   ===================================================================== */
.tw-price { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--line); }
.tw-price__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: center; }
.tw-price__label { margin-top: 16px; font-size: clamp(22px, 1rem + 1.4vw, 36px); font-weight: 900; line-height: 1.3; }
.tw-price__num { display: flex; align-items: baseline; flex-wrap: nowrap; white-space: nowrap; margin-top: 4px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.tw-price__pre, .tw-price__unit { font-size: clamp(50px, .5rem + 7.4vw, 124px); }
.tw-price__fig { display: inline-block; overflow: hidden; padding: 0 .04em; font-family: var(--font-en); font-weight: 700; font-size: clamp(92px, 1rem + 13.6vw, 228px); line-height: .86; color: var(--cyan); letter-spacing: -.04em; }
.tw-price__fig > span { display: inline-block; }
.tw-price__unit small { font-size: .4em; font-weight: 900; letter-spacing: 0; }
.tw-price__total { margin-top: 18px; font-size: clamp(22px, 1rem + 1.8vw, 40px); font-weight: 900; line-height: 1.3; }
.tw-price__regular { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--navy); font-size: clamp(16px, .9rem + .5vw, 22px); font-weight: 700; color: var(--text-2); }
.tw-price__regular span { position: relative; display: inline-block; }
.tw-price__regular span::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 2px; background: var(--ink); transform-origin: left center; }
html.tw-on [data-price] .tw-price__fig > span { transform: translateY(105%); }
html.tw-on [data-price].is-in .tw-price__fig > span { transform: none; transition: transform 1000ms var(--ease-out-expo) 120ms; }
html.tw-on [data-price] .tw-price__regular span::after { transform: scaleX(0); }
html.tw-on [data-price].is-in .tw-price__regular span::after { transform: none; transition: transform 600ms var(--ease-out) 900ms; }
.tw-stamp { display: grid; place-items: center; align-content: center; justify-self: center; width: clamp(150px, 17vw, 250px); aspect-ratio: 1; background: var(--cyan); color: var(--ink); font-weight: 900; line-height: 1.1; text-align: center; transform: rotate(-8deg); }
.tw-stamp span { font-size: clamp(24px, 2.6vw, 42px); }
.tw-stamp b { font-size: clamp(48px, 5.4vw, 88px); font-weight: 900; }
.tw-stamp b i { font-style: normal; font-family: var(--font-en); font-weight: 700; font-size: 1.16em; }
html.tw-on .tw-stamp[data-enter] { opacity: 0; transform: rotate(8deg) scale(1.7); }
html.tw-on .tw-stamp[data-enter].is-in { opacity: 1; transform: rotate(-8deg); transition: opacity 160ms linear 500ms, transform 420ms cubic-bezier(.2, .9, .3, 1) 500ms; }
.tw-price__detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.tw-include { margin-top: 12px; }
.tw-include li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); font-weight: 700; line-height: 1.6; }
.tw-include li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 14px; height: 7px; border: solid var(--cyan-deep); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.tw-price__ex { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.tw-price__side { display: grid; gap: 14px; justify-items: start; }
.tw-price__note { font-size: 13px; color: var(--text-2); }
@media (max-width: 899px) {
  .tw-price__grid { grid-template-columns: 1fr; }
  .tw-stamp { justify-self: start; margin: 8px 0 0 8px; }
  .tw-price__detail { grid-template-columns: 1fr; margin-top: 40px; padding-top: 28px; }
}

/* =====================================================================
   07 なぜTERRAISEが教えられるのか（紙の面）
   ===================================================================== */
.tw-why { padding-block: var(--section); background: var(--surf); overflow: hidden; }
.tw-why__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 64px; align-items: center; }
.tw-why__list { margin-top: 32px; border-top: 1px solid var(--navy); }
.tw-why__list > li { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.tw-why__list .mono-label { padding-top: .5em; color: var(--cyan-deep); }
.tw-why__list h3 { font-size: var(--text-h3); font-weight: 900; line-height: 1.45; }
.tw-why__list p { margin-top: 6px; color: var(--text-2); }
.tw-why__link { margin-top: 10px; }
.tw-ceo { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.tw-ceo__photo { width: 84px; height: 84px; object-fit: cover; border-radius: 0; flex: none; }
.tw-ceo p { display: grid; gap: 2px; line-height: 1.5; }
.tw-ceo .mono-label { color: var(--cyan-deep); font-size: 11px; }
.tw-ceo b { font-size: 20px; font-weight: 900; }
.tw-ceo p > span:last-child { font-size: 13px; color: var(--text-2); }
@media (max-width: 899px) { .tw-why__grid { grid-template-columns: 1fr; } .tw-why__fig { margin-inline: calc(-1 * var(--gutter)); } }

/* =====================================================================
   08 締め（濃紺の全面）
   ===================================================================== */
.tw-closing { position: relative; padding-block: clamp(88px, 11vw, 160px); background: var(--navy-deep); color: #fff; overflow: hidden; isolation: isolate; }
.tw-closing__bg { position: absolute; inset: 0 0 0 38%; z-index: -1; opacity: .5; mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.tw-closing__bg div { height: 112%; margin-top: -6%; }
.tw-closing__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.tw-closing__title { margin-top: 16px; font-size: clamp(44px, 1rem + 7vw, 128px); font-weight: 900; line-height: 1.12; letter-spacing: var(--tracking-display); }
.tw-closing__title .phrase { display: block; }
.tw-closing__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-top: 48px; }
.tw-closing__steps { border-top: 1px solid var(--line-on-dark); }
.tw-closing__steps li { display: grid; grid-template-columns: 3em 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-on-dark); font-weight: 700; }
.tw-closing__steps .mono-label { color: var(--cyan); }
.tw-closing__action { display: grid; gap: 16px; justify-items: start; padding: 32px; background: rgba(7,28,51,.86); border: 1px solid var(--line-on-dark); }
.tw-closing__offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tw-closing__offer b { font-size: 18px; }
.tw-closing__action .btn { width: 100%; justify-content: space-between; font-size: clamp(16px, .9rem + .5vw, 22px); padding: 22px 28px; }
.tw-closing__note { font-size: 14px; color: var(--text-on-dark-2); }
.tw-closing .tw-hud { inset: 20px 24px; }
@media (max-width: 899px) {
  .tw-closing__row { grid-template-columns: 1fr; margin-top: 32px; }
  .tw-closing__bg { inset: 0; opacity: .28; mask-image: linear-gradient(180deg, transparent 0%, #000 50%); }
  .tw-closing__action { padding: 24px 20px; }
  .tw-closing .tw-hud { inset: 12px; }
}

/* FAQ はサイト共通（p.faq）。締めの前の面の区切りだけ整える */
.lp--ai-tutor .pfaq { border-top: 1px solid var(--line); }
.lp--ai-tutor .site-header--lp { overflow: visible; }

/* ---------------- キーフレーム ---------------- */
@keyframes tw-rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes tw-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tw-hand { from { transform: rotate(0deg); } to { transform: rotate(var(--deg)); } }
@keyframes tw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes tw-dash { to { stroke-dashoffset: 30; } }
@keyframes tw-spin { to { transform: rotate(360deg); } }
@keyframes tw-typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------------- 動きを止める（OS の設定・ヘッダーの MOTION OFF） ---------------- */
@media (prefers-reduced-motion: reduce) {
  .lp--ai-tutor *, .lp--ai-tutor *::before, .lp--ai-tutor *::after { animation: none !important; }
  .tw-progress { display: none; }
}
html[data-motion="off"] .lp--ai-tutor *, html[data-motion="off"] .lp--ai-tutor *::before, html[data-motion="off"] .lp--ai-tutor *::after { animation: none !important; }
html[data-motion="off"] .tw-progress { display: none; }
