/* =============================================================
   app-reveal.css — スクロールで「Hero の中身」がスマホに納まる演出
   （meetcleo.com hero を踏襲：リアルな iPhone が大きく映り、
     スクロールに連動して 1台の端末へ収束。画面の中身は Hero の
     メッセージ（Welcome / 見出し / 実績 / CTA）。）

   駆動: JS が --p を 0→1 で書き込む（experience.js: initAppReveal）。
   JS/モーション無効時は --p:1（収束後の完成形）を既定とし常に表示。
   baseline-ui 準拠：transform / opacity のみを連動アニメーション。
   ============================================================= */
.cleo-hero {
  --p: 1;                                  /* スクロール進捗（既定=完成形） */
  --s: calc(1.2 - 0.2 * var(--p));         /* 端末スケール 1.2→1（全体が画面内に収まる範囲） */
  --head: 118px;                           /* 固定ヘッダー分の余白（端末を隠さない） */
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 16%, rgba(67, 186, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #061019 0%, #06121a 55%, #050d14 100%);
  isolation: isolate;
}
.cleo-hero__track {
  position: relative;
  height: 240vh;                           /* スクロール滑走路 */
}
.cleo-hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding-top: var(--head);                /* ヘッダーの下に収め、端末の上端が切れないように */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背後のソフトな発光（収束に合わせて強まる） */
.cleo-hero__glow {
  position: absolute;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 186, 255, 0.26), transparent 62%);
  filter: blur(44px);
  opacity: calc(0.22 + 0.5 * var(--p));
  transform: scale(calc(0.9 + 0.25 * var(--p)));
  z-index: 0;
  pointer-events: none;
}

/* =============================================================
   リアルな iPhone（チタニウムフレーム + Dynamic Island）
   ============================================================= */
.cleo-device {
  position: relative;
  z-index: 2;
  width: 262px;
  transform: scale(var(--s));
  transform-origin: center center;
  will-change: transform;
}
/* チタニウムの筐体 */
.cleo-device__frame {
  position: relative;
  padding: 11px;                            /* ベゼル厚 */
  border-radius: 58px;
  background:
    linear-gradient(145deg,
      #e7eaec 0%, #aab2b8 9%, #5c656c 22%,
      #2a3137 42%, #20262b 50%, #2a3137 58%,
      #5c656c 78%, #aab2b8 91%, #d7dbde 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 1.5px 0 rgba(0, 0, 0, 0.4),
    /* 接地影＋空中影でリアルな浮遊感 */
    0 60px 90px -28px rgba(0, 0, 0, 0.7),
    0 24px 48px -18px rgba(0, 0, 0, 0.5);
}
/* フレーム内側の黒リング（筐体と画面の隙間） */
.cleo-device__frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50px;
  background: #000;
  z-index: 1;
}
.cleo-device__screen {
  position: relative;
  z-index: 2;
  border-radius: 48px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  container-type: inline-size;             /* 画面内のUIを端末幅に比例させる（cqw） */
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(67, 186, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #0c1c2a 0%, #0a1620 60%, #081019 100%);
  color: #eaf4fb;
}
/* Dynamic Island（収束でくっきり） */
.cleo-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: calc(0.4 + 0.6 * var(--p));
}
.cleo-island::after {                       /* インカメラ */
  content: "";
  position: absolute;
  top: 50%; right: 14%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3b52, #000 70%);
}
/* ガラスの映り込み */
.cleo-glass {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(125deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0) 24%,
    rgba(255, 255, 255, 0) 72%,
    rgba(255, 255, 255, 0.05) 100%);
}
/* チタニウムの側面ボタン */
.cleo-device__btn {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(180deg, #c2c9ce, #5c656c 45%, #3a4147);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  opacity: calc(0.25 + 0.75 * var(--p));
}
.cleo-device__btn--action { left: -3px; top: 116px; width: 3px; height: 28px; }
.cleo-device__btn--volup  { left: -3px; top: 158px; width: 3px; height: 50px; }
.cleo-device__btn--voldn  { left: -3px; top: 222px; width: 3px; height: 50px; }
.cleo-device__btn--power  { right: -3px; top: 176px; width: 3px; height: 84px; }

/* =============================================================
   画面の中身 = Hero メッセージ
   ============================================================= */
/* サイズは cqw（画面=コンテナ幅基準）で指定し、端末スケールに依存せず
   どの端末幅でも同じ比率・改行で表示される。基準幅 ≈ 240px → 1cqw ≈ 2.4px */
.cleo-app {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 6.6cqw 8.3cqw 9cqw;
}
.cleo-app__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12.5cqw;
  padding: 0 1.6cqw;
  font-size: 5cqw;
  font-weight: 700;
}
.cleo-app__sys { display: inline-flex; align-items: center; gap: 2cqw; }
.cleo-app__sys i { display: inline-block; background: #eaf4fb; border-radius: 0.4cqw; }
.cleo-sig  { width: 6.7cqw; height: 4.2cqw; clip-path: polygon(0 100%,18% 100%,18% 55%,0 55%,0 100%,28% 100%,46% 100%,46% 35%,28% 35%,46% 100%,56% 100%,74% 100%,74% 18%,56% 18%,74% 100%,84% 100%,100% 100%,100% 0,84% 0); }
.cleo-wifi { width: 6.3cqw; height: 4.6cqw; -webkit-mask: radial-gradient(circle at 50% 100%, #000 32%, transparent 33%), radial-gradient(circle at 50% 100%, #000 62%, transparent 63%) ; background: #eaf4fb; border-radius: 0 0 0.8cqw 0.8cqw; }
.cleo-batt { width: 9.2cqw; height: 4.6cqw; border-radius: 1.3cqw; background: none; box-shadow: inset 0 0 0 0.6cqw rgba(234,244,251,0.85); position: relative; }
.cleo-batt::before { content: ""; position: absolute; inset: 0.8cqw; right: 2cqw; background: #eaf4fb; border-radius: 0.4cqw; }
.cleo-batt::after  { content: ""; position: absolute; top: 1.2cqw; right: -1cqw; width: 0.8cqw; height: 2cqw; background: rgba(234,244,251,0.85); border-radius: 0 0.8cqw 0.8cqw 0; }

.cleo-app__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.7cqw;
  padding-top: 2.5cqw;
}
.cleo-app__welcome {
  display: inline-flex;
  align-items: center;
  gap: 2.9cqw;
  font-size: 4.6cqw;
  font-weight: 600;
  color: rgba(234, 244, 251, 0.85);
}
.cleo-app__logo { width: 7.5cqw; height: 7.5cqw; object-fit: contain; }
.cleo-app__welcome b { font-weight: 700; color: #fff; }
.cleo-app__title {
  margin: 0.8cqw 0 0;
  font-size: 8.7cqw;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.cleo-app__title em {
  font-style: normal;
  font-weight: 600;
  font-size: 6.25cqw;
  color: rgba(234, 244, 251, 0.78);
}
.cleo-app__tag {
  margin: 0.8cqw 0 0;
  font-size: 4.8cqw;
  font-weight: 600;
  color: var(--fx-accent);
}
.cleo-app__tag b { color: #fff; font-weight: 700; }
.cleo-app__desc {
  margin: 0.8cqw 0 1.6cqw;
  font-size: 4.4cqw;
  line-height: 1.65;
  color: rgba(234, 244, 251, 0.6);
}
.cleo-app__stats {
  display: flex;
  gap: 5.8cqw;
  margin: 0.8cqw 0 1.6cqw;
}
.cleo-app__stat { display: flex; flex-direction: column; gap: 0.4cqw; }
.cleo-app__num {
  font-size: 12.5cqw;
  font-weight: 800;
  line-height: 1;
  color: var(--fx-accent);
}
.cleo-app__num small { font-size: 5cqw; font-weight: 700; margin-left: 0.8cqw; }
.cleo-app__lbl { font-size: 4cqw; color: rgba(234, 244, 251, 0.6); }
.cleo-app__btn {
  margin-top: 1.6cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.3cqw;
  height: 17.5cqw;
  border-radius: 9.2cqw;
  font-size: 5.4cqw;
  font-weight: 700;
  color: #04121c;
  background: linear-gradient(150deg, #8ad9ff, var(--fx-accent));
  box-shadow: 0 3.3cqw 7.5cqw rgba(67, 186, 255, 0.4);
}
.cleo-app__btn i { font-style: normal; transition: transform 0.3s var(--fx-ease); }

/* =============================================================
   左右コピー（収束に合わせて出現・端末を補完）
   ============================================================= */
.cleo-hero__copy {
  position: absolute;
  z-index: 1;
  max-width: 300px;
  color: #eaf4fb;
  opacity: clamp(0, calc((var(--p) - 0.5) * 2.6), 1);   /* 0.5→1 で出現 */
}
.cleo-hero__copy--left {
  left: max(5vw, 32px);
  text-align: left;
  transform: translateX(calc(-44px * (1 - var(--p))));
}
.cleo-hero__copy--right {
  right: max(5vw, 32px);
  text-align: left;
  transform: translateX(calc(44px * (1 - var(--p))));
}
.cleo-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--fx-accent);
  margin: 0 0 14px;
}
.cleo-headline {
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 800;
  line-height: 1.24;
  margin: 0 0 16px;
}
.cleo-lead {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(234, 244, 251, 0.72);
  margin: 0;
}
.cleo-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 13px;
}
.cleo-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}
.cleo-points li::before {                  /* アイコンの代わりに控えめなアクセントドット */
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fx-accent);
}

/* =============================================================
   レスポンシブ
   ============================================================= */
@media (max-width: 1199px) {
  .cleo-hero__copy { max-width: 230px; }
  .cleo-headline { font-size: clamp(20px, 2.4vw, 28px); }
  .cleo-points li { font-size: 13.5px; }
}

/* タブレット / スマホ：左右コピーを端末の上下に配置して “すべて表示” */
@media (max-width: 991px) {
  .cleo-hero { --s: calc(1.22 - 0.22 * var(--p)); --head: 96px; }
  .cleo-hero__track { height: 240vh; }
  .cleo-device { width: 230px; }

  .cleo-hero__copy {
    max-width: min(90vw, 460px);
    text-align: center;
    left: 50%; right: auto;
    transform: translateX(-50%);
  }
  .cleo-hero__copy--left {
    top: calc(var(--head) + 10px);         /* ヘッダーの下に出す */
    transform: translateX(-50%) translateY(calc(-20px * (1 - var(--p))));
  }
  .cleo-hero__copy--right {
    display: block;
    top: auto;
    bottom: max(3.5vh, 18px);
    transform: translateX(-50%) translateY(calc(20px * (1 - var(--p))));
  }
  .cleo-eyebrow { margin-bottom: 7px; }
  .cleo-headline { font-size: clamp(18px, 5vw, 26px); margin-bottom: 7px; }
  .cleo-lead { font-size: 12.5px; line-height: 1.6; }
  .cleo-points { gap: 6px; display: inline-grid; text-align: left; }
  .cleo-points li { font-size: 12.5px; line-height: 1.45; }
}

/* スマホ：ピン留め演出をやめ、全幅の縦積みレイアウト（テキスト→端末→テキスト）に。
   端末も文字も横幅いっぱいで表示し、セクションは自然にスクロールする。
   （端末の縦横比 ≒ 画面の縦横比のため、1画面ピン留めでは「全幅端末＋上下テキスト」を
     両立できない。スマホは静的フル幅、スクロール演出は PC のみ。） */
@media (max-width: 575px) {
  .cleo-hero__track { height: auto; }
  .cleo-hero__stage {
    position: static;
    height: auto;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 28px;
    padding: 116px 18px 60px;
    overflow: visible;
  }
  .cleo-hero__glow { display: none; }

  /* 端末：ほぼ全幅 */
  .cleo-device {
    width: min(92vw, 460px);
    margin: 0 auto;
    transform: none;
    will-change: auto;
  }

  /* コピー：全幅・常時表示（スクロール連動の淡出はしない） */
  .cleo-hero__copy {
    display: block;
    position: static;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    max-width: 100%;
    /* text-align: left; */
    margin: 0;
    transform: none;
    opacity: 1;
  }
  .cleo-eyebrow { font-size: 13px; letter-spacing: 0.16em; margin-bottom: 10px; }
  .cleo-headline { font-size: clamp(23px, 7vw, 34px); line-height: 1.32; margin-bottom: 14px; }
  .cleo-lead { font-size: 14.5px; line-height: 1.8; color: rgba(234, 244, 251, 0.78); }
  /* 下のリスト（最新AIで…等）は中央に配置 */
  .cleo-hero__copy--right { text-align: center; }
  .cleo-points { gap: 13px; display: inline-grid; text-align: left; margin: 0 auto; }
  .cleo-points li { font-size: 15px; line-height: 1.55; padding-left: 18px; }
  .cleo-points li::before { top: 0.62em; }
}

/* モーション無効：演出を止め、完成形（--p:1）で静的表示 */
@media (prefers-reduced-motion: reduce) {
  .cleo-hero { --p: 1 !important; }
  .cleo-device { will-change: auto; }
}
