/* ============================================================
   humbulls V3 home — トップページ固有(ヒーロー/ロゴ帯/バナー/事例/サービス/ナレッジ)
   ============================================================ */
/* ---------- hero — baigie 型2カラム ---------- */
/* padding-top に header 高さ（絶対配置）を加算し、先頭でヒーローが潜り込まないようにする */
.hero { background: var(--paper); padding: calc(clamp(72px, 7.5vw, 108px) + clamp(34px, 4.5vw, 64px)) 0 clamp(44px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 26px; }
.hero-title { line-break: strict; }
.hero-title .nb, .case-title .nb, .case-dl .nb, .sec-title .nb, .mega-link .nb, .mega-cat .nb { white-space: nowrap; }
.hero-title .ht-1 { display: block; font-size: clamp(16px, 1.7vw, 24px); font-weight: 800; line-height: 1.6; letter-spacing: 0.01em; }
.hero-title .ht-2 { display: block; margin-top: 8px; font-size: clamp(23px, 2.65vw, 38px); font-weight: 900; line-height: 1.42; letter-spacing: 0; }
.hero-sub { margin-top: clamp(24px, 3vw, 34px); font-size: clamp(16px, 1.3vw, 17px); color: var(--ink-2); max-width: 34em; line-height: 2.0; }
@media (max-width: 639px) { .hero-sub br { display: none; } }
.hero-gas-wrap { position: relative; display: flex; justify-content: center; }
/* フォールバック（JS 不可 / reduced-motion）: 矩形ブロブ＝有機 border-radius + ガスグラデ + 影 */
.hero-gas {
  position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.06;
  border-radius: 46% 54% 57% 43% / 55% 44% 56% 45%;
  overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--gas-4), var(--gas-1) 34%, var(--gas-2) 66%, var(--gas-3));
  box-shadow: 0 30px 80px rgba(90, 108, 160, 0.24);
}
/* JS 有効時: canvas 側がゼリー輪郭＋ガスを描くので、コンテナの矩形ブロブ装飾を外す */
.hero-gas.is-jelly {
  border-radius: 0; overflow: visible;
  background: transparent; box-shadow: none;
}
.hero-gas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-gas.is-jelly canvas { filter: drop-shadow(0 24px 58px rgba(90, 108, 160, 0.22)); }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 48px; }
  .hero-gas { width: min(100%, 420px); }
}
.hero-actions { margin-top: clamp(30px, 4vw, 46px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-micro { font-size: 13px; color: var(--ink-3); line-height: 1.7; max-width: 32em; }
.btn-ic { width: 17px; height: 17px; flex: none; }
/* モバイル: 球体を上に / CTAは均等幅・中央 */
@media (max-width: 939px) {
  .hero-gas-wrap { order: -1; margin-bottom: clamp(20px, 5vw, 36px); }
}
@media (max-width: 639px) {
  .hero-actions { align-items: stretch; width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
  .hero-cta-row .btn-pill--fill, .hero-cta-row .btn-pill--ghost { width: 100%; justify-content: center; }
}

/* ---------- logo band — ライトグレー帯 ---------- */
.clients { background: var(--surface); padding: 36px 0; }
/* 現行サイト踏襲: カラーのまま・右→左の無限マーキー（2連結） */
.clients-track-wrap { overflow: hidden; }
.clients-track { display: flex; width: max-content; animation: logos-marquee 52s linear infinite; }
.clients-set { display: flex; align-items: center; list-style: none; }
.clients-set li { padding: 0 30px; flex-shrink: 0; }
.clients-set img { height: 26px; width: auto; max-width: 156px; object-fit: contain; mix-blend-mode: multiply; }
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; width: auto; }
  .clients-set { flex-wrap: wrap; gap: 18px 0; }
  .clients-set[aria-hidden] { display: none; }
}

/* ---------- banners — baigie 型告知バナー（ロゴ帯直下・カード型） ---------- */
.banners { background: var(--paper); padding: clamp(28px, 3.5vw, 44px) 0 0; }
.banners-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  min-height: 104px; padding: 20px 24px;
  border-radius: var(--radius-sm); text-decoration: none;
  background: var(--surface); color: var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.5; z-index: 0; }
/* 左側は地色フェードで文字域を確保(baigie 型: 画像は薄い背景として重なる) */
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--surface) 34%, rgba(245, 245, 244, 0) 78%); }
.banner--dark::before { background: linear-gradient(90deg, var(--ink) 34%, rgba(23, 25, 30, 0) 78%); }
.banner .ci, .banner > span:not(.banner-bg) { position: relative; z-index: 2; }
.banner:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23, 25, 30, 0.12); }
.banner .ci {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: 13px; line-height: 1;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}
.banner:hover .ci { background: var(--ink); color: #fff; transform: translateX(2px); }
.banner-lead { display: block; font-size: 12px; font-weight: 700; line-height: 1.5; }
.banner-title { display: block; margin-top: 3px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 900; line-height: 1.4; }
.banner-title small { font-size: 0.66em; font-weight: 700; }
.banner-title .nb { white-space: nowrap; }
.banner--dark { background: var(--ink); color: #fff; }
.banner--dark .ci { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.banner--dark:hover .ci { background: #fff; color: var(--ink); }
@media (min-width: 860px) { .banners-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- office photo — baigie 型の全幅パノラマ帯 ---------- */
.office-photo img { display: block; width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; object-position: center 58%; }

/* ---------- strengths — baigie 型(左見出し+右の1行言い切りリスト) ---------- */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.adv-list { list-style: none; display: flex; flex-direction: column; gap: clamp(26px, 3.2vw, 42px); }
.adv-list li { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 46px); }
.adv-num { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; flex: none; }
.adv-text { font-size: clamp(17px, 1.55vw, 21px); font-weight: 800; line-height: 1.7; }
.adv-links { margin-top: clamp(44px, 5.5vw, 68px); display: flex; flex-wrap: wrap; gap: 20px 44px; }
@media (min-width: 940px) { .adv-grid { grid-template-columns: 0.9fr 1.8fr; gap: 64px; } }

/* ---------- cases — baigie 事例カード（写真枠+右下バッジ+表組みメタ） ---------- */
/* 事例カードのスタイルは assets/css/v3-cases.css に移設（2026-07-28・実績一覧と共通化） */

/* ---------- services 2層 ---------- */
.tier-head { margin-bottom: 28px; }
.tier-head.is-second { margin-top: 76px; }
.tier-title { font-size: clamp(21px, 2vw, 26px); font-weight: 800; line-height: 1.4; color: var(--ink); margin-bottom: 14px; }
.tier-lead { font-size: 15px; color: var(--ink-2); max-width: 42em; line-height: 2.0; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.plan-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 34px 30px 30px; display: flex; flex-direction: column; }
.plan-card.is-featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; line-height: 1; padding: 7px 14px; color: var(--ink); }
.plan-name-ja { font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; line-height: 1.4; color: var(--ink); }
.plan-card.is-featured .plan-name-ja { color: var(--on-dark); }
.plan-name { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plan-card.is-featured .plan-name { color: var(--on-dark-3); }
.plan-price { margin-top: 18px; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.plan-card.is-featured .plan-price small { color: var(--on-dark-3); }
.plan-desc { margin-top: 16px; font-size: 15px; color: var(--ink-2); line-height: 1.95; flex: 1; }
.plan-card.is-featured .plan-desc { color: var(--on-dark-2); }
.plan-link { margin-top: 26px; }
.plan-card.is-featured .arrow-link { color: var(--on-dark); border-bottom-color: var(--on-dark); }

/* 比較表（pages/services.html 流用・最低3ヶ月版） */

/* AI Mastery バナー */
.ai-lesson { margin-top: 20px; background: var(--surface); border-radius: var(--radius-card); padding: 34px 30px; display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.ai-lesson .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-3); }
.ai-lesson-title { font-size: 20px; font-weight: 800; line-height: 1.6; margin-top: 12px; }
.ai-lesson-desc { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 40em; line-height: 1.95; }
.ai-lesson-price { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; }
.ai-lesson-cta { justify-self: start; }
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; border-radius: var(--radius-pill); border: 1.5px solid var(--ink); padding: 14px 24px; transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }

/* プロジェクト一覧 */


/* プロジェクト型支援の一覧(メガナビと同体系・5カテゴリ) */
.proj-grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr; gap: 44px 40px; }
.proj-cat { font-size: 20px; font-weight: 800; line-height: 1.4; color: var(--ink); margin-bottom: 14px; }
.proj-col .mega-link { font-size: 16.5px; padding: 9px 0 9px 34px; }
.proj-col .mega-link .ci--sm { top: 8px; width: 25px; height: 25px; font-size: 12px; }
@media (min-width: 640px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- knowledge — sevendex 型カルーセル ---------- */
.info-block { margin-top: clamp(48px, 6vw, 76px); }
.info-block:first-of-type { margin-top: clamp(36px, 4.5vw, 56px); }
.info-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.info-label { font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.info-block-head .carousel-next { width: 46px; height: 46px; font-size: 16px; }
.info-block .blog-track { margin-top: 24px; }
.blog-cover--dark { background: var(--ink); }

.knowledge-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.carousel-next { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.carousel-next:hover { transform: translateX(3px); }
.carousel-next:disabled { opacity: 0.3; cursor: default; transform: none; }
/* 横スクロールトラック(端は container を無視して画面端まで見切れる) */
.blog-track {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scroll-padding-left: 0;
  padding-bottom: 8px; scrollbar-width: none;
}
.blog-track::-webkit-scrollbar { display: none; }
.blog-card { scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow 240ms var(--ease); }
.blog-card:hover { box-shadow: 0 14px 34px rgba(23, 25, 30, 0.12); }
.blog-cover { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.blog-card:hover .blog-cover img { transform: scale(1.04); }
.blog-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px; flex: 1; }
.blog-title { font-size: 15.5px; font-weight: 700; line-height: 1.65; color: var(--ink); }
.blog-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blog-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 9999px; padding: 5px 13px; white-space: nowrap; }
.blog-date { font-size: 13px; font-weight: 600; color: var(--ink-3); }
/* 末尾の「一覧を見る」カード */
.blog-card--more { background: var(--ink); align-items: center; justify-content: center; text-align: center; }
.blog-more-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; }
.blog-card--more .ci { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.blog-card--more:hover .ci { background: #fff; color: var(--ink); }
.blog-more-text { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.5; }
.knowledge-sub { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.k-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px 32px; }
.k-panel-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 18px; }
.webinar-next { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.webinar-date { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.webinar-title { font-size: 17px; font-weight: 800; line-height: 1.6; }
.webinar-links, .dl-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.webinar-links a, .dl-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color 200ms var(--ease); }
.webinar-links a:hover, .dl-list a:hover { color: var(--ink); }
.dl-list .pages { font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* ---------- responsive(トップ固有) ---------- */
@media (min-width: 640px) { .knowledge-sub { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .ai-lesson { grid-template-columns: 1fr auto; padding: 40px 44px; } .ai-lesson-cta { justify-self: end; } }
@media (min-width: 860px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- media 2カラム(ウェビナー / お役立ち資料・baigie 型) ---------- */
.media-cols { margin-top: clamp(48px, 6vw, 76px); display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .media-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.media-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); margin-bottom: 26px; }
.media-title { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; color: var(--ink); }
.media-head .sec-en { margin-top: 0; }
/* 直近/おすすめ = 大きいカード */
.feat-card { display: block; text-decoration: none; }
.feat-cover { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.feat-cover--dark { background: var(--ink); border-color: var(--ink); }
.feat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.feat-card:hover .feat-cover img { transform: scale(1.03); }
.feat-meta { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.feat-title { display: block; margin-top: 10px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; line-height: 1.6; color: var(--ink); }
.feat-card:hover .feat-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* その下の小さいリスト */
.mini-list { list-style: none; margin-top: 28px; }
.mini-list li { border-top: 1px solid var(--line); }
.mini-item { display: flex; gap: 18px; align-items: center; padding: 18px 0; text-decoration: none; }
.mini-thumb { flex: none; width: 108px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.mini-thumb--dark { background: var(--ink); border-color: var(--ink); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mini-meta { display: flex; align-items: center; gap: 10px; }
.mini-title { font-size: 14.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.mini-item:hover .mini-title { text-decoration: underline; text-underline-offset: 3px; }
.media-more { margin-top: 28px; }
main { padding-top: 0; }  /* トップはヒーローのセンター寄せで余白確保済み。ヘッダー相殺 */

/* 濃色カード（人気プラン）上の丸矢印は白軸に反転 */
.plan-card.is-featured .circle-link { color: #fff; }
.plan-card.is-featured .circle-link .ci { border-color: #fff; color: #fff; }
.plan-card.is-featured .circle-link:hover .ci { background: #fff; color: var(--ink); }

/* プロジェクト型支援の BtoB/BtoC 切り替え行（メガメニューと同型） */
.tier-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.tier-title-row .tier-title { margin-bottom: 0; }


/* ============ ヒーロー水オブジェクト（three.js — 2026-07-29 合流） ============ */
.hero { position: relative; overflow: hidden; min-height: 78vh; }
/* canvas はヒーロー全面（水滴がどこへドラッグされても描画域内に収まる） */
.hero canvas#jelly { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: pan-y; }
/* コピーは canvas の上。テキスト面はポインタを素通しし、リンク/ボタンだけ受ける */
.hero .hero-grid { position: relative; z-index: 2; pointer-events: none; }
.hero .hero-grid a { pointer-events: auto; }
.ground-shadow { position: absolute; left: 50%; bottom: -8%; width: 62%; height: 9%;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(60, 90, 110, 0.16), rgba(60, 90, 110, 0) 68%); }
/* モバイル: 見出しを引き上げて本体に少し被せる（テキストは canvas より上のレイヤー） */
@media (max-width: 939px) {
  .hero .hero-gas-wrap { margin-bottom: 0; }
  .hero .hero-copy { margin-top: calc(-1 * clamp(44px, 13vw, 76px)); }
}
