/*
 * Figma 69:20（幅 1512 のデザイン）の座標をそのまま使い、zoom で画面幅に合わせる。
 * 縦位置は Figma の y からブラウザ枠ぶんの 159 を引いた値（= ページ上の位置）。
 * 変数は scroll.js が設定する：
 *   --s       画面幅 / デザイン幅（PC 1512・SP 393。767px 以下で SP）
 *   --vhd     画面の高さ（デザイン px）
 *   --t       01 の横スクロールが始まる位置（デザイン px）。アプリの列が画面の天地中央に来る位置
 *   --hscroll 横スクロールのために確保する縦スクロール量（デザイン px）
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --s: 1;
  --dw: 1512px;           /* デザイン幅（PC 1512 / SP 393） */
  --vhd: 823px;
  --t: 2091px;
  --hscroll: 2769px;
  --bg: #f9efeb;
  --ink: #141414;
  --red: #d7261e;
  --blue: #006fbc;
  /* 字間（読みやすさ優先）。Figma（-2px / -6px）より少し開け、約物は kern.js で個別に詰める */
  --track-body: -0.06em;  /* 本文 18px */
  --track-small: -0.03em; /* 説明文 14〜16px */
  --track-sub: -0.1em;    /* 小見出し 30px（明朝） */
  --kern: -0.4em;         /* 約物（、。「」）の空きを詰める量 */
  --gothic: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --mincho: "Zen Antique", "Hiragino Mincho ProN", serif;
  --bodoni: "Bodoni Moda", "Didot", serif;
  /* スマホ画面の影（Figma の公式アプリ一覧と同じ）。黒の半透明は「乗算」と同じ結果になり、
     下の炎の色を保ったまま暗くするので背景に馴染む */
  --phone-shadow: -3px 3px 4px rgba(0, 0, 0, 0.25);
}

html,
body {
  margin: 0;
  background: var(--bg);
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: none;
}

p,
ul,
h1,
h2 {
  margin: 0;
  padding: 0;
}

/* PC / SP の出し分け */
.sp-only,
br.sp {
  display: none;
}

/* 約物詰め（kern.js が span で包む） */
.kern-close {
  letter-spacing: var(--kern);
}

.kern-open {
  margin-left: var(--kern);
}

/* ===== Background（画面に固定） ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__inner {
  position: relative;
  width: var(--dw);
  height: var(--vhd);
  zoom: var(--s);
  background: var(--bg); /* multiply の下地 */
}

.bg__inner > * {
  position: absolute;
}

.flame__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flame.is-live .flame__fallback {
  opacity: 0;
}

/* Group 241 */
.flame--left {
  left: -274.62px;
  top: 237.99px;
  width: 1054.17px;
  height: 811.25px;
}

/* Group 1 */
.flame--right {
  left: 720px;
  top: -338.13px;
  width: 1120.91px;
  height: 867px;
}

.bg__flames {
  left: 0;
  top: 0;
  width: var(--dw);
  height: var(--vhd);
}

.bg__flames canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg__flames.is-live canvas {
  opacity: 1;
}

.bg__type {
  left: 243px;
  top: 0;
  width: 1268.873px;
  height: 823px;
  mix-blend-mode: multiply;
}

/* ===== Page ===== */
.page {
  position: relative;
  z-index: 1;
  width: var(--dw);
  height: 4505px; /* scroll.js が横スクロール分を含めて上書き */
  zoom: var(--s);
  /* はみ出した分を切る。clip は古い iPhone の Safari で効かず、横にはみ出すとページ全体が縮んで
     下に白い空白が出るので hidden にする（中に sticky は無い） */
  overflow: hidden;
}

.page section,
.page section > *,
.hs-layer section,
.hs__zoom > *,
.hs__strip > *,
:is(.page, .hs-layer) .at {
  position: absolute;
}

/* ----- FV ----- */
.fv__headline {
  left: 40px;
  top: 41px;
  width: 539px;
  height: 277px;
}

.fv__headline img,
.intro__heading img,
.hs__heading img {
  width: 100%;
  height: 100%;
}

.fv__dashboard {
  left: 470.35px;
  top: 205.89px;
  width: 661.647px;
  height: 416.928px;
}

.fv__phone {
  left: 380.66px;
  top: 318.42px;
  width: 145.019px;
  height: 303.221px;
}

.fv__lead {
  left: 1207px;
  top: 546px;
  font-family: var(--gothic);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: var(--track-small);
  font-feature-settings: "palt";
  white-space: nowrap;
}

/* Figma で横 75% に縮めている */
.fv__lead span {
  display: inline-block;
  transform: scaleX(0.75);
  transform-origin: left top;
}

.fv__cta {
  left: 1207px;
  top: 684px;
  width: 120px;
}

.fv__cta,
.pill-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  height: 39px;
  padding: 10px 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #000;
  border-radius: 50px;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 14px;
  line-height: normal;
  letter-spacing: var(--track-small);
  white-space: nowrap;
  text-decoration: none;
}

/* ホバーで赤が斜めに満ちる */
.fv__cta::before,
.pill-btn::before {
  content: "";
  position: absolute;
  inset: -2px -30%;
  z-index: -1;
  background: var(--red);
  transform: translateX(-105%) skewX(-24deg);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.fv__cta img,
.pill-btn img {
  width: 10px;
  height: 10px;
  transition: filter 0.3s ease;
}

.fv__cta span,
.pill-btn span {
  transition: color 0.3s ease;
}

.fv__cta:hover,
.fv__cta:focus-visible,
.pill-btn:hover,
.pill-btn:focus-visible {
  border-color: var(--red);
}

.fv__cta:hover::before,
.fv__cta:focus-visible::before,
.pill-btn:hover::before,
.pill-btn:focus-visible::before {
  transform: translateX(0) skewX(-24deg);
}

.fv__cta:hover span,
.fv__cta:focus-visible span,
.pill-btn:hover span,
.pill-btn:focus-visible span {
  color: #fff;
}

.fv__cta:hover img,
.fv__cta:focus-visible img,
.pill-btn:hover img,
.pill-btn:focus-visible img {
  filter: invert(1);
}

.fv__cta:active,
.pill-btn:active {
  scale: 0.96;
}

/* ----- Intro ----- */
.intro__heading {
  left: 483.1px;
  top: 1022.9px;
  width: 543.976px;
  height: 260.173px;
}

.intro__body {
  left: 483px;
  top: 1333px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-family: var(--gothic);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: var(--track-body);
  font-feature-settings: "palt";
  white-space: nowrap;
}

/* SP 用の改行版。上の display: flex が .sp-only の非表示を打ち消すので、ここで隠し直す */
.intro__body--sp {
  display: none;
}

/* ----- 01〜04（横スクロール。位置は scroll.js がセクションごとに設定） -----
 * --start  セクションの上端（デザイン px。前のセクションの横スクロール分も含めた実際の位置）
 * --t      固定が始まる位置（Figma どおりの位置。中身はここを基準に置く）
 * --dist   横スクロールのために確保する縦スクロール量（デザイン px）
 *
 * 横スクロールのセクションはページの zoom の外（.hs-layer）に置き、画面のピクセルで配置して
 * CSS の sticky で固定する。sticky はブラウザがスクロールと同時に切り替えるので、
 * 縦⇔横の切り替わりでガタつかない（zoom の中の sticky はスマホで揺れるため、zoom は中身だけにかける）。 */
.hs-layer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 0;
}

/* --lead：固定部分より上にある中身（「0X」・見出し・本文）の分だけ、箱を上に広げる量（scroll.js） */
.hs {
  left: 0;
  top: calc((var(--start, 0px) - var(--lead, 0px)) * var(--s));
  width: 100%;
  height: calc((var(--vhd) + var(--dist, 0px) + var(--lead, 0px)) * var(--s));
}

.hs-layer .hs__pin {
  position: sticky;
  top: calc(var(--lead, 0px) * var(--s) * -1); /* 広げた分だけ上で止める＝固定のタイミングは同じ */
  width: 100%;
  height: calc((var(--vhd) + var(--lead, 0px)) * var(--s));
  overflow: hidden;   /* 中身はすべて箱の中にあるので、横にはみ出す分だけが切れる（どの iPhone でも効く） */
}

/* 中身はデザイン px のまま、画面幅に合わせて拡縮（広げた分だけ下にずらす） */
.hs__zoom {
  position: absolute;
  left: 0;
  top: var(--lead, 0px);
  width: var(--dw);
  height: var(--vhd);
  zoom: var(--s);
}

.hs__strip {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hs__list {
  inset: 0;
  list-style: none;
}

/* 中身はページ上の位置（--x, --y）に置き、固定が始まる位置 --t を引く */
:is(.page, .hs-layer) .at {
  position: absolute;
  left: var(--x);
  top: calc(var(--y) - var(--t));
}

h3,
h4 {
  margin: 0;
}

.hs__num {
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 500;
  font-size: 300px;
  line-height: 144px;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.hs__heading {
  width: var(--w);
  height: 100px;
}

.hs__sub,
.hs__title {
  color: var(--ink);
  font-family: var(--mincho);
  font-weight: 400;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: var(--track-sub);
  white-space: nowrap;
}

.hs__title {
  will-change: transform;
}

/* サブコピーと本文（PC）は左端を揃えたひとかたまりで、横位置は scroll.js が決める
 *（画面の左右中央に置き、右の要素とは 200px 以上あける） */

.hs__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-family: var(--gothic);
  font-weight: 900;
  font-size: 18px;
  line-height: 2;
  letter-spacing: var(--track-body);
  white-space: nowrap;
}

.hs__body--left {
  translate: none;
}

/* アプリ画面 */
.phone {
  width: 165.7px;
  height: 349.8px;
  overflow: hidden;
  border: 6px solid #1a1a1a;
  border-radius: 22px;
  background: #0e0e0e;
  box-shadow: var(--phone-shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shot {
  width: 171.4px;
  height: 349.8px;
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 画像のまわりが透明なので、端末の形に沿って影を落とす */
  filter: drop-shadow(var(--phone-shadow));
}

.phone-frame {
  width: 171.4px;
  height: 349.8px;
  padding: 5.826px;
  border-radius: 18.75px;
  background: #2b3242;
  box-shadow: var(--phone-shadow);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 298.234 / 631.219;
  border-radius: 13.929px;
  object-fit: cover;
}

/* 端末の枠＋余白なしの画面（One Team）：Figma は枠 171×350・角丸 20、画面 160×338・角丸 18 */
.phone-frame--shot {
  width: 171px;
  height: 350px;
  padding: 6px 5.5px;
  border-radius: 20px;
}

.phone-frame--shot img {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 18px;
}

.feature-name {
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 500;
  font-size: 50px;
  line-height: 46px;
  letter-spacing: -2px;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.feature-desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  font-family: var(--gothic);
  letter-spacing: var(--track-small);
  font-feature-settings: "palt";
}

.feature-desc__title {
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
  line-height: normal;
}

.feature-desc__list,
.feature-desc__text {
  color: #4a4a45;
  font-weight: 400;
  font-size: 14px;
  line-height: 21.6px;
}

.feature-desc__list {
  list-style: none;
}

.feature-desc__list li::before {
  content: "・";
}

.feature-desc__note {
  color: #5a5a55;
  font-size: 10px;
  line-height: 17.6px;
}

/* 搭載機能一覧 */
.spec {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.spec__title {
  color: var(--ink);
  letter-spacing: var(--track-small);
  font-family: var(--gothic);
  font-weight: 900;
  font-size: 16px;
  line-height: 23px; /* Figma の高さ */
}

.spec__grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 50px;
  list-style: none;
}

.spec__grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px; /* Figma の行の高さ（normal だと約 20px になり一覧が縦に伸びる） */
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  white-space: nowrap;
}

.spec__grid li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}

/* 管理画面のスクリーンショット */
.screen {
  width: 343.636px;
  height: var(--h);
  overflow: hidden;
  border: 5.258px solid #2a2a2a;
  border-radius: 7.886px;
  background: #fff;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 管理画面のポイント（01〜03） */
.points {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 525px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.point__num {
  flex: none;
  min-width: 40px;
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 400;
  font-size: 28px;
  line-height: normal;
}

.point__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--gothic);
  color: #000;
  letter-spacing: var(--track-small);
  white-space: nowrap;
}

.point__title {
  font-weight: 700;
  font-size: 18px;
  line-height: normal;
}

.point__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 24.7px;
}

/* ===== 横スクロール：進み具合のバー（試合時間のように進む） ===== */
.hs__progress {
  left: 0;
  bottom: 0;
  width: var(--dw);
  height: 4px;
  background: rgba(20, 20, 20, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hs.is-active .hs__progress {
  opacity: 1;
}

.hs__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0); /* scroll.js が毎フレーム更新 */
  transform-origin: left center;
}

/* 横スクロールの速さに合わせて傾く（スピード感）。--skew は scroll.js が設定 */
/* 横スクロールの速さに合わせて傾く（スピード感）。--skew は scroll.js が
 * なめらかにした横の動きの速さから出す。文字もレイヤーにしてちらつきを抑える */
.hs__strip .phone,
.hs__strip .phone-shot,
.hs__strip .phone-frame,
.hs__strip .screen,
.hs__strip .feature-name {
  transform: skewX(var(--skew, 0deg));
  will-change: transform;
}

/* ===== 登場アニメーション（html.anim のときだけ。anim.js が .is-in を付ける） ===== */
html.anim [data-reveal] {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-kick: cubic-bezier(0.22, 1.35, 0.36, 1);
}

/* wipe：赤いバーが斜めに走り抜け、その後ろから現れる */
html.anim [data-reveal="wipe"] {
  overflow: hidden;
}

.wipe__inner {
  display: block;
  width: 100%;
  height: 100%;
}

.wipe__bar {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -15%;
  width: 130%;
  background: var(--red);
  transform: translateX(-110%) skewX(-20deg);
  pointer-events: none;
}

html.anim [data-reveal="wipe"] .wipe__inner {
  clip-path: inset(-20% 100% -20% 0);
}

html.anim [data-reveal="wipe"].is-in .wipe__inner {
  animation: wipe-reveal 0.75s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0s) both;
}

html.anim [data-reveal="wipe"].is-in .wipe__bar {
  animation: wipe-bar 0.75s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0s) both;
}

@keyframes wipe-reveal {
  0%, 30% { clip-path: inset(-20% 100% -20% 0); }
  100% { clip-path: inset(-20% 0 -20% 0); }
}

@keyframes wipe-bar {
  0% { transform: translateX(-110%) skewX(-20deg); }
  45% { transform: translateX(0) skewX(-20deg); }
  100% { transform: translateX(110%) skewX(-20deg); }
}

/* 縦長の見出し（スマホの締めの見出しなど）は、斜めにした分バーの角が枠内に残るので、
 * 走り抜ける距離を伸ばし、最後は隠して確実に消す */
@keyframes wipe-bar-tall {
  0% { transform: translateX(-200%) skewX(-20deg); }
  45% { transform: translateX(0) skewX(-20deg); }
  99% { transform: translateX(200%) skewX(-20deg); visibility: visible; }
  100% { transform: translateX(200%) skewX(-20deg); visibility: hidden; }
}

@media (max-width: 767px) {
  .wipe__bar {
    transform: translateX(-200%) skewX(-20deg);
  }

  html.anim [data-reveal="wipe"].is-in .wipe__bar {
    animation-name: wipe-bar-tall;
  }
}

/* slam：大きく・ぼけた状態から叩きつけるように着地 */
html.anim [data-reveal="slam"] {
  opacity: 0;
  scale: 1.8;
  translate: 0 -12%;
  filter: blur(16px);
}

html.anim [data-reveal="slam"].is-in {
  opacity: 1;
  scale: 1;
  translate: 0 0;
  filter: blur(0);
  transition:
    opacity 0.2s linear var(--d, 0s),
    scale 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s),
    translate 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s),
    filter 0.4s ease-out var(--d, 0s);
}

/* kick：右から傾いて勢いよく入り、少し跳ね返る */
html.anim [data-reveal="kick"],
html.anim [data-reveal="kick-left"] {
  opacity: 0;
  translate: 180px 40px;
  rotate: 10deg;
}

html.anim [data-reveal="kick-left"] {
  translate: -180px 40px;
  rotate: -10deg;
}

html.anim [data-reveal="kick"].is-in,
html.anim [data-reveal="kick-left"].is-in {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  transition:
    opacity 0.3s linear var(--d, 0s),
    translate 0.9s var(--ease-kick) var(--d, 0s),
    rotate 0.9s var(--ease-kick) var(--d, 0s);
}

/* name：右から素早くスライド */
html.anim [data-reveal="name"] {
  opacity: 0;
  translate: 90px 0;
}

html.anim [data-reveal="name"].is-in {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.3s linear var(--d, 0s),
    translate 0.7s var(--ease-out) var(--d, 0s);
}

/* rise：下からせり上がる */
html.anim [data-reveal="rise"],
html.anim [data-reveal="rise-children"] > * {
  opacity: 0;
  translate: 0 36px;
}

html.anim [data-reveal="rise"].is-in,
html.anim [data-reveal="rise-children"].is-in > * {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.5s linear var(--d, 0s),
    translate 0.8s var(--ease-out) var(--d, 0s);
}

/* 背景の GLYFULL：スプラッシュが抜けたら右から滑り込む */
html.anim .bg__type {
  opacity: 0;
}

html.anim.is-ready .bg__type {
  opacity: 1;
  animation: bgtype-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes bgtype-in {
  from { opacity: 0; translate: 14% 0; }
  to { opacity: 1; translate: 0 0; }
}

/* ===== 03：伴走支援 ===== */
.steps .step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.step__num {
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 700;
  font-size: 41px;
  line-height: normal;
  white-space: nowrap;
}

.step__title {
  margin-bottom: 2px; /* 見出しと箇条書きの間を 12px に */
  color: var(--ink);
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  letter-spacing: var(--track-small);
  white-space: nowrap;
}

.step__list {
  list-style: none;
  color: #4a4a45;
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 13px;
  line-height: 24.7px;
  letter-spacing: var(--track-small);
  white-space: nowrap;
}

.step__list li::before {
  content: "・";
}

/* ステップ間の矢印（>>>） */
.chevrons {
  overflow: visible;
}

.chevrons polyline {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
}

/* 伴走範囲 */
.scope {
  width: 418px;
  height: 140px;
}

.scope > * {
  position: absolute;
}

.scope__title {
  left: 0;
  top: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.scope__note {
  left: 228px;
  top: 7px;
  color: #5a5a55;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
}

.scope__list {
  left: 0;
  top: 49px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.scope__list--2 {
  left: 231px;
}

.scope__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  white-space: nowrap;
}

.scope__list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}

/* 矢印：順に描かれたあと、前へ前へと流れ続ける */
html.anim [data-reveal="chevron"] polyline {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}

html.anim [data-reveal="chevron"].is-in polyline {
  animation:
    chevron-draw 0.5s cubic-bezier(0.7, 0, 0.2, 1) both,
    chevron-flow 1.4s ease-in-out 0.9s infinite;
}

html.anim [data-reveal="chevron"].is-in polyline:nth-child(2) {
  animation-delay: 0.12s, 1.05s;
}

html.anim [data-reveal="chevron"].is-in polyline:nth-child(3) {
  animation-delay: 0.24s, 1.2s;
}

@keyframes chevron-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes chevron-flow {
  0%, 100% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 0.25; }
}


/* ===== 04：プログラム（ビジネススクール / 新規事業開発） ===== */
/* 2 行（「学ぶ力が、企業の／未来をつくる。」など）。行の高さは他の小見出しと同じ 36px
 *（25.5px だと登場アニメの切り抜きで文字の下が切れるため） */
.hs__title--prog {
  line-height: 36px;
}

.prog-sub {
  color: #000;
  font-family: var(--mincho);
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
}

.prog-label {
  color: var(--ink);
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 11px;
  line-height: normal;
  letter-spacing: var(--track-small);
  white-space: nowrap; /* 帯の右端近くでは使える幅が狭く、1 文字ずつ折り返して縦書きのようになるため */
}

.chips {
  display: flex;
  gap: 10px;
  list-style: none;
}

.chips li {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-family: var(--gothic);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.psteps .pstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--w);
  list-style: none;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  white-space: nowrap;
}

.pstep__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 13px; /* 番号と見出しの間（10px）＋見出しの上の余白（3px） */
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--bodoni);
  font-size: 14px;
  line-height: 1;
}

.pstep__title {
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
}

.pstep__text {
  color: #4a4a45;
  font-size: 12px;
  line-height: 20.4px;
}

.parrow {
  width: 70.34px;
  height: 48.4px;
}

.hs-note {
  color: #000;
  font-family: var(--gothic);
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
}

/* ===== PRICE / ABOUT / 締め ===== */
.page .after {
  position: absolute;
  left: 0;
  top: var(--after-top, 0px); /* 横スクロールで伸びた分（scroll.js） */
  width: var(--dw);
  height: 0;
  --t: 0px;
}

.big-word {
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 500;
  font-size: 300px;
  line-height: 144px;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.sec-heading {
  width: var(--w);
  height: var(--h);
}

.sec-heading img,
.closing img {
  width: 100%;
  height: 100%;
}

.price {
  display: grid;
  grid-template-columns: repeat(3, 389.33px);
  gap: 16px;
  width: 1200px;
  list-style: none;
}

/* すりガラス風：白 20%＋白の 1px 枠＋背景（炎）をぼかす */
.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 466px;
  padding: 32px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.price-card__en {
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 500;
  font-size: 12px;
  line-height: normal;
  letter-spacing: 2.88px;
}

.price-card__title {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  letter-spacing: var(--track-sub);
}

.price-card__lead {
  font-family: var(--gothic);
  font-weight: 900;
  font-size: 14px;
  line-height: normal;
  letter-spacing: var(--track-small);
}

.price-card__list {
  padding-top: 8px;
  list-style: none;
  font-family: var(--gothic);
  font-size: 14px;
  letter-spacing: var(--track-small);
  white-space: nowrap;
}

.price-card__list li {
  position: relative;
  height: 40px;
  padding: 13px 0 0 16px;
  line-height: normal;
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.about-body {
  width: 450px;
  font-family: var(--gothic);
  font-weight: 900;
  font-size: 18px;
  line-height: 2;
  letter-spacing: var(--track-body);
  white-space: nowrap;
}

.about-logo {
  width: 432px;
  height: 140px;
}

.closing {
  width: 999.95px;
  height: 460px;
}

/* ----- フッター ----- */
.site-footer {
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
}

.footer-logo {
  width: 200px;
  height: 200.953px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 122px;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: normal;
  text-align: right;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.footer-nav a {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
}

.footer-copy small {
  font-size: inherit;
}

html.anim [data-reveal="chevron-img"] {
  opacity: 0;
  translate: -24px 0;
}

html.anim [data-reveal="chevron-img"].is-in {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.5s linear var(--d, 0s), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}

/* ===================================================================
 * SP（767px 以下）：Figma 86:1179（幅 393）の座標。縦位置は Figma の y − 108
 * 横スクロールの中身は PC と同じ並びを、セクションごとに --sp-ox / --sp-oy ずらして使う
 * =================================================================== */
@media (max-width: 767px) {
  :root {
    --dw: 393px;
  }

  .pc-only,
  br.pc {
    display: none;
  }

  img.sp-only {
    display: block;
  }

  br.sp {
    display: inline;
  }

  /* 背景 */
  .flame--left {
    left: -233.364px;
    top: 388.3px;
    width: 684.817px;
    height: 552.098px;
  }

  .flame--right {
    left: -119.494px;
    top: -196.9994px;
    width: 721.278px;
    height: 582.556px;
  }

  .bg__type--sp {
    left: 1.37px;
    top: 0;
    width: 391.757px;
    height: 254.096px;
  }

  /* FV */
  .fv__headline {
    left: 18px;
    top: 23px;
    width: 309.94px;
    height: 159.28px;
  }

  .fv__dashboard {
    left: 94.47px;
    top: 256.82px;
    width: 357.53px;
    height: 225.29px;
  }

  .fv__phone {
    left: 46px;
    top: 317.63px;
    width: 78.36px;
    height: 163.85px;
  }

  .fv__lead {
    left: 158px;
    top: 537px;
  }

  .fv__cta {
    left: 158px;
    top: 675px;
  }

  /* イントロ */
  .intro__heading {
    left: 30px;
    top: 944px;
    width: 333px;
    height: 159.27px;
  }

  /* SP のイントロ本文は Figma の改行どおり（18px・行間 2） */
  .intro__body--sp {
    display: flex;
  }

  .intro__body {
    left: 30px;
    top: 1164px;
    width: 333px;
    font-size: 18px;
    line-height: 2;
  }

  /* 02 の管理画面：SP は大きめ（--sw / --sh） */
  .screen {
    width: var(--sw, 343.636px);
    height: var(--sh, var(--h));
    border-width: 6.5px;
  }

  /* 02 のポイント：SP は間隔 30px */
  .points {
    gap: 30px;
    width: 357px;
  }

  /* 01〜03：位置は --sx / --sy（コピー）か、PC の位置＋セクションのずれ（横スクロールの中身） */
  .hs__strip {
    --ox: var(--sp-ox, 0px);
    --oy: var(--sp-oy, 0px);
  }

  :is(.page, .hs-layer) .at {
    left: calc(var(--x) + var(--ox, 0px) + var(--sp-dx, 0px));
    top: calc(var(--y) + var(--oy, 0px) + var(--sp-dy, 0px) - var(--t));
  }

  /* SP だけの 2 本目の横スクロール（01 の「注目の機能」） */
  .hs-layer section.hs.sp-only {
    display: block;
  }

  /* アプリ一覧の説明文：SP は名前のすぐ下（PC より 95px 上）に、幅 137px で置く。
   * 箇条書きは Figma の改行どおり、2 行目は 1 字下げ */
  .app-list .feature-desc {
    --sp-dy: -95px;
    width: 137px;
  }

  .app-list .feature-desc__list li {
    padding-left: 1em;
    text-indent: -1em;
    white-space: nowrap;
  }

  .app-list .feature-desc__note {
    white-space: normal;
  }

  ul.sp-only {
    display: block;
  }

  :is(.page, .hs-layer) .at[style*="--sx"] {
    left: var(--sx);
    top: calc(var(--sy) - var(--t));
  }

  .hs__num {
    font-size: var(--sp-size, 150px);
  }

  .hs__heading {
    width: var(--sw);
    height: var(--sh);
  }

  .hs__heading-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.75px;
  }

  .hs__heading .hs__heading-sp img {
    width: auto;
    height: auto;
  }

  .hs__sub,
  .hs__body:not(.hs__body--left) {
    translate: none;
    width: 333px;
    white-space: normal;
  }

  /* PRICE・ABOUT（SP） */
  .big-word {
    font-size: 125px;
  }

  .sec-heading {
    width: var(--sw, var(--w));
    height: var(--sh, var(--h));
  }

  .price--sp {
    display: flex;
    gap: 20px;
    width: auto;
  }

  .price--sp .price-card {
    width: 332px;
    flex: none;
  }

  .about-body {
    width: 353px;
    white-space: normal;
  }

  .about-logo {
    width: 353px;
    height: 114.4px;
  }

  .closing {
    width: 353px;
    height: 687.1px;
  }
}

/* 横スクロールの中の登場は、横方向だけ・跳ね返りなしの落ち着いた動きにする
 *（縦の動き・回転・オーバーシュートが横スクロールと重なると、揺れて見えるため） */
html.anim .hs__strip [data-reveal="kick"],
html.anim .hs__strip [data-reveal="name"],
html.anim .hs__strip [data-reveal="rise"],
html.anim .hs__strip [data-reveal="rise-children"] > * {
  translate: 48px 0;
  rotate: 0deg;
}

html.anim .hs__strip [data-reveal="kick"].is-in,
html.anim .hs__strip [data-reveal="name"].is-in,
html.anim .hs__strip [data-reveal="rise"].is-in,
html.anim .hs__strip [data-reveal="rise-children"].is-in > * {
  translate: 0 0;
  transition:
    opacity 0.5s linear var(--d, 0s),
    translate 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}



/* ===== スプラッシュ（読み込み画面）。進み方は loader.js が .splash に段階のクラスを付けて決める =====
 *   .is-logo  カウントが消え、黒のロゴがドンと登場（赤い文字は .is-on が付いたものから順に）
 *   .is-out   ロゴがフェードアウト（裏で炎が入り、FV が始まる）
 * 背景は透明：後ろの背景（ベージュ＋粒＋炎）をそのまま見せる */
.splash {
  --logo: 415px;
  --count: 300px;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* JS が動かなかったときも必ず消える */
  animation: splash-failsafe 0s linear 12s forwards;
}

.splash > * {
  grid-area: 1 / 1;
}

/* 読み込み中は本文を隠す（背景だけを見せる） */
html.is-loading .page,
html.is-loading .hs-layer {
  visibility: hidden;
}

/* ① カウントアップ */
.splash__count {
  margin: 0;
  color: var(--red);
  font-family: var(--bodoni);
  font-weight: 500;
  font-size: calc(var(--count) * var(--s));
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.splash.is-logo .splash__count {
  opacity: 0;
  transform: scale(0.85);
}

/* ② ロゴ */
.splash__logo {
  position: relative;
  width: calc(var(--logo) * var(--s));
  aspect-ratio: 415 / 416.978;
  transition: opacity 0.7s ease;
}

.splash__black,
.splash__letters {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash__black {
  height: auto;
  opacity: 0;
}

/* 黒のロゴ：大きく・ぼけた状態から叩きつけるように着地（ドン！） */
.splash.is-logo .splash__black {
  animation: splash-slam 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

@keyframes splash-slam {
  0% { opacity: 0; transform: scale(1.6); filter: blur(14px); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* FOR SPORTS：1 文字ずつパッと出る（順番は loader.js がランダムに） */
.splash__ltr {
  opacity: 0;
  transform: scale(1.8);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.12s linear, transform 0.32s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.splash__ltr.is-on {
  opacity: 1;
  transform: scale(1);
}

/* ③ ロゴがフェードアウト */
.splash.is-out .splash__logo {
  opacity: 0;
}

.splash.is-done {
  display: none;
}

@keyframes splash-failsafe {
  to { visibility: hidden; }
}

@media (max-width: 767px) {
  .footer-meta,
  .footer-nav {
    align-items: center;
    text-align: center;
  }

  .splash {
    --logo: 250px;
    --count: 160px;
  }
}

/* 画面には出さず、検索エンジン・読み上げにだけ伝えるテキスト */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
