@charset "UTF-8";
/* =========================================================
   企業情報（会社概要）
   Figma：PC「企業情報_構成案_20261027」1130:3665 ／ SP 1130:3962
   ページの枠・ページ見出し・パンくず・英字見出し・青バーの見出し・NEWSは css/common.css
   動きは js/company.js（ヒーローのパララックス・OUR STORY の暗幕と線）
   ========================================================= */

/* ---------- このページの共通部品 ---------- */
/* 英字のサブ見出し（左右に縦線）：Figma 部品 Section/Subtitle */
.section-subtitle { display: flex; align-items: center; gap: 26px; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 58px; color: var(--brand); text-transform: uppercase; }
.section-subtitle::before, .section-subtitle::after { content: ""; flex: none; width: 1px; height: 34px; background: currentColor; }

/* サブ見出し＋和文の見出し */
.company-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.company-head__title { font-weight: 900; font-size: 25px; line-height: 33px; }
.company-head--on-dark .section-subtitle { color: #fff; }

/* 段落の間は1行ぶん空ける */
.company-intro__text p + p,
.chapter__body p + p,
.message__text p + p { margin-top: 26px; }

/* =========================================================
   会社概要（パンくず → ページ見出し 80 → リード 80）
   ========================================================= */
.company-intro__lead { max-width: var(--content-width-narrow); margin: 80px auto 0; text-align: center; }
.company-intro__catch { font-weight: 900; font-size: 32px; line-height: 44px; }
.company-intro__text { margin-top: 32px; font-size: 16px; line-height: 26px; letter-spacing: .01em; color: var(--text-sub); }

/* 写真：パララックス（写真は枠より上下15%ずつ長く書き出してある。js/company.js がずらす） */
.company-hero { position: relative; overflow: hidden; aspect-ratio: 1440 / 560; }
.company-hero__image { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; max-width: none; object-fit: cover; will-change: transform; }

/* =========================================================
   BUSINESS OVERVIEW（3列×2段）
   ========================================================= */
.business { padding-bottom: 120px; background: var(--surface-gray); }
.business__grid { max-width: var(--content-width); margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.business-card { background: #fff; }
.business-card img { width: 100%; aspect-ratio: 384 / 242; object-fit: cover; }
.business-card__body { padding: 24px; }
.business-card__title { font-weight: 700; font-size: 20px; line-height: 27px; letter-spacing: .01em; }
.business-card__text { margin-top: 8px; font-size: 14px; line-height: 22px; letter-spacing: .01em; color: var(--text-sub); }

/* =========================================================
   OUR STORY
   背景写真はセクションの入り口から終わりまで画面に固定（TOPの「SUBARUをより深く」と同じ。仕組みは common.css の「固定背景」）
   ========================================================= */
.story { padding: 120px 0; background: var(--dark); color: #fff; }
/* 文字を読みやすくする暗幕（スクロールに合わせて濃くなる → js/company.js） */
.story__shade { opacity: .55; }
.story__inner { position: relative; }
.story__title { font-weight: 900; font-size: 32px; line-height: 44px; }

/* ---------- タイムライン：中央の線を境に左右交互。列は半分ずつ、線から64離す。章の間160 ---------- */
/* --dot-y・--line-tail は js/company.js も読み取って使う */
.timeline { --dot-y: 17px; --line-tail: 80px; position: relative; margin-top: 320px; display: flex; flex-direction: column; gap: 160px; }
/* 中央の縦線：1つ目の●（年号の高さの中央＝--dot-y）から、セクションの下余白に --line-tail 入ったところまで。下端360pxはグラデーションで消える */
.timeline::before {
  content: ""; position: absolute; left: 50%; top: var(--dot-y); bottom: calc(var(--line-tail) * -1); width: 1px; margin-left: -.5px;
  background: linear-gradient(to bottom, #fff 0, #fff calc(100% - 360px), rgba(255,255,255,0) 100%);
}
/* 動きあり：線はスクロールに合わせて上から伸びる（--line-length＝伸びた長さ。js/company.js が更新） */
.timeline.is-animated::before { clip-path: inset(0 0 max(0px, calc(100% - var(--line-length, 0px))) 0); }

.chapter { --gap-from-line: 64px; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
/* 年号の高さの中央に● */
.chapter::before { content: ""; position: absolute; left: 50%; top: calc(var(--dot-y) - 4px); width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; }
/* 動きあり：線が届いたら●がポンと現れる */
.timeline.is-animated .chapter::before { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.8,.5,1); }
.timeline.is-animated .chapter.is-reached::before { transform: scale(1); }

/* 年号＋写真の列と、小見出し＋本文の列。--left は年号が線の左、--right は線の右 */
.chapter--left  { grid-template-areas: "year text"; }
.chapter--right { grid-template-areas: "text year"; }
.chapter__year-block { grid-area: year; display: flex; flex-direction: column; gap: 40px; }
.chapter__text { grid-area: text; display: flex; flex-direction: column; gap: 24px; }
/* 線の左側の列は右寄せ、右側の列は左寄せ（線から --gap-from-line 離す） */
.chapter--left .chapter__year-block, .chapter--right .chapter__text { padding-right: var(--gap-from-line); align-items: flex-end; }
.chapter--left .chapter__text, .chapter--right .chapter__year-block { padding-left: var(--gap-from-line); align-items: flex-start; }
.chapter__text > * { width: min(507px, 100%); }

.chapter__year { font-family: var(--font-display); font-weight: 800; font-size: 50px; line-height: 34px; white-space: nowrap; }
.chapter__title { font-weight: 900; font-size: 28px; line-height: 40px; }
.chapter__body { font-size: 16px; line-height: 26px; letter-spacing: .01em; }
/* 写真は外側の画面端まで裁ち落とし（2026年だけ小さめ） */
/* スマホ用の写真に差し替えるための <picture> は、並びの計算に入れない（中の写真をそのまま並べる） */
.chapter picture { display: contents; }
.chapter__photo { width: 100%; }
.chapter__photo--small { max-width: 499px; }
.chapter__photos { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chapter__photos img { width: 100%; aspect-ratio: 320 / 195; object-fit: cover; }

/* =========================================================
   沿革／代表メッセージ／会社情報／拠点（幅1000）
   ========================================================= */
.company-block__inner { max-width: var(--content-width-narrow); margin: 0 auto; }
.company-block--bases { padding-top: 80px; } /* 会社情報との間は80（2026-10-27 調整） */

/* 表（Figma 部品 Table/Row）：上端に黒の線、行ごとに薄い線 */
.data-table { margin-top: 24px; border-top: 1px solid var(--text); }
.data-table__row { display: flex; padding: 24px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 22px; letter-spacing: .01em; }
.data-table__label { flex: none; width: 146px; color: var(--text-muted); }
.data-table__label--date { font-family: var(--font-latin); font-weight: 700; font-size: 15px; letter-spacing: .05em; color: var(--text); }
.data-table dd { flex: 1; }

/* 代表メッセージ：見出し → キャッチ 24 → 本文 16。本文546＋間40＋写真414 */
.message__catch { margin-top: 24px; font-family: var(--font-latin); font-weight: 700; font-size: 22px; line-height: 30px; letter-spacing: .01em; }
.message { margin-top: 16px; display: flex; align-items: flex-start; gap: 40px; }
.message__text { flex: 1; font-size: 16px; line-height: 26px; letter-spacing: .01em; color: var(--text-sub); }
.message__photo { flex: none; width: 414px; }
.message__photo img { width: 100%; aspect-ratio: 414 / 437; object-fit: cover; }
.message__photo figcaption { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
.message__role { font-size: 13px; line-height: 18px; letter-spacing: .01em; }
.message__name { font-size: 15px; line-height: 22px; letter-spacing: .1em; }

/* 拠点 */
.bases { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.base img { width: 100%; aspect-ratio: 480 / 266; object-fit: cover; }
.base__name { margin-top: 12px; font-weight: 700; font-size: 20px; line-height: 27px; letter-spacing: .01em; }
.base__info { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 18px; letter-spacing: .01em; }
.base__info div { display: flex; }
.base__info dt { flex: none; width: 80px; color: var(--text-sub); }

/* =========================================================
   タブレット・小さめのPC（1100px以下）
   ========================================================= */
@media (max-width: 1100px) {
  .business__grid { grid-template-columns: repeat(2, 1fr); }
  .chapter { --gap-from-line: 40px; }
  .chapter__year { font-size: 40px; }
}

/* =========================================================
   スマホ（767px以下）：SPの文字ルール（2026-10-21確定）に合わせる
   ========================================================= */
@media (max-width: 767px) {
  .company-intro__text p + p, .chapter__body p + p, .message__text p + p { margin-top: 22px; }

  /* 会社概要：パンくず → 見出し 40 → リード 40 */
  .company-intro__lead { margin-top: 40px; }
  .company-intro__catch { font-size: 24px; line-height: 34px; }
  .company-intro__text { margin-top: 24px; font-size: 14px; line-height: 22px; text-align: left; }
  .company-intro__text br { display: none; } /* 行末の改行は外して自然に折り返す（段落の区切りは残る） */
  .company-hero { aspect-ratio: 375 / 342; }

  .section-subtitle { gap: 16px; } /* 文字はPCと同じ 25/58（Figma SP版） */
  .section-subtitle::before, .section-subtitle::after { height: 24px; }
  .company-head__title { font-size: 24px; line-height: 34px; }

  /* 事業：1列 */
  .business { padding-bottom: 64px; }
  .business__grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .business-card img { aspect-ratio: 335 / 211; }
  .business-card__body { padding: 20px; }
  .business-card__title { font-weight: 900; } /* Figma SP版は Black（PCは Bold） */

  /* OUR STORY：年号 → 写真 → 小見出し → 本文 の縦1列（PCと同じ順。線と●はなし。Figma SP 1130-3962） */
  .story { padding: 64px 20px; }
  .story__title { font-size: 24px; line-height: 34px; }
  .timeline { margin-top: 48px; gap: 64px; }
  .timeline::before, .chapter::before { display: none; }
  .chapter { --gap-from-line: 0; display: flex; flex-direction: column; gap: 24px; }
  /* 年号＋写真の列と、小見出し＋本文の列を、左右交互をやめて縦に並べる */
  .chapter__year-block { display: contents; }
  .chapter--left .chapter__text, .chapter--right .chapter__text { align-items: stretch; }
  .chapter__year { order: 1; font-size: 32px; line-height: 32px; }
  /* 写真は画面の端まで（左右の余白20を打ち消す） */
  .chapter__photo, .chapter__photos { order: 2; width: calc(100% + 40px); max-width: none; margin: 0 -20px; }
  .chapter__text { order: 3; gap: 16px; }
  .chapter__text > * { width: auto; }
  .chapter__photos { gap: 8px; }
  .chapter__title { font-size: 20px; line-height: 27px; letter-spacing: .01em; }
  .chapter__body { font-size: 14px; line-height: 22px; }

  /* 表：項目名の下に内容（Table/Row の Size=SP） */
  .data-table__row { flex-direction: column; gap: 4px; padding: 16px 0; }
  .data-table__label { width: auto; }

  /* 代表メッセージ：本文 → 写真 の縦積み */
  .message__catch { font-family: var(--font-body); font-weight: 900; font-size: 20px; line-height: 27px; } /* Figma SP版はPCと違い和文の太字（Black 20/27） */
  .message { flex-direction: column; gap: 32px; }
  .message__text { font-size: 14px; line-height: 22px; }
  .message__photo { width: 100%; }

  /* 拠点：1列（名称＝見出し／小、情報＝本文／S） */
  .company-block--bases { padding-top: 48px; }
  .bases { grid-template-columns: 1fr; }
  .base img { aspect-ratio: 335 / 186; }
  .base__name { font-size: 16px; line-height: 20px; }
}
