/* サイト全体の UI 調整（Webflow エクスポートの上書き）
   - ボタン類をガラス調＋ボーダービーム（縁を光が回る）のデザインにする
     （参考: 21st.dev の hyperiux/border-beam、larsen66/border-beam-search。コードは独自に CSS だけで書き直したもの）
   - 入力欄はフォーカス中に下線を光が走る
   - レイアウトの崩れの補正 */

:root {
  --hb-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  --hb-glass-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
  --hb-glass-edge: rgba(255, 255, 255, 0.14);
  --hb-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px -12px rgba(4, 7, 24, 0.7);
}

/* ビームの色: ロゴの青系（青・水色・白・薄紫）。
   回す --hb-angle は光の疑似要素ごとに動くので、ここ（疑似要素の上）で組み立てる。
   :root に置くと 0deg のまま固まった値が引き継がれ、光が回らなかった */
.button-icon-default::after,
.button-icon-default::before,
.hb-beam::after,
.hb-beam::before,
.menu-button::after,
.menu-button::before {
  --hb-beam: conic-gradient(from var(--hb-angle),
    transparent 0%, transparent 58%,
    rgba(59, 91, 255, 0.5) 64%,
    #96d7ff 71%,
    #ffffff 74%,
    #b9a6ff 78%,
    rgba(59, 91, 255, 0.4) 83%,
    transparent 88%, transparent 100%);
}

@property --hb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --hb-x {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: false;
}

@keyframes hb-spin {
  to { --hb-angle: 360deg; }
}

@keyframes hb-travel {
  0% { --hb-x: -10%; }
  100% { --hb-x: 110%; }
}

/* ---------- ガラスのボタン（共通） ---------- */

.button-icon-default,
.hb-beam,
.menu-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: var(--hb-glass);
  border: 1px solid var(--hb-glass-edge);
  box-shadow: var(--hb-glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .3s;
}

/* 縁を回る光 */
.button-icon-default::after,
.hb-beam::after,
.menu-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--hb-beam);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: hb-spin 4.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* 光が通るあたりの内側のにじみ。ぼかしが角からはみ出して四角く見えないよう、ピル型で切り抜く
   （Safari ではボタンの overflow: hidden が角丸で効かず、ホバー時に四角が出ていた） */
.button-icon-default::before,
.hb-beam::before,
.menu-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--hb-beam);
  filter: blur(10px);
  -webkit-clip-path: inset(0 round 999px);
  clip-path: inset(0 round 999px);
  opacity: .28;
  animation: hb-spin 4.5s linear infinite;
  pointer-events: none;
  z-index: -1;
  transition: opacity .3s;
}

.button-icon-default:hover,
.hb-beam:hover,
.menu-button:hover {
  background-image: var(--hb-glass-hover);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--hb-glass-shadow), 0 0 24px -6px rgba(150, 215, 255, 0.45);
}

.button-icon-default:hover::before,
.hb-beam:hover::before,
.menu-button:hover::before {
  opacity: .5;
}

/* Detail / HOME ボタン: 幅いっぱいに伸びないピル型に揃える */
.button-icon-default {
  width: auto;
  min-width: 9.5rem;
  gap: 1.25rem;
  padding: 4px 16px 4px 6px;
  border-radius: 999px;
}

.button-icon-default > * {
  position: relative;
  z-index: 1;
}

/* ラベルの差し替えアニメーション用の 2 枚目を枠の外に出さない（404 で文字がダブっていた） */
.button-icon-default .div-relative {
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .works-button-wrap .button-icon-default {
    min-width: 11rem;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* 送信ボタン（input には疑似要素が付けられないので .hb-beam で包んでいる） */
.hb-beam {
  display: inline-flex;
  border-radius: 999px;
}

.hb-beam .form-button {
  position: relative;
  z-index: 1;
  border: 0;
  background-color: transparent;
  color: #fff;
  letter-spacing: .06em;
  padding: .75em 2.25em;
}

.hb-beam .form-button:hover {
  background-color: transparent;
}

/* ハンバーガー: ガラスの正円。開くと同じ丸のまま3本線が × に変わり、閉じるボタンを兼ねる
   （js/side-menu.js）。開いたメニュー（.side-menu_component、z-index 999）より前に置く */
.menu-button {
  z-index: 1000;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-button > * {
  position: relative;
  z-index: 1;
}

.menu-button .div-block-66 {
  width: 22px;
  height: 14px;
}

/* 線は 14px の箱の上・中・下（中心が 6px ずつ離れている）。× にするときは上下の線を中央へ寄せて傾ける */
.menu-button .div-block-67 {
  width: 22px;
  transform: translateY(0) rotate(0deg) skewX(-50deg) scaleX(1);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .25s;
}

html.hb-menu-open .menu-button .div-block-67:first-child {
  transform: translateY(6px) rotate(45deg) skewX(0deg) scaleX(1);
}

html.hb-menu-open .menu-button .div-block-67:nth-child(2) {
  opacity: 0;
  transform: translateY(0) rotate(0deg) skewX(-50deg) scaleX(.2);
}

html.hb-menu-open .menu-button .div-block-67:last-child {
  transform: translateY(-6px) rotate(-45deg) skewX(0deg) scaleX(1);
}

/* メニューの中の × は使わない（ハンバーガーが × になる）。下の項目の位置は変えないよう、場所だけ残す */
.close-button {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- 入力欄: フォーカス中に下線を光が走る ---------- */

.text-field {
  transition: background-color .3s, border-color .3s;
}

.text-field::placeholder {
  color: rgba(137, 147, 184, 0.5);
}

.text-field:focus,
.text-field:focus-visible {
  outline: none;
  border-bottom-color: rgba(150, 215, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.03);
  background-image:
    radial-gradient(ellipse 90px 2px at var(--hb-x) 100%, #ffffff, #96d7ff 40%, transparent 100%),
    radial-gradient(ellipse 110px 26px at var(--hb-x) 100%, rgba(150, 215, 255, 0.22), transparent 70%);
  background-repeat: no-repeat;
  animation: hb-travel 3.2s ease-in-out infinite alternate;
}

/* ---------- ヘッダー: スクロール後はガラスの帯を敷いて、下の文字と重ならないようにする ---------- */
/* 帯は js/herenga-ui.js が body 直下に置く（ロゴの mix-blend-mode があった頃は、ヘッダーの中だと
   背景のぼかし（backdrop-filter）が効かなかったため。いまはロゴを通常の合成にしている）。 */

.hb-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 9998;
  background: linear-gradient(180deg, rgba(24, 29, 48, 0.78), rgba(24, 29, 48, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

/* トップの PC 表示は横スクロールで中身がヘッダーの下に来ないので帯は出さない */
html.hb-scrolled:not([data-wf-page="679cb0715742e9506de9dbc4"]) .hb-header-bar {
  opacity: 1;
}

/* スマホ・タブレットでは帯を敷かない（Yoshi さんの判断: ヘッダーは背景なしでよい） */
@media screen and (max-width: 991px) {
  .hb-header-bar {
    display: none;
  }
}

/* メニューボタンの右の余白を、上の余白（ロゴの高さの中央にそろえた位置、PC 32px・SP 24px）と同じにする（Yoshi 2026-10-23） */
.navbar_component {
  padding-right: 2rem;
}

@media screen and (max-width: 479px) {
  .navbar_component {
    padding-right: 1.5rem;
  }
}

/* ---------- トップ最初の画面: 下の文字ブロックからロゴの帯までを、左の余白と同じにする（Yoshi 2026-10-23） ----------
   帯（.hb-logos、PC 56px・SP 46px）は画面の下に固定されて最初の画面に重なるので、その高さも足す */
.home-hero-section {
  padding-bottom: calc(5em + 56px + env(safe-area-inset-bottom, 0px));
}

@media screen and (max-width: 991px) {
  .home-hero-section {
    padding-bottom: calc(3em + 56px + env(safe-area-inset-bottom, 0px));
  }
}

@media screen and (max-width: 767px) {
  .home-hero-section {
    padding-bottom: calc(40px + 46px + env(safe-area-inset-bottom, 0px));
  }
}

@media screen and (max-width: 479px) {
  .home-hero-section {
    padding-bottom: calc(20px + 46px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- トップ: 背景の動画パネルの四辺をぼかして、固定背景となじませる ---------- */

.has-glass-fold .background-video_sankaku {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

/* マスクで重なり順が変わり、暗くするオーバーレイが動画の下に回るので、動画自体を薄くしておく */
.has-glass-fold .background-video_sankaku > video {
  opacity: .2;
}

/* 写真・メンバーのパネルは、左右の端を暗い色で塗って隠していたのを、透明にフェードする形に置き換える */
@media screen and (min-width: 768px) {
  .has-glass-fold .home-playground-section {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5em, #000 calc(100% - 5em), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5em, #000 calc(100% - 5em), transparent);
  }

  .has-glass-fold .playground-home-overlay-left,
  .has-glass-fold .playground-home-overlay-right {
    display: none;
  }
}

/* ---------- 会社概要: スマホでもメンバーを 2 人ずつ横に並べる。
   列が細いので、経歴は「年・項目」の下に内容を置き、文字を一段小さくする ---------- */

.text-block-11 {
  flex: none;
  white-space: nowrap;
}

@media screen and (max-width: 479px) {
  .section-2 {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px 28px;
  }

  .slide {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .slide .text-block-8 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
  }

  .slide .text-block-9 {
    width: auto;
    font-size: 11px;
    line-height: 1.6;
  }

  .slide .div-block-58 {
    margin-top: 12px;
  }

  .div-block-59 {
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .text-block-11 {
    width: auto;
    margin-right: .6em;
    opacity: .7;
    font-size: 10.5px;
    line-height: 1.5;
  }

  .text-block-10 {
    flex: 1 0 100%;
    width: 100%;
    margin: 1px 0 0;
    font-size: 11.5px;
    line-height: 1.55;
  }
}

/* ---------- メンバー: スマホでは名前の下に影を敷いて、顔と重なっても読めるようにする ---------- */

@media screen and (max-width: 767px) {
  .card-text-wrapper {
    mix-blend-mode: normal;
    padding: 28px 10px 10px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(0deg, rgba(14, 17, 32, 0.92), rgba(14, 17, 32, 0.6) 60%, transparent);
  }

  .card-text-wrapper .zen-subheading-large-2 {
    font-size: 15px;
    line-height: 1.3;
  }
}

/* ---------- 動きを減らす設定の環境ではビームを止める ---------- */

@media (prefers-reduced-motion: reduce) {
  .button-icon-default::after,
  .button-icon-default::before,
  .hb-beam::after,
  .hb-beam::before,
  .menu-button::after,
  .menu-button::before,
  .text-field:focus {
    animation: none;
  }
}

/* =====================================================================
   デザインの刷新（色・レイアウトはそのまま、質感・文字組み・動きを整える）
   ===================================================================== */

/* ---------- 背景: 下層ページにもトップと同じロゴモチーフの背景を敷く（js/glass-fold.js） ---------- */

.glass-fold-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.hb-bg-host {
  clip-path: inset(0);
  background-color: transparent;
}

.hb-bg-host > :not(.glass-fold-canvas) {
  position: relative;
  z-index: 1;
}

/* 下層ページは、背景の下端を暗くしてフッターへなめらかにつなぐ */
.layer.hb-bg-host::after,
.contact-hero-section.hb-bg-host::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40vh;
  z-index: 0;
  background: linear-gradient(180deg, rgba(24, 29, 48, 0), var(--dark));
  pointer-events: none;
}

/* ---------- 文字組み ---------- */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 和文の詰め（プロポーショナル）。本文が長いところだけ行間を少し広げる */
body,
.campany_text,
.text-block-12,
.text-block-10 {
  font-feature-settings: "palt";
}

.container-2 p,
.container-2 .w-richtext p,
.text-block-12,
.mvv_text,
.service-card-description-wrapper {
  line-height: 1.85;
}

/* 下層ページの大見出し: 少し大きく、上から下へ白→ブランドの青紫のグラデーション */
.layer01 h1,
.contact-hero-wrapper > h1 {
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  letter-spacing: .03em;
  line-height: 1;
  padding: .3em 0 .35em;
}

/* グラデーションは中の span に掛ける（Webflow が span を動かすと、h1 側の background-clip が効かなくなるため） */
.layer01 h1 > span,
.contact-hero-wrapper > h1 > span {
  display: inline-block;
  padding-bottom: .08em;
  background: linear-gradient(180deg, #ffffff 10%, #aab3d6 55%, var(--beige) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- ガラスのカード ---------- */

.service-card,
.ma-list,
.zen-avatar,
.hb-panel {
  --mx: 50%;
  --my: -200%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background-image:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(150, 215, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 24px 0 rgba(103, 170, 192, 0.18), 0 18px 40px -24px rgba(4, 7, 24, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .4s, box-shadow .4s, transform .5s cubic-bezier(.2, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

/* 光るのはマウスを乗せたときだけ。スマホでカードを押しても、ボタンのように光らない（Yoshi 2026-10-31）。
   事業紹介のカード（.hb-biz-card）は押せるものではないので、PC でも光らせない（Yoshi 2026-10-31） */
@media (hover: hover) {
  .service-card:hover,
  .ma-list:hover,
  .zen-avatar:hover,
  .hb-panel:not(.hb-biz-card):hover {
    border-color: rgba(150, 215, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(150, 215, 255, 0.08), 0 24px 50px -24px rgba(30, 60, 200, 0.55);
  }
}

.service-card {
  overflow: hidden;
}

/* メンバーページのカード: 顔の画像を透過にしたので、外枠の塗り（--beige）をやめて、
   ガラスのカードの縁を薄い青紫にする。顔の後ろには淡い青の光 */
.zen-testimonial-card-outline {
  padding: 0;
  border: 0;
  background-color: transparent;
}

.zen-testimonial-card-outline .zen-avatar {
  border-color: rgba(137, 147, 184, 0.45);
  border-radius: 20px;
  background-image:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(150, 215, 255, 0.12), transparent 60%),
    radial-gradient(60% 55% at 50% 42%, rgba(30, 60, 200, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

/* iPhone の Safari では、カードが写真から動画に切り替わるとき（動画が別の層で描かれる）、
   外枠の角丸で動画が切り取られず、四角い角がはみ出す。動画そのものとその入れ物にも同じ角丸を付ける
   （枠線 1px の内側なので 19px）。入れ物を mask や translateZ で別の層にすると、iPhone で速くスクロールしたときに
   描画が追いつかず、カードの中身が空のまま見えるので使わない */
.zen-testimonial-card-outline .card-wrapper-2,
.zen-testimonial-card-outline .full-video,
.zen-testimonial-card-outline .full-video video {
  border-radius: 19px;
}

/* メンバーのカードは少し浮く */
.zen-avatar:hover {
  transform: translateY(-4px);
}

/* 実績の行・M&A 案件の項目は、角を丸めて行間のリズムを揃える */
.award-item,
.ma_po {
  border-radius: 10px;
}

/* お問い合わせフォームをガラスのパネルに載せる */
.contact-form.hb-panel {
  width: min(100%, 44rem);
  padding: 2.5em 3em 3em;
  border-radius: 24px;
}

@media screen and (max-width: 767px) {
  .contact-form.hb-panel {
    padding: 1.75em 1.25em 2em;
    border-radius: 18px;
  }
}

/* お問い合わせ: 同意 → 「SHOW E-MAIL」でメールアドレスを出す（入力フォームはやめた。Yoshi 2026-10-25） */
.hb-mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75em;
  text-align: center;
  /* 日本語は文節の切れ目で折り返す（対応するブラウザだけ） */
  word-break: auto-phrase;
}

.hb-mail-lead {
  margin: 0;
  color: #c0c0d3;
  font-size: 1rem;
  line-height: 1.9;
}

/* 狭い画面では、句読点や言葉の切れ目でまとめて折り返す */
.hb-mail-lead span,
.hb-mail-consent a span {
  display: inline-block;
}

.hb-mail-consent input {
  accent-color: #6aa8ff;
}

.hb-mail-consent.w-checkbox {
  margin: 0;
  color: #8993b8;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

/* 下線は中の span に引く（inline-block には a の下線が届かない） */
.hb-mail-consent a span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hb-mail-btn {
  font-family: inherit;
}

/* 同意するまでは押せないことが分かるように薄くし、縁の光も止める */
.hb-mail-beam {
  transition: opacity .3s;
}

.hb-mail-beam.is-off {
  opacity: .35;
}

.hb-mail-beam.is-off::before,
.hb-mail-beam.is-off::after {
  visibility: hidden;
}

.hb-mail-btn:disabled {
  cursor: not-allowed;
}

/* アドレスの枠は無地で塗りつぶす。後ろの背景の動きやパネルの光が透けると、選んでコピーしにくい（Yoshi 2026-10-25） */
.hb-mail-box {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5em 1em 1.25em;
  border: 1px solid rgba(192, 192, 211, 0.22);
  border-radius: 16px;
  background: #0d1124;
  animation: hb-mail-in .5s cubic-bezier(.2, .7, .2, 1);
}

.hb-mail-box[hidden] {
  display: none;
}

.hb-mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5em 1em;
  margin-bottom: .6em;
}

.hb-mail-addr {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: .04em;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}

.hb-mail-copy {
  flex: none;
  padding: 8px 18px;
  background-color: transparent;
  border-radius: 999px;
  color: var(--zen--neutral--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.hb-mail-copy::after,
.hb-mail-copy::before {
  border-radius: 999px;
}

.hb-mail-copy.is-done {
  border-color: rgba(150, 215, 255, 0.6);
}

.hb-mail-note {
  margin: 0;
  color: #8993b8;
  font-size: 14px;
}

.hb-mail-done {
  min-height: 1.5em;
  margin: .4em 0 0;
  color: #96d7ff;
  font-size: 13px;
}

@keyframes hb-mail-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-mail-box { animation: none; }
}

/* 会社概要の表: 行にホバーすると薄く光る */
.div-block-38 {
  border-bottom-color: rgba(192, 192, 211, 0.22);
  transition: background-color .3s;
}

.div-block-38:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

/* ---------- トップ: 横に動く帯のはみ出しで、ページ自体が横にスクロールしないようにする ----------
   帯（.scroll-container）は画面の右へ長くはみ出しているので、トラックパッドで横にスワイプすると
   ページ全体が左にずれ、右端に後ろのフッターの色が見えていた。はみ出しは切り取る。
   hidden だとスクロールの箱になって .scroll-track の sticky が効かなくなるので clip にする */

.horizontal-scroll-wrapper {
  overflow-x: clip;
}

/* ---------- トップの横スクロール: 「CLICK TO TALK US」を外した分だけ短くし、Contact で終わる ---------- */
/* Webflow のインタラクション（js/herenga-02e484.js の a-15）で、横に動く量を -460vw、
   終わりのオフセットを高さの 12.5% にしてある。高さを 800vh にすると、どの画面比率でも
   縦スクロールしきったところ（高さ − 1 画面 = 87.5%）でちょうど動き終わる */

@media screen and (min-width: 992px) {
  .horizontal-scroll-wrapper {
    height: 800vh;
  }

  .sectiontitle.hb-scroll-end {
    flex: none;
    width: 40.5vw;
  }
}

/* ---------- 3事業の連携図（中身は partials/business-synergy.html。/test と共通） ---------- */
/* PC では横スクロールの中の 1 画面。図は画面の幅いっぱいに置き、広い画面では拡大して、1 画面に収まらなければ縮める
   （Yoshi 2026-10-28: 広い画面で横幅が狭まって見えないように）。縮めすぎになる低い画面では、
   横の動きがここで止まり、図だけが上へスクロールしてから先へ進む（js/herenga-ui.js の setupSynergy） */

.hb-syn-stage {
  position: relative;
  flex: none;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  overflow: clip;
  /* 上へ流れる図は、ヘッダーのロゴにかかる手前で消えていく */
  -webkit-mask-image: linear-gradient(180deg, transparent 44px, #000 92px);
  mask-image: linear-gradient(180deg, transparent 44px, #000 92px);
}

.hb-syn-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 92px max(16px, 2.5vw) 80px;
}

/* 図の中の地の色を、トップの背景に合わせる */
.hb-syn-stage .hb-synergy {
  --sy-bg: var(--dark, #181d30);
}

@media screen and (max-width: 991px) {
  .hb-syn-stage {
    width: 100%;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
    /* メニューの Business から飛んだとき、図の上の枠がヘッダーの下から始まる（js/herenga-ui.js） */
    scroll-margin-top: 40px;
  }

  .hb-syn-inner {
    min-height: 0;
    padding: 56px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
  }
}

/* ---------- 連携図と Branding Div. のあいだ: ページが途切れて、奥のフッターのマークと惑星が見える（Yoshi 2026-10-28） ---------- */
/* PC では画面の幅の 1/4、スマホ・タブレットでは高さの 1/4 の隙間。帯の背景（js/glass-fold.js）があれば（html.hb-peek-cut、
   js/herenga-ui.js の setupPeek）ページの地の色を消し、帯を隙間のところだけ切り抜くので、後ろに重なっているフッターが見え、
   ポインタも届く。背景がないときは暗い隙間のまま。
   スクロールのたびにページ全体の見た目を変えると、スマホで引っかかるので、切り抜きの準備は最初に一度だけする */

.hb-peek {
  flex: none;
  width: 25vw;
  height: 100%;
}

html.hb-peek-cut .page-wrapper.with-sticky-footer {
  background-color: transparent;
  pointer-events: none;
}

html.hb-peek-cut .horizontal-scroll-wrapper {
  background-color: transparent;
}

html.hb-peek-cut .scroll-track {
  pointer-events: auto;
}

/* PC: 隙間の中では、ページの切り口が奥のフッターに淡い影を落とす（js/herenga-ui.js がフッターの中で隙間に重ねる） */
.hb-peek-shade {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: none;
  box-sizing: border-box;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 34px 0 44px -22px rgba(3, 5, 14, 0.85), inset -34px 0 44px -22px rgba(3, 5, 14, 0.85);
  border-left: 1px solid rgba(150, 190, 255, 0.16);
  border-right: 1px solid rgba(150, 190, 255, 0.16);
}

html.hb-peek-cut .footer-wrapper.hb-peek-near .hb-peek-shade {
  display: block;
}

/* スマホ・タブレット: ページはブラウザが自分でスクロールするので、隙間に重ねるものは置かない。
   切り口の線は隙間そのものに引く（切り抜きは線の内側だけ） */
@media screen and (max-width: 991px) {
  .hb-peek {
    box-sizing: border-box;
    width: 100%;
    height: 25vh;
  }

  html.hb-peek-cut .hb-peek {
    border-top: 1px solid rgba(150, 190, 255, 0.16);
    border-bottom: 1px solid rgba(150, 190, 255, 0.16);
  }

  html.hb-peek-cut .footer-wrapper.hb-peek-near .hb-peek-shade {
    display: none;
  }
}

/* 隙間が近いあいだ、見えるのはマークと惑星だけ。コピーとロゴの一覧は、最後の画面まで出さない */
.footer-wrapper.hb-peek-near .foot_messe,
.footer-wrapper.hb-peek-near .hb-foot-list {
  visibility: hidden;
}

/* ---------- 事業（ブランディング / M&A / ゴルフ）: 説明・サービス・事例をひとつのパネルにまとめる ---------- */
/* PC では横スクロールの中の 1 画面。トップでは横の動きを js/herenga-ui.js（setupTrack）が
   中身の幅から測って動かすので、事業や連携図を足しても Contact でちょうど終わる */

.hb-biz {
  position: relative;
  flex: none;
  display: flex;
  align-items: stretch;
  width: 92vw;
  height: 100%;
  padding: 104px 2.5vw 78px;
}

.hb-biz .background-video_sankaku {
  z-index: 0;
  opacity: .55;
}

.hb-biz-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vh, 22px);
  width: 100%;
  min-height: 0;
  padding: clamp(18px, 3vh, 34px) clamp(20px, 2.4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 29, 48, 0.62), rgba(14, 17, 32, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(4, 7, 24, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hb-biz-head {
  display: grid;
  grid-template-columns: minmax(12em, max-content) 1fr;
  align-items: start;
  gap: 2.5vw;
}

.hb-biz-title {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--zen--neutral--white);
}

/* 事業名は、3事業の図と同じく英語（上）と日本語（下）を併記する（Yoshi 2026-10-23） */
.hb-biz-en {
  font-family: Montserrat, sans-serif;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
  /* Webflow の見出しから "wght" 400 が引き継がれて、太字にならないのを戻す */
  font-variation-settings: normal;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}

.hb-biz-ja {
  color: rgba(185, 196, 235, 0.8);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.5;
}

.hb-biz-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.9;
}

.hb-biz-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hb-biz-card {
  padding: clamp(14px, 2.2vh, 22px) 22px;
}

/* 1280px 前後の PC でも、ゴルフの「選手・イベント」が2つずつ2行に収まるよう、少しだけ詰める（Yoshi 2026-10-25） */
@media screen and (min-width: 1081px) and (max-width: 1365px) {
  .hb-biz-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hb-biz-card .hb-badges li {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* カードの下の注記（略称の説明など） */
.hb-biz-note {
  margin: calc(-1 * clamp(4px, 1vh, 10px)) 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.6;
}

.hb-biz-card-title {
  margin: 0;
  color: var(--zen--neutral--white);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: .04em;
}

/* 箇条書きはバッジにする。すき間は縦横とも 6px に詰めて、敷き詰めて見せる（Yoshi 2026-10-25）。
   Webflow の li の下の余白（.5em）は消す */
.hb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hb-badges li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 13, 28, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  line-height: 1.45;
}

/* PC では事業のパネルの中身を一回り大きく（Yoshi 2026-10-31「こじんまりしているのでちょっと拡大」）。
   1280px 前後の画面では今までとほぼ同じ大きさで、広い画面ほど（パネルの幅とともに）大きくなる。
   大きすぎたので（Yoshi「もう少し小さく」）パネルは 76vw、文字もその分だけ小さく */
@media screen and (min-width: 992px) {
  .hb-biz-panel {
    gap: clamp(14px, 2.8vh, 40px);
    padding: clamp(22px, 4vh, 64px) clamp(20px, 2.06vw, 72px);
  }

  .hb-biz-en {
    font-size: clamp(30px, 2.24vw, 64px);
  }

  .hb-biz-ja {
    font-size: clamp(13px, .903vw, 22px);
  }

  .hb-biz-lead {
    font-size: clamp(14px, .963vw, 22px);
  }

  .hb-biz-cards {
    gap: clamp(16px, 1.07vw, 32px);
  }

  .hb-biz-card {
    padding: clamp(16px, 2.8vh, 40px) clamp(22px, 1.55vw, 40px);
  }

  .hb-biz-card-title {
    font-size: clamp(17px, 1.2vw, 28px);
  }

  .hb-badges {
    gap: clamp(6px, .473vw, 12px);
    margin-top: clamp(12px, .946vw, 24px);
  }

  .hb-badges li {
    padding: clamp(5px, .361vw, 9px) clamp(12px, .86vw, 20px);
    font-size: clamp(12.5px, .843vw, 20px);
  }

  .hb-biz-note {
    font-size: clamp(12px, .774vw, 17px);
  }

  .hb-biz-panel .hb-cases-open {
    padding: clamp(8px, .602vw, 14px) clamp(18px, 1.29vw, 30px);
    font-size: clamp(13px, .903vw, 20px);
  }
}

/* 上の拡大のあとでも、ゴルフの「選手・イベント」が2つずつ並ぶよう左右を詰める（画面幅に比例） */
@media screen and (min-width: 1081px) {
  .hb-biz-card {
    padding-right: clamp(18px, 1.2vw, 40px);
    padding-left: clamp(18px, 1.2vw, 40px);
  }

  .hb-biz-card .hb-badges li {
    padding-right: clamp(10px, .671vw, 20px);
    padding-left: clamp(10px, .671vw, 20px);
  }
}

/* 事例: 「一覧を見る」ボタン（右寄せ。「事例」などの見出しは外した Yoshi 2026-10-25）。
   JS が動かないとき・動きを減らす設定のときは、下に事例の帯を出す */
.hb-cases {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.hb-cases-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.hb-cases-open {
  padding: 8px 18px;
  background-color: transparent;
  border-radius: 999px;
  color: var(--zen--neutral--white);
  font: inherit;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
}

.hb-cases-open::after,
.hb-cases-open::before {
  border-radius: 999px;
}

/* JS が動かないときは、事例を横にスクロールできる帯で見せる */
.hb-cases-list {
  display: flex;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0 0 8px;
  overflow-x: auto;
  list-style: none;
}

.hb-cases-list .hb-case {
  flex: none;
  width: 16rem;
}

.hb-case {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(59, 91, 255, 0.28), transparent 60%),
    linear-gradient(160deg, rgba(40, 48, 84, 0.95), rgba(16, 20, 38, 0.95));
  color: var(--zen--neutral--white);
}

.hb-case-client {
  color: rgba(185, 196, 235, 0.85);
  font-size: 12px;
  letter-spacing: .04em;
}

.hb-case-text {
  font-size: 15px;
  line-height: 1.55;
}

/* 一覧の最後の「...and more」: 事例ではないので、文字だけを中央に控えめに置く（トンネルには飛ばさない） */
.hb-case.hb-case-more {
  justify-content: center;
  align-items: center;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.03);
}

.hb-case-more .hb-case-text {
  color: rgba(185, 196, 235, 0.85);
  letter-spacing: .08em;
}

/* 内容の下に添える補足（「弾道測定器等の提供とサポート」など） */
.hb-case-sub {
  margin-top: -2px;
  color: rgba(185, 196, 235, 0.85);
  font-size: 12px;
  line-height: 1.5;
}

.hb-deal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 6px 0 0;
}

.hb-deal-facts div {
  min-width: 0;
}

/* 最後の「譲渡理由」は文が長いので 1 行を使う */
.hb-deal-facts div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.hb-deal-facts dt {
  color: rgba(185, 196, 235, 0.7);
  font-size: 11px;
}

.hb-deal-facts dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

/* 奥から飛んでくる事例（js/herenga-ui.js の buildTunnel）。
   参考: 21st.dev の daiwiikharihar/perspective-tunnel-hero。動かし方は同じ考え方で、コードは独自に書き直したもの */
.hb-tunnel {
  display: none;
}

html.hb-tunnel-on .hb-tunnel {
  display: block;
}

html.hb-tunnel-on .hb-cases {
  flex: none;
}

html.hb-tunnel-on .hb-cases-list {
  display: none;
}

.hb-tunnel-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  perspective: 1200px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2), transparent 72%);
}

.hb-tunnel-stage .background-video_sankaku {
  z-index: 0;
  opacity: .26;
}

/* ゴルフDiv.は実写の動画なので、明るめに見せる（4割ほど） */
#golf .background-video_sankaku > video {
  opacity: .7;
}

#golf .hb-tunnel-stage .background-video_sankaku {
  opacity: .6;
}

/* ブランディングDiv.とM&A Advisory Div.は 3割ほど見えるくらい（.6 × .5） */
#branding .background-video_sankaku > video,
#ma .background-video_sankaku > video {
  opacity: .6;
}

#branding .hb-tunnel-stage .background-video_sankaku,
#ma .hb-tunnel-stage .background-video_sankaku {
  opacity: .5;
}

/* 奥と手前に流れるダスト（canvas） */
.hb-tunnel-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 中央の事業名（スクロールに合わせて JS が拡大・フェードさせる） */
.hb-tunnel-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
  text-align: center;
  pointer-events: none;
}

/* 英語の事業名を大きく太く、その下に日本語を小さく */
.hb-tunnel-name {
  margin: 0;
  background: linear-gradient(180deg, #fff 35%, rgba(205, 198, 255, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Montserrat, sans-serif;
  font-size: clamp(40px, 6.4vw, 116px);
  font-weight: 700;
  /* Webflow の見出しから "wght" 400 が引き継がれて、太字にならないのを戻す */
  font-variation-settings: normal;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
  /* 文字の塗り（background-clip: text）は箱の中だけなので、g や y の下が切れないよう下に広げる。
     広げた分は margin で戻して、位置は変えない */
  padding: 0 .06em .16em;
  margin-bottom: -.16em;
}

.hb-tunnel-sub {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: .32em;
}

.hb-tunnel-hint {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  pointer-events: none;
}

.hb-tunnel-hint::after {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(#b9a6ff, transparent);
}

/* 飛んでくるカード（縦長 4:5。文字の大きさはカードの幅に合わせる） */
.hb-tunnel-space {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform-style: preserve-3d;
  pointer-events: none;
}

.hb-fly {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--hb-fly-w, 240px);
  height: calc(var(--hb-fly-w, 240px) * 1.25);
  margin: calc(var(--hb-fly-w, 240px) * -.625) 0 0 calc(var(--hb-fly-w, 240px) * -.5);
  font-size: calc(var(--hb-fly-w, 240px) / 15);
  visibility: hidden;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity;
}

.hb-fly > .hb-case {
  height: 100%;
  gap: .5em;
  padding: 1.35em 1.3em 1.5em;
  border-radius: 1.15em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -18px rgba(2, 4, 16, 0.9);
  transition: border-color .4s, box-shadow .4s;
}

.hb-fly-1 > .hb-case {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(185, 166, 255, 0.34), transparent 60%),
    linear-gradient(160deg, rgba(48, 48, 96, 0.97), rgba(18, 20, 42, 0.97));
}

.hb-fly-2 > .hb-case {
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(150, 215, 255, 0.26), transparent 60%),
    linear-gradient(200deg, rgba(30, 58, 104, 0.97), rgba(14, 20, 46, 0.97));
}

.hb-fly:hover > .hb-case {
  border-color: rgba(185, 166, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 60px -18px rgba(2, 4, 16, 0.9), 0 0 36px -6px rgba(185, 166, 255, 0.55);
}

/* 会社名は上、内容は下に置く */
.hb-fly .hb-case-client {
  margin-bottom: auto;
  font-size: .86em;
}

.hb-fly .hb-case-text {
  font-size: 1.42em;
  font-weight: 500;
  line-height: 1.45;
}

/* 会社名のないものも、内容は下に揃える */
.hb-fly .hb-case-text:first-child {
  margin-top: auto;
}

.hb-fly .hb-case-sub {
  margin-top: 0;
  font-size: .86em;
}

.hb-fly .hb-deal-facts {
  gap: .3em 1em;
  margin-top: .4em;
}

.hb-fly .hb-deal-facts dt {
  font-size: .74em;
}

.hb-fly .hb-deal-facts dd {
  font-size: .88em;
}

.hb-fly .hb-deal-facts div:nth-child(n + 3) {
  display: none;
}

/* PC: 横スクロールの中の 1 画面。飛び終わると、中央にサービスのパネルが出る */
@media screen and (min-width: 992px) {
  html.hb-track-on .scroll-container {
    transform: none !important;
  }

  html.hb-tunnel-on .hb-biz {
    width: 100vw;
    padding: 0;
  }

  html.hb-tunnel-on .hb-tunnel {
    position: absolute;
    inset: 0;
  }

  html.hb-tunnel-on .hb-biz-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: max(min(1180px, 88vw), 76vw);
    max-height: calc(100% - 170px);
    translate: -50% -47%;
    opacity: 0;
    pointer-events: none;
  }

  html.hb-tunnel-on .hb-biz-shown .hb-biz-panel,
  html.hb-tunnel-on .hb-biz-focus .hb-biz-panel {
    pointer-events: auto;
  }

  html.hb-tunnel-on .hb-biz-focus .hb-biz-panel {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* タブレット・スマホ: 舞台を画面に貼り付けたまま、スクロールで飛ばす。パネルはその下に続く */
@media screen and (max-width: 991px) {
  html.hb-tunnel-on .hb-biz {
    flex-direction: column;
    padding: 0 20px 48px;
  }

  html.hb-tunnel-on .hb-tunnel {
    height: 260vh;
    margin: 0 -20px 8px;
  }

  html.hb-tunnel-on .hb-tunnel-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    perspective: 900px;
  }
}

@media screen and (max-width: 479px) {
  html.hb-tunnel-on .hb-biz {
    padding: 0 14px 40px;
  }

  html.hb-tunnel-on .hb-tunnel {
    margin: 0 -14px 8px;
  }
}

/* 事例一覧のモーダル */
.hb-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: min(84vh, 860px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zen--neutral--white);
}

.hb-modal::backdrop {
  background: rgba(6, 8, 18, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hb-modal[open] {
  animation: hb-modal-in .45s cubic-bezier(.2, .7, .2, 1);
}

@keyframes hb-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
}

.hb-modal-panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 36, 62, 0.92), rgba(14, 17, 32, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.hb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-modal-kicker {
  margin: 0 0 4px;
  color: rgba(185, 196, 235, 0.8);
  font-size: 12px;
  letter-spacing: .08em;
}

.hb-modal-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: .06em;
}

.hb-modal-close {
  flex: none;
  display: grid;
  background-color: transparent;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: var(--zen--neutral--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hb-modal-close::after,
.hb-modal-close::before {
  border-radius: 50%;
}

.hb-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 22px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.hb-modal-list:focus {
  outline: none;
}

.hb-modal-close:focus-visible,
.hb-cases-open:focus-visible {
  outline: 2px solid rgba(150, 215, 255, 0.8);
  outline-offset: 3px;
}

.hb-modal-list .hb-case.hb-current {
  border-color: rgba(150, 215, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(150, 215, 255, 0.25), 0 0 24px -6px rgba(150, 215, 255, 0.5);
}

html.hb-modal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

@media screen and (max-width: 991px) {
  .hb-biz {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }

  .hb-biz-panel {
    padding: 24px 22px;
  }

  .hb-biz-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media screen and (max-width: 767px) {
  .hb-biz-cards {
    grid-template-columns: 1fr;
  }

  .hb-biz-lead {
    font-size: 13px;
  }

  .hb-badges li {
    font-size: 12px;
  }

  .hb-modal-head {
    padding: 18px 18px 14px;
  }

  .hb-modal-list {
    grid-template-columns: 1fr;
    padding: 16px 18px 22px;
  }
}

@media screen and (max-width: 479px) {
  .hb-biz {
    padding: 28px 14px;
  }

  .hb-biz-panel {
    padding: 20px 16px;
    border-radius: 22px;
  }
}

/* ---------- ハンバーガーメニュー: 開いたパネルもガラスに ---------- */
/* ロゴの mix-blend-mode があると、ヘッダーの中では背景のぼかし（backdrop-filter）が効かない。
   ロゴは白一色なので、通常の合成にしても見た目は変わらない */
.lottie-animation-11 {
  mix-blend-mode: normal;
}

.side-menu-background:not(.bg2) {
  background-color: transparent;
  background-image:
    radial-gradient(120% 55% at 100% 0%, rgba(150, 215, 255, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(72, 88, 150, 0.44), rgba(30, 36, 62, 0.5) 55%, rgba(16, 19, 36, 0.6));
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06), -30px 0 80px -24px rgba(4, 7, 24, 0.7);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
}

/* 左の縁に、上から下へ薄れていく光の線 */
.side-menu-background:not(.bg2)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 8%, rgba(150, 215, 255, 0.85) 32%, #ffffff 42%, rgba(185, 166, 255, 0.5) 60%, rgba(255, 255, 255, 0) 88%);
  pointer-events: none;
}

/* パネルの左に広がる部分は、ページを暗くぼかす薄いベール */
.side-menu-background.bg2 {
  background-color: rgba(10, 13, 28, 0.4);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.side-menu-text-wrap a {
  transition: text-shadow .3s;
}

.side-menu-text-wrap a:hover {
  text-shadow: 0 0 18px rgba(150, 215, 255, 0.65);
}

/* Business（トップの連携図）の下に、3つの Div. へのリンクをひと回り小さく並べる（飛び先は js/herenga-ui.js） */
.hb-menu-divs {
  gap: .15rem;
  margin-top: .15rem;
  margin-bottom: .55rem;
}

.side-menu-text-wrap a.hb-menu-div {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 24px;
  text-decoration: none;
  transition: color .3s, text-shadow .3s;
}

/* 頭に短い線を引いて、Business の中の項目に見せる */
.hb-menu-div::before {
  content: "";
  width: .75em;
  height: 1px;
  background-color: currentColor;
  opacity: .6;
}

.side-menu-text-wrap a.hb-menu-div:hover,
.side-menu-text-wrap a.hb-menu-div:focus-visible {
  color: #fff;
}

/* メニューから飛んだ先の Div.（フォーカスだけ移す）に枠は出さない */
.hb-biz:focus {
  outline: none;
}

/* 開閉: Webflow のインタラクションではなく、html の hb-menu-open（開いている）と hb-menu-closing
   （閉じる動きの最中）だけで決める（js/side-menu.js）。transition は途中からでも逆向きに戻れるので、
   動きの途中で押し直しても止まらない。動きと時間は Webflow のときのもの（Side Menu Open 3 / Close 3）。
   何も付いていない＝閉じて休んでいる状態は、JS が動く前から隠れている */
.side-menu_component {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.hb-menu-open .side-menu_component {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .5s ease;
}

html.hb-menu-closing .side-menu_component {
  visibility: visible;
  transition: opacity .5s cubic-bezier(.906, .007, .608, .609);
}

/* パネル（と左のベール .bg2）は右の外から少し傾いて入り、閉じるときはもっと傾いて右へ抜ける */
.side-menu-background {
  visibility: hidden;
  translate: 130% 0;
  rotate: -7deg;
}

html.hb-menu-open .side-menu-background {
  visibility: visible;
  translate: 0 0;
  rotate: 0deg;
  transition: translate 1.5s cubic-bezier(.398, .305, 0, .995), rotate 2s cubic-bezier(.497, .311, 0, 1.001);
}

html.hb-menu-closing .side-menu-background {
  visibility: visible;
  translate: 165% 0;
  rotate: -20deg;
  transition: translate .6s cubic-bezier(.895, .001, .585, .592), rotate .6s cubic-bezier(.912, .007, .602, .609);
}

@media screen and (max-width: 991px) {
  html.hb-menu-closing .side-menu-background {
    translate: 120vw 0;
    rotate: -5deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hb-menu-open .side-menu-background,
  html.hb-menu-closing .side-menu-background {
    transition-duration: .01s;
  }
}

/* ---------- トップのオープニング: 暗い幕の中央にロゴを置き、光がロゴの上を左から右へ走る ---------- */
/* 光は控えめに: ロゴは細い輪郭だけ置いておき、光の帯が通るところだけ明るくする。
   そのあと幕は左から右へ開く。開く時刻は Webflow のインタラクション（見出しなどの動き）に合わせ、
   Webflow が動き出した（html.w-mod-ix）時点から数える */

/* 幕は translate で右へ滑らせ、中身（背景とロゴ）は同じだけ左へ戻して、その場で左から切り取られて見えるようにする。
   clip-path を動かしていたときは、読み込みの重い処理と重なると幕が止まり、残りがパッと消えていた（Yoshi 2026-10-23）。
   translate は描画側だけで動くので止まらない。動きは「ゆっくり出て、すっと流れて、静かに止まる」 */
.home-hero-overlay {
  overflow: hidden;
  background: none;
}

.home-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  background-image:
    radial-gradient(60% 55% at 50% 50%, rgba(30, 60, 200, 0.16), transparent 70%),
    radial-gradient(140% 100% at 50% 50%, transparent 40%, rgba(8, 10, 22, 0.7));
}

/* オープニング中はスクロールさせない（幕が開き終わるまで js/herenga-ui.js が付ける）。
   スクロールバーの幅は残して、解除したときに画面がずれないようにする */
html.hb-intro-lock {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* Webflow は幕を縦に縮めて上へ引くので、それは止めて（transform）、左から開く（translate） */
/* visibility は別のアニメーションにする（同じキーフレームに入れると、translate も描画側で動かせなくなる） */
html.w-mod-ix .home-hero-overlay {
  transform: none !important;
  animation:
    hb-curtain-open 1.2s cubic-bezier(.45, 0, .2, 1) 1.4s both,
    hb-curtain-gone 0s linear 2.6s forwards;
}

html.w-mod-ix .home-hero-overlay::before,
html.w-mod-ix .hb-intro-logo {
  animation: hb-curtain-stay 1.2s cubic-bezier(.45, 0, .2, 1) 1.4s both;
}

@keyframes hb-curtain-open {
  from { translate: 0 0; }
  to { translate: 100% 0; }
}

@keyframes hb-curtain-gone {
  to { visibility: hidden; }
}

@keyframes hb-curtain-stay {
  from { translate: 0 0; }
  to { translate: -100% 0; }
}

/* 幕の切り口（左端）に細い光の線。幕と一緒に画面を右へ進む */
.home-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(150, 215, 255, 0.7) 25%, #ffffff 50%, rgba(185, 166, 255, 0.5) 75%, transparent) 0 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(150, 215, 255, 0.14), transparent) 0 0 / 120px 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}

html.w-mod-ix .home-hero-overlay::after {
  animation: hb-curtain-edge 1.2s linear 1.4s both;
}

@keyframes hb-curtain-edge {
  0% { opacity: 0; }
  12%, 100% { opacity: 1; }
}

/* ロゴの箱は幕と同じ大きさにして（幕と同じだけ戻すため）、ロゴ本体はその中央に置く */
.hb-intro-logo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hb-intro-logo svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(200px, 24vw, 380px);
  height: auto;
  aspect-ratio: 611 / 348;
  transform: translate(-50%, -50%);
}

/* 光の帯: ロゴの3倍幅のマスクを、右端（帯がロゴの左外）から左端（帯がロゴの右外）へずらす */
.hb-intro-shine {
  -webkit-mask-image: linear-gradient(100deg, transparent 41%, #000 48.5%, #000 51.5%, transparent 59%);
  mask-image: linear-gradient(100deg, transparent 41%, #000 48.5%, #000 51.5%, transparent 59%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

html.w-mod-ix .hb-intro-base {
  animation: hb-intro-base .5s ease both;
}

html.w-mod-ix .hb-intro-shine {
  animation: hb-intro-shine 1.15s cubic-bezier(.45, 0, .3, 1) .15s both;
}

@keyframes hb-intro-base {
  from { opacity: 0; }
}

@keyframes hb-intro-shine {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* 幕の上の見出しは、最初から仕上がりの色にしておく（Webflow は幕の色に合わせて一度暗い色にする） */
.home-hero-section .top_text {
  color: var(--beige) !important;
}

/* 幕が開くあいだは、幕と後ろの背景の帯（矩形）だけを見せる。ほぼ開いたら（html.hb-intro-done、
   js/herenga-ui.js）見出し・ヘッダー・ロゴの帯が出る。JS が止まったときに備えて、8 秒たてば出しておく */
html.w-mod-js[data-wf-page="679cb0715742e9506de9dbc4"]:not(.hb-intro-done) .home-hero-wrapper,
html.w-mod-js[data-wf-page="679cb0715742e9506de9dbc4"]:not(.hb-intro-done) .navbar_component > .nav-link-block,
html.w-mod-js[data-wf-page="679cb0715742e9506de9dbc4"]:not(.hb-intro-done) .navbar_component > .menu-button,
html.w-mod-js[data-wf-page="679cb0715742e9506de9dbc4"]:not(.hb-intro-done) .hb-logos {
  opacity: 0;
  animation: hb-intro-fallback 0s 8s forwards;
}

@keyframes hb-intro-fallback {
  to { opacity: 1; }
}

html.hb-intro-done .home-hero-wrapper {
  animation: hb-hero-in .9s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes hb-hero-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(12px); }
}

/* ロゴはアニメーション（Lottie）が何もないところから描くので、ボタンと一緒にそっと出すだけ */
html.hb-intro-done .navbar_component > .nav-link-block,
html.hb-intro-done .navbar_component > .menu-button {
  animation: hb-intro-fade .5s ease .05s both;
}

@keyframes hb-intro-fade {
  from { opacity: 0; }
}

/* ---------- トップの見出し: 「Digital Innovation」はグリッチで現れ、「creativity」は一筆書きで描かれる ---------- */
/* 時刻は幕がほぼ開いた（html.hb-intro-done）時点から数える */

.hb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* グリッチ: 色ずれした写し（::before / ::after）を横に切り刻んでずらす。文字は js/herenga-ui.js が乱数で崩してから戻す */
.home-hero-section .text-span-2 {
  position: relative;
  display: inline-block;
}

.home-hero-section .text-span-2::before,
.home-hero-section .text-span-2::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.home-hero-section .text-span-2::before {
  color: #96d7ff;
}

.home-hero-section .text-span-2::after {
  color: #b9a6ff;
}

html.hb-intro-done .home-hero-section .text-span-2 {
  animation:
    hb-glitch-in .9s steps(1, end) .2s both,
    hb-glitch-idle 7s steps(1, end) 4s infinite;
}

html.hb-intro-done .home-hero-section .text-span-2::before {
  animation:
    hb-glitch-slice-a .9s steps(1, end) .2s both,
    hb-glitch-idle-a 7s steps(1, end) 4s infinite;
}

html.hb-intro-done .home-hero-section .text-span-2::after {
  animation:
    hb-glitch-slice-b .9s steps(1, end) .2s both,
    hb-glitch-idle-b 7s steps(1, end) 4s infinite;
}

@keyframes hb-glitch-in {
  0% { opacity: 0; }
  6% { opacity: 1; transform: translateX(-4px) skewX(-8deg); text-shadow: 4px 0 rgba(150, 215, 255, .85), -4px 0 rgba(185, 166, 255, .85); }
  12% { opacity: .25; transform: translateX(3px); }
  18% { opacity: 1; transform: skewX(5deg); text-shadow: -3px 0 rgba(150, 215, 255, .85), 3px 0 rgba(185, 166, 255, .85); }
  26% { opacity: .55; transform: translateX(-2px); }
  32% { opacity: 1; transform: none; text-shadow: 2px 0 rgba(150, 215, 255, .7), -2px 0 rgba(185, 166, 255, .7); }
  46% { transform: translateX(1px); }
  56% { opacity: .8; transform: none; text-shadow: 1px 0 rgba(150, 215, 255, .5), -1px 0 rgba(185, 166, 255, .5); }
  62%, 100% { opacity: 1; transform: none; text-shadow: none; }
}

@keyframes hb-glitch-slice-a {
  0% { opacity: 0; }
  6% { opacity: .9; clip-path: inset(12% 0 58% 0); transform: translateX(-10px); }
  14% { clip-path: inset(62% 0 8% 0); transform: translateX(8px); }
  22% { clip-path: inset(35% 0 42% 0); transform: translateX(-6px); }
  30% { clip-path: inset(78% 0 4% 0); transform: translateX(4px); }
  40% { clip-path: inset(6% 0 84% 0); transform: translateX(-3px); }
  50%, 100% { opacity: 0; }
}

@keyframes hb-glitch-slice-b {
  0% { opacity: 0; }
  8% { opacity: .8; clip-path: inset(48% 0 30% 0); transform: translateX(9px); }
  16% { clip-path: inset(8% 0 70% 0); transform: translateX(-7px); }
  24% { clip-path: inset(70% 0 12% 0); transform: translateX(5px); }
  34% { clip-path: inset(24% 0 60% 0); transform: translateX(-4px); }
  44%, 100% { opacity: 0; }
}

/* そのあとも 7 秒おきに一瞬だけ乱れる */
@keyframes hb-glitch-idle {
  0% { transform: translateX(2px); text-shadow: 2px 0 rgba(150, 215, 255, .8), -2px 0 rgba(185, 166, 255, .8); }
  1.5% { transform: translateX(-2px) skewX(-4deg); }
  3%, 100% { transform: none; text-shadow: none; }
}

@keyframes hb-glitch-idle-a {
  0% { opacity: .85; clip-path: inset(40% 0 44% 0); transform: translateX(-7px); }
  1.5% { clip-path: inset(72% 0 10% 0); transform: translateX(5px); }
  3%, 100% { opacity: 0; }
}

@keyframes hb-glitch-idle-b {
  0.8% { opacity: .75; clip-path: inset(15% 0 70% 0); transform: translateX(6px); }
  2.2%, 100% { opacity: 0; }
}

/* 一筆書き: 文字の輪郭を左から順に一本の線でなぞり、なぞり終えた文字から塗りが入る。
   線の書き始めと長さの割合（--s / --l）と、文字ごとの書き終わり（--e）は SVG に書き込んである */
.hb-script {
  display: inline-block;
  width: 1.9461em;
  height: 1em;
  margin: -.75em 0 -.25em;
  vertical-align: baseline;
  overflow: visible;
}

.hb-script-ink {
  fill: currentColor;
}

/* 光のゆらぎ: 塗りを横並びの色の段（linearGradient の stop）にして、段ごとに少しずつずらして光らせる。
   段ごとに遅れ（--d）と光の色（--c、水色・白・薄紫）を変えてあるので、光が均一に滑らず、ゆらぎながら左から右へ渡る。
   「Digital Innovation」が乱れるのと同じ時刻（幕が開いて 4 秒後、そのあと 7 秒おき）に始まる（Yoshi 2026-10-23） */
html.hb-intro-done .hb-script-ink {
  fill: url(#hb-creativity-shine);
}

/* 地の色は見出しと同じ var(--beige)（currentColor だとアニメーションの途中で黒くなるブラウザがある） */
.hb-script-shine stop {
  stop-color: var(--beige);
}

html.hb-intro-done .hb-script-shine stop {
  animation: hb-script-shine 7s ease-in-out calc(4s + var(--d)) infinite;
}

@keyframes hb-script-shine {
  0%, 15%, 100% { stop-color: var(--beige); }
  6% { stop-color: var(--c); }
  10% { stop-color: color-mix(in srgb, var(--c) 45%, var(--beige)); }
}

.hb-script-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linejoin: round;
  opacity: 0;
}

html.hb-intro-done .hb-script-line {
  opacity: 1;
}

html.hb-intro-done .hb-script-line path {
  stroke-dasharray: 1 1;
  animation:
    hb-script-draw calc(var(--l) * 1.8s) linear calc(.55s + var(--s) * 1.8s) both,
    hb-script-fade .6s ease calc(.55s + 1.8s) both;
}

html.hb-intro-done .hb-script-ink path {
  animation: hb-script-ink .5s ease calc(.55s + var(--e) * 1.8s) both;
}

@keyframes hb-script-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes hb-script-fade {
  to { stroke-opacity: 0; }
}

@keyframes hb-script-ink {
  from { fill-opacity: 0; }
}

/* ---------- トップのサブコピー: 小さめ・太めに、ゆったり組み、幕が開いたあと一文字ずつ浮かび上がる ---------- */

.home-hero-section .home-hero-subtitle-wrapper {
  width: auto;
  margin-top: 2.2em;
}

.home-hero-section .fv_text_min {
  font-size: clamp(17px, 1.4vw, 24px);
  font-weight: 600;
  font-variation-settings: normal;
  line-height: 2;
  letter-spacing: .12em;
}

.hb-ch {
  display: inline-block;
}

html.hb-intro-done .hb-ch {
  animation: hb-ch-in .9s cubic-bezier(.2, .7, .2, 1) calc(.75s + var(--i) * 32ms) both;
}

@keyframes hb-ch-in {
  from { opacity: 0; transform: translateY(.5em); filter: blur(6px); }
}

@media screen and (max-width: 991px) {
  .home-hero-section .fv_text_min {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px) {
  .home-hero-section .fv_text_min {
    font-size: 16px;
    letter-spacing: .1em;
  }
}

@media screen and (max-width: 479px) {
  .home-hero-section .home-hero-subtitle-wrapper {
    margin-top: 1.6em;
  }

  .home-hero-section .fv_text_min {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: .06em;
  }
}

/* ---------- クライアントロゴ: 画面の一番下に固定した帯の中を、ループで横に流れる ---------- */
/* 帯は js/herenga-ui.js がフッターのロゴ一覧から作る。帯ができたらフッターの一覧は隠す。
   帯は白地にして、ロゴは元画像と同じフルカラー（images/logos-color/、元画像を縮めたもの）で載せる（Yoshi 2026-10-24） */

.hb-logos {
  --hb-logos-h: 56px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  height: calc(var(--hb-logos-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  box-shadow: 0 -12px 30px -18px rgba(4, 7, 24, 0.8);
  animation: hb-logos-in .8s cubic-bezier(.2, .7, .2, 1) .3s backwards;
  /* 隠すときも出すときも、ゆっくり加速・減速しながら下へ沈む（Yoshi 2026-10-31: スマホで突然消えないように）。
     出てくる動き（hb-logos-in）を終わったあとも残す（both）と、そのあいだ opacity・transform の変化に
     トランジションが効かず一瞬で消えるので、backwards にして終わったら外す */
  transition: translate 1s cubic-bezier(.45, 0, .25, 1), opacity 1s ease;
}

/* 最後の画面でロゴの一覧（.hb-foot-list）が見えているあいだは、帯を下へ隠す。
   一覧が出る（html.hb-foot-in）までは帯を残し、ロゴがいったん消えて空かないようにする */
html.hb-foot-list-on.hb-foot-in .hb-logos {
  translate: 0 calc(100% + 32px);
  opacity: 0;
}

/* トップはオープニングが終わってから（html.hb-intro-done）、見出しのあとに出す */
html[data-wf-page="679cb0715742e9506de9dbc4"] .hb-logos {
  animation-delay: .45s;
}

.hb-logos-view {
  height: var(--hb-logos-h);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* 流すのは js/herenga-ui.js（loopLogos）が、ロゴを1枚ずつ動かす。帯やコピーをまるごと動かすと、
   iPhone（3 倍の画面）では動かす面が大きすぎて、途中のロゴが描かれず消えることがあった。
   ポインタを載せても、クリック・タップしても止めない（Yoshi 2026-10-23: 反応させず、流し続ける） */
.hb-logos-track {
  display: flex;
  width: max-content;
  height: 100%;
}

.hb-logos-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

/* ロゴは押しても何も起きない（明るくならず、選択・ドラッグ・長押しのメニューも出さない） */
.hb-logos {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hb-logos-group img {
  height: 40px;
  width: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

@keyframes hb-logos-in {
  from { transform: translateY(100%); opacity: 0; }
}

/* JS が動くときは最初から隠す（隠すのが hb-has-logos を待つと、その間に見えない古いロゴ画像を読み込んでしまう） */
html.w-mod-js .div-block-49,
html.hb-has-logos .div-block-49 {
  display: none;
}

@media screen and (max-width: 767px) {
  .hb-logos {
    --hb-logos-h: 46px;
  }

  .hb-logos-group {
    gap: 24px;
    padding-right: 24px;
  }

  .hb-logos-group img {
    height: 32px;
  }
}

/* ---------- 最後の画面: クライアントロゴの一覧（js/herenga-ui.js が帯と同じ順で作る。Yoshi 2026-10-24） ---------- */
/* 白い枠にフルカラーのロゴを並べて、画面の下に置く。立体とコピーは、この上の空いたところの真ん中に来る。
   マーク・惑星・コピーと同時に、フッターが現れてから（html.hb-foot-in）浮かび上がる */
.hb-foot-list {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px 14px;
  width: min(1100px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 14px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(4, 7, 24, 0.9);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hb-foot-list img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

html.w-mod-js:not(.hb-foot-in) .hb-foot-list {
  opacity: 0;
}

html.hb-foot-in .hb-foot-list {
  animation: hb-foot-copy 1s cubic-bezier(.2, .7, .2, 1) .15s both;
}

@media (prefers-reduced-motion: reduce) {
  html.hb-foot-in .hb-foot-list {
    animation: none;
  }
}

@media screen and (max-width: 767px) {
  .hb-foot-list {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    grid-template-columns: repeat(5, 1fr);
    gap: 4px 8px;
    width: calc(100vw - 32px);
    padding: 10px 12px;
    border-radius: 12px;
  }
}

/* 横にしたスマホのように低い画面では入りきらないので、一覧は出さずに下の帯のままにする */
@media screen and (max-height: 540px) {
  .hb-foot-list {
    display: none;
  }
}

/* ---------- 最後の画面（フッター）: 暗い紺の上に、ロゴの青の光を流す ---------- */
/* この CSS の背景は、WebGL が使えないときの代わり */

.footer {
  background-color: #0c0f1f;
  background-image:
    radial-gradient(55% 60% at 30% 80%, rgba(30, 60, 200, 0.42), transparent 70%),
    radial-gradient(40% 45% at 78% 20%, rgba(150, 215, 255, 0.12), transparent 70%),
    radial-gradient(45% 50% at 85% 88%, rgba(185, 166, 255, 0.14), transparent 72%),
    linear-gradient(180deg, #161c38, #0c0f1f 55%, #070913);
}

/* フッターは画面の上端に留める（Webflow では下端）。iPhone の Safari では、スクロールで下のツールバーが出たり縮んだりする
   たびに画面の下端が動き、下端に付いていたフッターの立体と光が、ページのスクロールと逆に 40px ほどずれていた
   （連携図のあとの隙間で目立つ。Yoshi 2026-10-28: スクロールするとカクカクジャンプ）。高さは 100vh（ツールバーを縮めた
   ときの画面）なので、ツールバーが出ているときは下の端がその裏に入るが、JS が動くときはそこに何も置いていない
   （ロゴの一覧は別に下端に付く） */
html.w-mod-js .footer-wrapper .footer {
  top: 0;
  bottom: auto;
}

/* ツールバーが出ているときの画面の高さ（100svh）を js/hb-mark3d.js が測るための、見えない箱 */
.hb-mark3d-svh {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100vh;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}

/* 流れる光の背景（js/hb-gradient.js）。WebGL が使えないときは上の背景のまま。3D シーンより後ろに敷く */
.hb-gradient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* マークを太陽にして惑星が追いかける動き（js/hb-orbit.js、試し）。マークより奥の軌跡は光の背景の上・立体の下に、
   手前の軌跡（.is-front）は立体の上に重ねる。フッターが現れてから（html.hb-foot-in）、コピー・ロゴの一覧と同時に浮かび上がる */
.hb-orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

html.hb-foot-in .hb-orbit-canvas,
.footer-wrapper.hb-peek-near .hb-orbit-canvas {
  opacity: 1;
}

.hb-orbit-canvas.is-front {
  z-index: 1;
}

/* ロゴの形の立体（js/hb-mark3d.js）。光の背景の上、ロゴとコピーの下に重ねる（真ん中を暗くする幕より上）。
   キャンバスはマークのまわりだけの大きさで、js/hb-mark3d.js が大きさ（width・height）と位置（translate）を決める */
.hb-mark3d-canvas {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* 立体をドラッグ（スマホは指でなぞる）で回す範囲。js/hb-mark3d.js が立体の大きさに合わせて置く。
   ここだけはスクロールより回すほうを優先する */
.hb-mark3d-hit {
  position: absolute;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.hb-mark3d-hit.is-dragging {
  cursor: grabbing;
}

/* その外の、惑星の軌跡のあたりまでの広い範囲。スマホでは縦のスクロールを残し、横になぞると回る（マークのまわりの hit が上に重なる） */
.hb-mark3d-hit.is-reach {
  touch-action: pan-y;
}

/* 連携図のあとの隙間（.hb-peek）が近いあいだは、ページのスクロールを止めない */
.footer-wrapper.hb-peek-near .hb-mark3d-hit {
  touch-action: pan-y;
}

/* 3D（Spline）はやめ、光の上にロゴ（ヘッダーと同じ Lottie、js/herenga-ui.js が描く）とコピーを置く。
   コピーはロゴが描かれ始めてから（html.hb-foot-in）浮かび上がる */
.hb-foot-logo {
  position: fixed;
  top: 42%;
  left: 50%;
  z-index: 1;
  width: min(30vw, 440px);
  aspect-ratio: 3 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.footer-wrapper .foot_messe {
  inset: 55% 0 auto;
}

/* ロゴの形の立体が出るときは、立体を上に大きく置き、平面のロゴは出さずにコピーだけを下に置く（Yoshi 2026-10-23） */
html.hb-mark3d .hb-foot-logo {
  display: none;
}

html.hb-mark3d .footer-wrapper .foot_messe {
  inset: var(--hb-copy-top, 68%) 0 auto;
}

/* コピーは太字にして、字の間を少し詰める（Webflow では 1vw、タブレット・スマホでは 2vw） */
.footer-wrapper .foot_messe .text-block-13 {
  font-weight: 700;
  font-variation-settings: normal;
  letter-spacing: .6vw;
}

@media screen and (max-width: 991px) {
  .footer-wrapper .foot_messe .text-block-13 {
    letter-spacing: 1.2vw;
  }
}

html.w-mod-js:not(.hb-foot-in) .footer-wrapper .foot_messe {
  opacity: 0;
}

html.hb-foot-in .footer-wrapper .foot_messe {
  animation: hb-foot-copy 1s cubic-bezier(.2, .7, .2, 1) .15s both;
}

/* ぼかし（filter: blur）は、大きなコピーやロゴの一覧を毎フレーム描き直すので重い（とくに iPhone）。
   透明度と少しの移動だけにする */
@keyframes hb-foot-copy {
  from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  html.hb-foot-in .footer-wrapper .foot_messe {
    animation: none;
  }
}

@media screen and (max-width: 767px) {
  .hb-foot-logo {
    top: 40%;
    width: 64vw;
  }

  .footer-wrapper .foot_messe {
    inset: 52% 0 auto;
  }

  html.hb-mark3d .footer-wrapper .foot_messe {
    inset: var(--hb-copy-top, 52%) 0 auto;
  }
}

/* 文字が光に埋もれないよう、真ん中だけ少し暗くする */
.footer.hb-gradient-on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 34% at 50% 50%, rgba(7, 10, 23, 0.62), transparent 78%);
  pointer-events: none;
}

/* 立体が出るときは、コピーのまわりだけを暗くする（--hb-copy-top は js/hb-mark3d.js がコピーの上端を入れる） */
html.hb-mark3d .footer.hb-gradient-on::after {
  background: radial-gradient(52% 16% at 50% calc(var(--hb-copy-top, 68%) + 16px), rgba(7, 10, 23, 0.6), transparent 80%);
}

@media screen and (max-width: 767px) {
  html.hb-mark3d .footer.hb-gradient-on::after {
    background: radial-gradient(70% 14% at 50% calc(var(--hb-copy-top, 52%) + 24px), rgba(7, 10, 23, 0.6), transparent 80%);
  }
}

/* トップのスマホ・タブレット: 最後までスクロールしても、コンタクトの行が上に少し残る位置で止める（Yoshi 2026-10-23）。
   全部上へ行ってしまうと、引っ張り下げて戻しにくいので。立体とコピーは、この下の空いているところの真ん中に置く。
   JS が動くときは、行がヘッダーのロゴのすぐ下に来るところまで上げる（--hb-foot-peek は js/herenga-ui.js の setupFootPeek
   が測って入れる。Yoshi 2026-10-28）。ここの値は JS が動かないとき */
@media screen and (max-width: 991px) {
  .footer-wrapper.hb-foot-peek {
    --hb-foot-peek: min(290px, 30vh);
  }

  .footer-wrapper.hb-foot-peek .footer-spacer {
    min-height: calc(100vh - var(--hb-foot-peek));
    min-height: calc(100dvh - var(--hb-foot-peek));
  }
}

@media screen and (max-width: 767px) {
  .footer-wrapper.hb-foot-peek {
    --hb-foot-peek: min(196px, 30vh);
  }
}

/* ---------- スクロールで現れるアニメーション（js/herenga-ui.js が対象に .hb-reveal を付ける） ---------- */

html.hb-anim .hb-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition:
    opacity .9s cubic-bezier(.2, .7, .2, 1) var(--hb-delay, 0s),
    transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--hb-delay, 0s),
    filter .9s cubic-bezier(.2, .7, .2, 1) var(--hb-delay, 0s),
    border-color .4s, box-shadow .4s, background-color .3s;
}

html.hb-anim .zen-avatar.hb-in:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

html.hb-anim .hb-reveal.hb-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- ページ切り替え: 同じサイト内の移動はふわっと切り替える（対応ブラウザのみ） ---------- */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: hb-page-out .35s cubic-bezier(.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: hb-page-in .6s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes hb-page-out {
  to { opacity: 0; filter: blur(4px); }
}

@keyframes hb-page-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
  html.hb-anim .hb-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .zen-avatar:hover,
  html.hb-anim .zen-avatar.hb-in:hover {
    transform: none;
  }

  /* 見出しとサブコピーは動かさず、最初から仕上がりの姿で見せる */
  html.hb-intro-done .home-hero-section .text-span-2,
  html.hb-intro-done .home-hero-section .text-span-2::before,
  html.hb-intro-done .home-hero-section .text-span-2::after,
  html.hb-intro-done .hb-script path,
  html.hb-intro-done .hb-script-shine stop,
  html.hb-intro-done .hb-ch {
    animation: none;
  }

  html.hb-intro-done .hb-script-line {
    opacity: 0;
  }

  /* 幕が消えたあと、見出しなどは動かさずに浮かび上がるだけにする */
  html.hb-intro-done .home-hero-wrapper {
    animation-name: hb-intro-fade;
  }

  /* 光は走らせず、幕は切り取らずに静かに消す */
  .hb-intro-shine,
  .home-hero-overlay::after {
    display: none;
  }

  html.w-mod-ix .home-hero-overlay {
    animation-name: hb-curtain-fade;
    animation-duration: .6s;
  }

  html.w-mod-ix .home-hero-overlay::before,
  html.w-mod-ix .hb-intro-logo {
    animation: none;
  }

  @keyframes hb-curtain-fade {
    to { opacity: 0; visibility: hidden; }
  }

  /* ロゴは流さず、指やホイールで横にスクロールできるようにする */
  .hb-logos {
    animation: none;
  }

  .hb-logos-view {
    overflow-x: auto;
  }
}

/* ---------- スマホ: トップの見出しを画面幅いっぱいまで大きくし、どの端末でも同じ 3 行に収める ---------- */
/* 一番長い 2 行目（Digital Innovation & creativity）が、左右 20px の余白の内側にちょうど収まる大きさ。
   英字・ドット字・筆記体の比率は Webflow のスマホ縦の指定（20 / 30 / 57px）のまま em に直してある */
@media screen and (max-width: 479px) {
  .home-hero-section .top_text {
    font-size: calc((100vw - 40px) * 0.062);
    white-space: nowrap;
  }

  .home-hero-section .top_text .text-span-2 {
    font-size: 1.5em;
    letter-spacing: -.0667em;
  }

  .home-hero-section .top_text .text-span {
    font-size: 2.85em;
    letter-spacing: -.035em;
  }
}

/* ---------- スマホ: トップの Company / Member / Contact は、見出しを左端・Detail ボタンを右端に並べる ---------- */
@media screen and (max-width: 767px) {
  [data-wf-page="679cb0715742e9506de9dbc4"] .sectiontitle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  [data-wf-page="679cb0715742e9506de9dbc4"] .sectiontitle > .h_30px {
    display: none;
  }

  /* 左右の端は上の区切り線（.tab_sep）にそろえる */
  [data-wf-page="679cb0715742e9506de9dbc4"] .sectiontitle > .works-button-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    flex: 0 1 auto;
  }
}

/* ---------- スマホ: メンバーの肩書きは左にそろえる（2行の肩書きが中央寄せのように見えていた） ---------- */
@media screen and (max-width: 767px) {
  .card-text-details,
  .card-text-details .text-small {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- スマホ: 最初の画面の高さは「ツールバーが出ている時の画面」（svh）に合わせ、中身が多ければ伸ばす ----------
   100vh は iPhone の Safari ではツールバーを隠した時の高さになり、下の文字（中小企業庁〜）がロゴの帯とツールバーの裏に隠れていた */
@media screen and (max-width: 767px) {
  .home-hero-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .home-hero-wrapper {
    height: auto;
    flex: 1 0 auto;
  }
}

/* ---------- スマホ: 下のロゴの帯はオープニングの最中から出しておく（Yoshi 2026-10-23） ----------
   最初の画面を svh に合わせたので、ツールバーが引っ込んだ端末では幕の下にすき間ができる。帯で最初からふさぐ */
@media screen and (max-width: 767px) {
  html.w-mod-js[data-wf-page="679cb0715742e9506de9dbc4"]:not(.hb-intro-done) .hb-logos,
  html[data-wf-page="679cb0715742e9506de9dbc4"] .hb-logos {
    opacity: 1;
    animation: none;
  }
}

/* ---------- スマホ: MVV の文は単語の途中で折り返さないよう、読点のところで改行する（Yoshi 2026-10-23） ----------
   Vision は 479px 以下、Value は 359px 以下で 1 行に収まらないので、そこでだけ改行を出す */
.hb-br-sp,
.hb-br-xs {
  display: none;
}

@media screen and (max-width: 479px) {
  .hb-br-sp {
    display: inline;
  }
}

@media screen and (max-width: 359px) {
  .hb-br-xs {
    display: inline;
  }
}

/* ---------- トップ: Member と Contact の間の Sponsorship（スポンサーページへの導線） ----------
   写真は傾いた写真のスライダー（js/hb-tilted-grid.js） */
.hb-sponsor-top-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* Member と Sponsorship で同じ高さにそろえる */
.hb-tgrid {
  position: relative;
  width: 100%;
  height: min(78vh, 50vw);
  overflow: hidden;
}

/* メンバーの顔は背景が透明なので、写真の下地を敷かない */
.hb-tgrid-members .hb-tgrid-slice {
  background: none;
}

.hb-tgrid-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}

.hb-tgrid.is-ready .hb-tgrid-stage {
  opacity: 1;
}

.hb-tgrid-col {
  position: absolute;
  transform-style: preserve-3d;
}

.hb-tgrid.is-paused .hb-tgrid-col {
  animation-play-state: paused !important;
}

.hb-tgrid-slice {
  position: absolute;
  top: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.hb-tgrid-slice img {
  position: absolute;
  top: 0;
  max-width: none;
  object-fit: cover;
}

.hb-sponsor-top-names {
  margin: -1.5em 0 0;
  padding: 0 1.5em;
  color: var(--beige);
  font-size: .85rem;
  letter-spacing: .06em;
  line-height: 1.9;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .hb-tgrid {
    height: 80vw;
  }

  .hb-sponsor-top-names {
    margin-top: 0;
    font-size: .75rem;
    text-align: left;
  }

  .hb-sponsor-top-names br {
    display: none;
  }
}

/* Header home link: only the logo itself is tappable (Webflow's flex:1 stretched
   the link across the whole header up to the menu button). */
.navbar_component > .nav-link-block {
  flex: 0 0 auto;
  margin-right: auto;
}
