@charset "UTF-8";

/* 会員募集ヒーロー: セッション後に仲間と語り合う採用案4を背景に使用する。 */
.member-hero {
  background-color: #fbf8f3;
  background-image:
    linear-gradient(rgba(251, 248, 243, 0.48), rgba(251, 248, 243, 0.48)),
    url("/assets/images/member-hero-post-session.jpg"); /* webp非対応ブラウザ用フォールバック(2026-08-29) */
  background-image:
    linear-gradient(rgba(251, 248, 243, 0.48), rgba(251, 248, 243, 0.48)),
    image-set(url("/assets/images/member-hero-post-session.webp") type("image/webp"), url("/assets/images/member-hero-post-session.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* 共通ヒーローの透かし装飾はイラストと重なるため、このページでは表示しない。 */
.member-hero .weather-directory-hero__decor {
  display: none;
}

/* 右側をイラスト用に空け、コピーとCTAを左カラムへまとめる。 */
.member-hero .weather-directory-hero__content {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  column-gap: 48px;
  row-gap: 14px;
  padding-block: 34px;
}

.member-hero .weather-directory-hero__copy {
  grid-column: 1;
  grid-row: 1;
}

/* 会員募集トップ: 日の出ページと共通のヒーローに、会員向けCTAを追加する。 */
.member-hero-card {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.member-hero-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-hero-card__action {
  display: block;
  padding: 10px 12px;
  color: #fff !important;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.member-hero-card__action:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.member-hero-card__action--primary {
  background: #0c8fe8;
}

.member-hero-card__action--login {
  background: #ff861a;
}

/* 日の出ページと同じく、一覧本文をサイト幅いっぱいの1カラムにする。 */
#main-content1-area.member-page-main {
  width: 100%;
}

.member-page-main #main-content1,
.member-page-main #content-single,
.member-page-main .member {
  width: 100%;
  box-sizing: border-box;
}

/* 会員募集トップでは共通CSSの.post_title上ボーダーを表示しない。 */
.member-page-main .post_title {
  border-top: 0;
}

.member-page-main .bannerarea {
  margin-top: 10px;
  text-align: center;
}

.member-page-main .surfing_out {
  box-sizing: border-box;
}

.member .pagination {
  width: 200px;
  margin: 20px auto;
  padding: 20px 0 0;
  text-align: center;
}

.member .pagination a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  color: #fff;
  background-color: #2c7eb9;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.member .pagination a:hover {
  background-color: #0056b3;
}

.member .pagination.prev-only,
.member .pagination.next-only {
  text-align: center;
}

.member .pagination.next-only {
  display: flex;
  justify-content: center;
}

.member .pagination.both {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .member-hero {
    background-image:
      linear-gradient(rgba(251, 248, 243, 0.7), rgba(251, 248, 243, 0.7)),
      url("/assets/images/member-hero-post-session.jpg"); /* webp非対応ブラウザ用フォールバック(2026-08-29) */
    background-image:
      linear-gradient(rgba(251, 248, 243, 0.7), rgba(251, 248, 243, 0.7)),
      image-set(url("/assets/images/member-hero-post-session.webp") type("image/webp"), url("/assets/images/member-hero-post-session.jpg") type("image/jpeg"));
    background-position: 70% center;
  }

  .member-hero .weather-directory-hero__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 360px;
    gap: 0;
    padding-block: 42px;
  }

  .member-hero-card {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px max(12px, env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(13, 91, 137, 0.14);
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(10, 43, 67, 0.14);
    backdrop-filter: blur(10px);
  }

  .member-hero-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin-inline: auto;
    gap: 8px;
  }

  .member-hero-card__action {
    padding: 12px 6px;
  }
}

/* ダークモード: 新設したCTAカードの明るい面と文字色を反転する。 */
#darkBody .member-hero,
html[data-theme="dark"] .member-hero {
  background-color: #142639;
  background-image:
    linear-gradient(rgba(12, 27, 42, 0.68), rgba(12, 27, 42, 0.68)),
    url("/assets/images/member-hero-post-session.jpg"); /* webp非対応ブラウザ用フォールバック(2026-08-29) */
  background-image:
    linear-gradient(rgba(12, 27, 42, 0.68), rgba(12, 27, 42, 0.68)),
    image-set(url("/assets/images/member-hero-post-session.webp") type("image/webp"), url("/assets/images/member-hero-post-session.jpg") type("image/jpeg"));
}

#darkBody .member-hero-card,
html[data-theme="dark"] .member-hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

#darkBody .member-directory .weather-eyebrow,
html[data-theme="dark"] .member-directory .weather-eyebrow {
  color: #8ec3ee;
}

#darkBody .member .sex1 h3,
html[data-theme="dark"] .member .sex1 h3 {
  color: #8ec3ee;
}

#darkBody .member .sex2 h3,
html[data-theme="dark"] .member .sex2 h3 {
  color: #ff9f9f;
}

#darkBody .member .post_time,
html[data-theme="dark"] .member .post_time {
  color: #a8b8c8;
}

@media (max-width: 767px) {
  #darkBody .member-hero-card,
  html[data-theme="dark"] .member-hero-card {
    background: rgba(24, 35, 47, 0.96);
    border-top: 1px solid rgba(142, 195, 238, 0.24);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  }
}
