@charset "UTF-8";
/* PC/SP 表示切り替え */
.is-sp {
  display: none;
}

@media (max-width: 960px) {
  .is-pc {
    display: none;
  }
  .is-sp {
    display: block;
  }
}
/* ========================================
   JOIN Place Making — Figma: PC 702:474 / SP 1030:716
   波背景画像 + 水玉 + 写真+テキスト行 + CTA
======================================== */
.join-placemaking-section {
  text-align: center;
  padding: 116px 0 140px;
}

.join-placemaking-section--cyan {
  position: relative;
  background-image: url("image/join_placemarking-bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  overflow: hidden;
}

/* 水玉オーバーレイ（専用ドット画像 + 波型マスク） */
.join-placemaking-section--cyan::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("image/join_placemarking-bg-mask.png");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: url("image/join_placemarking-bg.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("image/join_placemarking-bg.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.join-placemaking-section--cyan > * {
  position: relative;
  z-index: 1;
}

/* inner: 左寄せコンテナ */
.join-placemaking-section__inner {
  max-width: 1185px;
  margin-left: 0;
  margin-right: auto;
}

/* ヘッダー部分 */
.join-placemaking-section__header {
  text-align: center;
  padding: 0 40px;
}

/* 写真+テキスト レイアウト（PC: 横並び） */
.join-placemaking-section__row {
  display: flex;
  gap: 60px;
  margin-top: 61px;
}

/* Row間の余白を広く */
.join-placemaking-section__row + .join-placemaking-section__row {
  margin-top: 83px;
}

/* 1つ目: 左寄せ（写真左 + テキスト右） */
.join-placemaking-section__row--left {
  justify-content: flex-start;
}

/* 2つ目: 右寄せ（テキスト左 + 写真右） */
.join-placemaking-section__row--right {
  justify-content: flex-end;
}

.join-placemaking-section__row-photo {
  object-fit: cover;
}

/* 1つ目の写真: 右側だけ丸角、幅は可変 */
.join-placemaking-section__row-photo--large {
  width: 62%;
  max-width: 732px;
  aspect-ratio: 732/368;
  border-radius: 0 50px 50px 0;
  flex-shrink: 0;
}

/* 2つ目の写真: 角丸 */
.join-placemaking-section__row-photo--small {
  width: 484px;
  height: 311px;
  border-radius: 50px;
}

.join-placemaking-section__row-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 31px;
}

/* テキストブロック */
.join-placemaking-section__text-block {
  max-width: 398px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 29px;
  text-align: justify;
}

/* CTA + PDFリンク グループ */
.join-placemaking-section__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* CTA — .button との差分のみ */
.join-placemaking-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 67px;
  font-weight: 700;
}

/* 1つ目: 堤防の利用状況を見る */
.join-placemaking-section__cta--primary {
  max-width: 210px;
  min-width: 210px;
  padding: 0 33px;
}

/* 2つ目: 利活用の手続きの仕方を知る */
.join-placemaking-section__cta--secondary {
  max-width: 236px;
  min-width: 236px;
  padding: 0 25px;
}

/* PDFリンク */
.join-placemaking-section__pdf-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-decoration: underline;
  line-height: 61px;
}

/* 末尾テキスト */
.join-placemaking-section__body {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 29px;
  max-width: 676px;
  margin: 118px auto 0;
  text-align: center;
}

/* ========================================
   SP (max-width: 960px) — Figma: 1030:716
======================================== */
@media (max-width: 960px) {
  .join-placemaking-section {
    padding: 65px 0 77px;
  }
  .join-placemaking-section__inner {
    max-width: 100%;
    margin: 0 auto;
  }
  .join-placemaking-section__header {
    padding: 0 30px;
    text-align: right;
  }
  /* SP: 背景画像差し替え */
  .join-placemaking-section--cyan {
    background-image: url("image/join_placemarking-bg-sp.png");
  }
  /* SP: ドットオーバーレイもSP用画像に差し替え */
  .join-placemaking-section--cyan::after {
    background-image: url("image/join_placemarking-bg-mask-sp.png");
    background-size: cover;
    -webkit-mask-image: url("image/join_placemarking-bg-sp.png");
    -webkit-mask-size: 100% 100%;
    mask-image: url("image/join_placemarking-bg-sp.png");
    mask-size: 100% 100%;
  }
  /* SP: 縦並び */
  .join-placemaking-section__row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 26px;
  }
  .join-placemaking-section__row + .join-placemaking-section__row {
    margin-top: 38px;
  }
  /* SP: Row2 の写真を先頭に */
  .join-placemaking-section__row--right .join-placemaking-section__row-photo {
    order: -1;
  }
  /* SP: 画像は画面幅いっぱい・丸角なし */
  .join-placemaking-section__row-photo {
    width: 100vw;
    max-width: 100vw;
    height: 234px;
    border-radius: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  /* SP: テキストエリアに左右余白 */
  .join-placemaking-section__row-text {
    padding: 0 17px;
  }
  .join-placemaking-section__text-block {
    max-width: 359px;
    font-size: 14px;
    line-height: 27px;
  }
  /* SP: CTA グループ中央揃え */
  .join-placemaking-section__cta-group {
    align-items: center;
    width: 100%;
  }
  .join-placemaking-section__body {
    max-width: 359px;
    margin: 38px auto 0;
    font-size: 14px;
    line-height: 27px;
    text-align: justify;
  }
  /* SP: ボタンサイズ調整 */
  .join-placemaking-section__cta--primary {
    max-width: 193px;
    min-width: 193px;
    padding: 0 14px;
  }
  .join-placemaking-section__cta--secondary {
    max-width: 221px;
    min-width: 221px;
    padding: 0 17px;
  }
}