/* =========================
   MEMBER HERO (Page Title)
========================= */
.memberHero__head{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(120px, 10vw, 180px) 0 10px;
  text-align: left;
}

.memberHero__title{
  margin: 0;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: .92;
  color: #008B2C;
  font-size: clamp(44px, 6.8vw, 92px);
}

/* PCは改行しない / SPでだけ改行 */
.memberHero__spBr{ display: none; }

.memberHero__sub{
  margin: 10px 0 0;
  font-size: 40px;
  font-weight: 700;
  color: #0A8A3A;
}

/* （必要なら）キャッチ */
.memberHero__catch{
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  text-align: center;
  color: #222;
  letter-spacing: .04em;
  font-size: clamp(14px, 1.6vw, 18px);
}

/* SP（左右32px余白＆タイトル改行） */
@media (max-width: 900px){
  .memberHero__head{
    width: calc(100% - 64px);
    padding: 56px 0 22px;
  }
  .memberHero__spBr{ display: inline; }

  .memberHero__sub{
    margin: 10px 0 0;
    font-size: 24px;
  }
}

/* =========================
   MEMBER LIST
========================= */
.memberList{
  padding: clamp(34px, 5vw, 70px) 0 clamp(60px, 6vw, 110px);
}

.memberList__inner{
  width: min(1200px, calc(100% - 64px)); /* SP左右32px */
  margin: 0 auto;
}

.memberList__intro{
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: clamp(50px, 3vw, 80px) 0 clamp(50px, 3vw, 80px);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.7;
}

/* grid：PC 3列 → 2列 / SPも2列 */
.memberList__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 54px) clamp(18px, 2.4vw, 44px);
  align-items: start;
  justify-items: stretch; /* 列幅いっぱい使う */
}

/* 980以下で2列 */
@media (max-width: 980px){
  .memberList__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SP微調整（余白はinnerで担保済み） */
@media (max-width: 560px){
  .memberList__grid{
    gap: 28px 20px;
  }
}

/* 応急：grid直下に紛れた br / p を無効化（念のため） */
.memberList__grid > br,
.memberList__grid > p{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================
   MEMBER CARD
========================= */
.memberCard{
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.memberCard__media{
  margin: 0 auto clamp(20px, 2vw, 24px);
  width: clamp(180px, 18vw, 300px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #008B2C; /* 画像未読込時の保険 */
}

.memberCard__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}

/* カード全体 hover で画像に効かせる（テキスト上でもOK） */
.memberCard:hover .memberCard__media img{
  opacity: .72;
  filter: brightness(.92);
  transform: scale(1.02);
}

.memberCard__body{
  text-align: center;
}

.memberCard__name{
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.memberCard__nameEn{
  margin: 8px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #0b7f2f;
}

/* 役職リスト */
.memberCard__meta{
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  width: min(300px, 100%);
  color: #333;
  line-height: clamp(1.4, 2vw, 1.7);
  font-size: clamp(14px, 2vw, 16px);
}

.memberCard__meta li{
  position: relative;
  padding-left: 1.25em;
}

.memberCard__meta li::before{
  content: "◎";
  position: absolute;
  left: 0;
  top: 0;
  color: #777;
}

/* 紹介文：リストの下に余白つけて左寄せ */
.memberCard__desc{
  margin: 12px auto 0;
  width: min(300px, 100%);
  text-align: left;
  line-height: clamp(1.4, 2vw, 1.8);
  font-size: clamp(14px, 2vw, 16px);
  color: #444;
  opacity: .95;
}




/*----------------ここからモーダル------------------*/


/*モーダル時の背景のスクロール停止*/
html.is-modal-open,
body.is-modal-open{
  overflow: hidden;
}



/* =========================
  MEMBER MODAL
========================= */

.memberModal{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,.55);

  /* 上下左右の“画面内余白” */
   padding: clamp(28px, 4.2vw, 64px) clamp(18px, 2.6vw, 40px);

  /* モーダルが大きい時に外枠側でスクロール可能（任意） */
  overflow: auto;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .38s ease, visibility .38s ease; /* ← 速度ここ */
}


/* OPEN */
.memberModal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.memberModal__inner{
  width: min(920px, 100%);
  background: #fff;
  border-radius: clamp(18px, 2.6vw, 34px);
  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0,0,0,.25);

  transform: translateY(12px);
  transition: transform .38s ease;

  /* 高さが画面を超えたら、カード内でスクロール */
  max-height: calc(100vh - (clamp(18px, 3vw, 40px) * 2));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}


.memberModal.is-open .memberModal__inner{
  transform: translateY(0);
}

/* 画像 */
.memberModal__media{
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #e9efe9;
}
.memberModal__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 中身 */
.memberModal__content{
  padding: clamp(32px, 4vw, 64px);
}

.memberModal__head{
  margin: 0 0 clamp(10px, 1.8vw, 18px);
}

.memberModal__name{
  margin: 0;
  font-weight: 700;
  color: #008B2C;
  letter-spacing: .02em;
  font-size: clamp(28px, 2.4vw, 34px);
}

.memberModal__nameEn{
  margin: 6px 0 0;
  font-size: 14px;
  letter-spacing: .04em;
  color: #0b7f2f;
}

/* 役職（箇条書き） */
.memberModal__meta{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}
.memberModal__meta li{
  position: relative;
  padding-left: 1.25em;
}
.memberModal__meta li::before{
  content: "◎";
  position: absolute;
  left: 0;
  top: 0;
  color: #7b7b7b;
}

/* 一言紹介（リスト外） */
.memberModal__lead{
  margin: 12px 0 0;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
}



/* 表風 */
.memberModal__dl{
  margin: 18px 0 0;
  border-top: 1px solid rgba(0,139,44,.25);
}
.memberModal__row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,139,44,.18);
}
.memberModal__row dt{
  color: #008B2C;
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 16px;
}
.memberModal__row dd{
  margin: 0;
  color: #333;
  line-height: 1.9;
  font-size: 16px;
}

/* 特徴：タグ */
.memberModal__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.memberModal__tag{
  display: inline-block;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(0,139,44,.12);
  color: #008B2C;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}

/* リンク */
.memberModal__links a{
  color: #008B2C;
  text-decoration: none;
}
.memberModal__links a:hover{
  text-decoration: underline;
}

/* ボタン */
.memberModal__actions{
  padding: 64px 0 0;
  display: grid;
  place-items: center;
}
.memberModal__closeBtn{
  width: min(420px, 100%);
  height: 70px;
  border: none;
  border-radius: 999px;
  background: #008B2C;
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
	font-size: 16px;
}
.memberModal__closeBtn:hover{
  background: #222222; /* もし逆がいいなら言って */
  transform: translateY(-1px);
}



/* SP */
@media (max-width: 680px){
  .memberModal{
    padding: 28px 22px; /* ←ここ好きなだけ微調整OK */

   
    overflow: auto;
  }

  .memberModal__inner{
    width: 100%;
  }

  .memberModal__media{
    aspect-ratio: 16 / 9;
  }

  .memberModal__row{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .memberModal__closeBtn{
    width: 100%;
  }
	
	.memberModal__infoBlock{
		margin-top: 24px;
	}	
	
}

/* WPの自動<p>が row 直下に混ざると grid が崩れるので無効化 */
.memberModal__row > p{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 念のため：空pだけ消したい場合はこっちでもOK */
.memberModal__row > p:empty{
  display: none !important;
}

/* ついでにrow内のpが勝手に入っても余白で暴れないように */
.memberModal__row p{
  margin: 0;
}

/* =========================
  MEMBER MODAL HEAD (PC: 左右2カラム)
  - SPは今のまま
========================= */
@media (min-width: 901px){

  .memberModal__head{
    display: grid;
    grid-template-columns: clamp(220px, 26vw, 320px) 1fr;
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 10px;
    align-items: start;
  }

  /* 左（名前） */
  .memberModal__name{
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .memberModal__nameEn{
    grid-column: 1;
    grid-row: 2;
    margin: 6px 0 0;
  }

  /* 右（役職 + 紹介） */
  .memberModal__meta{
    grid-column: 2;
    grid-row: 1 / 3; /* 右側は上から（名前の高さ分を跨ぐ） */
    margin: 0;
  }
  .memberModal__lead{
    grid-column: 2;
    grid-row: 3;
    margin: 10px 0 0;
  }

  /* 右側の行間とか見た目調整（必要なら） */
  .memberModal__meta li + li{ margin-top: 6px; }
}


@media (min-width: 901px){
  .memberModal__head{
    column-gap: clamp(14px, 2.2vw, 28px); /* ← ここを詰める */
  }
}

@media (min-width: 901px){
  .memberModal__meta{
    margin: 0;            /* 念のため固定 */
    padding-left: 0;      /* もし左の余白も気になるなら */
  }


  /* li同士の間も詰めたいなら */
  .memberModal__meta li + li{ margin-top: 4px; }
}

@media (min-width: 901px){
  .memberModal__head{
    grid-template-columns: clamp(180px, 22vw, 260px) 1fr; /* 左カラムを少し細く */
  }
}



/* まずデフォ（SP含む）：縦積み */
.memberModal__head{
  display: block;
}

.memberModal__nameBlock > *{
  margin: 0;
}
.memberModal__nameEn{
  margin-top: 6px;
}

.memberModal__meta{
  margin: 0;
  padding: 0;
  list-style: none;
}

/* PC：左右2カラムにする */
@media (min-width: 901px){
  .memberModal__head{
    display: grid;
    grid-template-columns: clamp(180px, 22vw, 260px) 1fr;
    column-gap: clamp(24px, 3.2vw, 44px);
    align-items: start;
  }



  /* 右側の“ulとpの間”を詰めたいならここを調整 */
  .memberModal__lead{ margin-top: 12px; } /* 例：6px */
}

