@charset "UTF-8";
/* =============================================================
   HANAPANA TECH — Top page
   白ベース × フルブリード × 巨大タイポ
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  /* 2026-09-04：クリーム(#fffdf3 / #fdf8ea)から、ややグレー寄りの白に変更（試行）。
     変数名は cream のままにしてある（41箇所で使っているので、確定したら改名する）。
     白(--paper/--cloud)との交互でセクションを区切る役目は変わらない。
     ちぎれ雲(bg_kumo-*.png)は純白なので、地色がグレーになったぶん逆に見えやすい。 */
  /* 一度 資料に合わせて緑寄り（#fbfdf9 / #ecf2e8）にしたが、
     「グレーだった部分はグレーのまま」との指示で 2026-09-09 に元の値へ戻した。
     地はニュートラルなまま、色はアクセントだけに乗せる方針。 */
  --cream:   #f7f9fb;   /* 2026-09-23 ブランド02：Warm White */
  --cream-2: #edf2f5;
  --cloud:   #ffffff;   /* 雲で囲うセクションの地。雲の画像は 2026-09-09 に廃止済み */
  --paper:   #ffffff;
  /* 900 よりさらに一段濃い墨。記事本文の <b> のように、地の文から
     はっきり浮かせたいところだけに使う。900 から各チャンネル 0x10 落とした値で、
     色みは 900 と同じ（純黒にすると本文の中で硬く見える） */
  --ink-1000: #07182a;
  --ink-900: #102a43;   /* Midnight Navy。見出し・強い文字 */
  /* 900 と 700 のちょうど中間。長文の本文を --ink-700 で組むと薄く感じるので、
     読ませる本文用に一段濃い墨を用意した（記事ページの .bl-article で使用） */
  --ink-800: #1f3a54;
  --ink-700: #3a4d61;
  --ink-500: #5b6472;   /* Graphite */
  --ink-300: #a1abb6;
  --line:      rgba(16,42,67,.10);
  --line-soft: rgba(16,42,67,.06);
  --ghost:     rgba(16,42,67,.045);

  /* --- hanapana brand（2026-09-23 にロゴ02の配色へ切り替え。旧値は各行の注記） --- */
  /* 2026-09-09：一度 青 →ダークグリーン（提案資料の配色）に振り替えたが、
     指示によりピンクへ差し戻した。緑一式は commit 1b9596a に残してある。
     ダークグリーンの実測値は
       #167361 / #0f5a4c / #0f3c2f / #0c302b / #204e40 / #ecf2e8 / #aa4937 / #f7ece7 */
  /* 2026-09-09：ピンクの用途（ボタン・CTA・ホバー）をすべてロゴの青に移した。
     ピンクはサイト内では未使用（logo.svg にはまだ残っている）。 */
  --hp-pink:    #fd6e93;   /* 現在サイト内では未使用 */
  --hp-pink-hi: #e87492;   /* 現在サイト内では未使用 */
  --hp-sky:     #087f8c;   /* Regulated Teal（ロゴ02）。ボタン・CTA・文字のアクセント。旧 #3792df */
  --hp-sky-hi:  #066a75;   /* ホバー。ティールを一段沈めた値 */
  --hp-navy:    #102a43;   /* Midnight Navy（ロゴ02） */
  --hp-yellow:  #f2b630;   /* 旧 --yellow */

  /* 8事業の色。虹色をやめ、ネイビー〜ティール〜シアンの濃淡にした（2026-09-23） */
  --sv1: #2d5a7b;
  --sv2: #1d6f86;
  --sv3: #0f8e9b;
  --sv4: #21b6c7;
  --sv5: #4cc3d2;
  --sv6: #3a8fb0;
  --sv7: #24476a;
  --sv8: #5b6472;
  --sv9: #087f8c;   /* 決済レグテック。本業なのでティールそのもの */

  /* ブランド色だけで組んだ虹（黄→緑はハナパナの黄緑を挟んで濁らせない） */
  /* 緑寄りの水色 → 青。色相を 185°→222° へ停止位置に比例して送り、
     中央の 52% はロゴの青そのもの。角度96deg・停止位置は初代の虹から変えていない。
     参考：虹版（初代）    #fd6e93 → #f2b630 → #a0c159 → #65bd8d → #62b1dd
           ダークグリーン版 #0f3c2f → #14614f → #167361 → #2a8a72 → #3fa287 */
  --signal: linear-gradient(96deg, #21b6c7 0%, #0f8e9b 38%, #087f8c 62%, #074c63 100%);   /* ロゴ02の3点の並び（シアン→ティール→濃いティール） */

  --f-jp: "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-en: "Inter", var(--f-jp);
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page: 1600px;
  --pad: 60px;
  --r-card: 26px;
  --r-panel: 20px;

  --sh-sm: 0 2px 12px rgba(16,42,67,.05);
  --sh-md: 0 14px 40px rgba(16,42,67,.08);
  --sh-lg: 0 30px 80px rgba(16,42,67,.12);
}

/* -------------------------------------------------------------
   2. Base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
/* .sec-ghost（装飾の巨大英字）は nowrap で意図的にページ端を突き抜ける。
   COMPANY のように見出しが右カラムにあると右へ数百px はみ出し、横スクロールと
   右端の白い余白が出る。要素は動かさず、横方向だけクリップして殺す。
   clip は hidden と違いスクロールコンテナを作らないので、position:fixed の
   ヘッダーや scroll-behavior:smooth に影響しない。 */
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* clip 未対応ブラウザ向けのフォールバック */
  overflow-x: clip;
}

body {
  background: var(--cream);
  color: var(--ink-700);
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .03em;
  font-feature-settings: "palt" 1;
  /* html と同じく clip にする。hidden は「スクロールコンテナ」を作ってしまい、
     中の position:sticky が一切効かなくなる（ブログの右カラムがこれで、
     固定されずに記事の頭に置き去りになっていた）。clip は箱を切るだけで
     スクロールコンテナを作らない。 */
  overflow-x: hidden;   /* clip 未対応ブラウザ向けのフォールバック */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(8,127,140,.22); }

h1, h2, h3, h4 { color: var(--ink-900); }

.inner { width: min(100% - var(--pad) * 2, var(--page)); margin-inline: auto; }
/* ちぎれた雲(bg_kumo-*.png)で上下を挟まれるセクションは、雲と同じ地色にする */
.cloudy { background: var(--cloud); }
/* 画面幅いっぱいに突き抜ける */
.full { width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); }

/* -------------------------------------------------------------
   3. Section head — ゴースト英字 + 巨大タイトル
   ------------------------------------------------------------- */
.sec { padding: 150px 0; position: relative; }

.sec-head { position: relative; padding-top: 34px; }
.sec-ghost {
  position: absolute;
  left: -.055em; top: -.3em;
  font-family: var(--f-en);
  font-size: clamp(86px, 14vw, 230px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ghost);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.sec-en {
  position: relative;
  font-family: var(--f-en);
  font-size: clamp(44px, 6.6vw, 108px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.03em;
  color: var(--ink-900);
}
/* 英語見出しの一文字目だけブランドの水色に */
.sec-en::first-letter { color: var(--hp-sky); }

.sec-jp {
  position: relative;
  margin-top: 14px;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: .1em;
}
.sec-jp::before {
  content: "";
  display: inline-block;
  width: 34px; height: 4px;
  border-radius: 4px;
  background: var(--signal);
  vertical-align: middle;
  margin-right: 14px;
}
.sec-lead {
  margin-top: 30px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 2.15;
  max-width: 640px;
  color: var(--ink-700);
}
/* 大きな言い切り */
.statement {
  font-size: clamp(28px, 3.9vw, 62px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.005em;
}

.gradient-text {
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 300px;
  padding: 26px 34px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  /* --mx/--my はカーソルに吸い付く磁力（JS）。何もしなければ 0 */
  position: relative;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
}
.btn .arw {
  display: block; flex: none;
  transition: transform .3s cubic-bezier(.3,0,.2,1);
}
/* 旧サイトの長い矢印。色は文字色を継承する */
.arw-i { display: block; width: 8px; height: 13px; fill: currentColor; flex: none; }
.arw-i.is-back { transform: scaleX(-1); }

.btn-primary { background: var(--hp-sky); color: #fff; box-shadow: 0 16px 36px rgba(8,127,140,.30); }

.btn-primary:hover { background: var(--hp-sky-hi); transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 4px)); box-shadow: 0 22px 48px rgba(8,127,140,.38); }
.btn-primary:hover .arw { transform: translateX(8px); }

.btn-dark { background: var(--hp-sky); color: #fff; box-shadow: 0 16px 36px rgba(8,127,140,.30); }
/* かつて .btn-dark の矢印が「丸いバッジ」だった頃の地色 rgba(255,255,255,.22) が
   ここに残っていた。細い矢印に変えたあと、8×13px の白い長方形が矢印の形に
   ぴったり張り付いた状態になっていたので削除（2026-09-04）。
   .btn-primary / .btn-line には元から無い指定で、こちらだけ浮いていた。 */
.btn-dark:hover { background: var(--hp-sky-hi); transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 4px)); box-shadow: 0 22px 48px rgba(8,127,140,.38); }
.btn-dark:hover .arw { transform: translateX(8px); }

.btn-line { background: #fff; color: var(--hp-sky); border: 1.5px solid var(--hp-sky); }

.btn-line:hover { background: var(--hp-sky); color: #fff; transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 4px)); box-shadow: 0 18px 40px rgba(8,127,140,.28); }
.btn-line:hover .arw { transform: translateX(8px); }

/* テキストリンク */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--hp-sky);
  transition: gap .25s ease;
}
.link-arrow:hover { gap: 15px; }


/* 途中で折り返したくない語 */
.nb { white-space: nowrap; }

/* =============================================================
   スクロール表示アニメーション
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 1.05s cubic-bezier(.16,.84,.44,1),
    transform 1.05s cubic-bezier(.16,.84,.44,1),
    filter .9s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.reveal.is-in.done { will-change: auto; }

/* --- 見出しブロックは、パーツごとに時間差で組み上げる --- */
.sec-head.reveal { opacity: 1; transform: none; filter: none; }

.sec-head .sec-ghost {
  opacity: 0;
  transform: translateX(46px);
  transition: opacity 1.4s ease .1s, transform 1.6s cubic-bezier(.16,.84,.44,1) .1s;
}
.sec-head.is-in .sec-ghost,
.is-in .sec-head .sec-ghost { opacity: 1; transform: none; }

/* 英字タイトルは1文字ずつ下から立ち上げる */
/* 単語のまとまり。ここで折り返さないので、割れるのは単語の切れ目だけになる */
.sec-en .wd { white-space: nowrap; }
.sec-en .chw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.sec-en .ch {
  display: inline-block;
  transform: translateY(105%) rotate(6deg);
  opacity: 0;
  transition:
    transform .95s cubic-bezier(.16,.84,.44,1) var(--d, 0ms),
    opacity .5s ease var(--d, 0ms);
}
.sec-head.is-in .sec-en .ch,
.is-in .sec-head .sec-en .ch { transform: none; opacity: 1; }
.sec-en .ch.first { color: var(--hp-sky); }

.sec-head .sec-jp,
.sec-head .sec-lead {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,.84,.44,1);
}
.sec-head .sec-jp   { transition-delay: .34s; }
.sec-head .sec-lead { transition-delay: .44s; }
.sec-head.is-in .sec-jp,
.sec-head.is-in .sec-lead,
.is-in .sec-head .sec-jp,
.is-in .sec-head .sec-lead { opacity: 1; transform: none; }
/* 見出し横のグラデ帯は左から伸ばす */
.sec-jp::before { transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16,.84,.44,1) .46s; }
.sec-head.is-in .sec-jp::before,
.is-in .sec-head .sec-jp::before { transform: scaleX(1); }

/* --- 画像はカーテンをめくって出す --- */
[data-cover] { position: relative; overflow: hidden; }
[data-cover]::after {
  content: "";
  position: absolute; inset: -1px; z-index: 2;
  background: var(--cover-bg, var(--cloud));
  transform: translateY(0);
  transition: transform 1.15s cubic-bezier(.76,0,.24,1) var(--cover-delay, .05s);
}
[data-cover] > img,
[data-cover] > picture > img {
  transform: scale(1.16);
  transition: transform 1.8s cubic-bezier(.18,.72,.28,1) var(--cover-delay, .05s);
}
.is-in [data-cover]::after,
.is-in[data-cover]::after { transform: translateY(-101%); }
.is-in [data-cover] > img,
.is-in[data-cover] > img { transform: none; }

/* --- 数字のカウントアップ --- */
.num-card .val { font-variant-numeric: tabular-nums; }
.num-card .bar { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.16,.84,.44,1) .1s; }
.num-card.is-in .bar { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .sec-head .sec-ghost, .sec-en .ch,
  .sec-head .sec-jp, .sec-head .sec-lead { opacity: 1 !important; transform: none !important; filter: none !important; }
  [data-cover]::after { display: none; }
  [data-cover] > img { transform: none !important; }
}

/* -------------------------------------------------------------
   4. Header
   ------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  gap: 40px;
  transition: transform .4s ease, background-color .4s ease, box-shadow .4s ease, padding .4s ease, opacity .7s ease;
}
.header.is-stuck {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* 1px の線ではなく、浮いて見える影で下と切る */
  box-shadow: 0 6px 22px rgba(16,42,67,.08);
  padding-block: 14px;
}
.header.is-hidden { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* ロゴはマーク＋HANAPANA の一体ロックアップ SVG（386.53×60.28）。
   マーク区画は全体の約 15.6% なので、320px 幅でマークは約 50px、
   ロゴ全体の高さは約 50px。スクロール後は同比率で 258px。 */
.brand img { width: 320px; transition: width .4s ease; }
.is-stuck .brand img { width: 258px; }
.brand-name {
  font-family: var(--f-en);
  font-size: 19px; font-weight: 800;
  letter-spacing: .01em; line-height: 1.1;
  color: var(--ink-900);
}
.brand-name small {
  display: block;
  font-family: var(--f-jp);
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; color: var(--ink-300);
}

.gnav { margin-left: auto; }
.gnav ul { display: flex; align-items: center; gap: 34px; }
.gnav a {
  position: relative;
  font-family: var(--f-en);
  font-size: 14px; font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-900);
  padding-block: 6px;
}
.gnav a::after {
  content: "";
  position: absolute; inset: auto 0 0;
  height: 3px; border-radius: 3px;
  background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.gnav a:hover::after { transform: scaleX(1); }

.nav-cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 26px;
  border-radius: 100px;
  background: var(--hp-sky);
  color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(8,127,140,.28);
  transition: transform .25s ease, background-color .25s ease;
}
.nav-cta:hover { background: var(--hp-sky-hi); transform: translateY(-2px); }

.hamburger {
  display: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  position: relative; flex: none;
  box-shadow: var(--sh-sm);
}
.hamburger span {
  position: absolute; left: 15px;
  width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger span:nth-child(1) { top: 19px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger span:nth-child(3) { top: 29px; }
.is-open .hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-open .hamburger span:nth-child(2) { opacity: 0; }
.is-open .hamburger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =============================================================
   5. HERO — 雲が横切って景色をめくるスライダー
   ============================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  /* スマホのベールが「下地とまったく同じ絵」を塗って画像をなじませるので、
     地のグラデーションは変数にして1か所で持つ（2か所に書くとズレて段差が出る）。 */
  --sky: linear-gradient(180deg, #d3ecef 0%, #e8f4f5 38%, #f7f9fb 82%);   /* 2026-09-23 空色→ティール寄りへ */
  background: var(--sky);
}
/* かつてここに、下端をちぎれた雲で閉じる .hero::after があった（bg_kumo-top.png・66px）。
   2026-09-09 に雲の装飾を廃止。ヒーローの地のグラデーションが #fafbfc で終わり、
   次のABOUTセクションの白とほぼ同色なので、雲が無くても段差にはならない。 */

/* かつてここに .hero-sky（bg_fv.jpg を .55 で敷いた「空の水彩」）があった。
   スライドの切り替わりで一瞬見えるのが気になるため 2026-09-09 に削除。
   隙間は .hero 自身のグラデーションが受け持つ。 */

/* --- スライド本体：縦5分割のスライスリビール --- */
.hero-stage { position: absolute; inset: 0; z-index: 1; --n: 5; }

.slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.slide-media { position: absolute; inset: 0; overflow: hidden; }

/* 1枚の写真を縦に分けた「窓」 */
.slide .col {
  position: absolute; top: 0; height: 100%;
  width: calc(100% / var(--n) + 1px);
  left: calc(var(--i) * 100% / var(--n));
  overflow: hidden;
  transform: translateY(101%);
  transition: transform 1.05s cubic-bezier(.72,0,.2,1);
  will-change: transform;
}
/* 窓と逆方向に動かして、写真自体は動かずに現れるように見せる */
.slide .col-in {
  position: absolute; inset: 0;
  overflow: hidden;
  transform: translateY(-101%);
  transition: transform 1.05s cubic-bezier(.72,0,.2,1);
  will-change: transform;
}
.slide .col img {
  position: absolute; top: 0;
  /* 窓は 100%（スクロールバー抜き）でタイルしているので、写真も同じ基準で置く。
     100vw（スクロールバー込み）を使うと右端に隙間が出る。
     .col の幅は「1列ぶん + 1px」なので、(100% - 1px) が正味の1列。 */
  left: calc(-1 * var(--i) * (100% - 1px));
  width: calc(var(--n) * (100% - 1px)); max-width: none; height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

/* 入場：左の列から順に下から立ち上がる */
.slide.is-on { opacity: 1; z-index: 2; }
.slide.is-on .col,
.slide.is-on .col-in {
  transform: none;
  transition-delay: calc(var(--i) * 78ms);
}
.slide.is-on .col img { animation: ken 5.8s linear forwards; }

/* 立ち上がりきったあとの静止状態 */
.slide.is-rest .col,
.slide.is-rest .col-in { transform: none; transition: none; }

/* 前の写真は、新しい写真が覆いきるまで下に置いたまま */
.slide.is-prev { opacity: 1; z-index: 1; }
.slide.is-prev .col,
.slide.is-prev .col-in { transform: none; transition: none; }

/* 寄りは 1.12 → 1.06 に弱めた（2026-09-04・指示）。
   元画像は 1920px 幅で、ヒーローの表示は 1905px。1.12 だと1コマ目に
   2134px 必要で11%引き伸ばしになり、そのぶん眠く見えていた。
   1.06 なら 2019px＝5%まで下がる。
   横の振り（translate）はそのまま。1.06 でも左右に3%＝57pxの
   はみ出しがあるので、1%（約20px）動かしても端は割れない。 */
@keyframes ken {
  from { transform: scale(1.06) translate(1%, .7%); }
  to   { transform: scale(1)    translate(0, 0); }
}
/* キービジュアルは上寄せでトリミング */
.hero-stage .slide:nth-child(4) .col img { object-position: center top; }

/* 自社写真はトリミング位置だけ調整（寄りの量は他のスライドと揃える） */
.slide.is-own .col img { object-position: center 42%; }

/* 白ベースを守るベール（左が濃い＝コピーを必ず読ませる）。
   もとはクリーム(#fffdf3)だったが、白(#fff)に変更。濃さ・角度・止まる位置は据え置き。 */
.hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    /* 左のコピー側だけ効かせて、写真は早めに素の状態へ戻す。
       抜けきる位置を 66% → 54% に手前へ寄せた（2026-09-04・指示で右半分をハッキリ）。
       ただし左は弱めていない。実測した制約は次のとおり：
         ・小さい文字（リード文）の右端は最大 40%（1・2枚目）
         ・大きい見出しの右端は最大 55.6%（2枚目）
         ・img_slid03（堺の街並み）はコピー側 0-42% が暗い（平均137・最暗0）ので、
           そこを薄くすると本文が読めなくなる
       → 0〜34% は従来とほぼ同じ濃さのまま、34% から急に落として 54% で 0 にする。
       50% 地点の濃さは .29 → .10 になり、右半分の写真が締まる。 */
    linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 20%, rgba(255,255,255,.60) 34%, rgba(255,255,255,.22) 45%, rgba(255,255,255,0) 54%),
    /* 天面のヘッダー用の板だけ残す（下端は雲で閉じるのでベールは薄く） */
    linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.45) 8%, rgba(255,255,255,0) 17%, rgba(255,255,255,0) 84%, rgba(255,255,255,.42) 100%);
}

/* --- 流れる雲 --- */
/* .cloud-band（流れる雲3層）と @keyframes drift は 2026-09-09 に削除。
   HTML側の要素ごと消している。青いドロップシャドウもここにあった。 */

/* --- ドローン ---
   .hero-sun（太陽）は 2026-09-09 に削除。黄色いドロップシャドウもここにあった。 */
.flyer { position: absolute; z-index: 6; pointer-events: none; }
.flyer .bob { animation: bob 3.6s ease-in-out infinite; }
.flyer-1 { top: 9%;  width: 140px; animation: cross 22s linear infinite; }
.flyer-2 { top: 58%; width: 104px; animation: crossBack 26s linear infinite; animation-delay: -11s; }
.flyer-2 img { transform: scaleX(-1); }
/* コピーの上は飛ばさない。写真側（右半分）だけを横切って、端でふっと消える */
@keyframes cross {
  0%   { left: 46%;  opacity: 0; }
  10%  { opacity: 1; }
  100% { left: 112%; opacity: 1; }
}
@keyframes crossBack {
  0%   { right: -14%; opacity: 1; }
  80%  { opacity: 1; }
  100% { right: 48%;  opacity: 0; }
}
@keyframes bob { 0%,100% { transform: translateY(-11px); } 50% { transform: translateY(11px); } }

/* --- 前景 : 変わらない「島」の上で、景色だけが入れ替わる --- */
.hero-world { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* .kumo-bottom（bg_kumo-bottom.png）は 2026-09-09 に廃止。
   HTML 側の <img> ごと削除している。 */
.hero-world .shima {
  position: absolute;
  /* 画像の余白ぶんを引いて、緑の島の頭が常に画面の72%の位置に来るようにする */
  --sw: min(1700px, 132vw);
  left: 50%;
  top: calc(72% - var(--sw) * .197);
  width: var(--sw);
  transform: translateX(-50%);
  animation: spin 180s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

.hero-cast { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.hero-cast img { position: absolute; animation: hop 5s ease-in-out infinite; }
/* 高さも大きさもバラして、空の世界に散らす */
.cast-kaeru  { width: 104px; left: 4%;   bottom: 5%;  animation-duration: 5.4s; animation-delay: -.5s; }
.cast-usagi  { width: 86px;  left: 27%;  bottom: 15%; animation-duration: 6.2s; animation-delay: -2.4s; }
.cast-hili   { width: 130px; right: 6%;  bottom: 24%; animation-duration: 4.8s; animation-delay: -3.2s; }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================================================
   [一時オフ] ファーストビューの装飾（ドローン・島・キャラ）
   戻すときは、この3セレクタのブロックを削除するだけ。
   雲と太陽は 2026-09-09 に要素ごと削除したので、ここからも外した。
   ============================================================ */
.hero .flyer,
.hero .hero-world,
.hero .hero-cast { display: none !important; }

/* --- スライドごとのコピー --- */
.hero-copy {
  position: absolute; z-index: 10;
  inset: 0;
  display: grid; align-content: center;
  width: min(100% - var(--pad) * 2, var(--page));
  margin-inline: auto;
  padding-bottom: 6vh;
  pointer-events: none;
}
.s-copy {
  grid-area: 1 / 1;
  align-self: center;
  max-width: min(100%, 1240px);
  pointer-events: none;
  visibility: hidden;
}
.s-copy.is-on, .s-copy.is-out { visibility: visible; }
.s-copy.is-on { pointer-events: auto; }

.s-cat {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en);
  font-size: 13px; font-weight: 800; letter-spacing: .22em;
  color: var(--hp-sky);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.44,1);
}
.s-cat::before {
  content: ""; width: 40px; height: 4px; border-radius: 4px;
  background: var(--signal);
}
/* 英字ラベルのカタカナ読み。英字より一段小さく、右に並べる。
   狭い画面では英字を割らずに、カタカナごと次の行へ送る */
.s-cat { flex-wrap: wrap; row-gap: 2px; }
.s-cat-en { white-space: nowrap; }
.s-cat-ja {
  white-space: nowrap;
  font-family: var(--f-jp);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: inherit;
}

.s-title {
  font-size: clamp(30px, 5.4vw, 92px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.015em;
  color: var(--ink-900);
}
/* スローガン「運用できる仕組みへ。」は10字あり、右の画像にかかるので一段小さく */
.s-title.is-slogan { font-size: clamp(30px, 4.3vw, 76px); }
.s-title .ln { display: block; overflow: hidden; padding-bottom: .05em; white-space: nowrap; }
.s-title .ln > i {
  display: block;
  font-style: normal;
  transform: translateY(112%);
  transition: transform .95s cubic-bezier(.16,.84,.44,1);
}
.s-lead {
  margin-top: 28px;
  max-width: 620px;
  /* 2026-09-10：上限を 18px → 20px に。20px に届くよう係数も 1.25vw → 1.4vw。
     1.25vw のままだと上限に触れるのが 1600px 以上だけで、指示の 20px にならない。
     下限 14px と 860px 以下の 14px 固定は据え置き。 */
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 2;
  color: var(--ink-700);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease .35s, transform .8s cubic-bezier(.16,.84,.44,1) .35s;
}
.s-btn {
  margin-top: 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease .48s, transform .8s cubic-bezier(.16,.84,.44,1) .48s;
}

/* 入場 */
.s-copy.is-on .s-cat { opacity: 1; transform: none; }
.s-copy.is-on .s-title .ln > i { transform: none; }
.s-copy.is-on .s-title .ln:nth-child(2) > i { transition-delay: .1s; }
.s-copy.is-on .s-title .ln:nth-child(3) > i { transition-delay: .2s; }
.s-copy.is-on .s-lead,
.s-copy.is-on .s-btn { opacity: 1; transform: none; }

/* 退場 */
.s-copy.is-out .s-cat { opacity: 0; transform: translateY(-12px); transition-duration: .35s; }
.s-copy.is-out .s-title .ln > i { transform: translateY(-112%); transition-duration: .5s; transition-delay: 0s; }
.s-copy.is-out .s-title .ln:nth-child(2) > i { transition-delay: .05s; }
.s-copy.is-out .s-lead,
.s-copy.is-out .s-btn { opacity: 0; transform: translateY(-14px); transition-duration: .4s; transition-delay: 0s; }

/* --- スライダーUI --- */
.hero-ui {
  position: absolute; z-index: 12;
  right: max(var(--pad), (var(--vw, 100vw) - var(--page)) / 2);
  bottom: 38px;
  width: fit-content;
  display: flex; align-items: center; gap: 14px;
  padding: 7px 8px 7px 16px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border-radius: 100px;
}
.hero-count {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--f-en); font-weight: 800;
  color: var(--ink-900);
}
.hero-count b { font-size: 19px; letter-spacing: -.02em; }
.hero-count i { width: 16px; height: 1px; background: rgba(16,42,67,.3); transform: translateY(-4px); }
.hero-count span { font-size: 12px; color: var(--ink-300); }

.hero-bar {
  width: clamp(54px, 6vw, 110px); height: 2px;
  background: rgba(16,42,67,.14);
  border-radius: 3px; overflow: hidden;
}
.hero-bar span {
  display: block; width: 100%; height: 100%;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(0);
}
.hero-bar span.run { animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-arrows { display: flex; gap: 6px; }
.hero-arrows button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  display: grid; place-items: center;
  color: var(--ink-900);
  transition: background-color .25s ease, transform .25s ease, color .25s ease;
}
.hero-arrows button:hover { background: var(--hp-sky); border-color: var(--hp-sky); color: #fff; transform: translateY(-3px); }


/* サムネイル的なドット */
.hero-dots { display: none; }
.hero-dots button {
  width: 40px; height: 4px;
  border-radius: 4px;
  background: rgba(16,42,67,.16);
  transition: background .35s ease, width .35s ease;
}
.hero-dots button.is-on { width: 66px; background: var(--signal); }

/* スクロールキュー */
.scroll-cue {
  position: absolute; z-index: 11;
  left: 50%; bottom: 76px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-en);
  font-size: 12px; font-weight: 700; letter-spacing: .3em;
  /* 2026-09-09：写真の上に乗るので白に。
     4枚目（img_slid04）は cue の真下の平均輝度が 240 と明るく、影が弱いと白が沈む。
     実測して、近い影（輪郭）＋広い影（沈み込み止め）の2枚重ねにしている。 */
  color: #fff;
  text-shadow: 0 1px 3px rgba(16,42,67,.55), 0 0 14px rgba(16,42,67,.45);
}
.scroll-cue i {
  display: block; width: 1px; height: 54px;
  background: rgba(255,255,255,.45);
  position: relative; overflow: hidden;
  /* 線そのものが 1px なので、影は縦線の外側に薄く出す */
  filter: drop-shadow(0 0 3px rgba(16,42,67,.5));
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0 0 auto;
  height: 40%; background: #fff;
  animation: cue 2.2s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* -------------------------------------------------------------
   6. ABOUT
   ------------------------------------------------------------- */
.about { padding-top: 170px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 90px;
  align-items: center;
}
/* 画面端まで突き抜ける画像（コンテナの左右余白ぶんだけ外に出す） */
.bleed-right,
.bleed-left {
  --gutter: max(var(--pad), (var(--vw, 100vw) - var(--page)) / 2);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.bleed-right { margin-right: calc(var(--gutter) * -1); border-radius: 30px 0 0 30px; }
.bleed-left  { margin-left:  calc(var(--gutter) * -1); border-radius: 0 30px 30px 0; }
.bleed-right img,
.bleed-left img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* -------------------------------------------------------------
   7. NUMBERS
   ------------------------------------------------------------- */
.numbers { background: var(--cream-2); padding: 130px 0 140px; }
/* 上下の端にあった雲の帯（bg_kumo-top.png・各52px）は 2026-09-09 に廃止。
   絶対配置の装飾だったので、外してもセクションの高さは変わらない。 */

.num-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.num-card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 46px 40px 44px;
  box-shadow: var(--sh-sm);
  position: relative; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
/* 2026-09-10：NUMBERS は <div> でリンクではないため、ホバーを削除した。
   （transition は残す。.num-card.reveal:not(.is-in) の登場アニメが使っている） */
.num-card .cap { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.num-card .val {
  margin-top: 18px;
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-en);
  font-size: clamp(52px, 5.4vw, 96px);
  font-weight: 800; line-height: .9;
  white-space: nowrap;
  letter-spacing: -.05em;
  color: var(--ink-900);
}
.num-card .val em { font-family: var(--f-jp); font-size: 21px; white-space: nowrap; font-weight: 700; font-style: normal; letter-spacing: 0; }
.num-card .note { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--ink-500); }
.num-card .bar { position: absolute; inset: 0 0 auto; height: 6px; background: var(--signal); }

/* -------------------------------------------------------------
   8. SERVICE — 雲の上をまわるリング
      左＝テキストカード（円に被せる） / 右＝リング
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   2カラムの骨格
   ------------------------------------------------------------- */
.svc-2col {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* --- 左：見出し・説明・リンク（クリックしても変わらない） --- */
.svc-intro { position: relative; }
.svc-intro .sec-lead { max-width: none; }
.svc-more { margin-top: 44px; }

/* --- 右：円。見出しの高さぶん引き上げる --- */
.svc-col-ring { position: relative; margin-top: -120px; min-width: 0; }

/* -------------------------------------------------------------
   円の舞台
   ------------------------------------------------------------- */
.ring-stage {
  position: relative;
  /* 玉は JS が z-index 20〜820、選択中は 950、詳細枠は 850 を持つ。ここで stacking
     context を作って争いをリングの中に閉じ込めないと、ヘッダー(100)を飛び越える。 */
  isolation: isolate;
  height: 540px;                 /* JS が中身に合わせて上書き */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.ring-stage.is-dragging { cursor: grabbing; }

.ring-sky {
  position: absolute; left: 50%; top: var(--ring-cy, 50%);
  width: 128%; aspect-ratio: 2.15 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(58% 62% at 50% 46%, rgba(98,177,221,.09), rgba(98,177,221,0) 72%),
    /* 2026-09-10：ここだけ黄緑（#a0c159 = --sv4）で、白地の上にうっすら緑が出ていた
       （合成後の実測 rgb(245,249,243)）。左隣と同じ水色に寄せた。
       位置・大きさ・アルファは据え置きなので、もやの濃さと広がりは変わらない。
       事業ごとの識別色（玉の --sv*）は指示により手つかず。 */
    radial-gradient(38% 46% at 22% 62%, rgba(98,177,221,.07), rgba(98,177,221,0) 70%),
    radial-gradient(38% 46% at 80% 60%, rgba(8,127,140,.06), rgba(8,127,140,0) 70%);
  pointer-events: none;
}
.ring-orbit {
  position: absolute; left: 50%; top: var(--ring-cy, 50%);
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(16,42,67,.10);
  border-radius: 50%;
  pointer-events: none;
}

/* --- ひとつの事業＝雲に乗った丸カード --- */
.orb {
  position: absolute; left: 50%; top: var(--ring-cy, 50%);
  width: var(--orb, 168px);
  transform: translate(-50%, -50%);
  transition: width .45s cubic-bezier(.22,1.1,.36,1);
  will-change: transform, opacity;
}
/* 2026-09-10：ここは元「雲」で、水色の円を4つ重ねたものだった。
   ぼかしが 2.5px しかなく円の重なりが見えるうえ、青いので影ではなく“もや”に見えていた。
   落ち影（.orb-card の box-shadow）と二重になっていたのが不自然さの正体。
   接地影（床にできる濃い影）ひとつに置き換え、落ち影と役割を分けた。
   クラス名は .orb-cloud のまま（HTML 4か所とSPの指定に出てくるため）。 */
.orb-cloud {
  position: absolute; left: 50%; bottom: -2%;
  /* 2026-09-10：62% → 100%。円の横幅と同じだけ広げた。
     色は無彩色ではなく青寄りの濃紺 rgb(28,56,104)。
     完全な無彩色だと、以前の水色の記憶と比べて弱く見えるため。
     青は墨より明るいぶん同じ濃度では軽くなるので、濃度を約1.15倍にして重さを合わせている
     （2026-09-09 に「墨に置き換えるならアルファを落とす」と書いた話の逆方向）。 */
  width: 100%; aspect-ratio: 7 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(16,42,67,.23), rgba(16,42,67,0) 100%);
  filter: blur(6px);
  pointer-events: none;
}
.orb-card {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  /* 近い順に3層。近いほど濃く小さく、遠いほど薄く大きく。
     接地影（.orb-cloud）と合わせて「床の上に浮いている」形にしている。 */
  box-shadow:
    0 3px 6px rgba(16,42,67,.05),
    0 16px 36px rgba(16,42,67,.07),
    0 46px 100px rgba(16,42,67,.12);
  transition: box-shadow .35s ease, transform .5s cubic-bezier(.22,1.1,.36,1);
}
.orb-card::before {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: var(--c);
  opacity: .10;
}
/* イラストの下地が不透明の白（角のα≒94%）なので円形にクリップして角を落とす。
   玉のふちにわずかに余白を残す（94% ＝ 外周に3%ぶんの地が見える）。 */
.orb-card img { position: relative; width: 94%; height: auto; border-radius: 50%; pointer-events: none; }
.orb-haze {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--cloud);
  opacity: var(--haze, 0);
  pointer-events: none;
}
.orb-no {
  position: absolute; left: 50%; top: -5%;
  transform: translateX(-50%);
  min-width: 36px; padding: 3px 10px;
  border-radius: 999px;
  background: var(--c); color: #fff;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-align: center;
  box-shadow: 0 4px 12px rgba(16,42,67,.14);
}
/* ホバー・選択時も同じ3層のまま「高く浮く」＝長く薄くする。
   2026-09-10：以前は2層で、静止時（3層）と組み立てが違って切り替わりが不自然だった。 */
.orb:hover .orb-card {
  box-shadow:
    0 4px 8px rgba(16,42,67,.06),
    0 20px 44px rgba(16,42,67,.09),
    0 60px 124px rgba(16,42,67,.15);
}
.orb.is-active .orb-card {
  box-shadow:
    0 0 0 3px var(--c),
    0 4px 8px rgba(16,42,67,.06),
    0 22px 48px rgba(16,42,67,.10),
    0 64px 132px rgba(16,42,67,.16);
}
/* 選んだ事業のイラストだけ、詳細枠(850)より前に出す。
   全部を前に出すと × ともっと見るが玉に隠れて押せなくなるため。 */
/* 開いている玉は少しだけ縮める。玉の中心は動かないので上端だけが下がり、
   そのぶん詳細枠の文字を逃がせる。--orb を細らせると雲・番号バッジ・影まで
   一緒に縮む（すべて % 指定）ので、絵だけ浮くことがない。 */
/* ただし前面に出すのはリングが止まっているあいだだけ。回っているのに最前面だと、
   奥にいる小さく薄い玉が手前の玉にかぶさって、奥行きが壊れる。
   PC では open() が必ず回転を止めるので、この :not() は実質いつも真＝挙動は変わらない。 */
.ring-stage:not(.is-spinning) .orb.is-active { z-index: 950 !important; }
.orb.is-active { width: calc(var(--orb, 168px) * var(--as, .86)); }
.orb.is-active .orb-card::before { opacity: .18; }

/* -------------------------------------------------------------
   円の上にポップする詳細
   ------------------------------------------------------------- */
.svc-pop {
  /* 手前の玉（舞台の下中央）に本文が潜らない位置。top は JS の placePop() が
     本文の下端を実測して入れ直すので、ここの 39% は JS が走る前の初期値。
     left は「横の玉にどれだけ枠がかぶるか」とのトレードオフなので CSS 側で持つ。 */
  position: absolute; left: 41%; top: 39%;
  width: min(560px, 80%);
  padding: 42px 44px 44px;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  z-index: 850;                  /* 玉（20〜820）より上 */
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .35s ease, visibility .35s ease,
              transform .5s cubic-bezier(.22,.7,.28,1);
}
.svc-pop.is-open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.svc-pop::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 6px;
  background: var(--c);
  transition: background-color .45s ease;
}
.pop-close {
  position: absolute; right: 14px; top: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-300);
  font-size: 19px; line-height: 1;
  transition: color .25s ease, background-color .25s ease;
  z-index: 3;
}
.pop-close:hover { color: var(--ink-900); background: var(--ghost); }

.svc-detail { display: none; }
.svc-detail.is-active { display: block; }
.svc-detail h3 {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(19px, 1.5vw, 25px);
  font-weight: 800; line-height: 1.5; letter-spacing: .01em;
}
.svc-detail h3 .icon { width: 28px; height: 28px; flex: none; fill: var(--c); }
.svc-detail h3 .nb { white-space: nowrap; }
.svc-detail p {
  position: relative;
  margin-top: 20px;
  font-size: 16px; line-height: 2.05;
  color: var(--ink-700);
}
.d-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--c); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 32%, transparent);
  transition: transform .3s cubic-bezier(.3,0,.2,1), gap .3s ease;
}
.d-btn:hover { transform: translateY(-2px); gap: 17px; }

.svc-detail.is-active h3     { animation: dIn .5s cubic-bezier(.22,.7,.28,1) both .06s; }
.svc-detail.is-active p      { animation: dIn .5s cubic-bezier(.22,.7,.28,1) both .13s; }
.svc-detail.is-active .d-btn { animation: dIn .5s cubic-bezier(.22,.7,.28,1) both .2s; }
@keyframes dIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1;   transform: none; } }

/* -------------------------------------------------------------
   事業名チップ（一覧性の担保＋キーボード操作の本体）
   ------------------------------------------------------------- */
.svc-chips {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px;
}
.chip {
  /* 寸法は変数で持つ。事業が9つあった頃は 13px まで詰めていたが、4つに減って
     余白が余ったので大きくした（2026-09-04）。チップ側の列は
     `1600px(--page) − 560px − gap40px = 1000px` が上限で、4つ＋隙間の実測は
     15px指定で 880px。1段に収まる（余り120px）。
     ただし列は画面幅とともに縮むので、狭いデスクトップでは下の
     max-width: 1560px ブロックで 13px に戻して折り返しを防いでいる */
  --chip-fs: 15px;
  --chip-no: 13px;
  --chip-ic: 19px;
  --chip-pd: 12px 20px 12px 15px;
  --chip-gp: 10px;

  display: inline-flex; align-items: center; gap: var(--chip-gp);
  padding: var(--chip-pd);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-700);
  font-size: var(--chip-fs); font-weight: 700; letter-spacing: .02em;
  transition: color .28s ease, border-color .28s ease, background-color .28s ease, transform .28s cubic-bezier(.3,0,.2,1);
}
.chip .no {
  font-family: var(--f-mono); font-size: var(--chip-no); font-weight: 500;
  letter-spacing: .06em; color: var(--ink-300);
  transition: color .28s ease;
}
.chip .icon { width: var(--chip-ic); height: var(--chip-ic); flex: none; fill: var(--c); transition: fill .28s ease; }
.chip:hover { color: var(--ink-900); border-color: var(--c); transform: translateY(-2px); }
.chip:hover .no { color: var(--c); }
.chip.is-active {
  background: var(--c); border-color: var(--c); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 34%, transparent);
}
.chip.is-active .no   { color: rgba(255,255,255,.62); }
.chip.is-active .icon { fill: #fff; }
/* チップ側の列は `.inner の幅 − 560px − gap40px`。--page(1600px) に達していない
   画面では列が狭くなり、15px のままだと 4つが1段に収まらない。
   実測（iframe で幅を再現して計測）：
     15px … 4つ＋隙間で 911px 必要。列がそこに届くのはビューポート 1646px から
     13px … 同 764px。届くのは 1499px から
   よって 1645px 以下は 13px（＝従来の寸法）に戻す。
   ※ 1499px を下回ると 13px でも折り返す（04 だけが2段目に落ちる）。
     これは今回の変更前からの挙動で、ここでは変えていない */
@media (max-width: 1645px) {
  .chip {
    --chip-fs: 13px;
    --chip-no: 12px;
    --chip-ic: 16px;
    --chip-pd: 9px 14px 9px 11px;
    --chip-gp: 8px;
  }
  .svc-chips { gap: 10px 8px; }
}

/* -------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------- */
@media (max-width: 1400px) {
  .svc-2col { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 30px; }
  .svc-col-ring { margin-top: -90px; }
  .svc-pop { padding: 34px 32px 36px; }
}

/* --- 縦に積む（左右に置くには幅が足りない） --- */
@media (max-width: 1100px) {
  .svc-2col { grid-template-columns: 1fr; gap: 0; }
  .svc-col-ring { margin-top: 20px; }
  .svc-more { margin-top: 34px; }
}

/* --- スマホ：円はそのまま回す。詳細はリングの下に流し込む --- */
@media (max-width: 767px) {
  /* 詳細（.svc-pop）が流し込みなので、舞台の高さは中身に任せる。
     そのかわりリングの居場所を .svc-rail の高さで確保し（JS が --ring-h を入れる）、
     玉・軌道・もやは舞台の上端から --ring-cy ＝ その半分の位置にぶら下げる。
     これをやらないと top:50% が「リング＋詳細」の中心＝詳細の真ん中を指してしまう。
     touch-action: pan-y（.ring-stage の素の指定）はそのまま効かせる。
     縦スワイプはページのスクロール、横ドラッグはリングの手回しになる。 */
  .ring-stage { --ring-cy: calc(var(--ring-h, 300px) / 2); height: auto !important; }
  .svc-rail { height: var(--ring-h, 300px); }
  .svc-col-ring { margin-top: 26px; }

  .svc-pop {
    /* static にすると、上端の色帯（.svc-pop::before）とバツ印（.pop-close）が
       絶対配置の基準を失い、ひとつ上の .ring-stage を基準にしてしまう。
       実測：色帯6pxが画像カルーセルの上端（y=400）に飛び、画面を横切る
       緑の線になっていた。relative なら流し込みは同じまま基準だけ戻る。
       ただし relative は PC 用の `left: 41%; top: 39%` を「ずらし」として
       効かせてしまう（static のときは無視されていた）ので inset: auto で消す。
       消さないとパネルが右に 41% ずれて、見出しが画面外に出る。 */
    position: relative; inset: auto; width: auto;
    padding: 32px 24px 34px;
    opacity: 1; visibility: visible; transform: none;
  }
  .pop-close { display: none; }

  .svc-chips {
    margin-top: 20px;
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 4px 14px;
    scrollbar-width: none;
  }
  .svc-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; font-size: 13px; padding: 9px 14px 9px 11px; }
  .svc-more .btn { min-width: 0; width: 100%; padding: 22px 26px; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .orb-card, .chip, .svc-pop { transition: none; }
}

/* -------------------------------------------------------------
   8.5 PAY GUARDIAN 予告バナー
   ------------------------------------------------------------- */
.pg-teaser { padding: 0 0 150px; }

.pg-banner {
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.pg-banner img { width: 100%; }
/* 2026-09-10：画像のリンクを外したので、ホバーの反応も外した。
   （リンクだけ反応させる、という方針どおり。一度 .card と同じ傾きに揃えたが、
     リンクでなくなったため取り下げ） */

/* 左＝バナー / 右＝見出し・受付状況・CTA */
.pg-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}
.pg-cta { min-width: 0; }
.pg-title {
  font-family: var(--f-en);
  font-size: clamp(30px, 2.9vw, 48px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.015em;
  color: var(--ink-900);
}
.pg-catch {
  margin-top: 14px;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 700; line-height: 1.6; letter-spacing: .01em;
  color: var(--ink-900);
}
.pg-desc {
  margin-top: 18px;
  font-size: 15px; line-height: 2.05;
  color: var(--ink-700);
}
.pg-desc + .pg-desc { margin-top: 14px; }

.pg-status {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 16px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink-900);
}
.pg-status .dot {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: var(--sv9);
  box-shadow: 0 0 0 5px rgba(58,166,160,.16);
}
.pg-status small { font-size: 13px; font-weight: 500; color: var(--ink-500); }
.pg-btn { margin-top: 24px; }

@media (max-width: 1100px) {
  .pg-2col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .pg-teaser { padding-bottom: 100px; }
  .pg-2col { gap: 24px; }
  .pg-cta .btn { min-width: 0; width: 100%; padding: 22px 26px; gap: 20px; }
}

/* -------------------------------------------------------------
   9. GLOBAL
   ------------------------------------------------------------- */
.global { padding: 30px 0 150px; }
.marquee { overflow: hidden; margin-top: 60px; }
.marquee-track { display: flex; width: max-content; gap: 24px; animation: slide 54s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.base-card {
  position: relative;
  width: 400px; aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden; flex: none;
  box-shadow: var(--sh-sm);
}
.base-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(1.04);
  transition: filter .5s ease, transform .6s ease;
}
/* 2026-09-10：.marquee は aria-hidden の流れる装飾でリンクではないため、ホバーを削除した。
   グレースケールが常時かかったままになる（元はホバーで色が戻る作りだった）。 */
.base-card figcaption {
  position: absolute; inset: auto 0 0;
  padding: 26px 28px;
  display: flex; justify-content: space-between; align-items: baseline;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
}
.base-card .city { font-family: var(--f-en); font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.base-card .time { font-family: var(--f-mono); font-size: 14px; }

/* -------------------------------------------------------------
   10. COMPANY
   ------------------------------------------------------------- */
.company { background: var(--cream-2); padding: 140px 0 150px; }
/* 上端にあった雲の帯（bg_kumo-top.png・52px）は 2026-09-09 に廃止。 */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 90px; align-items: center;
}
.company-meta { margin-top: 40px; border-top: 1px solid var(--line); }
.company-meta dl {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 4px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.company-meta dt { color: var(--ink-300); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; padding-top: 6px; }
.company-meta dd { color: var(--ink-700); line-height: 1.9; }

/* -------------------------------------------------------------
   11. BLOG
   ------------------------------------------------------------- */
.card-grid { margin-top: 66px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* --- BLOG：横スクロールのレール（画面いっぱい・3.5件見え） ---
   左の余白は .inner と同じ位置に揃える。.inner は
   width: min(100% - pad*2, --page) を中央寄せなので、その左端は
   max(pad, (画面幅 - page) / 2)。これを --rail-pad として持つ。
   1件の幅は「3.5件 + 隙間3つ」で (画面幅 - 左余白) を埋める寸法。
   .full の中なので 100% は画面幅（--vw ＝ スクロールバー抜き）を指す。 */
/* 矢印はスクロールしないラッパー側に置く。寸法もここで一括で決めて、
   レール（1件の幅）と矢印（縦位置）の両方から同じ値を参照する。
   100% は親（.inner＝1600px）を指してしまうので、画面幅は --vw から取る。
   --vw は JS が実測して入れているスクロールバー抜きの幅。 */
.blog-railwrap {
  --rail-gap: 30px;
  --rail-pad: max(var(--pad), calc((var(--vw, 100vw) - var(--page)) / 2));
  --card-w: calc((var(--vw, 100vw) - var(--rail-pad) - var(--rail-gap) * 3) / 3.5);
  position: relative;
  /* 下の padding-top を 6→16 に増やしたぶん、ここを 66→56 に減らして
     レールの位置は変えない（合計 72px で従来どおり） */
  margin-top: 56px;
}
.blog-rail {
  display: flex;
  gap: var(--rail-gap);
  /* 上はホバーの浮き(-9px)、下は出現アニメの始点(+46px)を収める余白。
     ここを削ると overflow-y: clip に切られる。 */
  padding: 16px var(--rail-pad) 50px;
  overflow-x: auto;
  /* 片側だけ auto にすると、もう片方の visible が自動で auto に変わり、
     出現アニメのはみ出しで縦スクロールバーが出てしまう。
     clip なら縦のスクロールコンテナを作らずに切るだけで済む。 */
  overflow-y: clip;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* これが無いと、スナップ位置が padding を無視して左余白ぶん勝手にずれる */
  scroll-padding-inline-start: var(--rail-pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-rail::-webkit-scrollbar { display: none; }
.blog-rail .card {
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
}
/* 影が隣に食い込まないよう、カード自身に余白を持たせない（gap で取る） */
.blog-rail .card-thumb { flex: none; }
.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-sm);
/* 2026-09-14：3Dの傾きを削除（指示による）。rotate と、その遷移を外した。
   持ち上がりは translate のまま残す（transform に戻すと reveal の登場アニメと衝突する）。
   transform の遷移は .reveal が使うので残す。 */
  transition: transform .35s ease, box-shadow .35s ease, translate .35s ease;
}
.card:hover { translate: 0 -9px; box-shadow: var(--sh-lg); }
.card-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-thumb img { transform: scale(1.07); }
.card-body { padding: 30px 32px 36px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-300); }
.card-cat {
  padding: 6px 15px; border-radius: 100px;
  background: rgba(8,127,140,.12); color: var(--hp-sky);
  font-size: 12px; font-weight: 500;
}
.card h3 { font-size: 21px; font-weight: 800; line-height: 1.65; }
.card p { font-size: 15px; color: var(--ink-500); line-height: 1.95; }

.sec-actions { margin-top: 60px; display: flex; gap: 18px; flex-wrap: wrap; }
/* レール下の padding を 34→50 に増やしたぶん、ここを 60→44 に詰める（合計94pxで従来どおり） */
#blog .sec-actions { margin-top: 44px; }

/* --- 横レールの送りボタン。カードの左右両端に重ねて置く ---
   縦位置はサムネイル（16:10）の中心。カード幅から算出しているので、
   画面幅が変わっても写真の真ん中に乗り続ける。 */
.rail-arrows {
  position: absolute; inset: 0;
  pointer-events: none;   /* ボタン以外はレールの掴み操作を通す */
}
.rail-arrows button {
  position: absolute;
  top: calc(16px + var(--card-w) * .3125);  /* 16px＝レール上の余白 / .3125＝16:10 の半分 */
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(16,42,67,.14);
  pointer-events: auto;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.rail-arrows .is-prev { left: calc(var(--rail-pad) + 20px); }
.rail-arrows .is-next { right: 20px; }
.rail-arrows button:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); box-shadow: 0 10px 28px rgba(16,42,67,.2); }
.rail-arrows button:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
/* 端まで来たら消す。半端に薄く残すより、写真の上では消えたほうが素直 */
.rail-arrows button:disabled { opacity: 0; pointer-events: none; }
.rail-arrows .arw-i { width: 8px; height: 13px; fill: var(--ink-900); }
.rail-arrows .arw-i.is-back { transform: scaleX(-1); }

/* マウスで掴んで動かせることを見た目でも示す */
.blog-rail { cursor: grab; }
.blog-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
/* 掴んでいる間はカードのホバー演出と画像のドラッグを殺す */
.blog-rail.is-dragging .card { transform: none !important; }
.blog-rail .card img { -webkit-user-drag: none; user-select: none; }

/* -------------------------------------------------------------
   12. RECRUIT — 全幅の写真バンド
   ------------------------------------------------------------- */
.recruit {
  position: relative;
  min-height: 640px;
  display: grid; align-items: center;
  overflow: hidden;
}
.recruit-bg { position: absolute; inset: 0; z-index: 0; }
.recruit-bg img { width: 100%; height: 100%; object-fit: cover; }
.recruit-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250,251,252,.98) 0%, rgba(250,251,252,.94) 34%, rgba(250,251,252,.55) 68%, rgba(250,251,252,.12) 100%);
}
.recruit .inner { position: relative; z-index: 2; padding-block: 120px; }

/* 2026-09-10：トップの職種バッジは削除した（募集の更新が手間なため、採用ページに一本化）。
   以下 .recruit-jobs 一式は、いまどのHTMLからも参照されていない。
   戻す可能性があるので残置。下の「子を順番に出すグループ」の並びにも名前が残っている。 */
.recruit-jobs { margin-top: 46px; display: flex; gap: 14px; flex-wrap: wrap; }
.recruit-jobs li {
  padding: 16px 28px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 16px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-900);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.recruit-jobs li:hover { background: var(--hp-sky); border-color: var(--hp-sky); color: #fff; transform: translateY(-3px); }

/* -------------------------------------------------------------
   13. CONTACT
   ------------------------------------------------------------- */
.contact {
  position: relative;
  padding: 170px 0 230px;
  overflow: hidden;
  text-align: center;
  /* もとは水色の空のグラデーション → 緑に置換 → 2026-09-09 に単色へ。
     あとで背景画像を入れる予定なので、地はニュートラルなまま空けてある。 */
  background: var(--cream);
}
.contact-inner { position: relative; z-index: 3; }
.contact h2 { font-size: clamp(30px, 5vw, 84px); font-weight: 900; line-height: 1.36; letter-spacing: -.01em; }
.contact .sec-lead { margin-inline: auto; text-align: center; max-width: 760px; }
.contact-actions { margin-top: 52px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* .contact-clouds / .contact-deco（雲3枚・キャラ3枚）は 2026-09-09 に廃止。HTML側の要素ごと削除している。 */

/* -------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------- */
.footer { background: var(--paper); padding: 90px 0 36px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 50px 46px;
}
/* COMPANY と REGTECH を縦に重ねて1カラムぶんにする（全体を1行に収める） */
.footer-stack { display: grid; gap: 40px; align-content: start; }

.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p { font-size: 14px; color: var(--ink-500); line-height: 1.95; }
.footer-brand .addr { margin-top: 20px; font-size: 14px; color: var(--ink-500); line-height: 1.9; }
.footer-brand .addr b {
  display: block; color: var(--ink-900); font-weight: 700;
  letter-spacing: .14em; font-size: 14px;
  font-family: var(--f-mono); margin-bottom: 4px;
}
.footer-brand .addr + .addr { margin-top: 16px; }

/* 2026-09-24：h4 → h2。本文の見出しの段と切り離すため（law.html は本文に h2 が無く h1→h4 になっていた） */
.footer-col h2 {
  font-family: var(--f-en);
  font-size: 16px; font-weight: 800; letter-spacing: .14em;
  color: var(--ink-900); margin-bottom: 20px;
}
.footer-col li + li { margin-top: 12px; }
.footer-col a { font-size: 14px; color: var(--ink-700); transition: color .2s ease; }
.footer-col a:hover { color: var(--hp-sky); }

.footer-sns { display: flex; gap: 12px; margin-top: 28px; }
.footer-sns a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-500);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-sns a:hover { color: var(--hp-sky); border-color: var(--hp-sky); transform: translateY(-3px); }
.footer-sns svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  margin-top: 66px; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 14px; color: var(--ink-300);
}
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--ink-700); }

/* -------------------------------------------------------------
   15. Responsive
   ------------------------------------------------------------- */
@media (max-width: 1400px) {
  :root { --pad: 40px; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .svc .pic { width: 112px; }

  /* ナビ6項目が1行に収まるのに必要な本文幅は 1315px あった（実測）。
     1280px のノートPCでは足りず、「ハナパナテックとは」だけが2行に
     折り返してヘッダーが 102→108px に膨らんでいた。
     ロゴ40px＋項目間8px×5＝計80px ぶん詰めて、必要幅を 1235px に下げる。
     1401px 以上（＝確定デザインの幅）はこの指定の外なので無変更。 */
  .brand img { width: 280px; }
  .gnav ul { gap: 26px; }
}

@media (max-width: 1100px) {
  .about-grid, .company-grid { grid-template-columns: 1fr; gap: 50px; }
  .bleed-right, .bleed-left {
    width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); border-radius: 0;
  }
  .cast-usagi { left: 20%; bottom: 20%; width: 70px; }
  .hero-copy { max-width: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------
   14b. ヘッダーをハンバーガーに切り替える幅

   グローバルナビ6項目が1行に収まるには 1175px 必要（実測：
   ロゴ320 + ナビ480 + CTA215 + gap40×2 + 左右padding40×2）。
   これを下回ると項目が2〜4行に折り返し、ヘッダーが108px→332pxまで
   膨らんでいた。以前はハンバーガーが 860px 以下からだったので、
   861〜1174px がずっと崩れた状態だった。
   1400px 以下ではロゴと項目間を詰めてあるので（14. の 1400px ブロック）、
   必要な本文幅は 1235px まで下がる。境目は 1279px にした。
   ＝1280px 以上でナビ表示。そのとき本文幅は 1265px あり、必要な
   1235px に 30px の余裕がある。1280 / 1366 / 1440 といったノートPCの
   幅は従来どおりナビが出て、それより狭いところはハンバーガーに倒れる。
   ------------------------------------------------------------- */
@media (max-width: 1279px) {
  .gnav {
    position: fixed; inset: 0; margin: 0;
    display: grid; place-content: center;
    /* 下は CTA ボタンの居場所。これが無いと、中央そろえのメニューと
       ボタンが重なる（375×760 で11px 食い込んでいた） */
    padding-bottom: 132px;
    /* 横向きの電話など、縦が足りないときは中でスクロールさせる。
       safe を付けないと、あふれたときに上が切れて先頭が押し出される */
    place-content: safe center;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(250,251,252,.98);
    backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .is-open .gnav { opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 22px; text-align: center; }
  .gnav a { font-size: 24px; }
  .nav-cta { display: none; }
  .hamburger { display: block; margin-left: auto; }

  /* CTA はヘッダーからは消えるが、導線が無くなってしまうので
     ドロワーを開いているあいだだけ、メニューの下に出す。
     .nav-cta は .gnav の兄弟なので、位置で重ねている。 */
  .is-open .nav-cta {
    display: inline-flex;
    position: fixed; left: 50%; bottom: max(34px, 7vh);
    transform: translateX(-50%);
    z-index: 101;
  }
  .is-open .nav-cta:hover { transform: translateX(-50%) translateY(-2px); }

  /* .gnav と .nav-cta は .header の子で position:fixed。
     ヘッダー側に transform か backdrop-filter が乗っていると、fixed の
     基準がビューポートではなく「ヘッダーの箱」になる。実際そうなっていて、
     下層ページ（.is-lower .header は常時 backdrop-filter:blur）では
     ドロワーが画面全体ではなく高さ132pxの帯になり、CTAは画面外(-61px)に
     飛んでいた。トップページでも、スクロール後（.is-stuck）に同じ症状。
     メニューを開いているあいだだけ両方を無効にして基準を戻す。
     閉じているあいだの見た目は従来どおり。 */
  body.is-open .header {
    transform: none;
    transition: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 横向きの電話など、縦が足りないとき。24px×6項目を縦に積むと 400px の
   高さに収まらず、メニューがスクロールしてCTAの下に潜っていた。
   縦に積むのをやめて2列にすると、上のヘッダーぶんの余白を取っても収まる。 */
@media (max-width: 1279px) and (max-height: 520px) {
  .gnav { padding: 76px 22px 88px; }
  .gnav ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
  }
  .gnav a { font-size: 19px; }
  .is-open .nav-cta { bottom: 18px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }

  .header { padding: 14px var(--pad); gap: 14px; }
  .brand img { width: 170px; }
  /* スクロール後に縮める指定（.is-stuck .brand img = 258px）は詳細度が上なので、
     ここで打ち消さないと 170 → 258px と逆に大きくなる。
     PCは「大きいロゴを縮める」動きだが、スマホは元から小さいので据え置きにする。 */
  .is-stuck .brand img { width: 170px; }
  .brand-name { font-size: 16px; }

  .hero { min-height: 600px; }
  .hero-copy { padding-bottom: 16vh; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(250,251,252,.92) 0%, rgba(250,251,252,.72) 42%, rgba(250,251,252,.5) 62%, rgba(250,251,252,.95) 92%);
  }
  /* .hero-sun / .cloud-* のSP指定は、要素の削除にあわせて 2026-09-09 に除去 */
  .flyer-1 { width: 88px; }
  .flyer-2 { display: none; }
  .cast-kaeru { width: 72px; left: 3%;  bottom: 4%; }
  .cast-usagi { display: none; }
  .cast-hili  { width: 84px; right: 3%; bottom: 20%; }
  .s-title .ln { white-space: normal; }
  .s-lead { font-size: 14px; }
  .hero-ui { right: 50%; transform: translateX(50%); bottom: 20px; gap: 10px; padding: 6px 7px 6px 13px; }
  .hero-arrows button { width: 46px; height: 46px; }
  .hero-count b { font-size: 22px; }
  .hero-dots button { width: 22px; }
  .hero-dots button.is-on { width: 38px; }
  .scroll-cue { display: none; }

  .sec { padding: 90px 0; }
  .about { padding-top: 100px; }
  .numbers, .company { padding: 90px 0 100px; }
  .global { padding-bottom: 90px; }
  .contact { padding: 100px 0 150px; }
  .recruit .inner { padding-block: 90px; }

  .num-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-railwrap { --rail-gap: 16px; --card-w: calc(var(--vw, 100vw) - 46px); }
  .rail-arrows { display: none; }   /* スマホは指で送れるので矢印は出さない */
  .base-card { width: 280px; }
  .btn { min-width: 0; width: 100%; padding: 22px 28px; }
  .sec-actions .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  /* .contact-clouds / .contact-deco のSP調整は、要素の廃止にあわせて 2026-09-09 に削除 */
}

/* -------------------------------------------------------------
   15b. タブレット（iPad縦）だけ、スマホ扱いを取り消す

   上の SP ブロックは 860px 起点だが、SERVICE のリング→横並びの
   切り替えと、下層ページのCSS（page/about/company/service/blog/
   contact/legal/recruit）はすべて 767px 起点。この差のせいで
   768〜860px が「リングは3Dのまま・中身だけスマホ」という
   ちぐはぐな帯になっていた。

   ここは 767px の境目に合わせて、本文まわりだけ戻す。
   ヘッダーのハンバーガー・ヒーローの詰め・装飾の間引きは
   タブレットでも有効なままにしたいので触らない。
   861px 以上（＝確定デザイン）には一切効かない。
   ------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 860px) {
  :root { --pad: 40px; }

  .brand img { width: 210px; }
  .is-stuck .brand img { width: 210px; }   /* 上と同じ理由 */

  /* 4枚を縦一列にすると間延びするので2列に戻す */
  .num-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }

  /* 1件が画面いっぱい（722px）の巨大カードになっていたので、
     desktop と同じ考え方で「2.2件見え」に割り直す */
  .blog-railwrap {
    --rail-gap: 20px;
    --card-w: calc((var(--vw, 100vw) - var(--rail-pad) - var(--rail-gap) * 2) / 2.2);
  }

  .base-card { width: 340px; }

  /* 幅いっぱいのボタンは電話向けの処理。タブレットでは素の幅に戻す
     （padding は SP ブロックの 22/28 のまま＝タブレットにちょうどいい） */
  .btn { width: auto; min-width: 300px; }
  .sec-actions .btn { width: auto; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------
   15b-2. スマホのファーストビュー：写真を画面いっぱいの正方形にし、
          下端をぼかして地になじませ、文字とボタンはその下に出す

   PC（861px以上）は写真が全面で、その上に文字を重ねる作り。
   スマホはそれをやめて「上＝写真／下＝文字」の縦積みにする。
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  /* 正方形の一辺＝画面の幅いっぱい。100vw はスクロールバーを含んで
     右にはみ出すので、JS 実測の --vw を使う。 */
  .hero {
    --sq: var(--vw, 100vw);
    height: auto;
    min-height: 100svh;
    padding-bottom: 60px;        /* ページャーは流し込みなので、ここは地の余白だけ */
  }

  /* 写真：流し込みに戻して、画面幅の正方形にする */
  .hero-stage {
    position: relative; inset: auto;
    width: var(--sq); aspect-ratio: 1;
  }
  /* 切り取りは右起点。スライドごとのトリミング指定（4枚目＝上寄せ／
     .is-own＝center 42%）もここで右に揃える。 */
  .hero-stage .slide .col img,
  .hero-stage .slide:nth-child(4) .col img,
  .slide.is-own .col img { object-position: 100% 50%; }

  /* なじませ：下地とまったく同じグラデーションを塗り、マスクで
     「写真の下端に向かってだけ」濃くする。正方形より下は塗りきりになるが、
     下地と同じ絵なので見た目は地そのもの＝継ぎ目が出ない。 */
  .hero-veil {
    background: var(--sky);
    /* ぼかしの長さ。深くするほど写真が上のほうから消えていくかわりに、
       コピーの乗る位置が濃くなって読みやすくなる。コピーの食い込み
       （.hero-copy の margin-top）とセットで決めること。 */
    --fade: 170px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--sq) - var(--fade)), #000 var(--sq));
            mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--sq) - var(--fade)), #000 var(--sq));
  }

  /* ヘッダーの居場所。ベールの上端を透明にしたので、ロゴが写真に乗って
     読みにくくなる。天面だけ薄い板を戻す（ベールとは別要素にしないと
     上のマスクで一緒に消える）。 */
  .hero::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 140px; z-index: 3;
    background: linear-gradient(180deg, rgba(250,251,252,.92) 0%, rgba(250,251,252,.55) 45%, rgba(250,251,252,0) 100%);
    pointer-events: none;
  }

  /* 文字とボタン：写真の下、地が見えているところへ */
  .hero-copy {
    position: relative; inset: auto;
    align-content: start;
    padding-bottom: 0;
    margin-top: -60px;           /* ぼかしの裾に重ねて、切り離して見えないように。
                                    深くするほど写真の残っているところへ食い込むので、
                                    下のマスクの長さ（130px）とセットで決めること */
  }
  /* 5枚ぶんのコピーは同じマスに重ねてある。center のままだと、文章の長い／
     短いで上端が上下して切り替わりのたびに跳ねる。上そろえにする。 */
  .s-copy { align-self: start; }

  /* ページャーまでを1画面に収めるための詰め。スマホのヒーローの中だけ。
     文字サイズ（見出し30px・本文14px）は床なので触らず、間だけを詰める。 */
  .s-cat  { margin-bottom: 20px; }   /* 22 → 20 */
  .s-btn  { margin-top: 30px; }      /* 36 → 30 */
  .s-lead {
    margin-top: 20px;                /* 28 → 20 */
    /* 説明文だけ字間をゼロに（指示）。body の .03em を打ち消す。
       和文の本文は 0 〜 .02em が目安なので、ルールの範囲内。
       見出し（.s-title）とラベル（.s-cat）は従来どおり。 */
    letter-spacing: 0;
  }

  /* ページャーを流し込みに入れて、ボタンの直後へ。ヒーローの下端に
     absolute で貼ったままだと、本文とボタンが先に画面から抜けて
     ページャーだけが残る。送る対象が見えていないのに操作だけ残る。

     位置だけでなく「動き」もコピーと揃える。--hy / --ho はスクロール連動で
     JS が .hero に入れている値で、本体（.hero-copy）は下の Motion polish に
     ある。ページャーはそこに入っていないので、ここで同じ式を当てる。
     これをやらないと、本文が薄れていくのにページャーだけくっきり残る。
     transform は 860px の帯にある translateX(50%) を上書きする役目も兼ねる
     （中央そろえは margin auto が受け持つ）。 */
  .hero-ui {
    position: relative; inset: auto;
    margin: 30px auto 0;
    transform: translate3d(0, var(--hy, 0px), 0);
    opacity: var(--ho, 1);
  }

  /* 写真は --hs ぶんゆっくり下がるので、なじませのマスクも同じだけ動かす。
     ベールを止めたままにすると、ぼかしの位置が写真から少しずつずれる。 */
  .hero-veil { transform: translate3d(0, var(--hs, 0px), 0); }
}

/* -------------------------------------------------------------
   15c. スマホだけの文字まわり
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  /* 見出しの最終行に1〜2文字だけ残るのを避ける。
     未対応のブラウザは従来どおりの折り返しになるだけ（劣化しない）。 */
  h1, h2, h3, h4, .sec-jp, .statement, .pg-catch { text-wrap: pretty; }

  /* 「● 先行相談・事前登録 受付中」と注記「（2026年10月〜）」が
     横に並んだまま、それぞれ2行に割れていた。注記は次の行へ送る。
     align-items は行ごとに効くので、1行目の中央そろえは残る。 */
  .pg-status { display: flex; flex-wrap: wrap; row-gap: 6px; }
  .pg-status small { flex: 0 0 100%; padding-left: 20px; }
}

@media (max-width: 600px) {
  /* clamp の下限 30px が効きっぱなしで、375px だと
     「アイデアで、大丈夫で／す。」と最後の1文字が落ちていた。
     入る幅から逆算して1段下げる（整数px・12px以上のルールに従う）。 */
  .contact h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .slide.is-on .col, .slide.is-on .col-in { transform: none; }
  .s-copy.is-on .s-cat { opacity: 1; transform: none; }
.s-copy.is-on .s-title .ln > i { transform: none; }
}

/* =============================================================
   16. Motion polish（2026-09-02）
   位置・余白・サイズ・色は変えず、動きだけを磨く。
   すべて「静止したときの状態 = 従来の見た目」になるように書く。
   ============================================================= */

/* -------------------------------------------------------------
   16.1 初回ロードのイントロ（ロゴ → 幕が上がる → ヒーロー開始）
   ------------------------------------------------------------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--cream);
  pointer-events: none;
}
/* 2026-09-09：マークを logo-mark.png → logo_icon.svg（インライン）に差し替え。
   動き（C案「スキャン」）：薄い輪郭線のマークが出る → アンテナから青い光の線が降りていき、
   通ったところから本来の色が現れる → ゲージが伸びる → 幕が上がる。
   幕のタイミング（main.js の 1150 / 1280 / 2300ms）は従来のまま。
   ・輪郭線の層（.intro-ghost）は塗りなし・青35%の細い線
   ・本来の色の層（.intro-full）を clip-path: inset(0 0 100% 0) → inset(0) で上から現す
   ・光の線（.intro-scan）は同じ時間で top 0 → 100% に降り、末尾で消える
   ・現れきるのは 1050ms。1150ms の幕上げに間に合う
   輪・波紋・瞬きを足した版は円がズレて見えたため取りやめ（_backup/2026-09-09_intro/ に着手前の状態）。 */
.intro-mark {
  position: relative;
  width: 88px; height: 88px;
  opacity: 0;
}
.intro-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* <use> の複製（シャドウツリー）の中では、祖先を含むセレクタ（.intro .x）が当たらず
   クラス単独のセレクタだけが当たる。祖先で絞ると塗りが未指定＝黒になる（2026-09-09 に実測）。
   そのため他と衝突しない名前（.intro-ib / .intro-iw）にして、祖先なしで書く。
   層ごとの色は <use> 側の --fb / --fw / --st / --sw が複製に継承されて決まる。 */
.intro-ib { fill: var(--fb, var(--hp-sky)); stroke: var(--st, none); stroke-width: var(--sw, 0); stroke-linejoin: round; }
.intro-iw { fill: var(--fw, #fff);          stroke: var(--st, none); stroke-width: var(--sw, 0); stroke-linejoin: round; }
.intro-ghost { --fb: none; --fw: none; --st: rgba(8,127,140,.35); --sw: .7; }
.intro-full  { clip-path: inset(0 0 100% 0); }
.intro-scan {
  position: absolute; left: -10px; right: -10px; top: 0; height: 2px;
  background: var(--hp-sky);
  box-shadow: 0 0 10px 2px rgba(8,127,140,.55);
  opacity: 0;
}
/* 2026-09-10：マークの下にワードマーク（logo_text.svg）を追加。
   マークは 88px 角で、上下中央（.intro の place-items: center）に置かれている。
   ワードマークを通常フローの子として足すとグリッドが2行になり、
   マークが上にずれる。**マークの位置は1pxも動かさない**ため、
   .intro-bar と同じく絶対配置にして、中央からの距離で置いている。
     マークの下端 = 50% + 44px
     ワードマーク  = 50% + 62px（下端から18px下）／高さ約16px
     ゲージ        = 50% + 102px（ワードマークの下端から24px下。
                     従来のマーク下端との間隔 24px を保っている） */
.intro-text {
  position: absolute; left: 0; right: 0; top: calc(50% + 62px);
  text-align: center;
  opacity: 0;
}
/* 幅はマークの約1.7倍。縦積みのロゴなので、横並びのヘッダー（マーク50px : 文字175px）
   ほど文字を長くすると間延びする。高さは 150 × 23.04/211.35 ≒ 16px */
.intro-text img { display: inline-block; width: 150px; height: auto; vertical-align: top; }
.intro-bar {
  position: absolute; left: 50%; top: calc(50% + 102px);
  width: 120px; height: 4px; margin-left: -60px;
  border-radius: 4px;
  background: var(--signal);
  transform: scaleX(0); transform-origin: left;
}
.intro.is-in .intro-mark  { animation: introMark .3s ease forwards; }
.intro.is-in .intro-full  { animation: introReveal .8s cubic-bezier(.4,0,.2,1) .25s forwards; }
.intro.is-in .intro-scan  { animation: introScan .8s cubic-bezier(.4,0,.2,1) .25s forwards; }
.intro.is-in .intro-text  { animation: introMark .4s ease .45s forwards; }
.intro.is-in .intro-bar   { animation: introBar .65s cubic-bezier(.76,0,.24,1) .36s forwards; }
.intro.is-out             { animation: introOut .9s cubic-bezier(.76,0,.24,1) forwards; }
.intro.is-out .intro-mark { animation: introMarkOut .45s cubic-bezier(.5,0,.8,.4) forwards; }
.intro.is-out .intro-text { animation: introMarkOut .45s cubic-bezier(.5,0,.8,.4) forwards; }
.intro.is-out .intro-bar  { animation: introBarOut .4s ease forwards; }
@keyframes introMark    { to { opacity: 1; } }
@keyframes introReveal  { to { clip-path: inset(0 0 0 0); } }
@keyframes introScan    { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes introBar     { to { transform: scaleX(1); } }
@keyframes introOut     { to { transform: translateY(-101%); } }
@keyframes introMarkOut { to { opacity: 0; transform: translateY(-26px); } }
@keyframes introBarOut  { to { opacity: 0; } }
/* 幕が上がるまでヘッダーは待つ */
body.has-intro .header { opacity: 0; transform: translateY(-10px); }

/* -------------------------------------------------------------
   16.2 ヒーロー：コピーを1文字ずつ立ち上げる／写真に奥行き／スクロール追従
   ------------------------------------------------------------- */
/* 分割後は行（i）自体は動かさず、文字（.cw）が動く */
.s-title .ln > i.is-split { transform: none !important; transition: none !important; }
.s-title .cw {
  display: inline-block;
  transform: translateY(112%);
  transition: transform .9s cubic-bezier(.16,.84,.44,1) var(--d, 0ms);
}
.s-copy.is-on  .s-title .cw { transform: none; }
.s-copy.is-out .s-title .cw {
  transform: translateY(-112%);
  transition-duration: .5s;
  transition-delay: var(--do, 0ms);
}
/* グラデ文字は1文字ずつ切り出すと途切れるので、文字ごとに位置をずらして貼る（JSで算出） */
.gradient-text.is-split { background: none; }
.gradient-text.is-split .cw {
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
}

/* 前の写真は、新しい写真が上から差し込まれるあいだ少し奥へ退く */
.slide.is-prev .slide-media {
  transform: scale(1.06);
  filter: brightness(.92) saturate(.92);
  transition: transform 1.5s cubic-bezier(.72,0,.2,1), filter 1.5s ease;
}

/* スクロールで先に去る前景・ゆっくり残る背景（--hy/--ho/--hs は JS） */
.hero-copy   { transform: translate3d(0, var(--hy, 0px), 0); opacity: var(--ho, 1); }
.hero-stage  { transform: translate3d(0, var(--hs, 0px), 0); }
.scroll-cue  { opacity: var(--ho, 1); }

/* ロゴにちょっとだけ愛嬌 */
.brand img { transition: width .4s ease, transform .5s cubic-bezier(.22,1.3,.36,1); }
/* 横長のロックアップになったので、回転ではなく拡大だけにする（回転は正方形マーク向けだった） */
.brand:hover img { transform: scale(1.03); }

/* -------------------------------------------------------------
   16.3 ボタン：光沢が走る／押した感触
   ------------------------------------------------------------- */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.34) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 120% 0;
  pointer-events: none;
}
.btn:hover::after { background-position: -120% 0; transition: background-position .85s cubic-bezier(.3,0,.2,1); }
.btn-line::after { background-image: linear-gradient(115deg, transparent 38%, rgba(8,127,140,.14) 50%, transparent 62%); }
.btn:active {
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 1px)) scale(.985);
  transition-duration: .08s;
}
.btn:hover .arw-i { animation: arwNudge 1.4s ease-in-out .6s infinite; }
@keyframes arwNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.btn:hover .arw-i.is-back { animation: none; }

.d-btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.chip:active  { transform: translateY(0) scale(.96); transition-duration: .08s; }
.nav-cta:active { transform: translateY(0) scale(.97); }

/* -------------------------------------------------------------
   16.4 （空き番）カードの3D傾きは 2026-09-14 に削除した
   ------------------------------------------------------------- */
/* 傾ける要素が無くなったので、親に置いていた perspective も外した
   （`.card-grid, .blog-rail { perspective: 1400px }`）。
   経緯：9/10 にラグを直し対象をリンクだけに絞ったが、
   「滑らかでない・効いていないほうが多い」が解消しなかったため取りやめ。 */

/* -------------------------------------------------------------
   16.5 NUMBERS：桁ごとに回るカウンター
        本物の数字（透明）で幅と基線を確定し、その上に回転する桁を重ねる
   ------------------------------------------------------------- */
.num-card .n { position: relative; display: inline-block; }
.num-card .n.is-roll { color: transparent; }
.num-card .roll {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex;
  color: var(--ink-900);
  white-space: nowrap;
  pointer-events: none;
}
.roll-d { position: relative; height: 100%; overflow: hidden; }
/* 桁の枠は「字送り幅」ぴったり。.val は letter-spacing:-.05em なので枠が字形より
   わずかに狭く、overflow:hidden だと数字の右端が削れる。
   縦（ロールのはみ出し）だけ切って、横は少し逃がす。幅・位置は変えない。 */
@supports (clip-path: inset(0)) {
  .roll-d { overflow: visible; clip-path: inset(0 -.09em); }
}
.roll-d > i {
  display: block; font-style: normal;
  transition: transform 1.6s cubic-bezier(.16,.84,.44,1);
}
.roll-d > i > b { display: block; font-weight: inherit; }

/* -------------------------------------------------------------
   16.6 SERVICE リング：入場／ホバーで浮く／開くときのバネ
   ------------------------------------------------------------- */
@media (min-width: 768px) {
  .ring-stage:not(.is-live) .orb > * { opacity: 0; }
  /* 入場アニメは「入場のあいだだけ」。付けっぱなしにすると、is-active を外した瞬間に
     animation-name が orbPop → orbIn に戻って再生され直し、遅延のあいだ opacity:0 に
     固定される＝閉じたときに玉が一瞬消える。入場後は .is-entered で外す（JS が付ける）。 */
  .ring-stage.is-live:not(.is-entered) .orb-card {
    animation: orbIn .9s cubic-bezier(.22,1.2,.36,1) backwards;
    animation-delay: calc(var(--k, 0) * 60ms + 80ms);
  }
  .ring-stage.is-live:not(.is-entered) .orb-cloud,
  .ring-stage.is-live:not(.is-entered) .orb-no {
    animation: orbFade .7s ease backwards;
    animation-delay: calc(var(--k, 0) * 60ms + 260ms);
  }
  .orb:hover .orb-card { transform: translateY(-5%); }
  .orb.is-active .orb-card { animation: orbPop .55s cubic-bezier(.22,1.4,.36,1); }
}
@keyframes orbIn   { from { opacity: 0; transform: translateY(34px) scale(.72); } to { opacity: 1; transform: none; } }
@keyframes orbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes orbPop  { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }

.svc-pop.is-open {
  /* 開いたあとに事業を選び直すと枠の高さが変わる＝置き場所も変わる。
     top も一緒に滑らせる。開く瞬間は placePop() が is-open を付ける前に走るので、
     この transition は乗らず、正しい位置にそのまま出る。 */
  transition: opacity .3s ease, visibility .3s ease, top .5s cubic-bezier(.22,.7,.28,1),
              transform .7s cubic-bezier(.22,1.35,.36,1);
}
.chip.is-active { animation: chipPop .45s cubic-bezier(.22,1.4,.36,1); }
@keyframes chipPop { 0% { transform: translateY(-2px) scale(1); } 40% { transform: translateY(-2px) scale(1.06); } 100% { transform: translateY(-2px) scale(1); } }

/* -------------------------------------------------------------
   16.7 スクロール出現：セクションごとの緩急
        「:not(.is-in)」= 出る前だけの状態。出たあとは従来どおり
   ------------------------------------------------------------- */
/* 画像は画面端の側から */
.bleed-right.reveal:not(.is-in) { transform: translateX(48px); }
.bleed-left.reveal:not(.is-in)  { transform: translateX(-48px); }
/* 数字カードはスロットの窓から一枚ずつ上がる。再び画面に入ると再生する。 */
@keyframes numSlotRise {
  from { opacity: 1; transform: translateY(120px); clip-path: inset(0 0 100%); }
  to   { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}
.num-card.reveal:not(.is-in) { transform: translateY(100px); filter: none; }
.num-grid .num-card:nth-child(1) { --slot-order: 0; }
.num-grid .num-card:nth-child(2) { --slot-order: 1; }
.num-grid .num-card:nth-child(3) { --slot-order: 2; }
.num-grid .num-card:nth-child(4) { --slot-order: 3; }
.num-card[data-slot-card].is-slot-live {
  animation: numSlotRise 1.8s cubic-bezier(.22,.72,.29,1) backwards;
  animation-delay: calc(var(--slot-order, 0) * 120ms);
}
@media (prefers-reduced-motion: reduce) {
  .num-card[data-slot-card].is-slot-live { animation: none; }
}
/* ブログカードはほんの少し傾いて */
.card.reveal:not(.is-in) { transform: translateY(46px) rotate(.6deg); }

/* 大きな画像の視差（--py は JS）。出現アニメ中は滑らかに、終わったら即時に追従 */
.is-in.bleed-right > img,
.is-in.bleed-left  > img { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
.done.bleed-right  > img,
.done.bleed-left   > img { transition: none; }
.recruit-bg img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  will-change: transform;
}

/* --- 子要素を順番に出すグループ --- */
.pg-2col.reveal,
.recruit-jobs.reveal,
.flow.reveal,
.strength.reveal,
.prod-grid.reveal,
.target-list.reveal,
.fact-grid.reveal,
.footer-top.reveal,
.contact-actions.reveal { opacity: 1; transform: none; filter: none; }

/* Pay Guardian：バナーは左から、右のテキストは上から順に */
.pg-2col.reveal:not(.done) .pg-banner {
  opacity: 0; transform: translateX(-36px); filter: blur(6px);
  transition: opacity 1s cubic-bezier(.16,.84,.44,1), transform 1.1s cubic-bezier(.16,.84,.44,1), filter .9s ease;
}
.pg-2col.reveal:not(.done) .pg-cta > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.16,.84,.44,1) var(--d, 0ms);
}
.pg-2col.reveal .pg-cta > :nth-child(1) { --d: .22s; }
.pg-2col.reveal .pg-cta > :nth-child(2) { --d: .32s; }
.pg-2col.reveal .pg-cta > :nth-child(3) { --d: .42s; }
.pg-2col.reveal .pg-cta > :nth-child(4) { --d: .52s; }
.pg-2col.reveal .pg-cta > :nth-child(5) { --d: .62s; }
.pg-2col.reveal .pg-cta > :nth-child(6) { --d: .72s; }
.pg-2col.reveal.is-in:not(.done) .pg-banner,
.pg-2col.reveal.is-in:not(.done) .pg-cta > * { opacity: 1; transform: none; filter: none; }

/* 汎用：子を 90ms 刻みでポップ */
.recruit-jobs.reveal:not(.done) > *,
.flow.reveal:not(.done) > *,
.strength.reveal:not(.done) > *,
.prod-grid.reveal:not(.done) > *,
.target-list.reveal:not(.done) > *,
.fact-grid.reveal:not(.done) > *,
.footer-top.reveal:not(.done) > *,
.contact-actions.reveal:not(.done) > * {
  opacity: 0; transform: translateY(22px) scale(.97);
  transition: opacity .75s ease var(--d, 0ms), transform .85s cubic-bezier(.22,1.1,.36,1) var(--d, 0ms);
}
.recruit-jobs.reveal > :nth-child(1), .flow.reveal > :nth-child(1), .strength.reveal > :nth-child(1), .prod-grid.reveal > :nth-child(1), .target-list.reveal > :nth-child(1), .fact-grid.reveal > :nth-child(1), .footer-top.reveal > :nth-child(1), .contact-actions.reveal > :nth-child(1) { --d: 0ms; }
.recruit-jobs.reveal > :nth-child(2), .flow.reveal > :nth-child(2), .strength.reveal > :nth-child(2), .prod-grid.reveal > :nth-child(2), .target-list.reveal > :nth-child(2), .fact-grid.reveal > :nth-child(2), .footer-top.reveal > :nth-child(2), .contact-actions.reveal > :nth-child(2) { --d: 90ms; }
.recruit-jobs.reveal > :nth-child(3), .flow.reveal > :nth-child(3), .strength.reveal > :nth-child(3), .prod-grid.reveal > :nth-child(3), .target-list.reveal > :nth-child(3), .footer-top.reveal > :nth-child(3) { --d: 180ms; }
.recruit-jobs.reveal > :nth-child(4), .flow.reveal > :nth-child(4), .prod-grid.reveal > :nth-child(4), .target-list.reveal > :nth-child(4), .footer-top.reveal > :nth-child(4) { --d: 270ms; }
.flow.reveal > :nth-child(5), .prod-grid.reveal > :nth-child(5), .target-list.reveal > :nth-child(5) { --d: 360ms; }
.prod-grid.reveal > :nth-child(6) { --d: 450ms; }
.prod-grid.reveal > :nth-child(7) { --d: 540ms; }
.prod-grid.reveal > :nth-child(8) { --d: 630ms; }
.recruit-jobs.reveal.is-in:not(.done) > *,
.flow.reveal.is-in:not(.done) > *,
.strength.reveal.is-in:not(.done) > *,
.prod-grid.reveal.is-in:not(.done) > *,
.target-list.reveal.is-in:not(.done) > *,
.fact-grid.reveal.is-in:not(.done) > *,
.footer-top.reveal.is-in:not(.done) > *,
.contact-actions.reveal.is-in:not(.done) > * { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   16.8 動きを減らす設定
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  body.has-intro .header { opacity: 1; transform: none; }
  .s-title .cw { transform: none !important; }
  .ring-stage:not(.is-live) .orb > * { opacity: 1; }
  .reveal > *, .pg-cta > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-copy, .hero-stage, .scroll-cue { transform: none; opacity: 1; }
  .btn::after { display: none; }
}

/* -------------------------------------------------------------
   17. クッキー同意バナー（2026-09-15）
       左下に浮くカード。HTML には書かず、main.js 「8.」が body の末尾に作る。
       全22ページが main.js を読んでいるので、置くのはここ1か所でよい。

       ・z-index はイントロ(1000)の下・ヘッダー(100)の上。
         ただしスマホのドロワー（body.is-open）は .gnav が inset:0 で全画面を
         覆うのにヘッダーの stacking context に居るため実質100相当で、
         このバナーが上にかぶさる。開いているあいだは消す。
       ・ボタンに .btn は使わない。あれは min-width:300px を持っていて
         380px のカードでは窮屈になる（2026-09-14 に同じ失敗をしている）。
       ・文字サイズは 12 / 14 / 16px。15・17px は使わない取り決めのため。
   ------------------------------------------------------------- */
.ck {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 900;
  width: 340px;
  max-width: calc(100% - 48px);
  padding: 22px 22px 20px;
  border-radius: var(--r-panel);
  background: var(--paper);
  /* 枠線は付けない。浮いているのは影だけで示す */
  box-shadow: var(--sh-lg);
  /* 出る前は下に沈めておく。JS が .is-in を付けて上げる */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.3,1);
}
.ck.is-in  { opacity: 1; transform: none; }
.ck.is-out { opacity: 0; transform: translateY(20px); }

/* ドロワーを開いているあいだは隠す（上記の理由） */
body.is-open .ck { display: none; }

.ck-label {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  color: var(--hp-sky);
  /* 右上の × と重ならないように逃がす */
  padding-right: 32px;
  margin-bottom: 10px;
}

.ck-text {
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: .04em;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.ck-text a {
  color: var(--hp-sky);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ck-text a:hover { color: var(--hp-sky-hi); }

.ck-ok {
  /* 横いっぱいには広げず、中身ぶんの幅で右に寄せる */
  display: flex;
  align-items: center;
  width: fit-content;
  margin-left: auto;
  padding: 14px 30px;
  border-radius: 100px;
  background: var(--hp-sky);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(8,127,140,.26);
  transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.ck-ok:hover {
  background: var(--hp-sky-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(8,127,140,.32);
}
.ck-ok:active { transform: translateY(0); }

/* × は news のモーダル（.nw-close）と同じ作り。ひとまわり小さくしてある */
.ck-close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ghost);
  color: var(--ink-500);
  transition: background-color .2s ease, color .2s ease;
}
.ck-close:hover { background: var(--ink-900); color: #fff; }
.ck-close svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}

/* サイトに :focus-visible の指定は無く、既定の輪郭も地色に埋もれる。
   このバナーの中だけロゴの青で出す（他の見た目には触らない） */
.ck-ok:focus-visible,
.ck-close:focus-visible,
.ck-text a:focus-visible {
  outline: 2px solid var(--hp-sky);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .ck {
    left: 16px; right: 16px; bottom: 16px;
    width: auto; max-width: none;
    padding: 20px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck { transition: none; transform: none; }
  .ck.is-out { transform: none; }
  .ck-ok:hover, .ck-ok:active { transform: none; }
}

/* =============================================================
   REGTECH INFRASTRUCTURE（2026-09-22 追加）
   トップの「規制 → 基盤 → 証跡」の図。
   何の会社かを、文章より先に伝えるための部品。
   写真もイラストも使わず、罫線と文字だけで組む（海外からの閲覧を想定して、
   読み込みが軽く、翻訳にもかけやすい形にしてある）。
   ============================================================= */
.rgi { padding: 110px 0 100px; background: var(--cream); }
.rgi-head { max-width: 760px; }
.rgi-en {
  font-family: var(--f-en);
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  color: var(--hp-sky);
}
.rgi-ttl {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.45; color: var(--ink-900);
}
.rgi-lead { margin-top: 18px; font-size: 16px; line-height: 2; color: var(--ink-700); }

.rgi-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1.15fr 40px 1fr;
  gap: 0 8px; align-items: stretch;
  margin-top: 54px;
}
.rgi-col {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.rgi-cap {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: var(--ink-300);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.rgi-col ul { display: grid; gap: 11px; }
.rgi-col li {
  position: relative; padding-left: 16px;
  font-size: 14.5px; line-height: 1.75; color: var(--ink-700);
}
.rgi-col li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 1px; background: var(--ink-300);
}

/* 中央だけ濃い面にして、ここが自社だと分かるようにする */
.rgi-core { border-color: transparent; background: var(--hp-navy); }
.rgi-core .rgi-cap { color: rgba(255,255,255,.62); border-bottom-color: rgba(255,255,255,.18); }
.rgi-core-box {
  padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, var(--hp-sky), #21b6c7);
}
.rgi-core-box.is-sub { margin-top: 10px; background: rgba(255,255,255,.1); }
.rgi-core-ttl { font-family: var(--f-en); font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.rgi-core-sub { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.85); }
.rgi-core-list { margin-top: 16px; }
.rgi-core-list li { color: rgba(255,255,255,.8); }
.rgi-core-list li::before { background: rgba(255,255,255,.45); }

.rgi-out .rgi-note {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.8; color: var(--hp-sky); font-weight: 700;
}

/* 列のあいだの矢印 */
.rgi-arrow { display: grid; place-items: center; }
.rgi-arrow span {
  display: block; width: 100%; height: 1px; background: var(--line);
  position: relative;
}
.rgi-arrow span::after {
  content: ""; position: absolute; right: 0; top: -3px;
  border: 4px solid transparent; border-left-color: var(--ink-300);
}

@media (max-width: 900px) {
  /* 横に並べられない幅では、上から下へ流す */
  .rgi { padding: 80px 0 70px; }
  .rgi-flow { grid-template-columns: 1fr; gap: 0; margin-top: 38px; }
  .rgi-arrow { height: 34px; }
  .rgi-arrow span { width: 1px; height: 100%; }
  .rgi-arrow span::after {
    right: auto; left: -3px; top: auto; bottom: 0;
    border-left-color: transparent; border-top-color: var(--ink-300);
  }
}

/* =============================================================
   PRODUCTS / HOW IT WORKS（2026-09-23 追加）
   見出しの小見出し・大見出し・リードは .rgi-en / .rgi-ttl / .rgi-lead を流用。
   すぐ上の「規制→基盤→証跡」の図と同じ文法で組み、ひと続きに見せる。
   ============================================================= */
.prd { padding: 110px 0 60px; background: #fff; }
.prd-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  gap: 56px; align-items: start;
}
.prd-link { margin-top: 26px; }
.prd-link a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800; color: var(--hp-sky);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.prd-link .arw-i { width: 6px; height: 10px; fill: currentColor; }

.prd-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.prd-card {
  display: flex; flex-direction: column;
  padding: 30px 30px 32px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.prd-kind { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--ink-300); }
.prd-name {
  margin-top: 8px;
  font-family: var(--f-en); font-size: 26px; font-weight: 800;
  letter-spacing: -.015em; color: var(--ink-900);
}
.prd-catch { margin-top: 10px; font-size: 15px; font-weight: 800; color: var(--ink-900); }
.prd-desc { margin-top: 12px; font-size: 14.5px; line-height: 1.95; color: var(--ink-700); }
.prd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.prd-tags li {
  padding: 4px 10px; border-radius: 999px;
  background: var(--cream-2); font-family: var(--f-en);
  font-size: 11.5px; font-weight: 700; color: var(--ink-700);
}
/* Pay Guardian は中核なので、図の中央と同じ濃い面にする */
.prd-card.is-core { border-color: transparent; background: var(--hp-navy); }
.prd-card.is-core .prd-kind { color: rgba(255,255,255,.6); }
.prd-card.is-core .prd-name,
.prd-card.is-core .prd-catch { color: #fff; }
.prd-card.is-core .prd-desc { color: rgba(255,255,255,.8); }
.prd-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px; font-weight: 800; color: #fff;
}
.prd-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fd0a4; }
.prd-status small { flex-basis: 100%; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.62); }
.prd-btn { margin-top: auto; padding-top: 22px; }
.prd-btn .btn { width: 100%; }

.how { padding: 60px 0 110px; background: #fff; }
.how-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0; margin-top: 40px;
  border-top: 1px solid var(--line);
}
.how-steps li {
  position: relative;
  padding: 26px 22px 6px 0;
}
.how-steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.how-no {
  display: block; font-family: var(--f-en);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--hp-sky);
}
.how-steps b { display: block; margin-top: 10px; font-size: 16px; font-weight: 900; color: var(--ink-900); }
.how-steps p { margin-top: 8px; font-size: 13.5px; line-height: 1.85; color: var(--ink-700); }
.how-link { margin-top: 30px; }

@media (max-width: 1100px) {
  .prd-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  .prd { padding: 80px 0 40px; }
  .prd-cards { grid-template-columns: 1fr; }
  .how { padding: 40px 0 80px; }
  .how-steps { grid-template-columns: 1fr; border-top: 0; }
  .how-steps li, .how-steps li + li {
    padding: 18px 0 18px 0; border-left: 0; border-top: 1px solid var(--line);
  }
}

/* -------------------------------------------------------------
   NUMBERS：桁の多い数字（2026-09-23）
   数字の大きさは画面幅（5.4vw）で決まるが、カードの幅は頭打ちになる。
   「1,000」のように4桁＋カンマになると、広い画面ほどカードからあふれ、
   単位の「件+」に重なっていた。
   さらにカンマの入る数字は、回る桁（.roll）が本物の数字より約.19em広い。
   → 長い数字だけ、大きさをカードの幅に連動させ、単位との間隔を広げる。
   ------------------------------------------------------------- */
.num-card { container-type: inline-size; }
.num-card .val.is-long {
  font-size: min(clamp(52px, 5.4vw, 96px), 29cqi);
  gap: .22em;
}

/* -------------------------------------------------------------
   日本語の改行位置（2026-09-23）
   スマホ幅で「制度が読めな／い。」のように1字だけ次の行に落ちていた。
   auto-phrase は文節の切れ目で折り返す（Chrome / Edge。Safari は従来どおり）。
   パソコン用に入れた <br> は、狭い画面では外して流し込みにする。
   ------------------------------------------------------------- */
.rgi-ttl, .rgi-lead, .prd-desc, .prd-catch, .how-steps p,
.contact .sec-lead, .contact h2 { word-break: auto-phrase; }
/* 説明文はカード幅に合わせて自然に折り返す。文節単位の固定的な改行を避ける。 */
.num-card .note { word-break: normal; white-space: normal; }
@media (max-width: 760px) {
  .contact .sec-lead br { display: none; }
}

/* NUMBERS：回る桁（0〜9 の帯）はコピーの対象から外す。
   選んでコピーすると、隠れている帯の数字まで全部貼り付けられていた。
   本物の数字（透明にしてある .n の文字）だけがコピーされる。 */
.num-card .roll { user-select: none; -webkit-user-select: none; }

/* 画面には出さず、読み上げと文書の構造にだけ残す見出し（2026-09-24）
   例：ブログ一覧で「ブログ」(h1) と記事カード (h3) のあいだの h2 */
.visually-hidden {
  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;
}
