/* ========================================
   page-lawyers.css — 弁護士紹介ページ
   ======================================== */

/* FV背景写真 */
.page-fv--lawyers::after {
  background-image: url('/images/fv-lawyers.png');
  opacity: 0.10;
}

/* ========================================
   弁護士プロフィールセクション
   ======================================== */
.lawyer-profile {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--color-bg);
  overflow: hidden;
}
/* 白背景セクションにも微細テクスチャ（§0.1 ベタ塗り禁止） */
.lawyer-profile:not(.lawyer-profile--alt)::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(30,61,107,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.lawyer-profile--alt {
  background: linear-gradient(180deg, #E8ECF0 0%, #E4E8ED 100%);
}
.lawyer-profile--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30,61,107,0.03) 0px,
      rgba(30,61,107,0.03) 1px,
      transparent 1px,
      transparent 64px
    );
  pointer-events: none;
}
/* ウォーターマーク */
.lawyer-profile__wm {
  position: absolute;
  top: 40px;
  right: -20px;
  font-family: var(--font-english);
  font-size: 120px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.05;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.lawyer-profile--alt .lawyer-profile__wm {
  right: auto;
  left: -20px;
}
.lawyer-profile__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッド（写真 + 基本情報） */
.lawyer-profile__head {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}
/* 2人目：写真左・情報右（1人目と逆配置）、中央寄せ */
.lawyer-profile--alt .lawyer-profile__head {
  flex-direction: row;
  justify-content: center;
  gap: 56px;
}
.lawyer-profile--alt .lawyer-profile__info {
  flex: 0 1 480px;
}
.lawyer-profile__photo {
  flex: 0 0 340px;
  position: relative;
}
/* 所属弁護士: 代表より控えめ */
.lawyer-profile__photo--sub {
  flex: 0 0 250px;
}
/* L字コーナー装飾 */
.lawyer-profile__photo::before {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}
.lawyer-profile__photo::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-bottom: 2px solid rgba(30,61,107,0.15);
  border-left: 2px solid rgba(30,61,107,0.15);
  pointer-events: none;
  z-index: 1;
}
.lawyer-profile__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.lawyer-profile__info {
  flex: 1;
  min-width: 0;
}
/* 写真→情報の時間差フェードイン */
.lawyer-profile__info.anim-fade {
  transition-delay: 0.15s;
}

/* 役職 */
.lawyer-profile__role {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 14px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* 名前 */
.lawyer-profile__name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 16px;
}
.lawyer-profile__ruby {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin-top: 4px;
}

/* 一言キャッチ */
.lawyer-profile__catch {
  font-size: 15px;
  font-style: italic;
  color: #777;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* 資格タグ */
.lawyer-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.lawyer-profile__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(30,61,107,0.06);
  padding: 4px 12px;
  border-radius: 20px;
}

/* プロフィールテーブル */
.lawyer-profile__table {
  width: 100%;
  border-collapse: collapse;
}
.lawyer-profile__table th,
.lawyer-profile__table td {
  font-size: 14px;
  line-height: 1.8;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,61,107,0.08);
  vertical-align: top;
}
.lawyer-profile__table th {
  width: 110px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  text-align: left;
  padding-right: 16px;
  padding-left: 12px;
  background: rgba(30,61,107,0.03);
  border-radius: 2px 0 0 2px;
}
.lawyer-profile__table td {
  color: #555;
}
.lawyer-profile__table tr:last-child th,
.lawyer-profile__table tr:last-child td {
  border-bottom: none;
}

/* 信頼数値バー */
.lawyer-profile__numbers {
  display: flex;
  gap: 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(30,61,107,0.08);
}
.lawyer-profile__number {
  flex: 1;
  text-align: center;
  position: relative;
}
.lawyer-profile__number + .lawyer-profile__number::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(30,61,107,0.10);
}
.lawyer-profile__number-value {
  font-family: var(--font-english);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.lawyer-profile__number-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  margin-left: 2px;
}
.lawyer-profile__number-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #999;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* メッセージ */
.lawyer-profile__message {
  background: #F5F6F8;
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 2px 12px rgba(30,61,107,0.06);
}
/* L字コーナー装飾（メッセージカード） */
.lawyer-profile__message::before {
  content: '';
  position: absolute;
  top: -6px; right: -6px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
}
.lawyer-profile__message::after {
  content: '';
  position: absolute;
  bottom: -6px; left: -6px;
  width: 28px; height: 28px;
  border-bottom: 2px solid rgba(30,61,107,0.15);
  border-left: 2px solid rgba(30,61,107,0.15);
  pointer-events: none;
}
.lawyer-profile--alt .lawyer-profile__message {
  background: #fff;
}
.lawyer-profile__message-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 16px;
  position: relative;
}
.lawyer-profile__message-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}
.lawyer-profile__message-body p {
  font-size: 15px;
  line-height: 2;
  color: #555;
}
.lawyer-profile__message-body p + p {
  margin-top: 16px;
}
/* メッセージ内サブタイトル */
.lawyer-profile__message-section + .lawyer-profile__message-section {
  margin-top: 28px;
}
.lawyer-profile__message-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.5;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
/* テーブル内タグ */
.lawyer-profile__tags--inline {
  margin-bottom: 0;
  margin-top: 4px;
}

/* プルクォート（独立配置・代表弁護士用） */
.lawyer-profile__quote {
  margin: 0;
  padding: 56px 20px;
  background: none;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-align: center;
  position: relative;
}
/* 引用符ウォーターマーク（中央配置） */
.lawyer-profile__quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-english);
  font-size: 80px;
  font-weight: 400;
  color: var(--color-accent);
  opacity: 0.18;
  line-height: 0.6;
  margin-bottom: 16px;
  pointer-events: none;
}
/* 独立配置版 */
.lawyer-profile__quote--standalone {
  margin-bottom: 40px;
}
/* 所属弁護士用（控えめ・静かな引用） */
.lawyer-profile__quote--sub {
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  padding: 40px 20px;
  opacity: 0.85;
}
.lawyer-profile__quote--sub::before {
  display: none;
}

/* ========================================
   RESPONSIVE — Tablet (1024px)
   ======================================== */
@media (max-width: 1280px) {
  .lawyer-profile__head { gap: 32px; }
  .lawyer-profile__photo { flex: 0 0 240px; }
  .lawyer-profile__photo--sub { flex: 0 0 180px; }
  .lawyer-profile__name { font-size: 26px; }
  .lawyer-profile__message { padding: 36px 28px; }
  .lawyer-profile__quote { font-size: 22px; }
  .lawyer-profile__quote--sub { font-size: 16px; }
  .lawyer-profile__wm { font-size: 80px; }
}

/* ========================================
   RESPONSIVE — SP (768px)
   ======================================== */
@media (max-width: 768px) {
  .lawyer-profile { padding: 40px 0; }
  .lawyer-profile__head {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
  }
  .lawyer-profile__photo {
    flex: none;
    width: 60%;
    max-width: 260px;
  }
  .lawyer-profile__photo--sub {
    max-width: 200px;
  }
  .lawyer-profile__info {
    width: 100%;
    text-align: center;
  }
  /* 写真→情報の遅延はSPでも維持（縦積みでもカスケード効果あり） */
  .lawyer-profile__name { font-size: 24px; }
  .lawyer-profile__catch { font-size: 14px; }
  .lawyer-profile__tag { font-size: 13px; }
  .lawyer-profile__tags { justify-content: center; }
  .lawyer-profile__table {
    text-align: left;
  }
  .lawyer-profile__table th {
    display: block;
    width: 100%;
    padding: 8px 0 2px;
    border-bottom: none;
    font-size: 13px;
  }
  .lawyer-profile__table td {
    display: block;
    width: 100%;
    padding: 0 0 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(30,61,107,0.06);
  }
  .lawyer-profile__table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
  }
  .lawyer-profile__message {
    padding: 28px 20px;
  }
  .lawyer-profile__message-heading { font-size: 20px; }
  .lawyer-profile__message-body p { font-size: 14px; line-height: 1.8; }

  /* SP アコーディオン */
  .lawyer-profile__message-section + .lawyer-profile__message-section {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(30,61,107,0.08);
  }
  .lawyer-profile__message-sub {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    margin-bottom: 0;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .lawyer-profile__message-sub::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--color-primary);
    border-bottom: 1.5px solid var(--color-primary);
    transform: translateY(-60%) rotate(45deg);
    opacity: 0.4;
    transition: transform 0.3s ease;
  }
  .lawyer-profile__message-section.is-open > .lawyer-profile__message-sub {
    margin-bottom: 10px;
  }
  .lawyer-profile__message-section.is-open > .lawyer-profile__message-sub::after {
    transform: translateY(-30%) rotate(-135deg);
  }
  .lawyer-profile__message-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .lawyer-profile__message-section.is-open > .lawyer-profile__message-content {
    max-height: 1200px;
  }

  /* 鈴木: SPインライン写真（横カード型） */
  .lawyer-profile--alt .lawyer-profile__head {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .lawyer-profile--alt .lawyer-profile__photo--sub {
    flex: 0 0 110px;
    width: 110px;
    max-width: 110px;
  }
  .lawyer-profile--alt .lawyer-profile__info {
    text-align: left;
  }
  .lawyer-profile--alt .lawyer-profile__tags {
    justify-content: flex-start;
  }
  .lawyer-profile__quote { font-size: 20px; padding: 32px 16px; }
  .lawyer-profile__quote::before { font-size: 60px; }
  .lawyer-profile__quote--standalone { margin-bottom: 24px; }
  .lawyer-profile__quote--sub { font-size: 17px; padding: 24px 16px; }
  .lawyer-profile__numbers { margin-top: 20px; padding-top: 16px; }
  .lawyer-profile__number-value { font-size: 24px; }
  .lawyer-profile__number-unit { font-size: 12px; }
  .lawyer-profile__number-label { font-size: 10px; }
  .lawyer-profile__wm { font-size: 64px; top: 20px; }

  /* L字装飾 SP */
  .lawyer-profile__photo::before { width: 32px; height: 32px; top: -5px; right: -5px; }
  .lawyer-profile__photo::after { width: 24px; height: 24px; bottom: -5px; left: -5px; }
  .lawyer-profile__message::before { width: 32px; height: 32px; top: -5px; right: -5px; }
  .lawyer-profile__message::after { width: 24px; height: 24px; bottom: -5px; left: -5px; }

  /* SP アニメーション移動量縮小（§9.3: 12px以下） */
  .lawyer-profile .anim-drop { transform: translateY(-12px); }
  .lawyer-profile .anim-clip { transform: translateY(12px); }
}
