@charset "utf-8";

/*
 * 所属弁護士セクション
 *
 * 見せ方は立退料LPの弁護士紹介（tachinokiryo css/18-section-lawyers.css）に合わせている。
 *   見出し … 主色のベタ帯に白文字（SPは帯を消して主色の文字）
 *   写真   … 下部に主色80%の帯を重ね、肩書と氏名を載せる
 *   本文   … 主色のベタ欄。上端に白の細い罫（端まで伸ばさない）、コメントは白・左揃え
 * 主色は立退料と同じ #30b8ed（このサイトの主色も同じ）。
 * 文字サイズ・余白も立退料のPC値に揃えている（見出し42／肩書19／氏名31／コメント19px）。
 *
 * 列数はグリッドで指定し、nth-child の直書きはしない。
 * 人数が変わっても崩れないようにするため（過去に6名前提の nth-child が
 * 12名で崩れた事例がある）。
 */

.eb-lawyers-section {
  padding: 80px 0 90px;
  background: #ffffff;
}

.eb-lawyers-section .lawyers-header {
  margin: 0 0 42px;
  padding: 13px 20px 7px;
  background: #30b8ed;
  text-align: center;
}

.eb-lawyers-section .lawyers-header h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
  color: #ffffff;
}

.eb-lawyers-section .lawyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.7vw, 25px) clamp(8px, 1vw, 15px);
}

.eb-lawyers-section .lawyer-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.eb-lawyers-section .lawyer-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 1005;
  overflow: hidden;
  background: #e0e0e0;
  line-height: 0;
}

.eb-lawyers-section .lawyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 写真は頭上の余白が1割ほどしかないので、上寄せにして頭が切れないようにする */
  object-position: center 10%;
}

/* 肩書＋氏名の帯（写真下部、主色80%） */
.eb-lawyers-section .lawyer-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 12px;
  background: rgba(48, 184, 237, .8);
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
}

.eb-lawyers-section .lawyer-info {
  position: relative;
  flex: 1;
  padding: 20px clamp(8px, 1.7vw, 25px) 13px clamp(10px, 2.1vw, 30px);
  background: #30b8ed;
}

/* 氏名とコメントの間の白い水平線（端まで伸ばさない） */
.eb-lawyers-section .lawyer-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #ffffff;
}

.eb-lawyers-section .lawyer-position {
  margin: 0 0 2px;
  font-size: 19px;
  color: #ffffff;
}

.eb-lawyers-section .lawyer-name {
  margin: 0;
  font-size: 31px;
  font-weight: bold;
  color: #ffffff;
}

.eb-lawyers-section .lawyer-message {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  color: #ffffff;
  text-align: left;
}

@media (max-width: 768px) {
  .eb-lawyers-section {
    padding: 46px 0 55px;
  }
  /* SP: 見出しの帯を消し、文字を主色にする（立退料と同じ） */
  .eb-lawyers-section .lawyers-header {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
  }
  .eb-lawyers-section .lawyers-header h2 {
    font-size: 5.4vw;
    color: #30b8ed;
  }
  .eb-lawyers-section .lawyers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 8px;
  }
  .eb-lawyers-section .lawyer-overlay {
    padding: 4px 10px 2px;
  }
  .eb-lawyers-section .lawyer-info {
    padding: 10px 12px;
    min-height: 96px;
  }
  .eb-lawyers-section .lawyer-position {
    margin: 0;
    font-size: 11px;
  }
  .eb-lawyers-section .lawyer-name {
    padding-bottom: 5px;
    font-size: 14px;
  }
  .eb-lawyers-section .lawyer-message {
    font-size: 11px;
    letter-spacing: .03em;
    line-height: 1.5;
  }
}
