/* =========================================================
   W FIVE  home.css  (ステップ3: Homeページ)
   数値の出どころ: Wixライブサイトの実測値(PC幅1440px、レイアウト幅1425px)
   ※ 「要確認」と書いた箇所は、Wix版と見比べて調整する
   ========================================================= */

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 背景・装飾用の動画 */
.bg-video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- ボタン(Home用) ---------- */
.btn--arrow { gap: 14px; }
.btn--arrow .btn__arrow { flex: none; transition: transform 0.4s; }
.btn--arrow:hover .btn__arrow, .btn--arrow:focus-visible .btn__arrow { transform: rotate(45deg); }  /* 矢印が → から ↘ に変わる */
/* 四角いボタン(Meet Our Leadership / Explore How We Execute) */
.btn-rect {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 296px; height: 46px; padding: 0 24px;
  background: var(--grey-100); color: var(--black);
  font: 400 16.5px/1 var(--font-text); text-decoration: none;
  transition: background-color 0.4s, color 0.4s;
}
/* ホバー時(Wix版の実測): 紫の背景に、黒い文字のまま */
.btn-rect:hover { background: #7a64ff; color: var(--black); }

/* ---------- 1 Hero ---------- */
.hero { background: var(--white); padding: 5px var(--hero-inset, clamp(16px, 4.6vw, 66px)) 8px; }  /* スクロールすると、home.js が --hero-inset を小さくして、カードを左右に広げる */
.hero__card {
  position: relative; overflow: hidden; border-radius: 24px; background: #111;
  min-height: 660px; height: 760px;
  display: flex; align-items: center;
}
.hero__video { position: absolute; inset: 0; }
.hero__card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--hero-dim, 0.35)); }  /* スクロールすると、home.js が --hero-dim を上げる */
.hero__content { position: relative; z-index: 1; padding: 0 5% 0 69px; color: var(--grey-100); }
.hero__title { margin: 0; max-width: 9.6em; font: 400 clamp(44px, 5.63vw, 108px)/1.1 var(--font-text); }
.hero__lead { max-width: 650px; margin: 36px 0 36px; font: 400 24px/1.3 var(--font-text); }

/* ---------- 2・3 写真(動画)と文章の2列 ---------- */
.split { display: grid; align-items: center; background: var(--black); color: var(--grey-100); }
.split__media { aspect-ratio: 677 / 434; overflow: hidden; background: #111; }
.split__video { width: 100%; height: 100%; }
.split__title { margin: 0 0 24px; font: 400 27px/37px var(--font-text); }
.split__text p { margin: 0 0 24px; font: 400 17.81px/28.5px var(--font-text); }
.split__text .btn-rect { margin-top: 12px; }
/* 2: 動画が左(左端から44px、幅は全体の47.5%) */
.split--media-left { grid-template-columns: min(677px, 47.5vw) 1fr; padding: 61px 0 62px 44px; }
.split--media-left .split__text { padding: 0 min(170px, 12vw) 0 min(134px, 9.4vw); }
/* 3: 文章が左(左端から136px)、動画が右(右端から58px) */
.split--media-right { grid-template-columns: 1fr min(677px, 47.5vw); padding: 100px 58px 62px 136px; column-gap: 0; }
.split--media-right .split__text { max-width: 390px; justify-self: start; }

/* ---------- 4 Our Story ---------- */
.story { display: grid; grid-template-columns: 50% 50%; min-height: 732px; }
.story__text { display: flex; flex-direction: column; justify-content: center; padding: 60px 112px 60px 117px; background: var(--blue); color: var(--white); }
.story__label { margin: 0 0 18px; text-align: center; font: 400 16px/1.3 var(--font-text); }
.story__title { margin: 0 0 34px; text-align: center; font: 400 27px/1.3 var(--font-text); }
.story__text p:not(.story__label) { margin: 0 0 28px; font: 400 17.81px/28.5px var(--font-text); }
.story__text p:last-child { margin-bottom: 0; }
.story__media { position: relative; overflow: hidden; background: #111; }
.story__video { position: absolute; inset: 0; }

/* ---------- 5 The FIVE behind W FIVE ---------- */
.five { position: relative; overflow-x: clip; padding: 36px 77px 70px; background: var(--white); color: var(--black); }
.five__logo { position: absolute; top: 28px; right: 114px; width: 253px; height: auto; }
.five__kicker { margin: 0 0 40px; font: 400 27.83px/38.96px var(--font-text); }
.five__lead { max-width: 1180px; margin: 0 0 38px; font: 400 27.83px/38.96px var(--font-text); }
.five__cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; max-width: 1200px; margin: 54px auto 0; padding: 0; list-style: none; }
.five-card { min-height: 245px; padding: 28px 36px 32px; border-radius: 16px; background: var(--grey-100); transition: background-color 0.4s; }
/* ホバー時(Wix版の実測): 1枚目から順に、青とオレンジが交互に付く */
.five-card:nth-child(odd):hover { background: #bfd4ea; }
.five-card:nth-child(even):hover { background: #f9ccb5; }
/* スクロールに合わせて、上の段と下の段が、逆向きに横へ動く(home.js が --row1 / --row2 を更新) */
.five-card:nth-child(-n+3) { transform: translateX(var(--row1, 0px)); }
.five-card:nth-child(n+4) { transform: translateX(var(--row2, 0px)); }
.five-card--third { grid-column: span 2; }
.five-card--half { grid-column: span 3; }
.five-card h3 { margin: 22px 0 22px; font: 700 20px/1.2 var(--font-label); letter-spacing: 0.8px; text-transform: uppercase; color: var(--black); }
.five-card p { margin: 0; max-width: 28em; font: 400 18px/24px var(--font-label); letter-spacing: 0.05em; color: #2b2b2b; }
/* カード左上のロゴマーク(5秒でくるくる回る) */
.five-card__icon {
  display: block; width: 56px; height: 30px;
  background: url("../images/header-logo.png") left center / auto 30px no-repeat;
  animation: five-flip 5s linear infinite;
}
@keyframes five-flip { to { transform: rotateY(360deg); } }

/* ---------- 6 What We Do ---------- */
.wwd { position: relative; min-height: 660px; overflow: hidden; background: #000; color: var(--white); scroll-margin-top: 0; }
.wwd__video { position: absolute; inset: 0; }
.marquee { position: relative; z-index: 1; padding-top: 30px; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; padding-left: 0; animation: marquee-run 50s linear infinite; will-change: transform; }
.marquee__track span { flex: none; padding-right: 26px; font: 400 42px/1.4 var(--font-text); letter-spacing: 0; }
@keyframes marquee-run { to { transform: translateX(-50%); } }
.wwd__text { position: relative; z-index: 1; width: min(402px, 40%); margin: 110px 45px 0 auto; font: 400 20px/32px var(--font-text); }

/* ---------- 7 Focus Areas ---------- */
.focus { background: var(--black); color: var(--grey-100); padding: 40px 0 90px; }
.focus__title { margin: 0 0 0 47px; font: 400 clamp(56px, 7vw, 99.73px)/0.9 Arial, "MS PGothic", Helvetica, sans-serif; color: var(--grey-100); }
.focus__stage { position: relative; height: 470px; margin-top: -20px; }
.focus__circle { position: absolute; left: 50%; top: 76px; width: 345px; height: 345px; margin-left: -172px; border-radius: 50%; overflow: hidden; background: #111; }
.focus__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.focus__img.is-active { opacity: 1; }
.focus__list { margin: 0; padding: 0; list-style: none; }
.focus-item { position: absolute; display: flex; align-items: center; gap: 22px; }
.focus-pill {
  flex: none; width: 149px; min-height: 95px; padding: 12px; border: 0; border-radius: 48px; cursor: pointer;
  background: var(--white); color: var(--blue); font: 400 17px/21px var(--font-text); text-align: center;
  transition: background-color 0.3s, color 0.3s;
}
.focus-pill:hover, .focus-pill:focus-visible, .focus-item.is-active .focus-pill { background: var(--blue); color: var(--white); }
.focus-desc { margin: 0; font: 400 15px/24.4px var(--font-text); color: var(--grey-100); }
/* PC: 丸い画像のまわりに5項目を並べる(幅1425pxを基準にした位置) */
.focus-item--ai         { left: 3.16%;  top: 125px; width: 29.5%; }
.focus-item--smart      { left: 59.72%; top: 8px;   width: 32.3%; }
.focus-item--robotics   { left: 65.6%;  top: 175px; width: 32.1%; flex-direction: row-reverse; }
.focus-item--cyber      { left: 6.17%;  top: 322px; width: 30%;   flex-direction: row-reverse; }
.focus-item--enterprise { left: 63.86%; top: 348px; width: 30.3%; }

/* ---------- 8 A Glimpse into Our Growth ---------- */
.growth { padding: 90px 58px 90px; background: var(--white); color: var(--black); }
.growth__title { margin: 0 0 76px; font: 400 42.75px/1.2 var(--font-text); color: var(--blue); }
.growth__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 0; padding: 0; list-style: none; }
.growth-card { overflow: hidden; border-radius: 16px 16px 0 0; background: #f2f3f3; }
.growth-card__head { margin: 0; padding: 0 31px; height: 117px; display: flex; align-items: center; background: #e6e7e7; font: 500 24px/1.2 var(--font-label); color: #5b91c9; transition: background-color 0.4s; }
/* ホバー時(Wix版の実測): 見出しの帯が、青く変わる */
.growth-card:hover .growth-card__head { background: #9ab8d5; }
.growth-card__body { padding: 42px 30px 50px; }
.growth-card__icon { display: block; width: 55px; height: 55px; margin: 0 0 113px 8px; color: #f17c43; }  /* 55px四方の枠の中に、Wix版のSVGを収める(色はWix版の実測) */
.growth-card__body p { margin: 0; font: 400 18px/22px var(--font-label); letter-spacing: 0.05em; color: #444; }

/* ---------- 9 Built for Execution ---------- */
.built { padding: 58px 58px; background: var(--black); }
.built__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 0; padding: 0; list-style: none; }
.built-card { position: relative; height: 490px; overflow: hidden; background: #0b0b14; color: var(--white); }
.built-card--wave, .built-card--ai { border-radius: 16px; border: 1.6px solid var(--line); }
.built-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.built-card--ai .built-card__bg { opacity: 0.85; }
.built-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: 109px 19px 38px 19px; }
.built-card--ai .built-card__body { padding-top: 100px; padding-left: 24px; padding-right: 36px; }
.built-card__body h2 { margin: 0 0 16px; font: 400 27px/1.3 var(--font-text); }
.built-card__body p { margin: 0; font: 400 17.81px/25px var(--font-text); }
/* アイコンは、Wix版のSVGそのまま(青い角丸の四角も、SVGの中に含まれる) */
.built-card__icon { display: block; width: 56px; height: 56px; margin-top: 40px; }
.built-card__icon svg { display: block; width: 100%; height: 100%; }
.built-card--video { border-radius: 0; }
.built-card__video { position: absolute; inset: 0; }

/* ---------- 10 Our Team ---------- */
.team { padding: 56px 24px 76px; background: var(--grey-100); color: var(--black); }
.team__inner { width: min(1037px, 100%); margin: 0 auto; }  /* 3人の並びは、画面の中央に置く(Wix版と同じ) */
.team__title { margin: 0 0 64px; font: 400 42.75px/1.4 var(--font-text); color: var(--blue); }
.team__list { display: grid; grid-template-columns: repeat(3, minmax(0, 303px)); column-gap: 64px; margin: 0; padding: 0; list-style: none; }
.member__photo { position: relative; width: 100%; max-width: 269px; aspect-ratio: 269 / 311; overflow: hidden; border-radius: 26px; }
.member__photo img { position: absolute; max-width: none; height: auto; }
/* Wix版の切り抜き位置に合わせる(元画像のどの部分を枠に入れるか) */
.member__photo--urata img    { width: 153.5%; left: -24.9%; top: -5.84%; }
.member__photo--okamoto img  { width: 141.8%; left: -29.6%; top: -11.7%; }
.member__photo--barzilay img { width: 100%; left: 0; top: 0; }
.member__name { margin: 34px 0 10px; font: 500 20px/28px var(--font-label); color: var(--blue); }
.member p { margin: 0; font: 400 16.7px/21px var(--font-text); }

/* ---------- 11 Build Your Path ---------- */
.path { position: relative; display: flex; align-items: flex-end; min-height: 732px; overflow: hidden; background: #333; color: var(--white); }
.path__video { position: absolute; inset: 0; }
.path::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)); }
.path__content { position: relative; z-index: 1; padding: 0 58px 115px; }
.path__title { margin: 0 0 32px; font: 400 42.75px/1.2 var(--font-text); }

/* ---------- スクロールで画面に貼り付く(Focus Areas / BUILT FOR EXECUTION): PC幅のみ ----------
   貼り付いたセクションの上を、次のセクションが、下から重なって通り過ぎる(Wix版と同じ動き) */
@media (min-width: 1100px) {
  .focus { position: sticky; top: min(0px, calc(100vh - 670px)); z-index: 1; }
  .growth { position: relative; z-index: 2; }
  .built { position: sticky; top: min(0px, calc(100vh - 606px)); z-index: 3; }
  .team { position: relative; z-index: 4; }
  .path { position: relative; z-index: 5; }
}

/* =========================================================
   タブレット(760〜1099px): Wix版と同じ2列を保ち、文字を少し小さくする
   ========================================================= */
@media (max-width: 1099px) {
  .hero__content { padding: 0 40px; }
  .hero__lead { font-size: 20px; margin: 24px 0; }
  .btn-rect { min-width: 0; padding: 0 22px; }

  .split--media-left, .split--media-right { grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 48px 32px; }
  .split--media-left .split__text, .split--media-right .split__text { padding: 0; max-width: none; justify-self: stretch; }
  .split__title { font-size: 24px; line-height: 32px; }
  .split__text p { font-size: 16px; line-height: 26px; }

  .story { min-height: 560px; }
  .story__text { padding: 48px 32px 48px 40px; }
  .story__text p:not(.story__label) { font-size: 16px; line-height: 26px; }

  .five { padding: 40px 40px 56px; }
  .five__logo { width: 190px; right: 40px; top: 24px; }
  .five__kicker { margin-bottom: 28px; padding-right: 220px; font-size: 22px; line-height: 1.3; }
  .five__lead { font-size: 22px; line-height: 32px; }
  .five__cards { margin-top: 40px; }
  .five-card { min-height: 210px; padding: 22px 24px 24px; }
  .five-card p { font-size: 16px; line-height: 22px; }

  .marquee__track span { font-size: 32px; }
  .wwd { min-height: 560px; }
  .wwd__text { width: min(46%, 400px); margin: 70px 32px 40px auto; font-size: 18px; line-height: 28px; }

  .focus { padding: 40px 32px 56px; }
  .focus__title { margin-left: 0; }
  .focus__stage { height: auto; margin-top: 24px; }
  .focus__circle { position: relative; left: auto; top: auto; margin: 0 auto 36px; }
  .focus__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .focus-item { position: static; width: auto; flex-direction: row !important; }

  .growth { padding: 56px 32px; }
  .growth__title { margin-bottom: 40px; font-size: 34px; }
  .growth__cards { grid-template-columns: 1fr 1fr; }
  .growth-card__icon { margin-bottom: 56px; }

  .built { padding: 40px 32px; }
  .built__cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .team { padding: 48px 32px 56px; }
  .team__title { margin-bottom: 36px; font-size: 34px; }
  .team__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .member__name { font-size: 18px; line-height: 26px; }
  .member p { font-size: 15px; line-height: 20px; }

  .path { min-height: 600px; }
  .path__content { padding: 0 32px 72px; }
  .path__title { font-size: 34px; }
}

/* =========================================================
   スマホ(759px以下): 縦に積む
   ※ Wix版のスマホ表示には、崩れている箇所(ヒーローの文字が1語ずつ折り返す、
     ボタンの文字が途切れる、Our Teamの名前が極端に小さい、など)があるため、
     そこは写さず、PC版と同じ構成・色で、読みやすく組んでいる
   ========================================================= */
@media (max-width: 759px) {
  .hero { padding: 5px 16px 8px; }
  .hero__card { height: auto; min-height: 560px; padding: 56px 0; }
  .hero__content { padding: 0 24px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 56px); }
  .hero__lead { margin: 20px 0 28px; font-size: 18px; }
  .btn--arrow { height: auto; min-height: 48px; padding: 14px 24px; text-align: center; line-height: 1.25; }

  .split--media-left, .split--media-right { grid-template-columns: 1fr; row-gap: 28px; padding: 40px 24px; }
  .split--media-right .split__media { order: -1; }
  .split__text p { font-size: 17px; line-height: 27px; }
  .btn-rect { width: 100%; max-width: 320px; }

  .story { grid-template-columns: 1fr; min-height: 0; }
  .story__text { padding: 48px 24px; }
  .story__text p:not(.story__label) { font-size: 17px; line-height: 27px; }
  .story__media { min-height: 360px; }

  .five { padding: 40px 24px 48px; }
  .five__logo { position: static; display: block; width: 190px; margin: 0 0 20px; }
  .five__kicker { padding-right: 0; margin-bottom: 20px; font-size: 20px; }
  .five__lead { font-size: 19px; line-height: 1.5; }
  .five__cards { grid-template-columns: 1fr; }
  .five-card--third, .five-card--half { grid-column: auto; }

  .marquee__track span { font-size: 26px; }
  .wwd__text { width: auto; margin: 56px 24px 48px; }

  .focus { padding: 40px 24px 48px; }
  .focus__title { font-size: clamp(44px, 13vw, 64px); }
  .focus__circle { width: min(300px, 80vw); height: min(300px, 80vw); }
  .focus__list { grid-template-columns: 1fr; }
  .focus-desc { font-size: 16px; }

  .growth { padding: 48px 24px; }
  .growth__title { font-size: 30px; }
  .growth__cards { grid-template-columns: 1fr; }

  .built { padding: 32px 24px; }

  .team__list { grid-template-columns: 1fr; row-gap: 44px; }
  .member__photo { max-width: 340px; }
  .member__name { font-size: 20px; }
  .member p { font-size: 16.5px; line-height: 22px; }

  .path { min-height: 520px; }
  .path__content { padding: 0 24px 56px; }
  .path__title { font-size: 30px; }
}

/* 動きを減らす設定のとき: 動画は止め、動く装飾も止める */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .five-card__icon { animation: none; }
}
