@charset "UTF-8";
/* =============================================================
   事業内容ページ専用スタイル（page-business.php）
   デザイン: untracked/business.png
   ※ 色トークン（--color-*）・.feature / .btn / .section__en|__title は main.css を流用。
   ※ 「下層hero」「パンくず」は page-company.css と共通仕様（暫定で各ページに複製。
      将来は共通CSSへ切り出し予定）。
   ============================================================= */

/* 下層hero（.page-hero）／パンくずは共通のため main.css に定義 */
/* ---- 共通見出し（英字＋日本語・左寄せ） -------------------- */
.biz-head {
  margin-bottom: 40px;
}

/* ---- Science of Flow（事業概要：画像左／本文右） ---------- */
.biz-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.biz-about__media img {
  width: 100%;
  border-radius: 6px;
}
.biz-about__lead {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
}
.biz-about__text {
  margin-top: 18px;
  color: #212121;
  /* 本文 - 16px */
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 187.5% */
}

/* ---- Strengths（できること） ------------------------------ */
.biz-strength {
  background: #fff;
  /* パネルのフルブリード(100vw)が縦スクロールバー幅ぶん画面外へはみ出し、
     ページ全体に横スクロールが出るのを防ぐ（はみ出しをこの中で見切る） */
  overflow-x: clip;
}
.biz-strength__item + .biz-strength__item {
  margin-top: 72px;
}
/* 左カラム（head＋本文）。画像と横並び */
.biz-strength__body {
  min-width: 0;
}
.biz-strength__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
/* 丸囲み数字（白地・青枠） */
.biz-strength__num {
  flex: none;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  padding-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.biz-strength__title {
  color: var(--color-heading-en);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}
/* 本文＋画像の薄青パネル：
   背景は画面幅いっぱい（フルブリード）。親(.container)の max-width を打ち消し、
   中身はコンテナ幅に整列（左右パディングで中央寄せ）。 */
.biz-strength__panel {
  display: grid;
  grid-template-columns: 1fr 622px;
  gap: 40px;
  align-items: center;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  /* 左右: 1400px(var(--container))中央寄せ ＋ 内側パディング24px
     （狭幅では最低 --gutter を確保） */
  padding: 0 calc(max(var(--gutter), (100vw - var(--container)) / 2) + 24px)
    30px;
  background: linear-gradient(
    180deg,
    #fff 22.65%,
    #edf2f9 19.66%,
    #edf2f9 109.39%,
    #fff 109.4%
  );
}
.biz-strength__text {
  color: #212121;
  /* 本文 - 16px */
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 187.5% */
  padding-left: 36px;
}
/* 段落を分けた時の小さめ余白（最終段落は余白なし） */
.biz-strength__text p {
  margin-bottom: 0.8em;
}
.biz-strength__text p:last-child {
  margin-bottom: 0;
}
.biz-strength__media img {
  width: 100%;
  border-radius: 6px;
}
.biz-strength__cta {
  margin-top: 32px;
  padding-left: 36px;
}

/* ---- 受注製品 製作フロー（アイコン＋吹き出し） ------------- */
.biz-flow {
  margin-top: 48px;
}
.biz-flow__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.biz-flow__title::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}
.biz-flow__list {
  position: relative;
}
.biz-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 250px 1fr;
  column-gap: 28px;
  align-items: center;
  padding-bottom: 36px;
}
.biz-flow__step:last-child {
  padding-bottom: 0;
}
/* マーカー中心同士をつなぐ縦ライン（各行に敷き、円の背面で連続させる） */
.biz-flow__step::before {
  content: "";
  position: absolute;
  left: 53px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #0050a3;
}
.biz-flow__step:first-child::before {
  top: 50%;
}
.biz-flow__step:last-child::before {
  bottom: 50%;
}
/* アイコン円（SVG画像が円・リング・塗りを内包） */
.biz-flow__marker {
  position: relative;
  z-index: 1;
  width: 115px;
  height: 115px;
  padding: 5px 0;
  background: #fff;
}
.biz-flow__marker img {
  width: 100%;
  height: 100%;
  display: block;
}
/* STEPラベル＋名称 */
.biz-flow__head {
  padding: 0;
}
.biz-flow__label {
  display: block;
  font-family: var(--font-en);
  color: #0090a4;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px; /* 160% */
  letter-spacing: 1px;
}
.biz-flow__name {
  display: block;
  font-size: 26px;
  font-weight: 500;
  color: var(--color-heading);
  margin-top: 4px;
}
.biz-flow__name small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}
/* 説明の吹き出し（左三角つき） */
.biz-flow__bubble {
  position: relative;
  background: #f3f5f8;
  border-radius: 10px;
  padding: 18px 26px;
}
.biz-flow__bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 9px 10px 9px 0;
  border-color: transparent #f3f5f8 transparent transparent;
}
.biz-flow__bubble p {
  color: #212121;
  /* 本文 - 16px */
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 187.5% */
  margin: 0;
}

/* ---- Company Movie ---------------------------------------- */
.biz-movie__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.biz-movie__text {
  margin-top: 18px;
  color: #212121;
  /* 本文 - 16px */
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 187.5% */
}
/* YouTube 埋め込み枠（16:9 レスポンシブ） */
.biz-movie__thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #d7e3ef;
}
.biz-movie__thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Equipment（保有設備） -------------------------------- */
.biz-equip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
/* 画像＋テキストを1枚の白カード（枠線・角丸）で囲む（Frame 166 準拠） */
.biz-equip-card {
  background: #fff;
  border: 2px solid #dfecff;
  border-radius: 8px;
  overflow: hidden; /* 上部画像の角をカードの角丸でクリップ */
  padding: 0;
}
.biz-equip-card__media {
  overflow: hidden;
  background: #eef2f6;
  aspect-ratio: 4 / 3;
}
.biz-equip-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biz-equip-card__name {
  margin-top: 0;
  padding: 10px 12px;
  text-align: center;
  background: #dfecff;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 31px; /* 172.222% */
}
.biz-equip-card__spec {
  /* margin-top: 6px; */
  padding: 8px 0;
  text-align: center;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 31px; /* 172.222% */
}
.biz-equipment__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 18px;
}
.biz-equipment__sub::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}
.biz-equip-table {
  width: 100%;
  /* border-radius を効かせるため collapse ではなく separate を使用。
     外枠＋角丸＋overflow:hidden で角を丸め、内側の罫線はセルの右・下ボーダーで描く */
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d6e4f2;
  border-radius: 8px;
  overflow: hidden;
  font-size: 16px;
}
.biz-equip-table th,
.biz-equip-table td {
  border-right: 1px solid #d6e4f2;
  border-bottom: 1px solid #d6e4f2;
  text-align: left;
  vertical-align: middle;
  padding: 18px 20px;
  line-height: 1.7;
}
/* 最終列・最終行はセルの罫線を省いて外枠との二重線を防ぐ */
.biz-equip-table th:last-child,
.biz-equip-table td:last-child {
  border-right: 0;
}
.biz-equip-table tr:last-child th,
.biz-equip-table tr:last-child td {
  border-bottom: 0;
}
.biz-equip-table th {
  width: 240px;
  background: #dfecff;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px; /* 110.526% */
}
.biz-equip-table th small {
  display: block;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
  /* 全角括弧（）の左右に出るアキを詰める（プロポーショナル約物詰め） */
  font-feature-settings: "palt";
}
.biz-equip-table td {
  background: #f4f8ff;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}

/* =============================================================
   レスポンシブ
   ============================================================= */
/* タブレット：画像＋テキストの横並びを縦並びに切り替え */
@media (max-width: 1100px) {
  /* 事業概要：front-page の About と同方式で「タイトル → 画像 → テキスト」に並べ替え。
     body を display:contents で展開し、order で順序を制御する */
  .biz-about__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .biz-about__body {
    display: contents;
  }
  .biz-about__inner .section__en {
    order: 1;
  }
  .biz-about__inner .section__title {
    order: 2;
  }
  /* リード文はタイトル直下のまま */
  .biz-about__lead {
    order: 3;
  }
  .biz-about__media {
    order: 4;
    margin-top: 22px;
    /* 画像は気持ち小さめ＋中央寄せ */
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
  .biz-about__text {
    order: 5;
    margin-top: 22px;
  }

  /* 動画：縦並び */
  .biz-movie__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* 強み：本文＋画像を縦積み。デスクトップの本文インデントは解除 */
  .biz-strength__panel {
    grid-template-columns: 1fr;
    gap: 24px;
    background: linear-gradient(
      180deg,
      #fff 10.65%,
      #edf2f9 1.66%,
      #edf2f9 109.39%,
      #fff 109.4%
    );
  }
  .biz-strength__text,
  .biz-strength__cta {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  /* フロー：STEP名と吹き出しを縦積み（アイコン列は残す）。
     マーカーを 64px に縮小し、縦線(.biz-flow__step::before)を中心へ合わせる */
  .biz-flow__step {
    grid-template-columns: 49px 1fr;
    column-gap: 20px;
    row-gap: 2px;
  }
  .biz-flow__marker {
    width: 68px;
    height: 68px;
  }
  .biz-flow__step::before {
    left: 29.5px; /* マーカー中心 32px − 線幅の半分 2.5px */
    top: 5%;
  }
  /* ベースの :first-child{top:50%} に詳細度で勝つため明示的に上書き */
  .biz-flow__step:first-child::before {
    top: 5%;
  }
  .biz-flow__step:last-child::before {
    display: none;
  }
  .biz-flow__label {
    font-size: 18px;
    line-height: 18px;
  }
  .biz-flow__name {
    font-size: 22px;
    line-height: 22px;
  }
  /* 吹き出しは2列目（マーカーの右）に置き、縦線が背面で隠れないようにする */
  .biz-flow__bubble {
    grid-column: 2 / -1;
  }
  .biz-flow__bubble::before {
    display: none;
  }
  .biz-equip-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .biz-equip-table th {
    width: 180px;
  }
}

@media (max-width: 600px) {
  .biz-equip-cards {
    grid-template-columns: 1fr;
  }
  .biz-strength__head {
    gap: 12px;
  }
  .biz-strength__num {
    width: 60px;
    height: 60px;
    font-size: 27px;
  }
  /* 製作フロー：マーカーをさらに縮小し、縦線も追従 */
  .biz-flow__step {
    grid-template-columns: 60px 1fr;
    column-gap: 15px;
  }
  .biz-flow__marker {
    width: 68px;
    height: 68px;
  }
  .biz-flow__step::before {
    left: 31.5px;
  }
  .biz-flow__label {
    font-size: 16px;
    line-height: 0.3;
  }
  .biz-flow__name {
    font-size: 19px;
    display: flex;
  }
  .biz-flow__bubble {
    padding: 14px 18px;
  }
  /* スマホ：吹き出しの三角を上向きにし、本文1文字目の上に配置 */
  .biz-flow__bubble::before {
    display: block;
    left: 12px;
    top: -8px;
    transform: none;
    border-width: 0 9px 10px 9px;
    border-color: transparent transparent #f3f5f8 transparent;
  }
  /* 表は縦積み：各行を角丸カードとして分離し、行間に余白をつける（読みやすさ向上） */
  .biz-equip-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .biz-equip-table tbody {
    display: block;
  }
  .biz-equip-table tr {
    display: block;
    border: 1px solid #d6e4f2;
    border-radius: 8px;
    overflow: hidden;
  }
  .biz-equip-table tr + tr {
    margin-top: 16px;
  }
  .biz-equip-table th,
  .biz-equip-table td {
    display: block;
    width: 100%;
    border: 0;
  }
}
