/* =============================================================================
   about.css — About Activarch（#company）
   導入文、3 枚のファクトカード、そしてセクションを横切って光る「導きの光」
   （光そのものは journey.css で描き、進行度は js/motion.js が与える）。
   ============================================================================= */

.growth-feature {
  color: #fff;
  background: radial-gradient(ellipse at 105% 10%,#8bceeeaa,transparent 38%),radial-gradient(ellipse at 0% 100%,#dd9f8c99,transparent 33%),linear-gradient(125deg,#1b48b3,#226aad 73%,#2374b2);
  padding: 95px 0 70px;
  overflow: hidden;
}

.growth-feature .section-title h2 {
  color: #fff;
}

@media (max-width:760px) {
  .growth-feature {
    padding: 70px 0 46px;
  }

  .growth-feature .section-title h2 {
    white-space: nowrap;
  }
}

/* About は横スクロールの旅の最後のパネルから直接つながる。導きの光はセクション上端に
   固定されているので、この padding を足しても光の軌跡は変わらない。本文が下から始まるだけで、
   光が消える頃にはタイトルがヘッダーから抜けている
   （これがないとタイトルは約 83px の位置、約 84px のヘッダーの真下に来てしまう）。 */
#company {
  position: relative;
  isolation: isolate;
  padding-top: clamp(200px, 32vh, 360px);
}

.about-guiding-light {
  position: absolute;
  top: -65svh;
  left: 0;
  width: 100%;
  height: 150svh;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.about-guiding-light > g {
  stroke-dashoffset: var(--about-light-offset,100);
}

@media (prefers-reduced-motion:reduce) {
  .about-guiding-light {
    display: none;
  }
}

/* 雑誌風の導入文、続いて 3 枚のファクトカード。 */
#company .about-introduction {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7%;
  align-items: start;
  /* 光が消えて導入文が読めるようになった時点でタイトルがまだ画面内にあるよう、
     余白は詰めてある（ゲートはセクション上端を少し過ぎたところで開く）。 */
  margin: 24px 0 64px;
}

#company .about-introduction h3 {
  line-height: 1.65;
  margin: 0;
  letter-spacing: -.035em;
}

#company .about-introduction p {
  line-height: 2.1;
  margin: 8px 0 0;
}

.about-fact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  align-items: center;
  padding: 48px 5%;
  background: #fff;
  color: #163582;
}

.about-card-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  color: #3675bd;
}

.about-card-label span {
  color: var(--c-blue);
}

.about-card-copy h3 {
  line-height: 1.6;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}

/* 見出しの中でカードの要となる部分: 明朝体、ブランドのオレンジ。数字ならインラインで、
   語句なら 1 行まるごとこのスタイルになる。 */
.about-card-copy h3 strong,
.about-card-copy h3 .about-card-accent {
  color: var(--c-orange);
  font-family: var(--f-serif);
}

/* ゴシックの行に大きな数字が混ざるので、行送りを独自に持たせ、左右に少し余白を取る。 */
.about-card-copy h3 strong {
  line-height: 1;
  margin-inline: .12em;
}

.about-card-copy > p:not(.about-card-label) {
  color: #4b627e;
  line-height: 2;
  margin: 0 0 28px;
}

.about-card-copy small {
  display: block;
  color: #677c93;
  margin-top: 24px;
  line-height: 1.8;
}

@media (max-width:900px) {
  #company .about-introduction {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 36px 0 44px;
  }

  .about-fact-card {
    padding: 30px;
    gap: 30px;
  }
}

@media (max-width:600px) {

  .about-fact-card {
    grid-template-columns: 1fr;
    padding: 23px;
    gap: 22px;
    min-height: 0;
  }

  .about-card-copy h3 {
    line-height: 1.5;
  }

  .about-card-copy > p:not(.about-card-label) {
    line-height: 1.85;
  }
}

#company .growth-feature {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* 3 つの強みを 1 枚の面にまとめる。 */
.about-card-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1px;
  padding: 0;
  margin-bottom: 54px;
  border: 1px solid #dce8f2;
  border-radius: 22px;
  overflow: hidden;
  background: #dce8f2;
}

.about-card-stack .about-fact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  padding: 38px;
}

.about-card-stack .about-fact-card:first-child {
  background: #fff;
}

.about-card-stack .about-fact-card:nth-child(2) {
  background: #f2f9ff;
}

.about-card-stack .about-fact-card:nth-child(3) {
  background: #fff;
}

.about-card-stack .about-card-label {
  margin-bottom: 20px;
}

.about-card-stack .about-card-copy h3 {
  line-height: 1.55;
  margin-bottom: 11px;
}

.about-card-stack .about-card-copy > p:not(.about-card-label) {
  line-height: 1.9;
  margin-bottom: 11px;
}

.about-card-stack .about-card-copy small {
  margin-top: 10px;
}

@media (max-width:1000px) {
  .about-card-stack .about-fact-card {
    padding: 26px;
  }
}

@media (max-width:700px) {
  .about-card-stack .about-fact-card {
    padding: 26px;
    gap: 22px;
  }
}

#company .about-card-stack {
  margin-bottom: 0;
}

/* 柔らかなプリズム状の光条が各カードの右上から差し込み、白に溶けていく。 */
#company #about-facts > .about-fact-card {
  isolation: isolate;
  overflow: hidden;
  --about-ray-angle: 180deg;
}

#company #about-facts > .about-fact-card:nth-child(2) {
  --about-ray-angle: 177deg;
}

#company #about-facts > .about-fact-card:nth-child(3) {
  --about-ray-angle: 183deg;
}

#company #about-facts > .about-fact-card > * {
  position: relative;
  z-index: 1;
}

@media (min-width:761px) {
  #company .about-introduction {
    grid-template-columns: .9fr 1.1fr;
    gap: 8vw;
    margin: 2.8vw 0 1.9vw;
  }

  #company .about-introduction h3 {
    line-height: 1.6;
  }
}

#company,
#company .growth-feature {
  background: transparent;
}

.about-scroll-item {
  opacity: var(--about-entry,1);
  translate: 0 calc((1 - var(--about-entry,1)) * 34px);
}

@media (prefers-reduced-motion:reduce) {
  .about-scroll-item {
    translate: none;
  }
}

/* About は共通の data-motion ではなく、独自の繰り返し可能なスクロール表示（--about-entry、js/motion.js が設定）を使う。
   導入文（見出しとリード）にはさらに --about-light-gate を掛ける。導きの光の閃光の上では白い文字が
   読めないので、閃光が消えていくのに合わせてはじめて現れる。 */
.scroll-choreography #company .about-scroll-item {
  opacity: var(--about-entry,0);
  translate: 0 calc((1 - var(--about-entry,0)) * 48px);
  transform: none;
  clip-path: none;
}

.scroll-choreography #company .about-introduction .about-scroll-item {
  opacity: calc(var(--about-entry,0) * var(--about-light-gate,1));
}

.scroll-choreography #company .about-heading > [data-motion] {
  opacity: 1;
  transform: none;
  clip-path: none;
}

@media (prefers-reduced-motion:reduce) {
  .scroll-choreography #company .about-scroll-item {
    translate: none;
  }
}

.motion-paused #company .about-scroll-item,
.motion-reduced #company .about-scroll-item {
  opacity: 1;
  translate: none;
}

/* 等幅の 3 カラム。 */
#company #about-facts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

#company #about-facts .about-card-visual {
  margin-top: auto;
}

@media (max-width:1000px) {
    #company #about-facts {
    grid-template-columns: 1fr;
  }

  #company #about-facts .about-card-visual {
    margin-top: 16px;
  }
}

/* カードのアートワーク: 光をテーマにした 3 つの習作（上昇、視点、新しいつながりの点）。 */
#company #about-facts .about-geometry {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 520/400;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}

.about-geometry img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width:1000px) {
  #company #about-facts .about-geometry {
    aspect-ratio: 520/340;
  }

  #company #about-facts .about-card-visual.about-geometry {
    max-width: 400px;
  }
}

@media (max-width:600px) {
  #company #about-facts .about-geometry {
    border-radius: 10px;
  }
}

/* カードの番号ラベル（"01 Growth"）。日本語の見出しより控えめに。 */
#company #about-facts .about-card-label,
#company #about-facts .about-card-label span {
  line-height: 1.4;
  letter-spacing: .025em;
  color: #6882a5;
}

/* アートワーク自体がグラデーションの光を持っているので、カード側では何も足さない。 */
#company #about-facts .about-geometry::before,
#company #about-facts .about-geometry::after,
#company #about-facts .about-geometry-mesh {
  display: none;
}

/* コンパクトなカード: 控えめな区切り線と、本文に寄せたアートワーク。 */
#company #about-facts .about-fact-card {
  border-radius: 20px;
  background: #fff;
  padding: clamp(20px,1.8vw,32px);
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding-bottom: clamp(14px,1.1vw,20px);
}

#company #about-facts .about-card-label {
  gap: 9px;
  padding-bottom: 9px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dbe4ef;
}

#company #about-facts .about-card-copy > :last-child {
  margin-bottom: 0;
}

#company #about-facts .about-card-copy > small {
  line-height: 1.7;
}

#company #about-facts .about-card-visual.about-geometry {
  flex: none;
  width: 56%;
  aspect-ratio: 4/3;
  margin: 0 auto;
}

/* 各アートワークはカードの下端に寄せる。上の本文の長さがまちまちでも、
   3 枚の位置が揃うようにするため。 */
#company #about-facts .about-fact-card .about-card-visual {
  margin-top: auto;
}

/* スマホ：Philosophy の後ろから About の見出しまでの空き（約 530px）を詰める。上の余白は About の
   導きの光のためのものだったが、スマホでは光を出していない（2026-10-29 実機レビュー）。 */
@media (max-width: 760px) {
  #company {
    padding-top: 40px;
  }

  #company .growth-feature {
    padding-top: 0;
  }

  .hero-journey:not(.is-journey-horizontal) .journey-origin {
    padding-bottom: 48px;
  }
}

/* スマホの About のカード（01 Growth など）：説明を本文 → キャプション（14px）にし、スクロールすると
   次のカードが前のカードに重なっていく形にする（カルチャーのカードと同じ。2026-10-30 実機レビュー）。 */
@media (max-width: 760px) {
  #company .about-card-stack .about-card-copy > p:not(.about-card-label) {
    font-size: var(--t-caption);
    line-height: 1.8;
  }

  #company #about-facts > .about-fact-card {
    position: sticky;
    top: calc(84px + var(--stack, 0) * 14px);
    box-shadow: 0 -12px 32px -14px rgb(10 39 94 / .35);
  }

  #company #about-facts > .about-fact-card:nth-child(2) { --stack: 1; }
  #company #about-facts > .about-fact-card:nth-child(3) { --stack: 2; }
}
