@charset "utf-8";
/*
 * KNK CREATION のテーマの CSS（全ページで1つ。ビルドなし：@layer と入れ子をそのまま書く）
 * スマホが先。広い画面は @media (min-width: …) で足す
 * 強さは層の順（後ろほど強い）：reset → base → components → layout → pages
 * フォームの見た目（本体の knk-form.css）は層の外にあり、層の中のどれより強い。合わせるときは最後の「層の外」に書く
 *
 * 色：地と文字は場面で明暗が変わる（site.js が :root.is-dark を付け外し。0.9秒でなめらかに移る）。ロゴの9色はアクセント
 */
@layer reset, base, components, layout, pages;

:root {
  --c-red: #e1524e; --c-teal: #289e93; --c-indigo: #5666ad; --c-yellow: #f4c331; --c-pink: #db4073;
  --c-green: #96c364; --c-sky: #37abe2; --c-orange: #ec6d45; --c-purple: #904b98;
  /* ボタンの色：ロゴの色の流れ（空色 → 藍 → 紫 → ピンク）。押せるものはこの色 */
  --grad: linear-gradient(115deg, var(--c-sky), var(--c-indigo) 38%, var(--c-purple) 66%, var(--c-pink));
  --bg: #fbfbfd; --fg: #171a26; --mute: #5d6273; --line: rgba(23, 26, 38, .12);
  --glass: rgba(251, 251, 253, .8); --bubble: #eef0f7; --plate: rgba(255, 255, 255, .66); --ink: #171a26;
  /* 薄いすりガラス（ロゴ・下層の見出し・フッター。後ろの演出が透けて見える強さ） */
  --veil: rgba(251, 251, 253, .58); --frost: blur(6px) saturate(1.2);
  --shadow: 0 10px 40px rgba(14, 18, 32, .12);
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --ease-spring: cubic-bezier(.3, 1.4, .4, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --head-h: 72px;
  color-scheme: light;
}
:root.is-dark {
  --bg: #0e1220; --fg: #eef0f7; --mute: #a3a9bf; --line: rgba(238, 240, 247, .14);
  --glass: rgba(14, 18, 32, .74); --bubble: #232a42; --veil: rgba(14, 18, 32, .52);
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

/* ── reset ── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
}

/* ── base ── */
@layer base {
  /* スクロールバーの場所はいつも空けておく（長いページと短いページを行き来しても、中身が横にずれないように） */
  html { scroll-padding-top: calc(var(--head-h) + 16px); scrollbar-gutter: stable; }
  body {
    min-height: 100svh; overflow-x: clip;
    font: 400 16px/1.85 var(--f-body); letter-spacing: .02em; color: var(--fg); background: var(--bg);
    font-feature-settings: "palt" 1;
    transition: background-color .9s cubic-bezier(.2, .8, .2, 1), color .9s;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; border-radius: 4px; }
  h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
  h2 { font-size: clamp(24px, 6vw, 40px); font-weight: 900; letter-spacing: -.01em; }
  h3 { font-size: 18px; font-weight: 700; }
  .skip { position: fixed; left: var(--gutter-l); top: 8px; z-index: 100; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 999px; transform: translateY(-200%); }
  .skip:focus { transform: none; }
  .wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  /* ロゴの9色（svg の fill・背景） */
  .c-red { --accent: var(--c-red); } .c-teal { --accent: var(--c-teal); } .c-indigo { --accent: var(--c-indigo); }
  .c-yellow { --accent: var(--c-yellow); } .c-pink { --accent: var(--c-pink); } .c-green { --accent: var(--c-green); }
  .c-sky { --accent: var(--c-sky); } .c-orange { --accent: var(--c-orange); } .c-purple { --accent: var(--c-purple); }
  svg .c-red, svg .c-teal, svg .c-indigo, svg .c-yellow, svg .c-pink, svg .c-green, svg .c-sky, svg .c-orange, svg .c-purple { fill: var(--accent); }
}

/* ── components ── */
@layer components {
  /* すりガラスの板（中身はここに載せる。板と板のあいだから後ろの演出が見える） */
  .glass {
    display: grid; gap: 24px; padding: 24px 20px;
    background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-radius: 6px 28px 28px 28px; box-shadow: var(--shadow);
    transition: background-color .9s, box-shadow .9s;
  }
  .label { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--c-pink); line-height: 1; }
  .lead-text { font-size: 17px; line-height: 1.9; text-wrap: pretty; word-break: auto-phrase; }
  /* About（ホーム）：全体を文章にし、代表の名前は文の中に名刺と同じ形・色で置く（templates/name.php）。
     漢字（.nm-k）を10秒 → スパーク（色ずれして光り、線がバラけてチカチカ）→ ローマ字（.nm-r）を10秒 → スパーク、をくり返す（21秒で1周）。
     線のかたまりごとのズレ方は name.php の --dx・--dy。動きを減らす設定では漢字のまま動かさない */
  .about-text { display: grid; gap: 12px; & p { font-size: 16px; line-height: 2.1; text-wrap: pretty; word-break: auto-phrase; } }
  .nm-in { display: inline-block; height: 1.55em; width: auto; margin: 0 .2em; vertical-align: -.42em; color: var(--fg); overflow: visible; transition: color .9s;
    animation: nm-glow 21s steps(1) infinite; }
  .nm-k { animation: nm-k 21s steps(1) infinite; }
  .nm-r { opacity: 0; animation: nm-r 21s steps(1) infinite; }
  .nm-in path { animation: nm-burst 21s steps(1) infinite; }
  .nm-red { fill: #d5514e; } .nm-yellow { fill: #f8b62d; } .nm-green { fill: #75b466; } .nm-blue { fill: #33a2d4; }
  /* 0〜47.6%（10秒）漢字・〜50%（0.5秒）スパーク・〜97.6%（10秒）ローマ字・〜100% スパーク */
  @keyframes nm-k { 0% { opacity: 1; } 47.6% { opacity: .3; } 48.2% { opacity: 1; } 48.8% { opacity: 0; } 49.4% { opacity: .6; } 50%, 97.6% { opacity: 0; } 98.2% { opacity: .5; } 98.8% { opacity: 0; } 99.4% { opacity: 1; } }
  @keyframes nm-r { 0%, 47.6% { opacity: 0; } 48.2% { opacity: .4; } 48.8% { opacity: 0; } 49.4% { opacity: .7; } 50% { opacity: 1; } 97.6% { opacity: .3; } 98.2% { opacity: 1; } 98.8% { opacity: 0; } 99.4%, 100% { opacity: 0; } }
  @keyframes nm-burst {
    0%, 47.6% { translate: none; }
    47.9% { translate: calc(var(--dx) * 2) calc(var(--dy) * 2); } 48.5% { translate: calc(var(--dx) * -1.4) var(--dy); } 49.1% { translate: var(--dx) calc(var(--dy) * -1.6); } 49.7% { translate: calc(var(--dx) * -.5) calc(var(--dy) * .4); }
    50%, 97.6% { translate: none; }
    97.9% { translate: calc(var(--dx) * -2) var(--dy); } 98.5% { translate: calc(var(--dx) * 1.4) calc(var(--dy) * -2); } 99.1% { translate: calc(var(--dx) * -.8) calc(var(--dy) * 1.2); } 99.7% { translate: var(--dx) 0; }
    100% { translate: none; } }
  @keyframes nm-glow {
    0%, 47.6%, 50%, 97.6% { filter: none; }
    47.9%, 49.1%, 97.9%, 99.1% { filter: drop-shadow(.08em 0 0 var(--c-pink)) drop-shadow(-.08em 0 0 var(--c-sky)) brightness(1.3); }
    48.5%, 98.5% { filter: drop-shadow(0 0 .25em #fff) drop-shadow(0 0 .12em var(--c-yellow)) brightness(1.8); }
    49.7%, 99.7% { filter: drop-shadow(-.05em 0 0 var(--c-pink)) drop-shadow(.05em 0 0 var(--c-sky)); }
    100% { filter: none; } }
  @media (prefers-reduced-motion: reduce) { .nm-in, .nm-k, .nm-r, .nm-in path { animation: none; } }
  /* ルビ（ホームの「創（つく）る」など）：見出しの太さに合わせ、字の頭から少し離す */
  rt { font-size: .42em; font-weight: 700; letter-spacing: .12em; translate: 0 -.15em; }
  .sub-text { color: var(--mute); font-size: 14px; }
  .shape { width: 40px; height: 40px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px;
    border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.3; text-align: center;
    transition: background-color .9s, color .9s, border-color .9s, transform .4s var(--ease-spring);
    &:hover { transform: translateY(-2px); }
    &:active { transform: translateY(1px) scale(.98); }
    &.main { background: var(--grad) 0 0 / 170% 100%; color: #fff; box-shadow: 0 8px 22px rgba(86, 102, 173, .3); transition: background-position .6s var(--ease-out), box-shadow .4s, transform .4s var(--ease-spring); }
    &.main:hover { background-position: 100% 0; box-shadow: 0 10px 28px rgba(219, 64, 115, .32); }
    /* 枠だけのボタン：枠がロゴの色の流れ */
    &.sub { border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; color: var(--fg); }
  }
  .cta { display: grid; gap: 12px; }

  .list { display: grid; gap: 8px; padding: 0;
    & > li { position: relative; padding-left: 1.4em; }
    & > li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .62em; height: .62em; background: var(--accent, var(--c-teal)); clip-path: polygon(0 0, 100% 50%, 0 100%); }
  }

  .chips { display: flex; flex-wrap: wrap; gap: 8px;
    & a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); font-size: 14px; font-weight: 700; text-decoration: none; }
    & a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  }
  .tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bubble); font-size: 12px; font-weight: 700; text-decoration: none; }
  .back a { font-weight: 700; }
  .back a::before { content: ""; display: inline-block; width: .55em; height: .7em; margin-right: .5em; background: currentColor; clip-path: polygon(100% 0, 0 50%, 100% 100%); }

  /* 利用規約・プライバシーポリシーの本文（ページとダイアログで共通） */
  .doc-content, .doc-body {
    & h2 { font-size: 17px; font-weight: 700; margin-top: 1.4em; letter-spacing: .02em; }
    & h2:first-child { margin-top: 0; }
    & p, & ul { font-size: 15px; }
    & ul:not(.list) { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
    & a { overflow-wrap: anywhere; }
    & .sign { text-align: right; color: var(--mute); font-size: 13px; margin-top: 1.5em; }
  }
  .doc-content { gap: 10px; }

  /* ダイアログ */
  .doc {
    width: min(720px, calc(100% - 24px)); max-height: min(86svh, 780px); padding: 0; border: 0; color: var(--fg);
    background: var(--glass); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-radius: 6px 28px 28px 28px; box-shadow: 0 30px 80px rgba(14, 18, 32, .3); overflow: hidden;
    &::backdrop { background: rgba(14, 18, 32, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
    &[open] { animation: doc-in .7s cubic-bezier(.2, 1.25, .3, 1) both; }
    &.closing { animation: doc-out .3s cubic-bezier(.6, 0, .8, .4) both; }
  }
  @keyframes doc-in { from { clip-path: polygon(0 0, 0 0, 0 0); transform: perspective(1200px) rotateX(-12deg) translateY(24px); } to { clip-path: polygon(-10% -10%, 210% -10%, -10% 210%); transform: none; } }
  @keyframes doc-out { to { opacity: 0; transform: perspective(1200px) translateZ(-160px) rotateX(10deg); } }
  .doc-in { display: grid; grid-template-rows: auto 1fr auto; max-height: inherit; }
  .doc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 12px;
    & h2 { font-size: clamp(20px, 5vw, 28px); margin: 0; }
  }
  .doc-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--fg); display: grid; place-items: center; transition: transform .4s var(--ease-spring);
    &:hover { transform: rotate(90deg); }
    & span { width: 14px; height: 14px; background: var(--bg); clip-path: polygon(15% 0, 50% 35%, 85% 0, 100% 15%, 65% 50%, 100% 85%, 85% 100%, 50% 65%, 15% 100%, 0 85%, 35% 50%, 0 15%); }
  }
  .doc-body { overflow: auto; padding: 0 20px 12px; overscroll-behavior: contain; display: grid; gap: 10px; align-content: start; }
  .doc-url { padding: 12px 20px 16px; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
}

/* ── layout：ヘッダー・最初の画面・板の並び・フッター ── */
@layer layout {
  #fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; view-transition-name: fx; }
  .head, .view, .foot { position: relative; z-index: 1; }
  /* .hero には z-index を付けない（重なりの層を作ると、キャッチコピーの反転色が後ろの #fx と混ざらなくなる。#fx より後にあるので上に描かれる） */
  .hero { position: relative; }

  /* ヘッダー：上に固定（スクロールで隠さない）。読み始めると縮み、メニューがすりガラスに載る */
  .head { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
    & .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; transition: padding-block .5s var(--ease-spring); }
    &.is-scrolled .wrap { padding-block: 8px; }
  }
  /* 左上のロゴ：白の薄いすりガラス（暗い場面でもロゴの色はそのまま） */
  .mark { display: block; width: 116px; padding: 8px 12px 5px; border-radius: 4px 14px 14px 14px; color: var(--ink);
    background: var(--plate); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost); box-shadow: 0 2px 18px rgba(14, 18, 32, .08);
    transition: width .55s var(--ease-spring), padding .55s var(--ease-spring), box-shadow .5s;
    & svg { width: 100%; height: auto; fill: currentColor; }
  }
  .head.is-scrolled .mark { width: 100px; padding: 6px 10px 3px; box-shadow: 0 4px 24px rgba(14, 18, 32, .14); }

  /* スマホ：メニューのボタン。開くと右上の三角から広がる */
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--fg);
    background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: background-color .9s, color .9s; }
  .bars { width: 16px; height: 10px; border-block: 2px solid currentColor; transition: transform .4s var(--ease-spring); }
  .menu-btn[aria-expanded="true"] .bars { transform: rotate(90deg); }
  .nav { position: absolute; right: var(--gutter-r); top: calc(100% - 2px); display: grid; gap: 2px; min-width: 220px; padding: 10px; border-radius: 24px 6px 24px 24px;
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 10px 40px rgba(14, 18, 32, .2);
    clip-path: polygon(100% 0, 100% 0, 100% 0); visibility: hidden; transition: clip-path .5s cubic-bezier(.3, 1.2, .4, 1), visibility 0s .5s;
    &.open { clip-path: polygon(-20% -20%, 140% -20%, 140% 140%, -20% 140%); visibility: visible; transition: clip-path .5s cubic-bezier(.3, 1.2, .4, 1); }
    & a { padding: 14px 16px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; }
    & a[aria-current] { background: var(--fg); color: var(--bg); }
    & .tri { display: none; }
  }

  /* 最初の画面 */
  /* 横にはみ出すもの（キャッチコピーの回した切れ端・起き上がる途中の板）は、入れ物（.hero・.view）で切る。外側（html・body）で切っても
     スマホのブラウザは画面の幅を広げ、演出とヘッダーがその幅で描かれて見切れた（2026-10-16） */
  .hero, .view { overflow-x: clip; }
  .hero { display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--head-h); }
  /* トップの最初の画面：キャッチコピーの真ん中を画面の 50% に置き、下に「できること」が半分ほど見える（hero の下の端が 72%。中身は 28%〜72% の真ん中） */
  .is-home .hero { min-height: 72svh; padding-top: max(var(--head-h), 28svh); justify-content: center; }
  .is-page .hero { min-height: 300px; }
  .copy .wrap { padding-block: 24px 32px; }

  /* キャッチコピー：ロゴと同じ斜めの線で3つに切った破片が、別々の方向から飛び込んで組み上がる */
  .catch { display: grid; gap: .04em; font-size: clamp(56px, 19vw, 150px); font-weight: 900; line-height: 1; letter-spacing: -.04em; font-feature-settings: normal;
    & .line { display: grid; justify-content: start; }
    & .sl { grid-area: 1 / 1; white-space: nowrap; padding-right: .06em; color: var(--fg); transition: color .9s;
      animation: sl-in .9s cubic-bezier(.16, 1.25, .3, 1) calc(var(--d, 1.5s) + var(--o, 0s)) both; }
    & .s1 { clip-path: polygon(0 0, 44% 0, 30% 100%, 0 100%); --dx: -60%; --dy: 40%; --r: -10deg; }
    & .s2 { clip-path: polygon(44% 0, 74% 0, 60% 100%, 30% 100%); --dx: 10%; --dy: -90%; --r: 6deg; --o: .07s; }
    & .s3 { clip-path: polygon(74% 0, 100% 0, 100% 100%, 60% 100%); --dx: 70%; --dy: 30%; --r: 12deg; --o: .14s; }
    & .l2 .s1 { clip-path: polygon(0 0, 30% 0, 42% 100%, 0 100%); --dy: -50%; --o: .12s; }
    & .l2 .s2 { clip-path: polygon(30% 0, 64% 0, 76% 100%, 42% 100%); --dy: 90%; --o: .19s; }
    & .l2 .s3 { clip-path: polygon(64% 0, 100% 0, 100% 100%, 76% 100%); --dy: -40%; --o: .26s; }
    &.quick { --d: .15s; }
    &.shown .sl { animation: none; }
    &.shown.jolt .sl { animation: sl-jolt .7s cubic-bezier(.2, 1.4, .3, 1) both; }
  }
  /* 後ろの色の反転色で描く（白で difference。白地では黒、黄色の上は青、ピンクの上は緑）。
     暗い場面も反転で明るい字になるので、色の移り変わり（transition）は要らない（あると切り替えのたびに白から・白へ流れて字が光る）。
     移り変わりの途中は箱の動き（transform）が層を作って後ろと混ざらず白くなるので、ふだんの色に戻す */
  .catch { mix-blend-mode: difference; & .sl, & .cw-flash { color: #fff; transition: none; } }
  :is(.page-enter, .page-leave) .catch { mix-blend-mode: normal; & .sl, & .cw-flash { color: var(--fg); } }
  @keyframes sl-in { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
  /* 「創造」が「CREATE」に化ける（場面が変わるたび。site.js が .bug を 1.5 秒付ける。動きを減らす設定では付けない）：
     ふだんは「創造」の場所に収まる、まっすぐの CREATE（.cw::after）を読める長さで見せ、一瞬だけ大きく斜めの CREATE（.cw-flash）がかぶさる。
     始めと終わりはバグったように点滅し、色ずれと上下・左右のわずかなずれ・横の切れ目が走る。どちらも重ねて浮かせるので「する」は動かない
     （幅を変えて「する」をずらすと読みにくく、切れ端の斜めの線は幅の割合なので切れ目もずれる。大きい方のはみ出しは .hero が切る）。
     時間：0〜6% 小・6〜11% 創造・11〜16% 大きく斜め・16〜78% 小（読める）・78〜83% 大きく斜め・83〜88% 創造・88〜94% 小・94% から創造 */
  .catch .cw { position: relative; display: inline-block; }
  .catch .cw::after { content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center; font-size: .52em; letter-spacing: -.02em; white-space: nowrap;
    -webkit-text-fill-color: currentColor; text-shadow: .05em 0 var(--c-pink), -.05em 0 var(--c-sky); opacity: 0; pointer-events: none; }
  .catch .cw-flash { grid-area: 1 / 1; align-self: center; justify-self: start; position: relative; z-index: 1; font-size: .92em; letter-spacing: -.03em; line-height: 1; white-space: nowrap;
    color: var(--fg); text-shadow: .04em 0 var(--c-pink), -.04em 0 var(--c-sky); rotate: -14deg; transform-origin: 25% 50%; opacity: 0; pointer-events: none; transition: color .9s; }
  .catch.bug .cw { animation: cw-hide 1.4s steps(1) both; }
  .catch.bug .cw::after { animation: cw-show 1.4s steps(1) both, cw-noise 1.4s steps(1) both; }
  .catch.bug .cw-flash { animation: cw-big 1.4s steps(1) both, cw-big-noise 1.4s steps(1) both; }
  @keyframes cw-hide { 0%, 11%, 88% { -webkit-text-fill-color: transparent; } 6%, 83%, 94%, 100% { -webkit-text-fill-color: currentColor; } }
  @keyframes cw-show { 0%, 16%, 88% { opacity: 1; } 6%, 78%, 94%, 100% { opacity: 0; } }
  @keyframes cw-big { 0%, 16%, 83%, 100% { opacity: 0; } 11%, 78% { opacity: 1; } }
  @keyframes cw-noise {
    0% { translate: -.06em .03em; clip-path: inset(0 0 52% 0); }
    3% { translate: .08em -.04em; clip-path: inset(40% 0 0 0); }
    16% { translate: .05em .04em; clip-path: inset(10% 0 30% 0); }
    19% { translate: none; clip-path: inset(0); }
    40% { translate: 0 -.05em; clip-path: inset(0); }
    41% { translate: none; }
    52% { translate: -.04em .05em; clip-path: inset(48% 0 30% 0); }
    54% { translate: none; clip-path: inset(0); }
    66% { translate: 0 .04em; }
    67% { translate: none; }
    88% { translate: .1em -.03em; clip-path: inset(25% 0 35% 0); }
    91% { translate: -.05em .04em; clip-path: inset(0 0 60% 0); }
    100% { translate: none; clip-path: inset(0); } }
  @keyframes cw-big-noise {
    0% { translate: none; clip-path: inset(0); }
    11% { translate: -.03em -.04em; clip-path: inset(0 0 12% 0); }
    13% { translate: .04em .03em; clip-path: inset(18% 0 0 0); }
    16% { translate: none; clip-path: inset(0); }
    78% { translate: .03em .05em; clip-path: inset(8% 0 20% 0); }
    80% { translate: -.04em -.03em; clip-path: inset(0); }
    83% { translate: none; } }
  @keyframes sl-jolt { 0% { transform: none; } 22% { transform: translate(calc(var(--dx) * .07), calc(var(--dy) * .07)) rotate(calc(var(--r) * .2)); } 100% { transform: none; } }

  /* 下層の見出し */
  .title { display: grid; gap: 8px; max-width: 760px; padding: 20px; background: var(--veil); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost);
    border-radius: 4px 24px 24px 24px; box-shadow: var(--shadow); transition: background-color .9s;
    & h1 { font-size: clamp(32px, 9vw, 64px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
    & .lead { color: var(--mute); font-size: 15px; }
  }
  /* パンくず（見出しの板の上）：リンクは小さな丸い札（押すとロゴの色）、区切りはロゴの色の小さな三角、いまのページはすりガラスの札に太字。先頭のホームに家の形 */
  .crumb { margin-bottom: 14px; }
  .crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1; color: var(--mute);
    & li { display: inline-flex; align-items: center; }
    & li + li::before { content: ""; width: 6px; height: 8px; margin: 0 9px; background: var(--grad); clip-path: polygon(0 0, 100% 50%, 0 100%); }
    & a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--bubble); color: var(--fg); font-weight: 500; text-decoration: none;
      transition: background-color .9s, color .2s, transform .4s var(--ease-spring); }
    & a:hover { background: var(--grad); color: #fff; transform: translateY(-1px); }
    & a:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; }
    & li:first-child a::before { content: ""; width: 11px; height: 10px; background: currentColor; clip-path: polygon(50% 0, 100% 46%, 86% 46%, 86% 100%, 14% 100%, 14% 46%, 0 46%); }
    & [aria-current] { padding: 6px 12px; border-radius: 999px; background: var(--veil); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost); color: var(--fg); font-weight: 700; }
  }

  /* 板の並び */
  .view { padding-bottom: 8px; }
  .block { padding-block: 12px; }
  .is-home .view { padding-top: 24px; }

  .foot { padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--mute); font-size: 13px; }
  .foot-in { display: grid; gap: 12px; justify-items: center; padding: 18px 20px; border-radius: 24px; text-align: center;
    background: var(--veil); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost); transition: background-color .9s; }
  .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
    & a { display: inline-block; padding-block: 8px; }
  }

  /* スクロールで入ってくる板は、少し倒れた所から起き上がる */
  .rise { transform: perspective(1000px) rotateX(16deg) translateY(36px); opacity: .001; }
  .rise.up { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .6s; }
  /* アプリのカードは、包み（li）を薄くせず中身を薄くする（親が薄いあいだは、中のすりガラスのぼかしが効かず、終わった瞬間にパッと出るため） */
  .apps > li.rise { opacity: 1; & > * { opacity: .001; } }
  .apps > li.rise.up > * { opacity: 1; transition: opacity .6s; }
}

/* ── pages ── */
@layer pages {
  /* トップ：できること */
  .grid2 { display: grid; gap: 24px; }
  .item { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--fg); transition: border-color .9s;
    & p { font-size: 15px; color: var(--mute); }
    & .item-btn { justify-self: start; min-height: 44px; margin-top: 4px; padding: 10px 22px; font-size: 14px; }
  }

  /* アプリの一覧 */
  .apps { display: grid; gap: 16px; }
  .app { display: grid; grid-template-columns: 72px 1fr; grid-template-areas: "icon name" "text text"; gap: 12px 16px; align-items: center; padding: 20px;
    border-radius: 6px 28px 28px 28px; color: #fff; text-decoration: none; box-shadow: var(--shadow);
    /* 色は少し透かして、後ろの演出をぼかして見せる（ロゴ・見出しと同じぼかし） */
    background: color-mix(in srgb, var(--accent) 80%, transparent); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost);
    transition: transform .4s var(--ease-out), box-shadow .4s; transform-style: preserve-3d;
    & .app-icon { grid-area: icon; width: 72px; height: 72px; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
    & .app-name { grid-area: name; font-size: 22px; font-weight: 900; line-height: 1.2; }
    & .app-text { grid-area: text; font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .94); }
  }
  .app:not(:has(.app-icon)) { grid-template-columns: 1fr; grid-template-areas: "name" "text"; }
  .c-yellow.app, .c-green.app { color: #171a26; & .app-text { color: rgba(23, 26, 38, .86); } }
  /* ストアへのボタン：カードの隣に置き、カードの下の余白に重ねる（リンクの入れ子にしない） */
  .app-item { position: relative; display: grid;
    & .app { padding-bottom: 89px; }
    & .store-badge { position: absolute; left: 20px; bottom: 20px; } }

  /* アプリの説明 */
  .app-page { & h2 { font-size: 20px; } }
  /* Google Play へのボタン（Google の配るバッジの画像のまま。アプリの特徴の下） */
  .store-badge { justify-self: start; border-radius: 10px; transition: transform .4s var(--ease-spring), box-shadow .3s;
    & img { display: block; width: 180px; height: auto; }
    &:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 18, 32, .25); } }
  .app-hero { display: grid; gap: 16px; justify-items: start;
    & .app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(14, 18, 32, .2); }
    & .app-catch { font-size: 18px; font-weight: 700; line-height: 1.7; }

  }
  .app-links { display: grid; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line);
    & dt { font-weight: 700; font-size: 14px; }
    & dt span { margin-left: .8em; font-weight: 400; color: var(--mute); font-size: 12px; }
    & dd { font-size: 15px; overflow-wrap: anywhere; }
  }

  /* お知らせ */
  .news { display: grid;
    & li { border-bottom: 1px solid var(--line); }
    & a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "date tag" "title title"; gap: 4px 12px; align-items: center; padding-block: 16px; text-decoration: none; }
    & time { grid-area: date; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
    & .tag { grid-area: tag; justify-self: start; }
    & .news-title { grid-area: title; font-weight: 700; }
    & a:hover .news-title { text-decoration: underline; text-underline-offset: .25em; }
    & .news-title:has(.news-thumb) { display: flex; align-items: center; gap: 14px; }
    & .news-thumb { flex: none; width: 120px; & img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; } }
  }
  .pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
  .post-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--mute); font-size: 13px; }
  .post-eyecatch img { border-radius: 16px; }
  .post-body { display: grid; gap: 1em;
    & h2 { font-size: 22px; margin-top: .6em; } & h3 { margin-top: .4em; }
    & ul, & ol { padding-left: 1.4em; } & img { border-radius: 12px; }
    & table { border-collapse: collapse; width: 100%; font-size: 15px; } & th, & td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
  }

  /* お問い合わせ・サポート */
  .note-box { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--bubble); transition: background-color .9s;
    & :is(h2, h3) { font-size: 17px; } & p { font-size: 14px; }
  }
  /* サポートの下のお問い合わせフォーム：はじめは閉じたボタン（<details>）。開くと、すりガラスの板が下りてくる */
  .fold {
    & > summary { display: flex; width: 100%; list-style: none; cursor: pointer; }
    & > summary::-webkit-details-marker { display: none; }
    & .fold-close { display: none; }
    &[open] .fold-open { display: none; }
    &[open] .fold-close { display: inline; }
    & .fold-mark { width: 9px; height: 9px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-3px) rotate(45deg); transition: transform .45s var(--ease-spring); }
    &[open] .fold-mark { transform: translateY(2px) rotate(-135deg); }
    & > .fold-body { margin-top: 16px; }
    &[open] > .fold-body { animation: fold-in .7s var(--ease-out) both; }
  }
  .fold-title { font-size: clamp(24px, 6vw, 32px); font-weight: 900; letter-spacing: -.01em; }
  @keyframes fold-in { from { opacity: 0; transform: perspective(1200px) translateY(-24px) rotateX(-8deg); } }
  .chat-slot:empty { min-height: 320px; border-radius: 20px; border: 2px dashed var(--line); }

  /* 見つからない・メンテナンス */
  .page-notfound .title h1 { font-size: clamp(28px, 7vw, 48px); }
}

/* ── 広い画面 ── */
@media (min-width: 720px) {
  @layer components {
    .glass { padding: 40px; gap: 28px; border-radius: 6px 36px 36px 36px; }
    .cta { display: flex; flex-wrap: wrap; }
    .doc-head { padding: 24px 28px 14px; } .doc-body { padding: 0 28px 12px; } .doc-url { padding: 12px 28px 18px; }
  }
  @layer layout {
    .head .wrap { padding-block: 16px; }
    .mark { width: 148px; padding: 10px 14px 6px; border-radius: 4px 16px 16px 16px; }
    .head.is-scrolled .mark { width: 116px; padding: 7px 11px 4px; }
    .menu-btn { display: none; }
    .nav { position: relative; inset: auto; display: flex; align-items: center; gap: 2px; min-width: 0; padding: 4px 8px; border-radius: 999px;
      background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; clip-path: none; visibility: visible;
      transition: background-color .5s, box-shadow .5s;
      & a { padding: 10px 12px; font-size: 14px; border-radius: 999px; }
      & a[aria-current] { background: transparent; color: inherit; }
      & a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
      /* 今いるページの下の三角 */
      & .tri { display: block; position: absolute; bottom: 0; left: 0; width: 12px; height: 8px; background: var(--fg); clip-path: polygon(50% 0, 100% 100%, 0 100%);
        transform: translateX(var(--tx, 0px)); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.6, .4, 1), opacity .3s, background-color .9s; }
      &.has-current .tri { opacity: 1; }
    }
    .head.is-scrolled .nav { background: var(--glass); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: var(--shadow); }
    .is-page .hero { min-height: 380px; }
    .copy .wrap { padding-block: 32px 48px; }
    .title { padding: 28px 32px; }
    .block { padding-block: 20px; }
    .foot-in { display: flex; justify-content: space-between; align-items: center; border-radius: 999px; padding: 16px 28px; }
  }
  @layer pages {
    .grid2 { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
    .apps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .app { grid-template-columns: 1fr; grid-template-areas: "icon" "name" "text"; align-content: start; padding: 28px; }
    .app .app-icon { width: 96px; height: 96px; border-radius: 24px; }
    .app-item { & .app { padding-bottom: 97px; } & .store-badge { left: 28px; bottom: 28px; } }
    .app-hero { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
    .app-hero .app-icon { width: 120px; height: 120px; border-radius: 30px; }
    .news a { grid-template-columns: 7em auto 1fr; grid-template-areas: "date tag title"; padding-block: 18px; }
  }
}

/* ── ページを読み込み直したとき（ブラウザの View Transitions）。サイトの中の移り変わりは site.js が中身を差し替えて動かす（.page-leave・.page-enter）
   名前（view-transition-name）は中身のない #fx だけに付ける。名前の付いた要素の中では、すりガラス（backdrop-filter）が後ろの演出を透かせなくなるため ── */
@view-transition { navigation: auto; }
/* 演出は動いているものをそのまま見せる（中身を差し替えるときは同じキャンバスが動き続けるので、前の写真は要らない。
   ページを読み込み直したときは、site.js が最初のコマを描いてからページを出す：layout.php の blocking="render"） */
::view-transition-group(fx), ::view-transition-new(fx) { animation: none; }
::view-transition-old(fx) { display: none; }

/* ── 動きを減らす設定 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .catch .sl, .doc[open], .doc.closing { animation: none !important; }
  .rise { transform: none; opacity: 1; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── 層の外：フォーム（本体の knk-form.css が層の外にあるため、同じく層の外で #form-wrap から詳しくして合わせる） ── */
.form-wrap { min-width: 0; }

/* お問い合わせのフォームの枠に出す個人情報の取り扱い（/support/policy.html） */
.policy-embed { min-height: 0; padding: 14px 16px; background: #fff; color: #171a26; font-size: 14px; }
.policy-embed .doc-content { display: grid; gap: 8px; }

/* お問い合わせのフォーム（層の外。本体の knk-form.css より詳しくして上書きする。中身は forms/contact.html） */
.form-wrap .knk-form { display: grid; gap: 22px; }
.form-wrap .knk-step-input { display: grid; gap: 22px; }
.form-wrap .knk-step[hidden] { display: none; }
.form-wrap .f-row { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-wrap .f-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0; font-weight: 700; font-size: 15px; }
.form-wrap .f-req { padding: 1px 8px; border-radius: 999px; background: var(--c-pink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.form-wrap .f-memo { color: var(--mute); font-size: 13px; font-weight: 400; }
.form-wrap .knk-form input[type="text"], .form-wrap .knk-form input[type="email"], .form-wrap .knk-form input[type="tel"], .form-wrap .knk-form textarea, .form-wrap .knk-form select {
  min-height: 50px; padding: 12px 14px; border: 1px solid rgba(23, 26, 38, .2); border-radius: 14px; background: #fff; color: #171a26; }
.form-wrap .knk-form textarea { min-height: 180px; }
.form-wrap .knk-form :is(input, textarea, select):focus-visible { outline: 3px solid var(--c-sky); outline-offset: 1px; }
.form-wrap .knk-choices { gap: 10px; }
/* ご用件などの選択肢：添付のチェックと同じ形。選ぶと、枠とチェックがロゴの色になる */
.form-wrap .knk-choice { min-height: 44px; padding: 8px 16px 8px 10px; border: 2px solid transparent; border-radius: 999px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(var(--line), var(--line)) border-box; font-weight: 500; transition: transform .4s var(--ease-spring), box-shadow .3s; }
.form-wrap .knk-choice:hover { transform: translateY(-1px); }
.form-wrap .knk-choice:has(input:checked) { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; font-weight: 700; box-shadow: 0 4px 14px rgba(86, 102, 173, .16); }
.form-wrap .knk-policy iframe { height: 200px; border-radius: 14px; border-color: var(--line); }
/* 添付：1行目［＋ 画像を選ぶ］（下にサムネイル）、2行目［✓ チャットの会話］［チャットの会話をプレビュー］（下に会話）（forms/contact.html の .f-attach-bar。
   .knk-images・.knk-chatlog の箱は消して〔display: contents〕、中身をこの格子に並べる。会話はチャットから来たときだけ出る） */
.form-wrap .f-attach-bar { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-items: center; gap: 10px; }
.form-wrap .f-attach-bar :is(.knk-images-drop, .knk-images-list, .knk-chatlog-items) { grid-column: 1 / -1; justify-self: start; }
.form-wrap .f-attach-bar .knk-chatlog-items { justify-self: stretch; }
.form-wrap .f-attach-bar :is(.knk-images, .knk-chatlog) { display: contents; }
.form-wrap .f-attach-bar .knk-chatlog[hidden] { display: none; }
.form-wrap .f-attach-bar :is(.knk-images-note, .knk-chatlog-note) { display: none; } /* 説明は欄の見出しに（会話のほうは読み上げの説明として残る） */
.form-wrap :is(.knk-images-drop, .knk-chatlog-check) {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px 8px 10px; border-radius: 999px;
  border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; color: var(--fg); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .4s var(--ease-spring), box-shadow .3s; }
.form-wrap :is(.knk-images-drop, .knk-chatlog-check):hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(86, 102, 173, .2); }
.form-wrap .knk-images.is-over .knk-images-drop { box-shadow: 0 0 0 4px rgba(55, 171, 226, .35); }
.form-wrap .knk-images-drop::before { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 20px; font-weight: 700; line-height: 1; }
.form-wrap .knk-images-pick { padding: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
.form-wrap .knk-images-list { gap: 10px; margin: 0; }
.form-wrap .knk-images-list li { width: 96px; }
.form-wrap :is(.knk-images-list img, .knk-images-list .knk-images-busy) { width: 96px; height: 96px; border-radius: 14px; }
.form-wrap .knk-confirm-images img { border-radius: 14px; }
.form-wrap .knk-images-remove { border-color: var(--line); background: var(--bg); color: var(--fg); }
/* チェック（添付の会話・ご用件などの選択肢・同意で共通）：角の丸い四角。入っていればロゴの色に白いチェック。丸（ラジオ）は白い点 */
.form-wrap :is(.knk-chatlog-check, .knk-choice, .knk-acceptance) input { appearance: none; display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin: 0 0 0 4px; border: 2px solid rgba(23, 26, 38, .3); border-radius: 7px; background: var(--bg); cursor: pointer; transition: background-color .2s, border-color .2s; }
.form-wrap .knk-choice input[type="radio"] { border-radius: 50%; }
.form-wrap :is(.knk-chatlog-check, .knk-choice, .knk-acceptance) input:checked { border-color: transparent; background: var(--grad) border-box; }
.form-wrap :is(.knk-chatlog-check, .knk-choice, .knk-acceptance) input[type="checkbox"]:checked::after { content: ""; width: 14px; height: 11px; background: #fff; clip-path: polygon(0 55%, 14% 41%, 38% 64%, 86% 0, 100% 14%, 38% 92%); animation: check-in .3s var(--ease-spring) both; }
.form-wrap .knk-choice input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: check-in .3s var(--ease-spring) both; }
@keyframes check-in { from { transform: scale(.3); opacity: 0; } }
.form-wrap :is(.knk-chatlog-check, .knk-choice, .knk-acceptance) input:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; }
/* 同意：ポリシーを最後まで読むまで押せない（本体の JS が disabled にする）。押せない間は薄く */
.form-wrap .knk-acceptance { justify-self: center; gap: 10px; margin-top: 4px; font-weight: 700; }
.form-wrap .knk-acceptance input { margin: 0; }
.form-wrap .knk-acceptance input:disabled { border-color: rgba(23, 26, 38, .15); background: rgba(23, 26, 38, .05); cursor: not-allowed; }
.form-wrap .knk-acceptance:has(input:disabled) { cursor: not-allowed; }
.form-wrap .knk-chatlog-count { color: var(--mute); font-weight: 400; }
.form-wrap .knk-chatlog.is-off .knk-chatlog-check { background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(var(--line), var(--line)) border-box; color: var(--mute); }
.form-wrap .knk-chatlog-toggle { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--bubble); color: var(--fg); font-size: 13px; font-weight: 700; }
.form-wrap .knk-chatlog-toggle::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .3s var(--ease-spring); }
.form-wrap .knk-chatlog-toggle[aria-expanded="true"]::before { margin-bottom: -2px; transform: rotate(-135deg); }
/* プレビュー：サポートのチャットと同じ見た目（濃い見出しの帯・ボットは左、お客さまは右の吹き出し） */
.form-wrap .knk-chatlog-items { gap: 10px; max-height: 340px; padding: 0 14px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); animation: preview-in .5s var(--ease-out) both; }
.form-wrap .knk-chatlog-items::before { content: "サポートチャットの会話"; position: sticky; top: 0; z-index: 1; margin: 0 -14px 4px; padding: 11px 18px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 900; }
.form-wrap .knk-chatlog-items li { position: relative; justify-self: start; max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--bubble); color: var(--fg); font-size: 14px; animation: chat-in .4s cubic-bezier(.2, 1.3, .3, 1) both; transform-origin: 0 100%; }
.form-wrap .knk-chatlog-items li.is-user { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--fg); color: var(--bg); transform-origin: 100% 100%; }
.form-wrap .knk-chatlog-items li:nth-child(2) { animation-delay: .04s; } .form-wrap .knk-chatlog-items li:nth-child(3) { animation-delay: .08s; }
.form-wrap .knk-chatlog-items li:nth-child(4) { animation-delay: .12s; } .form-wrap .knk-chatlog-items li:nth-child(n+5) { animation-delay: .16s; }
.form-wrap .knk-chatlog.is-off .knk-chatlog-items { opacity: .5; }
@keyframes preview-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .form-wrap :is(.knk-chatlog-items, .knk-chatlog-items li, .knk-chatlog-check input:checked::after, .knk-choice input:checked::after, .knk-acceptance input:checked::after) { animation: none; } }
.form-wrap .f-actions, .form-wrap .knk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.form-wrap .knk-button { min-height: 52px; min-width: 160px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; color: var(--fg); font-weight: 700;
  transition: background-position .6s var(--ease-out), box-shadow .4s, transform .4s var(--ease-spring); }
.form-wrap .knk-button:not(:disabled):hover { transform: translateY(-2px); }
.form-wrap .knk-button-primary { border: 0; background: var(--grad) 0 0 / 170% 100%; color: #fff; box-shadow: 0 8px 22px rgba(86, 102, 173, .3); }
.form-wrap .knk-button-primary:not(:disabled):hover { background-position: 100% 0; box-shadow: 0 10px 28px rgba(219, 64, 115, .32); }
.form-wrap .knk-button-primary:disabled { box-shadow: none; }
.form-wrap .knk-confirm dt { margin-top: 16px; }
.form-wrap .knk-confirm dd { border-color: var(--line); }
.form-wrap .knk-done { font-weight: 700; line-height: 1.9; }

/* サポートのチャット（層の外。本体の knk-chat.css より詳しくして、テーマの色に合わせる） */
/* キャラはチャットの欄の左下（ボットの吹き出しの側）に小さく。site.js が欄を .chat-logwrap で包んでキャラを中に入れる。JS がなければ欄の上に出る */
.chat-stage { display: grid; gap: 8px; min-width: 0; }
.chat-stage .chat-slot { width: 100%; min-width: 0; }
.chat-logwrap { position: relative; }
.chat-logwrap .knk-chat-log { padding-left: 84px; padding-bottom: 44px; }
/* 会話は欄の下に寄せる（いちばん新しい吹き出しが、左下のキャラの頭の横に来る）。上に溜まった会話はスクロールで読める */
.chat-logwrap .knk-chat-log > :first-child { margin-top: auto; }
.chat-logwrap .bot-host { position: absolute; left: 6px; bottom: 6px; width: 72px; margin: 0; pointer-events: auto; cursor: pointer; }
.chat-stage .knk-chat { --knk-chat-bot: var(--bubble); --knk-chat-user: var(--fg); --knk-chat-user-fg: var(--bg); --knk-chat-line: var(--line); --knk-chat-accent: var(--fg); max-width: none; font-size: 15px; }
.chat-stage .knk-chat-log { min-height: 300px; max-height: min(62vh, 560px); border-radius: 22px; border-color: var(--line); background: var(--glass); transition: background-color .9s; }
.chat-stage .knk-chat-bubble { border-radius: 18px; }
.chat-stage .knk-chat-msg { max-width: 100%; }
.chat-stage .knk-chat-msg-user { max-width: 88%; }
/* ボットの吹き出しは、左のキャラへ向かうしっぽを付けて伸ばす */
.chat-stage .knk-chat-msg-bot .knk-chat-bubble { position: relative; color: var(--fg); border-bottom-left-radius: 4px; }
.chat-logwrap .knk-chat-msg-bot .knk-chat-bubble::before { content: ""; position: absolute; left: -10px; bottom: 0; width: 14px; height: 16px; background: var(--bubble); clip-path: polygon(100% 0, 100% 100%, 0 100%); transition: background-color .9s; }
.chat-stage .knk-chat-msg-bot { animation: chat-in .45s cubic-bezier(.2, 1.3, .3, 1) both; transform-origin: 0 100%; }
.chat-stage .knk-chat-msg-user { animation: chat-in .35s cubic-bezier(.2, 1.3, .3, 1) both; transform-origin: 100% 100%; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.chat-stage .knk-chat-option { padding: 10px 16px; border: 2px solid var(--fg); background: transparent; color: var(--fg); font-weight: 700; transition: background-color .2s, color .2s, transform .3s var(--ease-spring); }
.chat-stage .knk-chat-option:hover, .chat-stage .knk-chat-option:focus-visible { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.chat-stage .knk-chat-option-form { border-style: solid; border-color: var(--c-pink); color: var(--c-pink); }
.chat-stage .knk-chat-option-form:hover, .chat-stage .knk-chat-option-form:focus-visible { background: var(--c-pink); color: #fff; }
.chat-stage .knk-chat-links a, .chat-stage .knk-chat-results a { border-color: var(--fg); color: var(--fg); background: transparent; }
.chat-stage .knk-chat-thinking i { background: var(--mute); }
.chat-stage .knk-chat-note { color: var(--mute); }

/* サポートのキャラ（templates/bot.php）。表情は data-face。動きは CSS だけ（site.js は表情を付け替えるだけ） */
.bot-host { position: relative; z-index: 1; width: 96px; justify-self: start; }
.bot { display: block; width: 100%; height: auto; overflow: visible; }
.bot * { transform-box: view-box; }
.bot-shadow { fill: rgba(14, 18, 32, .14); transform-origin: 100px 230px; animation: bot-shadow 2.4s ease-in-out infinite; }
.bot-all { animation: bot-bob 2.4s ease-in-out infinite; }
.bot-head { transform-origin: 100px 118px; animation: bot-tilt 4.8s ease-in-out infinite; }
.bot-ant { fill: #db4073; animation: bot-ant 3s linear infinite; }
.bot-arm-l { transform-origin: 66px 140px; transform: rotate(-58deg); transition: transform .4s cubic-bezier(.3, 1.5, .4, 1); }
.bot-arm-r { transform-origin: 134px 140px; transform: rotate(58deg); transition: transform .4s cubic-bezier(.3, 1.5, .4, 1); }
.bot-eyes { transform-origin: 100px 73px; transition: transform .3s; }
.eyes-open { fill: #8ee9ff; transform-origin: 100px 73px; animation: bot-blink 4.2s infinite; }
.eyes path { fill: none; stroke: #8ee9ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.eyes-sorry .tear { fill: #8ee9ff; stroke: none; }
.mouth { fill: none; stroke: #8ee9ff; stroke-width: 4; stroke-linecap: round; }
.mouth-open { fill: #db4073; stroke: none; }
.mouth-talk { fill: #8ee9ff; stroke: none; }
.bot-cheeks { fill: #db4073; opacity: 0; transition: opacity .3s; }
.bot-chest { animation: bot-chest 2s ease-in-out infinite; }
.fx-heart { fill: #db4073; }
.fx-dots circle { fill: #c4c8d6; }
.fx-sweat { fill: #37abe2; }
.fx-spark path { fill: #f4c331; }
.fx-ring path { fill: none; stroke: #db4073; stroke-width: 3.5; stroke-linecap: round; }
.eyes, .mouth, .fx, .fx-phone { transition: opacity .2s; }
/* 出すもの・隠すもの（いつもの顔＝目を開けてにっこり） */
.eyes-happy, .eyes-sorry, .eyes-laugh, .mouth-flat, .mouth-sad, .mouth-open, .mouth-talk, .fx, .fx-phone { opacity: 0; }
.bot-host[data-face="happy"] .eyes-happy, .bot-host[data-face="happy"] .fx-heart, .bot-host[data-face="happy"] .bot-cheeks,
.bot-host[data-face="sorry"] .eyes-sorry, .bot-host[data-face="sorry"] .mouth-sad, .bot-host[data-face="sorry"] .fx-sweat,
.bot-host[data-face="joke"] .eyes-laugh, .bot-host[data-face="joke"] .mouth-open, .bot-host[data-face="joke"] .fx-spark, .bot-host[data-face="joke"] .bot-cheeks,
.bot-host[data-face="thinking"] .mouth-flat, .bot-host[data-face="thinking"] .fx-dots,
.bot-host[data-face="tel"] .fx-phone, .bot-host[data-face="tel"] .mouth-talk { opacity: 1; }
.bot-host[data-face="happy"] .eyes-open, .bot-host[data-face="sorry"] .eyes-open, .bot-host[data-face="joke"] .eyes-open,
.bot-host[data-face="sorry"] .mouth-smile, .bot-host[data-face="joke"] .mouth-smile, .bot-host[data-face="thinking"] .mouth-smile, .bot-host[data-face="tel"] .mouth-smile { opacity: 0; }
/* いつもの顔：右手を振る（3回） */
.bot-host[data-face="default"] .bot-arm-r { animation: bot-wave 1.6s ease-in-out 3; }
/* 考える：左手をあごに、目は右上、点が湧く */
.bot-host[data-face="thinking"] .bot-arm-l { transform: rotate(62deg) translate(6px, -4px); }
.bot-host[data-face="thinking"] .bot-eyes { transform: translate(6px, -5px); }
.bot-host[data-face="thinking"] .bot-head { animation: bot-ponder 1.6s ease-in-out infinite; }
.bot-host[data-face="thinking"] .fx-dots circle { animation: bot-dots 1.2s ease-in-out infinite; }
.bot-host[data-face="thinking"] .fx-dots circle:nth-child(2) { animation-delay: .15s; }
.bot-host[data-face="thinking"] .fx-dots circle:nth-child(3) { animation-delay: .3s; }
/* うれしい：ぴょんぴょん跳ねて、ハートが浮かぶ */
.bot-host[data-face="happy"] .bot-all { animation: bot-hop .7s cubic-bezier(.3, 1.6, .4, 1) infinite alternate; }
.bot-host[data-face="happy"] .bot-arm-l { transform: rotate(40deg); }
.bot-host[data-face="happy"] .bot-arm-r { transform: rotate(-40deg); }
.bot-host[data-face="happy"] .fx-heart { transform-origin: 160px 50px; animation: bot-heart 1.4s ease-out infinite; }
/* ごめんなさい：おじぎして、手を合わせ、汗 */
.bot-host[data-face="sorry"] .bot-head { animation: none; transform: rotate(-4deg) translateY(8px); transition: transform .5s cubic-bezier(.3, 1.4, .4, 1); }
.bot-host[data-face="sorry"] .bot-arm-l { transform: rotate(-28deg) translate(10px, 0); }
.bot-host[data-face="sorry"] .bot-arm-r { transform: rotate(28deg) translate(-10px, 0); }
.bot-host[data-face="sorry"] .fx-sweat, .bot-host[data-face="sorry"] .tear { animation: bot-sweat 1.6s ease-in infinite; }
/* 笑う：体をゆらして、きらきら */
.bot-host[data-face="joke"] .bot-all { animation: bot-laugh .18s ease-in-out infinite alternate; }
.bot-host[data-face="joke"] .bot-arm-l { transform: rotate(-35deg); }
.bot-host[data-face="joke"] .bot-arm-r { transform: rotate(35deg); }
.bot-host[data-face="joke"] .fx-spark path { transform-box: fill-box; transform-origin: center; animation: bot-spark .8s ease-in-out infinite alternate; }
/* 電話：右手で電話を耳に、しゃべる */
.bot-host[data-face="tel"] .bot-arm-r { transform: rotate(-100deg); }
.bot-host[data-face="tel"] .fx-ring { opacity: 1; animation: bot-ring .6s ease-in-out infinite alternate; }
.bot-host[data-face="tel"] .mouth-talk { transform-origin: 100px 91px; animation: bot-talk .32s ease-in-out infinite alternate; }
.bot-host[data-face="tel"] .bot-chest { fill: #db4073; }
/* 表情が変わった瞬間に、ぎゅっと縮んで戻る（site.js が .is-pop を付ける） */
.bot-host.is-pop .bot { animation: bot-pop .5s cubic-bezier(.2, 1.6, .3, 1); }

@keyframes bot-bob { 50% { transform: translateY(-6px); } }
@keyframes bot-shadow { 50% { transform: scaleX(.86); opacity: .7; } }
@keyframes bot-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
@keyframes bot-ponder { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(9deg) translateY(-2px); } }
@keyframes bot-ant { 0% { fill: #db4073; } 25% { fill: #f4c331; } 50% { fill: #96c364; } 75% { fill: #37abe2; } 100% { fill: #db4073; } }
@keyframes bot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes bot-chest { 50% { opacity: .45; } }
@keyframes bot-wave { 0%, 100% { transform: rotate(58deg); } 20% { transform: rotate(-120deg); } 40% { transform: rotate(-90deg); } 60% { transform: rotate(-125deg); } 80% { transform: rotate(-95deg); } }
@keyframes bot-dots { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes bot-hop { from { transform: translateY(0) scaleY(.96); } to { transform: translateY(-14px) scaleY(1.03); } }
@keyframes bot-heart { from { transform: translateY(6px) scale(.4); opacity: 0; } 30% { opacity: 1; transform: translateY(0) scale(1.1); } to { transform: translateY(-26px) scale(.9); opacity: 0; } }
@keyframes bot-sweat { from { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(12px); opacity: 0; } }
@keyframes bot-laugh { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-4px); } }
@keyframes bot-spark { from { transform: scale(.5) rotate(0); opacity: .4; } to { transform: scale(1.2) rotate(45deg); opacity: 1; } }
@keyframes bot-ring { from { opacity: .3; } to { opacity: 1; } }
@keyframes bot-talk { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
@keyframes bot-pop { 0% { transform: scale(1); } 30% { transform: scale(1.12, .9); } 60% { transform: scale(.95, 1.06); } 100% { transform: scale(1); } }
@media (min-width: 720px) {
  .chat-logwrap .knk-chat-log { padding-left: 112px; padding-bottom: 52px; }
  .chat-logwrap .bot-host { left: 10px; bottom: 8px; width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .bot *, .bot-host.is-pop .bot, .chat-stage .knk-chat-msg { animation: none !important; }
}

/* サポートのチャット：メッセージアプリのような1枚のカード（見出し → 会話 → 入力の箱） */
.chat-stage .knk-chat { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--glass); box-shadow: var(--shadow); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 18px; background: var(--fg); color: var(--bg); transition: background-color .9s, color .9s; }
.chat-head-dot { width: 10px; height: 10px; border-radius: 50%; background: #96c364; animation: chat-live 2s ease-in-out infinite; }
.chat-head-title { font-weight: 900; font-size: 15px; }
.chat-head-sub { font-size: 12px; opacity: .75; }
@keyframes chat-live { 50% { box-shadow: 0 0 0 5px rgba(150, 195, 100, .25); } }
.chat-stage .knk-chat-log { min-height: 320px; border: 0; border-radius: 0; background: transparent; }
/* 入力の箱：文字を打つところ・候補のボタン・送信ボタンを1つの大きな箱に入れる（site.js が候補の段を form の中へ移す）
   上に文字を打つところ、その下に候補（押すと文字が入る）、右下に送信。箱を押せばどこでも入力できる */
.chat-stage .knk-chat-form { display: block; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input input" "opts send"; align-items: end; gap: 6px 10px;
  padding: 8px 8px 8px 14px; border: 2px solid rgba(23, 26, 38, .25); border-radius: 22px; background: #fff; color: #171a26; cursor: text;
  transition: border-color .2s, box-shadow .2s; }
.chat-box:focus-within { border-color: var(--c-sky); box-shadow: 0 0 0 4px rgba(55, 171, 226, .22); }
.chat-stage .chat-box .knk-chat-input { grid-area: input; width: 100%; min-height: 48px; padding: 8px 4px 4px; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 16px; }
.chat-stage .chat-box .knk-chat-input:focus { outline: 0; box-shadow: none; }
.chat-stage .chat-box .knk-chat-input::placeholder { color: #8a8fa0; }
.chat-stage .chat-box .knk-chat-options { grid-area: opts; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding: 0 0 2px; border: 0; background: none; cursor: default; }
.chat-stage .chat-box .knk-chat-options.is-new .knk-chat-option { animation: chip-in .45s cubic-bezier(.2, 1.4, .3, 1) both; }
.chat-stage .chat-box .knk-chat-options.is-new .knk-chat-option:nth-child(2) { animation-delay: .04s; }
.chat-stage .chat-box .knk-chat-options.is-new .knk-chat-option:nth-child(3) { animation-delay: .08s; }
.chat-stage .chat-box .knk-chat-options.is-new .knk-chat-option:nth-child(n+4) { animation-delay: .12s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.chat-stage .chat-box .knk-chat-option { padding: 6px 12px; border: 1px solid rgba(23, 26, 38, .22); border-radius: 999px; background: #f2f4f8; color: #171a26; font-size: 13px; font-weight: 700; }
.chat-stage .chat-box .knk-chat-option:hover, .chat-stage .chat-box .knk-chat-option:focus-visible { border-color: #171a26; background: #171a26; color: #fff; transform: none; }
.chat-stage .chat-box .knk-chat-option-form { border-color: var(--c-pink); background: #fff; color: var(--c-pink); }
.chat-stage .chat-box .knk-chat-option-form:hover, .chat-stage .chat-box .knk-chat-option-form:focus-visible { background: var(--c-pink); border-color: var(--c-pink); color: #fff; }
.chat-stage .chat-box .knk-chat-send { grid-area: send; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(23, 26, 38, .1); color: #8a8fa0; font-weight: 700; transition: background-color .25s, color .25s, box-shadow .25s; }
/* 入力があるときは、送信ボタンに色を付けて目立たせる（チャットの JS が .knk-chat-has-text を付ける） */
.chat-stage .knk-chat.knk-chat-has-text .chat-box .knk-chat-send { background: var(--c-pink); color: #fff; box-shadow: 0 6px 18px rgba(219, 64, 115, .38); animation: send-ready .5s cubic-bezier(.2, 1.6, .3, 1); }
@keyframes send-ready { 40% { transform: scale(1.1); } }
.chat-stage .chat-box .knk-chat-send svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 719px) {
  .chat-stage .chat-box .knk-chat-send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chat-stage .chat-box .knk-chat-send { width: 44px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-stage .chat-box .knk-chat-option { animation: none !important; } }
.chat-stage .knk-chat-note { padding: 0 16px 12px; font-size: 12px; }

/* キャラを押したとき（site.js が data-act を 1.7秒付ける）。表情は会話のまま、動きだけを重ねる */
.eyes-wink ellipse { fill: #8ee9ff; }
.fx-exclaim { fill: #db4073; }
.fx-hearts path { fill: #db4073; }
.eyes-wink { opacity: 0; }
.bot-host[data-act] { cursor: pointer; }
.bot-host[data-act="spin"] .bot { animation: act-spin 1s cubic-bezier(.4, 1.3, .5, 1); }
.bot-host[data-act="jump"] .bot-all { animation: act-jump .9s cubic-bezier(.3, 1.4, .5, 1); }
.bot-host[data-act="wink"] .eyes { opacity: 0; }
.bot-host[data-act="wink"] .eyes-wink { opacity: 1; }
.bot-host[data-act="wink"] .bot-head { animation: act-tilt 1.4s ease-in-out; }
.bot-host[data-act="wink"] .bot-cheeks { opacity: 1; }
.bot-host[data-act="surprise"] .fx-exclaim { opacity: 1; transform-origin: 170px 40px; animation: act-pop .5s cubic-bezier(.2, 1.8, .3, 1); }
.bot-host[data-act="surprise"] .eyes-open { opacity: 1; animation: act-eyes 1.2s ease-out; }
.bot-host[data-act="surprise"] .bot-all { animation: act-jolt .4s ease-out; }
.bot-host[data-act="dance"] .bot-all { animation: act-sway .42s ease-in-out 4 alternate; }
.bot-host[data-act="dance"] .bot-arm-l { animation: act-arm-l .42s ease-in-out 4 alternate; }
.bot-host[data-act="dance"] .bot-arm-r { animation: act-arm-r .42s ease-in-out 4 alternate; }
.bot-host[data-act="love"] .fx-hearts { opacity: 1; }
.bot-host[data-act="love"] .fx-hearts path { transform-box: fill-box; transform-origin: center; animation: act-hearts 1.5s ease-out both; }
.bot-host[data-act="love"] .fx-hearts path:nth-child(2) { animation-delay: .15s; }
.bot-host[data-act="love"] .fx-hearts path:nth-child(3) { animation-delay: .3s; }
.bot-host[data-act="love"] .eyes { opacity: 0; }
.bot-host[data-act="love"] .eyes-happy, .bot-host[data-act="love"] .bot-cheeks { opacity: 1; }
.bot-host[data-act="wave"] .bot-arm-r { animation: bot-wave 1.6s ease-in-out; }
@keyframes act-spin { from { transform: perspective(400px) rotateY(0); } to { transform: perspective(400px) rotateY(360deg); } }
@keyframes act-jump { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(4px) scale(1.12, .86); } 50% { transform: translateY(-46px) scale(.94, 1.08); } 80% { transform: translateY(2px) scale(1.08, .92); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes act-tilt { 30%, 70% { transform: rotate(-10deg); } }
@keyframes act-pop { from { transform: scale(0) rotate(-20deg); } }
@keyframes act-eyes { 0%, 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes act-jolt { 30% { transform: translateY(-10px); } }
@keyframes act-sway { from { transform: rotate(-6deg) translateX(-3px); } to { transform: rotate(6deg) translateX(3px); } }
@keyframes act-arm-l { from { transform: rotate(-150deg); } to { transform: rotate(-20deg); } }
@keyframes act-arm-r { from { transform: rotate(20deg); } to { transform: rotate(150deg); } }
@keyframes act-hearts { 0% { transform: scale(0); opacity: 0; } 25% { transform: scale(1.3); opacity: 1; } 100% { transform: translateY(-30px) scale(.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-head-dot { animation: none; } }

/* 中身を差し替えるときの移り変わり（site.js の 6.）。前の中身の写し（.page-leave）は奥へ倒れて消え、新しい中身（.page-enter）は横から回り込む。
   すりガラスのぼかしを途中で消さないため、動き（transform）は外側の箱に、フェード（opacity）は板1枚ずつに付ける。
   外側の箱の透明度を下げると、中の板のぼかしが効かなくなる（ブラウザの Backdrop Root の決まり）ため */
.page-leave { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; transform-origin: 50% 0; animation: page-out .5s cubic-bezier(.7, 0, .6, 1) both; }
.page-leave :is(.glass, .title, .crumb, .catch, .apps) { animation: page-fade-out .45s ease-in both; }
.page-enter { transform-origin: 0 50%; animation: page-in .85s cubic-bezier(.16, 1, .3, 1) .1s both; }
.page-enter :is(.glass, .title, .crumb, .catch, .apps) { animation: page-fade-in .6s ease-out .15s both; }
@keyframes page-out { to { transform: perspective(1400px) translateZ(-420px) rotateX(14deg) translateY(-4%); } }
@keyframes page-in { from { transform: perspective(1400px) translateX(22%) translateZ(-260px) rotateY(-32deg); } }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .page-leave { display: none; } .page-enter, .page-enter :is(.glass, .title, .crumb, .catch, .apps) { animation: none; } }
