@charset "UTF-8";
/**
 * site.css — Xitagaki service site renewal 2026
 *
 * 紫に寄せた黒をベースに、青 × 紫をアクセントにする。
 * 色はコーポレートサイト（wizoutworks.com）に近いので、黒を紫に寄せ、
 * フォント・ボタンの形・ヘッダー・レイアウト・CTA・フッターを変えて見分けがつくようにしている。
 *
 * 色は rgb(var(--accent) / .12) のように RGB の値を変数で持ち、透明度だけ変えて使う。
 * 動き：操作しなくても動き続けるもの（グラデーションの流れ・背景のゆっくりしたズームなど）と、
 * 画面に入ったときに一度だけ動くもの（.is-in が付いたとき）がある。
 * 動きを減らす設定（prefers-reduced-motion）のときは、すべて止めて完成形を見せる。
 *
 * # tokens
 * # base
 * # layout
 * # components   button / tag / card / icon / list / steps / faq / label / section-bg
 * # header / footer
 * # hero         hero / app mock / float chip / ticker
 * # sections     problem / compare / features / dashboard / results / simulator / use cases / security / pricing
 * # cta
 * # pages        legal / 404
 * # motion
 * # responsive
 */

/* ==========================================================================
   # tokens
   ========================================================================== */
:root {
  /* RGB の値（透明度を変えて使う） */
  --accent: 139 108 255;    /* 紫 #8b6cff（メインのアクセント） */
  --blue: 59 158 255;       /* 青 #3b9eff */
  --purple: 196 112 255;    /* 明るい紫 #c470ff */
  --ink: 9 7 18;            /* 紫に寄せた黒 #090712 */
  --white: 238 236 248;

  --bg: rgb(var(--ink));
  --bg-alt: #0e0b1c;
  --bg-card: #0d0a1d;       /* モックやウィジェットの面 */
  --surface: rgb(var(--white) / .025);
  --surface-2: rgb(var(--white) / .05);
  --line: rgb(var(--white) / .08);
  --line-strong: rgb(var(--white) / .16);
  --text: rgb(var(--white));
  --text-sub: #a8a5c0;
  --text-mute: #6d6888;
  --key: rgb(var(--accent));
  --grad: linear-gradient(90deg, rgb(var(--blue)) 0%, rgb(var(--accent)) 55%, rgb(var(--purple)) 100%);
  /* 流れるグラデーション用（両端を同じ色にして、横に流してもつなぎ目が出ないようにする） */
  --grad-loop: linear-gradient(90deg, rgb(var(--blue)), rgb(var(--accent)), rgb(var(--purple)), rgb(var(--accent)), rgb(var(--blue)));
  --glow: 0 0 24px rgb(var(--accent) / .45);
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --font-en: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-btn: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;   /* FAQ の開閉を height: auto までアニメーションさせる */
}

/* ==========================================================================
   # base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
mark { color: inherit; background: none; }
::selection { background: rgb(var(--accent) / .35); }
:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 8px 16px; border-radius: 8px; background: var(--key); color: #fff; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* グラデーションの文字（ゆっくり流れ続ける） */
.grad-text {
  background: var(--grad-loop) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-flow 10s linear infinite;
}
.mono { font-family: var(--font-mono); }
.pc-only { display: inline; }
.sp-only { display: none; }

/* 見出しの上の小さなラベル（● Features） */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border: 1px solid rgb(var(--accent) / .25);
  border-radius: 999px;
  background: rgb(var(--accent) / .06);
  color: var(--key);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--key);
  box-shadow: var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.display-2 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  word-break: auto-phrase;
}
.lead, .display-2, .hero__title, .card h3, .card p { /*word-break: auto-phrase;*/ }
.lead {
  color: var(--text-sub);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
}
.lead strong { font-weight: 700; }
.note { color: var(--text-mute); font-size: 12px; line-height: 1.7; }

/* ==========================================================================
   # layout
   ========================================================================== */
.container {
  position: relative;   /* 背景画像（.section-bg）より前に出す */
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
}

/* 見出しは左、説明文は右（中央寄せの --center と、狭い列の中では縦に積む） */
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head > .eyebrow { grid-column: 1 / -1; justify-self: start; margin-bottom: 20px; }
.section-head .lead { max-width: 560px; padding-bottom: 6px; }
.section-head--center, .security-band .section-head { display: block; }
.section-head--center { text-align: center; }
.section-head--center > .eyebrow, .security-band .section-head > .eyebrow { margin-bottom: 0; }
.section-head--center .display-2, .security-band .section-head .display-2 { margin-top: 20px; }
.section-head--center .lead { margin: 20px auto 0; }
.security-band .section-head .lead { margin-top: 20px; }

.grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   # components
   ========================================================================== */
/* # button（コーポレートの丸いボタンと区別するため、角丸の四角にする） */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: translate .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 60px; padding: 0 30px; font-size: 16px; }
.btn--primary {
  background: var(--grad-loop) 0 0 / 300% 100%;
  color: #fff;
  box-shadow: 0 0 0 1px rgb(var(--accent) / .4), 0 8px 28px -8px rgb(var(--accent) / .6);
  animation: grad-flow 6s linear infinite;
}
/* 光が横切る（数秒おきに自動で、hover でも） */
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%) -150% 0 / 200% 100% no-repeat;
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
.btn--primary:hover { translate: 0 -1px; box-shadow: 0 0 0 1px rgb(var(--accent) / .6), 0 12px 40px -6px rgb(var(--accent) / .75); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgb(var(--white) / .03); }
.btn--ghost:hover { border-color: rgb(var(--accent) / .5); background: rgb(var(--accent) / .06); }
.btn--dark { background: var(--bg); color: #fff; }
.btn--dark:hover { translate: 0 -1px; box-shadow: 0 12px 32px -8px rgb(var(--ink) / .7); }
.btn--outline-dark { border: 1.5px solid rgb(255 255 255 / .8); color: #fff; }
.btn--outline-dark:hover { background: rgb(255 255 255 / .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.i-arrow { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.btn:hover .i-arrow, .text-link:hover .i-arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--key);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* # tag */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
  line-height: 1.8;
}
.tag--soon { margin-left: 8px; border-color: rgb(var(--accent) / .5); color: var(--key); letter-spacing: 0.04em; }
.tag--primary { border-color: transparent; background: var(--key); color: #fff; font-weight: 500; }

/* # card（上辺のラインがゆっくり流れる。リンクではないので hover では動かさない） */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(var(--white) / .035), rgb(var(--white) / .01));
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--accent) / .8) 50%, transparent 100%) 0 0 / 50% 100% no-repeat;
  opacity: .6;
  animation: line-sweep 7s linear infinite;
  pointer-events: none;
}
.card > * { position: relative; }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.5; margin: 6px 0 12px; }
.card p { color: var(--text-sub); font-size: 15px; }
.card .grad-text { color: transparent; }
.card .label-en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.card .note { font-size: 12px; color: var(--text-mute); }

/* # icon（丸い枠。波紋がゆっくり広がる） */
.icon-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(var(--accent) / .3);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent) / .16), rgb(var(--accent) / .03));
}
.icon-box::after {
  content: "";
  position: absolute; inset: -1px;
  border: 1px solid rgb(var(--accent) / .6);
  border-radius: 50%;
  animation: ripple 3.2s ease-out infinite;
}
.icon { width: 22px; height: 22px; color: var(--key); }

/* # check list */
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}
.check-list li + li { margin-top: 12px; }
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.2em; left: 0;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgb(var(--accent) / .9) var(--icon-check) center / 14px no-repeat;
}

/* # steps（数字が 01 → 02 → 03 の順に光り続ける） */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step__num { display: inline-block; font-family: var(--font-en); font-size: 48px; font-weight: 700; line-height: 1; color: rgb(var(--accent) / .2); animation: step-glow 6s ease-in-out infinite; }
.step:nth-child(2) .step__num { animation-delay: 2s; }
.step:nth-child(3) .step__num { animation-delay: 4s; }
.step h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; }
.step p { color: var(--text-sub); font-size: 15px; }
/* ステップ同士をつなぐ線（光の点が流れる） */
.step + .step::before {
  content: "";
  position: absolute;
  top: 50%; left: -17px;
  width: 18px; height: 1px;
  background: rgb(var(--accent) / .6);
}
.step + .step::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px); left: -17px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
  box-shadow: var(--glow);
  animation: hop 2s linear infinite;
}

/* # faq（開閉をなめらかに。対応していないブラウザではそのまま開く） */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s; }
.faq__item[open] { border-color: rgb(var(--accent) / .3); }
.faq__item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq__item[open]::details-content { height: auto; }
.faq__item summary {
  position: relative;
  padding: 22px 56px 22px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "Q"; margin-right: 14px; font-family: var(--font-en); color: var(--key); }
.faq__item summary::after {
  content: "";
  position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-sub); border-bottom: 2px solid var(--text-sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item p { padding: 0 24px 24px 50px; color: var(--text-sub); }

/* # label（メールのラベル） */
.label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 8px; border-radius: 6px;
  font-size: 11px; line-height: 1.7; font-weight: 500;
  background: var(--surface-2); color: var(--text-sub);
  white-space: nowrap;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.label--reply { color: var(--key); background: rgb(var(--accent) / .12); }
.label--quote { color: #ffc46b; background: rgb(255 196 107 / .12); }
.label--schedule { color: #8fd8ff; background: rgb(143 216 255 / .12); }
.label--info { color: var(--text-sub); }

/* # section-bg（セクションの背景画像。画像は images/bg/ にあり、差し替えて使う）
   画像はゆっくりズームし続け、スクロールに合わせて少しずれる（JS の data-parallax） */
.section-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.section-bg img {
  width: 100%; height: 120%;
  margin-top: -10%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(.7) hue-rotate(15deg);
  animation: ken-burns 24s ease-in-out infinite alternate;
}
.section-bg--right { -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 85%); mask-image: linear-gradient(90deg, transparent 25%, #000 85%); }
.section-bg--left { -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 70%); mask-image: linear-gradient(90deg, #000 10%, transparent 70%); }
.section-bg--right img, .section-bg--left img { opacity: .35; }

/* ==========================================================================
   # header / footer
   ========================================================================== */
/* ヘッダーは浮かぶカプセル型（コーポレートは全幅の帯） */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  height: 56px;
  margin: 0 auto;
  padding: 0 8px 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  pointer-events: auto;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled .site-header__inner, .site-header.is-open .site-header__inner {
  background: rgb(var(--ink) / .72);
  border-color: var(--line-strong);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.site-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-logo img { width: auto; height: 24px; }
.site-logo__by { padding-left: 12px; border-left: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-mute); letter-spacing: 0.06em; line-height: 1.25; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a { position: relative; font-size: 14px; font-weight: 500; color: var(--text-sub); transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav ul a:hover { color: var(--text); }
.site-nav ul a:hover::after { transform: none; }
.site-nav .btn-row { gap: 8px; flex-wrap: nowrap; }
.menu-btn { display: none; }

/* フッター：罫線で区切った表のような構成（コーポレートは大きなワードマーク） */
.site-footer { position: relative; padding: clamp(64px, 8vw, 96px) 0 32px; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
/* 上辺を光が行き来する */
.site-footer::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--key), transparent);
  box-shadow: var(--glow);
  animation: footer-sweep 9s ease-in-out infinite alternate;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.footer-grid > * { padding: 28px; }
.footer-grid > * + * { border-left: 1px solid var(--line); }
.footer-brand { background: linear-gradient(135deg, rgb(var(--accent) / .08), transparent 60%); }
.footer-brand p { margin-top: 16px; color: var(--text-sub); font-size: 13px; line-height: 1.9; }
.footer-brand .btn { margin-top: 24px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.footer-col ul { margin-top: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--key); }
.footer-col .i-arrow { width: 12px; height: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--text-mute);
  font-size: 12px;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom__by { font-family: var(--font-mono); letter-spacing: 0.06em; }

/* スマホ下部の固定 CTA（ヒーローを過ぎたら出す。表示は # responsive） */
.sticky-cta { display: none; }

/* ==========================================================================
   # hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
/* ドットの背景（ゆっくり流れる） + 青紫のオーロラ */
.hero__dots {
  position: absolute; inset: 0;
  background: radial-gradient(rgb(var(--white) / .14) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 10%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 50% at 50% 10%, #000 10%, transparent 75%);
  animation: dots-drift 30s linear infinite;
  pointer-events: none;
}
.hero__aurora {
  position: absolute;
  top: -30%; left: 50%;
  width: 1300px; height: 820px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 55%, rgb(var(--purple) / .30), transparent 70%),
    radial-gradient(closest-side at 70% 45%, rgb(var(--blue) / .16), transparent 70%),
    radial-gradient(closest-side at 50% 60%, rgb(var(--accent) / .18), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}
/* 見出しを左、説明と CTA を右（コーポレートは中央寄せ） */
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero__copy .eyebrow { margin-bottom: 28px; }
.hero__title {
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hero__title .grad-text { padding-right: 0.04em; }
.hero__side { padding-bottom: 8px; }
.hero .btn-row { margin-top: 32px; }
.hero__trust {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  color: var(--text-sub);
  font-size: 13px;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: "";
  width: 16px; height: 16px; border-radius: 50%;
  background: rgb(var(--accent) / .9) var(--icon-check) center / 13px no-repeat;
}
.hero__stage { position: relative; margin-top: clamp(56px, 7vw, 88px); }

/* # app mock（受信メールに対して Xitagaki が下書きを作る様子。JS で 3 通を順に再生） */
.app {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #130f27, #0a0816);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / .85), 0 0 0 1px rgb(var(--accent) / .06) inset;
  text-align: left;
  overflow: hidden;
}
.app__glow {
  position: absolute;
  inset: 12% 6% -10%;
  background: radial-gradient(closest-side, rgb(var(--accent) / .35), transparent);
  filter: blur(80px);
  animation: breathe-opacity 6s ease-in-out infinite;
  pointer-events: none;
}
.app__bar {
  display: flex; align-items: center; gap: 16px;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(var(--white) / .02);
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--white) / .14); }
.app__url {
  flex: 1; max-width: 360px; margin: 0 auto;
  padding: 4px 12px; border-radius: 8px;
  background: rgb(var(--white) / .04);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-align: center;
}
.app__url b { font-weight: 500; color: var(--key); }
.app__body { position: relative; display: grid; grid-template-columns: 300px 1fr; min-height: 480px; }
.app__list { border-right: 1px solid var(--line); padding: 12px 0; }
.app__list-head { display: flex; justify-content: space-between; padding: 4px 18px 12px; font-size: 12px; color: var(--text-mute); }
.mail-item { position: relative; display: block; width: 100%; padding: 12px 18px 12px 22px; border-left: 2px solid transparent; text-align: left; transition: background-color .3s, border-color .3s; }
.mail-item + .mail-item { border-top: 1px solid var(--line); }
.mail-item.is-active { background: rgb(var(--accent) / .07); border-left-color: var(--key); }
.mail-item__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.mail-item__row time { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--text-mute); }
.mail-item__sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text-sub); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item__labels { display: flex; gap: 6px; margin-top: 8px; }

.app__main { padding: 22px 26px 26px; }
.mail-view__subject { font-size: 18px; font-weight: 700; line-height: 1.5; }
.mail-view__from { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-sub); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2c2163, #161131); color: #d9d1ff; font-size: 12px; font-weight: 700; }
.mail-view__body { min-height: 3.8em; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.9; color: var(--text-sub); }

/* 下書きの枠（グラデーションの枠線がゆっくり回る） */
.draft {
  position: relative;
  margin-top: 18px;
  border-radius: 14px;
  padding: 1px;
  background: var(--grad-loop) 0 0 / 300% 300%;
  box-shadow: 0 0 60px -20px rgb(var(--accent) / .5);
  animation: grad-flow 8s linear infinite;
}
.draft__inner { border-radius: 13px; background: var(--bg-card); padding: 16px 18px 14px; }
.draft__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.draft__ai { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.draft__ai svg { width: 16px; height: 16px; color: var(--key); animation: spin-pulse 4s ease-in-out infinite; }
/* 下書きができるまでの工程（読み取り → 参照 → 作成） */
.draft__steps { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; }
.draft__steps span { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-mute); transition: color .3s, border-color .3s, background-color .3s; }
.draft__steps span.is-done { color: #fff; background: var(--key); border-color: var(--key); }
.draft__refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.draft__refs span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 8px; border-radius: 6px;
  background: rgb(var(--white) / .05);
  font-size: 11px; color: var(--text-sub); line-height: 1.8;
  animation: pop-in .4s var(--ease) both;
}
.draft__refs span:nth-child(2) { animation-delay: .12s; }
.draft__refs span:nth-child(3) { animation-delay: .24s; }
.draft__refs span::before { content: ""; width: 8px; height: 10px; border-radius: 2px; background: rgb(var(--accent) / .6); }
.draft__text {
  min-height: 11.4em;
  margin-top: 12px;
  font-size: 13px; line-height: 1.9; color: var(--text);
  white-space: pre-line;
}
.draft__text.is-typing::after {
  content: "";
  display: inline-block;
  width: 7px; height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--key);
  box-shadow: var(--glow);
  animation: blink 1s steps(1) infinite;
}
.draft__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.draft__status { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }
.draft__btns { display: flex; gap: 8px; }
.draft__btns span { white-space: nowrap; padding: 4px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-sub); }
.draft__btns span.is-primary { background: var(--key); color: #fff; border-color: var(--key); }

/* # float chip（製品イメージのまわりに浮かぶ吹き出し） */
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(13 10 29 / .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -10px rgb(0 0 0 / .7);
  text-align: left;
  animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-family: var(--font-en); font-size: 20px; font-weight: 700; line-height: 1.2; }
.float-chip small { display: block; font-size: 11px; color: var(--text-sub); line-height: 1.5; }
.float-chip__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(var(--accent) / .12); color: var(--key); }
.float-chip__icon svg { width: 18px; height: 18px; }
.float-chip--a { left: max(0px, calc(50% - 610px)); bottom: 4%; }
.float-chip--b { right: max(0px, calc(50% - 620px)); top: -3%; animation-delay: -3s; }

/* # ticker（連携サービスと AI モデルのロゴを流す） */
.ticker {
  position: relative;
  padding: 8px 0 clamp(24px, 4vw, 48px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.ticker__label { margin-bottom: 20px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 clamp(28px, 4vw, 52px);
  font-family: var(--font-en); font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; white-space: nowrap;
  opacity: .72;
}
.ticker__item img { width: 26px; height: 26px; }

/* ==========================================================================
   # sections
   ========================================================================== */
/* # problem */
.problem-card .problem-card__stat { display: block; margin: 12px 0 20px; font-family: var(--font-en); font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.problem-card .problem-card__stat small { margin-left: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.problem-card h3 { margin-top: 0; }
.bridge {
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  word-break: auto-phrase;
}
/* 上から光が落ちてくる線 */
.bridge__arrow { position: relative; display: block; width: 1px; height: 64px; margin: 0 auto 28px; background: linear-gradient(transparent, rgb(var(--accent) / .5)); overflow: hidden; }
.bridge__arrow::after { content: ""; position: absolute; left: 0; top: -20px; width: 1px; height: 20px; background: linear-gradient(transparent, #fff); box-shadow: var(--glow); animation: drop 2s ease-in infinite; }

/* # compare（これまで / Xitagaki を使うと） */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare__col--after { border-color: rgb(var(--accent) / .4); background: linear-gradient(180deg, rgb(var(--accent) / .08), transparent 70%); box-shadow: 0 0 80px -24px rgb(var(--accent) / .45); }
.compare__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.compare__head h3 { font-size: 18px; font-weight: 700; }
.compare__time { font-family: var(--font-en); font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text-mute); }
.compare__time small { font-size: 14px; margin-left: 2px; }
/* Xitagaki を使ったあとの時間は、色と光で強調する（下の高さが揃うよう文字サイズは左と同じ） */
.compare__col--after .compare__time { color: transparent; filter: drop-shadow(0 0 18px rgb(var(--accent) / .55)); }
.compare__flow { counter-reset: flow; }
.compare__flow li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-sub);
  counter-increment: flow;
}
.compare__flow li + li { border-top: 1px dashed var(--line); }
.compare__flow li::before {
  content: counter(flow, decimal-leading-zero);
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
}
/* AI が担う工程：番号が順に光り続ける */
.compare__flow .is-ai { color: var(--text); font-weight: 700; }
.compare__flow .is-ai::before { border: 0; background: var(--key); color: #fff; animation: ai-step 3s ease-in-out infinite; }
.compare__flow .is-ai:nth-child(2)::before { animation-delay: 1s; }
.compare__flow .is-ai:nth-child(3)::before { animation-delay: 2s; }
.compare__bar { margin-top: 24px; height: 8px; border-radius: 99px; background: rgb(var(--white) / .06); overflow: hidden; }
.compare__bar span { display: block; height: 100%; border-radius: inherit; background: rgb(var(--white) / .25); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.compare__col--after .compare__bar span { background: var(--grad-loop) 0 0 / 300% 100%; box-shadow: var(--glow); animation: grad-flow 4s linear infinite; }
.js .compare__bar span { transform: scaleX(0); }
.js .is-in .compare__bar span { transform: scaleX(1); }

/* # features (bento) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .card { display: flex; flex-direction: column; }
.bento__wide { grid-column: span 2; }
/* 横長のカード：左に絵、右に説明 */
.bento__row { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1.4fr 1fr; gap: 0 40px; align-items: center; }
.bento__row .feature-visual { margin-bottom: 0; }
.feature-visual {
  position: relative;
  display: grid;
  align-content: center;
  height: 250px;
  margin: -4px 0 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgb(var(--accent) / .10), transparent 70%), rgb(0 0 0 / .25);
  overflow: hidden;
}
.feature-visual--img { align-content: end; padding: 20px 20px 0; background: radial-gradient(ellipse at 50% 100%, rgb(var(--accent) / .22), transparent 70%), rgb(0 0 0 / .25); }
.feature-visual--img img { width: 100%; height: 100%; }
/* 画像の右上にある旧ブランド色の丸を、上から隠す丸 */
.shot { position: relative; height: 230px; max-width: 100%; aspect-ratio: 810 / 492; margin: 0 auto; }
.shot__badge {
  position: absolute;
  left: 72.4%; top: -1.2%;
  width: 30.6%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 40px rgb(var(--accent) / .45);
  color: #fff;
  font-size: clamp(11px, 1.5vw, 18px); font-weight: 700; line-height: 1.3; text-align: center;
  animation: badge-bob 4s ease-in-out infinite;
}

/* visual: knowledge（資料から AI へ光が流れ続ける） */
.kv { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px; }
.kv__docs { display: grid; gap: 8px; }
.kv__docs span {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); font-size: 11.5px; color: var(--text-sub); white-space: nowrap;
  animation: doc-glow 4.5s ease-in-out infinite;
}
.kv__docs span:nth-child(2) { animation-delay: 1.5s; }
.kv__docs span:nth-child(3) { animation-delay: 3s; }
.kv__docs span::before { content: ""; width: 10px; height: 12px; border-radius: 2px; background: rgb(var(--accent) / .55); }
.kv__line { position: relative; width: 48px; height: 1px; background: rgb(var(--accent) / .5); }
.kv__line::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--key); box-shadow: var(--glow); animation: travel 1.5s linear infinite; }
.kv__core {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgb(var(--blue) / .35), rgb(var(--accent) / .15));
  border: 1px solid rgb(var(--accent) / .5);
  font-family: var(--font-en); font-size: 16px; font-weight: 700; color: var(--text);
  animation: breathe 3s ease-in-out infinite;
}

/* visual: labels（ラベルが上から順に付き、しばらくしたら付け直す） */
.lv { display: grid; gap: 8px; padding: 20px; }
.card .lv__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgb(var(--white) / .02); font-size: 12px; color: var(--text-sub); }
.lv__row b { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv__row .label { animation: label-loop 8s var(--ease) infinite; }
.lv__row:nth-child(2) .label { animation-delay: .4s; }
.lv__row:nth-child(3) .label { animation-delay: .8s; }
.lv__row:nth-child(4) .label { animation-delay: 1.2s; }

/* visual: schedule（候補の枠が交互に光る） */
.sv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 20px; }
.sv span { display: grid; place-items: center; height: 30px; border-radius: 6px; background: rgb(var(--white) / .04); font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }
.sv span.is-busy { background: repeating-linear-gradient(45deg, rgb(var(--white) / .05) 0 4px, transparent 4px 8px); }
.sv span.is-pick { background: rgb(var(--accent) / .18); color: var(--key); box-shadow: 0 0 0 1px rgb(var(--accent) / .6) inset; animation: pick 2.6s ease-in-out infinite; }
.sv span.is-pick ~ span.is-pick { animation-delay: 1.3s; }
.sv__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sv__head i { font-style: normal; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-sub); }

/* visual: tasks（依頼にマーカーが引かれ、やることリストに順に追加される。これをくり返す） */
.tk { display: grid; gap: 8px; padding: 12px 18px; }
.tk__mail { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgb(var(--white) / .02); font-size: 11.5px; line-height: 1.8; color: var(--text-sub); }
.tk__mail mark {
  padding: 0 2px; border-radius: 3px;
  background: linear-gradient(rgb(var(--blue) / .25), rgb(var(--blue) / .25)) 0 0 / 100% 100% no-repeat;
  color: rgb(var(--blue));
  animation: marker-loop 8s var(--ease) infinite;
}
.tk__mail mark:nth-of-type(2) { animation-delay: .3s; }
.tk__mail mark:nth-of-type(3) { animation-delay: .6s; }
.tk__list { border: 1px solid rgb(var(--accent) / .3); border-radius: 10px; background: var(--bg-card); overflow: hidden; }
.tk__head { display: flex; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--text); }
.tk__head b { font-family: var(--font-mono); font-weight: 500; color: var(--key); }
.tk__todo li { display: flex; align-items: center; gap: 10px; padding: 5px 12px; font-size: 12px; color: var(--text); animation: todo-loop 8s var(--ease) infinite; }
.tk__todo li + li { border-top: 1px solid var(--line); }
.tk__todo li:nth-child(1) { animation-delay: 1.1s; }
.tk__todo li:nth-child(2) { animation-delay: 1.4s; }
.tk__todo li:nth-child(3) { animation-delay: 1.7s; }
.tk__todo li::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid rgb(var(--accent) / .7); border-radius: 4px; }
.tk__todo li.is-done span { color: var(--text-mute); text-decoration: line-through; }
.tk__todo li.is-done::before { border: 0; background: var(--key) var(--icon-check) center / 12px no-repeat; }
.tk__todo time { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-mute); }

/* visual: templates（テンプレートの一覧。選ばれている行が順に移る） */
.tp { display: grid; gap: 10px; padding: 16px 20px; }
.card .tp__search { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 11.5px; color: var(--text-mute); }
.tp__search::before { content: "⌕"; margin-right: 8px; color: var(--text-sub); }
.card .tp__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp__chips span { padding: 1px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; color: var(--text-sub); }
.tp__chips .is-on { border-color: var(--key); background: var(--key); color: #fff; }
.tp__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp__list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgb(var(--white) / .02); font-size: 12px; animation: tp-pick 8s ease-in-out infinite; }
.tp__list li:nth-child(2) { animation-delay: 2s; }
.tp__list li:nth-child(3) { animation-delay: 4s; }
.tp__list li:nth-child(4) { animation-delay: 6s; }
.tp__list b { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp__list span { flex: none; font-size: 10.5px; color: var(--text-mute); }

/* # dashboard（上に説明と数字、下に画面） */
.dash { grid-column: 1 / -1; padding-bottom: 0; }
.dash__head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.dash__head p:not(.label-en) { max-width: 560px; }
.dash__kpi { display: flex; gap: 8px; }
.dash__kpi li { display: grid; gap: 2px; min-width: 128px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgb(0 0 0 / .25); }
.dash__kpi span { font-size: 11px; color: var(--text-mute); }
.dash__kpi b { font-family: var(--font-en); font-size: 24px; color: var(--key); line-height: 1.2; }
.dash__shot {
  position: relative;
  margin-top: 32px;
  max-height: 440px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.dash__shot img { width: 100%; max-width: 980px; margin: 0 auto; }
/* 管理画面の上に重ねる小さなウィジェット（グラフが描かれる） */
.mini-widget {
  position: absolute;
  right: 2%; top: 14%;
  z-index: 1;
  width: 220px;
  padding: 14px 16px;
  border: 1px solid rgb(var(--accent) / .35);
  border-radius: 12px;
  background: rgb(13 10 29 / .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / .8);
  animation: float 7s ease-in-out infinite;
}
.mini-widget__label { font-size: 11px; color: var(--text-sub); }
.mini-widget__num { font-family: var(--font-en); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--key); }
.mini-widget__num small { margin-left: 2px; font-size: 13px; color: var(--text-sub); }
.mini-widget svg { display: block; width: 100%; height: 44px; margin-top: 6px; }
.mini-widget path { fill: none; stroke: var(--key); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgb(var(--accent) / .7)); stroke-dasharray: 300; animation: draw-loop 7s var(--ease) infinite; }

/* # results */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card .stat__label { font-size: 14px; font-weight: 700; color: var(--text-sub); }
.card .stat__num {
  display: block; margin: 20px 0 8px;
  font-family: var(--font-en);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__num small { margin-left: 4px; font-size: 0.32em; letter-spacing: 0; }
/* 枠線のグラデーションが流れる帯 */
.results-callout {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  margin-top: 16px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgb(var(--accent) / .12), rgb(var(--purple) / .05)), var(--bg-alt);
}
.results-callout::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-loop) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: grad-flow 6s linear infinite;
  pointer-events: none;
}
.results-callout p:first-child { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; line-height: 1.5; }
.results-callout p + p { color: var(--text-sub); }
.results .note { margin-top: 16px; text-align: right; }

/* # simulator */
.sim { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.sim__form { display: grid; gap: 32px; align-content: start; }
.sim__field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; }
.sim__field output { font-family: var(--font-en); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sim__field output small { margin-left: 4px; font-size: 13px; color: var(--text-sub); }
.sim__field .note { margin-top: 8px; }
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin-top: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgb(var(--blue)), var(--key)) 0 / var(--p, 10%) 100% no-repeat, rgb(var(--white) / .1);
  cursor: pointer;
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; background: var(--key); box-shadow: 0 0 0 4px rgb(var(--accent) / .25), var(--glow); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 6px; background: var(--key); box-shadow: 0 0 0 4px rgb(var(--accent) / .25); }
.sim__out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; background: var(--line); }
.sim__out > div { padding: clamp(20px, 2.6vw, 32px); background: var(--bg-card); }
.sim__out > .sim__hero { grid-column: 1 / -1; background: radial-gradient(ellipse at 0% 0%, rgb(var(--accent) / .16), transparent 70%), var(--bg-card); }
.sim__note { margin-top: 16px; }
.sim__out dt { font-size: 13px; color: var(--text-sub); }
.sim__out dd { margin-top: 6px; font-family: var(--font-en); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sim__out dd small { margin-left: 4px; font-size: 14px; color: var(--text-sub); letter-spacing: 0; }
.sim__hero dd { font-size: clamp(40px, 5vw, 64px); }

/* # use cases */
.case { padding: 0; display: flex; flex-direction: column; }
.case__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
/* 写真はゆっくり寄りながら横に流れる（ひと目で動いているとわかる程度に） */
.case__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); animation: case-pan 12s ease-in-out infinite alternate; }
.case:nth-child(2) .case__img img { animation-delay: -4s; }
.case:nth-child(3) .case__img img { animation-delay: -8s; }
.case__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(var(--ink) / .7)); }
/* 写真の上に重ねる、その部署でよくある下書きの吹き出し */
.case__toast {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgb(var(--accent) / .35);
  border-radius: 10px;
  background: rgb(13 10 29 / .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px; color: var(--text);
  opacity: 0;
  /* 1枚あたり7秒 × 3枚で一巡。カードごとに少しずらす */
  animation: toast-loop 21s var(--ease) infinite both;
  animation-delay: calc(var(--n, 0) * 7s + var(--case-offset, 0s));
}
.case__toast:nth-child(2) { --n: 1; }
.case__toast:nth-child(3) { --n: 2; }
.case:nth-child(2) .case__toast { --case-offset: 1.2s; }
.case:nth-child(3) .case__toast { --case-offset: 2.4s; }
.case__toast::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--key) var(--icon-check) center / 11px no-repeat; }
.case__body { padding: clamp(24px, 3vw, 32px); }
.case .check-list { margin-top: 18px; }
.case .check-list li { font-size: 14px; }

/* # security */
.security-band { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.security-band .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.security-band .display-2 { font-size: clamp(28px, 3.4vw, 44px); }
.security-band .text-link { margin-top: 28px; }
.security-list { display: grid; gap: 16px; }
.security-list .card { display: grid; grid-template-columns: 44px 1fr; gap: 24px; background: rgb(13 10 29 / .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.security-list h3 { margin-top: 0; }
.security-list .card:nth-child(2) .icon-box::after { animation-delay: 1s; }
.security-list .card:nth-child(3) .icon-box::after { animation-delay: 2s; }

/* # pricing */
.pricing { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan--main { border-color: rgb(var(--accent) / .45); background: radial-gradient(ellipse at 0% 0%, rgb(var(--accent) / .14), transparent 60%), var(--surface); animation: plan-glow 5s ease-in-out infinite; }
.plan__name { display: flex; align-items: center; gap: 12px; }
.card .plan__price { margin: 24px 0 4px; font-family: var(--font-en); font-size: clamp(56px, 6vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan__price small { margin-left: 6px; font-family: var(--font-jp); font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--text-sub); -webkit-text-fill-color: var(--text-sub); }
.card .plan__lead { margin-bottom: 28px; }
.plan .check-list { margin-bottom: 32px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.card .plan__big { margin: 24px 0 12px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.4; color: var(--text); }

/* ==========================================================================
   # cta（青 → 紫の面。グラデーションと写真がゆっくり動く。コーポレートは黒地のパネル）
   ========================================================================== */
.cta {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(rgb(255 255 255 / .14) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(120deg, rgb(var(--blue)), rgb(var(--accent)), rgb(var(--purple)), rgb(var(--accent)), rgb(var(--blue))) 0 0 / 300% 300%;
  color: #fff;
  overflow: hidden;
  animation: cta-flow 16s ease-in-out infinite alternate;
}
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.cta h2 { margin: 16px 0 20px; font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; word-break: auto-phrase; }
.cta p { font-size: 16px; line-height: 1.9; color: rgb(255 255 255 / .82); }
.cta .btn-row { margin-top: 32px; }
/* 右側：下書きのカードが重なって、ゆらゆら浮いている絵 */
.cta__stack { position: relative; height: 300px; }
.cta__card {
  position: absolute;
  left: 50%;
  width: min(380px, 100%);
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 60px -20px rgb(var(--ink) / .6);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.cta__card:nth-child(1) { top: 0; transform: translateX(-50%) rotate(-4deg) translateX(-24px); opacity: .55; animation-delay: -2s; }
.cta__card:nth-child(2) { top: 50px; transform: translateX(-50%) rotate(2deg) translateX(18px); opacity: .8; animation-delay: -4s; }
.cta__card:nth-child(3) { top: 110px; transform: translateX(-50%); }
.cta__card-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }
.cta__card-head b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--key); }
.cta__card-head b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--key); box-shadow: var(--glow); animation: pulse 2.4s ease-in-out infinite; }
.cta__card p { margin-top: 8px; color: var(--text); font-size: 14px; font-weight: 700; }
.cta__card small { display: block; margin-top: 4px; color: var(--text-sub); font-size: 12px; line-height: 1.7; }

/* ==========================================================================
   # pages（利用規約・プライバシーポリシー / 404）
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero__aurora { top: -70%; }
.page-hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 28px; font-size: 12px; color: var(--text-mute); }
.breadcrumb a { color: var(--text-sub); transition: color .2s; }
.breadcrumb a:hover { color: var(--key); }

.terms-body {
  max-width: calc(840px + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(80px, 10vw, 120px);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 2;
}
.terms-body > p:first-child { margin-bottom: 40px; }
/* 条文ごとにカードで区切る */
.terms-article {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.terms-article + .terms-article { margin-top: 16px; }
.terms-article-ttl {
  position: relative;
  margin-bottom: 20px;
  padding-left: 18px;
  color: var(--text);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
}
.terms-article-ttl::before {
  content: "";
  position: absolute;
  top: 0.3em; left: 0;
  width: 3px; height: 1.1em;
  background: var(--grad);
  box-shadow: var(--glow);
  border-radius: 2px;
}
.terms-text + .terms-text { margin-top: 16px; }
.terms-text + .terms-list, .terms-list + .terms-text { margin-top: 16px; }
.terms-list { counter-reset: terms; }
.terms-list > li { position: relative; padding-left: 2em; counter-increment: terms; }
.terms-list > li + li { margin-top: 12px; }
.terms-list > li::before { content: counter(terms) "."; position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 13px; color: var(--key); line-height: 2.3; }
.terms-list strong { color: var(--text); }
.terms-sublist { margin-top: 10px; }
.terms-sublist li + li { margin-top: 6px; }
.terms-date { margin-top: 40px; color: var(--text-mute); font-size: 13px; text-align: right; }
.terms-body a { text-decoration: underline; text-underline-offset: 3px; color: var(--key); }

.hero--404 { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.hero--404 .hero__inner { display: block; width: 100%; text-align: center; }
.hero--404 .btn-row { justify-content: center; }
.hero--404 .lead { margin-top: 24px; }
.hero--404 .hero__title { font-family: var(--font-en); font-size: clamp(96px, 20vw, 200px); line-height: 1; letter-spacing: -0.06em; }

/* ==========================================================================
   # motion
   ========================================================================== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 7px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes aurora { from { transform: translateX(-52%) scale(1); } to { transform: translateX(-48%) scale(1.08); } }
@keyframes grad-flow { to { background-position: 150% 0; } }
@keyframes cta-flow { to { background-position: 0 0, 100% 100%; } }
@keyframes shine { 0%, 60% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes line-sweep { from { background-position: -100% 0; } to { background-position: 300% 0; } }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes step-glow { 0%, 40%, 100% { color: rgb(var(--accent) / .2); text-shadow: none; } 15%, 25% { color: var(--key); text-shadow: var(--glow); } }
@keyframes tp-pick { 0%, 25%, 100% { border-color: var(--line); background: rgb(var(--white) / .02); } 5%, 20% { border-color: rgb(var(--accent) / .7); background: rgb(var(--accent) / .12); box-shadow: var(--glow); } }
@keyframes hop { from { translate: 0 0; } to { translate: 14px 0; } }
@keyframes footer-sweep { from { left: 0; } to { left: 60%; } }
@keyframes drop { from { top: -20px; } to { top: 100%; } }
@keyframes ai-step { 0%, 60%, 100% { box-shadow: none; } 20%, 40% { box-shadow: 0 0 0 4px rgb(var(--accent) / .25), var(--glow); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 30px rgb(var(--accent) / .25); } 50% { box-shadow: 0 0 56px rgb(var(--accent) / .55); } }
@keyframes breathe-opacity { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes pick { 0%, 100% { box-shadow: 0 0 0 1px rgb(var(--accent) / .6) inset; } 50% { box-shadow: 0 0 0 1px rgb(var(--accent)) inset, 0 0 18px rgb(var(--accent) / .5); } }
@keyframes doc-glow { 0%, 66%, 100% { border-color: var(--line-strong); color: var(--text-sub); } 15%, 30% { border-color: rgb(var(--accent) / .7); color: var(--text); } }
@keyframes spin-pulse { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(1.15); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px) scale(.95); } }
@keyframes badge-bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes case-pan { from { transform: scale(1.08) translateX(-3%); } to { transform: scale(1.2) translateX(3%); } }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes dots-drift { to { background-position: 22px 22px; } }
@keyframes plan-glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0); } 50% { box-shadow: 0 0 60px -10px rgb(var(--accent) / .45); } }
/* ループ：出る → しばらく見せる → 消える */
@keyframes label-loop { 0%, 8% { opacity: 0; transform: translateX(8px) scale(.9); } 15%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes marker-loop { 0%, 5% { background-size: 0 100%; } 15%, 85% { background-size: 100% 100%; } 95%, 100% { background-size: 0 100%; } }
@keyframes todo-loop { 0%, 10% { opacity: 0; transform: translateY(6px); } 18%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes toast-loop { 0%, 2% { opacity: 0; transform: translateY(8px); } 4.7%, 26.7% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes draw-loop { 0%, 5% { stroke-dashoffset: 300; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -300; } }

/* 画面に入ったら表示（JS が .is-in を付ける） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .compare__bar span { transform: none; }
  .ticker__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__track [aria-hidden] { display: none; }
  .case__toast { opacity: 1; }
  .case__toast:not(:first-child) { display: none; }
}

/* ==========================================================================
   # responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .float-chip { display: none; }
}

@media (max-width: 1080px) {
  .site-nav ul { gap: 18px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__wide { grid-column: 1 / -1; }
  .dash__head { grid-template-columns: 1fr; gap: 24px; }
  .bento__row { grid-template-columns: 1fr; }
  .bento__row .feature-visual { margin-bottom: 28px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .footer-grid > .footer-col:nth-child(2) { border-left: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .site-header { padding-top: 8px; }
  .menu-btn {
    display: grid; place-items: center; align-content: center; gap: 6px;
    width: 44px; height: 44px;
    border-radius: 10px;
  }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s; }
  .is-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .is-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 8px;
    height: calc(100vh - var(--header-h) - var(--gutter));
    height: calc(100dvh - var(--header-h) - var(--gutter));
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    border-radius: 14px;
    opacity: 0;
    border: 1px solid transparent;
    border-color: var(--line-strong);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .is-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; color: var(--text); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn-row { flex-direction: column; }
  .site-nav .btn { height: 56px; font-size: 15px; }

  .app__body { grid-template-columns: 1fr; }
  .app__list { display: none; }
  .grid-3, .compare, .stats, .sim, .security-band, .pricing, .cta__inner, .hero__inner, .section-head { grid-template-columns: 1fr; }
  .section-head .lead { margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step::before { top: -17px; left: 50%; width: 1px; height: 18px; }
  .step + .step::after { top: -17px; left: calc(50% - 2px); animation-name: hop-down; }
  .security-band .section-head { position: static; }
  .cta__stack { height: 260px; }

  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; gap: 8px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgb(var(--ink) / .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .sticky-cta.is-shown { transform: none; }
  .sticky-cta .btn { flex: 1; height: 48px; padding: 0 12px; font-size: 14px; }
  .site-footer { padding-bottom: 104px; }
}
@keyframes hop-down { from { translate: 0 0; } to { translate: 0 14px; } }

@media (max-width: 600px) {
  .grid-4, .bento { grid-template-columns: 1fr; }
  .site-logo__by { display: none; }
  .hero .btn-row .btn, .cta .btn { width: 100%; }
  .hero__title { font-size: 34px; }
  .dash__kpi { flex-wrap: wrap; }
  .dash__kpi li { min-width: 0; flex: 1; }
  .app__main { padding: 18px 16px; }
  .app__url, .draft__status, .draft__steps { display: none; }
  .draft__foot { justify-content: flex-end; }
  .sim__out { grid-template-columns: 1fr; }
  .compare__head { flex-direction: column; gap: 8px; }
  .faq__item p { padding-left: 24px; }
  .mini-widget { display: none; }
  .cta__stack { height: auto; }
  .cta__card:nth-child(-n+2) { display: none; }
  .cta__card:nth-child(3) { position: relative; top: 0; left: 0; transform: none; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:nth-child(2) { border-left: 0; }
  .footer-grid > .footer-col:nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .terms-article { padding: 20px; }
  .feature-visual { height: auto; min-height: 320px; }
  .tp__list { grid-template-columns: 1fr; }
  .shot { height: auto; width: 100%; }
}
