/* ==========================================================================
   スター精機 コーポレートサイト / サステナビリティページ

   ★貼る場所に注意
     「外観 > カスタマイズ > 追加CSS」の
     いま入っているものは消さずに、その一番下に足してください。

     順番は star-top → star-company → star-products
            → star-network → star-history → star-sustainability（これ）

     ページのタイトル・パンくずは star-company.css のものをそのまま使います。
     （HTMLの一番外側に class="st-cmp st-sus" と書いてあるため）
   ========================================================================== */


/* 写真の指定は star-images.css にまとめています（2026-10-02）。写真台帳.md も参照 */

/* タイトルの大きな英字を SUSTAINABILITY に差し替え（大きさ・位置は star-company.css の共通の指定。2026-10-14 から ::before の1か所だけ） */
body:has(.st-sus) .page-header > *:first-child::before{
  content: "SUSTAINABILITY";
}

/* 上部のジャンプリンクから飛んだときに、ヘッダーの下へ隠れないように */
.st-sus [id]{ scroll-margin-top: 100px; }


/* ---- WordPressが差し込む余計な要素でレイアウトが崩れないように ------------ */
.st-sus .sus-grid > :not(.sus-card),
.st-sus .sus-goal__grid > :not(.sus-goal__item),
.st-sus .sus-jump > :not(.sus-jump__item){ display: none !important; }


/* ---- Lightningが見出しに付ける装飾を打ち消す ------------------------------
   Lightningは h3 に赤い下線、h4 にグレーの背景を勝手に付けます。
   star-company.css の打ち消しは h1〜h3 までで、h4 が漏れていました。
   装飾は擬似要素（::before / ::after）でも付いてくるので、そちらも消します。

   ※.sec-en の赤い短い線はこちらで作っているものなので、除外しています
   -------------------------------------------------------------------------- */
.st-sus h3, .st-sus h4, .st-sus ol, .st-sus ul, .st-sus li{
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none !important;
  font-family: inherit;
}
.st-sus h3::before, .st-sus h3::after,
.st-sus h4::before, .st-sus h4::after,
.st-sus li::marker{ content: none !important; background: none !important; }


/* ---- 導入 ---------------------------------------------------------------- */
.st-sus .sus-intro{ padding: 64px 0 0; }
.st-sus .sus-intro__lead{
  font-size: 16px;
  line-height: 2.1;
  font-weight: 500;
  color: #2b2b2b;
  max-width: 44em;
  /* 2026-10-14：タイトルを中央にしたので、導入文も中央に。意味のまとまりで折り返し、行の長さをそろえる */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ページ内のジャンプリンク。国内拠点ページと同じ考え方です */
.st-sus .sus-jump{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}
.st-sus .sus-jump__item{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.st-sus .sus-jump__item:hover{ border-color: var(--ink); }


/* ---- 小見出しの共通形 ----------------------------------------------------- */
.st-sus .sus-sub{
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--line) !important;
}


/* ---- 品質・環境方針 ------------------------------------------------------- */
.st-sus .sus-policy{ padding: 72px 0 0; }

/* 番号つきの箇条書き。番号は自分で組み立てているので、
   テーマ側のリスト装飾は使いません */
.st-sus .sus-list{
  list-style: none !important;
  margin: 0 0 44px;
  padding: 0;
  counter-reset: sus;
}
.st-sus .sus-list__item{
  counter-increment: sus;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0 !important;
  border-bottom: 1px solid #ededed !important;
  font-size: 15px;
  line-height: 1.95;
  font-weight: 500;
  color: #2b2b2b;
}
.st-sus .sus-list__item::before{
  content: counter(sus) !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.95;
  color: var(--red);
  text-align: center;
}

.st-sus .sus-sign{
  font-size: 13.5px;
  line-height: 2;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: right;
}


/* ---- カーボンニュートラル（導入文） --------------------------------------- */
.st-sus .sus-carbon{ padding: 84px 0 0; }
.st-sus .sus-carbon__cap{
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 18px;
  text-align: center;
}
.st-sus .sus-carbon__lead{
  font-size: 15px;
  line-height: 2.1;
  font-weight: 500;
  color: #2b2b2b;
  max-width: 44em;
  /* 2026-10-14：タイトルを中央にしたので、導入文も中央に。意味のまとまりで折り返し、行の長さをそろえる */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  word-break: auto-phrase;
  text-wrap: balance;
}
.st-sus .sus-carbon__lead + .sus-carbon__lead{ margin-top: 14px; }


/* ---- 目標 -----------------------------------------------------------------
   数字を主役にしたいので、ここだけ画面いっぱいの薄い帯に載せています。
   中身は他のページと同じ1180pxで中央に置いたままです。
   -------------------------------------------------------------------------- */
.st-sus .sus-goal{
  --st-wrap: 1180px;
  background: #f6f7f7;
  margin: 56px 0 0;
  /* いったん画面いっぱいに広げてから、左右の余白で中身を中央に寄せています */
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 54px max(24px, calc((100vw - var(--st-wrap)) / 2)) 58px;
}
.st-sus .sus-goal .wrap{ width: auto; max-width: none; }
.st-sus .sus-goal__head{
  font-size: 13px;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e2e4e5 !important;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 28px;
}
.st-sus .sus-goal__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.st-sus .sus-goal__year{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.st-sus .sus-goal__num{
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: .01em;
}
.st-sus .sus-goal__unit{ font-size: .46em; font-weight: 900; }
.st-sus .sus-goal__word{
  font-size: .3em;
  font-weight: 900;
  margin-left: 8px;
}
.st-sus .sus-goal__note{
  font-size: 12px;
  font-weight: 600;
  color: #9a9a9a;
  margin-top: 4px;
}
.st-sus .sus-goal__sub{
  font-size: 13.5px;
  line-height: 1.9;
  font-weight: 600;
  color: #2b2b2b;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e4e5;
}
.st-sus .sus-goal__base{
  font-size: 13px;
  line-height: 1.9;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 32px;
}
.st-sus .sus-goal__aside{ font-size: 11.5px; color: #9a9a9a; font-weight: 500; }
.st-sus sub{ font-size: .7em; }


/* ---- 施策のカード ---------------------------------------------------------
   写真 → SDGsアイコン → 見出し → 本文 の順に並べています。

   ★SDGsアイコンをカードの一番下に移したいときは、
     .sus-card__sdgs の order を 9 にしてください（1行だけの変更です）。
   -------------------------------------------------------------------------- */
.st-sus .sus-action{ padding: 76px 0 0; }

.st-sus .sus-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}
.st-sus .sus-card{
  display: flex;
  flex-direction: column;
}
.st-sus .sus-card__img{
  order: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #eceeef;
}
.st-sus .sus-card__sdgs{
  order: 2;
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.st-sus .sus-sdg{
  width: 52px;
  height: 52px;
  flex: none;
}
.st-sus .sus-card__ttl{
  order: 3;
  font-size: 17px;
  letter-spacing: .01em;
  font-weight: 900;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 14px;
}
.st-sus .sus-card__txt{
  order: 4;
  font-size: 14.5px;
  line-height: 1.95;
  font-weight: 500;
  color: #2b2b2b;
  margin-top: 8px;
}
.st-sus .sus-card__ul{
  order: 4;
  list-style: none !important;
  margin: 8px 0 0;
  padding: 0;
}
.st-sus .sus-card__li{
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.95;
  font-weight: 500;
  color: #2b2b2b;
}
.st-sus .sus-card__li::before{
  content: "" !important;
  background: var(--red) !important;
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px; height: 1px;
  background: var(--red);
}


/* ==========================================================================
   健康経営への取り組み

   ここから先は「人」の話です。
   前半の環境（カーボンニュートラル）とは章が変わるので、
   上に大きめの余白を取って切り替わりを見せています。
   ========================================================================== */
.st-sus .sus-health{ padding: 92px 0 0; }

/* 説明文と認定証を左右に */
.st-sus .sus-health__top{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
}
.st-sus .sus-health__ttl{
  font-size: 19px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 18px;
}
.st-sus .sus-health__txt{
  font-size: 14.5px;
  line-height: 2;
  font-weight: 500;
  color: #2b2b2b;
  max-width: 34em;
}
.st-sus .sus-health__txt + .sus-health__txt{ margin-top: 12px; }

/* 外部サイトへのリンク */
.st-sus .sus-health__link{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: color .2s ease;
}
.st-sus .sus-health__link:hover{ color: var(--red); }
.st-sus .sus-health__link .ar{ color: var(--red); font-size: 15px; }

/* 認定証。2枚の高さをそろえず、実際の大きさの差をそのまま見せます
   （大きいほうが上位の認定なので、そのほうが自然です） */
.st-sus .sus-health__certs{
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex: none;
}
.st-sus .sus-health__cert{
  width: auto;
  height: auto;
  max-height: 260px;
  border: 1px solid var(--line);
  background: #fff;
}
.st-sus .sus-health__cert--sm{ max-height: 186px; }

/* 推進計画 */
.st-sus .sus-health__plan{ margin-top: 0; }

.st-sus .sus-kpi{
  margin: 0 0 32px;
  padding: 0;
}
.st-sus .sus-kpi__row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #ededed;
}
.st-sus .sus-kpi__dt{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--red);
}
.st-sus .sus-kpi__dd{
  font-size: 14.5px;
  line-height: 1.95;
  font-weight: 500;
  color: #2b2b2b;
}

/* 13.4日 → 14.9日 → 年間15日 の流れ。
   直線で右へ進む形にして、他のページの動きと考え方をそろえています */
.st-sus .sus-kpi__flow{
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-right: 8px;
}
.st-sus .sus-kpi__past{ font-size: 14px; font-weight: 700; color: #9a9a9a; }
.st-sus .sus-kpi__now{ font-size: 15px; font-weight: 900; color: var(--ink-soft); }
.st-sus .sus-kpi__goal{ font-size: 19px; font-weight: 900; color: var(--ink); }
.st-sus .sus-kpi__ar{ font-size: 12px; color: var(--red); }

.st-sus .sus-health__label{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--red);
  margin-bottom: 10px;
}
.st-sus .sus-health__ul{ order: 0; }


/* ---- 下部の導線 -----------------------------------------------------------
   他の下層ページと同じ、画面いっぱいの薄い帯です */
.st-sus .sus-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-sus .sus-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-sus .sus-links__lead{
  font-size: 15px;
  line-height: 2;
  font-weight: 600;
  color: var(--ink);
}
.st-sus .sus-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-sus .sus-links__btn:hover{ background: #f1f2f3; }
.st-sus .sus-links__btn .ar{ transition: transform .22s ease; }
.st-sus .sus-links__btn:hover .ar{ transform: translateX(4px); }
.st-sus .sus-links__btn .ar{ color: var(--red); font-size: 16px; }


/* ---- タブレット ----------------------------------------------------------- */
@media (max-width: 900px){
  .st-sus .sus-goal__grid{ gap: 36px; }
  .st-sus .sus-grid{ gap: 40px 28px; }
}

/* ---- スマホ --------------------------------------------------------------- */
@media (max-width: 620px){
  .st-sus .sus-intro{ padding: 36px 0 0; }
  .st-sus .sus-intro__lead{ font-size: 15px; line-height: 2; }
  .st-sus .sus-jump{ gap: 8px; margin-top: 22px; }
  .st-sus .sus-jump__item{ width: 100%; justify-content: space-between; padding: 12px 16px; }

  .st-sus .sus-policy{ padding: 48px 0 0; }
  .st-sus .sus-sub{ font-size: 17px; }
  .st-sus .sus-list__item{ grid-template-columns: 32px 1fr; gap: 10px; font-size: 14px; }
  .st-sus .sus-list__item::before{ font-size: 14px; }
  .st-sus .sus-sign{ text-align: left; }

  .st-sus .sus-carbon{ padding: 52px 0 0; }
  .st-sus .sus-carbon__lead{ font-size: 14px; line-height: 2; }

  .st-sus .sus-goal{
    margin-top: 36px;
    padding: 36px max(16px, calc((100vw - var(--st-wrap)) / 2)) 40px;
  }
  /* せまい画面では数字を縦に積みます */
  .st-sus .sus-goal__grid{ grid-template-columns: 1fr; gap: 28px; }

  .st-sus .sus-action{ padding: 52px 0 0; }
  /* カードは1列に */
  .st-sus .sus-grid{ grid-template-columns: 1fr; gap: 36px; }
  .st-sus .sus-sdg{ width: 46px; height: 46px; }
  .st-sus .sus-card__ttl{ font-size: 16px; }

  .st-sus .sus-health{ padding: 56px 0 0; }
  /* せまい画面では、説明文の下に認定証を並べます */
  .st-sus .sus-health__top{
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 44px;
  }
  .st-sus .sus-health__ttl{ font-size: 16px; }
  .st-sus .sus-health__txt{ font-size: 14px; line-height: 1.95; }
  .st-sus .sus-health__cert{ max-height: 200px; }
  .st-sus .sus-health__cert--sm{ max-height: 143px; }
  .st-sus .sus-kpi__row{ grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .st-sus .sus-kpi__goal{ font-size: 17px; }

  .st-sus .sus-links{
    margin-top: 56px;
    padding: 40px max(16px, calc((100vw - var(--st-wrap)) / 2)) 44px;
  }
  .st-sus .sus-links__inner{ flex-direction: column; align-items: stretch; gap: 22px; }
  .st-sus .sus-links__lead{ text-align: center; }
  .st-sus .sus-links__btn{ width: 100%; }
}
