/* =========================================================
   pages/community.css  地域とのつながり（/community/）
   ========================================================= */

/* ---------- 2. 地域とともにある取り組み（下端にスポーツの写真を重ねる） ---------- */
.p-community-local {
  padding-bottom: calc(var(--section-py) + var(--r-bg));
}

/* ---------- 3. スポーツ：全幅の写真、左に白い角丸のパネル ---------- */
.p-community-sports {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--r-bg) * -1);
  padding-block: var(--section-py);
}
.p-community-sports__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.p-community-sports__photo img,
.p-community-sports__photo .u-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-community-sports__panel {
  max-width: 36.1875rem;
  padding: var(--space-4xl) var(--space-5xl) var(--space-5xl);
  border-radius: var(--r-bg);
  background: var(--c-white);
}
.p-community-sports__text {
  margin-top: var(--space-xl);
  line-height: 1.5;
}
.p-community-sports__panel .c-button {
  margin-top: var(--space-3xl);
}

/* ---------- 4. 未来につなぐ取り組み ---------- */
.p-community-future__intro {
  margin-top: var(--space-3xl);
  line-height: 2.25;
}
.p-community-future__rows {
  display: grid;
  gap: var(--space-8xl);
  margin-top: var(--space-8xl);
}
.p-community-future__row {
  align-items: start;
}
.p-community-future__logo img {
  width: auto;
  max-height: 3.75rem;
}
.p-community-future__lead {
  margin-top: var(--space-s);
  padding-bottom: var(--space-s);
  border-bottom: var(--line-light);
  line-height: 2.25;
}
.p-community-future__list {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}
.p-community-future__list li {
  position: relative;
  padding-left: var(--space-l);
}
.p-community-future__list li::before {
  content: "";
  position: absolute;
  top: 0.625rem;
  left: 0;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--c-green-light);
}
.p-community-future__list span {
  display: block;
}
.p-community-future__item-title {
  font-weight: var(--fw-bold);
  line-height: 1.7;
}
.p-community-future__item-text {
  margin-top: 0.1875rem;
  font-size: var(--fs-sm);
  line-height: 1.9;
}

/* ---------- 5. 認定・認証 ---------- */
.p-community-certs__title {
  color: var(--c-green);
  font-size: var(--fs-h3);
  line-height: 1.8;
  text-align: center;
}
.p-community-certs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3xl) var(--space-10xl);
  margin-top: var(--space-3xl);
}
.p-community-certs__list li {
  width: min(27.75rem, 100%);
}
.p-community-certs__list img {
  width: 100%;
}

/* ---------- 768〜1199px ---------- */
@media (max-width: 1199px) {
  .p-community-certs__list {
    gap: var(--space-3xl) var(--space-6xl);
  }
  .p-community-certs__list li {
    width: min(25rem, 100%);
  }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .p-community-sports__panel {
    padding: var(--space-5xl) var(--space-4xl) var(--space-6xl);
    border-radius: var(--r-photo-lg);
  }
  .p-community-sports__text {
    margin-top: var(--space-xl);
    line-height: 1.8;
  }
  .p-community-sports__panel .c-button {
    margin-top: var(--space-4xl);
  }
  .p-community-future__intro {
    margin-top: var(--space-xl);
    line-height: 2;
  }
  .p-community-future__rows {
    gap: var(--space-9xl);
    margin-top: var(--space-7xl);
  }
  .p-community-future__logo img {
    max-height: 2.75rem;
  }
  .p-community-certs__list {
    margin-top: var(--space-4xl);
  }
}
