  /* INTRO 共通スタイルは common.css に移動済み */

  /* ==================================================
     PAGE HERO BACKGROUND — BUSINESS（写真背景に上書き）
     ================================================== */
  /* body の page-business クラスは header.php が $page_key から自動付与。
     /business/ と /business/{id}/ の両方に適用される。
     画像は assets/img/business/hero.webp（未配置のときは下のグラデのみ表示）。
     白文字「事業紹介」を読みやすくするため上→下に暗くなるグラデを重ねる。 */
  .page-business .page-hero-bg {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%),
      url('/assets/img/business/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* ==================================================
     BUSINESS SECTION (per-business detail)
     ================================================== */
  .business-section {
    padding: 160px 0 220px;
    background: #fff;
    position: relative;
    scroll-margin-top: 80px;
  }
  .business-section.dark {
    background: var(--ink);
    color: #fff;
  }
  .business-section + .business-section { padding-top: 160px; }
  .business-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 60px;
  }

  /* Hero image of each business */
  .business-hero-img {
    aspect-ratio: 16 / 7;
    background: var(--fill-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--note);
    font-size: 11px;
    letter-spacing: 0.05em;
    border-radius: 6px;
    margin-bottom: 80px;
    overflow: hidden;
  }
  .business-section.dark .business-hero-img {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .business-hero-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ==================================================
     BUSINESS TAGLINE — 事業名の下に左寄せで配置
     ================================================== */
  .business-tagline {
    margin-top: 12px;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--ink);
    font-weight: 400;
  }
  .business-section.dark .business-tagline {
    color: rgba(255,255,255,0.85);
  }
  @media (max-width: 768px) {
    .business-tagline {
      font-size: 13px;
      letter-spacing: 0.05em;
    }
  }

  /* Business header (number + title + tagline + desc + CTA を縦積み) */
  .business-head {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 72px;
    margin-bottom: 96px;
    border-bottom: 1px solid var(--line-soft);
  }
  .business-section.dark .business-head {
    border-bottom-color: rgba(255,255,255,0.18);
  }
  .business-head-left { }
  .business-en {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--note);
    margin-bottom: 24px;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', sans-serif;
    display: inline-block;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .business-section.dark .business-en {
    color: rgba(255,255,255,0.55);
    border-bottom-color: rgba(255,255,255,0.18);
  }
  .business-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
  }
  .business-head-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .business-desc {
    font-size: 14px;
    line-height: 2.0;
    color: #444444;
  }
  .business-section.dark .business-desc {
    color: rgba(255,255,255,0.78);
  }
  .business-cta {
    align-self: flex-start;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #444444;
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
  }
  .business-section.dark .business-cta { color: #fff; }
  .business-cta::after { content: ' →'; }
  .business-cta::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .business-cta:hover::before { width: 100%; }

  /* Subsection label inside business sections */
  .business-sub-label {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
  }
  .business-sub-label-en {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--note);
    text-transform: uppercase;
    font-family: 'Helvetica Neue', sans-serif;
  }
  .business-section.dark .business-sub-label-en {
    color: rgba(255,255,255,0.5);
  }
  .business-sub-label-ja {
    font-size: 14px;
    letter-spacing: 0.05em;
    color: #444444;
  }
  .business-section.dark .business-sub-label-ja {
    color: rgba(255,255,255,0.85);
  }
  .business-sub-label-count {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--note);
  }
  .business-section.dark .business-sub-label-count {
    color: rgba(255,255,255,0.5);
  }
  /* SP: EN ラベルを 1 行目に単独で、JA ラベルとカウントを 2 行目で同じ縦位置に並べる
     例:
       — Group Companies
       所属企業                       7 COMPANIES
  */
  @media (max-width: 768px) {
    .business-sub-label {
      flex-wrap: wrap;
      row-gap: 6px;
    }
    .business-sub-label-en {
      flex-basis: 100%;
    }
  }

  .business-companies {
    margin-bottom: 112px;
  }
  .business-brands {
    margin-bottom: 96px;
  }

  /* Companies grid (light bg) */
  .companies-grid-light {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .company-card-light {
    background: #fff;
    border: 1px solid var(--line-soft);
    padding: 28px 22px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s;
    border-radius: 6px;
  }
  .company-card-light:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
  }
  .company-logo-light {
    height: 72px;
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--note);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    border-radius: 3px;
    overflow: hidden;
  }
  .company-logo-light.has-image {
    border: 1px solid var(--line-soft);
    background: #fff;
    padding: 10px;
  }
  .company-logo-light > img,
  .company-logo-light > svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .company-name-light {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: #444444;
  }
  .company-summary-light {
    font-size: 10px;
    color: var(--note);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
  }
  .company-tag-light {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
  }

  /* Companies grid (dark bg) — top.html と同等 */
  .companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .company-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 28px 22px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
  }
  .company-card:hover {
    background: rgba(255,255,255,0.08);
  }
  .company-logo {
    height: 72px;
    border: none;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    border-radius: 3px;
  }
  .company-name {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }
  .company-summary {
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
  }

  /* ==================================================
     COMPANY CARD — フッター（事業タグ + 公式サイト 外部リンク）
     ================================================== */
  .company-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .company-foot > .company-tag,
  .company-foot > .company-tag-light {
    flex: 0 0 auto;
    border-top: none;
    padding-top: 0;
  }

  /* カード全体クリックで /companies/{id}/ へ遷移するための覆い <a>。
     z-index: 1 でカード上に重ね、内部の「公式サイト」リンクは z-index:2 で
     クリック可能性を維持する。 */
  .company-card,
  .company-card-light {
    position: relative;
  }
  .company-card-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-indent: -9999px;
    overflow: hidden;
  }
  .company-card-cover:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .company-card-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: none;
    transition: gap 0.25s;
    white-space: nowrap;
  }
  /* ロゴ未登録時の英語社名フォールバック */
  .company-logo-fallback {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.4;
    color: var(--ink);
    font-family: 'Helvetica Neue', sans-serif;
    padding: 0 8px;
    word-break: break-word;
  }
  .company-logo .company-logo-fallback {
    color: rgba(255,255,255,0.85);
  }
  .company-card-link.is-dark {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.4);
  }
  .company-card-link:hover { gap: 10px; text-decoration: none; }
  .company-card-link-icon {
    width: 11px;
    height: 11px;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    /* SVG は元から黒。本文色（#1a1a1a）と概ね同色なのでフィルタ不要 */
  }
  .company-card-link.is-dark .company-card-link-icon {
    /* ダーク背景上では白に変換 */
    filter: invert(100%) brightness(2);
  }
  .company-card-link:hover .company-card-link-icon {
    transform: translateY(-2px) translateX(2px);
  }

  .company-tag {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
  }
  .company-tag.lifestyle,
  .company-tag.entertainment,
  .company-tag.sustainable { color: #fff; }

  /* Brands grid */
  .brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .brand-cell {
    border: 1px solid var(--line-soft);
    background: #fff;
    aspect-ratio: 3 / 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #444444;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.25s;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
  }
  .brand-cell:hover {
    border-color: var(--line-soft);
    color: #444444;
    transform: translateY(-2px);
  }
  .brand-cell-name {
    font-size: 13px;
    letter-spacing: 0.05em;
  }
  .brand-cell-cat {
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--note);
  }
  /* dark variant for brands */
  .business-section.dark .brand-cell {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
  }
  .business-section.dark .brand-cell:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
  }
  .business-section.dark .brand-cell-cat {
    color: rgba(255,255,255,0.55);
  }

  /* ============================================================
     モバイル対応（追加: 2026-05-01）
     C3 companies-grid / brand-grid が 4-5列で固定されモバイルで潰れる問題への対応
     page CSS が common を上書きするため、ここで明示的に縦化する。
     ============================================================ */

  /* タブレット（〜1024px）: 4列→2列、5列→3列、各種余白縮小 */
  @media (max-width: 1024px) {
    .business-section { padding: 80px 0 100px; }
    .business-section + .business-section { padding-top: 80px; }
    .business-inner { padding: 0 28px; }
    .business-head { gap: 24px; padding-bottom: 40px; margin-bottom: 56px; }
    .business-title { font-size: 28px; }
    .companies-grid-light,
    .companies-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  }

  /* モバイル（〜600px）: グループ会社カードを1列、ブランドセルを2列に */
  @media (max-width: 600px) {
    .business-section { padding: 64px 0 80px; }
    .business-section + .business-section { padding-top: 64px; }
    .business-title { font-size: 24px; line-height: 1.45; }
    .business-desc { font-size: 13.5px; line-height: 1.95; }
    .companies-grid-light,
    .companies-grid { grid-template-columns: 1fr; }
    .company-card-light,
    .company-card { min-height: 0; padding: 18px 16px; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .brand-cell { padding: 14px 10px; }
  }
