@charset "UTF-8";

/* ==================================================
   現在のページをナビゲーションで表示
   ================================================== */
/* ==================================================
   ページタイトル
   長い見出しを自然に折り返して表示
   ================================================== */
.supporters-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid #e9ece1;
}

.supporters-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: auto;
  padding: 61px 40px 59px;
}

.supporters-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 910px;
  margin: 0;
  color: var(--forest);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: calc(clamp(27px, 3vw, 36px) * var(--text-scale, 1));
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .055em;
  text-wrap: balance;
}

.supporters-hero-inner::before,
.supporters-hero-inner::after {
  content: "";
  position: absolute;
  right: 75px;
  top: -75px;
  width: 310px;
  height: 310px;
  border: 1px solid #d7dfcd;
  border-radius: 50%;
}

.supporters-hero-inner::after {
  right: 8px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-color: #e1e6d7;
}

/* ==================================================
   企業・団体ロゴ一覧
   画像は変形・切り抜きをせずに表示
   ================================================== */
.supporters-main {
  max-width: 1240px;
  margin: auto;
  padding: 47px 40px 65px;
}

.supporter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supporter-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 137px;
  padding: 24px;
  border: 1px solid #e2e7dc;
  border-radius: 5px;
  background: #fff;
}

.supporter-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

/* 二つ目の一覧も元の掲載順を維持する */
.supporter-secondary {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  gap: 14px;
}

.supporter-secondary .supporter-item {
  min-height: 95px;
  padding: 19px 23px;
}

.supporter-secondary .supporter-item img {
  max-height: 64px;
}

/* ==================================================
   タブレット向け調整
   ================================================== */
@media (max-width: 960px) {
  .supporter-grid {
    gap: 13px;
  }

  .supporter-item {
    padding: 20px;
  }
}

/* ==================================================
   スマートフォン向け調整
   2列に切り替え、各画像の縦横比を維持
   ================================================== */
@media (max-width: 760px) {
  .supporters-hero-inner {
    padding: 35px 24px;
  }

  .supporters-hero h1 {
    font-size: calc(clamp(22px, 5.8vw, 29px) * var(--text-scale, 1));
    line-height: 1.9;
    letter-spacing: .025em;
  }

  .supporters-hero-inner::before {
    right: -100px;
    top: -90px;
    width: 240px;
    height: 240px;
  }

  .supporters-hero-inner::after {
    right: -150px;
    top: -125px;
    width: 250px;
    height: 250px;
  }

  .supporters-main {
    padding: 29px 24px 40px;
  }

  .supporter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .supporter-item {
    min-height: 106px;
    padding: 15px;
  }

  .supporter-item img {
    max-height: 74px;
  }

  .supporter-secondary {
    margin-top: 27px;
    padding-top: 27px;
    gap: 10px;
  }

  .supporter-secondary .supporter-item {
    min-height: 79px;
    padding: 14px 12px;
  }

  .supporter-secondary .supporter-item img {
    max-height: 55px;
  }
}

/* 印刷時は画像のまとまりを保つ */
@media print {
  .supporters-hero-inner {
    padding: 25px 40px;
  }

  .supporter-item {
    break-inside: avoid;
  }
}
