/* Heliks Data トップ C案（index.html）
   ・共通部分（色・文字・ボタン・ヘッダー・ご相談・フッターなど）は site-c.css にあり、先に読み込む
   参考：TUNAG AI活用伴走支援（粒子感のあるグラデーション、丸いボタン、白い角丸カード、グラデーションの帯）
         Algomatic（大きな見出し、粒子感のある丸いグラデーション、濃いグレーの面に線のカード、追従する丸いボタン）
   ・波線・らせんは使わない。動きのある要素は「丸いグラデーション」に統一する
   ・AI生成のイメージ画像は使わない（実際の成果物・本人写真のみ）
   ・色はブランドの青を軸に、紫・水色を差し色にする */

/* ---------- ファーストビュー ---------- */

.hc-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(680px, 100svh);
  overflow: hidden;
  background: #fff;
}

/* 背景のシルクの光（WebGL） */
.hc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hc-hero__bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* WebGL が使えない環境では、淡いグラデーションにする */
.hc-hero__bg.is-fallback {
  background: radial-gradient(ellipse 60% 70% at 88% 20%, #dbe5ff, rgb(255 255 255 / 0) 70%);
}

.hc-hero__bg.is-fallback canvas {
  display: none;
}

.hc-hero__inner {
  /* 下はスクロール誘導の分をあける */
  padding-block: 140px clamp(148px, 13vw, 184px);
}

.hc-hero__title {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
}

.hc-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.hc-line > span {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hc-hero__copy {
  max-width: 820px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 26px 30px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / .78);
  backdrop-filter: blur(16px);
}

.hc-hero__copy > p {
  color: var(--sub);
}

.hc-hero__copy > p:first-child {
  color: var(--ink);
  font-weight: 600;
}

.hc-hero__copy > p + p {
  margin-top: 10px;
}

/* スクロール誘導：文字と、上から下へ流れる線 */
.hc-scroll {
  position: absolute;
  bottom: clamp(24px, 3vw, 40px);
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: var(--ink);
  transform: translateX(-50%);
}

.hc-scroll__text {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hc-scroll__line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgb(20 22 28 / .15);
}

.hc-scroll__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateY(-100%);
  animation: hc-scroll-line 2.2s var(--ease) infinite;
}

@keyframes hc-scroll-line {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hc-scroll:hover .hc-scroll__text {
  color: var(--blue);
}

.js .hc-scroll {
  opacity: 0;
  transition: opacity .9s .9s;
}

.is-loaded .hc-scroll {
  opacity: 1;
}

/* 読み込み時の一度だけの動き */
.js .hc-line > span {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
}

.js .hc-line + .hc-line > span {
  transition-delay: .12s;
}

.js .hc-line:nth-child(3) > span {
  transition-delay: .24s;
}

/* 説明文は改行位置を文節にそろえる */
.hc-hero__copy > p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.js .hc-hero__copy {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s .5s, transform .9s .5s var(--ease);
}

.is-loaded .hc-line > span,
.is-loaded .hc-hero__copy {
  opacity: 1;
  transform: none;
}

/* ---------- 事業内容 ---------- */

.hc-services {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.hc-service {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: calc(var(--radius) + 8px);
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgb(20 30 80 / .18);
}

.hc-service--flip .hc-service__copy {
  order: 2;
}

.hc-service__no {
  font-family: var(--en);
  font-size: 15px;
  font-weight: 700;
}

.hc-service__no span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hc-service h3 {
  margin-top: 6px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.4;
}

.hc-service__en {
  margin: 4px 0 16px;
  color: var(--sub);
  font-family: var(--en);
  font-size: 14px;
  font-weight: 600;
}

.hc-service__copy > p:not(.hc-service__no):not(.hc-service__en) {
  color: var(--sub);
}

.hc-service__copy > p + p:not(.hc-service__en) {
  margin-top: 8px;
}

.hc-checks {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.hc-checks li {
  /* 折り返すときに1〜2文字だけが次の行に残らないよう、行の長さをそろえる */
  text-wrap: balance;
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.hc-checks li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
}

.hc-checks li::after {
  content: "";
  position: absolute;
  top: calc(.3em + 5px);
  left: 6px;
  width: 6px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}

/* 事業の図：丸いグラデーションと短い言葉 */
.hc-visual {
  position: relative;
  min-height: 340px;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #eef0ff, #f7fbff);
  isolation: isolate;
}

.hc-visual .hc-orb {
  aspect-ratio: 1;
  animation: hc-drift 16s ease-in-out infinite alternate;
}

.hc-visual .hc-orb:first-child {
  top: -18%;
  right: -12%;
  width: 78%;
}

.hc-visual .hc-orb:nth-child(2) {
  bottom: -30%;
  left: -14%;
  width: 62%;
  animation-duration: 21s;
  animation-direction: alternate-reverse;
}

.hc-visual--b .hc-orb:first-child,
.hc-visual--d .hc-orb:first-child {
  top: auto;
  right: auto;
  bottom: -20%;
  left: -10%;
}

.hc-visual--b .hc-orb:nth-child(2),
.hc-visual--d .hc-orb:nth-child(2) {
  top: -22%;
  right: -16%;
  bottom: auto;
  left: auto;
}

.hc-visual figcaption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 1;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgb(255 255 255 / .72);
  backdrop-filter: blur(10px);
  color: var(--ink);
}

.hc-visual figcaption span {
  display: block;
  color: var(--blue);
  font-family: var(--en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hc-visual figcaption b {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
}

/* ---------- 事業内容の図：光のにじみ（球体ではなく、ぼかした色の重なり） ----------
   旧：ハイライト付きの球体（立体の玉に見える）・高い彩度・くっきりした縁 → 安っぽく見えた
   新：ハイライトなし・強いぼかし・彩度を落とした色・乗算で重ねる・面全体に粒子感 */
.hc-visual {
  background: linear-gradient(150deg, #f6f7fc 0%, #eef1fb 100%);
}

.hc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--grain);
  mix-blend-mode: soft-light;
  opacity: .55;
  pointer-events: none;
}

.hc-visual .hc-orb {
  -webkit-mask-image: none;
  mask-image: none;
  filter: blur(42px);
  mix-blend-mode: multiply;
}

.hc-visual .hc-orb::after {
  display: none;
}

.hc-visual .hc-orb--blue {
  background: radial-gradient(circle, rgb(72 100 255 / .62) 0%, rgb(72 100 255 / .28) 45%, transparent 70%);
}

.hc-visual .hc-orb--violet {
  background: radial-gradient(circle, rgb(140 120 255 / .55) 0%, rgb(140 120 255 / .24) 45%, transparent 70%);
}

.hc-visual .hc-orb--cyan {
  background: radial-gradient(circle, rgb(70 200 235 / .55) 0%, rgb(70 200 235 / .22) 45%, transparent 70%);
}

/* 2つの色を対角に大きく重ね、中央で混ざるようにする */
.hc-visual .hc-orb:first-child {
  top: -30%;
  right: -30%;
  bottom: auto;
  left: auto;
  width: 115%;
}

.hc-visual .hc-orb:nth-child(2) {
  top: auto;
  right: auto;
  bottom: -40%;
  left: -30%;
  width: 105%;
}

.hc-visual--b .hc-orb:first-child,
.hc-visual--d .hc-orb:first-child {
  top: auto;
  right: auto;
  bottom: -35%;
  left: -30%;
}

.hc-visual--b .hc-orb:nth-child(2),
.hc-visual--d .hc-orb:nth-child(2) {
  top: -35%;
  right: -30%;
  bottom: auto;
  left: auto;
}

/* 言葉は枠を薄くし、面になじませる */
.hc-visual figcaption {
  border: 1px solid rgb(255 255 255 / .7);
  background: rgb(255 255 255 / .55);
  box-shadow: 0 10px 30px -18px rgb(20 30 80 / .25);
}

/* ---------- 仕事の進め方 ---------- */

.hc-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* カードの上を通る線：スクロールに合わせて左から伸びる */
.hc-steps::before,
.hc-steps::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 0;
  height: 2px;
  border-radius: 2px;
}

.hc-steps::before {
  right: 0;
  background: var(--line);
}

.hc-steps::after {
  width: calc(var(--progress) * 100%);
  background: var(--grad);
}

.hc-steps li {
  position: relative;
  z-index: 1;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.hc-num {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--en);
  font-size: 40px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.hc-num--large {
  font-size: clamp(56px, 6vw, 80px);
}

.hc-steps h3 {
  margin: 16px 0 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
}

.hc-steps p {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.85;
}

.hc-note {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 32px;
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--tint);
}

.hc-note h3 {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.hc-note p {
  color: var(--sub);
  font-size: 15px;
}

/* ---------- 強み ---------- */

.hc-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 24px;
}

.hc-reason {
  position: relative;
  padding: 26px 28px 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 48px -36px rgb(20 30 80 / .25);
}

.hc-reason .hc-num {
  margin-top: -54px;
}

.hc-reason h3 {
  margin: 14px 0 14px;
  color: var(--blue);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 1.5;
}

.hc-reason p {
  color: var(--sub);
  font-size: 15px;
}

.hc-reasons {
  padding-top: 40px;
}

/* ---------- 開発事例 ---------- */

.hc-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hc-work {
  padding: 28px 28px 32px;
  border-radius: var(--radius);
  background: var(--tint);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}

.hc-work:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgb(20 30 80 / .3);
}

.hc-work:hover .hc-tag {
  background: var(--tint);
}

.hc-work h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.hc-work > p {
  color: var(--sub);
  font-size: 15px;
}

.hc-work h3 {
  margin-top: 0;
}

.hc-work__tech {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hc-work__tech p {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.hc-work__tech ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hc-work__tech li {
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.hc-work:hover .hc-work__tech li {
  background: var(--tint);
}

/* ---------- 途中の相談の帯 ---------- */

.hc-band-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 72px);
  background: var(--grad);
  color: #fff;
}

.hc-band-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  mix-blend-mode: soft-light;
  opacity: .7;
  pointer-events: none;
}

.hc-band-cta__inner {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.hc-band-cta h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
}

/* ---------- 対応技術（濃いグレーの面に線のカード） ---------- */

#technology {
  background: linear-gradient(160deg, #2b2e37, var(--dark) 55%, #1b1d23);
  color: #fff;
}

#technology .hc-head__lead {
  color: #b9bdc8;
}

#technology .hc-head__en {
  color: #a9b6ff;
}

.hc-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hc-caps > div {
  padding: 26px 26px 30px;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 14px;
  transition: border-color .4s, background-color .4s;
}

.hc-caps > div:hover {
  border-color: rgb(255 255 255 / .6);
  background: rgb(255 255 255 / .04);
}

.hc-caps dt {
  font-size: 18px;
  font-weight: 800;
}

.hc-caps dt::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--grad);
}

.hc-caps dd {
  margin-top: 10px;
  color: #c4c8d2;
  font-size: 15px;
}

/* ---------- Lab ---------- */

.hc-lab {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hc-lab__intro p {
  color: var(--sub);
}

.hc-lab__intro p + p {
  margin-top: 10px;
}

.hc-lab__intro .hc-pill {
  margin-top: 28px;
}

.hc-labcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: var(--grad);
  color: #fff;
  isolation: isolate;
}

.hc-labcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  mix-blend-mode: soft-light;
  opacity: .7;
}

.hc-labcard__image {
  margin: 20px 0 20px 20px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.hc-labcard__image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: top left;
  transition: transform .8s var(--ease);
}

.hc-labcard:hover .hc-labcard__image img {
  transform: scale(1.04);
}

.hc-labcard__body {
  align-self: center;
  padding: 32px 32px 36px;
}

.hc-labcard h3 {
  margin: 14px 0 12px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.45;
}

.hc-labcard__body > p:not(.hc-tag) {
  color: rgb(255 255 255 / .88);
  font-size: 15px;
}

.hc-labcard .hc-pill {
  margin-top: 24px;
}

/* ---------- 代表者プロフィール ---------- */

.hc-person {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(var(--radius) + 8px);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgb(20 30 80 / .35);
}

.hc-person__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(160deg, #e6e9ff, #eafaff);
  /* 写真の背景が白いため、淡い輪で輪郭を出す */
  box-shadow: 0 0 0 8px var(--tint), 0 0 0 9px var(--line);
}

.hc-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-person__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: .08em;
}

.hc-person__name span {
  color: var(--blue);
  font-family: var(--en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

.hc-person__role {
  margin: 4px 0 18px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.hc-person__body > p:not(.hc-person__name):not(.hc-person__role) {
  color: var(--sub);
}

.hc-person__body > p + p:not(.hc-person__role) {
  margin-top: 10px;
}

.hc-person .hc-pill {
  margin-top: 24px;
}

/* ---------- 企業情報・フッター ---------- */

.hc-company {
  padding-block: clamp(64px, 8vw, 100px);
}

.hc-company__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 5vw, 80px);
}

.hc-company h2 {
  font-size: 22px;
  font-weight: 800;
}

.hc-company dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.hc-company dl > div:first-child {
  border-top: 1px solid var(--line);
}

.hc-company dt {
  color: var(--sub);
}

.hc-company__link {
  margin-left: 16px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- タブレット ---------- */

@media (max-width: 960px) {
  .hc-service,
  .hc-lab,
  .hc-labcard {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-service--flip .hc-service__copy {
    order: 0;
  }

  .hc-visual {
    min-height: 240px;
  }

  .hc-steps,
  .hc-works,
  .hc-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-steps::before,
  .hc-steps::after {
    display: none;
  }

  .hc-reasons {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }

  .hc-labcard__image {
    margin: 16px 16px 0;
  }

  .hc-labcard__image img {
    min-height: 0;
    max-height: 280px;
  }
}

/* ---------- スマホ ---------- */

@media (max-width: 640px) {
  .hc-hero {
    min-height: 0;
  }

  .hc-hero__inner {
    padding-top: 300px;
  }

  .hc-hero__title {
    font-size: clamp(30px, 9.2vw, 52px);
  }

  .hc-hero__copy {
    padding: 22px 20px;
  }

  .hc-band-cta .hc-pill {
    width: 100%;
  }

  .hc-steps,
  .hc-works,
  .hc-caps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-note,
  .hc-person,
  .hc-company__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-person__photo {
    width: 160px;
  }

  .hc-company dl > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .hc-company__link {
    display: inline-block;
    margin-left: 0;
  }
}

/* 動きを減らす設定：すべて最初から表示し、漂う動きも止める */
@media (prefers-reduced-motion: reduce) {
  .js .hc-line > span,
  .js .hc-hero__copy {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hc-visual .hc-orb,
  .hc-scroll__line::after {
    animation: none !important;
  }

  .hc-scroll__line::after {
    transform: none;
  }

  .js .hc-scroll {
    opacity: 1;
    transition: none;
  }

  .hc-work,
  .hc-labcard__image img {
    transition: none;
  }
}
