/* =========================================================
   deco.css  装飾の層(写真・模様・動き)

   ワイヤー(Figma を写した tokens〜sections の CSS)の上に重ねる層。
   このファイルを外すとワイヤーの見た目に戻る。ページを ?wire 付きで開くと、
   このファイルと、HTML の .deco の要素が外れる。

   装飾の決まり(足すときも、このどれかに当てはめる)
   - 墨と炎: Adobe Stock の本物の素材を切り抜いて、使う色で塗った画像(assets/img/deco/。tools/make_images.py で作る)。
             CSS のマスク(mask-image: url())は使わない(index.html を直接開いたときや、
             画像を別のドメインに置いたときに、ブラウザがマスクの画像を読み込まないため)。
             墨は「異能」が出てくる場面だけに使う。炎は熱を見せたい場面に使い、
             半透明にしない(紫と黄が混ざってくすむため)
   - 点:     数える・並べる・区切る記号は、丸い点にする
   - 刷り:   紫と黄の2色で刷ったように見せる。影は版がずれた形で、
             白と黄の面では紫、紫の面では黄

   目次
    0. 値
    1. 全体(紙のざらつき、セクションの番号、写真、炎、出てくる動き、「異能」の強調、一覧の点)
    2. ヘッダー
    3. メインビジュアル
    4. 帯(流れる文字)
    5〜17. セクション(ページの上から順)
   18. スクロールの演出(慣性スクロール、進み具合の線、1字ずつの文字)と、寄ってくるボタン
   19. 動きを減らす設定のとき
   ========================================================= */

/* =========================================================
   0. 値
   ========================================================= */
:root {
  /* 黄を少し強く(色相は Figma の #F0FC6F と同じで、鮮やかさを上げた色)。ワイヤーは Figma の色のまま */
  --yellow: #EFFF3D;
  /* 整った文字(一覧、スケジュール、FAQ、フォームなど)の書体。英数字が欧文の IBM Plex Sans と
     一緒に作られていて、日付や Stage1、PMF がきれいにそろう。ワイヤーは Figma どおり Noto Sans JP */
  --ff-noto: "IBM Plex Sans JP", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  /* 見出しと文の書体。ワイヤーの Shippori Antique B1 と Shojumaru を、ゴシックの Noto Sans JP に置き換える
     (変数の名前はワイヤーのまま)。Google Fonts の配信版で palt が効く */
  --ff-shippori: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-shoju: var(--ff-shippori);
  --ls-shippori: 0em;
  --fw-black: 900;                /* キャッチ、セクションの見出し、番号 */
  --fw-bold: 700;                 /* 小見出し、大きな文、ボタン、帯 */
  --fw-text: 500;                 /* 文 */
  --ink: #1E0640;                 /* 紫を重ねて刷った濃い色(シルエット、写真の暗いところ) */
  --night: #10032A;               /* メインビジュアルのいちばん暗い色 */
  --shadow: calc(8 * var(--u));   /* 版のずれ(カードの影)の大きさ */
  --dots-v: url("../img/deco/dots-v-light.svg");   /* セクション番号の下の点(紫の面では dark) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-brush: cubic-bezier(.7, 0, .2, 1);
}
.is-purple, .p-mv, .l-footer { --dots-v: url("../img/deco/dots-v-dark.svg"); }
@media (max-width: 767px) {
  :root { --shadow: 5px; }
}

/* =========================================================
   1. 全体
   ========================================================= */

/* 紙のざらつき。色の付いた面にだけ、背景の色に「ソフトライト」で重ねる */
.l-sec.is-purple,
.l-sec.is-yellow,
.p-mv__bg,
.l-footer {
  background-image: url("../img/deco/grain.png");
  background-size: 180px 180px;
  background-blend-mode: soft-light;
}

/* ---------- 文字の太さ ----------
   ワイヤーの書体は太さが1種類なので、ゴシックに替えたぶんの太さをここで決める */
.p-mv__catch,
.c-title,
.p-cv__copy,
.c-point__label,
.p-st__num { font-weight: var(--fw-black); }
.c-h40,
.p-about__lead,
.l-sec h3,
.p-mv__term,
.p-mv__entry,
.l-header__entry,
.c-tape__group,
.p-cv__button { font-weight: var(--fw-bold); }
.c-t24,
.p-mv__sub,
.l-header__nav a { font-weight: var(--fw-text); }
/* 見出しが2行に折り返したとき(スマホ)に、行と行がくっつかないように(ワイヤーの行の高さは Shippori 用) */
.c-title { line-height: 1.2; }

/* キーボードで選んだときの枠: 白と黄の面では紫(紫の面は base.css の黄のまま) */
.l-sec:not(.is-purple) :focus-visible { outline-color: var(--purple); }

/* 帯が画面の外にはみ出しても、横にスクロールしないように */
main, .l-footer { overflow-x: clip; }

/* セクションを重ねの基準にする(写真や模様をセクションの中に閉じこめる) */
.l-sec,
.l-footer {
  position: relative;
  isolation: isolate;
}

/* ---------- セクションの番号(PC の左の余白に縦に置く。例: 01 ABOUT) ---------- */
main { counter-reset: sec; }
.l-sec { counter-increment: sec; }
#about        { --label: "ABOUT"; }
#recommend    { --label: "RECOMMEND"; }
#entrepreneur { --label: "INOU ENTREPRENEUR"; }
#program      { --label: "PROGRAM"; }
#stage        { --label: "STAGE"; }
#outcome      { --label: "OUTCOME"; }
#schedule     { --label: "SCHEDULE"; }
#buddy        { --label: "BUDDY"; }
#requirements { --label: "REQUIREMENTS"; }
#sereal       { --label: "SEREAL"; }
#voice        { --label: "VOICE"; }
#entry        { --label: "ENTRY"; }
#faq          { --label: "FAQ"; }
.l-sec::after {
  content: counter(sec, decimal-leading-zero) "\2002\2002" var(--label);
  position: absolute;
  left: calc(64 * var(--u));
  top: calc(96 * var(--u));
  z-index: 1;
  padding-bottom: 60px;
  writing-mode: vertical-rl;
  font-family: var(--ff-noto);
  font-size: calc(12px * var(--fs-scale));
  line-height: 1;
  letter-spacing: .24em;
  white-space: nowrap;
  background: var(--dots-v) no-repeat 50% 100% / 10px 40px;   /* 番号の下に点を4つ */
  pointer-events: none;
}
@media (max-width: 1023px) {
  .l-sec::after { display: none; }
}

/* ---------- 写真(.c-photo) ----------
   白黒にして、面の色に「ソフトライト」で重ねる。明るいところは明るい紫、暗いところは深い紫になる。
   上と下は面の色に溶かす。写真ごとに --photo-b(明るさ)と --photo-c(コントラスト)で調整する。
   スクロールに合わせて少しずらすのは deco.js */
.c-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: inherit;
  background-blend-mode: inherit;          /* background の一括指定には入らないので、別に受け継ぐ */
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
}
.c-photo img {
  position: absolute;
  left: 0;
  top: -60px;
  width: 100%;
  height: calc(100% + 120px);
  max-width: none;
  object-fit: cover;
  filter: grayscale(1) brightness(var(--photo-b, 1.1)) contrast(var(--photo-c, 1.35));
  mix-blend-mode: soft-light;
  will-change: translate;
}

/* ---------- 炎(.c-flames) ----------
   炎の写真を網点にした画像を、セクションの下の端から燃え上がるように置く。動かさない。
   向きを変えた2枚目(::after)を少しずらして低く重ね、炎に奥行きを出す。
   色は --flame の画像で、セクションごとに替える(黄、明るい紫、紫) */
.c-flames { --flame: url("../img/deco/flames-yellow.png"); }
.c-flames,
.c-flames::after {
  background: var(--flame) repeat-x var(--fx, 0) 100% / auto 100%;
}
.c-flames {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: var(--flame-h, 26%);
  z-index: 1;                       /* 写真の網点より手前 */
  pointer-events: none;
}
.c-flames::after {
  content: "";
  position: absolute;
  inset: 0;
  --fx: 37%;
  scale: -1 .7;
  transform-origin: 50% 100%;
}
/* セクションに直に置く炎(写真の箱の外)は、文字より後ろに */
.l-sec > .c-flames {
  z-index: -1;
  height: var(--flame-h);
}

/* ---------- 出てくる動き ----------
   deco.js が、画面の外にある要素に data-reveal を付け、画面に入ると .is-in を付ける */
.has-anim [data-reveal] {
  opacity: 0;
  translate: 0 calc(40 * var(--u));
  /* 後ろの3つは、触れたときの動き(transform、影、背景の色)を消さないため */
  transition:
    opacity .9s var(--ease-out) var(--d, 0s),
    translate 1.1s var(--ease-out) var(--d, 0s),
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    background-color .25s;
}
.has-anim [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* 見出し: 文字が下から現れ、下線が左から引かれる */
.has-anim .c-title[data-reveal] { translate: none; opacity: 1; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out) var(--d, 0s); }
.has-anim .c-title[data-reveal].is-in { clip-path: inset(-10% -5% -20% -5%); }
.has-anim .c-title[data-reveal]::after { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-brush) calc(var(--d, 0s) + .35s); }
.has-anim .c-title[data-reveal].is-in::after { transform: none; }

/* Point のバッジ: 判子を押すように */
.has-anim [data-reveal="stamp"] { translate: none; scale: 1.8; rotate: 8deg; transition: opacity .25s ease-out var(--d, 0s), scale .45s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s), rotate .45s var(--ease-out) var(--d, 0s); }
.has-anim [data-reveal="stamp"].is-in { scale: 1; rotate: 0deg; }

/* 「異能」の後ろの線: 左から引かれる */
.has-anim .mk[data-reveal] { opacity: 1; translate: none; }
.has-anim .mk[data-reveal]::before { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-brush) calc(var(--d, 0s) + .5s); }
.has-anim .mk[data-reveal].is-in::before { clip-path: inset(0 -10% 0 0); }

/* ---------- 「異能」の強調(.mk) ----------
   白い面では、字の後ろに筆で引いた黄色の線。紫の面では黄色の文字にする */
.mk { position: relative; }
.mk::before {
  content: "";
  position: absolute;
  left: -.18em;
  right: -.24em;
  top: 22%;
  bottom: -6%;
  z-index: -1;
  background: url("../img/deco/brush-yellow.png") no-repeat center / 100% 100%;
  rotate: -1.5deg;
}
.is-purple .mk { color: var(--yellow); }
.is-purple .mk::before { content: none; }

/* ---------- 一覧の点: 丸い点(紫の面では黄) ---------- */
.c-ul { list-style: none; }
.c-ul li { position: relative; }
.c-ul li::before {
  content: "";
  position: absolute;
  left: calc(-18 * var(--u));
  top: calc(var(--lh-noto) * .5em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.is-purple .c-ul li::before { background: var(--yellow); }
@media (max-width: 767px) {
  .c-ul li::before { left: -15px; top: calc(1.7 * .5em - 3px); }
}

/* =========================================================
   2. ヘッダー
   ========================================================= */
.l-header__nav a { position: relative; transition: color .25s; }
/* 触れると、字の下に黄色の点 */
.l-header__nav a::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  scale: 0;
  transition: scale .3s cubic-bezier(.3, 1.8, .5, 1);
}
.l-header__nav a:hover::after { scale: 1; }
.l-header__entry { transition: background-color .25s, translate .45s var(--ease-out); }

/* PC: メニューの区切りの線と「申し込む」を、同じ高さの列にそろえる */
@media (min-width: 1024px) {
  .l-header__nav a {
    height: 168px;
    padding: 26px 11px 0;
    letter-spacing: .16em;
    border-color: rgb(255 255 255 / .28);
  }
  .l-header__entry { height: 168px; letter-spacing: .34em; }
}

/* スマホとタブレットのメニュー: 開くと「=」が「×」になり、項目が順に出てくる */
@media (max-width: 1023px) {
  .l-header__menu span:not(.u-visually-hidden) { transition: translate .3s var(--ease-out), rotate .3s var(--ease-out); }
  .l-header__menu[aria-expanded="true"] span:nth-child(1) { translate: 0 3.75px; rotate: 45deg; }
  .l-header__menu[aria-expanded="true"] span:nth-child(2) { translate: 0 -3.75px; rotate: -45deg; }
  .l-header__menu[aria-expanded="true"] + .l-header__nav {
    background-image: url("../img/deco/grain.png");
    background-size: 180px 180px;
    background-blend-mode: soft-light;
    overflow: hidden;
  }
  /* 筆文字の「異能」を大きく薄く */
  .l-header__menu[aria-expanded="true"] + .l-header__nav::before {
    content: "";
    position: absolute;
    right: -30%;
    bottom: 4%;
    width: 130%;
    aspect-ratio: 766.424 / 447.951;
    background: url("../img/logo/inou-brush.svg") no-repeat center / contain;   /* ロゴの筆文字は白 */
    opacity: .07;
    rotate: -8deg;
    pointer-events: none;
  }
  .l-header__menu[aria-expanded="true"] + .l-header__nav ul { position: relative; }   /* 透かしより前に */
  .l-header__menu[aria-expanded="true"] + .l-header__nav li { animation: menu-in .6s var(--ease-out) both; }
  .l-header__menu[aria-expanded="true"] + .l-header__nav li:nth-child(2) { animation-delay: .05s; }
  .l-header__menu[aria-expanded="true"] + .l-header__nav li:nth-child(3) { animation-delay: .1s; }
  .l-header__menu[aria-expanded="true"] + .l-header__nav li:nth-child(4) { animation-delay: .15s; }
  .l-header__menu[aria-expanded="true"] + .l-header__nav li:nth-child(5) { animation-delay: .2s; }
  .l-header__menu[aria-expanded="true"] + .l-header__nav li:nth-child(6) { animation-delay: .25s; }
}
@keyframes menu-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* スマホ: メインビジュアルの「申し込む」が見えているあいだは、画面の下の「申し込む」をしまう */
@media (max-width: 767px) {
  .is-mv-entry-visible .l-header__entry { translate: 0 100%; }
}

/* =========================================================
   3. メインビジュアル
   ========================================================= */
.p-mv { isolation: isolate; --pf: 1; }

/* 背景の写真(2色にしたもの)。マウスに合わせて少し動く(--mx, --my は deco.js が渡す) */
.p-mv__bg {
  position: absolute;
  inset: -24px;
  z-index: -1;
  overflow: hidden;
  background-color: var(--night);
  translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -12px);
  transition: translate .8s var(--ease-out);
}
.p-mv__bg img {
  position: absolute;
  left: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 50%;
}
/* キャッチのある左だけを少し沈めて、黄色と白の文字を読みやすくする(色は --ink) */
.p-mv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgb(30 6 64 / .34) 0%, rgb(30 6 64 / .12) 36%, transparent 60%),
    linear-gradient(to bottom, rgb(30 6 64 / .18) 0%, transparent 24%, transparent 74%, rgb(30 6 64 / .3) 100%);
}
/* 炎は、ロゴより目立たないように明るい紫で */
.p-mv .c-flames { --flame: url("../img/deco/flames-lilac.png"); --flame-h: 21%; opacity: .55; }

/* キャッチ: ゴシックは Shippori Antique B1 より字の幅が広いので、少し小さくして字間を詰める(ロゴにかからないように)。
   Figma で1字ずつ詰めた量(mv.css の .k01〜.k12)は Shippori 用なので、ここでは使わない */
.p-mv__catch { letter-spacing: var(--ls-catch, -.04em); }
.p-mv__catch span { letter-spacing: inherit; }
@media (min-width: 768px) {
  .p-mv__catch { font-size: calc(calc(var(--fs-catch, 120) * var(--u)) * var(--fs-scale)); }
  .p-mv__catch .is-s { font-size: calc(calc(var(--fs-catch, 120) * .77 * var(--u)) * var(--fs-scale)); }
}

/* 文字の色: キャッチは「イノウ」と「キノウ」(と括弧)だけ黄、ほかは白 */
.p-mv__catch { color: var(--white); }
.p-mv__catch.is-1 > span:not(.is-s),
.p-mv__catch.is-2 > span:not(.is-s) { color: var(--yellow); }
.p-mv__sub { color: var(--white); }
.p-mv__term { color: var(--yellow); }
.p-mv__term::after { background: var(--yellow); }

/* ロゴの後ろに、墨のしずくを黄色で */
.p-mv__splash {
  position: absolute;
  left: 30%;
  top: -26%;
  width: 50%;
  aspect-ratio: 595 / 593;
  background: url("../img/deco/drops-left-yellow.png") no-repeat center / contain;
  scale: 1.2;
  rotate: -18deg;
  pointer-events: none;
  translate: calc(var(--mx, 0) * 26px) calc(var(--my, 0) * 18px);
  transition: translate .6s var(--ease-out);
}

/* 申し込む: 最初から黄色で塗って、ページでいちばん目立つボタンにする(右上の「申し込む」と同じ色)。
   触れると白が左から満ちる */
.p-mv__entry {
  overflow: hidden;
  isolation: isolate;
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--purple);
  transition: border-color .45s var(--ease-brush);
}
.p-mv__entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-brush);
}
.p-mv__entry:hover { background: var(--yellow); color: var(--purple); border-color: var(--white); }
.p-mv__entry:hover::before { transform: none; transform-origin: left; }

/* 下の「Scroll」: 白い点の列を、黄色の点がひとつずつ降りていく */
.p-mv__scroll {
  position: absolute;
  left: calc(64 * var(--u));
  bottom: calc(150 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-shippori);
  font-size: calc(11px * var(--fs-scale));
  letter-spacing: .3em;
  writing-mode: vertical-rl;
  color: var(--white);
}
.p-mv__scroll::after {
  content: "";
  width: 6px;
  height: 70px;
  background:
    radial-gradient(circle closest-side, var(--yellow) 96%, transparent) 0 0 / 6px 10px no-repeat,
    radial-gradient(circle closest-side, rgb(255 255 255 / .6) 62%, transparent 72%) 0 0 / 6px 10px repeat-y;
  animation: scrollbar 2.1s steps(7) infinite;
}
@keyframes scrollbar {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 70px, 0 0; }
}

/* ---------- スクロールの奥行き(パララックス) ----------
   deco.js がスクロールした量を --sy(px の数)で渡す。数字が速さで、0 なら画面と同じに流れる。
   奥の写真はゆっくり遅れ、手前のキャッチと墨は速く上へ抜ける。
   (位置や最初の動きは translate を使っているので、ここは transform で重ねる) */
.p-mv__bg img  { transform: translateY(calc(var(--sy, 0) * var(--pf) * .42px)); will-change: transform; }
.p-mv__logo    { transform: translateY(calc(var(--sy, 0) * var(--pf) * -.1px)); will-change: transform; }
.p-mv__catches { transform: translateY(calc(var(--sy, 0) * var(--pf) * -.24px)); will-change: transform; }
.p-mv__splash  { transform: translateY(calc(var(--sy, 0) * var(--pf) * -.32px)); }

/* ---------- 最初の動き(書体の読み込みを待ってから、deco.js が .is-loaded を付ける) ---------- */
.has-anim .p-mv__bg img { opacity: 0; scale: 1.12; }
.has-anim .p-mv__catch,
.has-anim .p-mv__logo .is-dojo,
.has-anim .p-mv__logo .is-en,
.has-anim .p-mv__sub,
.has-anim .p-mv__term,
.has-anim .p-mv__entry,
.has-anim .p-mv__scroll,
.has-anim .p-mv__splash { opacity: 0; }
.has-anim .p-mv__logo .is-brush { clip-path: inset(0 100% 0 0); }
.has-anim .p-mv__term::after { transform: scaleX(0); transform-origin: left; }

.has-anim.is-loaded .p-mv__bg img { animation: mv-photo 2.6s var(--ease-out) forwards; }
.has-anim.is-loaded .p-mv__catch { animation: mv-up 1s var(--ease-out) forwards; }
.has-anim.is-loaded .p-mv__catch.is-1 { animation-delay: .15s; }
.has-anim.is-loaded .p-mv__catch.is-2 { animation-delay: .28s; }
.has-anim.is-loaded .p-mv__catch.is-3 { animation-delay: .41s; }
.has-anim.is-loaded .p-mv__logo .is-brush { animation: mv-brush 1.05s var(--ease-brush) .6s forwards; }
.has-anim.is-loaded .p-mv__splash { animation: mv-splash 1.2s var(--ease-out) 1.05s forwards; }
.has-anim.is-loaded .p-mv__logo .is-dojo { animation: mv-up 1s var(--ease-out) 1.1s forwards; }
.has-anim.is-loaded .p-mv__logo .is-en { animation: mv-up 1s var(--ease-out) 1.25s forwards; }
.has-anim.is-loaded .p-mv__sub { animation: mv-up 1s var(--ease-out) 1.4s forwards; }
.has-anim.is-loaded .p-mv__term { animation: mv-up 1s var(--ease-out) 1.52s forwards; }
.has-anim.is-loaded .p-mv__entry { animation: mv-up 1s var(--ease-out) 1.64s forwards; }
.has-anim.is-loaded .p-mv__scroll { animation: mv-fade 1s ease-out 2s forwards; }
.has-anim.is-loaded .p-mv__term::after { animation: mv-line .8s var(--ease-brush) 2s forwards; }

@keyframes mv-photo  { to { opacity: 1; scale: 1; } }
@keyframes mv-up     { from { opacity: 0; translate: 0 calc(36 * var(--u)); } to { opacity: 1; translate: 0 0; } }
@keyframes mv-fade   { to { opacity: 1; } }
@keyframes mv-brush  { from { clip-path: inset(0 100% 0 0); scale: 1.06; } to { clip-path: inset(-10% -10% -10% -10%); scale: 1; } }
@keyframes mv-splash { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1.2; } }
@keyframes mv-line   { to { transform: none; } }

@media (max-width: 767px) {
  .p-mv { --pf: .55; }
  .p-mv__bg img { object-position: 50% 30%; }
  .p-mv__scroll { display: none; }
}

/* =========================================================
   4. 帯(流れる文字)
   セクションの境目に斜めに重ねる。高さは 0 なので、レイアウトは変わらない。
   文字を繰り返して流すのは deco.js
   ========================================================= */
.c-tapes {
  position: relative;
  z-index: 5;
  height: 0;
  pointer-events: none;
}
.c-tape {
  position: absolute;
  left: -10vw;
  top: 0;
  width: 120vw;
  height: calc(68 * var(--u));
  min-height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  translate: 0 -50%;
  rotate: var(--rot, -3deg);
}
.c-tape.is-yellow { background: var(--yellow); color: var(--purple); }
.c-tape.is-purple { background: var(--purple); color: var(--white); border-block: 2px solid var(--yellow); }
.c-tape__track {
  display: flex;
  flex: none;
  animation: tape var(--dur, 40s) linear infinite;
  animation-direction: var(--dir, normal);
}
.c-tape__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: calc(28 * var(--u));
  padding-right: calc(28 * var(--u));
  font-family: var(--ff-shippori);
  font-size: calc(max(18px, calc(30 * var(--u))) * var(--fs-scale));
  letter-spacing: var(--ls-shippori);
  line-height: 1;
  white-space: nowrap;
}
.c-tape__group .is-en { letter-spacing: .06em; }
.c-tape__dot {                     /* 区切りの点 */
  flex: none;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: currentColor;
}
.c-tape.is-purple .c-tape__dot { background: var(--yellow); }
@keyframes tape { to { transform: translateX(-50%); } }

/* メインビジュアルの下は2本を交差させ、応募の上は1本 */
.c-tapes.is-mv .c-tape.is-yellow { --rot: -3.2deg; --dur: 46s; }
.c-tapes.is-mv .c-tape.is-purple { --rot: 2.4deg; --dur: 60s; --dir: reverse; top: calc(10 * var(--u)); }
.c-tapes.is-cv .c-tape.is-yellow { --rot: 2deg; --dur: 52s; }

@media (max-width: 767px) {
  .c-tape { height: 44px; }
  .c-tape__group { font-size: calc(17px * var(--fs-scale)); gap: 16px; padding-right: 16px; }
}

/* =========================================================
   5. 異能道場とは(白): 大きく払った筆の跡を薄く敷く
   ========================================================= */
.p-about::before {
  content: "";
  position: absolute;
  right: calc(-120 * var(--u));
  top: calc(140 * var(--u));
  z-index: -1;
  width: calc(900 * var(--u));
  aspect-ratio: 1000 / 720;
  background: url("../img/deco/sweep-purple.png") no-repeat center / contain;
  opacity: .07;
  rotate: -8deg;
}
@media (max-width: 767px) {
  .p-about::before { width: 120vw; right: -30vw; top: 120px; }
}

/* =========================================================
   6. 黄の面(おすすめ、期待する成果)と、こんなスタートアップにおすすめ
   ========================================================= */
/* 黄の面のすみに、筆先の線と網点 */
.l-sec.is-yellow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("../img/deco/flicks-purple.png") no-repeat 104% -2% / min(46%, 640px) auto,
    radial-gradient(circle, rgb(106 27 196 / .22) 1.3px, transparent 1.8px) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(70% 60% at 100% 0%, #000, transparent 70%), radial-gradient(60% 50% at 0% 100%, #000, transparent 70%);
          mask-image: radial-gradient(70% 60% at 100% 0%, #000, transparent 70%), radial-gradient(60% 50% at 0% 100%, #000, transparent 70%);
}

/* カード: 紫の版のずれ。触れると浮く */
.p-rec__card {
  box-shadow: var(--shadow) var(--shadow) 0 var(--purple);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.p-rec__card:hover {
  transform: translate(calc(-4 * var(--u)), calc(-4 * var(--u)));
  box-shadow: calc(var(--shadow) + 4 * var(--u)) calc(var(--shadow) + 4 * var(--u)) 0 var(--purple);
}
/* アイコン(Tabler Icons。MIT)を紫の線で。後ろに黄色の丸を右下へずらして重ねる */
.p-rec__icon {
  position: relative;
  background: none;
  isolation: isolate;
}
.p-rec__icon::before,
.p-rec__icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.p-rec__icon::before {
  left: 22%;
  top: 22%;
  width: 78%;
  height: 78%;
  z-index: -1;
  border-radius: 50%;
  background: var(--yellow);
}
.p-rec__icon::after {
  inset: 6%;
  background: var(--icon) no-repeat center / contain;   /* アイコンの SVG は紫の線 */
}
.p-rec__card:nth-child(1) { --icon: url("../img/icon/tabler-route.svg"); }
.p-rec__card:nth-child(2) { --icon: url("../img/icon/tabler-chess-knight.svg"); }
.p-rec__card:nth-child(3) { --icon: url("../img/icon/tabler-presentation.svg"); }
.p-rec__card:nth-child(4) { --icon: url("../img/icon/tabler-flame.svg"); }

/* =========================================================
   7. 異能起業家とは(紫): 3つの異能のアイコン、下から炎
   ========================================================= */
.p-ent { padding-bottom: calc(220 * var(--u)); }   /* 下の余白は炎のぶん広げる */
.p-ent > .c-flames { --flame: url("../img/deco/flames-lilac.png"); --flame-h: calc(230 * var(--u)); opacity: .7; }

/* 3つの異能の区切り: 点線(space で並べて、端の点が欠けないように) */
.p-ent__type { position: relative; }
.p-ent__type + .p-ent__type::before {
  content: "";
  position: absolute;
  left: calc(-12 * var(--u));
  top: 0;
  bottom: 0;
  width: 3px;
  translate: -1px 0;
  background: radial-gradient(circle closest-side, rgb(255 255 255 / .45) 90%, transparent) 0 0 / 3px 9px space;
}
/* アイコン: 「こんなスタートアップにおすすめ」と同じ Tabler Icons の紫の線。
   白い丸に置き、黄の版のずれを右下に重ねる。ワイヤーでは白い四角のまま */
.p-ent__icon {
  position: relative;
  border-radius: 50%;
  background: var(--white) var(--icon) no-repeat center / 58%;
  box-shadow: calc(10 * var(--u)) calc(10 * var(--u)) 0 var(--yellow);
}
.p-ent__type:nth-child(1) { --icon: url("../img/icon/tabler-target-arrow.svg"); }
.p-ent__type:nth-child(2) { --icon: url("../img/icon/tabler-cpu.svg"); }
.p-ent__type:nth-child(3) { --icon: url("../img/icon/tabler-user-bolt.svg"); }
.p-ent__type .p-ent__icon { margin-block: calc(24 * var(--u)) calc(24 * var(--u)); }
.p-ent__type .c-t24 { text-wrap: pretty; word-break: auto-phrase; }   /* 最後の行に1字だけ残らないように */
@media (max-width: 767px) {
  .p-ent { padding-bottom: 120px; }
  .p-ent > .c-flames { --flame-h: 120px; }
  .p-ent__type + .p-ent__type::before { display: none; }
  .p-ent__icon { box-shadow: 5px 5px 0 var(--yellow); }
  .p-ent__type .p-ent__icon { margin-block: 8px; }
}

/* =========================================================
   8. プログラムについて(白): イラストの後ろに、縁が網点の黄色い丸
   ========================================================= */
.p-pt__fig { isolation: isolate; overflow: visible; }
.p-pt__fig::before {
  content: "";
  position: absolute;
  inset: -2% 0 2% 0;
  z-index: -1;
  background: url("../img/deco/disc-yellow.png") no-repeat center / contain;
  transition: scale .9s var(--ease-out);
}
/* イラストは枠の中で切り抜いているので、枠を overflow: visible にしたぶん、ここで切る */
.p-pt__fig img {
  clip-path: inset(3.83% 19.31% 3.83% 19.31%);
  transition: translate .6s var(--ease-out);
}
.p-pt:hover .p-pt__fig::before { scale: 1.06; }
.p-pt:hover .p-pt__fig img { translate: 0 calc(-8 * var(--u)); }

/* =========================================================
   9. 内容(紫): 写真、Stage の番号をカードの上の辺にまたがる丸い印に
   ========================================================= */
.p-stage { --photo-b: 1.15; }   /* 自社のイベント写真(stage.jpg)は明るいので、文字が読めるよう控えめに */
.p-stage__cards { padding-top: calc(36 * var(--u)); }   /* 丸い印がカードの上にはみ出すぶん */
.p-st {
  position: relative;
  padding-top: calc(24 * var(--u) + 20 * var(--u));
  box-shadow: var(--shadow) var(--shadow) 0 var(--yellow);
}
/* 紫の丸の中に、小さな Stage と大きな数字。書体はカードの見出しと同じ */
.p-st__no {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  display: grid;
  place-content: center;
  justify-items: center;
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 calc(4 * var(--u)) var(--white);       /* 白い縁でカードの辺から切り離す */
  color: var(--yellow);
  font-family: var(--ff-shippori);
  letter-spacing: 0;
  line-height: 1;
}
.p-st__label {
  font-size: calc(max(10px, calc(13 * var(--u))) * var(--fs-scale));
  letter-spacing: .08em;
}
.p-st__num {
  margin-top: calc(1 * var(--u));
  font-size: calc(max(30px, calc(42 * var(--u))) * var(--fs-scale));
}
@media (max-width: 767px) {
  .p-stage__cards { padding-top: 32px; gap: 52px; }
  .p-st { padding-top: 44px; }
  .p-st__no { box-shadow: 0 0 0 3px var(--white); }
}

/* =========================================================
   10. 期待する成果(黄): 下から紫の炎(黄の面の模様は 6.)
   ========================================================= */
.p-out { padding-bottom: calc(190 * var(--u)); }   /* 下の余白は炎のぶん広げる */
.p-out > .c-flames { --flame: url("../img/deco/flames-purple.png"); --flame-h: calc(190 * var(--u)); }
@media (max-width: 767px) {
  .p-out { padding-bottom: 110px; }
  .p-out > .c-flames { --flame-h: 105px; }
}

/* =========================================================
   11. スケジュール(白): 左に点線と、行ごとの点。行に触れると色がつく
   ========================================================= */
.p-sch__table { position: relative; }
.p-sch__table::after {
  content: "";
  position: absolute;
  left: calc(-40 * var(--u) - .5px);
  top: 0;
  bottom: 0;
  z-index: -1;                       /* 行の点の下に通す */
  width: 3px;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--purple) 45%, var(--white)) 90%, transparent) 0 0 / 3px 9px space;
}
.p-sch__row { position: relative; }
.p-sch__row::before {
  content: "";
  position: absolute;
  left: calc(-40 * var(--u) - 5px);
  top: calc(50% - 8 * var(--u) - 6px);
  width: 12px;
  height: 12px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: var(--white);
  transition: background-color .25s, scale .25s var(--ease-out);
}
.p-sch__row:first-child::before { background: var(--yellow); scale: 1.35; }   /* いま募集中 */
.p-sch__cells { transition: background-color .25s; margin-inline: calc(-12 * var(--u)); padding-inline: calc(12 * var(--u)); }
.p-sch__row:hover .p-sch__cells { background: color-mix(in srgb, var(--yellow) 55%, transparent); }
.p-sch__row:hover::before { background: var(--purple); }
@media (max-width: 767px) {
  .p-sch__table { padding-left: 24px; }
  .p-sch__table::after { left: 4.5px; }
  .p-sch__row::before { left: -24px; top: calc(50% - 14px); }
  .p-sch__table::before { margin-left: -24px; }
  .p-sch__row::after { margin-left: -24px; }
}

/* =========================================================
   12. 伴走バディ(紫): 道場の床に並んだ剣道の面の写真(人の顔は写さない)、カードに黄の版のずれ
   ========================================================= */
.p-buddy { --photo-b: 0.8; --photo-c: 0.9; }   /* SEREALの制作物の写真(buddy.jpg)。細かい絵柄が文字とぶつかるので、ぼかして暗く、コントラストも弱める */
.p-buddy .c-photo img { filter: grayscale(1) blur(3px) brightness(var(--photo-b)) contrast(var(--photo-c)); }
.p-bd {
  box-shadow: var(--shadow) var(--shadow) 0 var(--yellow);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.p-bd:hover {
  transform: translateY(calc(-6 * var(--u)));
  box-shadow: var(--shadow) calc(var(--shadow) + 6 * var(--u)) 0 var(--yellow);
}
.p-bd__photo img { transition: scale .8s var(--ease-out); }
.p-bd:hover .p-bd__photo img { scale: 1.06; }

/* =========================================================
   13. SEREAL(紫): 写真、区切りの線を点線に
   ========================================================= */
.p-ser { --photo-b: 0.8; --photo-c: 0.9; }   /* SEREALの制作物の写真(sereal.jpg)。細かい絵柄が文字とぶつかるので、ぼかして暗く、コントラストも弱める */
.p-ser .c-photo img { filter: grayscale(1) blur(3px) brightness(var(--photo-b)) contrast(var(--photo-c)); }
.p-ser__rule {
  height: 3px;
  background: radial-gradient(circle closest-side, rgb(255 255 255 / .6) 90%, transparent) 0 0 / 9px 3px space;
}

/* =========================================================
   14. 過去参加者の声(白): 黄のカードに紫の版のずれ
   ========================================================= */
.p-vc { box-shadow: var(--shadow) var(--shadow) 0 var(--purple); }

/* =========================================================
   15. 応募(紫): 写真に網点、「異能たち」のまわりに墨、下から黄色の炎
   ========================================================= */
.p-cv { padding-block: calc(140 * var(--u)) calc(120 * var(--u)); --photo-b: 1.15; --photo-c: 1.5; }
/* ワイヤーの写真(Figma のサンプル)は隠して、Adobe Stock の写真(.c-photo)に替える */
.p-cv__photo { display: none; }
.p-cv .c-photo {
  -webkit-mask-image: none;
          mask-image: none;
}
.p-cv .c-photo img { object-position: 50% 35%; }
/* 網点と、まわりを少し暗く(色は --ink) */
.p-cv .c-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgb(30 6 64 / .32) 1.2px, transparent 1.7px) 0 0 / 7px 7px,
    radial-gradient(110% 80% at 50% 45%, transparent 35%, rgb(30 6 64 / .5) 100%);
}
/* 「異能たち」のまわりに、墨のしぶきとしずくを黄色で */
.p-cv__copy { position: relative; }
.p-cv__copy::before,
.p-cv__copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.p-cv__copy::before {
  left: calc(70 * var(--u));
  top: calc(-150 * var(--u));
  width: calc(260 * var(--u));
  aspect-ratio: 868 / 1000;
  background: url("../img/deco/splat-yellow.png") no-repeat center / contain;
  rotate: -30deg;
}
.p-cv__copy::after {
  right: calc(-150 * var(--u));
  bottom: calc(-60 * var(--u));
  width: calc(380 * var(--u));
  aspect-ratio: 992 / 621;
  background: url("../img/deco/drops-yellow.png") no-repeat center / contain;
  rotate: 168deg;
  opacity: .85;
}
/* 応募の「申し込む」: マウスを乗せると地が白に */
.p-cv__button:hover { background: var(--white); }
.p-cv__button.is-outline:hover { background: var(--yellow); color: var(--purple); }
@media (max-width: 767px) {
  .p-cv { padding-block: 96px 80px; }
  /* 墨が「異能たち」の字にかからないよう、外へ寄せる */
  .p-cv__copy::before { left: -6px; top: -64px; width: 110px; }
  .p-cv__copy::after { right: -56px; bottom: -64px; width: 150px; }
}

/* =========================================================
   16. よくある質問(白): 丸い Q と A の印。開け閉めをなめらかにするのは deco.js
   ========================================================= */
.p-faq__list details { transition: background-color .25s, box-shadow .25s; }
.p-faq__list details:hover { background: color-mix(in srgb, var(--yellow) 35%, transparent); }
.p-faq__list details.is-open { box-shadow: inset 0 0 0 1px var(--purple); }
.p-faq__q { align-items: flex-start; }
.p-faq__q b {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.6em;
  height: 1.6em;
  margin-top: calc((var(--lh-noto) / .9 - 1.6) * .5em);   /* 質問の1行目の高さのまん中にそろえる */
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: .9em;
  line-height: 1;
  text-box: trim-both cap alphabetic;    /* 字の上下の余白を切って、丸のまん中に置く */
}
.p-faq__body { overflow: hidden; }
.p-faq__a {
  display: flex;
  gap: calc(8 * var(--u));
}
.p-faq__a::before {
  content: "A";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(1.6em * 20 / 16 * .9);
  height: calc(1.6em * 20 / 16 * .9);
  margin-top: .1em;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--purple);   /* 白い面の上の黄色の丸には、紫の輪 */
  color: var(--purple);
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
/* 「+」の向きは、開閉の動きに合わせて .is-open で変える(open だけだと閉じる動きの途中で戻るため) */
.p-faq__icon { transition: transform .35s var(--ease-out); }
details[open] .p-faq__icon { transform: none; }
details.is-open .p-faq__icon { transform: rotate(45deg); }

/* =========================================================
   17. フッター(紫): 黒帯を締める手もとの写真(顔は写さない)、大きなロゴ、下から炎
   ========================================================= */
.l-footer {
  --photo-b: .9;                   /* 白い道着が明るくなりすぎて、白いロゴが埋もれないように */
  padding-top: calc(120 * var(--u));
}
.l-footer .c-photo {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
}
.l-footer .c-photo img { object-position: 50% 45%; }   /* 帯の結び目と手もとを、ロゴの下に見せる */
.l-footer .c-flames { --flame-h: 52%; opacity: .55; }
.l-footer > p { text-shadow: 0 0 10px rgb(30 6 64 / .7); }   /* 炎の網点の上でも、コピーライトが読めるように */
.l-footer .c-flames { --flame: url("../img/deco/flames-lilac.png"); }
.l-footer__logo {
  position: relative;
  width: calc(560 * var(--u));
  min-width: 260px;
  aspect-ratio: 909 / 448;
  margin: 0 auto calc(72 * var(--u));
}
/* ロゴの3点の重ね方は、メインビジュアル(mv.css)と同じ */
.l-footer__logo img { position: absolute; max-width: none; height: auto; }
.l-footer__logo .is-brush { left: 0;      top: 0;      width: 84.31%; }
.l-footer__logo .is-dojo  { left: 67.73%; top: 37.69%; width: 32.27%; }
.l-footer__logo .is-en    { left: 51.12%; top: 78.57%; width: 48.64%; }
@media (max-width: 767px) {
  .l-footer { padding-top: 72px; }
  /* 画面の下に固定した「申し込む」(高さ 56px)に隠れないよう、そのぶん上げる */
  .l-footer .c-flames { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); --flame-h: 46%; }
  .l-footer__logo { width: 72vw; margin-bottom: 40px; }
}

/* =========================================================
   18. スクロールの演出と、寄ってくるボタン(動かすのは deco.js)
   ========================================================= */
/* 慣性スクロール(Lenis)を使っているあいだは、ブラウザのなめらかなスクロールを切る */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* 進み具合の線: 画面のいちばん上に、黄の線と紫の細い線を重ねて刷る(右端の「申し込む」の手前まで) */
.c-progress {
  position: fixed;
  left: 0;
  top: 0;
  right: var(--tab-w);
  z-index: 35;
  height: 3px;
  background: var(--yellow);
  box-shadow: 0 1px 0 var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* 1字ずつ濃くなる文字(.c-char は deco.js が作る) */
.c-char { transition: opacity .25s linear; }

/* 「申し込む」が、マウスに少し寄ってくる(--gx, --gy は deco.js が渡す) */
.p-cv__button { translate: var(--gx, 0px) var(--gy, 0px); transition: background-color .25s, color .25s, translate .5s var(--ease-out); }
@media (min-width: 768px) {
  .p-mv__entry {
    transform: translateX(-50%) translate(var(--gx, 0px), var(--gy, 0px));
    transition: border-color .45s var(--ease-brush), transform .5s var(--ease-out);
  }
}

/* =========================================================
   19. 動きを減らす設定のとき(出てくる動き、パララックス、慣性スクロールなどは、deco.js と head のスクリプトで止める)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .c-tape__track { animation: none; }
  .p-mv__scroll::after { animation: none; }
}
