/* ==========================================================================
   スター精機 コーポレートサイト / グループ会社ページ

   ★貼る場所に注意
     「外観 > カスタマイズ > 追加CSS」の
     いま入っているものは消さずに、その一番下に足してください。

     順番は star-top → star-company → star-products → star-network
            → star-history → star-sustainability → star-group（これ）

     ページのタイトル・パンくずは star-company.css のものをそのまま使います。
     （HTMLの一番外側に class="st-cmp st-grp" と書いてあるため）
   ========================================================================== */


/* 写真の指定は star-images.css にまとめています（2026-10-02）。写真台帳.md も参照 */

/* タイトルの大きな英字を GROUP に差し替え（大きさ・位置は star-company.css の共通の指定。2026-10-14 から ::before の1か所だけ） */
body:has(.st-grp) .page-header > *:first-child::before{
  content: "GROUP";
}


/* ---- Lightningが見出しに付ける装飾を打ち消す ------------------------------
   h2 にグレーの背景や下線を付けてくるため、先に消しておきます */
.st-grp h2{
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none !important;
  font-family: inherit;
}
.st-grp h2::before, .st-grp h2::after{ content: none !important; }

/* WordPressが差し込む余計な要素でレイアウトが崩れないように */
.st-grp .grp-grid > :not(.grp-card){ display: none !important; }


/* ---- 導入 ----------------------------------------------------------------
   グループ共通のシンボルマークを中央に置き、その下に理念の一文。
   ここだけ中央ぞろえにして、下の一覧と役割を分けています
   -------------------------------------------------------------------------- */
.st-grp .grp-intro{
  padding: 72px 0 0;
  text-align: center;
}
.st-grp .grp-intro__mark{
  width: clamp(120px, 14vw, 168px);
  height: auto;
  margin: 0 auto 28px;
}
/* 2026-10-16（v1.11.1）：太字（700）・大きめ（最大 19px）だと、ほかのページの導入文と違って見えた（わただ）。
   サステナビリティなどの導入文（16px・500・#2b2b2b）にそろえた */
.st-grp .grp-intro__lead{
  font-size: 16px;
  line-height: 2.1;
  font-weight: 500;
  color: #2b2b2b;
  max-width: 34em;
  margin: 0 auto;
}
/* 英文（.grp-intro__en）はいまHTML側に置いていません。
   日本語ページで文章としての英語を使うのはここだけになってしまうため。
   英語版サイトは別に用意する方針です。
   もし出したくなったときのために、指定だけ残してあります */
.st-grp .grp-intro__en{
  font-size: 12px;
  line-height: 1.9;
  font-weight: 600;
  letter-spacing: .02em;
  color: #9a9a9a;
  max-width: 44em;
  margin: 16px auto 0;
}


/* ---- 各社の一覧 -----------------------------------------------------------
   2列。ロゴの大きさがバラバラでも高さがそろうよう、
   ロゴの置き場所の高さを固定して、その中で上下中央に置いています
   -------------------------------------------------------------------------- */
.st-grp .grp-list{ padding: 64px 0 0; }

.st-grp .grp-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.st-grp .grp-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 36px 34px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .22s ease;
}
.st-grp .grp-card:hover{ border-color: #c8c8c8; }

/* ロゴ。会社ごとに縦横の比率が違うので、
   高さ64pxの箱を用意して、その中に収める形にしています。
   大きさを変えたいときは、この 64px と max-height を一緒に動かしてください */
.st-grp .grp-card__logo{
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 22px;
}
.st-grp .grp-card__logo img{
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 64px;
  object-fit: contain;
}

.st-grp .grp-card__name{
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}
.st-grp .grp-card__en{
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #9a9a9a;
  margin-top: 3px;
}
.st-grp .grp-card__txt{
  font-size: 14.5px;
  line-height: 1.95;
  font-weight: 500;
  color: #2b2b2b;
  /* 文章の長さが違っても、ボタンの位置が下でそろうようにしています */
  flex: 1 0 auto;
  margin-bottom: 22px;
}
.st-grp .grp-card__btn{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 200px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: background .22s ease, color .22s ease;
}
/* 乗せたとき：黒の塗りつぶしは強いので、薄いグレーの面に。矢印が少し右へ（2026-10-14） */
.st-grp .grp-card__btn:hover{ background: #f1f2f3; }
.st-grp .grp-card__btn .ar{ transition: transform .22s ease; }
.st-grp .grp-card__btn:hover .ar{ transform: translateX(4px); }
.st-grp .grp-card__btn .ar{ color: var(--red); font-size: 15px; }


/* ---- 下部の導線 -----------------------------------------------------------
   他の下層ページと同じ、画面いっぱいの薄い帯です */
.st-grp .grp-links{
  --st-wrap: 1180px;
  background: #f6f7f7;
  margin-top: 90px;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 54px max(24px, calc((100vw - var(--st-wrap)) / 2)) 58px;
}
.st-grp .grp-links__inner{
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  /* 2026-10-14：左右に分けず、文とボタンの組ごと中央に */
  justify-content: center;
  gap: 24px 56px;
  flex-wrap: wrap;
}
.st-grp .grp-links__lead{
  font-size: 15px;
  line-height: 2;
  font-weight: 600;
  color: var(--ink);
}
.st-grp .grp-links__btn{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 250px;
  padding: 17px 24px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  flex: none;
  transition: background .22s ease, color .22s ease;
}
/* 乗せたとき：黒の塗りつぶしは強いので、薄いグレーの面に。矢印が少し右へ（2026-10-14） */
.st-grp .grp-links__btn:hover{ background: #f1f2f3; }
.st-grp .grp-links__btn .ar{ transition: transform .22s ease; }
.st-grp .grp-links__btn:hover .ar{ transform: translateX(4px); }
.st-grp .grp-links__btn .ar{ color: var(--red); font-size: 16px; }


/* ---- タブレット ----------------------------------------------------------- */
@media (max-width: 900px){
  .st-grp .grp-grid{ gap: 24px; }
  .st-grp .grp-card{ padding: 28px 26px 26px; }
  .st-grp .grp-card__logo img{ max-width: 200px; }
}

/* ---- スマホ --------------------------------------------------------------- */
@media (max-width: 620px){
  .st-grp .grp-intro{ padding: 40px 0 0; }
  .st-grp .grp-intro__lead{ font-size: 15px; line-height: 2; }
  /* せまい画面では、手で入れた改行は使わず自然に折り返します */
  .st-grp .grp-intro__lead br{ display: none; }
  .st-grp .grp-intro__en{ font-size: 11px; text-align: left; }

  .st-grp .grp-list{ padding: 40px 0 0; }
  /* カードは1列に */
  .st-grp .grp-grid{ grid-template-columns: 1fr; gap: 18px; }
  .st-grp .grp-card{ padding: 26px 22px 24px; }
  .st-grp .grp-card__logo{ height: 52px; margin-bottom: 18px; }
  .st-grp .grp-card__logo img{ max-height: 52px; max-width: 180px; }
  .st-grp .grp-card__name{ font-size: 16px; }
  .st-grp .grp-card__txt{ font-size: 14px; }
  .st-grp .grp-card__btn{ width: 100%; }

  .st-grp .grp-links{
    margin-top: 56px;
    padding: 40px max(16px, calc((100vw - var(--st-wrap)) / 2)) 44px;
  }
  .st-grp .grp-links__inner{ flex-direction: column; align-items: stretch; gap: 22px; }
  .st-grp .grp-links__lead{ text-align: center; }
  .st-grp .grp-links__btn{ width: 100%; }
}
