/* business/index.html 専用のスタイル。site.css から切り出したもの（#212）。
   このファイルは business/index.html だけが読み込む。共通で使うものは site.css へ戻すこと。 */

.corp-title--light {
  color: #fff;
}
/* ==========================================================================
   BUSINESS ページ（.biz-*）／ @layer の外・.corp-* / .abt-* と同じ理由
   --------------------------------------------------------------------------
   TOP baseline v1 と ABOUT で確立した語彙（WHITE / LIGHT BLUE / DEEP NAVY の
   3面、Recruit と共通の fine grain、cyan の差し色、セクションラベル、
   DEEP NAVY の角ばったラベル、大きな和文見出し、薄い巨大英字、細い罫線、
   余白、角型 secondary CTA、白塗り pill primary CTA）をそのまま使う。
   HERO は ABOUT と同じ .corp-phero を画像だけ差し替えて再利用しており、
   Business専用のHEROシステムは作っていない。

   ⚠️ .biz-* が担当するのは Business ページ固有の「紙面の型」だけ。
      面・グレイン・見出し・CTA は .corp-* をそのまま使い、ここで色や
      グレイン濃度を再定義しない（Recruit が SOURCE OF TRUTH）。
   ⚠️ ここでの追加が TOP / ABOUT / Recruit へ影響しないよう、セレクタは
      すべて .biz-* 起点にする（共通クラスの定義を書き換えない）。
   ========================================================================== */

/* --- アンカー着地位置 ----------------------------------------------------
   TOP の BUSINESS 3列から /business/#product 等へ飛んでくるため、固定
   ヘッダー（58px）の下に見出しが隠れないよう scroll-margin を確保する。 */
.biz-anchor {
  scroll-margin-top: 5rem;
}
/* 事業ラベル。TOP の .corp-col__num（SERVICE 01）と同じデザイン言語＝
   DEEP NAVY のベタ塗り＋白文字＋字間の効いた英字。角丸は付けない。
   ページ内の3事業が TOP のどの事業に対応するかを、同じ形で示す。 */
.biz-label {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.35rem 0.9rem;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
/* 濃紺面では塗りが沈むので、白の細枠＋白文字へ反転させる（形は同じ） */
.biz-label--light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
/* 語中分断を避けるための nowrap ヘルパ。日本語は原則どこでも折り返せるため、
   大きな見出しでは「ローカルビジ／ネス」のように語の途中で切れることがある。
   束ねるのは8文字程度までに限り（実測 最大222px @27.7px）、最も狭い320pxでも
   本文カラム 280px に収まるので、どの幅でも横スクロールは発生しない。 */
.biz-nb {
  white-space: nowrap;
}
/* --- 01 OVERVIEW：3事業への索引 ------------------------------------------
   ここでは説明を書ききらず、番号・和名・英字・下向き矢印だけの軽い目次に
   留める（詳細は各事業のsectionが持つ）。カードにはしない。 */
.biz-index {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.biz-index__item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
/* hoverで面がごく薄く沈む（TOPの .corp-role と同じ考え方） */
.biz-index__item::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: 0;
  background: rgba(33, 189, 234, 0.07);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.biz-index__item:hover::before,
.biz-index__item:focus-visible::before {
  transform: scaleX(1);
}
.biz-index__item > * {
  position: relative;
  z-index: 1;
}
.biz-index__item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.biz-index__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  font-variant-numeric: tabular-nums;
}
.biz-index__ja {
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
}
.biz-index__en {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-cyan);
}
.biz-index__arrow {
  font-size: 0.95rem;
  color: var(--brand-cyan);
  transition: transform 220ms ease;
}
.biz-index__item:hover .biz-index__arrow,
.biz-index__item:focus-visible .biz-index__arrow {
  transform: translateY(3px);
}

@media (min-width: 900px) {
  /* PCでは3列。縦罫で仕切り、和名と英字を縦に積む */
  .biz-index {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
  }
  .biz-index__item {
    grid-template-columns: 2.5rem 1fr auto;
    padding: 1.6rem 1.75rem;
    border-bottom: 0;
    border-left: 1px solid var(--border);
  }
  .biz-index__item:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .biz-index__item:last-child {
    padding-right: 0;
  }
  .biz-index__item::before {
    inset: 0;
  }
}

/* --- 小型CTA -------------------------------------------------------------
   TOP の「詳しく見る」（.corp-col__more）と同じ言語＝角の立った長方形＋
   1.5px の DEEP NAVY 罫＋右端を細い罫で区切った cyan の矢印。
   タップ領域は 44px を確保する（min-height 2.75rem）。 */
.biz-more {
  align-self: flex-start;
  display: inline-flex;
  /* ⚠️ stretch にしないこと。ラベルは素のテキストノード（匿名フレックス
     アイテム）なので、stretch だと行が上端に寄って文字だけ上にずれる。 */
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.6rem;
  padding-left: 1.05rem;
  border: 1.5px solid var(--brand-deep);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--brand-deep);
  text-decoration: none;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}
.biz-more span {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 1.35rem;
  margin-left: 0.8rem;
  padding: 0 0.6rem;
  border-left: 1px solid rgba(11, 31, 58, 0.14);
  color: var(--brand-cyan);
  font-size: 0.9rem;
  line-height: 1;
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}
.biz-more:hover,
.biz-more:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}
.biz-more:hover span,
.biz-more:focus-visible span {
  border-left-color: rgba(255, 255, 255, 0.45);
  transform: translate(3px, -3px);
}
.biz-more:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .biz-more span,
  .biz-index__arrow {
    transition: none;
  }
}

/* --- 02 PRODUCT：見開き型 ------------------------------------------------
   カードを積まず、画像と本文を左右に振った見開きで1プロダクトずつ読ませる。
   2つ目は左右を反転させ、同じ型の繰り返しに見せない。
   角丸・shadow・枠は付けない（写真そのものを面として置く）。 */
.biz-products {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.biz-product {
  display: grid;
  gap: 1.5rem;
}
.biz-product + .biz-product {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.biz-product__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2400 / 1260;
  object-fit: cover;
  color: transparent;
}
.biz-product__meta {
  margin: 0;
}
/* 製品の種別。採用サイトの .fwd-jobrow__badge と同じ cyan の細枠ラベル */
.biz-product__tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(33, 189, 234, 0.55);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.biz-product__name {
  margin: 0.9rem 0 0;
  font-size: clamp(1.3rem, 1.12rem + 0.75vw, 1.6rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
}
.biz-product__text {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--muted-foreground);
}

@media (min-width: 900px) {
  .biz-product {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
  /* 2つ目は画像を右へ。DOM順は「画像 → 本文」のまま（読み上げ順を変えない） */
  .biz-product--reverse .biz-product__media {
    order: 2;
  }
  .biz-product__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- 開発中のプロダクト --------------------------------------------------
   本編より一段音を落とす。囲みカードにはせず、細い罫と小さなラベルで
   「まだ出ていないもの」であることを静かに示す。 */
.biz-wip {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.biz-wip__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.biz-wip__head > span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}
.biz-wip__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.biz-wip__list {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .biz-wip__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.biz-wip__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--brand-deep);
}
.biz-wip__badge {
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(31, 145, 227, 0.4);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.biz-wip__text {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--muted-foreground);
}
.biz-scene__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: transparent;
  pointer-events: none;
}
.biz-scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(6, 16, 34, 0.92) 0%, rgba(6, 16, 34, 0.84) 45%, rgba(9, 26, 52, 0.66) 100%);
}
/* サイト共通＝Recruit の濃紺面レシピ（--corp-grain-navy / 0.112 / normal）。
   値は .corp-scene--navy.corp-scene--grain::before と同一。 */
.biz-scene__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 72px 72px;
  background-image: var(--corp-grain-navy);
  opacity: 0.112;
}
/* --- 03 CONSULTING：3領域の行 --------------------------------------------
   白いカードを3枚並べず、白の細い罫で仕切った行として積む（採用サイトの
   JOB OPENINGS と同じ考え方）。番号は cyan、見出しは白、本文は白の減光。 */
.biz-rows {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.biz-row {
  display: grid;
  gap: 0.6rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 900px) {
  .biz-row {
    grid-template-columns: 3.5rem 16rem 1fr;
    gap: 0 2.5rem;
    align-items: baseline;
    padding: 2.1rem 0;
  }
}

.biz-row__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  font-variant-numeric: tabular-nums;
}
.biz-row__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
}
.biz-row__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.78);
}
/* --- 04 PARTNER：来店サイクルの段階 --------------------------------------
   「代理店の一覧」ではなく、露出 → 予約 → 再来店 という段階として並べる。
   1本の細い罫の上に cyan の点を置き、順序であることを形で示す。 */
.biz-steps {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.biz-step {
  position: relative;
  padding: 1.9rem 0 1.9rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
/* 段階を示す cyan の点。PCでは上端の罫の上に載る */
.biz-step::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-cyan);
}

@media (min-width: 900px) {
  .biz-steps {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
  }
  .biz-step {
    padding: 2.5rem 2rem 2.5rem 0;
    border-bottom: 0;
    border-left: 1px solid var(--border);
  }
  .biz-step + .biz-step {
    padding-left: 2rem;
  }
  .biz-step:first-child {
    border-left: 0;
  }
  .biz-step:last-child {
    padding-right: 0;
  }
  .biz-step::before {
    top: -4px;
    left: 0;
  }
  .biz-step + .biz-step::before {
    left: 2rem;
  }
}

.biz-step__stage {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.biz-step__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0.9rem 0 0;
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
}
.biz-step__badge {
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(11, 31, 58, 0.22);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}
.biz-step__text {
  margin: 0.8rem 0 0;
  font-size: 0.87rem;
  line-height: 1.95;
  color: var(--muted-foreground);
}
/* --- 05 HOW WE WORK：3事業のつながり -------------------------------------
   ページ内で唯一の図解。1本の細い罫と3つのノードだけで、独立した3事業では
   なくひとつの流れであることを示す。SaaS的な巨大ダイアグラムにはしない。 */
.biz-flow {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 3rem;
}
.biz-flow__node {
  position: relative;
  padding: 1.9rem 0 1.9rem 1.75rem;
  border-top: 1px solid var(--border);
}
.biz-flow__node:first-child {
  border-top: 0;
}
.biz-flow__node:last-child {
  border-bottom: 1px solid var(--border);
}
/* SPでは左端に1本の縦罫を通し、3領域を「ひとまとまり」として括る。
   ⚠️ ノードごとに途切れる線にしないこと。途中で終わる線は順路に見える。 */
.biz-flow {
  border-left: 1px solid var(--border);
  padding-left: 0;
}
.biz-flow__node::before {
  content: "";
  position: absolute;
  top: 2.4rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid var(--brand-cyan);
  background: var(--background);
  transform: translateX(-4px);
}

@media (min-width: 900px) {
  /* PCでは「1本の連続した横罫」にすべてのノードをぶら下げる。
     ノードごとに罫を切ると3つの独立した項目に見えるため、罫は .biz-flow が
     1本だけ持ち、3領域が同じ構造に属していることを形で示す。 */
  .biz-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .biz-flow__node:first-child {
    border-top: 0;
  }
  .biz-flow__node {
    padding: 2.25rem 1.5rem 0 0;
    border-top: 0;
    border-bottom: 0;
  }
  .biz-flow__node:last-child {
    border-bottom: 0;
  }
  .biz-flow__node::before {
    top: -5px;
    left: 0;
    transform: none;
  }
  .biz-flow__node::after {
    display: none;
  }
  /* ノードのあいだは cyan の「＋」でつなぐ。
     ⚠️ 矢印（→）にしないこと。3事業は必ずこの順で提供するわけではなく、
        課題に応じて組み合わせるものなので、順路に見せてはいけない。 */
  .biz-flow__node + .biz-flow__node .biz-flow__en::before {
    content: "＋";
    position: absolute;
    top: -0.15rem;
    left: -1.85rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-cyan);
  }
}

.biz-flow__en {
  position: relative;
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-cyan);
}
.biz-flow__ja {
  margin: 0.6rem 0 0;
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
}
.biz-flow__text {
  margin: 0.8rem 0 0;
  font-size: 0.87rem;
  line-height: 1.95;
  color: var(--muted-foreground);
}
