@charset "UTF-8";
/* ==========================================================================
   GC Holdings corporate site - C案「Interactive & Immersive」追加スタイル (plan-c.css)
   style.css の後に読み込む。A案の構成をベースに「操作して楽しめる」要素と
   没入感のある演出を足し、一部のセクションは構成自体も変えている。
   - ブランドイントロ（初回のみ）、カーソル追従の光、右端のドットナビ
   - 事業の流れ: 自動で巡回するインタラクティブ・ハブ（中央に各事業の情報）
   - なぜワンストップ: ガラス質の円 ＋ マウス視差 ＋ 中心から広がる波紋
   - 事業領域: 横スクロールのショーケース（PC）／横スワイプのカルーセル（SP）、
     カードが浮き上がってキャッチコピー・説明文が現れる演出
   - 「まずはAI相談」: PC・タブレットでは左の AI 相談パネルを光らせて入口を示す
   - 最新プロジェクト: ワイプ表示 ＋ ゆっくりズーム、沿革: タイムライン
   - 常時動くものは prefers-reduced-motion で停止
   ========================================================================== */

:root {
  --c-ease-out: cubic-bezier(.22, 1, .36, 1);
  --c-ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --c-glow: rgba(140, 180, 255, 1);
}

/* 回転するグラデーション枠線用（対応ブラウザのみ回転。非対応では静止した枠線になる） */
@property --c-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes c-spin { to { transform: rotate(360deg); } }
@keyframes c-rotate { to { --c-a: 360deg; } }
@keyframes c-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes c-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes c-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes c-wave { from { opacity: .6; transform: scale(.3); } to { opacity: 0; transform: scale(1.02); } }
@keyframes c-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes c-twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .5; transform: scale(.75) rotate(25deg); } }
@keyframes c-scroll-line {
  0% { transform: scaleY(0); transform-origin: 50% 0; }
  45% { transform: scaleY(1); transform-origin: 50% 0; }
  55% { transform: scaleY(1); transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
@keyframes c-intro-out { to { transform: translateY(-101%); } }
@keyframes c-intro-logo { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes c-intro-name { from { opacity: 0; letter-spacing: .45em; } to { opacity: 1; letter-spacing: .14em; } }
@keyframes c-intro-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 浮き上がり中のカードの影（--card-shadow）を消さないよう、リングと重ねる */
@keyframes c-target { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .95), var(--card-shadow); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), var(--card-shadow); } }
/* パネルの影（幅によって値が違う）を消さないよう、外へ広がる輪は outline で描く */
@keyframes c-call-ring { 0% { outline-color: rgba(140, 170, 255, .95); outline-offset: 0; } 100% { outline-color: rgba(140, 170, 255, 0); outline-offset: 14px; } }
@keyframes c-call-glow { 0%, 100% { opacity: 0; } 35% { opacity: 1; } }

/* --------------------------------------------------------------------------
   ブランドイントロ（同一タブで初回のみ。html.has-intro は head のスクリプトが付ける）
   -------------------------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: var(--c-bg);
  color: #fff;
}

html.has-intro .intro {
  display: grid;
  place-items: center;
  animation: c-intro-out .8s cubic-bezier(.76, 0, .24, 1) 1.8s forwards;
}

.intro__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

html.has-intro .intro__logo {
  width: 104px;
  height: 109px;
  animation: c-intro-logo 1s var(--c-ease-out) both;
}

html.has-intro .intro__name {
  font: 700 22px/1 var(--font-en-alt);
  letter-spacing: .14em;
  animation: c-intro-name 1s .3s both;
}

html.has-intro .intro__bar {
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: c-intro-bar 1.2s .5s both;
}

/* --------------------------------------------------------------------------
   カーソル追従の光（マウス操作できる PC のみ。--x/--y は JS が更新）
   -------------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 120, 255, .22), rgba(70, 120, 255, 0) 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
  will-change: transform;
}

.cursor-glow.is-on { opacity: 1; }

@media (hover: none), (max-width: 767px) {
  .cursor-glow { display: none; }
}

/* --------------------------------------------------------------------------
   右端のドットナビ（1024px 以上）
   -------------------------------------------------------------------------- */
.dotnav {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
}

@media (min-width: 1024px) {
  .dotnav { display: flex; }
}

.dotnav__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.dotnav__item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background .3s, box-shadow .3s, transform .3s;
}

.dotnav__item:hover::after { background: #fff; }

.dotnav__item.is-active::after {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 14px rgba(140, 180, 255, .9);
}

.dotnav__item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.dotnav__label {
  position: absolute;
  right: 30px;
  top: 50%;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  color: var(--c-bg);
  font: 700 11px/1 var(--font-ja);
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.dotnav__item:hover .dotnav__label,
.dotnav__item:focus-visible .dotnav__label { opacity: 1; transform: translate(0, -50%); }

#flow, #why, #domains, #project, #company { scroll-margin-top: 90px; }

/* --------------------------------------------------------------------------
   背景: 細かなドットグリッドで「テクノロジー」の空気を足す
   -------------------------------------------------------------------------- */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 700px, #000 calc(100% - 300px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 700px, #000 calc(100% - 300px), transparent 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header: スクロールでコンパクトに（高さ・ロゴを縮小、背景を透過）
   -------------------------------------------------------------------------- */
.header { transition: padding .35s var(--c-ease-out); }
.header__inner { transition: height .35s var(--c-ease-out), box-shadow .35s, background-color .35s; }
.header__logo { transition: width .35s var(--c-ease-out), height .35s var(--c-ease-out); }

@media (min-width: 768px) {
  .header.is-scrolled { padding-top: 10px; }

  .header.is-scrolled .header__inner {
    height: 62px;
    background: rgba(34, 81, 227, .92);
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .header.is-scrolled .header__logo { width: 50px; height: 52px; }
}

/* --------------------------------------------------------------------------
   Hero: 見出しが左から「ワイプ」で現れる、スクロールで動画が角丸になりながら沈む
   -------------------------------------------------------------------------- */
.ln { display: block; }

.ln__in {
  display: inline-block;
  clip-path: inset(-.2em 100% -.2em -.1em);
  transition: clip-path 1.1s var(--c-ease-out);
}

.ln:nth-child(2) .ln__in { transition-delay: .2s; }
.ln:nth-child(3) .ln__in { transition-delay: .4s; }

html.is-ready .hero__title .ln__in,
.reveal.is-in .ln__in { clip-path: inset(-.2em -.1em -.2em -.1em); }

.js .hero__label,
.js .hero__desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--c-ease-out), transform .9s var(--c-ease-out);
}

html.is-ready .hero__label { opacity: 1; transform: none; transition-delay: .1s; }
html.is-ready .hero__desc { opacity: 1; transform: none; transition-delay: .8s; }

/* SCROLL の案内（動画の下中央） */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: -104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: #fff;
  opacity: 0;
  transition: opacity .8s 1.4s;
}

html.is-ready .scroll-hint { opacity: .8; }
.scroll-hint:hover { opacity: 1; }

.scroll-hint__text {
  font: 500 10px/1 var(--font-en);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.scroll-hint__line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .8);
  animation: c-scroll-line 2.2s ease-in-out infinite;
}

@media (max-width: 767px) {
  .scroll-hint { display: none; }
}

@media (min-width: 768px) {
  .js .hero__media {
    overflow: hidden;
    border-radius: calc(var(--hs, 0) * 24px);
    transform: scale(calc(1 - var(--hs, 0) * .08));
    transform-origin: 50% 20%;
    opacity: calc(1 - var(--hs, 0) * .5);
  }
}

/* --------------------------------------------------------------------------
   Section: 見出しの背後に大きな番号（白抜き）、星のまたたき
   -------------------------------------------------------------------------- */
.label .star,
.ai-panel__head .star { animation: c-twinkle 3.6s ease-in-out infinite; }

@media (min-width: 768px) {
  .flow__head::before,
  .why__head::before,
  .domains__head > div::before {
    position: absolute;
    z-index: -1;
    font: 700 120px/1 var(--font-en);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
    pointer-events: none;
  }

  .flow__head::before { content: "01"; left: -12px; top: -58px; }
  .why__head::before { content: "02"; left: -12px; top: -58px; }
  .domains__head > div { position: relative; }
  .domains__head > div::before { content: "03"; left: -12px; top: -70px; }
}

/* --------------------------------------------------------------------------
   図版共通: 背後の光彩、立体感のあるリング
   -------------------------------------------------------------------------- */
.diagram::before {
  content: "";
  position: absolute;
  inset: -90px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 40, 255, .3) 0%, rgba(4, 40, 255, .1) 38%, rgba(4, 40, 255, 0) 66%);
  pointer-events: none;
}

.ring { box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .10), inset 0 20px 60px rgba(4, 40, 255, .18); }

.flow .ring--1,
.why .ring--1 { background: radial-gradient(circle at 50% 38%, rgba(4, 40, 255, .26), rgba(4, 40, 255, .16) 62%, rgba(4, 40, 255, .10) 100%); }

.flow .ring--2,
.why .ring--2 { background: radial-gradient(circle at 50% 38%, rgba(4, 40, 255, .38), rgba(4, 40, 255, .26) 65%, rgba(4, 40, 255, .20) 100%); }

.flow .ring--3,
.why .ring--3 { background: radial-gradient(circle at 50% 38%, rgba(0, 37, 255, .52), rgba(0, 37, 255, .38) 70%, rgba(0, 37, 255, .32) 100%); }

/* --------------------------------------------------------------------------
   事業の流れ: インタラクティブ・ハブ
   - 光の先端が軌道を一周し、通過した事業が順に点灯（JS が進行を更新）
   - 点灯中の事業の名称・タグが中央に表示され、カードへのリンクになる
   - ノードはボタン。ホバー／フォーカス中は自動巡回を一時停止
   -------------------------------------------------------------------------- */
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.flow-svg circle { fill: none; }

.flow-track__base {
  stroke: rgba(255, 255, 255, .4);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.flow-track__progress {
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1398;
  stroke-dashoffset: 1398;
  filter: drop-shadow(0 0 6px rgba(140, 180, 255, .9));
}

.flow-head {
  position: absolute;
  inset: 65px;
  border-radius: 50%;
  pointer-events: none;
}

.flow-head__dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(140, 180, 255, .9), 0 0 30px 10px rgba(4, 40, 255, .6);
  opacity: 0;
  transition: opacity .5s;
}

.flow-hub.is-active .flow-head__dot { opacity: 1; }

.flow-arrow { opacity: .6; }

/* ノード（button） */
.flow-item {
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .45s var(--c-ease-out), box-shadow .45s;
}

.flow-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5), 0 0 0 4px rgba(140, 170, 255, .25);
}

.flow-item.is-visited { box-shadow: 0 0 0 2px rgba(140, 170, 255, .55), 0 10px 30px -10px rgba(0, 0, 0, .45); }

.flow-item.is-active {
  z-index: 3;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(140, 170, 255, .35), 0 0 54px 10px rgba(4, 40, 255, .65), 0 20px 40px -12px rgba(0, 0, 0, .5);
}

.flow-item.is-active:hover { transform: scale(1.12) translateY(-3px); }
.flow-item__num { transition: color .3s; }
.flow-item.is-active .flow-item__num { color: var(--c-blue-bright); }
.flow-item:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.flow-item--1 { --d: 0; }
.flow-item--2 { --d: 1; }
.flow-item--3 { --d: 2; }
.flow-item--4 { --d: 3; }
.flow-item--5 { --d: 4; }
.flow-item--6 { --d: 5; }
.flow-item--7 { --d: 6; }

.js .diagram-scale:not(.is-in) .flow-item { opacity: 0; }

.js .diagram-scale.is-in .flow-item {
  animation: c-pop .75s var(--c-ease-back) backwards;
  animation-delay: calc(.3s + var(--d) * .1s);
}

/* 中央: 既定はロゴ＋タイトル、点灯中は事業の情報 */
.flow-center {
  top: 98px;
  bottom: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.flow-center__logo {
  width: 104px;
  height: 109px;
  transition: width .5s var(--c-ease-out), height .5s var(--c-ease-out);
}

.flow-hub.is-active .flow-center__logo { width: 40px; height: 42px; }

.flow-center .flow-center__title { transition: opacity .3s; }
.flow-hub.is-active .flow-center__title { display: none; }

.flow-center__detail {
  display: none;
  width: 260px;
  text-align: center;
  pointer-events: auto;
}

.flow-hub.is-active .flow-center__detail {
  display: block;
  animation: c-rise .5s var(--c-ease-out);
}

.flow-center .flow-center__num {
  margin-top: 10px;
  font: 700 11px/1 var(--font-en);
  letter-spacing: .25em;
  color: #9fb3ff;
}

.flow-center .flow-center__name {
  margin-top: 8px;
  font: 700 22px/1.3 var(--font-ja);
}

.flow-center .flow-center__en {
  margin-top: 5px;
  font: 500 10px/1 var(--font-en);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}

.flow-center__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.flow-center__tags li {
  height: 20px;
  padding: 0 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  font: 400 10px/20px var(--font-ja);
  white-space: nowrap;
}

.flow-center__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--c-blue-mid);
  font: 700 11px/32px var(--font-ja);
  transition: background .25s, color .25s, transform .25s;
}

.flow-center__link svg { width: 5px; height: 8px; }

.flow-center__link:hover,
.flow-center__link:focus-visible {
  background: var(--c-blue-bright);
  color: #fff;
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   なぜワンストップ: ガラス質の円、マウス視差（--px/--py は JS）、中心から広がる波紋
   -------------------------------------------------------------------------- */
.why-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 572px;
  height: 572px;
  margin: -286px 0 0 -286px;
  border-radius: 50%;
  border: 1px solid rgba(140, 180, 255, .75);
  opacity: 0;
  pointer-events: none;
  animation: c-wave 7.5s linear infinite;
}

.why-wave--2 { animation-delay: -2.5s; }
.why-wave--3 { animation-delay: -5s; }

.why .ring--1 { transform: translate(calc(var(--px, 0) * 4px), calc(var(--py, 0) * 4px)); }
.why .ring--2 { transform: translate(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 8px)); }
.why .ring--3 { transform: translate(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 12px)); }
.why-item { transform: translate(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px)); }
.why-line,
.why-note { transform: translate(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 12px)); }
.why-center { transform: translate(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 6px)); }

.why .ring,
.why-line,
.why-note,
.why-center { transition: transform .7s var(--c-ease-out); }

.why-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 50px -24px rgba(0, 0, 0, .7);
  transition: transform .7s var(--c-ease-out), background-color .35s, color .35s, box-shadow .35s;
}

.why-item::after { border-color: rgba(255, 255, 255, .22); transition: border-color .35s; }
.why-item__icon { filter: brightness(0) invert(1); transition: filter .35s; }

.why-item:hover {
  background: #fff;
  color: var(--c-blue-mid);
  box-shadow: 0 0 0 5px rgba(140, 170, 255, .35), 0 0 50px 8px rgba(4, 40, 255, .6), 0 24px 50px -24px rgba(0, 0, 0, .7);
}

.why-item:hover::after { border-color: rgba(21, 40, 143, .8); }
.why-item:hover .why-item__icon { filter: none; }

.why-item--top { --d: 0; }
.why-item--right { --d: 1; }
.why-item--bottom { --d: 2; }
.why-item--left { --d: 3; }

.js .diagram-scale:not(.is-in) .why-item,
.js .diagram-scale:not(.is-in) .why-line,
.js .diagram-scale:not(.is-in) .why-note { opacity: 0; }

.js .diagram-scale.is-in .why-item {
  animation: c-pop .75s var(--c-ease-back) backwards;
  animation-delay: calc(.3s + var(--d) * .14s);
}

.why-line--tr { --d: 0; }
.why-line--br { --d: 1; }
.why-line--bl { --d: 2; }
.why-line--tl { --d: 3; }
.why-note--tr { --d: 0; }
.why-note--br { --d: 1; }
.why-note--bl { --d: 2; }
.why-note--tl { --d: 3; }

.js .diagram-scale.is-in .why-line,
.js .diagram-scale.is-in .why-note {
  animation: c-fade .8s ease-out backwards;
  animation-delay: calc(1s + var(--d) * .14s);
}

.why-note { opacity: .88; transition: transform .7s var(--c-ease-out), opacity .3s, color .3s, text-shadow .3s; }
.why-line { transition: transform .7s var(--c-ease-out), background-color .3s, box-shadow .3s; }

.why-item--top:hover ~ .why-note--tr,
.why-item--left:hover ~ .why-note--tl,
.why-item--right:hover ~ .why-note--br,
.why-item--bottom:hover ~ .why-note--bl {
  opacity: 1;
  color: #dbe6ff;
  text-shadow: 0 0 14px rgba(140, 180, 255, .7);
}

.why-item--top:hover ~ .why-line--tr,
.why-item--left:hover ~ .why-line--tl,
.why-item--right:hover ~ .why-line--br,
.why-item--bottom:hover ~ .why-line--bl {
  background: var(--c-glow);
  box-shadow: 0 0 8px rgba(140, 180, 255, .9);
}

.why-center { text-shadow: 0 0 24px rgba(140, 180, 255, .5); }

/* --------------------------------------------------------------------------
   事業領域: 横スクロールのショーケース（768px 以上）。SP は後述の横スワイプのカルーセル
   -------------------------------------------------------------------------- */
.domains__box { overflow: hidden; }

.domains__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(73, 103, 255, .35), rgba(73, 103, 255, 0) 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(4, 40, 255, .35), rgba(4, 40, 255, 0) 60%);
  pointer-events: none;
}

.domains__inner { position: relative; }

/* 浮き上がりの状態（0 = 通常 / 1 = 浮き上がり）。見た目の差はすべてこの値から作る
   --open: キャッチコピー・説明文・青み / --pop: カードの浮き・写真のズーム・影 / --rows: 詳細の高さ（0fr / 1fr）
   --dur: 開く時はゆっくり、戻る時は素早く（transition は変化後の値で決まるため、開く側だけ長くなる） */
.card {
  --open: 0;
  --pop: 0;
  --rows: 0fr;
  --dur: calc(.3s + var(--open) * .5s);
  --card-shadow: 0 calc(var(--pop) * 36px) calc(var(--pop) * 56px) calc(var(--pop) * -24px) rgba(0, 8, 70, calc(var(--pop) * .85));
  scroll-margin-top: 120px;
  transform: translateY(calc(var(--pop) * -6px));
  box-shadow: var(--card-shadow);
  transition: opacity .4s, transform var(--dur) var(--c-ease-out), box-shadow var(--dur) var(--c-ease-out);
}

/* ハブからの遷移・キー操作・タップ・SP の自動判定（JS が付ける） */
.card.is-active { --open: 1; --pop: 1; --rows: 1fr; }

/* 大きな番号（白抜き） */
.card::before {
  content: attr(data-num);
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 1;
  font: 700 44px/1 var(--font-en);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .6);
  pointer-events: none;
}

.card--cta::before { display: none; }

.cards-nav { display: none; }

@media (min-width: 768px) {
  .cards {
    display: flex;
    gap: 16px;
    margin: 56px -56px 0;
    padding: 10px 56px 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 56px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
  }

  .cards::-webkit-scrollbar { display: none; }

  .cards:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

  .cards.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .card {
    flex: 0 0 300px;
    height: 420px;
    scroll-snap-align: start;
  }

  /* 上は番号（top 18px + 44px）の下から。押し上げられた記載が番号に重ならない */
  .card[data-num] { padding: 64px 25px 22px; }

  .cards-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
  }

  .cards-nav.is-hidden { display: none; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .cards { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; scroll-padding: 0 32px; }
}

/* タッチのタブレット: 末尾に余白を足し、07 まで先頭（スナップ位置）で止まれるようにする
   （止まれる位置がカード数より少ないと、自動で浮き上がらないカードが出るため）
   必要な余白 = 親幅 + 左右の打ち消し量 - (07 と CTA の幅 300×2 + gap 16) */
@media (min-width: 768px) and (max-width: 1199px) and (hover: none) {
  .cards { padding-right: max(32px, calc(100% - 584px)); }
}

@media (min-width: 1200px) and (hover: none) {
  .cards { padding-right: max(56px, calc(100% - 560px)); }
}

@media (min-width: 768px) and (hover: hover) {
  /* ドラッグ中・固定中（ハブ遷移・キー操作）はホバーで開かない */
  .cards:not(.is-dragging):not(.is-pinned) .card:hover { --open: 1; --pop: 1; --rows: 1fr; }
  .cards:not(.is-dragging):not(.is-pinned):hover .card:not(:hover):not(.is-active) { opacity: .55; }

  /* タグは浮き上がりに合わせてせり上がって表示 */
  .card__tags {
    max-height: calc(var(--open) * 90px);
    margin-top: calc(var(--open) * 11px);
    overflow: hidden;
    opacity: var(--open);
    transform: translateY(calc((1 - var(--open)) * 8px));
    transition: max-height var(--dur) var(--c-ease-out), margin-top var(--dur) var(--c-ease-out), opacity var(--dur), transform var(--dur) var(--c-ease-out);
  }
}

.cards-nav__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: #fff;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}

.cards-nav__btn svg { width: 8px; height: 12px; }
.cards-nav__btn--prev svg { transform: rotate(180deg); }

.cards-nav__btn:hover,
.cards-nav__btn:focus-visible { background: #fff; color: var(--c-blue-deep); border-color: #fff; }

.cards-nav__btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }

.cards-nav__bar {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.cards-nav__fill {
  display: block;
  width: 30%;
  height: 100%;
  background: #fff;
  transition: transform .15s linear;
}

/* 事業の流れのハブから飛んできた時のハイライト */
.card.is-target { animation: c-target 1.4s ease-out 2; }

/* --------------------------------------------------------------------------
   事業領域: 浮き上がり（キャッチコピー・説明文）
   既存の記載（カテゴリ・領域名・サブコピー・タグ）は下揃えのまま、
   詳細の高さ（0fr → 1fr）のぶんだけ上へ押し上げられ、空いた下側から文言が時間差で現れる
   -------------------------------------------------------------------------- */
/* 写真: ゆっくりズーム（style.css の .card:hover の scale を同じ詳細度で上書き） */
.card:hover .card__img img,
.card .card__img img {
  transform: scale(calc(1 + var(--pop) * .08));
  transition: transform calc(.4s + var(--open) * .8s) var(--c-ease-out);
}

/* 写真: 下から濃紺〜青が満ちて、文字が読める暗さにする */
.card__img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 40, 255, .82) 0%, rgba(20, 36, 160, .8) 40%, rgba(38, 52, 140, .55) 75%, rgba(38, 52, 140, .25) 100%);
  opacity: var(--open);
  transition: opacity var(--dur) var(--c-ease-out);
}

.card__detail {
  display: grid;
  grid-template-rows: var(--rows);
  transition: grid-template-rows var(--dur) var(--c-ease-out);
}

.card__detail-in {
  min-height: 0;
  overflow: hidden;
}

/* 区切り線: 左から伸びる */
.card__detail-in::before {
  content: "";
  display: block;
  height: 1px;
  margin: 12px 0 10px;
  background: linear-gradient(to right, rgba(255, 255, 255, .7), rgba(255, 255, 255, .12));
  transform: scaleX(var(--open));
  transform-origin: 0 50%;
  transition: transform calc(.3s + var(--open) * .6s) var(--c-ease-out) calc(var(--open) * .08s);
}

.card__catch {
  font: 700 17px/1.45 var(--font-ja);
  color: #fff;
  text-wrap: balance;
  word-break: auto-phrase;
}

.card__desc {
  margin-top: 8px;
  font: 400 13px/1.75 var(--font-ja);
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
}

/* 下から少し上がりながら、透明→不透明・ぼかし→くっきり。説明文はキャッチコピーより少し遅れる */
.card__catch,
.card__desc {
  opacity: var(--open);
  transform: translateY(calc((1 - var(--open)) * 14px));
  filter: blur(calc((1 - var(--open)) * 6px));
  transition-property: opacity, transform, filter;
  transition-duration: calc(.25s + var(--open) * .5s);
  transition-timing-function: var(--c-ease-out);
}

.card__catch { transition-delay: calc(var(--open) * .12s); }
.card__desc { transition-delay: calc(var(--open) * .22s); }

/* 英語は文が長いので、文字を小さくしてカードを高くする */
html[lang="en"] .card__catch { font-size: 15px; line-height: 1.4; }
html[lang="en"] .card__desc { margin-top: 6px; font-size: 12px; line-height: 1.6; }

@media (min-width: 768px) {
  html[lang="en"] .card { height: 460px; }
}

/* JS が動いていない（無効・読み込み失敗）時は、自動で開く環境でも文言が読めるよう全カードを開く */
@media (max-width: 767px), (min-width: 768px) and (hover: none) {
  .cards:not(.is-live) .card { --open: 1; --rows: 1fr; }
}

/* --------------------------------------------------------------------------
   事業領域: SP 横スワイプのカルーセル（767px 以下）
   1 枚ずつ中央に止まり、中央のカードが自動で浮き上がる（JS が .is-active を付ける）
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* --w: カード幅 / --pad: 先頭・末尾のカードも中央に止まれる左右の余白（20px は .domains の左右パディング） */
  .cards {
    --w: min(320px, calc(100vw - 92px));
    --pad: calc((100vw - 20px - var(--w)) / 2);
    display: flex;
    gap: 12px;
    margin: 32px -18px 0;
    padding: 12px var(--pad) 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar { display: none; }

  .cards:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

  .cards.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }

  .card {
    --card-shadow: 0 calc(var(--pop) * 16px) calc(var(--pop) * 26px) calc(var(--pop) * -12px) rgba(0, 8, 70, calc(var(--pop) * .85));
    flex: 0 0 var(--w);
    height: 380px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .card[data-num] { padding: 48px 18px 22px; }

  /* CTA はカードが縦に長くなるので中身を縦中央に */
  .card--cta { justify-content: center; padding: 24px 22px; }

  .card__detail-in::before { margin-top: 10px; }
  .card__catch { font-size: 16px; line-height: 1.45; }
  .card__desc { margin-top: 6px; font-size: 12.5px; line-height: 1.75; }

  html[lang="en"] .card { height: 450px; }
  html[lang="en"] .card__catch { font-size: 15px; line-height: 1.4; }
  html[lang="en"] .card__desc { font-size: 12px; line-height: 1.6; }

  /* 位置バーだけ表示（前後ボタンは出さない）。JS が動いていない時は塗りが動かないので出さない */
  .cards.is-live + .cards-nav { display: flex; margin-top: 4px; }
  .cards-nav__btn { display: none; }
}

/* 狭い SP（320px 幅など）は 1 行の文字数が減るぶん高くする */
@media (max-width: 359px) {
  .card { height: 440px; }
  html[lang="en"] .card { height: 490px; }
}

/* 中央にないカードは少し小さく・暗くして、浮き上がったカードを引き立てる */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .cards.is-live .card {
    transform: translateY(calc(var(--pop) * -6px)) scale(calc(.94 + var(--pop) * .06));
    opacity: calc(.55 + var(--pop) * .45);
  }
}

/* --------------------------------------------------------------------------
   最新プロジェクト: 左からワイプで現れ、背景はゆっくりズーム（ケンバーンズ）
   -------------------------------------------------------------------------- */
/* ボックス自体は最初から表示扱いにし、背景色の「幕」が右へ縮んでワイプする
   （clip-path でボックスを隠すと IntersectionObserver に見えないと判定されるため） */
.js .project__box.reveal {
  opacity: 1;
  transform: none;
}

.js .project__box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--c-bg);
  transform-origin: 100% 50%;
  transition: transform 1.2s var(--c-ease-out);
  pointer-events: none;
}

.js .project__box.is-in::after { transform: scaleX(0); }
.project__bg img { animation: c-kenburns 26s ease-in-out infinite alternate; }
.project__btn { overflow: hidden; }

.project__btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .25), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left .8s var(--c-ease-out);
}

.project__box:hover .project__btn::after { left: 130%; }

/* --------------------------------------------------------------------------
   COMPANY INFO 帯: 2段目（白抜き・逆方向）を追加、両端をフェード
   -------------------------------------------------------------------------- */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee--outline { margin-top: 0; }
.marquee--outline .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .5); }
.marquee--outline .star { color: rgba(255, 255, 255, .35); }

/* --------------------------------------------------------------------------
   会社情報: 行の順次表示、沿革のタイムライン、グループ会社の所在地バッジ
   -------------------------------------------------------------------------- */
.js .company__block:not(.is-in) .co-row,
.js .company__block:not(.is-in) .hist-row { opacity: 0; }

.js .company__block.is-in .co-row,
.js .company__block.is-in .hist-row {
  animation: c-rise .7s var(--c-ease-out) backwards;
  animation-delay: calc(.2s + var(--i, 0) * 90ms);
}

.co-row,
.hist-row { transition: background-color .3s; }

.co-row:hover,
.hist-row:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0)); }

.hist-row { position: relative; padding-left: 30px; }

.hist-row dt {
  font: 700 13px/16px var(--font-en);
  letter-spacing: .02em;
  opacity: .9;
}

/* タイムラインの線と点 */
.hist-row::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(140, 170, 255, .35);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .8s var(--c-ease-out);
  transition-delay: calc(.3s + var(--i, 0) * 120ms);
}

.hist-row::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid rgba(140, 170, 255, .7);
  transition: background .4s, box-shadow .4s;
  transition-delay: calc(.6s + var(--i, 0) * 120ms);
}

.hist-row:first-child::after { top: 6px; }

.company__block.is-in .hist-row::before,
html:not(.js) .hist-row::before { transform: scaleY(1); }

.company__block.is-in .hist-row::after,
html:not(.js) .hist-row::after {
  background: var(--c-blue-bright);
  box-shadow: 0 0 12px rgba(4, 40, 255, .9);
}

.co-row__badge {
  display: inline-block;
  height: 16px;
  margin-right: 8px;
  padding: 0 6px;
  border: 1px solid rgba(140, 170, 255, .45);
  border-radius: 3px;
  background: rgba(140, 170, 255, .18);
  color: #cfe0ff;
  font: 700 9px/14px var(--font-en);
  letter-spacing: .08em;
  vertical-align: 2px;
}

.company__map { box-shadow: 0 0 0 1px rgba(140, 170, 255, .25), 0 30px 60px -30px rgba(4, 40, 255, .6); }

/* --------------------------------------------------------------------------
   Footer: カードは回転するグラデーション枠線、大文字は白抜き→スクロールで白く塗られる
   -------------------------------------------------------------------------- */
.fcard {
  overflow: hidden;
  border-color: rgba(110, 118, 163, .5);
  transition: background .3s, transform .5s var(--c-ease-out), box-shadow .5s;
}

.fcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--c-a), rgba(140, 170, 255, .95), rgba(110, 118, 163, 0) 25%, rgba(110, 118, 163, 0) 75%, rgba(140, 170, 255, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.fcard:hover::before { opacity: 1; animation: c-rotate 3s linear infinite; }
.js .reveal.is-in.fcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(4, 40, 255, .7); }

.footer__big {
  color: rgba(255, 255, 255, var(--fp, 1));
  -webkit-text-stroke: 1px rgba(255, 255, 255, .75);
  transition: color .2s linear;
}

/* --------------------------------------------------------------------------
   AI相談パネル: 回転するグラデーション枠線、チップの順次表示、送信ボタンの光
   -------------------------------------------------------------------------- */
.ai-panel {
  border-color: transparent;
  box-shadow: 0 30px 80px -30px rgba(4, 40, 255, .5);
}

.ai-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--c-a), rgba(140, 170, 255, .95), rgba(103, 106, 110, .55) 18%, rgba(103, 106, 110, .55) 82%, rgba(140, 170, 255, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: c-rotate 9s linear infinite;
  pointer-events: none;
}

/* 「まずはAI相談」で呼ばれたとき（PC・タブレット。is-called は plan-c.js が付ける）:
   枠が青く光り、外へ広がる輪を 2 回出して、相談の入口がこのパネルだと示す */
.ai-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(140, 170, 255, .95), inset 0 0 40px rgba(73, 103, 255, .45);
  opacity: 0;
  pointer-events: none;
}

.ai-panel.is-called {
  outline: 2px solid transparent;
  animation: c-call-ring .9s ease-out 2;
}

.ai-panel.is-called::after { animation: c-call-glow .9s ease-in-out 2; }

.ai-form__submit { transition: background .2s, box-shadow .3s, transform .3s; }
.ai-form__submit:hover { transform: scale(1.08); }
.ai-form:focus-within .ai-form__submit { box-shadow: 0 0 18px rgba(4, 40, 255, .8); }

.ai-chips button { transition: background .25s, border-color .25s, transform .25s, box-shadow .25s; }

.ai-chips button:hover {
  transform: translateY(-1px);
  background: rgba(73, 103, 255, .22);
  border-color: #8fa4ff;
  box-shadow: 0 6px 16px -8px rgba(4, 40, 255, .8);
}

html.js.is-ready .ai-chips li {
  animation: c-rise .6s var(--c-ease-out) backwards;
  animation-delay: calc(.25s + var(--i, 0) * 45ms);
}

/* --------------------------------------------------------------------------
   SP 調整
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .card::before { top: 12px; left: 16px; font-size: 28px; }
  .hist-row { padding-left: 24px; }
  .hist-row::after { top: 24px; }
  .hist-row:first-child::after { top: 4px; }
  /* 11文字の事業名（物流・サプライチェーン等）が1行に収まる幅・サイズにする */
  .flow-center__detail { width: 250px; }
  .flow-center .flow-center__name { font-size: 20px; }
  .marquee--outline { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   「視差効果を減らす」設定: 常時アニメーションを止め、出現演出を省略
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .why-wave,
  .project__bg img,
  .scroll-hint__line,
  .label .star,
  .ai-panel__head .star,
  .ai-panel::before,
  .fcard::before { animation: none !important; }

  /* 「まずはAI相談」の合図は、広がる輪をやめて枠の光 1 回だけにする */
  .ai-panel.is-called { animation: none; }
  .ai-panel.is-called::after { animation-iteration-count: 1; }

  .js .diagram-scale.is-in .flow-item,
  .js .diagram-scale.is-in .why-item,
  .js .diagram-scale.is-in .why-line,
  .js .diagram-scale.is-in .why-note,
  .js .company__block.is-in .co-row,
  .js .company__block.is-in .hist-row,
  .flow-hub.is-active .flow-center__detail,
  html.js.is-ready .ai-chips li { animation: none !important; opacity: 1; }

  .ln__in { transition: none; clip-path: none; }
  .js .hero__label, .js .hero__desc, .scroll-hint { transition: none; transform: none; opacity: 1; }
  .js .hero__media { transform: none; opacity: 1; border-radius: 0; }
  .js .project__box.reveal { clip-path: none; transition: none; }
  .hist-row::before { transform: scaleY(1); transition: none; }
  .hist-row::after { transition: none; }
  .cards { scroll-behavior: auto; }
  .cursor-glow { display: none; }

  /* 事業領域: 浮き・ズーム・時間差を止め、キャッチコピー・説明文は最初から表示する */
  .card,
  .card.is-active,
  .cards .card:hover { --open: 1 !important; --rows: 1fr !important; --pop: 0 !important; }

  .card,
  .card *,
  .card__img::before,
  .card__detail-in::before { transition: none !important; }
}
