/* ========================================
   ヒーロー画像
======================================== */
.member-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../image/img_member/hero2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 200px 0;
}

.member-hero h1 {
  color: white;
  font-size: 48px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ========================================
   メンバーアイコンナビゲーション
======================================== */
.member-flex-1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 30px;
  margin: -100px 0 100px 0;
}

.member-flex-2 img {
  width: 250px;
  transition: transform 0.3s ease;
  /* ホバー時のアニメーション */
}

.member-flex-2 img:hover {
  transform: scale(1.05);
}


/* ========================================
   メンバーカード共通
======================================== */
.mem-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.member-card,
.partner-card {
  margin-bottom: clamp(40px, 8vw, 80px);
}

/* メンバーカードの背景 */
.member-card .mem01-flex-1,
.partner-card .par01-flex-1 {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  padding: clamp(30px, 5vw, 50px);
  border-radius: 12px;
}

.member-card .mem01-flex-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ffe4b3;
  z-index: -1;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* メンバー個人 */
.mem01-flex-1 {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  margin: 0 auto 70px;
}

.c .mem01-flex-1::before,
.d .mem01-flex-1::before {
  content: "";
  position: absolute;
  top: 0;
  /* 上に広がる背景色 */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffe4b3;
  z-index: -1;
  border-radius: 8px;
}

.mem01-flex-2 {
  flex: 0 0 350px;
}

.mem01-flex-2 img {
  width: 350px;
  height: auto;
  display: block;
}

.center-image {
  display: block;
  margin: 0 auto;
  width: 350px;
}

.mem01-flex-3 {
  /* テキスト部分 */
  width: 500px;
  padding: 20px;
}


/* ========================================
   メンバー名
======================================== */

.member-name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: clamp(1.5rem, 3vw, 2rem);
  padding: 12px 20px;
  margin: 0 0 16px 0;
  color: #754b21;
  background: linear-gradient(135deg, #f4cc71 0%, #f9d98e 100%);
  border-radius: 0 50px 0 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  gap: 8px;
}

.hidarimaru {
  border-radius: 50px 0 0 0;
}

/* ========================================
   メンバーサブタイトル
======================================== */
.member-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: bold;
  color: #8c6239;
  margin: 0 0 12px 0;
  margin-top: 40px;
  padding-left: 12px;
  border-left: 4px solid #f9bc43;
}

/* ========================================
   メンバー情報
======================================== */
.member-info {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.285);
  border-radius: 8px;
  border-left: 3px solid #f9bc43;
}

.member-info strong {
  color: #754b21;
  font-size: 1.1em;
}

.mem01-flex-3 p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

p {
  line-height: 1.7;
}

.member-info-title {
  font-weight: bold;
  color: #754b21;
  font-size: 1.1em;
  margin-bottom: 8px;
}



/* ========================================
   パートナーカード
======================================== */
.par01-flex-1 {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  margin: 0 auto 70px;
}

.par01-flex-2 {
  flex: 0 0 auto;
  max-width: 250px;
}

.par01-flex-2 img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.par01-flex-3 {
  flex: 1 1 400px;
  min-width: 280px;
  max-width: 600px;
}

.partner-name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  padding: 12px 20px;
  margin: 0 0 16px 0;
  color: #180054;
  background: linear-gradient(135deg, #cae5eb 0%, #b8dce5 100%);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* ========================================
   スクロールアニメーション
======================================== */
.js-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-scroll.is-active {
  opacity: 1;
  transform: translateY(0);
}

.-slidein-right {
  transform: translateX(50px);
}

.-slidein-left {
  transform: translateX(-50px);
}

.-slidein-right.is-active,
.-slidein-left.is-active {
  transform: translateX(0);
  opacity: 1;
}


/* ★PC幅のみ：本文の上余白 var(--header-h) を打ち消して “かぶせる” */
@media (min-width: 901px) {
  .member-hero {
    margin-top: calc(-1 * var(--header-h));
    /* ちょうどヘッダー分だけ上へ */
  }
}

/* モバイル用ヒーロー差し替え */
@media (max-width: 768px) {
  .member-hero {
    background-image: url(../image/img_member/hero1.jpg);
    /* スマホ用画像 */
    padding: 80px 0;
    /* 高さを少し縮める（任意） */
  }

  .member-hero h1 {
    font-size: 30px;
  }
}

/* メンバー２の写真と文章を入れ替える */
@media (max-width: 768px) {
  /* member-1, member-3: 通常の縦並び */
  .mem01-flex-1 {
    flex-direction: column !important;
  }

  /* member-2: 順序を逆転して画像を上に */
  .mem01-flex-1-reverse-a {
    flex-direction: column-reverse !important;
  }

  /* 画像とテキストの幅を調整 */
  .mem01-flex-2 {
    flex: none !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .mem01-flex-2 img {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .mem01-flex-3 {
    width: 100% !important;
    padding: 20px !important;
  }
}