/* MOTION ATLAS — 動きの図鑑 */
:root {
  --ink: #0A1633;
  --ink-2: #26324F;
  --muted: #5C6785;
  --line: #E3E7F0;
  --line-strong: #C9D0DE;
  --paper: #F6F7FA;
  --white: #fff;
  --blue: #2A5BFF;
  --blue-ink: #1A3FD1;
  --blue-soft: #EAF0FF;
  --sun: #E8572E;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --display: "Inter Tight", "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 22, 51, .05), 0 8px 24px rgba(10, 22, 51, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --k: 1;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 15px/1.75 var(--sans); letter-spacing: .01em;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; line-break: strict;
}
p, dd, h1, h2, h3 { text-wrap: pretty; }
img, svg, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.eb { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 26px; height: 26px; }
.logo b { font: 800 15px/1 var(--display); letter-spacing: .14em; }
.logo small { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; border-left: 1px solid var(--line-strong); padding-left: 10px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--blue); }
.nav a svg { display: none; }
.mt { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0 6px 6px; font: 700 12px var(--sans); color: var(--muted); flex: none; }
.mt i { position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--line-strong); transition: background .2s; }
.mt i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10, 22, 51, .25); transition: transform .25s var(--ease); }
.mt[aria-checked="true"] i { background: var(--blue); }
.mt[aria-checked="true"] i::after { transform: translateX(14px); }

/* ---------- 共通の部品 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 700 14px var(--sans); text-decoration: none; transition: background .2s, border-color .2s, transform .15s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--pri { background: var(--ink); color: #fff; }
.btn--pri:hover { background: var(--blue); }
.btn--sec { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--sec:hover { border-color: var(--ink); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.btn[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { font: 600 10px var(--mono); color: var(--muted); }
.chip.is-on small, .chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .65); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--paper); font: 700 10.5px var(--sans); color: var(--ink-2); white-space: nowrap; }
.tag--vid { background: #FFF0EB; color: var(--sun); }
.tag--vid::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.sec { padding-block: clamp(56px, 9vw, 112px); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.sec-h h2 { margin: 10px 0 0; font: 800 clamp(26px, 3.6vw, 40px)/1.25 var(--display); letter-spacing: -.01em; }
.sec-h p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 34em; }
.toast-g { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 14px 34px rgba(10, 22, 51, .3); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility .35s; pointer-events: none; }
.toast-g.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 0; font: 900 clamp(38px, 6.2vw, 76px)/1.12 var(--display); letter-spacing: -.02em; }
.hero h1 span { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 span > b { display: block; font-weight: inherit; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { margin: 22px 0 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.95; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 800 clamp(24px, 3vw, 32px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.hero-v { position: relative; aspect-ratio: 5 / 4.4; border-radius: 28px; background: var(--paper); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.hero-v .stage { position: absolute; inset: 0; }
.hero-card { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 0 0 2px var(--blue), 0 16px 40px rgba(10, 22, 51, .16); transform: translateY(0); transition: transform .5s var(--ease), opacity .4s; }
.hero-card.is-out { transform: translateY(24px); opacity: 0; }
.hero-card i { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; font: 800 20px var(--display); color: var(--blue); font-style: normal; }
.hero-card small { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 10px var(--sans); }
.hero-card b { display: block; font: 800 20px/1.25 var(--display); margin-top: 4px; }
.hero-card span { font-size: 11px; color: var(--muted); }
.hero-card a { margin-left: auto; flex: none; }
.hero-dots { position: absolute; top: 16px; left: 18px; z-index: 6; display: flex; gap: 6px; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(10, 22, 51, .2); transition: width .3s, background .3s; }
.hero-dots button.is-on { width: 22px; background: var(--ink); }

/* ---------- 参考動画の名前 ---------- */
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vid { padding: 22px; border-radius: var(--r); background: var(--paper); }
.vid-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.vid-h b { font: 800 34px/1 var(--display); color: var(--sun); }
.vid-h span { font-weight: 700; font-size: 14px; }
.vid-h small { margin-left: auto; font: 600 10.5px var(--mono); color: var(--muted); }
.vid ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vid a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.vid a:hover { background: #fff; }
.vid a time { font: 600 11px var(--mono); color: var(--muted); }
.vid a b { font-size: 14px; }
.vid a em { font: 500 11px var(--display); color: var(--muted); font-style: normal; }

/* ---------- 検索と絞り込み ---------- */
.find { position: relative; }
.find-box { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; border-radius: 18px; border: 1.5px solid var(--line-strong); background: #fff; transition: border-color .2s, box-shadow .2s; }
.find-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(42, 91, 255, .12); }
.find-box svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.find-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 17px; font-weight: 500; }
.find-box input::placeholder { color: #9AA3B8; }
.find-box kbd { font: 600 11px var(--mono); color: var(--muted); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; }
.find-ex { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.find-ex > span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin-top: 30px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats .chip b { font: 800 11px var(--mono); color: var(--blue); }
.cats .chip.is-on b { color: #8FB0FF; }
.flt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0; border-block: 1px solid var(--line); margin-top: 6px; }
.flt select { height: 36px; padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235C6785' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; appearance: none; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.flt .seg { display: flex; padding: 3px; border-radius: 11px; background: var(--paper); margin-left: auto; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.flt .seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.flt .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 22, 51, .12); }
.res { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 16px; }
.res b { font: 800 18px var(--display); }
.res span { font-size: 12.5px; color: var(--muted); }
.cat-lead { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; padding: 18px 0 6px; }
.cat-lead b { font: 900 46px/1 var(--display); color: var(--blue); grid-row: span 2; }
.cat-lead h3 { margin: 0; font: 800 22px var(--display); }
.cat-lead h3 small { margin-left: 10px; font: 600 11px var(--mono); color: var(--muted); letter-spacing: .1em; }
.cat-lead p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- カード ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.cd { position: relative; border-radius: var(--r); background: #fff; transition: transform .35s var(--ease); }
.cd-prev { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.cd:hover .cd-prev, .cd:focus-within .cd-prev { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cd-link { position: absolute; inset: 0; z-index: 3; border-radius: var(--r); }
.cd-body { padding: 12px 4px 6px; }
.cd-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cd-code { font: 600 10.5px var(--mono); color: var(--muted); letter-spacing: .06em; }
.cd h3 { margin: 0; font: 800 15.5px/1.45 var(--display); }
.cd-en { margin: 1px 0 0; font: 500 12px/1.4 var(--display); color: var(--muted); }
.cd-act { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.cd:hover .cd-act, .cd:focus-within .cd-act, .cd-act:has([aria-pressed="true"]) { opacity: 1; transform: none; }
.ib { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(10, 22, 51, .14); display: grid; place-items: center; color: var(--ink); }
.ib svg { width: 17px; height: 17px; }
.ib[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ib[aria-pressed="true"].is-fav { background: #E5484D; }
.empty { padding: 60px 20px; text-align: center; border-radius: var(--r); background: var(--paper); }
.empty b { display: block; font-size: 17px; }
.empty p { color: var(--muted); font-size: 13px; }

/* ---------- ステージ（すべてのデモの土台） ---------- */
.stage { position: absolute; inset: 0; overflow: hidden; background-color: var(--paper); background-image: radial-gradient(rgba(10, 22, 51, .09) 1px, transparent 1.2px); background-size: 22px 22px; user-select: none; -webkit-user-select: none; }
.stage--phone { background-image: none; background-color: #EEF0F4; }
.stage--cam { background: #E8EEF9; }
.stage--video { background-image: none; background-color: #E6E3DC; }
.stage.is-mini { pointer-events: none; }
.stage input, .stage textarea { user-select: text; -webkit-user-select: text; }
.stage-err { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.fit { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; }
.ghost { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px solid var(--ink); box-shadow: 0 4px 12px rgba(10, 22, 51, .25); z-index: 50; pointer-events: none; opacity: 0; transition: opacity .2s, scale .15s; }
.ghost::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.ghost.is-down { scale: .82; background: rgba(42, 91, 255, .35); }
.ghost.is-down::after { opacity: 1; transform: none; }
.readout { position: absolute; left: 14px; bottom: 12px; right: 14px; font: 500 10.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* キーフレーム型の見本 */
.spec { position: absolute; inset: 0; display: grid; place-items: center; }
.spec > * { grid-area: 1 / 1; }
.spec-ghost { width: 96px; height: 96px; border-radius: 22px; border: 1.5px dashed var(--line-strong); }
.spec-obj { width: 96px; height: 96px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(10, 22, 51, .18); }
.spec-obj b { font: 800 34px var(--display); }
.spec-mark { width: 30px; height: 30px; border-radius: 50%; border: 6px solid var(--blue); position: relative; }
.spec-mark::after { content: ""; position: absolute; right: -16px; bottom: -16px; width: 14px; height: 6px; border-radius: 3px; background: #fff; transform: rotate(45deg); }
.spec-b { background: var(--blue); }
.spec-photo { width: 200px; height: 140px; border-radius: 16px; background: linear-gradient(160deg, #F4D9B8, #B5876A 60%, #5C4033); }
.spec-photo .spec-mark { display: none; }
.spec-flip { background: none; box-shadow: none; transform-style: preserve-3d; position: relative; }
.spec-flip span { position: absolute; inset: 0; border-radius: 22px; display: grid; place-items: center; font: 800 26px var(--sans); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.spec-flip .ff { background: var(--ink); color: #fff; }
.spec-flip .fb { background: var(--blue); color: #fff; transform: rotateY(180deg); }
.spec--hang { align-content: start; padding-top: 70px; }
.spec--hang .spec-ghost { display: none; }
.spec--hang::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 30px; background: var(--line-strong); }
.spec--hang .spec-obj::before { content: ""; position: absolute; left: 50%; top: -40px; width: 1.5px; height: 40px; margin-left: -.75px; background: var(--ink-2); }
.spec--hang .spec-obj { position: relative; }
.is-mini .spec-obj, .is-mini .spec-ghost { width: 64px; height: 64px; border-radius: 16px; }
.is-mini .spec-photo { width: 130px; height: 92px; }
.is-mini .spec-obj b { font-size: 24px; }
.is-mini .spec-mark { width: 22px; height: 22px; border-width: 5px; }
.is-mini .spec-mark::after { right: -12px; bottom: -12px; width: 10px; height: 5px; }
.is-mini .spec--hang { padding-top: 46px; }

/* スマホ枠 */
.phone { background: #fff; border: 7px solid var(--ink); border-radius: 40px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 22, 51, .22); font-family: var(--sans); color: var(--ink); line-height: 1.5; }
.phone-bar { position: relative; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font: 700 12px var(--display); }
.phone-isl { position: absolute; left: 50%; top: 8px; width: 82px; height: 22px; margin-left: -41px; border-radius: 12px; background: var(--ink); }
.phone-ic { width: 40px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 0 60%, transparent 60% 70%, var(--ink) 70%); opacity: .8; }
.phone-head { position: relative; z-index: 3; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 15px; background: #fff; }
.phone-screen { position: absolute; left: 0; right: 0; top: 82px; bottom: 0; overflow: hidden; }
.phone-bar + .phone-screen { top: 34px; }

/* ---------- 詳細 ---------- */
.dt { padding-top: 22px; padding-bottom: 80px; }
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumb li + li::before { content: "›"; margin-right: 8px; color: var(--line-strong); }
.crumb a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.crumb a:hover { color: var(--blue); }
.crumb .pn { margin-left: auto; display: flex; gap: 6px; }
.dt-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin: 26px 0 26px; }
.dt-code { font: 600 12px var(--mono); color: var(--blue); letter-spacing: .1em; }
.dt-head h1 { margin: 8px 0 4px; font: 900 clamp(30px, 4.6vw, 54px)/1.15 var(--display); letter-spacing: -.015em; }
.dt-en { font: 600 clamp(15px, 1.8vw, 19px)/1.4 var(--display); color: var(--ink-2); }
.dt-en small { margin-left: 10px; font: 500 12px var(--sans); color: var(--muted); }
.dt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dt-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dt-g { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.dt-stage-w { border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.dt-stage { position: relative; height: clamp(380px, 58vh, 620px); }
.dt-stage.is-phone, .dt-stage.is-video { height: clamp(460px, 68vh, 700px); }
.note-rm { position: absolute; left: 12px; top: 12px; z-index: 60; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 10px; background: rgba(10, 22, 51, .86); color: #fff; font-size: 11.5px; line-height: 1.6; }
.tp { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tp-b { width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.tp-b:hover { background: var(--paper); }
.tp-b svg { width: 18px; height: 18px; }
.tp-b[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }
.tp-play { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; }
.tp-play:hover { background: var(--blue); }
.tp-time { font: 600 12px var(--mono); color: var(--muted); min-width: 108px; text-align: center; font-variant-numeric: tabular-nums; }
.tp-sel { height: 34px; padding: 0 28px 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235C6785' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center / 11px; appearance: none; font-size: 12px; font-weight: 700; }
.tp-rate { display: flex; padding: 3px; border-radius: 10px; background: var(--paper); margin-left: auto; }
.tp-rate button { height: 30px; min-width: 40px; padding: 0 6px; border: 0; border-radius: 8px; background: none; font: 700 11.5px var(--mono); color: var(--muted); }
.tp-rate button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 22, 51, .12); }
.tl-w { position: relative; padding: 4px 16px 16px; }
.tl-r { position: relative; height: 26px; }
.tl-r input { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; z-index: 2; }
.tl-r input::-webkit-slider-runnable-track { height: 26px; background: none; }
.tl-r input::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 26px; border-radius: 2px; background: var(--ink); }
.tl-r input::-moz-range-thumb { width: 4px; height: 26px; border: 0; border-radius: 2px; background: var(--ink); }
.tl-r input::-moz-range-track { background: none; }
.tl-track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tl-track i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.tl-mk { position: absolute; top: -2px; transform: translateX(-50%); font: 600 9.5px var(--sans); color: var(--muted); white-space: nowrap; pointer-events: none; }
.tl-mk::after { content: ""; display: block; width: 1.5px; height: 8px; margin: 2px auto 0; background: var(--line-strong); }
.tl-marks { position: relative; height: 18px; }
.tl-note { font-size: 11px; color: var(--muted); padding: 0 16px 12px; }

.pp { position: sticky; top: 82px; border-radius: 22px; background: var(--paper); padding: 18px; }
.pp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pp-h b { font-size: 14px; }
.pp-f { display: flex; flex-direction: column; gap: 16px; }
.pf label, .pf .pf-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.pf output { font: 600 12px var(--mono); color: var(--blue); white-space: nowrap; }
.pf input[type="range"] { width: 100%; accent-color: var(--blue); margin: 0; }
.pf select { width: 100%; height: 38px; padding: 0 30px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235C6785' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; appearance: none; font-size: 12.5px; }
.pf-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pf-seg button { flex: 1 1 auto; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 7px; background: none; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pf-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pf-sw { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 700; text-align: left; }
.pf-sw i { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); transition: background .2s; }
.pf-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.pf-sw[aria-checked="true"] i { background: var(--blue); }
.pf-sw[aria-checked="true"] i::after { transform: translateX(16px); }
.pp-none { font-size: 12px; color: var(--muted); }

.blk { margin-top: 48px; }
.blk > h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font: 800 22px var(--display); }
.blk > h2 small { font: 600 11px var(--mono); color: var(--blue); letter-spacing: .14em; }
.lead-d { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.95; max-width: 40em; margin: 0 0 22px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0; }
.how div { padding: 18px; border-radius: var(--r); background: var(--paper); }
.how dt { font: 700 11px var(--sans); color: var(--blue); letter-spacing: .06em; margin-bottom: 6px; }
.how dd { margin: 0; font-size: 13.5px; line-height: 1.85; }
.how .is-warn dt { color: var(--sun); }
.vidref { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; padding: 16px 18px; border-radius: var(--r); background: #FFF6F2; border: 1px solid #FBD9CC; font-size: 13px; line-height: 1.8; }
.vidref b { font: 800 26px/1 var(--display); color: var(--sun); }
.box { border-radius: 18px; background: var(--ink); color: #E8ECF7; overflow: hidden; }
.box-h { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); flex-wrap: wrap; }
.box-h .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.box-h .tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: #8C97B5; font: 600 12px var(--mono); }
.box-h .tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.box-h .sp { margin-left: auto; display: flex; gap: 6px; }
.box-h .btn--sm { background: rgba(255, 255, 255, .08); color: #fff; border: 0; }
.box-h .btn--sm:hover { background: var(--blue); }
.box pre { margin: 0; padding: 18px 20px 22px; overflow: auto; max-height: 460px; font: 400 12.5px/1.75 var(--mono); tab-size: 2; white-space: pre; }
.box .c-c { color: #6F7C9E; } .box .c-s { color: #9FE0B8; } .box .c-n { color: #FFC48A; } .box .c-k { color: #8FB0FF; }
.prm { white-space: pre-wrap !important; font-family: var(--sans) !important; font-size: 13.5px !important; line-height: 1.9 !important; color: #fff; }
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.rel .cd h3 { font-size: 14px; }

/* ---------- 比較 ---------- */
.cmp-pre { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.cmp-g { display: grid; gap: 14px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.cmp-c { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.cmp-c select { margin: 12px; height: 40px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235C6785' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; appearance: none; font-size: 13px; font-weight: 700; }
.cmp-st { position: relative; aspect-ratio: 4 / 3.4; }
.cmp-st.is-tall { aspect-ratio: 3 / 4.2; }
.cmp-d { padding: 14px 16px 18px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.cmp-d b { display: block; font: 800 16px var(--display); color: var(--ink); }
.cmp-d a { font-weight: 700; font-size: 12px; color: var(--blue); }
.cmp-bar { position: sticky; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(10, 22, 51, .12); }
.cmp-bar input { flex: 1; accent-color: var(--blue); }
.cmp-diff { margin-top: 26px; border-radius: 20px; background: var(--paper); padding: 22px; }
.cmp-diff h3 { margin: 0 0 8px; font: 800 18px var(--display); }
.cmp-diff p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.9; }
.cmp-t { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; }
.cmp-t th, .cmp-t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp-t th { font-weight: 700; color: var(--muted); font-size: 12px; }
.cmp-t .y { color: var(--blue); font-weight: 800; }
.cmp-t .n { color: #A0A8BC; }

/* ---------- 頼み方工房 ---------- */
.pg-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.pg-f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 22px; border-radius: 22px; background: var(--paper); }
.pg-f .full { grid-column: 1 / -1; }
.pg-f label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; }
.pg-f input[type="text"], .pg-f input[type="number"], .pg-f select, .pg-f textarea { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; }
.pg-f select { padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235C6785' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; appearance: none; }
.pg-f textarea { height: 72px; padding: 10px 12px; resize: vertical; }
.pg-f fieldset { border: 0; margin: 0; padding: 0; }
.pg-f legend { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.pg-ck { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-ck label { flex-direction: row; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 12px; cursor: pointer; }
.pg-ck input { accent-color: var(--blue); margin: 0; }
.pg-out { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 14px; }
.pg-prev { position: relative; height: 260px; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.pg-ex { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* ---------- 学ぶ順番 ---------- */
.rm { position: relative; display: flex; flex-direction: column; gap: 16px; }
.rm-s { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; padding: 24px; border-radius: 22px; background: var(--paper); }
.rm-n { font: 900 46px/1 var(--display); color: var(--line-strong); }
.rm-s.is-done .rm-n { color: var(--blue); }
.rm-s h3 { margin: 0; font: 800 20px var(--display); }
.rm-s > div > p { margin: 6px 0 14px; color: var(--muted); font-size: 13.5px; }
.rm-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rm-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; counter-reset: s; }
.rm-steps label { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; cursor: pointer; }
.rm-steps input { accent-color: var(--blue); margin: 0; }
.rm-steps label:has(:checked) { border-color: var(--blue); color: var(--blue-ink); }
.qz { margin-top: 6px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; }
.qz-st { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.qz-q { font-weight: 800; font-size: 15px; margin: 0 0 10px; }
.qz-o { display: flex; flex-direction: column; gap: 6px; }
.qz-o button { text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; }
.qz-o button:hover { border-color: var(--ink); }
.qz-o button.is-ok { background: #E8F7EF; border-color: #2FBF71; color: #1F7A4A; }
.qz-o button.is-ng { background: #FDECEC; border-color: #E5484D; color: #A3282C; }
.qz-r { font-size: 12.5px; margin-top: 8px; min-height: 1.5em; }

/* ---------- 動画の記録 ---------- */
.vt-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.vt-t th, .vt-t td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vt-t th { font-size: 11.5px; color: var(--muted); font-weight: 700; background: #fff; }
.vt-t time { font: 600 12px var(--mono); }
.vt-t a { font-weight: 800; color: var(--blue); text-decoration: none; }
.vt-scroll { overflow-x: auto; }
.cnt { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cnt div { padding: 14px 16px; border-radius: 14px; background: var(--paper); display: flex; align-items: baseline; gap: 10px; }
.cnt b { font: 900 26px var(--display); }
.cnt span { font-size: 12px; color: var(--muted); }
.cnt i { font: 800 12px var(--mono); color: var(--blue); font-style: normal; }
.nolist { margin: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 2; }

/* ---------- フッター ---------- */
.ft { margin-top: 40px; padding: 48px 0 60px; background: var(--ink); color: #C9D2E8; }
.ft-g { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ft b { color: #fff; }
.ft p { font-size: 12.5px; line-height: 1.9; margin: 8px 0 0; }
.ft a { color: #fff; }
.ft .logo small { border-color: rgba(255, 255, 255, .2); color: #8C97B5; }

/* ---------- 入場の動き（ページ自体） ---------- */
.rv-in { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv-in.is-in { opacity: 1; transform: none; }
.hero h1 span > b { transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 span:nth-child(2) > b { animation-delay: .09s; }
.hero h1 span:nth-child(3) > b { animation-delay: .18s; }
@keyframes lineUp { to { transform: none; } }
.page-in { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.no-motion .rv-in { opacity: 1; transform: none; transition: none; }
.no-motion .hero h1 span > b, .no-motion .page-in { animation: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-in { opacity: 1; transform: none; transition: none; }
  .hero h1 span > b, .page-in { animation: none; transform: none; }
  .hero-card { transition: none; }
}

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 1080px) {
  .dt-g { grid-template-columns: minmax(0, 1fr); }
  .pp { position: static; }
  .pg-g { grid-template-columns: minmax(0, 1fr); }
  .pg-out { position: static; }
  .cmp-g { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-g { grid-template-columns: minmax(0, 1fr); }
  .hero-v { aspect-ratio: 4 / 3.6; }
  .vids { grid-template-columns: minmax(0, 1fr); }
  .ft-g { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); font-size: 14.5px; }
  .hd-in { height: 56px; gap: 12px; }
  .logo small { display: none; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; gap: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 6px 2px; font-size: 10px; border-radius: 10px; }
  .nav a svg { display: block; width: 22px; height: 22px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--blue-soft); }
  .mt { margin-left: auto; }
  .mt span { display: none; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-stats { gap: 18px; }
  .hero-card { left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; gap: 10px; }
  .hero-card i { width: 40px; height: 40px; font-size: 16px; }
  .hero-card b { font-size: 16px; }
  .hero-card a { display: none; }
  .find-box { height: 54px; padding: 0 14px; }
  .find-box input { font-size: 16px; }
  .find-box kbd { display: none; }
  .flt .seg { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cd h3 { font-size: 13.5px; }
  .cd-en { font-size: 11px; }
  .cd-act { opacity: 1; transform: none; top: 6px; right: 6px; }
  .ib { width: 30px; height: 30px; }
  .cd-act .ib:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .8); }
  .dt-head { grid-template-columns: 1fr; }
  .dt-act { justify-content: flex-start; }
  .dt-stage { height: 340px; }
  .dt-stage.is-phone, .dt-stage.is-video { height: min(76vh, 600px); }
  .tp { gap: 2px; padding: 8px; }
  .tp-time { min-width: 0; order: 9; width: 100%; text-align: left; padding-left: 6px; }
  .tp-rate { margin-left: 0; order: 10; width: 100%; justify-content: space-between; }
  .tp-rate button { flex: 1; }
  .crumb .pn { margin-left: 0; width: 100%; }
  .cmp-g { grid-template-columns: minmax(0, 1fr); }
  .pg-f { grid-template-columns: 1fr; }
  .rm-s { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .rm-n { font-size: 32px; }
  .qz { grid-template-columns: 1fr; }
  .vt-t th { position: static; }
  .toast-g { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cmp-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
[tabindex="-1"]:focus { outline: none; }
.pg-f > *, .pg-f label > * { min-width: 0; }
.pg-f select, .pg-f input[type="text"], .pg-f input[type="number"], .pg-f textarea { width: 100%; }
@media (max-width: 980px) and (min-width: 761px) {
  .hd-in { gap: 14px; }
  .logo small { display: none; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .mt span { display: none; }
}
@media (max-width: 760px) { .pg-f { grid-template-columns: minmax(0, 1fr); } }
/* ヘッダーの backdrop-filter は fixed の子の基準になってしまうため、スマホでは外す */
@media (max-width: 760px) { .hd { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .97); } }
/* 長いカタカナ1語（フローティングアクションボタン等）が画面からはみ出さないように */
h1, h2, h3, .dt-en, .cd-en { overflow-wrap: anywhere; }
.dt-head { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 760px) { .dt-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .cmp-bar { flex-wrap: wrap; }
  .cmp-bar input { flex: 1 1 160px; min-width: 0; }
  .cmp-bar .tp-rate { width: 100%; }
}
@media (max-width: 760px) {
  .cmp-pre { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scrollbar-width: none; }
  .cmp-pre::-webkit-scrollbar { display: none; }
}
