/* ============================================================
   応援企業
   ------------------------------------------------------------
   ヒーロー（空・気球・街並み）と見出し（.dreams__head）は
   dreams.css を共有する。同じ見た目を2回書くと、
   片方だけ直して食い違うため。supporter.php は
   pages.css → dreams.css → supporter.css の順で読む。

   アイコン丸の色は jobs.css と同じ「--sup 変数に色を入れて
   カード内で使い回す」方式にしている。片方を触った人が
   もう片方も読めるようにするため。
   ============================================================ */

/* 企業の色。DBの supporters.color と対応する（jobs と同じキー） */
.sup-card--pink   { --sup: #e4699a; }
.sup-card--blue   { --sup: var(--blue); }
.sup-card--green  { --sup: var(--green); }
.sup-card--orange { --sup: var(--orange); }
.sup-card--purple { --sup: var(--purple); }
.sup-card--yellow { --sup: #e0a400; }
.sup-card--cyan   { --sup: #2bb3c4; }

/* ------------------------------------------------------------
   ヒーロー
   ------------------------------------------------------------ */
.sky-hero__eyebrow .sky-hero__spark { color: var(--yellow); margin: 0 6px; }

/* ------------------------------------------------------------
   一覧
   ------------------------------------------------------------ */
.sup { background: #fdfaf2; padding: 34px 0 56px; }
.sup__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.ph--sup-star { width: 26px; height: 26px; flex: none; color: var(--blue); }

.sup-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.sup-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 20px 16px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.sup-card__badge {
  position: absolute; top: 0; right: 0;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 0 var(--radius-sm) 0 10px;
}

/* ロゴ。高さをそろえて、縦位置のガタつきを防ぐ */
.sup-card__logo {
  display: grid; place-items: center;
  height: 54px; margin: 6px 0 4px;
}
.ph--sup-logo { max-width: 100%; max-height: 54px; object-fit: contain; }
/* ロゴ未設定のときは ph() が会社名を返す。そのままだと大きいので抑える */
.sup-card__logo .ph {
  font-size: 12px; font-weight: 800; color: var(--ink-soft);
  background: none; border: none; text-align: center; line-height: 1.4;
}

.sup-card__name { font-size: 14px; font-weight: 900; line-height: 1.5; }
.sup-card__name a { color: inherit; }
.sup-card__name a:hover { color: var(--blue); text-decoration: underline; }
.sup-card__ext { font-size: .8em; margin-left: 3px; color: var(--ink-soft); }

.sup-card__text { font-size: 11px; line-height: 1.9; color: var(--ink-soft); }

.sup-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 12px;
}
.sup-card__industry { font-size: 11px; font-weight: 700; }
.sup-card__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  /* --sup の色を薄く敷く。color-mix が効かない古い環境でも
     背景が透明になるだけで、丸の形は保たれる */
  background: color-mix(in srgb, var(--sup) 14%, #fff);
  color: var(--sup);
}
.ph--sup-icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   募集
   ------------------------------------------------------------ */
.sup-join { background: #fdfaf2; padding: 0 0 60px; }
.sup-join__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 26px var(--gutter);
  background: var(--sky); border-radius: var(--radius);
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 20px; align-items: center;
}
.ph--sup-kids, .ph--sup-tree { width: 100%; height: auto; max-height: 190px; object-fit: contain; }

.sup-join__body { text-align: center; }
.sup-join__title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 900; color: var(--blue);
  margin-bottom: 14px;
}
.sup-join__spark { color: var(--yellow); font-size: .8em; }
.sup-join__text { font-size: 13px; line-height: 2; margin-bottom: 18px; }
.sup-join__btn { min-width: 300px; justify-content: space-between; }

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .sup-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sup-join__inner { grid-template-columns: 130px minmax(0, 1fr) 130px; }
}

@media (max-width: 640px) {
  .sup-cards { grid-template-columns: 1fr; }
  .sup-join__inner { grid-template-columns: 1fr; }
  /* イラストは装飾。狭い画面では文字と導線を優先する */
  .ph--sup-kids, .ph--sup-tree { display: none; }
  .sup-join__btn { min-width: 0; width: 100%; }
}
